Makefile revision 293778
1# $FreeBSD: stable/10/sys/modules/if_gif/Makefile 293778 2016-01-12 18:24:22Z ngie $ 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 21.if ${MK_INET6_SUPPORT} != "no" 22opt_inet6.h: 23 echo "#define INET6 1" > ${.TARGET} 24.endif 25 26opt_mrouting.h: 27 echo "#define MROUTING 1" > ${.TARGET} 28.else 29OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 30.if empty(OPT_INET6) 31MK_INET6_SUPPORT= no 32.endif 33.endif 34 35.if ${MK_INET_SUPPORT} != "no" 36SRCS+= in_gif.c 37.endif 38 39.if ${MK_INET6_SUPPORT} != "no" 40SRCS+= in6_gif.c 41.endif 42 43.include <bsd.kmod.mk> 44