home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / MSDOS / WATTCP / COMD.ZIP / MAKEFILE < prev    next >
Encoding:
Text File  |  1991-09-15  |  1.4 KB  |  63 lines

  1. #
  2. #       Makefile for COMD
  3. #
  4. # This program comes from the Waterloo TCP (WATTCP) collection, available
  5. # via anonymous FTP to 129.97.128.196 in pub/wattcp/*.zip.  More information
  6. # may be found in that subdirectory.
  7. #
  8. # You may wish to change the following four parameters
  9. #
  10.  
  11. TCCINCLUDE=L:\borlandc\include  # path to borland c include files
  12. WATINCLUDE=..\..\include        # path to WATTCP include files
  13. WATLIB=..\..\lib                # path to WATTCP lib files
  14. DEBUG= D                # set to D for disable, E for enable symbolic debugging
  15.  
  16. #
  17. #  NOTE: the third party serial port libraries will only link in small model,
  18. #        so do not attempt to compile this application in large model!
  19. MODEL= S                        # set to L for large, S for small
  20. #
  21. #
  22. #
  23. # auto configure section
  24. #
  25. #
  26.  
  27. !if '$(DEBUG)'=='E'
  28. IDEBUG=-v
  29. TEXTDEBUG=enabled
  30. !elif '$(DEBUG)'=='D'
  31. IDEBUG=-v-
  32. TEXTDEBUG=disabled
  33. #!else
  34. #!error  DEBUG must be set to either E or D
  35. !endif
  36.  
  37. !if '$(MODEL)'=='L'
  38. CMODEL=-ml
  39. CLIB=$(WATLIB)\wattcplg.lib
  40. TEXTMODEL=large
  41. !elif '$(MODEL)'=='S'
  42. CMODEL=-ms
  43. CLIB=$(WATLIB)\wattcpsm.lib
  44. TEXTMODEL=small
  45. !else
  46. !error  MODEL must be set to either S or L
  47. !endif
  48.  
  49. CFLAGS= $(CMODEL) -r- $(IDEBUG) -IL:\borlandc\include -I$(WATINCLUDE)
  50. CC= bcc $(CFLAGS)
  51.  
  52. #
  53. #
  54. #  list of executables
  55. #
  56. #
  57.  
  58. exes.arc: comd.exe
  59.  
  60. comd.exe: comd.c
  61.         $(CC) -eCOMD comd.c tcomms.lib $(CLIB)
  62.  
  63.