1f81bd860SDarren Reed# $FreeBSD$ 2f81bd860SDarren Reed 3*7de1daebSGlen BarberPACKAGE= ipf 4f81bd860SDarren ReedPROG= ipmon 5f8c9c519SDavid E. O'BrienSRCS= ${GENHDRS} ipmon.c ipmon_y.c ipmon_l.c 6f81bd860SDarren ReedMAN= ipmon.8 7f81bd860SDarren Reed 8f81bd860SDarren ReedCFLAGS+= -DLOGFAC=LOG_LOCAL0 -I. 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 -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \ 17f81bd860SDarren Reed y.tab.c > ${.TARGET} 18f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 19f81bd860SDarren Reed y.tab.h > ${.TARGET:.c=.h} 20f81bd860SDarren Reed 21f81bd860SDarren Reedipmon_y.h: ipmon_y.c 22f81bd860SDarren Reed 23f81bd860SDarren Reedipmon_l.c: lexer.c 24f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 25f81bd860SDarren Reed -e 's/y.tab.h/ipmon_y.h/' \ 26f81bd860SDarren Reed -e 's/lexer.h/ipmon_l.h/' \ 27f81bd860SDarren Reed ${.ALLSRC} > ${.TARGET} 28f81bd860SDarren Reed 29f81bd860SDarren Reedipmon_l.h: lexer.h 30f81bd860SDarren Reed sed -e 's/yy/ipmon_yy/g' \ 31f81bd860SDarren Reed ${.ALLSRC} > ${.TARGET} 32f81bd860SDarren Reed 33f81bd860SDarren Reed.include <bsd.prog.mk> 34