home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / hamradio / wattcp.zip / MAKEFILE < prev    next >
Text File  |  1992-05-05  |  2KB  |  94 lines

  1. #
  2. #       Makefile for Waterloo TCP sample applications
  3. #
  4.  
  5. TCCINCLUDE=L:\borlandc\include
  6. DEBUG= D        # 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) -IL:\borlandc\include -I..\include
  38. CC= bcc $(CFLAGS)
  39.  
  40. #
  41. #
  42. #  list of executables
  43. #
  44. #
  45.  
  46. .c.exe:
  47.         $(CC) $*.c $(CLIB)
  48.  
  49.  
  50. exes.arc: ping.exe daytime.exe finger.exe lpr.exe lpq.exe \
  51.         tcpport.exe rexec.exe ntime.exe tcpinfo.exe cookie.exe \
  52.         popdump.exe ph.exe tcptalk.exe
  53.         echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)
  54.  
  55. cookie.exe: cookie.c
  56.  
  57. popdump.exe: popdump.c
  58.  
  59. ping.exe: ping.c
  60.         $(CC)  ping.c $(CLIB)
  61.  
  62. daytime.exe: daytime.c
  63.         $(CC) daytime.c $(CLIB)
  64.  
  65. finger.exe: finger.c
  66.  
  67. lpr.exe: lpr.c
  68.         $(CC)  lpr.c $(CLIB)
  69.  
  70. lpq.exe: lpq.c
  71.         $(CC)  lpq.c $(CLIB)
  72.  
  73. tcpport.exe: tcpport.c
  74.         $(CC)  tcpport.c $(CLIB)
  75.  
  76. # test version of tcpport
  77. tcpport1.exe: tcpport1.c
  78.         $(CC)  tcpport1.c  $(CLIB)
  79.  
  80. rexec.exe: rexec.c
  81.         $(CC)  rexec.c $(CLIB)
  82.  
  83. ntime.exe: ntime.c
  84.         $(CC)  ntime.c $(CLIB)
  85.  
  86. tcpinfo.exe: tcpinfo.c
  87.         $(CC)  tcpinfo.c $(CLIB)
  88.  
  89. ph.exe: ph.c
  90.         $(CC)  ph.c  $(CLIB)
  91.  
  92. tcptalk.exe: tcptalk.c
  93.         $(CC)  tcptalk.c $(CLIB)
  94.