home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / cscrap / test.mak < prev    next >
Encoding:
Text File  |  1994-05-10  |  1.7 KB  |  93 lines

  1. ##################################################################
  2. #
  3. #     Northeast Data Corp.    April 1, 1994
  4. #
  5. #     Modify as you wish
  6. #
  7. ##################################################################
  8.  
  9. ##### DEBUG Version Built #####
  10. DEBUG    = 1
  11.  
  12. ##### APP Macros #####
  13. APPNAME    = test
  14. APPSRCS    = $(APPNAME).c 
  15. APPOBJS    =
  16.  
  17. ##### C7 Macro #####
  18. C7       = 1
  19.  
  20. ##### APP Library Macros #####
  21. APPLIBS    = libw llibcew scraper
  22. APPMOD       = -AL
  23.  
  24. ##### APP Include Macros #####
  25. APPINCLS   = $(APPNAME).h
  26.  
  27. ##### APP Resource Macros #####
  28. APPRCFILES = $(APPNAME).ico $(APPNAME).rc
  29.  
  30. ##### Build Option Macros #####
  31. !if $(DEBUG)
  32. DDEF    = -DDEBUG
  33. CLOPT    = -Zid -Od
  34. MOPT    = -Zi
  35. LOPT    = /CO /LI /MAP
  36. !else
  37. DDEF    =
  38. CLOPT    = -Os
  39. LOPT    =
  40. !endif
  41.  
  42. ##### Tool Macros #####
  43. ASM    = masm -Mx $(MOPT) $(DDEF) $(DEF)
  44. CC    = cl -nologo -c $(APPMOD) -G2sw -Zp -W3 $(CLOPT) $(DDEF) $(DEF) $(DEMO)
  45. LINK    = link /NOD /NOE $(LOPT)
  46. RC    = rc $(DDEF) $(DEF)
  47. HC    = hc
  48.  
  49. ##### Inference Rules #####
  50. .c.obj:
  51.     $(CC) $*.c
  52.  
  53. .asm.obj:
  54.     $(ASM) $*.asm;
  55.  
  56. .rc.res:
  57.     $(RC) -r $(DEMO) $*.rc
  58.  
  59. ##### Main (default) Target #####
  60. goal:  test.exe
  61.  
  62. ##### Dependents For Goal and Command Lines #####
  63. test.obj: test.c
  64.     $(CC) $*.c
  65.  
  66. test.res: test.dlg test.h
  67.  
  68. test.exe: test.obj test.def test.res scraper.lib
  69.     $(LINK) @<<
  70.     test.obj,
  71.     test.exe,
  72.     test.map,
  73.     libw llibcew scraper,
  74.     test.def
  75. <<
  76.     $(RC) -T test.res
  77. !if $(DEBUG)
  78.     mapsym test.map
  79. !endif
  80.  
  81. ##### Dependents #####
  82. $(APPSRCS:.c=.obj): $(APPINCLS)
  83. $(APPNAME).res: $(APPINCLS) $(APPRCFILES)
  84.  
  85. ##### Clean Directory #####
  86. clean:
  87.     -del *.obj
  88.     -del *.res
  89.     -del *.map
  90.     -del *.sym
  91.     -del *.lib
  92.     -def *.exe
  93.