]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/mlx5en/Makefile
MFS r353184, r353186, r353188, r353190, r353192, r353194, r353196, r353198,
[FreeBSD/FreeBSD.git] / sys / modules / mlx5en / Makefile
1 # $FreeBSD$
2 .PATH:  ${SRCTOP}/sys/dev/mlx5/mlx5_en
3
4 KMOD=mlx5en
5 SRCS= \
6 mlx5_en_dim.c \
7 mlx5_en_ethtool.c \
8 mlx5_en_main.c \
9 mlx5_en_tx.c \
10 mlx5_en_flow_table.c \
11 mlx5_en_rx.c \
12 mlx5_en_rl.c \
13 mlx5_en_txrx.c \
14 mlx5_en_port_buffer.c \
15 device_if.h bus_if.h vnode_if.h pci_if.h \
16 opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
17
18 .if defined(HAVE_PER_CQ_EVENT_PACKET)
19 CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
20 .endif
21
22 .if defined(HAVE_TCP_LRO_RX)
23 CFLAGS+= -DHAVE_TCP_LRO_RX
24 .endif
25
26 .if defined(CONFIG_BUILD_FPGA)
27 CFLAGS+= -DCONFIG_MLX5_FPGA
28 .endif
29
30 CFLAGS+= -I${SRCTOP}/sys/ofed/include
31 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
32
33 .include <bsd.kmod.mk>
34
35 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}