Merge from vendor branch HEIMDAL:
[dragonfly.git] / sys / net / ef / Makefile
1 # $FreeBSD: src/sys/modules/if_ef/Makefile,v 1.2.2.2 2001/04/25 11:24:03 ru Exp $
2 # $DragonFly: src/sys/net/ef/Makefile,v 1.2 2003/06/17 04:28:44 dillon Exp $
3
4 .PATH:  ${.CURDIR}/../../net
5
6 KMOD=   if_ef
7 SRCS=   if_ef.c opt_ipx.h opt_inet.h opt_ef.h
8 MAN=    ef.4
9
10 # If you need only limited number of frames comment out unneeded ones
11 # this will reduce number of visible devices
12 ETHER_II=
13 ETHER_8023=
14 ETHER_8022=
15 ETHER_SNAP=
16
17 CFLAGS+= ${PROTOS}
18
19 .if defined(EFDEBUG)
20 CFLAGS+= -DEF_DEBUG
21 .endif
22
23 opt_inet.h:
24         echo "#define INET 1" > opt_inet.h
25
26 opt_ipx.h:
27         echo "#define IPX 1" > opt_ipx.h
28
29 opt_ef.h:
30 .for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
31 .if defined(${frame})
32         echo "#define ${frame} 1" >> opt_ef.h
33 .endif
34 .endfor
35
36 load: all
37         /sbin/kldload ./${PROG}
38
39 unload:
40         /sbin/kldunload ${PROG}
41
42 .include <bsd.kmod.mk>