aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/igb
diff options
context:
space:
mode:
authorJack F Vogel <jfv@FreeBSD.org>2013-07-12 22:36:26 +0000
committerJack F Vogel <jfv@FreeBSD.org>2013-07-12 22:36:26 +0000
commita1db87ec73dd672c8255ec5495ee74706ba1a74c (patch)
tree1ecc87a9a3aeb69afa909c0d9efabaea4ef4bc05 /sys/modules/igb
parentd87953e418690cc38e04a8ed2a0213d62e86d8f8 (diff)
Notes
Diffstat (limited to 'sys/modules/igb')
-rw-r--r--sys/modules/igb/Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/modules/igb/Makefile b/sys/modules/igb/Makefile
index 1906b5a9e178..1ff127467bca 100644
--- a/sys/modules/igb/Makefile
+++ b/sys/modules/igb/Makefile
@@ -1,7 +1,10 @@
#$FreeBSD$
+
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../dev/e1000
KMOD = if_igb
-SRCS = device_if.h bus_if.h pci_if.h opt_inet.h
+SRCS = device_if.h bus_if.h pci_if.h opt_inet.h opt_inet6.h
SRCS += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_80003es2lan.c e1000_82542.c e1000_82541.c e1000_82543.c
@@ -20,4 +23,16 @@ CFLAGS += -I${.CURDIR}/../../dev/e1000 -DSMP
# ALTQ.
#CFLAGS += -DIGB_LEGACY_TX
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ @echo "#define INET 1" > ${.TARGET}
+.endif
+
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ @echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
+
.include <bsd.kmod.mk>