1218792Snp# 2218792Snp# $FreeBSD: releng/10.3/sys/modules/cxgbe/if_cxgbe/Makefile 284052 2015-06-06 09:28:40Z np $ 3218792Snp# 4218792Snp 5239264Snp.include <bsd.own.mk> 6239264Snp 7270297SnpCXGBE= ${.CURDIR}/../../../dev/cxgbe 8218792Snp.PATH: ${CXGBE} ${CXGBE}/common 9218792Snp 10270297SnpKMOD= if_cxgbe 11270297SnpSRCS= bus_if.h 12270297SnpSRCS+= device_if.h 13270297SnpSRCS+= opt_inet.h 14270297SnpSRCS+= opt_inet6.h 15270297SnpSRCS+= opt_ofed.h 16270297SnpSRCS+= pci_if.h 17270297SnpSRCS+= t4_hw.c 18270297SnpSRCS+= t4_l2t.c 19270297SnpSRCS+= t4_main.c 20284052SnpSRCS+= t4_mp_ring.c 21270297SnpSRCS+= t4_netmap.c 22270297SnpSRCS+= t4_sge.c 23270297SnpSRCS+= t4_tracer.c 24218792Snp 25221477Snp# Provide the timestamp of a packet in its header mbuf. 26221477Snp#CFLAGS+= -DT4_PKT_TIMESTAMP 27221477Snp 28270297SnpCFLAGS+= -I${CXGBE} 29270297Snp 30239264Snp.if !defined(KERNBUILDDIR) 31239264Snp.if ${MK_INET_SUPPORT} != "no" 32239264Snpopt_inet.h: 33239264Snp @echo "#define INET 1" > ${.TARGET} 34239264Snp @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} 35239264Snp.endif 36239264Snp 37239264Snp.if ${MK_INET6_SUPPORT} != "no" 38239264Snpopt_inet6.h: 39239264Snp @echo "#define INET6 1" > ${.TARGET} 40239264Snp.endif 41239264Snp.endif 42239264Snp 43218792Snp.include <bsd.kmod.mk> 44284052SnpCFLAGS+= ${GCC_MS_EXTENSIONS} 45