361870c4eb4558059315e5e01eb04bd5ba89c055
[dragonfly.git] / sys / net / ef / Makefile
1 # $FreeBSD: src/sys/modules/if_ef/Makefile,v 1.16 2009/06/08 19:57:35 bz Exp $
2
3 KMOD=   if_ef
4 SRCS=   if_ef.c opt_ipx.h opt_inet.h opt_ef.h
5
6 .if defined(EFDEBUG)
7 CFLAGS+= -DEF_DEBUG
8 .endif
9
10 .if !defined(BUILDING_WITH_KERNEL)
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
19 opt_inet.h:
20         echo "#define INET 1" > ${.TARGET}
21
22 opt_ipx.h:
23         echo "#define IPX 1" > ${.TARGET}
24
25 opt_ef.h:
26         :> ${.TARGET}
27 .for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
28 .if defined(${frame})
29         echo "#define ${frame} 1" >> ${.TARGET}
30 .endif
31 .endfor
32 .endif
33
34 .include <bsd.kmod.mk>