makefile (966B)
1 # 2 # FILE 3 # 4 # Makefile build termcap library 5 # 6 # KEY WORDS 7 # 8 # libraries 9 # test functions 10 # 11 # SYNOPSIS 12 # 13 # make compile the library sources 14 # make tests compile sources for tests 15 # 16 # DESCRIPTION 17 # 18 # Standard make file for building the termcap library and tests. 19 # 20 # AUTHOR 21 # 22 # Fred Fish 23 # 24 25 CC = msc 26 MODEL = L 27 CFLAGS = -A${MODEL} -DDGK 28 29 TSOURCES = testtcp.c 30 LSOURCES = tgetent.c tgetflag.c tgetnum.c tgetstr.c tgoto.c tputs.c \ 31 isdigit.c fgetlr.c 32 33 34 TOBJECTS = testtcp.obj 35 LOBJECTS = tgetent.obj tgetflag.obj tgetnum.obj tgetstr.obj tgoto.obj \ 36 tputs.obj isdigit.obj fgetlr.obj 37 38 termlib.lib : $(LOBJECTS) 39 lib termlib.lib -+ $(LOBJECTS); 40 41 install: termlib.lib 42 mv termlib.lib \lib\${MODEL}termlib.lib 43 44 all: library tests 45 46 tests : testtcp 47 48 testtcp : testtcp.obj 49 link testtcp.obj, testtcp,, \lib\termcap 50 # $(CC) -o testtcp testtcp.obj -ltermcap 51 52 testtcp.obj : testtcp.c 53 $(CC) -c $(CFLAGS) testtcp.c 54 55 # 56 # Clean up the directory. 57 # 58 59 clean: 60 rm *.obj