1# $FreeBSD$ 2.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_ib 3 4KMOD=mlx5ib 5SRCS= \ 6mlx5_ib_ah.c \ 7mlx5_ib_cong.c \ 8mlx5_ib_cq.c \ 9mlx5_ib_devx.c \ 10mlx5_ib_doorbell.c \ 11mlx5_ib_gsi.c \ 12mlx5_ib_mad.c \ 13mlx5_ib_main.c \ 14mlx5_ib_mem.c \ 15mlx5_ib_mr.c \ 16mlx5_ib_qp.c \ 17mlx5_ib_srq.c \ 18mlx5_ib_virt.c 19SRCS+= ${LINUXKPI_GENSRCS} 20SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h opt_rss.h 21 22CFLAGS+= -I${SRCTOP}/sys/ofed/include 23CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi 24CFLAGS+= ${LINUXKPI_INCLUDES} 25CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM 26 27.if defined(CONFIG_BUILD_FPGA) 28CFLAGS+= -DCONFIG_MLX5_FPGA 29.endif 30 31.include <bsd.kmod.mk> 32 33CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 34