home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / ipc / ddeml / ddeprog / makefile next >
Encoding:
Makefile  |  1994-08-31  |  1.1 KB  |  45 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. !include <ntwin32.mak>
  4.  
  5. all: phtest.exe proghelp.dll
  6.  
  7. # Update the object files if necessary
  8.  
  9. phtest.obj: phtest.c
  10.     $(cc) $(cflags) $(cvars) $(cdebug) phtest.c
  11.  
  12. proghelp.obj: proghelp.c
  13.     $(cc) $(cflags) $(cvarsdll) $(cdebug) proghelp.c
  14.  
  15. # Update the resources if necessary
  16.  
  17. phtest.res: phtest.rc phtest.h
  18.     $(rc) $(rcvars) -r phtest.rc
  19.  
  20. phtest.rbj: phtest.res
  21.     cvtres -$(CPU) phtest.res -o phtest.rbj
  22.  
  23. # Update the import library
  24.  
  25. proghelp.lib: proghelp.obj proghelp.def
  26.     $(implib) -machine:$(CPU)     \
  27.     -def:proghelp.def        \
  28.     proghelp.obj             \
  29.     -out:proghelp.lib
  30.  
  31. # Update the dynamic link library
  32.  
  33. proghelp.dll: proghelp.obj proghelp.def
  34.     $(link) $(linkdebug) $(dllflags)     \
  35.     -base:0x1C000000  \
  36.     -out:proghelp.dll   \
  37.     proghelp.exp proghelp.obj $(guilibsdll)
  38.  
  39.  
  40. # Update the executable file if necessary.
  41. # If so, add the resource back in.
  42.  
  43. phtest.exe: phtest.obj proghelp.lib phtest.rbj
  44.     $(link) $(linkdebug) $(guiflags) -out:phtest.exe phtest.obj proghelp.lib phtest.rbj $(guilibs)
  45.