Makefile revision 193744
1284345Ssjg# $FreeBSD: head/sys/modules/if_ef/Makefile 193744 2009-06-08 19:57:35Z bz $ 2284345Ssjg 3284345Ssjg.PATH: ${.CURDIR}/../../net 4284345Ssjg 5284345SsjgKMOD= if_ef 6284345SsjgSRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h 7284345Ssjg 8284345Ssjg.if defined(EFDEBUG) 9284345SsjgCFLAGS+= -DEF_DEBUG 10284345Ssjg.endif 11284345Ssjg 12284345Ssjg.if !defined(KERNBUILDDIR) 13284345Ssjg# If you need only a limited number of frames, uncomment the needed ones. 14284345Ssjg# This will reduce the number of visible devices. Note that the module 15284345Ssjg# will support all frames by default, i.e., when all are commented here. 16284345Ssjg#ETHER_II= 17284345Ssjg#ETHER_8023= 18284345Ssjg#ETHER_8022= 19284345Ssjg#ETHER_SNAP= 20284345Ssjg 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