home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / memory / makefile next >
Makefile  |  1995-11-17  |  874b  |  38 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. all: memory.exe
  6.  
  7.  
  8. # Update the object file if necessary
  9.  
  10. memory.obj: memory.c memory.h
  11.     $(cc) $(cflags) $(cvars) $(cdebug) memory.c
  12.  
  13. nmmemcli.obj: nmmemcli.c
  14.     $(cc) $(cflags) $(cvars) $(cdebug) nmmemcli.c
  15.  
  16. nmmemsrv.obj: nmmemsrv.c
  17.     $(cc) $(cflags) $(cvars) $(cdebug) nmmemsrv.c
  18.  
  19.  
  20. # Update the resources if necessary
  21.  
  22. memory.res: memory.rc memory.h
  23.     rc $(rcflags) $(rcvars)  memory.rc
  24.  
  25. # Update the executable file if necessary, and if so, add the resource back in.
  26.  
  27. memory.exe: memory.obj nmmemcli.obj nmmemsrv.obj memory.res
  28.     $(link) $(linkdebug) $(guiflags) -out:memory.exe     \
  29.     memory.obj nmmemcli.obj nmmemsrv.obj memory.res $(guilibs) shell32.lib
  30.  
  31. clean:
  32.     del *.obj
  33.     del *.res
  34.     del *.vcp
  35.     del *.bak
  36.     del *.bsc
  37.     del *.sbr
  38.