1# $NetBSD: Makefile,v 1.9 2008/10/25 22:27:39 apb Exp $ 2 3PROG= ippool 4SRCS= ippool_y.c ippool_l.c kmem.c ippool.c 5MAN= ippool.5 ippool.8 6MLINKS= ippool.5 ippool.conf.5 7CPPFLAGS+= -I. 8 9DPSRCS+= ippool_l.h ippool_y.h 10 11CLEANFILES+= ippool_y.c ippool_y.h 12CLEANFILES+= ippool_l.c ippool_l.h 13 14ippool_y.c: ippool_y.y 15 ${_MKTARGET_CREATE} 16 ${YACC} -d ${.ALLSRC} 17 ${TOOL_SED} -e 's/yy/ippool_yy/g' \ 18 -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 19 y.tab.c > ${.TARGET} 20 ${TOOL_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 ${_MKTARGET_CREATE} 27 ${TOOL_SED} -e 's/yy/ippool_yy/g' \ 28 -e 's/y.tab.h/ippool_y.h/' \ 29 -e 's/lexer.h/ippool_l.h/' \ 30 ${.ALLSRC} > ${.TARGET} 31 32ippool_l.h: lexer.h 33 ${_MKTARGET_CREATE} 34 ${TOOL_SED} -e 's/yy/ippool_yy/g' \ 35 ${.ALLSRC} > ${.TARGET} 36 37.include <bsd.prog.mk> 38