regex/mlx5: add engine status check
[dpdk.git] / drivers / regex / mlx5 / Makefile
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2020 Mellanox Technologies, Ltd
3
4 include $(RTE_SDK)/mk/rte.vars.mk
5
6 # Library name.
7 LIB = librte_pmd_mlx5_regex.a
8
9 # Sources.
10 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_REGEX_PMD) += mlx5_regex.c
11 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_REGEX_PMD) += mlx5_rxp.c
12 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_REGEX_PMD) += mlx5_regex_devx.c
13
14 # Basic CFLAGS.
15 CFLAGS += -O3
16 CFLAGS += -std=c11 -Wall -Wextra
17 CFLAGS += -g
18 CFLAGS += -I$(RTE_SDK)/drivers/common/mlx5
19 CFLAGS += -I$(BUILDDIR)/drivers/common/mlx5
20 CFLAGS += -I$(RTE_SDK)/drivers/common/mlx5/linux
21 CFLAGS += -I$(BUILDDIR)/drivers/common/mlx5/linux
22 CFLAGS += -D_BSD_SOURCE
23 CFLAGS += -D_DEFAULT_SOURCE
24 CFLAGS += -D_XOPEN_SOURCE=600
25 CFLAGS += $(WERROR_FLAGS)
26 CFLAGS += -Wno-strict-prototypes
27 LDLIBS += -lrte_common_mlx5
28 LDLIBS += -lm
29 LDLIBS += -lrte_eal -lrte_mbuf -lrte_regexdev
30 LDLIBS += -lrte_kvargs
31 LDLIBS += -lrte_bus_pci
32 LDLIBS += -lrte_pci
33
34 # A few warnings cannot be avoided in external headers.
35 CFLAGS += -Wno-error=cast-qual
36
37 EXPORT_MAP := rte_pmd_mlx5_regex_version.map
38
39 include $(RTE_SDK)/mk/rte.lib.mk