xref: /freebsd/sys/modules/cxgbe/tom/Makefile (revision cfe30d02adda7c3b5c76156ac52d50d8cab325d9)
1#
2# $FreeBSD$
3#
4
5.include <bsd.own.mk>
6
7CXGBE = ${.CURDIR}/../../../dev/cxgbe
8.PATH: ${CXGBE}/tom
9
10KMOD = t4_tom
11SRCS = t4_tom.c t4_connect.c t4_listen.c t4_cpl_io.c t4_tom_l2t.c t4_ddp.c
12SRCS+= device_if.h bus_if.h pci_if.h
13SRCS+= opt_inet.h opt_inet6.h
14
15CFLAGS+= -I${CXGBE}
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
24.if ${MK_INET6_SUPPORT} != "no"
25opt_inet6.h:
26	@echo "#define INET6 1" > ${.TARGET}
27.endif
28.endif
29
30.include <bsd.kmod.mk>
31