summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_gre/Makefile
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-11-18 01:39:23 +0000
committerimp <imp@FreeBSD.org>2014-11-18 01:39:23 +0000
commit4cf51ebba90731abadd965ac2f66b5bf9cbaab75 (patch)
treead3f6abeafd09b78880deaadad7d3b1c0315ce8a /sys/modules/if_gre/Makefile
parenta4e560bdb2c08180884fb35ec39f0b2db8f01c9d (diff)
downloadFreeBSD-src-4cf51ebba90731abadd965ac2f66b5bf9cbaab75.zip
FreeBSD-src-4cf51ebba90731abadd965ac2f66b5bf9cbaab75.tar.gz
Use automated MK_INET*_SUPPORT code here as well.
Diffstat (limited to 'sys/modules/if_gre/Makefile')
-rw-r--r--sys/modules/if_gre/Makefile19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile
index 54ef274..b1d370a 100644
--- a/sys/modules/if_gre/Makefile
+++ b/sys/modules/if_gre/Makefile
@@ -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
OpenPOWER on IntegriCloud