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