aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2011-09-15 12:28:17 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2011-09-15 12:28:17 +0000
commitf2a66f8e17f4ca355bf278ecc9055fc2d3d2b04b (patch)
treeea8db0ab5404c97b7752f0849f1b9e592a441fd1 /sys/modules
parent3657c405e325e3ef26801998975fe2af97cc2ef3 (diff)
Notes
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/netgraph/ipfw/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/netgraph/ipfw/Makefile b/sys/modules/netgraph/ipfw/Makefile
index b40abcfbf57c2..cc3f0f24e2a0a 100644
--- a/sys/modules/netgraph/ipfw/Makefile
+++ b/sys/modules/netgraph/ipfw/Makefile
@@ -1,6 +1,20 @@
# $FreeBSD$
+.include <bsd.own.mk>
+
KMOD= ng_ipfw
-SRCS= ng_ipfw.c
+SRCS= ng_ipfw.c opt_inet.h opt_inet6.h
+
+.if !defined(KERNBUILDDIR)
+
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+.endif
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
.include <bsd.kmod.mk>