1# $FreeBSD: releng/10.3/sys/modules/if_gif/Makefile 294025 2016-01-14 17:44:45Z sbruno $ 2 3.include <bsd.own.mk> 4 5.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 6 7KMOD= if_gif 8SRCS= if_gif.c opt_inet.h opt_inet6.h opt_mrouting.h 9 10.if !defined(KERNBUILDDIR) 11.if ${MK_INET_SUPPORT} != "no" 12opt_inet.h: 13 echo "#define INET 1" > ${.TARGET} 14.endif 15.else 16OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo 17.if empty(OPT_INET) 18MK_INET_SUPPORT= no 19.endif 20.endif 21 22.if !defined(KERNBUILDDIR) 23.if ${MK_INET6_SUPPORT} != "no" 24opt_inet6.h: 25 echo "#define INET6 1" > ${.TARGET} 26.endif 27 28opt_mrouting.h: 29 echo "#define MROUTING 1" > ${.TARGET} 30.else 31OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 32.if empty(OPT_INET6) 33MK_INET6_SUPPORT= no 34.endif 35.endif 36 37.if ${MK_INET_SUPPORT} != "no" 38SRCS+= in_gif.c 39.endif 40 41.if ${MK_INET6_SUPPORT} != "no" 42SRCS+= in6_gif.c 43.endif 44 45.include <bsd.kmod.mk> 46