2001-07-02 21:02:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2001-07-02 21:02:09 +00:00
|
|
|
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
|
|
|
|
|
|
|
|
KMOD= if_gif
|
2004-11-26 19:01:57 +00:00
|
|
|
SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \
|
2002-08-12 15:27:17 +00:00
|
|
|
opt_mrouting.h
|
2001-07-02 21:02:09 +00:00
|
|
|
|
2005-12-06 14:55:46 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
2001-07-02 21:02:09 +00:00
|
|
|
opt_inet.h:
|
|
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2004-12-03 23:43:02 +00:00
|
|
|
opt_inet6.h:
|
2001-07-02 21:02:09 +00:00
|
|
|
echo "#define INET6 1" > ${.TARGET}
|
2004-11-26 19:01:57 +00:00
|
|
|
.endif
|
2001-07-02 21:02:09 +00:00
|
|
|
|
|
|
|
opt_mrouting.h:
|
|
|
|
echo "#define MROUTING 1" > ${.TARGET}
|
2005-12-06 14:55:46 +00:00
|
|
|
.else
|
|
|
|
OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h
|
|
|
|
.if empty(OPT_INET6)
|
2006-03-17 18:54:44 +00:00
|
|
|
MK_INET6_SUPPORT= no
|
2005-12-06 14:55:46 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
2005-12-06 14:55:46 +00:00
|
|
|
SRCS+= in6_gif.c
|
|
|
|
.endif
|
2001-07-02 21:02:09 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|