mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Use automated MK_INET*_SUPPORT code here as well.
This commit is contained in:
parent
7bfa86f62a
commit
668ed8aa02
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274640
@ -1,29 +1,16 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
|
||||
.include "${.CURDIR}/../../conf/kern.opts.mk"
|
||||
SYSDIR?=${.CURDIR}/../..
|
||||
.PATH: ${SYSDIR}/net ${SYSDIR}/netinet ${SYSDIR}/netinet6
|
||||
.include "${SYSDIR}/conf/kern.opts.mk"
|
||||
|
||||
KMOD= if_gre
|
||||
SRCS= if_gre.c opt_inet.h opt_inet6.h
|
||||
|
||||
.if defined(KERNBUILDDIR)
|
||||
OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo
|
||||
.if empty(OPT_INET)
|
||||
MK_INET_SUPPORT=no
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MK_INET_SUPPORT} != "no"
|
||||
SRCS+= ip_gre.c
|
||||
.endif
|
||||
|
||||
.if defined(KERNBUILDDIR)
|
||||
OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
|
||||
.if empty(OPT_INET6)
|
||||
MK_INET6_SUPPORT=no
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
SRCS+= ip6_gre.c
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user