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 / mmcaps / makefile < prev    next >
Encoding:
Makefile  |  1996-01-11  |  1.3 KB  |  54 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 = mmcaps32.sym
  9. !endif
  10.  
  11. all: mmcaps32.exe $(SYM)
  12.  
  13. LIBS=msacm32.lib vfw32.lib winmm.lib shell32.lib
  14.  
  15. OTHERCLOPTS=-DWIN32_LEAN_AND_MEAN -nologo -I. -I..\include
  16. OTHERRCOPTS=-DWIN32_LEAN_AND_MEAN -I. -I..\include
  17.  
  18.  
  19. # Update the resource if necessary
  20.  
  21. mmcaps.res: mmcaps.rc mmcaps.rcv
  22.     $(rc) $(rcflags) $(rcvars) $(OTHERRCOPTS) mmcaps.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. mmcaps32.exe mmcaps32.map:   \
  33.                 mmcaps.obj   \
  34.                 DEBUG.obj    \
  35.                 LOWLEVEL.obj \
  36.                 MIDSPIDS.obj \
  37.                 ZYZTLB.obj   \
  38.                 mmcaps.res
  39.     $(link) $(linkdebug) $(guiflags) -out:mmcaps32.exe $** $(guilibs) $(LIBS) \
  40.         -map:$*.map
  41.     
  42. mmcaps32.sym:    $*.map
  43.     mapsym $*.map
  44.  
  45. clean:
  46.     @if exist mmcaps32.exe del mmcaps32.exe
  47.     @if exist *.obj del *.obj
  48.     @if exist *.map del *.map
  49.     @if exist *.sym del *.sym
  50.     @if exist *.res del *.res
  51.     @if exist *.pdb del *.pdb
  52.     @if exist *.exp del *.exp
  53.     @if exist *.lib del *.lib
  54.