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