home *** CD-ROM | disk | FTP | other *** search
/ Cutting-Edge 3D Game Programming with C++ / CE3DC++.ISO / TOOLS / WAVEMIX / WAVEMIX.MAK < prev    next >
Encoding:
Makefile  |  1994-04-06  |  1.6 KB  |  72 lines

  1. #DEBUG = 1
  2.  
  3. RCFLAGS =/NOLOGO -r
  4. RESFLAGS =/NOLOGO -t
  5.  
  6. MAPFILE = nul
  7. DLL_OBJS = \
  8.        wavemix.OBJ\
  9.        LIBENTRY.OBJ\
  10.        mixit.obj
  11.  
  12. DLL_LIBS = sdllcew libw mmsystem
  13.  
  14. ######################## inference rules ####################
  15. .asm.obj:
  16. !ifdef DEBUG
  17.     ml /c /Cp /W3 /Zi /DDEBUG $*.asm
  18. !else
  19.     ml /c /Cp /W3 $*.asm
  20. !endif
  21.  
  22. all:    wavemix.dll
  23.  
  24. wavemix.obj: wavemix.h wavemix.def wavemix.c wavemix.mak
  25. !ifdef DEBUG
  26.        cl -c -W3 -ASw -Gswc -Od -Zpei -YX -DDEBUG wavemix.c
  27. !else
  28. #   note: should really use -GD for dlls and _export and _loadds to avoid load ds
  29. #         on functions that don't need it  
  30.     cl -c -W3 -ASw -Gswc -O2 -YX wavemix.c
  31. !endif
  32.  
  33. libentry.obj: libentry.asm
  34.     masm -Mx -W2 libentry.asm;
  35.  
  36. mixit.obj: mixit.asm
  37.     ml /c /Cp /W3 /Zi /Fl /Sc /DDEBUG mixit.asm
  38.  
  39. wavemix.lib: wavemix.def
  40.     implib wavemix.lib wavemix.def
  41.  
  42. wavemix.res: wavemix.rc
  43.     rc $(RCFLAGS) wavemix.rc
  44.  
  45. wavemix.dll: $(DLL_OBJS) wavemix.res
  46. !ifdef DEBUG
  47.     Link /MAP /NOD /NOE /CO $(DLL_OBJS), wavemix.dll, wavemix.map, $(DLL_LIBS), wavemix.def
  48. !else
  49.     Link /MAP /NOD /NOE $(DLL_OBJS), wavemix.dll, wavemix.map, $(DLL_LIBS), wavemix.def
  50. !endif
  51.     mapsym wavemix.map
  52.     rc $(RESFLAGS) wavemix.res wavemix.dll
  53.  
  54.  
  55. #######  use these commands to profile the dll #######
  56. #
  57. # steps
  58. #  1. nmake prep
  59. #  2. profilew $(PROJ).exe [parameters]
  60. #  3. nmake report
  61. #
  62.  
  63. Prep:
  64.  prep /ft /p wavemix.dll /ot mixtest.pbt /oi mixtest.pbi
  65.  
  66. Report:
  67.  prep /it mixtest.pbt /io mixtest.pbo /ot mixtest.pbt
  68.  plist /st mixtest.pbt > mixtest.out
  69.  
  70.  del mixtest.pbo
  71.  del mixtest.pbi
  72.