home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / snmp / testdll / makefile next >
Makefile  |  1996-08-09  |  790b  |  36 lines

  1. # Nmake macros for building Windows 32-Bit apps
  2.  
  3. TARGETOS=WINNT
  4.  
  5. !include <win32.mak>
  6.  
  7. all: testdll.dll
  8.  
  9. # Update the object files if necessary
  10.  
  11. testdll.obj: testdll.c
  12.      $(cc) $(cflags) $(cvarsdll) $(cdebug) testdll.c
  13.  
  14. testmib.obj: testmib.c
  15.      $(cc) $(cflags) $(cvarsdll) $(cdebug) testmib.c
  16.  
  17.  
  18. # Update the import library
  19.  
  20. testdll.lib: testdll.obj testmib.obj testdll.def
  21.      $(implib) -machine:$(CPU)     \
  22.      -def:testdll.def     \
  23.      testdll.obj          \
  24.      testmib.obj          \
  25.      -out:testdll.lib
  26.  
  27. # Update the dynamic link library
  28.  
  29. testdll.dll: testdll.lib testdll.obj testmib.obj testdll.def
  30.      
  31.      $(link) $(lflags) $(dlllflags) \
  32.      -base:0x1C000000  \
  33.      -out:testdll.dll   \
  34.      testdll.exp testdll.obj testmib.obj \
  35.          $(guilibsdll) snmpapi.lib
  36.