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 / msendrcv / msend.mak < prev    next >
Makefile  |  1997-04-09  |  1KB  |  36 lines

  1. !include <ntwin32.MAK>
  2.  
  3. !if "$(ISVLIBS)"==""
  4. !error "Set ISVLIBS to the directory containing WAPPC32.LIB and WINCSV32.LIB
  5. !endif
  6. !if "$(ISVINCS)"==""
  7. !error "Set ISVINCS to the directory containing WINAPPC.H and WINCSV.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)\wincsv32.lib
  14. source  = $(SAMPLEROOT)\msendrcv
  15. headers  = $(source)\msend.h  \
  16.            $(ISVINCS)\winappc.h   \
  17.            $(ISVINCS)\wincsv.h
  18.  
  19. INCLUDE = $(INCLUDE);$(ISVINCS);$(source);
  20.  
  21. all: msend.exe
  22.  
  23. # Update the object files if necessary
  24.  
  25. msend.res: msend.rc
  26.     $(rc) -DWIN32 -fo temp.res -r msend.rc
  27.     cvtres temp.res -o msend.res -$(CPU)
  28.     del temp.res
  29.  
  30. msend.obj: msend.c $(headers)
  31.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -Fomsend.obj msend.c
  32.  
  33. msend.exe: msend.obj msend.res $(snalibs)
  34.     $(link) -debug:full -debugtype:both $(guiflags) msend.res msend.obj $(snalibs) $(guilibsdll) -out:msend.exe
  35.  
  36.