1# 2# $FreeBSD$ 3# 4 5.include <src.opts.mk> 6 7CXGBE= ${.CURDIR}/../../../dev/cxgbe 8.PATH: ${CXGBE}/tom 9 10KMOD= t4_tom 11SRCS= bus_if.h 12SRCS+= device_if.h 13SRCS+= opt_inet.h 14SRCS+= opt_inet6.h 15SRCS+= pci_if.h 16SRCS+= t4_connect.c 17SRCS+= t4_cpl_io.c 18SRCS+= t4_ddp.c 19SRCS+= t4_listen.c 20SRCS+= t4_tom.c 21SRCS+= t4_tom_l2t.c 22 23CFLAGS+= -I${CXGBE} 24 25.if !defined(KERNBUILDDIR) 26.if ${MK_INET_SUPPORT} != "no" 27opt_inet.h: 28 @echo "#define INET 1" > ${.TARGET} 29 @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} 30.endif 31 32.if ${MK_INET6_SUPPORT} != "no" 33opt_inet6.h: 34 @echo "#define INET6 1" > ${.TARGET} 35.endif 36.endif 37 38.include <bsd.kmod.mk> 39