home *** CD-ROM | disk | FTP | other *** search
- #
- # Makefile for COMD
- #
- # This program comes from the Waterloo TCP (WATTCP) collection, available
- # via anonymous FTP to 129.97.128.196 in pub/wattcp/*.zip. More information
- # may be found in that subdirectory.
- #
- # You may wish to change the following four parameters
- #
-
- TCCINCLUDE=L:\borlandc\include # path to borland c include files
- WATINCLUDE=..\..\include # path to WATTCP include files
- WATLIB=..\..\lib # path to WATTCP lib files
- DEBUG= D # set to D for disable, E for enable symbolic debugging
-
- #
- # NOTE: the third party serial port libraries will only link in small model,
- # so do not attempt to compile this application in large model!
- MODEL= S # set to L for large, S for small
- #
- #
- #
- # auto configure section
- #
- #
-
- !if '$(DEBUG)'=='E'
- IDEBUG=-v
- TEXTDEBUG=enabled
- !elif '$(DEBUG)'=='D'
- IDEBUG=-v-
- TEXTDEBUG=disabled
- #!else
- #!error DEBUG must be set to either E or D
- !endif
-
- !if '$(MODEL)'=='L'
- CMODEL=-ml
- CLIB=$(WATLIB)\wattcplg.lib
- TEXTMODEL=large
- !elif '$(MODEL)'=='S'
- CMODEL=-ms
- CLIB=$(WATLIB)\wattcpsm.lib
- TEXTMODEL=small
- !else
- !error MODEL must be set to either S or L
- !endif
-
- CFLAGS= $(CMODEL) -r- $(IDEBUG) -IL:\borlandc\include -I$(WATINCLUDE)
- CC= bcc $(CFLAGS)
-
- #
- #
- # list of executables
- #
- #
-
- exes.arc: comd.exe
-
- comd.exe: comd.c
- $(CC) -eCOMD comd.c tcomms.lib $(CLIB)
-
-