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 13NO_PIE= yes 14 15ippool_y.c: ippool_y.y 16 ${YACC} -d ${.ALLSRC} 17 sed -e 's/yy/ippool_yy/g' \ 18 -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 19 y.tab.c > ${.TARGET} 20 sed -e 's/yy/ippool_yy/g' \ 21 y.tab.h > ${.TARGET:.c=.h} 22 23ippool_y.h: ippool_y.c 24 25ippool_l.c: lexer.c 26 sed -e 's/yy/ippool_yy/g' \ 27 -e 's/y.tab.h/ippool_y.h/' \ 28 -e 's/lexer.h/ippool_l.h/' \ 29 ${.ALLSRC} > ${.TARGET} 30 31ippool_l.h: lexer.h 32 sed -e 's/yy/ippool_yy/g' \ 33 ${.ALLSRC} > ${.TARGET} 34 35.include <bsd.prog.mk> 36