home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRPALET.MAK < prev    next >
Text File  |  1993-11-10  |  2KB  |  93 lines

  1. #****************************************************************************
  2. #  WorkPlace Shell Color Palette sample object class makefile
  3. #****************************************************************************
  4.  
  5. # Dot directive definition area (usually just suffixes)
  6. #
  7. .SUFFIXES:
  8. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
  9.  
  10. # Environment Setup for the component(s).
  11. #
  12. TOOLKIT = e:\toolkt21
  13. SOMTEMP = .\somtemp
  14. SCPATH  = $(TOOLKIT)\sc
  15.  
  16. !if [set SMINCLUDE=.;$(SCPATH);] || \
  17.     [set SMTMP=$(SOMTEMP)] || \
  18.     [set SMEMIT=ih;h;ph;psc;sc;c]
  19. !endif
  20.  
  21. !if [cd $(SOMTEMP)]
  22. !  if [md $(SOMTEMP)]
  23. !    error error creating $(SOMTEMP) directory
  24. !  endif
  25. !else
  26. !  if [cd ..]
  27. !    error - Couldn't cd .. from $(SOMTEMP) directory
  28. !  endif
  29. !endif
  30.  
  31.  
  32. # Set up the lists of libraries used and object modules to be built
  33. #
  34. CLRPALETOBJS    = clrpalet.obj clrstar.obj clrwheel.obj
  35. CLRPALETLNKLIBS = os2386.lib dde4mbs.lib som.lib
  36. CLRPALETLNKOPTS = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /noe
  37. TESTAPPOBJS     = clrsampl.obj testapp.obj
  38. TESTAPPLNKLIBS  = os2386.lib dde4sbs.lib
  39. TESTAPPLNKOPTS  = /NOP /NOI /NOP /M /NOL /NOD /PM:PM
  40.  
  41. # General rules for how to build things
  42. #
  43. .c.obj:
  44.         $(CC) /Ge- /Ti+ /Ss+ -c $<
  45.  
  46. .csc.ih:
  47.         sc -r $*.csc
  48.  
  49. # List of all the targets to be built
  50. #
  51. all: clrpalet.lib clrpalet.dll testapp.exe
  52.  
  53. # Build rules for CLRPALET.LIB
  54. #
  55. clrpalet.lib: clrpalet.def
  56.         implib  clrpalet.lib clrpalet.def
  57.  
  58. # Build rules for CLRPALET.DLL
  59. #
  60. clrpalet.dll: $$(@B).def $(CLRPALETOBJS) clrpalet.res
  61.          link386 $(CLRPALETLNKOPTS) $(CLRPALETOBJS),$@,,$(CLRPALETLNKLIBS),$*;
  62.          rc $*.res $*.dll
  63.          mapsym clrpalet.map
  64.  
  65. clrpalet.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc
  66.  
  67. clrpalet.ih: clrpalet.csc
  68.         sc -r $*.csc
  69.  
  70. clrstar.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc
  71.  
  72. clrstar.ih: clrstar.csc
  73.         sc -r $*.csc
  74.  
  75. clrpalet.res: $$(@B).rc $$(@B).ih
  76.          rc -r $*.rc $*.res
  77.  
  78. # Build rules for TESTAPP.EXE
  79. #
  80. testapp.exe: $$(@B).def $(TESTAPPOBJS) testapp.res
  81.          link386 $(TESTAPPLNKOPTS) $(TESTAPPOBJS),$@,,$(TESTAPPLNKLIBS),$*;
  82.          rc $*.res $*.exe
  83.          mapsym testapp.map
  84.  
  85. testapp.obj: testapp.c
  86.    icc /Ss /Q /c /Ti /Gmdn $*.c
  87.  
  88. clrsampl.obj: clrsampl.c
  89.    icc /Ss /Q /c /Ti /Gmdn $*.c
  90.  
  91. testapp.res: $$(@B).rc
  92.          rc -r $*.rc $*.res
  93.