Makefile revision 145524
1145524Sdarrenr# $FreeBSD: head/sbin/ipf/ippool/Makefile 145524 2005-04-25 18:55:52Z darrenr $ 2145524Sdarrenr 3145524SdarrenrPROG= ippool 4145524SdarrenrSRCS= ippool_y.c ippool_l.c kmem.c ippool.c 5145524SdarrenrMAN= ippool.5 ippool.8 6145524SdarrenrCFLAGS+= -I. 7145524Sdarrenr 8145524SdarrenrDPSRCS+= ippool_l.h ippool_y.h 9145524Sdarrenr 10145524SdarrenrCLEANFILES+= ippool_y.c ippool_y.h 11145524SdarrenrCLEANFILES+= ippool_l.c ippool_l.h 12145524Sdarrenr 13145524Sdarrenrippool_y.c: ippool_y.y 14145524Sdarrenr ${_MKTARGET_CREATE} 15145524Sdarrenr ${YACC} -d ${.ALLSRC} 16145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 17145524Sdarrenr -e 's/"ippool_y.y"/"..\/tools\/ippool_y.y"/' \ 18145524Sdarrenr y.tab.c > ${.TARGET} 19145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 20145524Sdarrenr y.tab.h > ${.TARGET:.c=.h} 21145524Sdarrenr 22145524Sdarrenrippool_y.h: ippool_y.c 23145524Sdarrenr 24145524Sdarrenrippool_l.c: lexer.c 25145524Sdarrenr ${_MKTARGET_CREATE} 26145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 27145524Sdarrenr -e 's/y.tab.h/ippool_y.h/' \ 28145524Sdarrenr -e 's/lexer.h/ippool_l.h/' \ 29145524Sdarrenr ${.ALLSRC} > ${.TARGET} 30145524Sdarrenr 31145524Sdarrenrippool_l.h: lexer.h 32145524Sdarrenr ${_MKTARGET_CREATE} 33145524Sdarrenr sed -e 's/yy/ippool_yy/g' \ 34145524Sdarrenr ${.ALLSRC} > ${.TARGET} 35145524Sdarrenr 36145524Sdarrenr.include <bsd.prog.mk> 37