Defaults for btconfig and sdpd rc.d scripts.
[dragonfly.git] / usr.bin / awk / Makefile
blob1b6aa73606253e9c8378ca10eac997ae53494ec4
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.12 2007/08/27 16:50:51 pavalos Exp $
4 AWKSRC= ${.CURDIR}/../../contrib/awk20070501
5 .PATH: ${AWKSRC}
7 PATCHES!= echo ${.CURDIR}/patches/*.patch
8 CONTRIBDIR= ${AWKSRC}
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 SRCS+= ${PATCHES}
13 WARNS?= 2
15 CFLAGS+= -I. -I${AWKSRC} -DHAS_ISBLANK
17 DPADD= ${LIBM}
18 LDADD= -lm
20 CLEANFILES= maketab proctab.c ytab.h maketab.nx
22 ytab.h: awkgram.h
23 ${LN} -sf ${.ALLSRC} ${.TARGET}
25 proctab.c: maketab.nx
26 ./maketab.nx > proctab.c
28 build-tools: maketab.nx
30 maketab.nx: ytab.h ${AWKSRC}/maketab.c
32 .include <bsd.prog.mk>