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 / mrcv.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)\mrcv.h  \
  16.            $(ISVINCS)\winappc.h   \
  17.            $(ISVINCS)\wincsv.h
  18.  
  19. INCLUDE = $(INCLUDE);$(ISVINCS);$(source);
  20.  
  21. all: mrcv.exe
  22.  
  23. # Update the object files if necessary
  24.  
  25. mrcv.res: mrcv.rc
  26.     $(rc) -DWIN32 -fo temp.res -r mrcv.rc
  27.     cvtres temp.res -o mrcv.res -$(CPU)
  28.     del temp.res
  29.  
  30. mrcv.obj: mrcv.c $(headers)
  31.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -Fomrcv.obj mrcv.c
  32.  
  33. mrcv.exe: mrcv.obj mrcv.res $(snalibs)
  34.     $(link) -debug:full -debugtype:both $(guiflags) mrcv.res mrcv.obj $(snalibs) $(guilibsdll) -out:mrcv.exe
  35.  
  36.