diff options
| author | Boris Popov <bp@FreeBSD.org> | 2000-01-23 03:35:11 +0000 |
|---|---|---|
| committer | Boris Popov <bp@FreeBSD.org> | 2000-01-23 03:35:11 +0000 |
| commit | 5d94d71cd990d0fec132f51a7f3e7ee99d700909 (patch) | |
| tree | 6560a3885e99ee9f44d3ddb6b0944db87e18cc13 /sys/modules | |
| parent | 1d575e0fd368fec8929aaffe3372f47aeffb2b99 (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/if_ef/Makefile | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/sys/modules/if_ef/Makefile b/sys/modules/if_ef/Makefile index eb0286c06d66..d009c2aecb8a 100644 --- a/sys/modules/if_ef/Makefile +++ b/sys/modules/if_ef/Makefile @@ -3,12 +3,12 @@ .PATH: ${.CURDIR}/../../net KMOD= if_ef -SRCS= if_ef.c opt_ipx.h opt_inet.h +SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h MAN4= ef.4 # If you need only limited number of frames comment out unneeded ones # this will reduce number of visible devices -ETHER_II= +#ETHER_II= ETHER_8023= ETHER_8022= ETHER_SNAP= @@ -17,22 +17,6 @@ NBPF?= 1 CFLAGS+= ${PROTOS} -.if defined(ETHER_II) -CFLAGS+= -DETHER_II -.endif - -.if defined(ETHER_8023) -CFLAGS+= -DETHER_8023 -.endif - -.if defined(ETHER_8022) -CFLAGS+= -DETHER_8022 -.endif - -.if defined(ETHER_SNAP) -CFLAGS+= -DETHER_SNAP -.endif - .if defined(EFDEBUG) CFLAGS+= -DEF_DEBUG .endif @@ -43,6 +27,13 @@ opt_inet.h: opt_ipx.h: echo "#define IPX 1" > opt_ipx.h +opt_ef.h: +.for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP +.if defined(${frame}) + echo "#define ${frame} 1" >> opt_ef.h +.endif +.endfor + load: all /sbin/kldload ./${PROG} |
