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_doorbell.c \ 10mlx5_ib_gsi.c \ 11mlx5_ib_mad.c \ 12mlx5_ib_main.c \ 13mlx5_ib_mem.c \ 14mlx5_ib_mr.c \ 15mlx5_ib_qp.c \ 16mlx5_ib_srq.c \ 17mlx5_ib_virt.c 18SRCS+= ${LINUXKPI_GENSRCS} 19SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h 20 21CFLAGS+= -I${SRCTOP}/sys/ofed/include 22CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi 23CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include 24CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM 25 26.if defined(CONFIG_BUILD_FPGA) 27CFLAGS+= -DCONFIG_MLX5_FPGA 28.endif 29 30.include <bsd.kmod.mk> 31 32CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 33