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