1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mthca 4 5.include <src.opts.mk> 6 7KMOD = mthca 8SRCS = device_if.h bus_if.h pci_if.h vnode_if.h 9SRCS+= mthca_allocator.c mthca_av.c mthca_catas.c mthca_cmd.c mthca_cq.c 10SRCS+= mthca_eq.c mthca_mad.c mthca_main.c mthca_mcg.c mthca_memfree.c 11SRCS+= mthca_mr.c mthca_pd.c mthca_profile.c mthca_provider.c mthca_qp.c 12SRCS+= mthca_reset.c mthca_srq.c mthca_uar.c 13SRCS+= opt_inet.h opt_inet6.h 14 15CFLAGS+= -I${.CURDIR}/../../ofed/include 16 17.if !defined(KERNBUILDDIR) 18.if ${MK_INET_SUPPORT} != "no" 19opt_inet.h: 20 @echo "#define INET 1" > ${.TARGET} 21.endif 22 23.if ${MK_INET6_SUPPORT} != "no" 24opt_inet6.h: 25 @echo "#define INET6 1" > ${.TARGET} 26.endif 27.endif 28 29.include <bsd.kmod.mk> 30 31CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 32