home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / mscwattc / apps / makefile.bor < prev    next >
Encoding:
Makefile  |  1991-11-26  |  1.5 KB  |  85 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.         echo done $(TEXTMODEL) make with debugging $(TEXTDEBUG)
  53.  
  54. cookie.exe: cookie.c
  55.  
  56. ping.exe: ping.c
  57.         $(CC)  ping.c $(CLIB)
  58.  
  59. daytime.exe: daytime.c
  60.         $(CC) daytime.c $(CLIB)
  61.  
  62. finger.exe: finger.c
  63.  
  64. lpr.exe: lpr.c
  65.         $(CC)  lpr.c $(CLIB)
  66.  
  67. lpq.exe: lpq.c
  68.         $(CC)  lpq.c $(CLIB)
  69.  
  70. tcpport.exe: tcpport.c
  71.         $(CC)  tcpport.c $(CLIB)
  72.  
  73. # test version of tcpport
  74. tcpport1.exe: tcpport1.c
  75.         $(CC)  tcpport1.c  $(CLIB)
  76.  
  77. rexec.exe: rexec.c
  78.         $(CC)  rexec.c $(CLIB)
  79.  
  80. ntime.exe: ntime.c
  81.         $(CC)  ntime.c $(CLIB)
  82.  
  83. tcpinfo.exe: tcpinfo.c
  84.         $(CC)  tcpinfo.c $(CLIB)
  85.