home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / spy / app / makefile < prev    next >
Makefile  |  1996-01-03  |  1KB  |  44 lines

  1. # Some nmake macros for Win32 apps development
  2.  
  3. !include <ntwin32.mak>
  4.  
  5.  
  6. # This line allows NMAKE to work as well
  7.  
  8. all: spy.exe
  9.  
  10. # Update the object file if necessary
  11.  
  12. spy.obj: spy.c spy.h spyfuncs.h 
  13.     $(cc) $(cflags) $(cvars) $(cdebug) spy.c
  14.  
  15. hook.obj: hook.c spy.h spyfuncs.h 
  16.     $(cc) $(cflags) $(cvars) $(cdebug) hook.c
  17.  
  18. dialogs.obj: dialogs.c spy.h spyfuncs.h
  19.     $(cc) $(cflags) $(cvars) $(cdebug) dialogs.c
  20.  
  21. misc.obj: misc.c spy.h spyfuncs.h
  22.     $(cc) $(cflags) $(cvars) $(cdebug) misc.c
  23.  
  24. wm.obj: wm.c spy.h spyfuncs.h 
  25.     $(cc) $(cflags) $(cvars) $(cdebug) wm.c
  26.  
  27. wprintf.obj: wprintf.c spy.h spyfuncs.h 
  28.     $(cc) $(cflags) $(cvars) $(cdebug) wprintf.c
  29.  
  30. # Update the resources if necessary
  31.  
  32. spy.res: spy.rc spy.h spyfuncs.h
  33.     $(rc) $(rcflags) $(rcvars)  spy.rc
  34.  
  35. # Update the executable file if necessary, and if so, add the resource back in.
  36.  
  37. spy.exe: spy.obj hook.obj dialogs.obj misc.obj wm.obj wprintf.obj spy.res
  38.     $(link) $(linkdebug) $(guiflags) -out:spy.exe   \
  39.     spy.obj hook.obj dialogs.obj misc.obj wm.obj \
  40.     wprintf.obj spy.res ..\dll\hook.lib $(guilibs) advapi32.lib
  41. !IF ("$(TARGETLANG)" == "LANG_JAPANESE") && ("$(OS)" == "Windows_NT")
  42.     rlman -p 932 -n 17 1 -a $*.exe $*.tok $*.exe
  43. !ENDIF
  44.