Makefile revision 63726
1# $FreeBSD: head/sys/modules/if_ef/Makefile 63726 2000-07-21 14:54:13Z sheldonh $
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 you need only limited number of frames comment out unneeded ones
9# this will reduce number of visible devices
10ETHER_II=
11ETHER_8023=
12ETHER_8022=
13ETHER_SNAP=
14
15CFLAGS+= ${PROTOS}
16
17.if defined(EFDEBUG)
18CFLAGS+= -DEF_DEBUG
19.endif
20
21opt_inet.h:
22	echo "#define INET 1" > opt_inet.h
23
24opt_ipx.h:
25	echo "#define IPX 1" > opt_ipx.h
26
27opt_ef.h:
28.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
29.if defined(${frame})
30	echo "#define ${frame} 1" >> opt_ef.h
31.endif
32.endfor
33
34load: all
35	/sbin/kldload ./${PROG}
36
37unload:
38	/sbin/kldunload ${PROG}
39
40.include <bsd.kmod.mk>
41