home *** CD-ROM | disk | FTP | other *** search
/ Learn 3D Graphics Programming on the PC / Learn_3D_Graphics_Programming_on_the_PC_Ferraro.iso / rwwin / wavemix.ma_ / wavemix.bin
Encoding:
Text File  |  1995-11-14  |  1.5 KB  |  68 lines

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