1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4 3 4.include <bsd.own.mk> 5 6KMOD = mlx4 7SRCS = device_if.h bus_if.h pci_if.h vnode_if.h 8SRCS+= alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c 9SRCS+= pd.c port.c profile.c qp.c reset.c sense.c srq.c xrcd.c 10SRCS+= opt_inet.h opt_inet6.h 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 -fms-extensions 30