Define that Dragonfly HAS isblank() as to fix the
[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.6 2004/04/18 00:15:35 drhodus Exp $
3
4 AWKSRC= ${.CURDIR}/../../contrib/awk20040207
5 .PATH: ${AWKSRC}
6
7 PROG=   awk
8 SRCS=   awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
9
10 CFLAGS+= -I. -I${AWKSRC} -DHAS_ISBLANK
11
12 DPADD=  ${LIBM}
13 LDADD=  -lm
14
15 CLEANFILES= maketab proctab.c ytab.h maketab.nx
16
17 ytab.h: awkgram.h
18         ln -sf ${.ALLSRC} ${.TARGET}
19
20 proctab.c: maketab.nx
21         ./maketab.nx > proctab.c
22
23 build-tools: maketab.nx
24
25 maketab.nx: ytab.h ${AWKSRC}/maketab.c
26
27 .include <bsd.prog.mk>