179106Sbrooks# $FreeBSD: releng/10.3/sys/modules/if_gif/Makefile 294025 2016-01-14 17:44:45Z sbruno $ 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 20294025Ssbruno.endif 2179106Sbrooks 22294025Ssbruno.if !defined(KERNBUILDDIR) 23156813Sru.if ${MK_INET6_SUPPORT} != "no" 2479106Sbrooksopt_inet6.h: 2579106Sbrooks echo "#define INET6 1" > ${.TARGET} 26138119Sbrooks.endif 2779106Sbrooks 2879106Sbrooksopt_mrouting.h: 2979106Sbrooks echo "#define MROUTING 1" > ${.TARGET} 30153173Sru.else 31284066SaeOPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo 32153173Sru.if empty(OPT_INET6) 33156813SruMK_INET6_SUPPORT= no 34153173Sru.endif 35153173Sru.endif 3679106Sbrooks 37293778Sngie.if ${MK_INET_SUPPORT} != "no" 38293778SngieSRCS+= in_gif.c 39293778Sngie.endif 40293778Sngie 41156813Sru.if ${MK_INET6_SUPPORT} != "no" 42153173SruSRCS+= in6_gif.c 43153173Sru.endif 44153173Sru 4579106Sbrooks.include <bsd.kmod.mk> 46