home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / w3_info / technote.arj / DIBIT / MAKEFILE < prev   
Encoding:
Text File  |  1992-02-03  |  1.4 KB  |  80 lines

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