From 668ed8aa024461af37a6c16a2ccbf1b6d7208aed Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 18 Nov 2014 01:39:23 +0000 Subject: [PATCH] Use automated MK_INET*_SUPPORT code here as well. --- sys/modules/if_gre/Makefile | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/sys/modules/if_gre/Makefile b/sys/modules/if_gre/Makefile index 54ef274419a..b1d370a47ce 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