kernel: Clean up some module Makefiles.
[dragonfly.git] / sys / net / ef / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/modules/if_ef/Makefile,v 1.2.2.2 2001/04/25 11:24:03 ru Exp $
984263bc
MD
2
3KMOD= if_ef
4SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h
984263bc
MD
5
6# If you need only limited number of frames comment out unneeded ones
7# this will reduce number of visible devices
8ETHER_II=
9ETHER_8023=
10ETHER_8022=
11ETHER_SNAP=
12
984263bc
MD
13.if defined(EFDEBUG)
14CFLAGS+= -DEF_DEBUG
15.endif
16
1b29ad66 17.if !defined(BUILDING_WITH_KERNEL)
984263bc 18opt_inet.h:
e3f58167 19 echo "#define INET 1" > ${.TARGET}
984263bc
MD
20
21opt_ipx.h:
e3f58167 22 echo "#define IPX 1" > ${.TARGET}
1b29ad66 23.endif
984263bc
MD
24
25opt_ef.h:
26.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP
27.if defined(${frame})
e3f58167 28 echo "#define ${frame} 1" >> ${.TARGET}
984263bc
MD
29.endif
30.endfor
31
984263bc 32.include <bsd.kmod.mk>