2002-09-06 17:17:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-11-14 20:58:00 +00:00
|
|
|
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
|
2014-11-07 19:13:19 +00:00
|
|
|
.include "${.CURDIR}/../../conf/kern.opts.mk"
|
2002-09-06 17:17:33 +00:00
|
|
|
|
|
|
|
KMOD= if_gre
|
2014-11-07 19:13:19 +00:00
|
|
|
SRCS= if_gre.c opt_inet.h opt_inet6.h
|
|
|
|
|
2014-11-08 14:41:32 +00:00
|
|
|
.if defined(KERNBUILDDIR)
|
|
|
|
OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo
|
|
|
|
.if empty(OPT_INET)
|
|
|
|
MK_INET_SUPPORT=no
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2014-11-07 19:13:19 +00:00
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
SRCS+= ip_gre.c
|
|
|
|
.endif
|
|
|
|
|
2014-11-08 14:41:32 +00:00
|
|
|
.if defined(KERNBUILDDIR)
|
|
|
|
OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
|
|
|
|
.if empty(OPT_INET6)
|
|
|
|
MK_INET6_SUPPORT=no
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2014-11-07 19:13:19 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
SRCS+= ip6_gre.c
|
|
|
|
.endif
|
2002-09-06 17:17:33 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|