summaryrefslogtreecommitdiffstats
path: root/sys/modules/if_ef/Makefile
blob: 3e6ef70075bf450fe152c192651dff71a71ed0bb (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
# $FreeBSD$

.PATH: ${.CURDIR}/../../net

KMOD=	if_ef
SRCS=	if_ef.c opt_ipx.h opt_inet.h opt_ef.h

# If you need only limited number of frames comment out unneeded ones
# this will reduce number of visible devices
ETHER_II=
ETHER_8023=
ETHER_8022=
ETHER_SNAP=

.if defined(EFDEBUG)
CFLAGS+= -DEF_DEBUG
.endif

.if !defined(KERNBUILDDIR)
opt_inet.h:
	echo "#define INET 1" > opt_inet.h

opt_ipx.h:
	echo "#define IPX 1" > opt_ipx.h

opt_ef.h:
.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
.if defined(${frame})
	echo "#define ${frame} 1" >> opt_ef.h
.endif
.endfor
.endif

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud