1# $FreeBSD$ 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" > ${.TARGET} 23 24opt_ipx.h: 25 echo "#define IPX 1" > ${.TARGET} 26 27opt_ef.h: 28 :> ${.TARGET} 29.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP 30.if defined(${frame}) 31 echo "#define ${frame} 1" >> ${.TARGET} 32.endif 33.endfor 34.endif 35 36.include <bsd.kmod.mk> 37