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 / showdib / makefile < prev    next >
Makefile  |  1995-11-27  |  971b  |  33 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <win32.mak>
  4.  
  5. all: showdib.exe
  6.  
  7. # Update the resource if necessary
  8.  
  9. showdib.res: showdib.rc showdib.h
  10.     rc $(rcflags) $(rcvars)  showdib.rc
  11.  
  12. # Update the object file if necessary
  13.  
  14. showdib.obj: showdib.c showdib.h
  15.     $(cc) $(cflags) $(cvars) $(cdebug) showdib.c
  16.  
  17. print.obj: print.c showdib.h
  18.     $(cc) $(cflags) $(cvars) $(cdebug) print.c
  19.  
  20. dlgopen.obj: dlgopen.c showdib.h
  21.     $(cc) $(cflags) $(cvars) $(cdebug) dlgopen.c
  22.  
  23. dib.obj: dib.c showdib.h
  24.     $(cc) $(cflags) $(cvars) $(cdebug) dib.c
  25.  
  26. drawdib.obj: drawdib.c showdib.h
  27.     $(cc) $(cflags) $(cvars) $(cdebug) drawdib.c
  28.  
  29. # Update the executable file if necessary, and if so, add the resource back in.
  30.  
  31. showdib.exe: showdib.obj print.obj dib.obj dlgopen.obj drawdib.obj showdib.res showdib.def
  32.     $(link) $(linkdebug) $(guiflags) -out:showdib.exe showdib.obj print.obj dib.obj dlgopen.obj drawdib.obj showdib.res $(guilibs)
  33.