5 AWKSRC= ${SRCTOP}/contrib/one-true-awk
9 SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
11 CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64
17 LINKS= ${BINDIR}/awk ${BINDIR}/nawk
20 CLEANFILES= maketab proctab.c ytab.h
22 # XXX: awkgram.c isn't really needed here but it is added to keep
23 # awkgram.h: .NOMETA respected.
24 ytab.h: awkgram.c awkgram.h .NOMETA
25 ln -sf ${.ALLSRC:M*.h} ${.TARGET}
28 ${BTOOLSPATH:U.}/maketab awkgram.h > proctab.c
31 maketab: ytab.h maketab.c ${BUILD_TOOLS_META}
33 # awk needs some work before we can connect these tests to the build
35 #SUBDIR.${MK_TESTS}+= tests
37 .include <bsd.prog.mk>