summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack F Vogel <jfv@FreeBSD.org>2013-08-09 16:34:12 +0000
committerJack F Vogel <jfv@FreeBSD.org>2013-08-09 16:34:12 +0000
commit38ce1e32a9e0f6837d6f26034fc2d23e43234c07 (patch)
tree3c0eba703012c6017ee5979c5c2ac1b9f1cdfa65
parent3dc24e1188e070975c3d769d247f2ebd53c8855f (diff)
Notes
-rw-r--r--sys/modules/ixgbe/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/modules/ixgbe/Makefile b/sys/modules/ixgbe/Makefile
index add71c588321..68d887e3e93e 100644
--- a/sys/modules/ixgbe/Makefile
+++ b/sys/modules/ixgbe/Makefile
@@ -1,7 +1,12 @@
#$FreeBSD$
+
+.include <bsd.own.mk>
+
.PATH: ${.CURDIR}/../../dev/ixgbe
-KMOD = ixgbe
+
+KMOD = if_ixgbe
SRCS = device_if.h bus_if.h pci_if.h
+SRCS += opt_inet.h opt_inet6.h
SRCS += ixgbe.c ixv.c
# Shared source
SRCS += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c
@@ -9,4 +14,16 @@ SRCS += ixgbe_dcb.c ixgbe_dcb_82598.c ixgbe_dcb_82599.c
SRCS += ixgbe_82599.c ixgbe_82598.c ixgbe_x540.c
CFLAGS+= -I${.CURDIR}/../../dev/ixgbe -DSMP -DIXGBE_FDIR
+.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>