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 / mping / makemult.mak < prev    next >
Encoding:
Makefile  |  1997-04-09  |  1.4 KB  |  42 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.            $(ISVINCS)\wincpic.h  \
  20.            $(ISVINCS)\winappc.h
  21.  
  22. INCLUDE = $(INCLUDE);$(ISVINCS);$(shared);
  23.  
  24. all: mpingd.exe
  25.  
  26. # Update the object files if necessary
  27.  
  28. mpingd.obj: mpingd.c $(headers)
  29.     $(cc) $(cflags) $(cvarsdll) $(cdebug) mpingd.c
  30.  
  31. cpicport.obj: $(shared)\cpicport.c $(headers)
  32.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -DEXITTHREAD $(shared)\cpicport.c
  33.  
  34. cpicerr.obj: $(shared)\cpicerr.c $(headers)
  35.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicerr.c
  36.  
  37. cpicinit.obj: $(shared)\cpicinit.c $(headers)
  38.     $(cc) $(cflags) $(cvarsdll) $(cdebug) $(shared)\cpicinit.c
  39.  
  40. mpingd.exe: mpingd.obj cpicport.obj cpicerr.obj cpicinit.obj $(snalibs)
  41.     $(link) $(linkdebug) $(conflags) mpingd.obj cpicport.obj cpicerr.obj cpicinit.obj $(snalibs) $(conlibsdll) advapi32.lib -out:mpingd.exe
  42.