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 / mciapp / makefile < prev    next >
Makefile  |  1996-01-11  |  1KB  |  52 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 = mciapp32.sym
  9. !endif
  10.  
  11. all: mciapp32.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. mciapp.res: mciapp.rc mciapp.rcv
  22.     $(rc) $(rcflags) $(rcvars) $(OTHERRCOPTS) mciapp.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. mciapp32.exe mciapp32.map:   mciapp.obj \
  33.                 app.obj     \
  34.                 appinit.obj \
  35.                 debug.obj   \
  36.                 mciapp.res
  37.     $(link) $(linkdebug) $(guiflags) -out:mciapp32.exe $** $(guilibs) $(LIBS) \
  38.          -map:$*.map
  39.     
  40. mciapp32.sym:    $*.map
  41.     mapsym $*.map
  42.  
  43. clean:
  44.     @if exist mciapp32.exe del mciapp32.exe
  45.     @if exist *.obj del *.obj
  46.     @if exist *.map del *.map
  47.     @if exist *.sym del *.sym
  48.     @if exist *.res del *.res
  49.     @if exist *.pdb del *.pdb
  50.     @if exist *.exp del *.exp
  51.     @if exist *.lib del *.lib
  52.