Initial import of binutils 2.22 on the new vendor branch
[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.5 2005/11/22 09:36:58 swildner 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
9 # If you need only limited number of frames comment out unneeded ones
10 # this will reduce number of visible devices
11 ETHER_II=
12 ETHER_8023=
13 ETHER_8022=
14 ETHER_SNAP=
15
16 CFLAGS+= ${PROTOS}
17
18 .if defined(EFDEBUG)
19 CFLAGS+= -DEF_DEBUG
20 .endif
21
22 .if !defined(BUILDING_WITH_KERNEL)
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 .endif
29
30 opt_ef.h:
31 .for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
32 .if defined(${frame})
33         echo "#define ${frame} 1" >> opt_ef.h
34 .endif
35 .endfor
36
37 .include <bsd.kmod.mk>