xref: /freebsd/sys/modules/mlx5/Makefile (revision 8a847947153e60d812852e5c02de93997b2d3038)
1.PATH:	${SRCTOP}/sys/dev/mlx5/mlx5_core \
2	${SRCTOP}/sys/dev/mlx5/mlx5_lib \
3	${SRCTOP}/sys/dev/mlx5/mlx5_fpga \
4	${SRCTOP}/sys/dev/mlx5/mlx5_accel
5
6KMOD=mlx5
7SRCS= \
8mlx5_alloc.c \
9mlx5_aso.c \
10mlx5_cmd.c \
11mlx5_crypto.c \
12mlx5_cq.c \
13mlx5_diag_cnt.c \
14mlx5_diagnostics.c \
15mlx5_eq.c \
16mlx5_eswitch.c \
17mlx5_fs_chains.c \
18mlx5_fs_cmd.c \
19mlx5_fs_core.c \
20mlx5_fs_counters.c \
21mlx5_fs_ft_pool.c \
22mlx5_fs_tcp.c \
23mlx5_fw.c \
24mlx5_fwdump.c \
25mlx5_health.c \
26mlx5_mad.c \
27mlx5_main.c \
28mlx5_mcg.c \
29mlx5_mpfs.c \
30mlx5_mr.c \
31mlx5_pagealloc.c \
32mlx5_pd.c \
33mlx5_port.c \
34mlx5_qp.c \
35mlx5_rl.c \
36mlx5_srq.c \
37mlx5_tls.c \
38mlx5_transobj.c \
39mlx5_uar.c \
40mlx5_vport.c \
41mlx5_vsc.c \
42mlx5_wq.c \
43mlx5_gid.c \
44mlx5_ipsec_fs.c \
45mlx5_ipsec_offload.c \
46mlx5_ipsec.c \
47mlx5_ipsec_rxtx.c
48SRCS+=	${LINUXKPI_GENSRCS}
49SRCS+=	opt_inet.h opt_inet6.h opt_ipsec.h opt_rss.h opt_ratelimit.h
50
51CFLAGS+= -I${SRCTOP}/sys/ofed/include
52CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
53CFLAGS+= ${LINUXKPI_INCLUDES}
54
55.if defined(CONFIG_BUILD_FPGA)
56SRCS+= \
57	mlx5fpga_cmd.c \
58	mlx5fpga_core.c \
59	mlx5fpga_sdk.c \
60	mlx5fpga_trans.c \
61	mlx5fpga_xfer.c \
62	mlx5fpga_ipsec.c
63.endif
64
65EXPORT_SYMS=	YES
66
67.include <bsd.kmod.mk>
68
69CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
70