Makefile revision 155979
1# $FreeBSD: head/sys/modules/if_ef/Makefile 155979 2006-02-24 12:27:09Z yar $
2
3.PATH: ${.CURDIR}/../../net
4
5KMOD=	if_ef
6SRCS=	if_ef.c opt_ipx.h opt_inet.h opt_ef.h
7
8.if defined(EFDEBUG)
9CFLAGS+= -DEF_DEBUG
10.endif
11
12.if !defined(KERNBUILDDIR)
13# If you need only a limited number of frames, uncomment the needed ones.
14# This will reduce the number of visible devices.  Note that the module
15# will support all frames by default, i.e., when all are commented here.
16#ETHER_II=
17#ETHER_8023=
18#ETHER_8022=
19#ETHER_SNAP=
20
21opt_inet.h:
22	echo "#define INET 1" > opt_inet.h
23
24opt_ipx.h:
25	echo "#define IPX 1" > opt_ipx.h
26
27opt_ef.h:
28	touch opt_ef.h
29.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
30.if defined(${frame})
31	echo "#define ${frame} 1" >> opt_ef.h
32.endif
33.endfor
34.endif
35
36.include <bsd.kmod.mk>
37