It was in my tree, the build worked, but I committed from contrib/one-true-awk rather than the top level, so was omitted.
38 lines
794 B
Makefile
38 lines
794 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
AWKSRC= ${SRCTOP}/contrib/one-true-awk
|
|
.PATH: ${AWKSRC}
|
|
|
|
PROG= awk
|
|
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
|
|
|
|
CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64
|
|
|
|
WARNS?= 1
|
|
|
|
LIBADD= m
|
|
|
|
LINKS= ${BINDIR}/awk ${BINDIR}/nawk
|
|
MLINKS= awk.1 nawk.1
|
|
|
|
CLEANFILES= maketab proctab.c ytab.h
|
|
|
|
# XXX: awkgram.c isn't really needed here but it is added to keep
|
|
# awkgram.h: .NOMETA respected.
|
|
ytab.h: awkgram.c awkgram.h .NOMETA
|
|
ln -sf ${.ALLSRC:M*.h} ${.TARGET}
|
|
|
|
proctab.c: maketab
|
|
${BTOOLSPATH:U.}/maketab awkgram.h > proctab.c
|
|
|
|
build-tools: maketab
|
|
maketab: ytab.h maketab.c ${BUILD_TOOLS_META}
|
|
|
|
# awk needs some work before we can connect these tests to the build
|
|
#HAS_TESTS=
|
|
#SUBDIR.${MK_TESTS}+= tests
|
|
|
|
.include <bsd.prog.mk>
|