home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / netds / sna / aping / makeping.mak < prev   
Makefile  |  1997-04-09  |  2KB  |  52 lines

  1. !include <ntwin32.MAK>
  2.  
  3. !if "$(ISVLIBS)"==""
  4. !error "Set ISVLIBS to the directory containing WAPPC32.LIB and WCPIC32.LIB"
  5. !endif
  6. !if "$(ISVINCS)"==""
  7. !error "Set ISVINCS to the directory containing WINCPIC.H and WINAPPC.H"
  8. !endif
  9. !if "$(SAMPLEROOT)"==""
  10. !error "Set SAMPLEROOT to the root directory of the sample code tree"
  11. !endif
  12.  
  13. snalibs = $(ISVLIBS)\wappc32.lib $(ISVLIBS)\wcpic32.lib
  14. shared   = $(SAMPLEROOT)\shared
  15. headers  = $(shared)\cpicerrs.h   \
  16.            $(shared)\cpicdefs.h  \
  17.            $(shared)\cpicport.h  \
  18.            $(shared)\cpicinit.h  \
  19.            $(shared)\getopt.h    \
  20.            $(ISVINCS)\wincpic.h  \
  21.            $(ISVINCS)\winappc.h
  22.  
  23. INCLUDE = $(INCLUDE);$(ISVINCS);$(shared);
  24.  
  25. all: aping.exe apingd.exe
  26.  
  27. # Update the object files if necessary
  28.  
  29. apingd.obj: apingd.c $(headers)
  30.     $(cc) $(cflags) $(cvarsdll) $(cdebug) apingd.c
  31.  
  32. aping.obj: aping.c $(headers)
  33.     $(cc) $(cflags) $(cvarsdll) $(cdebug) aping.c
  34.  
  35. cpicport.obj: $(shared)\cpicport.c $(headers)
  36.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicport.c
  37.  
  38. cpicerr.obj: $(shared)\cpicerr.c $(headers)
  39.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicerr.c
  40.  
  41. getopt.obj: $(shared)\getopt.c $(headers)
  42.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\getopt.c
  43.  
  44. cpicinit.obj: $(shared)\cpicinit.c $(headers)
  45.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicinit.c
  46.  
  47. aping.exe: aping.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs)
  48.     $(link) $(linkdebug) $(conflags) aping.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs) $(conlibsdll) -out:aping.exe
  49.  
  50. apingd.exe: apingd.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs)
  51.     $(link) $(linkdebug) $(conflags) apingd.obj cpicport.obj cpicerr.obj getopt.obj cpicinit.obj $(snalibs) $(conlibsdll) advapi32.lib -out:apingd.exe
  52.