home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / input / joytoy / makefile < prev    next >
Makefile  |  1996-07-18  |  1KB  |  49 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 = joytoy32.sym
  9. !endif
  10.  
  11. all: joytoy32.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. joytoy.res: joytoy.rc joytoy.rcv
  22.     $(rc) $(rcflags) $(rcvars) $(OTHERRCOPTS) joytoy.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. joytoy32.exe joytoy32.map:   joytoy.obj \
  33.                 joytoy.res
  34.     $(link) $(linkdebug) $(guiflags) -out:joytoy32.exe $** $(guilibs) $(LIBS) \
  35.          -map:$*.map
  36.     
  37. joytoy32.sym:    $*.map
  38.     mapsym $*.map
  39.  
  40. clean:
  41.     @if exist joytoy32.exe del joytoy32.exe
  42.     @if exist *.obj del *.obj
  43.     @if exist *.map del *.map
  44.     @if exist *.sym del *.sym
  45.     @if exist *.res del *.res
  46.     @if exist *.pdb del *.pdb
  47.     @if exist *.exp del *.exp
  48.     @if exist *.lib del *.lib
  49.