From f81bd860b1727881f283a4552dca535f611d2113 Mon Sep 17 00:00:00 2001 From: Darren Reed Date: Mon, 25 Apr 2005 18:55:52 +0000 Subject: create a new build heirarchy for ipfilter tools --- sbin/ipf/ippool/Makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 sbin/ipf/ippool/Makefile (limited to 'sbin/ipf/ippool/Makefile') diff --git a/sbin/ipf/ippool/Makefile b/sbin/ipf/ippool/Makefile new file mode 100644 index 000000000000..d1cf18ad605d --- /dev/null +++ b/sbin/ipf/ippool/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PROG= ippool +SRCS= ippool_y.c ippool_l.c kmem.c ippool.c +MAN= ippool.5 ippool.8 +CFLAGS+= -I. + +DPSRCS+= ippool_l.h ippool_y.h + +CLEANFILES+= ippool_y.c ippool_y.h +CLEANFILES+= ippool_l.c ippool_l.h + +ippool_y.c: ippool_y.y + ${_MKTARGET_CREATE} + ${YACC} -d ${.ALLSRC} + sed -e 's/yy/ippool_yy/g' \ + -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ + y.tab.c > ${.TARGET} + sed -e 's/yy/ippool_yy/g' \ + y.tab.h > ${.TARGET:.c=.h} + +ippool_y.h: ippool_y.c + +ippool_l.c: lexer.c + ${_MKTARGET_CREATE} + sed -e 's/yy/ippool_yy/g' \ + -e 's/y.tab.h/ippool_y.h/' \ + -e 's/lexer.h/ippool_l.h/' \ + ${.ALLSRC} > ${.TARGET} + +ippool_l.h: lexer.h + ${_MKTARGET_CREATE} + sed -e 's/yy/ippool_yy/g' \ + ${.ALLSRC} > ${.TARGET} + +.include -- cgit v1.2.3