aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2014-11-07 19:13:19 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2014-11-07 19:13:19 +0000
commitf325335cafc940e54a1ea56560de6f25340c81b7 (patch)
tree63c3d4ed6b0c4afb2640b0e3d10ed1b045f2d63f /sys/modules
parent833e8dc5ab711a9485790d950801e32798d55558 (diff)
Notes
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile7
-rw-r--r--sys/modules/if_gre/Makefile11
-rw-r--r--sys/modules/if_me/Makefile8
3 files changed, 23 insertions, 3 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 2be703d51ff9..0ca6f63df72c 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -146,8 +146,9 @@ SUBDIR= \
if_edsc \
if_epair \
if_faith \
- if_gif \
+ ${_if_gif} \
${_if_gre} \
+ ${_if_me} \
if_lagg \
${_if_ndis} \
if_stf \
@@ -403,10 +404,12 @@ _random= random
defined(ALL_MODULES)
_carp= carp
_toecore= toecore
+_if_gif= if_gif
+_if_gre= if_gre
.endif
.if ${MK_INET_SUPPORT} != "no" || defined(ALL_MODULES)
-_if_gre= if_gre
+_if_me= if_me
_ipdivert= ipdivert
_ipfw= ipfw
.endif
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile
index 9c618d3651ff..db8f9f197a89 100644
--- a/sys/modules/if_gre/Makefile
+++ b/sys/modules/if_gre/Makefile
@@ -1,8 +1,17 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
+.include "${.CURDIR}/../../conf/kern.opts.mk"
KMOD= if_gre
-SRCS= if_gre.c ip_gre.c opt_inet.h opt_inet6.h
+SRCS= if_gre.c opt_inet.h opt_inet6.h
+
+.if ${MK_INET_SUPPORT} != "no"
+SRCS+= ip_gre.c
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+SRCS+= ip6_gre.c
+.endif
.include <bsd.kmod.mk>
diff --git a/sys/modules/if_me/Makefile b/sys/modules/if_me/Makefile
new file mode 100644
index 000000000000..1fa716fca495
--- /dev/null
+++ b/sys/modules/if_me/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../net
+
+KMOD= if_me
+SRCS= if_me.c
+
+.include <bsd.kmod.mk>