home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / WPS / CARPP / CARPP.MAK < prev    next >
Makefile  |  1995-08-24  |  3KB  |  110 lines

  1. #****************************************************************************
  2. #
  3. #  WorkPlace Shell CAR C++ Sample makefile - SOM 2.0 / IDL version
  4. #
  5. #  Copyright (C) 1992-1995 IBM Corporation
  6. #
  7. #
  8. #      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  9. #      sample code created by IBM Corporation. This sample code is not
  10. #      part of any standard or IBM product and is provided to you solely
  11. #      for  the purpose of assisting you in the development of your
  12. #      applications.  The code is provided "AS IS", without
  13. #      warranty of any kind.  IBM shall not be liable for any damages
  14. #      arising out of your use of the sample code, even if they have been
  15. #      advised of the possibility of such damages.
  16. #
  17. #      NOTE: you will have to modify the environment variables to suit
  18. #            your environment
  19. #
  20. #****************************************************************************
  21.  
  22. #****************************************************************************
  23. #  Dot directive definition area (usually just suffixes)
  24. #****************************************************************************
  25.  
  26. .SUFFIXES:
  27. .SUFFIXES: .cpp .obj .dll .idl .xh .xih .rc .res .def .ipf
  28.  
  29. #****************************************************************************
  30. #  Environment setup for the component(s).
  31. #****************************************************************************
  32.  
  33. TOOLKIT = ..\..\..
  34. WPSHIDL = $(TOOLKIT)\idl
  35.  
  36. SOMTEMP = .\somtemp
  37. HPATH   = $(TOOLKIT)\h
  38.  
  39. !if [set SMEMIT=xih;xh;xc;def]
  40. !endif
  41.  
  42. !if [cd $(SOMTEMP)]
  43. !  if [md $(SOMTEMP)]
  44. !    error error creating $(SOMTEMP) directory
  45. !  endif
  46. !else
  47. !  if [cd ..]
  48. !    error - Couldn't cd .. from $(SOMTEMP) directory
  49. !  endif
  50. !endif
  51.  
  52. #
  53. # Compiler/tools Macros
  54. #
  55.  
  56. CPP     = icc
  57. CC       = $(CPP) /W3 /Ge- /Ti /Q+
  58. LINK    = LINK386
  59. LDFLAGS = /noi /map /nol /nod /exepack /packcode /packdata /align:16
  60. DLLLIBS = DDE4NBS + os2386 + somtk
  61.  
  62. #****************************************************************************
  63. # Set up Macros that will contain all the different dependencies for the
  64. # executables and dlls etc. that are generated.
  65. #****************************************************************************
  66.  
  67. OBJS = carpp.obj horn.obj brake.obj rpm.obj
  68.  
  69. #****************************************************************************
  70. #   Setup the inference rules for compiling source code to
  71. #   object code.
  72. #****************************************************************************
  73.  
  74. .idl.xih:
  75.         sc -v -r -mnoint -mnotc $*.idl
  76.  
  77. .cpp.obj:
  78.         $(CC) -I.; -c $<
  79.  
  80. all: carpp.dll carpp.hlp
  81.  
  82. #
  83. # Specific Process Tag
  84. #
  85.  
  86. horn.obj :    $$(@B).cpp $$(@B).h carpp.xih
  87.  
  88. brake.obj:   $$(@B).cpp $$(@B).h carpp.xih
  89.  
  90. rpm.obj  :   $$(@B).cpp $$(@B).h carpp.xih
  91.  
  92. carpp.xih:   $$(@B).idl $(HPATH)\wpdataf.xh
  93.  
  94. carpp.def:   $$(@B).idl
  95.  
  96. carpp.obj:   $$(@B).cpp $$(@B).xih $$(@B).xh  $$(@B).idl \
  97.              $(HPATH)\wpdataf.xh horn.h brake.h rpm.h
  98.  
  99. carpp.dll:   $$(@B).def $(OBJS) carpp.res
  100.         $(LINK) $(LDFLAGS) $(OBJS),$@,,$(DLLLIBS),$*;
  101.         rc -p -x $*.res $*.dll
  102.         mapsym carpp.map
  103.  
  104. carpp.res: $$(@B).rc $$(@B).xih
  105.         rc -r $*.rc $*.res
  106.  
  107. {.}.ipf.hlp:
  108.    IPFC .\$*.IPF
  109.  
  110.