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+= -I. -I${AWKSRC} 10 11DPADD= ${LIBM} 12LDADD= -lm 13 14.if ${MACHINE_ARCH} == "sparc64" 15LINKS= ${BINDIR}/nawk ${BINDIR}/awk 16MLINKS= nawk.1 awk.1 17.endif 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 30CLEANFILES+= nawk.1 31nawk.1: awk.1 32 ln -sf ${.ALLSRC} ${.TARGET} 33 34.include <bsd.prog.mk> 35