aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipf/ipnat
diff options
context:
space:
mode:
authorDarren Reed <darrenr@FreeBSD.org>2005-04-25 18:55:52 +0000
committerDarren Reed <darrenr@FreeBSD.org>2005-04-25 18:55:52 +0000
commitf81bd860b1727881f283a4552dca535f611d2113 (patch)
tree6579d10bd047efc062e0bf08843a91eb486bdfc5 /sbin/ipf/ipnat
parent1033f3c55b0699675689ea8da80508e7fff6cbf7 (diff)
downloadsrc-f81bd860b1727881f283a4552dca535f611d2113.tar.gz
src-f81bd860b1727881f283a4552dca535f611d2113.zip
Notes
Diffstat (limited to 'sbin/ipf/ipnat')
-rw-r--r--sbin/ipf/ipnat/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/sbin/ipf/ipnat/Makefile b/sbin/ipf/ipnat/Makefile
new file mode 100644
index 000000000000..03ac597538b5
--- /dev/null
+++ b/sbin/ipf/ipnat/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+PROG= ipnat
+SRCS= ipnat.c ipnat_y.c ipnat_l.c
+MAN= ipnat.8 ipnat.4 ipnat.5
+MLINKS= ipnat.5 ipnat.conf.5
+CFLAGS+= -I.
+
+DPSRCS+= ipnat_l.h ipnat_y.h
+
+CLEANFILES+= ipnat_y.c ipnat_y.h
+CLEANFILES+= ipnat_l.c ipnat_l.h
+
+ipnat_y.c: ipnat_y.y
+ ${_MKTARGET_CREATE}
+ ${YACC} -d ${.ALLSRC}
+ sed -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.c/ipnat_y.c/' \
+ -e s/\"ipnat_y.y\"/\"..\\/tools\\/ipnat_y.y\"/ \
+ y.tab.c > ${.TARGET}
+ sed -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.h/ipnat_y.h/' \
+ y.tab.h > ${.TARGET:.c=.h}
+
+ipnat_y.h: ipnat_y.c
+
+ipnat_l.c: lexer.c
+ ${_MKTARGET_CREATE}
+ sed -e 's/yy/ipnat_yy/g' \
+ -e 's/y.tab.h/ipnat_y.h/' \
+ -e 's/lexer.h/ipnat_l.h/' \
+ ${.ALLSRC} > ${.TARGET}
+
+ipnat_l.h: lexer.h
+ ${_MKTARGET_CREATE}
+ sed -e 's/yy/ipnat_yy/g' \
+ ${.ALLSRC} > ${.TARGET}
+
+.include <bsd.prog.mk>