1# $FreeBSD$ 2 3PACKAGE= ipf 4PROG= ippool 5SRCS= ${GENHDRS} ippool_y.c ippool_l.c ippool.c 6MAN= ippool.5 ippool.8 7CFLAGS+= -I. 8CFLAGS+= -Wno-error=unused-but-set-variable 9 10GENHDRS= ippool_l.h ippool_y.h 11CLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c 12 13ippool_y.c: ippool_y.y 14 ${YACC} -d ${.ALLSRC} 15 sed -e 's/yy/ippool_yy/g' \ 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