Makefile revision 54561
1# $FreeBSD: head/sys/modules/if_ef/Makefile 54561 1999-12-13 16:42:17Z bp $
2
3.PATH:  ${.CURDIR}/../../net
4
5KMOD=   if_ef
6SRCS=   if_ef.c opt_ipx.h opt_inet.h
7MAN4=	ef.4
8
9# If you need only limited number of frames comment out unneeded ones
10# this will reduce number of visible devices
11ETHER_II=
12ETHER_8023=
13ETHER_8022=
14ETHER_SNAP=
15
16NBPF?=	1
17
18CFLAGS+= ${PROTOS}
19
20.if defined(ETHER_II)
21CFLAGS+= -DETHER_II
22.endif
23
24.if defined(ETHER_8023)
25CFLAGS+= -DETHER_8023
26.endif
27
28.if defined(ETHER_8022)
29CFLAGS+= -DETHER_8022
30.endif
31
32.if defined(ETHER_SNAP)
33CFLAGS+= -DETHER_SNAP
34.endif
35
36.if defined(EFDEBUG)
37CFLAGS+= -DEF_DEBUG
38.endif
39
40opt_inet.h:
41	echo "#define INET 1" > opt_inet.h
42
43opt_ipx.h:
44	echo "#define IPX 1" > opt_ipx.h
45
46load: all
47	/sbin/kldload ./${PROG}
48
49unload:
50	/sbin/kldunload ${PROG}
51
52.include <bsd.kmod.mk>
53