Makefile revision 162199
1145524Sdarrenr# $FreeBSD: head/sbin/ipf/ippool/Makefile 162199 2006-09-10 08:58:47Z obrien $ 2145524Sdarrenr 3145524SdarrenrPROG= ippool 4162199SobrienSRCS= ${GENHDRS} ippool_y.c ippool_l.c kmem.c ippool.c 5145524SdarrenrMAN= ippool.5 ippool.8 6145524SdarrenrCFLAGS+= -I. 7145524Sdarrenr 8162199SobrienGENHDRS= ippool_l.h ippool_y.h 9162199SobrienDPSRCS+= ${GENHDRS} 10145524Sdarrenr 11162199SobrienCLEANFILES+= ${GENHDRS} ippool_y.c ippool_l.c 12145524Sdarrenr 13145524Sdarrenrippool_y.c: ippool_y.y 14145524Sdarrenr ${YACC} -d ${.ALLSRC} 15145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 16145524Sdarrenr -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 17145524Sdarrenr y.tab.c > ${.TARGET} 18145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 19145524Sdarrenr y.tab.h > ${.TARGET:.c=.h} 20145524Sdarrenr 21145524Sdarrenrippool_y.h: ippool_y.c 22145524Sdarrenr 23145524Sdarrenrippool_l.c: lexer.c 24145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 25145524Sdarrenr -e 's/y.tab.h/ippool_y.h/' \ 26145524Sdarrenr -e 's/lexer.h/ippool_l.h/' \ 27145524Sdarrenr ${.ALLSRC} > ${.TARGET} 28145524Sdarrenr 29145524Sdarrenrippool_l.h: lexer.h 30145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 31145524Sdarrenr ${.ALLSRC} > ${.TARGET} 32145524Sdarrenr 33145524Sdarrenr.include <bsd.prog.mk> 34