home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / WATTCP / WNWATTCP.ZIP / APPS / MAKEFILE < prev    next >
Encoding:
Text File  |  1992-02-28  |  1.6 KB  |  86 lines

  1. #
  2. #       Makefile for Waterloo TCP sample applications
  3. #
  4.  
  5. TCCINCLUDE=c:\borlandc\include
  6. DEBUG= D        # set to D for disable, E for enable
  7. MODEL= L        # set to L for large, S for small
  8.  
  9. #
  10. #
  11. # auto configure section
  12. #
  13. #
  14.  
  15. !if '$(DEBUG)'=='E'
  16. IDEBUG=-v
  17. TEXTDEBUG=enabled
  18. !elif '$(DEBUG)'=='D'
  19. IDEBUG=-v-
  20. TEXTDEBUG=disabled
  21. #!else
  22. #!error  DEBUG must be set to either E or D
  23. !endif
  24.  
  25. !if '$(MODEL)'=='L'
  26. CMODEL=-ml
  27. CLIB=..\lib\ltcplib.lib ..\lib\lelib.lib
  28. TEXTMODEL=large
  29. !elif '$(MODEL)'=='S'
  30. CMODEL=-ms
  31. CLIB=..\lib\stcplib.lib ..\lib\selib.lib
  32. TEXTMODEL=small
  33. !else
  34. CMODEL=-mm
  35. CLIB=..\lib\mtcplib.lib ..\lib\melib.lib
  36. !endif
  37.  
  38. CFLAGS= $(CMODEL) -r- $(IDEBUG) -I$(TCCINCLUDE) -I..\include
  39. CC= bcc $(CFLAGS)
  40.  
  41. #
  42. #
  43. #  list of executables
  44. #
  45. #
  46.  
  47. .c.exe:
  48.         $(CC) $*.c $(CLIB)
  49.  
  50.  
  51. exes.arc: ping.exe daytime.exe finger.exe lpr.exe lpq.exe \
  52.         tcpport.exe rexec.exe ntime.exe tcpinfo.exe cookie.exe
  53.         echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)
  54.  
  55. cookie.exe: cookie.c
  56.  
  57. ping.exe: ping.c
  58.         $(CC)  ping.c $(CLIB)
  59.  
  60. daytime.exe: daytime.c
  61.         $(CC) daytime.c $(CLIB)
  62.  
  63. finger.exe: finger.c
  64.  
  65. lpr.exe: lpr.c
  66.         $(CC)  lpr.c $(CLIB)
  67.  
  68. lpq.exe: lpq.c
  69.         $(CC)  lpq.c $(CLIB)
  70.  
  71. tcpport.exe: tcpport.c
  72.         $(CC)  tcpport.c $(CLIB)
  73.  
  74. # test version of tcpport
  75. tcpport1.exe: tcpport1.c
  76.         $(CC)  tcpport1.c  $(CLIB)
  77.  
  78. rexec.exe: rexec.c
  79.         $(CC)  rexec.c $(CLIB)
  80.  
  81. ntime.exe: ntime.c
  82.         $(CC)  ntime.c $(CLIB)
  83.  
  84. tcpinfo.exe: tcpinfo.c
  85.         $(CC)  tcpinfo.c $(CLIB)
  86.