blob: 49361184f74ee41b953899e189c5173b800341f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $OpenBSD: Makefile,v 1.9 2007/11/24 15:43:08 espie Exp $
PROG= awk
LINKS= ${BINDIR}/awk ${BINDIR}/nawk
SRCS= ytab.c lex.c b.c main.c parse.c proctab.c tran.c lib.c run.c
LDADD= -lm
DPADD= ${LIBM}
CLEANFILES+=proctab.c maketab ytab.c ytab.h stamp_tabs
CFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
HOSTCFLAGS+=-I. -I${.CURDIR} -DHAS_ISBLANK -DNDEBUG
MLINKS= awk.1 nawk.1
# This just gets installed verbatim
.if make(install)
SUBDIR+= USD.doc
.endif
stamp_tabs: awkgram.y
${YACC} -d ${.CURDIR}/awkgram.y
mv y.tab.c ytab.c
mv y.tab.h ytab.h
touch $@
ytab.c ytab.h: stamp_tabs
proctab.c: maketab
./maketab >proctab.c
maketab: ytab.h maketab.c
${HOSTCC} ${HOSTCFLAGS} ${.CURDIR}/maketab.c -o $@
.include <bsd.prog.mk>
|