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