diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-04 20:34:50 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-04 20:34:50 +0000 |
commit | 7f1c98407cf2b223c1da59c14405846d569923fb (patch) | |
tree | e85dea1828c1d369d50fb41511b40a1866898c83 /usr.bin/awk/Makefile | |
parent | 941ca824f558fd952049b2434ab3b77d949bd7a6 (diff) |
AT&T awk, by B. W. Kernighan, with fixes from 4.4BSD and by me
Diffstat (limited to 'usr.bin/awk/Makefile')
-rw-r--r-- | usr.bin/awk/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile new file mode 100644 index 00000000000..936941b7d71 --- /dev/null +++ b/usr.bin/awk/Makefile @@ -0,0 +1,23 @@ +PROG= awk +SRCS= awkgram.c awklex.c b.c main.c parse.c proctab.c tran.c lib.c run.c +LDADD= -ll -lm +DPADD= ${LIBL} ${LIBM} +CLEANFILES+=awkgram.c awkgram.h awklex.c awklex.h proctab.c maketab prevawkgram.h +CFLAGS+=-I. -I${.CURDIR} + +awkgram.c awkgram.h prevawkgram.h: awkgram.y + ${YACC} -d ${.IMPSRC} + mv y.tab.c awkgram.c + mv y.tab.h awkgram.h + cmp -s awkgram.h prevawkgram.h || cp awkgram.h prevawkgram.h + +awklex.c: awklex.l + lex ${.IMPSRC} + mv lex.yy.c awklex.c + +proctab.c: maketab + ./maketab >proctab.c + +maketab.o: prevawkgram.h + +.include <bsd.prog.mk> |