home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / winnt / pviewer / makefile < prev    next >
Makefile  |  1995-02-03  |  2KB  |  74 lines

  1. # Some nmake macros for Win32 apps development
  2.  
  3. TARGETOS=WINNT
  4.  
  5. !include <ntwin32.mak>
  6.  
  7.  
  8.  
  9.  
  10. # application specific C defines
  11.  
  12. cf = -DUNICODE
  13.  
  14.  
  15.  
  16.  
  17. # make the executable
  18.  
  19. all: pviewer.exe
  20.  
  21.  
  22.  
  23.  
  24. # Update the object file
  25.  
  26. pviewer.obj: pviewer.c perfdata.h pviewdat.h pviewdlg.h
  27.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) pviewer.c
  28.  
  29. pviewdat.obj: pviewdat.c perfdata.h pviewdat.h pviewdlg.h
  30.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) pviewdat.c
  31.  
  32. perfdata.obj: perfdata.c perfdata.h
  33.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) perfdata.c
  34.  
  35. objdata.obj: objdata.c perfdata.h
  36.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) objdata.c
  37.  
  38. instdata.obj: instdata.c perfdata.h
  39.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) instdata.c
  40.  
  41. cntrdata.obj: cntrdata.c perfdata.h
  42.     $(cc) $(cflags) $(cvars) $(cdebug) $(cf) cntrdata.c
  43.  
  44.  
  45.  
  46.  
  47. # Update the resources
  48.  
  49. pview.res: pview.rc pviewdlg.h pviewdlg.dlg
  50.     rc -r pview.rc
  51.  
  52.  
  53.  
  54.  
  55. # Update the executable file, add the resource in.
  56.  
  57. pviewer.exe:    pviewer.obj \
  58.                 pviewdat.obj \
  59.                 perfdata.obj \
  60.                 objdata.obj \
  61.                 instdata.obj \
  62.                 cntrdata.obj \
  63.                 pview.res
  64.     $(link) $(linkdebug) $(guiflags) -out:pviewer.exe \
  65.                 pviewer.obj \
  66.                 pviewdat.obj \
  67.                 perfdata.obj \
  68.                 objdata.obj \
  69.                 instdata.obj \
  70.                 cntrdata.obj \
  71.                 pview.res \
  72.                 $(guilibs) \
  73.                 advapi32.lib
  74.