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/ipf/Makefile | |
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/ipf/Makefile')
-rw-r--r-- | sbin/ipf/ipf/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/sbin/ipf/ipf/Makefile b/sbin/ipf/ipf/Makefile new file mode 100644 index 000000000000..fc8dfe798bf2 --- /dev/null +++ b/sbin/ipf/ipf/Makefile @@ -0,0 +1,44 @@ +# $FreeBSD$ + +.include <bsd.own.mk> # for MKDYNAMICROOT definition + +PROG= ipf +SRCS= ipf.c ipfcomp.c ipf_y.c ipf_l.c +MAN= ipf.8 ipf.4 ipf.5 ipl.4 +MLINKS= ipl.4 ipfilter.4 ipf.5 ipf.conf.5 ipf.5 ipf6.conf.5 +CFLAGS+= -I. + +DPSRCS+= ipf_l.h ipf_y.h + +CLEANFILES+= ipf_y.c ipf_y.h +CLEANFILES+= ipf_l.c ipf_l.h + +ipf_y.c: ipf_y.y + ${_MKTARGET_CREATE} + ${YACC} -d ${.ALLSRC} + sed -e 's/yy/ipf_yy/g' \ + -e 's/"ipf_y.y"/"..\/tools\/ipf_y.y"/' \ + y.tab.c > ${.TARGET} + sed -e 's/yy/ipf_yy/g' \ + y.tab.h > ${.TARGET:.c=.h} + +ipf_y.h: ipf_y.c + +ipf_l.c: lexer.c + ${_MKTARGET_CREATE} + sed -e 's/yy/ipf_yy/g' \ + -e 's/y.tab.h/ipf_y.h/' \ + -e 's/lexer.h/ipf_l.h/' \ + ${.ALLSRC} > ${.TARGET} + +ipf_l.h: lexer.h + ${_MKTARGET_CREATE} + sed -e 's/yy/ipf_yy/g' \ + ${.ALLSRC} > ${.TARGET} + +BINDIR= /sbin +.if defined(NO_DYNAMICROOT) +LDSTATIC?= -static +.endif + +.include <bsd.prog.mk> |