home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / input / mouseinfo / makefile next >
Makefile  |  1996-07-19  |  834b  |  43 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. TARGETOS=WINNT
  4. !include <win32.mak>
  5.  
  6.  
  7. !IF "$(TARGETLANG)" == ""
  8. all: mousinfo.exe
  9. !ELSE
  10. all: WARN_MSG
  11. !ENDIF
  12.  
  13.  
  14. WARN_MSG:
  15.  @echo "Warning: new mouse functionality not available in beta"
  16.  
  17.  
  18.  
  19. # Update the object file if necessary
  20.  
  21. mousinfo.obj: mousinfo.c mousinfo.h
  22.     $(cc) $(cflags) $(cvars) $(cdebug) /c mousinfo.c
  23.  
  24.  
  25. # Update the resources if necessary
  26.  
  27. mousinfo.res: mousinfo.rc mousinfo.h
  28.     rc $(rcflags) $(rcvars)  mousinfo.rc
  29.  
  30. # Update the executable file if necessary, and if so, add the resource back in.
  31.  
  32. mousinfo.exe: mousinfo.obj  mousinfo.res
  33.     $(link) $(linkdebug) $(guiflags) /out:mousinfo.exe \
  34.     mousinfo.obj mousinfo.res $(guilibs)
  35.  
  36. clean:
  37.     del *.obj
  38.     del *.res
  39.     del *.vcp
  40.     del *.bak
  41.     del *.bsc
  42.     del *.sbr
  43.