home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / begin / dll / makefile < prev    next >
Encoding:
Makefile  |  1994-08-31  |  1007 b   |  42 lines

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