1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4 3.PATH: ${.CURDIR}/../../ofed/include/linux 4 5.include <bsd.own.mk> 6 7KMOD = mlx4ib 8SRCS = device_if.h bus_if.h pci_if.h vnode_if.h 9SRCS+= linux_compat.c linux_radix.c linux_idr.c 10SRCS+= alias_GUID.c mcg.c sysfs.c ah.c cq.c doorbell.c mad.c main.c mr.c qp.c srq.c wc.c cm.c 11SRCS+= opt_inet.h opt_inet6.h 12 13#CFLAGS+= -I${.CURDIR}/../../ofed/include/ 14#CFLAGS+= -I${.CURDIR}/../../../../include 15CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4 16CFLAGS+= -I${.CURDIR}/../../ofed/include/ 17CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM 18CFLAGS+= -DINET6 -DINET -DOFED 19 20.if !defined(KERNBUILDDIR) 21.if ${MK_INET_SUPPORT} != "no" 22opt_inet.h: 23 @echo "#define INET 1" > ${.TARGET} 24.endif 25 26.if ${MK_INET6_SUPPORT} != "no" 27opt_inet6.h: 28 @echo "#define INET6 1" > ${.TARGET} 29.endif 30.endif 31 32.include <bsd.kmod.mk> 33 34CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions 35