Makefile revision 284066
1# $FreeBSD: stable/10/sys/modules/if_gre/Makefile 284066 2015-06-06 12:44:42Z ae $ 2.include <bsd.own.mk> 3 4.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 5 6KMOD= if_gre 7SRCS= if_gre.c opt_inet.h opt_inet6.h 8 9.if !defined(KERNBUILDDIR) 10opt_inet.h: 11 echo "#define INET 1" > ${.TARGET} 12 13.if ${MK_INET6_SUPPORT} != "no" 14opt_inet6.h: 15 echo "#define INET6 1" > ${.TARGET} 16.endif 17.else 18OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo 19.if empty(OPT_INET) 20MK_INET_SUPPORT=no 21.endif 22OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 23.if empty(OPT_INET6) 24MK_INET6_SUPPORT=no 25.endif 26.endif 27 28.if ${MK_INET_SUPPORT} != "no" 29SRCS+= ip_gre.c 30.endif 31 32.if ${MK_INET6_SUPPORT} != "no" 33SRCS+= ip6_gre.c 34.endif 35 36.include <bsd.kmod.mk> 37