home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / CEREBRUM / WAT9609.ZIP / APPS / MAKEFILE < prev    next >
Text File  |  1996-09-24  |  2KB  |  99 lines

  1. #
  2. #       Makefile for Waterloo TCP sample applications
  3. #
  4.  
  5. TCCINCLUDE=L:\borlandc\include
  6. DEBUG= E        # set to D for disable, E for enable
  7. MODEL= S        # 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\wattcplg.lib
  28. TEXTMODEL=large
  29. !elif '$(MODEL)'=='S'
  30. CMODEL=-ms
  31. CLIB=..\lib\wattcpsm.lib
  32. TEXTMODEL=small
  33. !else
  34. !error  MODEL must be set to either S or L
  35. !endif
  36.  
  37. CFLAGS= $(CMODEL) -r- $(IDEBUG) -ID:\borlandc\include -I..\include
  38. #CFLAGS= $(CMODEL) -r- $(IDEBUG) -IC:\bc4\include -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.         popdump.exe ph.exe tcptalk.exe
  54. # host.exe
  55.         echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)
  56.  
  57. cookie.exe: cookie.c
  58.  
  59. popdump.exe: popdump.c
  60.  
  61. ping.exe: ping.c
  62.         $(CC)  ping.c $(CLIB)
  63.  
  64. daytime.exe: daytime.c
  65.         $(CC) daytime.c $(CLIB)
  66.  
  67. finger.exe: finger.c
  68.  
  69. lpr.exe: lpr.c
  70.         $(CC)  lpr.c $(CLIB)
  71.  
  72. lpq.exe: lpq.c
  73.         $(CC)  lpq.c $(CLIB)
  74.  
  75. tcpport.exe: tcpport.c
  76.         $(CC)  tcpport.c $(CLIB)
  77.  
  78. # test version of tcpport
  79. tcpport1.exe: tcpport1.c
  80.         $(CC)  tcpport1.c  $(CLIB)
  81.  
  82. rexec.exe: rexec.c
  83.         $(CC)  rexec.c $(CLIB)
  84.  
  85. ntime.exe: ntime.c
  86.         $(CC)  ntime.c $(CLIB)
  87.  
  88. tcpinfo.exe: tcpinfo.c
  89.         $(CC)  tcpinfo.c $(CLIB)
  90.  
  91. ph.exe: ph.c
  92.         $(CC)  ph.c  $(CLIB)
  93.  
  94. tcptalk.exe: tcptalk.c
  95.         $(CC)  tcptalk.c $(CLIB)
  96.  
  97. host.exe: host.c
  98.         $(CC)  host.c $(CLIB)
  99.