1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5CXGBE = ${.CURDIR}/../../../dev/cxgbe 6.PATH: ${CXGBE}/iw_cxgbe 7 8KMOD= iw_cxgbe 9SRCS= device.c cm.c provider.c mem.c cq.c qp.c resource.c ev.c id_table.c 10SRCS+= bus_if.h device_if.h opt_sched.h pci_if.h pcib_if.h opt_ktr.h 11SRCS+= opt_inet.h opt_ofed.h vnode_if.h 12CFLAGS+= -I${CXGBE} -I${.CURDIR}/../../../ofed/include -DLINUX_TYPES_DEFINED 13 14.if !defined(KERNBUILDDIR) 15.if ${MK_INET_SUPPORT} != "no" 16opt_inet.h: 17 @echo "#define INET 1" > ${.TARGET} 18 @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} 19.endif 20 21.if ${MK_INET6_SUPPORT} != "no" 22opt_inet6.h: 23 @echo "#define INET6 1" > ${.TARGET} 24.endif 25.endif 26 27.include <bsd.kmod.mk> 28