1# $FreeBSD$
2
3.include <bsd.own.mk>
4
5CXGB = ${.CURDIR}/../../../dev/cxgb
6.PATH: ${CXGB}/ulp/tom
7
8KMOD=	t3_tom
9SRCS=   cxgb_tom.c cxgb_cpl_io.c cxgb_listen.c cxgb_l2t.c
10SRCS+=	opt_compat.h opt_inet.h opt_inet6.h opt_ipsec.h
11SRCS+=	opt_tcpdebug.h opt_ddb.h opt_sched.h opt_global.h opt_ktr.h
12SRCS+=	device_if.h bus_if.h pci_if.h
13CFLAGS+= -g -I${CXGB}
14
15#CFLAGS+= -DDEBUG_PRINT -DDEBUG
16
17.if !defined(KERNBUILDDIR)
18.if ${MK_INET_SUPPORT} != "no"
19opt_inet.h:
20	echo "#define INET 1" > ${.TARGET}
21	echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
22.endif
23.endif
24
25.include <bsd.kmod.mk>
26