1# $FreeBSD$ 2.PATH: ${SRCTOP}/sys/dev/mlx5/mlx5_core \ 3 ${SRCTOP}/sys/dev/mlx5/mlx5_lib \ 4 ${SRCTOP}/sys/dev/mlx5/mlx5_fpga 5 6KMOD=mlx5 7SRCS= \ 8mlx5_alloc.c \ 9mlx5_cmd.c \ 10mlx5_cq.c \ 11mlx5_diagnostics.c \ 12mlx5_eq.c \ 13mlx5_eswitch.c \ 14mlx5_fs_cmd.c \ 15mlx5_fs_tree.c \ 16mlx5_fw.c \ 17mlx5_fwdump.c \ 18mlx5_health.c \ 19mlx5_mad.c \ 20mlx5_main.c \ 21mlx5_mcg.c \ 22mlx5_mpfs.c \ 23mlx5_mr.c \ 24mlx5_pagealloc.c \ 25mlx5_pd.c \ 26mlx5_port.c \ 27mlx5_qp.c \ 28mlx5_rl.c \ 29mlx5_srq.c \ 30mlx5_tls.c \ 31mlx5_transobj.c \ 32mlx5_uar.c \ 33mlx5_vport.c \ 34mlx5_vsc.c \ 35mlx5_wq.c \ 36mlx5_gid.c 37SRCS+= ${LINUXKPI_GENSRCS} 38SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h 39 40CFLAGS+= -I${SRCTOP}/sys/ofed/include 41CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include 42 43.if defined(CONFIG_BUILD_FPGA) 44SRCS+= \ 45 mlx5fpga_cmd.c \ 46 mlx5fpga_core.c \ 47 mlx5fpga_sdk.c \ 48 mlx5fpga_trans.c \ 49 mlx5fpga_xfer.c \ 50 mlx5fpga_ipsec.c 51.endif 52 53.include <bsd.kmod.mk> 54 55CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 56