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