Makefile revision 193588
1226381Smarius# $FreeBSD: head/sys/modules/if_gif/Makefile 193588 2009-06-06 17:01:44Z rwatson $ 2130293Sscottl 3139749Simp.include <bsd.own.mk> 4130293Sscottl 5130293Sscottl.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 6130293Sscottl 7130293SscottlKMOD= if_gif 8130293SscottlSRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mrouting.h 9130293Sscottl 10130293Sscottl.if !defined(KERNBUILDDIR) 11130293Sscottlopt_inet.h: 12130293Sscottl echo "#define INET 1" > ${.TARGET} 13130293Sscottl 14130293Sscottl.if ${MK_INET6_SUPPORT} != "no" 15130293Sscottlopt_inet6.h: 16130293Sscottl echo "#define INET6 1" > ${.TARGET} 17130293Sscottl.endif 18130293Sscottl 19130293Sscottlopt_mrouting.h: 20130293Sscottl echo "#define MROUTING 1" > ${.TARGET} 21130293Sscottl.else 22130293SscottlOPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h 23130293Sscottl.if empty(OPT_INET6) 24130293SscottlMK_INET6_SUPPORT= no 25130293Sscottl.endif 26130293Sscottl.endif 27130293Sscottl 28130293Sscottl.if ${MK_INET6_SUPPORT} != "no" 29130293SscottlSRCS+= in6_gif.c 30130293Sscottl.endif 31130293Sscottl 32130293Sscottl.include <bsd.kmod.mk> 33130293Sscottl