1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 4 5KMOD= ip_mroute 6 7SRCS= ip_mroute.c 8SRCS+= opt_inet.h opt_mac.h opt_mrouting.h 9SRCS+= opt_inet6.h 10 11.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no" 12SRCS+= ip6_mroute.c 13.endif 14 15.if !defined(KERNBUILDDIR) 16opt_inet.h: 17 echo "#define INET 1" > ${.TARGET} 18opt_mrouting.h: 19 echo "#define MROUTING 1" > ${.TARGET} 20.if !defined(MK_INET6_SUPPORT) || ${MK_INET6_SUPPORT} != "no" 21opt_inet6.h: 22 echo "#define INET6 1" > ${.TARGET} 23.endif 24.endif 25 26.include <bsd.kmod.mk> 27