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