PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/usr.bin/awk/Makefile

https://bitbucket.org/freebsd/freebsd-head/
Makefile | 30 lines | 18 code | 11 blank | 1 comment | 0 complexity | 0f91b44ab3e64cf1a5a5c51077368312 MD5 | raw file
 1# $FreeBSD$
 2
 3AWKSRC=	${.CURDIR}/../../contrib/one-true-awk
 4.PATH: ${AWKSRC}
 5
 6PROG=	awk
 7SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h
 8
 9CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64
10
11WARNS?=	1
12
13DPADD=	${LIBM}
14LDADD=	-lm
15
16LINKS=	${BINDIR}/awk ${BINDIR}/nawk
17MLINKS=	awk.1 nawk.1
18
19CLEANFILES= maketab proctab.c ytab.h
20
21ytab.h: awkgram.h
22	ln -sf ${.ALLSRC} ${.TARGET}
23
24proctab.c: maketab
25	./maketab > proctab.c
26
27build-tools: maketab
28maketab: ytab.h ${AWKSRC}/maketab.c
29
30.include <bsd.prog.mk>