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 13LIBADD= m 14 15LINKS= ${BINDIR}/awk ${BINDIR}/nawk 16MLINKS= awk.1 nawk.1 17 18CLEANFILES= maketab proctab.c ytab.h 19 20ytab.h: awkgram.h .NOMETA 21 ln -sf ${.ALLSRC} ${.TARGET} 22 23proctab.c: maketab 24 ./maketab > proctab.c 25 26build-tools: maketab 27maketab: ytab.h ${AWKSRC}/maketab.c 28 29.include <bsd.prog.mk> 30