1219820Sjeff# $FreeBSD$ 2219820Sjeff 3219820Sjeff.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mthca 4234183Sjhb 5234183Sjhb.include <bsd.own.mk> 6234183Sjhb 7219820SjeffKMOD = mthca 8219820SjeffSRCS = device_if.h bus_if.h pci_if.h vnode_if.h 9219820SjeffSRCS+= mthca_allocator.c mthca_av.c mthca_catas.c mthca_cmd.c mthca_cq.c 10219820SjeffSRCS+= mthca_eq.c mthca_mad.c mthca_main.c mthca_mcg.c mthca_memfree.c 11219820SjeffSRCS+= mthca_mr.c mthca_pd.c mthca_profile.c mthca_provider.c mthca_qp.c 12219820SjeffSRCS+= mthca_reset.c mthca_srq.c mthca_uar.c 13234183SjhbSRCS+= opt_inet.h opt_inet6.h 14219820Sjeff 15234183SjhbCFLAGS+= -I${.CURDIR}/../../ofed/include 16219820Sjeff 17234183Sjhb.if !defined(KERNBUILDDIR) 18234183Sjhb.if ${MK_INET_SUPPORT} != "no" 19234183Sjhbopt_inet.h: 20234183Sjhb @echo "#define INET 1" > ${.TARGET} 21234183Sjhb.endif 22234183Sjhb 23234183Sjhb.if ${MK_INET6_SUPPORT} != "no" 24234183Sjhbopt_inet6.h: 25234183Sjhb @echo "#define INET6 1" > ${.TARGET} 26234183Sjhb.endif 27234183Sjhb.endif 28234183Sjhb 29219820Sjeff.include <bsd.kmod.mk> 30219820Sjeff 31242933SdimCFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions 32