1# $FreeBSD$ 2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5 6PROG= awk 7SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h 8 9CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64 10 11WARNS?= 1 12 13DPADD= ${LIBM} 14LDADD= -lm 15 16LINKS= ${BINDIR}/awk ${BINDIR}/nawk 17MLINKS= awk.1 nawk.1 18 19CLEANFILES= maketab proctab.c ytab.h 20 21ytab.h: awkgram.h 22 ln -sf ${.ALLSRC} ${.TARGET} 23 24proctab.c: maketab 25 ./maketab > proctab.c 26 27build-tools: maketab 28maketab: ytab.h ${AWKSRC}/maketab.c 29 30.include <bsd.prog.mk> 31