1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4 3 4.include <src.opts.mk> 5 6.PATH: ${.CURDIR}/../../ofed/include/linux 7KMOD = mlx4 8SRCS = device_if.h bus_if.h pci_if.h vnode_if.h 9SRCS+= alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c linux_compat.c linux_radix.c linux_idr.c 10SRCS+= pd.c port.c profile.c qp.c reset.c sense.c srq.c resource_tracker.c sys_tune.c 11 12CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4 13CFLAGS+= -I${.CURDIR}/../../ofed/include/ 14 15.if !defined(KERNBUILDDIR) 16.if ${MK_INET_SUPPORT} != "no" 17opt_inet.h: 18 @echo "#define INET 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 29CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 30 31CWARNFLAGS.mcg.c= -Wno-unused 32CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 33