home *** CD-ROM | disk | FTP | other *** search
Makefile | 1987-10-27 | 1.1 KB | 64 lines |
- #
- # FILE
- #
- # Makefile build termcap library
- #
- # KEY WORDS
- #
- # libraries
- # test functions
- #
- # SYNOPSIS
- #
- # make compile the library sources
- # make tests compile sources for tests
- #
- # DESCRIPTION
- #
- # Standard make file for building the termcap library and tests.
- #
- # AUTHOR
- #
- # Fred Fish
- #
-
- MWCDIR = c:
- CC = $(MWCDIR)\bin\cc.ttp
- CFLAGS = -O
-
- TSOURCES = testtcp.c
- LSOURCES = tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c \
- isdigit.c fgetlr.c
-
-
- TOBJECTS = testtcp.o
- LOBJECTS = tgetent.o tgetflag.o tgetnum.o tgetstr.o tgoto.o \
- tputs.o isdigit.o fgetlr.o
-
- termcap.lib : $(LOBJECTS)
- echo Now put all the object files into library "libtermcap.a"
- ar rs libtermc.a $(LOBJECTS)
-
- install: libtermc.a
- mv libtermc.a $(MWCDIR)\lib\libtermc.a
-
- all: termcap.lib tests
-
- tests : testtcp.tos worms.ttp
-
- worms.ttp: worms.o
- $(CC) $(CFLAGS) -o worms.ttp worms.o -ltermc
-
- testtcp.tos : testtcp.o
- $(CC) -o testtcp.tos testtcp.o -ltermc
-
- testtcp.o : testtcp.c
- $(CC) -c $(CFLAGS) testtcp.c
-
- #
- # Clean up the directory.
- #
-
- clean:
- rm *.o
-