Small speedups:
[dragonfly.git] / usr.bin / awk / Makefile
1 # $FreeBSD: src/usr.bin/awk/Makefile,v 1.9.2.1 2002/06/21 20:12:08 obrien Exp $
2 # $DragonFly: src/usr.bin/awk/Makefile,v 1.7 2004/11/09 08:47:36 joerg Exp $
3
4 AWKSRC= ${.CURDIR}/../../contrib/awk20040207
5 .PATH: ${AWKSRC}
6
7 PATCHES!=       echo ${.CURDIR}/patches/*.patch
8 CONTRIBDIR=     ${AWKSRC}
9
10 PROG=   awk
11 SRCS=   awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
12
13 CFLAGS+= -I. -I${AWKSRC} -DHAS_ISBLANK
14
15 DPADD=  ${LIBM}
16 LDADD=  -lm
17
18 CLEANFILES= maketab proctab.c ytab.h maketab.nx
19
20 ytab.h: awkgram.h
21         ln -sf ${.ALLSRC} ${.TARGET}
22
23 proctab.c: maketab.nx
24         ./maketab.nx > proctab.c
25
26 build-tools: maketab.nx
27
28 maketab.nx: ytab.h ${AWKSRC}/maketab.c
29
30 .include <bsd.prog.mk>