home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / midiplyr / makefile < prev    next >
Makefile  |  1996-04-25  |  1KB  |  56 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. APPVER=4.0
  4.  
  5. !include <win32.mak>
  6.  
  7. !if "$(CPU)" == "i386" # .syms are useful for Win95
  8. SYM = midipl32.sym
  9. !endif
  10.  
  11. all: midipl32.exe $(SYM)
  12.  
  13. LIBS=msacm32.lib vfw32.lib winmm.lib shell32.lib comctl32.lib
  14.  
  15. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I. -I..\include
  16. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I. -I..\include -I..\..\include
  17.  
  18.  
  19. # Update the resource if necessary
  20.  
  21. midiplyr.res: midiplyr.rc midiplyr.rcv
  22.     $(rc) $(rcflags) $(rcvars) $(OTHERRCOPTS) midiplyr.rc
  23.  
  24.  
  25. # Update the object file if necessary
  26.  
  27. .c.obj:
  28.     $(cc) $(cdebug) $(cflags) $(cvars) $(OTHERCLOPTS) $<
  29.  
  30. # Update the executable file if necessary, and if so, add the resource back in.
  31.  
  32. midipl32.exe midipl32.map:   DEBUG.obj    \
  33.                 MAINWND.obj  \
  34.                 MIDIPLYR.obj \
  35.                 SEQUENCE.obj \
  36.                 SMF.obj      \
  37.                 SMFREAD.obj  \
  38.                 TIMEWND.obj  \
  39.                 UIUTILS.obj  \
  40.                 midiplyr.res
  41.     $(link) $(linkdebug) $(guiflags) -out:midipl32.exe $** $(guilibs) $(LIBS) \
  42.          -map:$*.map
  43.     
  44. midipl32.sym:    $*.map
  45.     mapsym $*.map
  46.  
  47. clean:
  48.     @if exist midipl32.exe del midipl32.exe
  49.     @if exist *.obj del *.obj
  50.     @if exist *.map del *.map
  51.     @if exist *.sym del *.sym
  52.     @if exist *.res del *.res
  53.     @if exist *.pdb del *.pdb
  54.     @if exist *.exp del *.exp
  55.     @if exist *.lib del *.lib
  56.