Makefile revision 155979
154561Sbp# $FreeBSD: head/sys/modules/if_ef/Makefile 155979 2006-02-24 12:27:09Z yar $
254561Sbp
370711Sobrien.PATH: ${.CURDIR}/../../net
454561Sbp
570711SobrienKMOD=	if_ef
670711SobrienSRCS=	if_ef.c opt_ipx.h opt_inet.h opt_ef.h
754561Sbp
854561Sbp.if defined(EFDEBUG)
954561SbpCFLAGS+= -DEF_DEBUG
1054561Sbp.endif
1154561Sbp
12151350Syar.if !defined(KERNBUILDDIR)
13155979Syar# If you need only a limited number of frames, uncomment the needed ones.
14155979Syar# This will reduce the number of visible devices.  Note that the module
15155979Syar# will support all frames by default, i.e., when all are commented here.
16155979Syar#ETHER_II=
17155979Syar#ETHER_8023=
18155979Syar#ETHER_8022=
19155979Syar#ETHER_SNAP=
20155979Syar
2154561Sbpopt_inet.h:
2254561Sbp	echo "#define INET 1" > opt_inet.h
2354561Sbp
2454561Sbpopt_ipx.h:
2554561Sbp	echo "#define IPX 1" > opt_ipx.h
2654561Sbp
2756424Sbpopt_ef.h:
28155979Syar	touch opt_ef.h
2956424Sbp.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
3056424Sbp.if defined(${frame})
3156424Sbp	echo "#define ${frame} 1" >> opt_ef.h
3256424Sbp.endif
3356424Sbp.endfor
34151350Syar.endif
3556424Sbp
3660966Speter.include <bsd.kmod.mk>
37