home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / bsscdemo / treedem1 / treedem1.mak < prev    next >
Encoding:
Text File  |  1993-05-25  |  1.6 KB  |  92 lines

  1. ##### Module Macros #####
  2. NAME    = treedem1
  3. SRCS    = treedem1.c
  4. OBJS    = 
  5.  
  6. ##### C7 Macro #####
  7. C7     =  1
  8.  
  9. ##### Library Macros #####
  10. !if $(C7)
  11. LIBS    = libw slibcew ..\treectrl.lib
  12. !else
  13. LIBS    = libw snocrt ..\treectrl.lib
  14. !endif
  15. MOD    = -AS
  16.  
  17. ##### Include Macro #####
  18. INCLS    = $(NAME).h ..\bscore.h ..\bstree.h
  19.  
  20. ##### Resource Macro #####
  21. RCFILES = $(NAME).rc
  22.  
  23. ##### DEBUG Macro Defined #####
  24. DEBUG    =  0
  25.  
  26. ##### Build Option Macros #####
  27. !if $(DEBUG)
  28. DDEF    = -DDEBUG
  29. CLOPT    = -Zid -Od
  30. MOPT    = -Zi
  31. LOPT    = /CO /LI /MAP
  32. !else
  33. DDEF    =
  34. CLOPT    = -Ot
  35. LOPT    =
  36. !endif
  37.  
  38. ##### General Macros #####
  39. DEF    =
  40.  
  41. ##### Tool Macros #####
  42. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  43. CC    = cl -nologo -c $(MOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF)
  44. LINK    = link /NOD /NOE $(LOPT)
  45. RC    = rc $(DDEF) $(DEF)
  46. HC    = hc
  47.  
  48. ##### Inference Rules #####
  49. .c.obj:
  50.     $(CC) -NT _$* $*.c
  51.  
  52. .asm.obj:
  53.     $(ASM) $*.asm;
  54.  
  55. .rc.res:
  56.     $(RC) -r $*
  57.  
  58. ##### Main (default) Target #####
  59. goal: $(NAME).exe
  60.  
  61. ##### Dependents For Goal and Command Line #####
  62. treedem1.obj: treedem1.c $(INCLS)
  63.     $(CC) -NT _TEXT $*.c
  64.  
  65. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  66.     $(LINK) @<<
  67.     $(SRCS:.c=.obj) $(OBJS),
  68.     $(NAME).exe,
  69.     $(NAME).map,
  70.     $(LIBS),
  71.     $(NAME).def
  72. <<
  73.     $(RC) -T $(NAME).res
  74. !if $(DEBUG)
  75. !if !$(C7)
  76.     cvpack -p $(NAME).exe
  77. !endif
  78.     mapsym $(NAME).map
  79. !endif
  80.  
  81. ##### Dependents #####
  82. $(SRCS:.c=.obj): $(INCLS)
  83. $(NAME).res: $(INCLS) $(RCFILES)
  84.  
  85. ##### Clean Directory #####
  86. clean:
  87.     -del *.obj
  88.     -del *.res
  89.     -del *.exe
  90.     -del *.map
  91.     -del *.sym
  92.