From 31b6c359c769bc5b470283ace587ff5ff68192bf Mon Sep 17 00:00:00 2001 From: Gregory Minshall Date: Mon, 15 Jun 1987 17:00:42 -0800 Subject: [PATCH] Add sourcelist and action targets. SCCS-vsn: usr.bin/tn3270/api/makefile 1.3 --- usr/src/usr.bin/tn3270/api/makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/usr/src/usr.bin/tn3270/api/makefile b/usr/src/usr.bin/tn3270/api/makefile index 55aed37dfb..77fd8c4df1 100644 --- a/usr/src/usr.bin/tn3270/api/makefile +++ b/usr/src/usr.bin/tn3270/api/makefile @@ -4,6 +4,10 @@ PRINT = lpr -p ALLC = apilib.c api_bsd.c api_exch.c ALLH = apilib.h api_exch.h +ALLPRINT = ${ALLH} ${ALLC} + +ALLSOURCE = ${ALLPRINT} + ALLO = apilib.o api_bsd.o api_exch.o apilib.a: ${ALLO} @@ -11,12 +15,22 @@ apilib.a: ${ALLO} ar cr $@ ${ALLO} ranlib $@ +clean: + -/bin/rm ${ALLO} errs apilib.a + +action: + ${ACTION} + test: apilib.a test.o ${CC} ${CFLAGS} -o $@ test.o apilib.a print: - ${PRINT} ${ALLH} ${ALLC} + ${PRINT} ${ALLPRINT} + +sourcelist: + for i in ${ALLSOURCE}; \ + do (echo ${DIRPATH}/$$i); done depend: grep '^#include' ${ALLC} | grep -v '<' | \ -- 2.20.1