1# $FreeBSD$ 2 3AWKSRC= ${SRCTOP}/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 20# XXX: awkgram.c isn't really needed here but it is added to keep 21# awkgram.h: .NOMETA respected. 22ytab.h: awkgram.c awkgram.h .NOMETA 23 ln -sf ${.ALLSRC:M*.h} ${.TARGET} 24 25proctab.c: maketab 26 ${BTOOLSPATH:U.}/maketab > proctab.c 27 28build-tools: maketab 29maketab: ytab.h maketab.c ${BUILD_TOOLS_META} 30 31.include <bsd.prog.mk> 32