1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2020 Mellanox Technologies, Ltd
4 include $(RTE_SDK)/mk/rte.vars.mk
7 LIB = librte_pmd_mlx5_regex.a
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
16 CFLAGS += -std=c11 -Wall -Wextra
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
29 LDLIBS += -lrte_eal -lrte_mbuf -lrte_regexdev
30 LDLIBS += -lrte_kvargs
31 LDLIBS += -lrte_bus_pci
34 # A few warnings cannot be avoided in external headers.
35 CFLAGS += -Wno-error=cast-qual
37 EXPORT_MAP := rte_pmd_mlx5_regex_version.map
39 include $(RTE_SDK)/mk/rte.lib.mk