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