17de1daebSGlen BarberPACKAGE= ipf 2f81bd860SDarren ReedPROG= ipmon 3f8c9c519SDavid E. O'BrienSRCS= ${GENHDRS} ipmon.c ipmon_y.c ipmon_l.c 474bc7fc0SCy SchubertMAN= ipmon.5 ipmon.8 5015cb6cdSCy SchubertMLINKS= ipmon.5 ipmon.conf.5 6f81bd860SDarren Reed 7f81bd860SDarren ReedCFLAGS+= -DLOGFAC=LOG_LOCAL0 -I. 8*e01f9fe1SMateusz GuzikCFLAGS+= -Wno-error=unused-but-set-variable 9f81bd860SDarren Reed 10f8c9c519SDavid E. O'BrienGENHDRS+= ipmon_l.h ipmon_y.h 11f8c9c519SDavid E. O'BrienCLEANFILES+= ${GENHDRS} ipmon_y.c ipmon_l.c 12f81bd860SDarren Reed 13f81bd860SDarren Reedipmon_y.c: ipmon_y.y 14f81bd860SDarren Reed ${YACC} -d ${.ALLSRC} 15f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 16f81bd860SDarren Reed y.tab.c > ${.TARGET} 17f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 18f81bd860SDarren Reed y.tab.h > ${.TARGET:.c=.h} 19f81bd860SDarren Reed 20f81bd860SDarren Reedipmon_y.h: ipmon_y.c 21f81bd860SDarren Reed 22f81bd860SDarren Reedipmon_l.c: lexer.c 23f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 24f81bd860SDarren Reed -e 's/y.tab.h/ipmon_y.h/' \ 25f81bd860SDarren Reed -e 's/lexer.h/ipmon_l.h/' \ 26f81bd860SDarren Reed ${.ALLSRC} > ${.TARGET} 27f81bd860SDarren Reed 28f81bd860SDarren Reedipmon_l.h: lexer.h 29f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 30f81bd860SDarren Reed ${.ALLSRC} > ${.TARGET} 31f81bd860SDarren Reed 32f81bd860SDarren Reed.include <bsd.prog.mk> 33