1# $FreeBSD$ 2 3AWKSRC= ${.CURDIR}/../../contrib/one-true-awk 4.PATH: ${AWKSRC} 5 6PROG= nawk 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} 10 11DPADD= ${LIBM} 12LDADD= -lm 13 14LINKS= ${BINDIR}/nawk ${BINDIR}/awk 15MLINKS= nawk.1 awk.1 16 17CLEANFILES= maketab proctab.c ytab.h 18 19ytab.h: awkgram.h 20 ln -sf ${.ALLSRC} ${.TARGET} 21 22proctab.c: maketab 23 ./maketab > proctab.c 24 25build-tools: maketab 26maketab: ytab.h ${AWKSRC}/maketab.c 27 28CLEANFILES+= nawk.1 29nawk.1: awk.1 30 cat ${.ALLSRC} > ${.TARGET} 31 32.include <bsd.prog.mk> 33