ef(4): Bring in some small fixes from FreeBSD.
[dragonfly.git] / sys / net / ef / Makefile
CommitLineData
c6882413 1# $FreeBSD: src/sys/modules/if_ef/Makefile,v 1.16 2009/06/08 19:57:35 bz Exp $
984263bc 2
c6882413
SW
3KMOD= if_ef
4SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h
984263bc 5
984263bc
MD
6.if defined(EFDEBUG)
7CFLAGS+= -DEF_DEBUG
8.endif
9
1b29ad66 10.if !defined(BUILDING_WITH_KERNEL)
c6882413
SW
11# If you need only a limited number of frames, uncomment the needed ones.
12# This will reduce the number of visible devices. Note that the module
13# will support all frames by default, i.e., when all are commented here.
14#ETHER_II=
15#ETHER_8023=
16#ETHER_8022=
17#ETHER_SNAP=
18
984263bc 19opt_inet.h:
e3f58167 20 echo "#define INET 1" > ${.TARGET}
984263bc
MD
21
22opt_ipx.h:
e3f58167 23 echo "#define IPX 1" > ${.TARGET}
984263bc
MD
24
25opt_ef.h:
c6882413 26 :> ${.TARGET}
984263bc
MD
27.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
28.if defined(${frame})
e3f58167 29 echo "#define ${frame} 1" >> ${.TARGET}
984263bc
MD
30.endif
31.endfor
c6882413 32.endif
984263bc 33
984263bc 34.include <bsd.kmod.mk>