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_diag_cnt.c \ 12mlx5_diagnostics.c \ 13mlx5_eq.c \ 14mlx5_eswitch.c \ 15mlx5_fs_cmd.c \ 16mlx5_fs_tcp.c \ 17mlx5_fs_tree.c \ 18mlx5_fw.c \ 19mlx5_fwdump.c \ 20mlx5_health.c \ 21mlx5_mad.c \ 22mlx5_main.c \ 23mlx5_mcg.c \ 24mlx5_mpfs.c \ 25mlx5_mr.c \ 26mlx5_pagealloc.c \ 27mlx5_pd.c \ 28mlx5_port.c \ 29mlx5_qp.c \ 30mlx5_rl.c \ 31mlx5_srq.c \ 32mlx5_tls.c \ 33mlx5_transobj.c \ 34mlx5_uar.c \ 35mlx5_vport.c \ 36mlx5_vsc.c \ 37mlx5_wq.c \ 38mlx5_gid.c 39SRCS+= ${LINUXKPI_GENSRCS} 40SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h 41 42CFLAGS+= -I${SRCTOP}/sys/ofed/include 43CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi 44CFLAGS+= ${LINUXKPI_INCLUDES} 45 46.if defined(CONFIG_BUILD_FPGA) 47SRCS+= \ 48 mlx5fpga_cmd.c \ 49 mlx5fpga_core.c \ 50 mlx5fpga_sdk.c \ 51 mlx5fpga_trans.c \ 52 mlx5fpga_xfer.c \ 53 mlx5fpga_ipsec.c 54.endif 55 56EXPORT_SYMS= YES 57 58.include <bsd.kmod.mk> 59 60CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 61