Makefile revision 293778
179106Sbrooks# $FreeBSD: stable/10/sys/modules/if_gif/Makefile 293778 2016-01-12 18:24:22Z ngie $ 279106Sbrooks 3156813Sru.include <bsd.own.mk> 4156813Sru 579106Sbrooks.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6 679106Sbrooks 779106SbrooksKMOD= if_gif 8293778SngieSRCS= if_gif.c opt_inet.h opt_inet6.h opt_mrouting.h 979106Sbrooks 10153173Sru.if !defined(KERNBUILDDIR) 11293778Sngie.if ${MK_INET_SUPPORT} != "no" 1279106Sbrooksopt_inet.h: 1379106Sbrooks echo "#define INET 1" > ${.TARGET} 14293778Sngie.endif 15293778Sngie.else 16293778SngieOPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo 17293778Sngie.if empty(OPT_INET) 18293778SngieMK_INET_SUPPORT= no 19293778Sngie.endif 2079106Sbrooks 21156813Sru.if ${MK_INET6_SUPPORT} != "no" 2279106Sbrooksopt_inet6.h: 2379106Sbrooks echo "#define INET6 1" > ${.TARGET} 24138119Sbrooks.endif 2579106Sbrooks 2679106Sbrooksopt_mrouting.h: 2779106Sbrooks echo "#define MROUTING 1" > ${.TARGET} 28153173Sru.else 29284066SaeOPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 30153173Sru.if empty(OPT_INET6) 31156813SruMK_INET6_SUPPORT= no 32153173Sru.endif 33153173Sru.endif 3479106Sbrooks 35293778Sngie.if ${MK_INET_SUPPORT} != "no" 36293778SngieSRCS+= in_gif.c 37293778Sngie.endif 38293778Sngie 39156813Sru.if ${MK_INET6_SUPPORT} != "no" 40153173SruSRCS+= in6_gif.c 41153173Sru.endif 42153173Sru 4379106Sbrooks.include <bsd.kmod.mk> 44