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 / appc / makeappc.mak 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)\appc
  15. headers  = $(source)\sendrecv.h  \
  16.            $(ISVINCS)\winappc.h   \
  17.            $(ISVINCS)\wincsv.h
  18.  
  19. INCLUDE = $(INCLUDE);$(ISVINCS);$(source);
  20.  
  21. all: sendtp.exe recvtp.exe
  22.  
  23. # Update the object files if necessary
  24.  
  25. sendtp.obj: sendrecv.c $(headers)
  26.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -DSENDTP -Fosendtp.obj sendrecv.c
  27.  
  28. recvtp.obj: sendrecv.c $(headers)
  29.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -DRECVTP -Forecvtp.obj sendrecv.c
  30.  
  31. sendtp.exe: sendtp.obj $(snalibs)
  32.     $(link) $(linkdebug) $(guiflags) sendtp.obj $(snalibs) $(guilibsdll) -out:sendtp.exe
  33.  
  34. recvtp.exe: recvtp.obj $(snalibs)
  35.     $(link) $(linkdebug) $(guiflags) recvtp.obj $(snalibs) $(guilibsdll) -out:recvtp.exe
  36.