diff options
author | darrenr <darrenr@FreeBSD.org> | 2005-04-25 18:55:52 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2005-04-25 18:55:52 +0000 |
commit | 0010fa7c211a53151ec98ece7065605e88f2ceff (patch) | |
tree | 6579d10bd047efc062e0bf08843a91eb486bdfc5 /sbin/ipf/ippool | |
parent | b4b1fd25b484b2a4e83ed288a19883238e00d3d3 (diff) | |
download | FreeBSD-src-0010fa7c211a53151ec98ece7065605e88f2ceff.zip FreeBSD-src-0010fa7c211a53151ec98ece7065605e88f2ceff.tar.gz |
create a new build heirarchy for ipfilter tools
Diffstat (limited to 'sbin/ipf/ippool')
-rw-r--r-- | sbin/ipf/ippool/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sbin/ipf/ippool/Makefile b/sbin/ipf/ippool/Makefile new file mode 100644 index 0000000..d1cf18a --- /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 <bsd.prog.mk> |