blob: 79a0081d7878a2f0f27d8afa6a050b51152a8f0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $FreeBSD$
.PATH: ${.CURDIR}/../../net
KMOD= if_ef
SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h opt_route.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>
|