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