2012-06-19 07:34:13 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2012-08-14 23:08:49 +00:00
|
|
|
|
2014-08-01 01:30:16 +00:00
|
|
|
CXGBE= ${.CURDIR}/../../../dev/cxgbe
|
2012-06-19 07:34:13 +00:00
|
|
|
.PATH: ${CXGBE}/tom
|
|
|
|
|
2014-08-01 01:30:16 +00:00
|
|
|
KMOD= t4_tom
|
|
|
|
SRCS= t4_tom.c t4_connect.c t4_listen.c t4_cpl_io.c t4_tom_l2t.c t4_ddp.c
|
|
|
|
SRCS+= device_if.h bus_if.h pci_if.h
|
|
|
|
SRCS+= opt_inet.h opt_inet6.h
|
2012-06-19 07:34:13 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${CXGBE}
|
|
|
|
|
2012-08-14 23:08:49 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
opt_inet.h:
|
2013-01-14 20:36:22 +00:00
|
|
|
@echo "#define INET 1" > ${.TARGET}
|
|
|
|
@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
opt_inet6.h:
|
|
|
|
@echo "#define INET6 1" > ${.TARGET}
|
2012-08-14 23:08:49 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2012-06-19 07:34:13 +00:00
|
|
|
.include <bsd.kmod.mk>
|