mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
8d8bc0182e
the ROUTETABLES kernel option thus there is no need to include opt_route.h anymore in all consumers of vnet.h and no longer depend on it for module builds. Remove the hidden include in flowtable.h as well and leave the two explicit #includes in ip_input.c and ip_output.c.
37 lines
731 B
Makefile
37 lines
731 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../net
|
|
|
|
KMOD= if_ef
|
|
SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h
|
|
|
|
.if defined(EFDEBUG)
|
|
CFLAGS+= -DEF_DEBUG
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
# If you need only a limited number of frames, uncomment the needed ones.
|
|
# This will reduce the number of visible devices. Note that the module
|
|
# will support all frames by default, i.e., when all are commented here.
|
|
#ETHER_II=
|
|
#ETHER_8023=
|
|
#ETHER_8022=
|
|
#ETHER_SNAP=
|
|
|
|
opt_inet.h:
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
opt_ipx.h:
|
|
echo "#define IPX 1" > ${.TARGET}
|
|
|
|
opt_ef.h:
|
|
:> ${.TARGET}
|
|
.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
|
|
.if defined(${frame})
|
|
echo "#define ${frame} 1" >> ${.TARGET}
|
|
.endif
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|