2004-04-04 19:59:44 +04:00
|
|
|
# $NetBSD: Makefile,v 1.8 2004/04/04 15:59:44 mrg Exp $
|
2004-03-28 13:03:38 +04:00
|
|
|
|
|
|
|
PROG= ippool
|
|
|
|
SRCS= ippool_y.c ippool_l.c kmem.c ippool.c
|
2004-04-04 19:59:44 +04:00
|
|
|
MAN= ippool.5 ippool.8
|
2004-03-30 03:28:11 +04:00
|
|
|
CPPFLAGS+= -I.
|
2004-03-28 13:03:38 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
DPSRCS+= ippool_l.h ippool_y.h
|
|
|
|
|
2004-03-28 13:03:38 +04:00
|
|
|
CLEANFILES+= ippool_y.c ippool_y.h
|
|
|
|
CLEANFILES+= ippool_l.c ippool_l.h
|
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ippool_y.c: ippool_y.y
|
2004-03-29 08:39:59 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2004-03-31 04:34:32 +04:00
|
|
|
${YACC} -d ${.ALLSRC}
|
2004-03-28 13:03:38 +04:00
|
|
|
sed -e 's/yy/ippool_yy/g' \
|
|
|
|
-e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \
|
2004-03-31 04:34:32 +04:00
|
|
|
y.tab.c > ${.TARGET}
|
2004-03-28 13:03:38 +04:00
|
|
|
sed -e 's/yy/ippool_yy/g' \
|
2004-03-31 04:34:32 +04:00
|
|
|
y.tab.h > ${.TARGET:.c=.h}
|
2004-03-29 08:39:59 +04:00
|
|
|
|
|
|
|
ippool_y.h: ippool_y.c
|
2004-03-28 13:03:38 +04:00
|
|
|
|
2004-03-31 04:34:32 +04:00
|
|
|
ippool_l.c: lexer.c
|
2004-03-29 08:39:59 +04:00
|
|
|
${_MKTARGET_CREATE}
|
2004-03-28 13:03:38 +04:00
|
|
|
sed -e 's/yy/ippool_yy/g' \
|
2004-03-31 04:34:32 +04:00
|
|
|
-e 's/y.tab.h/ippool_y.h/' \
|
|
|
|
-e 's/lexer.h/ippool_l.h/' \
|
|
|
|
${.ALLSRC} > ${.TARGET}
|
2004-03-28 13:03:38 +04:00
|
|
|
|
2004-03-29 08:39:59 +04:00
|
|
|
ippool_l.h: lexer.h
|
|
|
|
${_MKTARGET_CREATE}
|
2004-03-28 13:03:38 +04:00
|
|
|
sed -e 's/yy/ippool_yy/g' \
|
2004-03-29 08:39:59 +04:00
|
|
|
${.ALLSRC} > ${.TARGET}
|
2004-03-28 13:03:38 +04:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|