Makefile revision 296373
1166886Srrs# $FreeBSD: releng/10.3/sys/modules/if_ef/Makefile 193744 2009-06-08 19:57:35Z bz $
2166886Srrs
3166886Srrs.PATH: ${.CURDIR}/../../net
4166886Srrs
5166886SrrsKMOD=	if_ef
6166886SrrsSRCS=	if_ef.c opt_ipx.h opt_inet.h opt_ef.h
7166886Srrs
8166886Srrs.if defined(EFDEBUG)
9166886SrrsCFLAGS+= -DEF_DEBUG
10166886Srrs.endif
11166886Srrs
12251067Semaste.if !defined(KERNBUILDDIR)
13166886Srrs# If you need only a limited number of frames, uncomment the needed ones.
14166886Srrs# This will reduce the number of visible devices.  Note that the module
15166886Srrs# will support all frames by default, i.e., when all are commented here.
16166886Srrs#ETHER_II=
17166886Srrs#ETHER_8023=
18166886Srrs#ETHER_8022=
19166886Srrs#ETHER_SNAP=
20166886Srrs
21166886Srrsopt_inet.h:
22166886Srrs	echo "#define INET 1" > ${.TARGET}
23166886Srrs
24166886Srrsopt_ipx.h:
25166886Srrs	echo "#define IPX 1" > ${.TARGET}
26166886Srrs
27166886Srrsopt_ef.h:
28166886Srrs	:> ${.TARGET}
29166886Srrs.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
30283739Stuexen.if defined(${frame})
31166886Srrs	echo "#define ${frame} 1" >> ${.TARGET}
32166886Srrs.endif
33166886Srrs.endfor
34166886Srrs.endif
35172253Sgabor
36166886Srrs.include <bsd.kmod.mk>
37166886Srrs