2011-03-21 09:58:24 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4
|
2013-09-29 00:35:03 +00:00
|
|
|
.PATH: ${.CURDIR}/../../ofed/include/linux
|
2011-03-21 09:58:24 +00:00
|
|
|
KMOD = mlx4
|
2014-09-23 12:37:01 +00:00
|
|
|
SRCS = device_if.h bus_if.h pci_if.h vnode_if.h opt_inet.h opt_inet6.h
|
2013-09-29 00:35:03 +00:00
|
|
|
SRCS+= 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
|
|
|
|
SRCS+= pd.c port.c profile.c qp.c reset.c sense.c srq.c resource_tracker.c sys_tune.c
|
2011-03-21 09:58:24 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/include/
|
2012-04-12 14:01:06 +00:00
|
|
|
|
2011-03-21 09:58:24 +00:00
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
|
2013-12-30 20:34:53 +00:00
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|
2014-08-27 13:21:53 +00:00
|
|
|
CFLAGS+= -fms-extensions
|
2013-12-30 22:14:31 +00:00
|
|
|
|
|
|
|
CWARNFLAGS.mcg.c= -Wno-unused
|
|
|
|
CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}
|