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