1# $FreeBSD$ 2 3PACKAGE= ipf 4PROG= ippool 5SRCS= ${GENHDRS} ippool_y.c ippool_l.c kmem.c ippool.c 6MAN= ippool.5 ippool.8 7CFLAGS+= -I. 8 9GENHDRS= ippool_l.h ippool_y.h 10CLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c 11 12ippool_y.c: ippool_y.y 13 ${YACC} -d ${.ALLSRC} 14 sed -e 's/yy/ippool_yy/g' \ 15 -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 16 y.tab.c > ${.TARGET} 17 sed -e 's/yy/ippool_yy/g' \ 18 y.tab.h > ${.TARGET:.c=.h} 19 20ippool_y.h: ippool_y.c 21 22ippool_l.c: lexer.c 23 sed -e 's/yy/ippool_yy/g' \ 24 -e 's/y.tab.h/ippool_y.h/' \ 25 -e 's/lexer.h/ippool_l.h/' \ 26 ${.ALLSRC} > ${.TARGET} 27 28ippool_l.h: lexer.h 29 sed -e 's/yy/ippool_yy/g' \ 30 ${.ALLSRC} > ${.TARGET} 31 32.include <bsd.prog.mk> 33