home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / bouncer.zip / MAKEFILE < prev    next >
Text File  |  1992-05-01  |  2KB  |  87 lines

  1. ##### Module Macros ####
  2. NAME    = bouncer
  3. SRCS    = $(NAME).c
  4. OBJS    =
  5.  
  6. ##### C7 Macro #####
  7. C7    = 1
  8.  
  9. ##### Library Macros #####
  10. LIBS    = libw slibcew mmsystem scrnsave
  11. MOD    = -AS
  12.  
  13. ##### Include Macro #####
  14. INCLS    = $(NAME).h
  15.  
  16. ##### Resource Macro #####
  17. RCFILES = $(NAME).rc $(NAME).ico $(NAME).dlg scrnsave.dlg
  18.  
  19. ##### DEBUG Macro Defined #####
  20. DEBUG    = 1
  21.  
  22. ##### Build Option Macros #####
  23. !if $(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 -G2sw -Zp -W3 $(MOD) $(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. .rc.res:
  52.     $(RC) -r $*.rc
  53.  
  54. ##### Main (default) Target #####
  55. goal: $(NAME).exe $(NAME).scr
  56.  
  57. ##### Dependents For Goal and Command Line #####
  58. $(NAME).scr: $(NAME).exe
  59.     copy $(NAME).exe $(NAME).scr
  60.  
  61. $(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
  62.     $(LINK) @<<
  63.     $(SRCS:.c=.obj) $(OBJS),
  64.     $(NAME).exe,
  65.     $(NAME).map,
  66.     $(LIBS),
  67.     $(NAME).def
  68. <<
  69.     $(RC) -T $(NAME).res
  70. !if $(DEBUG)
  71. !if  !$(C7)
  72.     cvpack -p $(NAME).exe
  73. !endif
  74.     mapsym $(NAME).map
  75. !endif
  76.  
  77. ##### Dependents #####
  78. $(SRCS:.c=.obj):  $(INCLS)
  79. $(NAME).res: $(RCFILES)
  80.  
  81. ##### Clean Directory #####
  82. clean:
  83.     -del *.obj
  84.     -del *.res
  85.     -del *.map
  86.     -del *.sym
  87.