Makefile revision 156813
1# $FreeBSD: head/sys/modules/if_gif/Makefile 156813 2006-03-17 18:54:44Z ru $
2
3.include <bsd.own.mk>
4
5.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
6
7KMOD=	if_gif
8SRCS=	if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \
9	opt_mrouting.h
10
11.if !defined(KERNBUILDDIR)
12opt_inet.h:
13	echo "#define INET 1" > ${.TARGET}
14
15.if ${MK_INET6_SUPPORT} != "no"
16opt_inet6.h:
17	echo "#define INET6 1" > ${.TARGET}
18.endif
19
20opt_mrouting.h:
21	echo "#define MROUTING 1" > ${.TARGET}
22.else
23OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h
24.if empty(OPT_INET6)
25MK_INET6_SUPPORT= no
26.endif
27.endif
28
29.if ${MK_INET6_SUPPORT} != "no"
30SRCS+=	in6_gif.c
31.endif
32
33.include <bsd.kmod.mk>
34