Makefile revision 145524
1# $FreeBSD: head/sbin/ipf/ippool/Makefile 145524 2005-04-25 18:55:52Z darrenr $ 2 3PROG= ippool 4SRCS= ippool_y.c ippool_l.c kmem.c ippool.c 5MAN= ippool.5 ippool.8 6CFLAGS+= -I. 7 8DPSRCS+= ippool_l.h ippool_y.h 9 10CLEANFILES+= ippool_y.c ippool_y.h 11CLEANFILES+= ippool_l.c ippool_l.h 12 13ippool_y.c: ippool_y.y 14 ${_MKTARGET_CREATE} 15 ${YACC} -d ${.ALLSRC} 16 sed -e 's/yy/ippool_yy/g' \ 17 -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 18 y.tab.c > ${.TARGET} 19 sed -e 's/yy/ippool_yy/g' \ 20 y.tab.h > ${.TARGET:.c=.h} 21 22ippool_y.h: ippool_y.c 23 24ippool_l.c: lexer.c 25 ${_MKTARGET_CREATE} 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 ${_MKTARGET_CREATE} 33 sed -e 's/yy/ippool_yy/g' \ 34 ${.ALLSRC} > ${.TARGET} 35 36.include <bsd.prog.mk> 37