xref: /freebsd/sys/modules/cxgbe/if_cxgbe/Makefile (revision 864c53ead899f7838cd2e1cca3b485a4a82f5cdc)
1#
2# $FreeBSD$
3#
4
5.include <src.opts.mk>
6
7CXGBE = ${.CURDIR}/../../../dev/cxgbe
8.PATH: ${CXGBE} ${CXGBE}/common
9
10KMOD = if_cxgbe
11SRCS = t4_main.c t4_sge.c t4_l2t.c t4_tracer.c t4_netmap.c
12SRCS+= t4_hw.c
13SRCS+= device_if.h bus_if.h pci_if.h
14SRCS+= opt_inet.h opt_inet6.h
15SRCS+= opt_ofed.h
16
17CFLAGS+= -I${CXGBE}
18
19# Provide the timestamp of a packet in its header mbuf.
20#CFLAGS+= -DT4_PKT_TIMESTAMP
21
22.if !defined(KERNBUILDDIR)
23.if ${MK_INET_SUPPORT} != "no"
24opt_inet.h:
25	@echo "#define INET 1" > ${.TARGET}
26	@echo "#define TCP_OFFLOAD 1" >> ${.TARGET}
27.endif
28
29.if ${MK_INET6_SUPPORT} != "no"
30opt_inet6.h:
31	@echo "#define INET6 1" > ${.TARGET}
32.endif
33.endif
34
35.include <bsd.kmod.mk>
36