home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / winnt / plgblt / makefile < prev    next >
Makefile  |  1996-04-09  |  674b  |  25 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. TARGETOS=WINNT
  4.  
  5. !include <ntwin32.mak>
  6.  
  7. all: plgblt.exe
  8.  
  9. # Update the resource if necessary
  10. plgblt.res: plgblt.rc plgblt.h
  11.     rc $(rcvars) $(rcflags) -r -fo plgblt.res plgblt.rc
  12.  
  13. # Inference rule for updating the object files
  14. .c.obj:
  15.     $(cc) $(cdebug) $(cflags) $(cvars) $*.c
  16.  
  17. # Update the executable file if necessary, and if so, add the resource back in.
  18. plgblt.exe: plgblt.obj track.obj bitmap.obj plgblt.res plgblt.def
  19.     $(link) $(linkdebug) $(guiflags) -out:plgblt.exe plgblt.obj track.obj bitmap.obj plgblt.res $(guilibs)
  20.  
  21.  
  22. # Clean up everything except .exe file
  23. clean:
  24.     del *.obj *.res
  25.