Makefile revision 70711
189136Snik# $FreeBSD: head/sys/modules/if_ef/Makefile 70711 2001-01-06 14:00:42Z obrien $ 289136Snik 389136Snik.PATH: ${.CURDIR}/../../net 489136Snik 589136SnikKMOD= if_ef 689136SnikSRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h 789136SnikNOMAN= 889136Snik 989136Snik# If you need only limited number of frames comment out unneeded ones 1089136Snik# this will reduce number of visible devices 1189136SnikETHER_II= 1289136SnikETHER_8023= 1389136SnikETHER_8022= 1489136SnikETHER_SNAP= 1589136Snik 1689136Snik.if defined(EFDEBUG) 1789136SnikCFLAGS+= -DEF_DEBUG 1889136Snik.endif 1989136Snik 2089136Snikopt_inet.h: 2189136Snik echo "#define INET 1" > opt_inet.h 2289136Snik 2389136Snikopt_ipx.h: 2489136Snik echo "#define IPX 1" > opt_ipx.h 2589136Snik 2689136Snikopt_ef.h: 2789136Snik.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP 2889136Snik.if defined(${frame}) 2989136Snik echo "#define ${frame} 1" >> opt_ef.h 3089136Snik.endif 31196820Sdes.endfor 3289136Snik 3389136Snikload: all 3489136Snik /sbin/kldload ./${PROG} 3589136Snik 3689136Snikunload: 3789136Snik /sbin/kldunload ${PROG} 3889136Snik 3989136Snik.include <bsd.kmod.mk> 4092590Sru