home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / registry / makefile next >
Makefile  |  1996-04-09  |  566b  |  21 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. all: monkey.exe
  6.  
  7. # Update the resource if necessary
  8.  
  9. monkey.res: monkey.rc monkey.h
  10.     rc $(rcflags) $(rcvars) -r -fo monkey.res monkey.rc
  11.  
  12. # Update the object file if necessary
  13.  
  14. monkey.obj: monkey.c monkey.h
  15.     $(cc) $(cdebug) $(cflags) $(cvars) monkey.c
  16.  
  17. # Update the executable file if necessary, and if so, add the resource back in.
  18.  
  19. monkey.exe: monkey.obj monkey.res
  20.     $(link) $(linkdebug) $(guiflags) -out:monkey.exe monkey.obj monkey.res $(guilibs) advapi32.lib
  21.