2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.own.mk>
|
2010-03-17 17:16:52 +01:00
|
|
|
|
2010-05-12 18:28:54 +02:00
|
|
|
PROG= awk
|
|
|
|
SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c
|
2011-04-27 15:00:52 +02:00
|
|
|
LDADD= -lm
|
|
|
|
DEPEND+= ${LIBM}
|
2010-05-12 18:28:54 +02:00
|
|
|
YHEADER= yes
|
2010-05-13 21:29:42 +02:00
|
|
|
QUIET_YACC= yes
|
|
|
|
|
2010-06-28 01:46:23 +02:00
|
|
|
CPPFLAGS+= -I. -I${.CURDIR}
|
|
|
|
|
2010-05-13 21:29:42 +02:00
|
|
|
build-tools: maketab
|
|
|
|
|
|
|
|
proctab.c: maketab
|
|
|
|
./maketab > proctab.c
|
|
|
|
|
2012-05-01 15:13:07 +02:00
|
|
|
maketab.lo: awkgram.h
|
2010-05-13 21:29:42 +02:00
|
|
|
|
2012-05-01 15:13:07 +02:00
|
|
|
|
|
|
|
maketab: maketab.lo
|
|
|
|
${HOST_LINK.c} maketab.lo -o $@
|
|
|
|
|
|
|
|
CLEANFILES= maketab proctab.c maketab.lo
|
2010-03-17 17:16:52 +01:00
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.prog.mk>
|