1103028Ssobomax# $FreeBSD: releng/10.3/sys/modules/if_gre/Makefile 284066 2015-06-06 12:44:42Z ae $ 2284066Sae.include <bsd.own.mk> 3103028Ssobomax 4122699Sbms.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 5103028Ssobomax 6103028SsobomaxKMOD= if_gre 7284066SaeSRCS= if_gre.c opt_inet.h opt_inet6.h 8103028Ssobomax 9151350Syar.if !defined(KERNBUILDDIR) 10103028Ssobomaxopt_inet.h: 11103028Ssobomax echo "#define INET 1" > ${.TARGET} 12103028Ssobomax 13284066Sae.if ${MK_INET6_SUPPORT} != "no" 14122699Sbmsopt_inet6.h: 15122699Sbms echo "#define INET6 1" > ${.TARGET} 16284066Sae.endif 17284066Sae.else 18284066SaeOPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo 19284066Sae.if empty(OPT_INET) 20284066SaeMK_INET_SUPPORT=no 21284066Sae.endif 22284066SaeOPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 23284066Sae.if empty(OPT_INET6) 24284066SaeMK_INET6_SUPPORT=no 25284066Sae.endif 26284066Sae.endif 27122699Sbms 28284066Sae.if ${MK_INET_SUPPORT} != "no" 29284066SaeSRCS+= ip_gre.c 30151350Syar.endif 31103028Ssobomax 32284066Sae.if ${MK_INET6_SUPPORT} != "no" 33284066SaeSRCS+= ip6_gre.c 34284066Sae.endif 35284066Sae 36103028Ssobomax.include <bsd.kmod.mk> 37