| Commit | Line | Data |
|---|---|---|
| c6882413 | 1 | # $FreeBSD: src/sys/modules/if_ef/Makefile,v 1.16 2009/06/08 19:57:35 bz Exp $ |
| 984263bc | 2 | |
| c6882413 SW |
3 | KMOD= if_ef |
| 4 | SRCS= if_ef.c opt_ipx.h opt_inet.h opt_ef.h | |
| 984263bc | 5 | |
| 984263bc MD |
6 | .if defined(EFDEBUG) |
| 7 | CFLAGS+= -DEF_DEBUG | |
| 8 | .endif | |
| 9 | ||
| 1b29ad66 | 10 | .if !defined(BUILDING_WITH_KERNEL) |
| c6882413 SW |
11 | # If you need only a limited number of frames, uncomment the needed ones. |
| 12 | # This will reduce the number of visible devices. Note that the module | |
| 13 | # will support all frames by default, i.e., when all are commented here. | |
| 14 | #ETHER_II= | |
| 15 | #ETHER_8023= | |
| 16 | #ETHER_8022= | |
| 17 | #ETHER_SNAP= | |
| 18 | ||
| 984263bc | 19 | opt_inet.h: |
| e3f58167 | 20 | echo "#define INET 1" > ${.TARGET} |
| 984263bc MD |
21 | |
| 22 | opt_ipx.h: | |
| e3f58167 | 23 | echo "#define IPX 1" > ${.TARGET} |
| 984263bc MD |
24 | |
| 25 | opt_ef.h: | |
| c6882413 | 26 | :> ${.TARGET} |
| 984263bc MD |
27 | .for frame in ETHER_II ETHER_8023 ETHER_8022 ETHER_SNAP |
| 28 | .if defined(${frame}) | |
| e3f58167 | 29 | echo "#define ${frame} 1" >> ${.TARGET} |
| 984263bc MD |
30 | .endif |
| 31 | .endfor | |
| c6882413 | 32 | .endif |
| 984263bc | 33 | |
| 984263bc | 34 | .include <bsd.kmod.mk> |