1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 6 7KMOD= if_gif 8SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mrouting.h 9 10.if !defined(KERNBUILDDIR) 11opt_inet.h: 12 echo "#define INET 1" > ${.TARGET} 13 14.if ${MK_INET6_SUPPORT} != "no" 15opt_inet6.h: 16 echo "#define INET6 1" > ${.TARGET} 17.endif 18 19opt_mrouting.h: 20 echo "#define MROUTING 1" > ${.TARGET} 21.else 22OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h 23.if empty(OPT_INET6) 24MK_INET6_SUPPORT= no 25.endif 26.endif 27 28.if ${MK_INET6_SUPPORT} != "no" 29SRCS+= in6_gif.c 30.endif 31 32.include <bsd.kmod.mk> 33