diff options
author | Darren Reed <darrenr@FreeBSD.org> | 2005-04-25 18:55:52 +0000 |
---|---|---|
committer | Darren Reed <darrenr@FreeBSD.org> | 2005-04-25 18:55:52 +0000 |
commit | f81bd860b1727881f283a4552dca535f611d2113 (patch) | |
tree | 6579d10bd047efc062e0bf08843a91eb486bdfc5 /sbin/ipf/ipmon | |
parent | 1033f3c55b0699675689ea8da80508e7fff6cbf7 (diff) | |
download | src-f81bd860b1727881f283a4552dca535f611d2113.tar.gz src-f81bd860b1727881f283a4552dca535f611d2113.zip |
create a new build heirarchy for ipfilter tools
Notes
Notes:
svn path=/head/; revision=145524
Diffstat (limited to 'sbin/ipf/ipmon')
-rw-r--r-- | sbin/ipf/ipmon/Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sbin/ipf/ipmon/Makefile b/sbin/ipf/ipmon/Makefile new file mode 100644 index 000000000000..8a71cb47e514 --- /dev/null +++ b/sbin/ipf/ipmon/Makefile @@ -0,0 +1,37 @@ +# $FreeBSD$ + +PROG= ipmon +SRCS= ipmon.c ipmon_y.c ipmon_l.c +MAN= ipmon.8 + +CFLAGS+= -DLOGFAC=LOG_LOCAL0 -I. + +DPSRCS+= ipmon_l.h ipmon_y.h + +CLEANFILES+= ipmon_y.c ipmon_y.h +CLEANFILES+= ipmon_l.c ipmon_l.h + +ipmon_y.c: ipmon_y.y + ${_MKTARGET_CREATE} + ${YACC} -d ${.ALLSRC} + sed -e 's/yy/ipmon_yy/g' \ + -e 's/"ipmon_y.y"/"..\/tools\/ipmon_y.y"/' \ + y.tab.c > ${.TARGET} + sed -e 's/yy/ipmon_yy/g' \ + y.tab.h > ${.TARGET:.c=.h} + +ipmon_y.h: ipmon_y.c + +ipmon_l.c: lexer.c + ${_MKTARGET_CREATE} + sed -e 's/yy/ipmon_yy/g' \ + -e 's/y.tab.h/ipmon_y.h/' \ + -e 's/lexer.h/ipmon_l.h/' \ + ${.ALLSRC} > ${.TARGET} + +ipmon_l.h: lexer.h + ${_MKTARGET_CREATE} + sed -e 's/yy/ipmon_yy/g' \ + ${.ALLSRC} > ${.TARGET} + +.include <bsd.prog.mk> |