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 / cpic / makecpic.mak < prev    next >
Makefile  |  1997-04-09  |  1KB  |  35 lines

  1. !include <ntwin32.MAK>
  2.  
  3. !if "$(ISVLIBS)"==""
  4. !error "Set ISVLIBS to the directory containing WCPIC32.LIB
  5. !endif
  6. !if "$(ISVINCS)"==""
  7. !error "Set ISVINCS to the directory containing WINCPIC.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)\wcpic32.lib
  14. source  = $(SAMPLEROOT)\cpic
  15. headers  = $(source)\cpicsr.h  \
  16.            $(ISVINCS)\wincpic.h
  17.  
  18. INCLUDE = $(INCLUDE);$(ISVINCS);$(source);
  19.  
  20. all: cpicsend.exe cpicrecv.exe
  21.  
  22. # Update the object files if necessary
  23.  
  24. cpicsend.obj: cpicsr.c $(headers)
  25.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -DCPICSEND -Focpicsend.obj cpicsr.c
  26.  
  27. cpicrecv.obj: cpicsr.c $(headers)
  28.     $(cc) $(cflags) $(cvarsdll) $(cdebug) -DCPICRECV -Focpicrecv.obj cpicsr.c
  29.  
  30. cpicsend.exe: cpicsend.obj $(snalibs)
  31.     $(link) $(linkdebug) $(guiflags) cpicsend.obj $(snalibs) $(guilibsdll) -out:cpicsend.exe
  32.  
  33. cpicrecv.exe: cpicrecv.obj $(snalibs)
  34.     $(link) $(linkdebug) $(guiflags) cpicrecv.obj $(snalibs) $(guilibsdll) -out:cpicrecv.exe
  35.