aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/mlx4ib
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2012-04-12 14:01:06 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2012-04-12 14:01:06 +0000
commited5a2b61fd7d3b4fa10f8eb6c8cbe710f4a94c81 (patch)
treeac89bf8fd09d6daaaaaa0332d7d9f9daa8d1054f /sys/modules/mlx4ib
parent6937a7ac6bc401550dc6c276eae8f78801e87a92 (diff)
Notes
Diffstat (limited to 'sys/modules/mlx4ib')
-rw-r--r--sys/modules/mlx4ib/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/modules/mlx4ib/Makefile b/sys/modules/mlx4ib/Makefile
index 5fe01e733a88..3ab6d6f802ad 100644
--- a/sys/modules/mlx4ib/Makefile
+++ b/sys/modules/mlx4ib/Makefile
@@ -1,10 +1,26 @@
# $FreeBSD$
.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
+
+.include <bsd.own.mk>
+
KMOD = mlx4ib
SRCS = device_if.h bus_if.h pci_if.h vnode_if.h
SRCS+= ah.c cq.c doorbell.c mad.c main.c mr.c qp.c srq.c wc.c
+SRCS+= opt_inet.h opt_inet6.h
+
+CFLAGS+= -I${.CURDIR}/../../ofed/include/
+
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ @echo "#define INET 1" > ${.TARGET}
+.endif
-CFLAGS+= -I${.CURDIR}/../../ofed/include/ -DINET6
+.if ${MK_INET6_SUPPORT} != "no"
+opt_inet6.h:
+ @echo "#define INET6 1" > ${.TARGET}
+.endif
+.endif
.include <bsd.kmod.mk>