Makefile revision 59951
1153923Siedowse# $FreeBSD: head/sys/modules/if_ef/Makefile 59951 2000-05-04 12:08:52Z peter $ 2153923Siedowse 3153923Siedowse.PATH: ${.CURDIR}/../../net 4153923Siedowse 5153923SiedowseKMOD= if_ef 6153923SiedowseSRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h 7153923SiedowseMAN4= ef.4 8153923Siedowse 9153923Siedowse# If you need only limited number of frames comment out unneeded ones 10153923Siedowse# this will reduce number of visible devices 11153923SiedowseETHER_II= 12153923SiedowseETHER_8023= 13153923SiedowseETHER_8022= 14153923SiedowseETHER_SNAP= 15153923Siedowse 16153923SiedowseCFLAGS+= ${PROTOS} 17153923Siedowse 18153923Siedowse.if defined(EFDEBUG) 19153923SiedowseCFLAGS+= -DEF_DEBUG 20153923Siedowse.endif 21153923Siedowse 22153923Siedowseopt_inet.h: 23153923Siedowse echo "#define INET 1" > opt_inet.h 24153923Siedowse 25153923Siedowseopt_ipx.h: 26153923Siedowse echo "#define IPX 1" > opt_ipx.h 27194860Sthompsa 28206622Suqsopt_ef.h: 29153923Siedowse.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP 30153923Siedowse.if defined(${frame}) 31194860Sthompsa echo "#define ${frame} 1" >> opt_ef.h 32194860Sthompsa.endif 33194860Sthompsa.endfor 34194860Sthompsa 35194860Sthompsaload: all 36194860Sthompsa /sbin/kldload ./${PROG} 37194860Sthompsa 38194860Sthompsaunload: 39194860Sthompsa /sbin/kldunload ${PROG} 40194860Sthompsa 41194860Sthompsa.include "${.CURDIR}/../../conf/kmod.mk" 42194860Sthompsa