freebsd-nq/usr.bin/awk/Makefile

31 lines
527 B
Makefile
Raw Normal View History

# $FreeBSD$
AWKSRC= ${.CURDIR}/../../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
DPADD= ${LIBM}
LDADD= -lm
LINKS= ${BINDIR}/awk ${BINDIR}/nawk
MLINKS= awk.1 nawk.1
2002-04-09 07:05:24 +00:00
CLEANFILES= maketab proctab.c ytab.h
2002-04-09 07:05:24 +00:00
ytab.h: awkgram.h
2002-04-10 03:10:03 +00:00
ln -sf ${.ALLSRC} ${.TARGET}
proctab.c: maketab
./maketab > proctab.c
build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c
.include <bsd.prog.mk>