summaryrefslogtreecommitdiffstats
path: root/sys/modules/cxgbe/tom
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/cxgbe/tom')
-rw-r--r--sys/modules/cxgbe/tom/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/modules/cxgbe/tom/Makefile b/sys/modules/cxgbe/tom/Makefile
index 647984d..d17ce6f 100644
--- a/sys/modules/cxgbe/tom/Makefile
+++ b/sys/modules/cxgbe/tom/Makefile
@@ -2,6 +2,8 @@
# $FreeBSD$
#
+.include <bsd.own.mk>
+
CXGBE = ${.CURDIR}/../../../dev/cxgbe
.PATH: ${CXGBE}/tom
@@ -12,4 +14,12 @@ SRCS+= opt_inet.h
CFLAGS+= -I${CXGBE}
+.if !defined(KERNBUILDDIR)
+.if ${MK_INET_SUPPORT} != "no"
+opt_inet.h:
+ echo "#define INET 1" > ${.TARGET}
+ echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
+.endif
+.endif
+
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud