388e590f95
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
34 lines
614 B
Makefile
34 lines
614 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
|
|
|
|
KMOD= if_gif
|
|
SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \
|
|
opt_mrouting.h
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_inet.h:
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
opt_inet6.h:
|
|
echo "#define INET6 1" > ${.TARGET}
|
|
.endif
|
|
|
|
opt_mrouting.h:
|
|
echo "#define MROUTING 1" > ${.TARGET}
|
|
.else
|
|
OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h
|
|
.if empty(OPT_INET6)
|
|
MK_INET6_SUPPORT= no
|
|
.endif
|
|
.endif
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
SRCS+= in6_gif.c
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|