1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2017 6WIND S.A.
3 # Copyright 2017 Mellanox Technologies, Ltd
5 include $(RTE_SDK)/mk/rte.vars.mk
8 LIB = librte_pmd_failsafe.a
10 EXPORT_MAP := rte_pmd_failsafe_version.map
12 # Sources are stored in SRCS-y
13 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe.c
14 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_args.c
15 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_eal.c
16 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_ops.c
17 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_rxtx.c
18 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_ether.c
19 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_flow.c
20 SRCS-$(CONFIG_RTE_LIBRTE_PMD_FAILSAFE) += failsafe_intr.c
21 ifeq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
27 # No exported include files
30 CFLAGS += -std=gnu99 -Wextra
33 CFLAGS += -D_DEFAULT_SOURCE
34 CFLAGS += -D_XOPEN_SOURCE=700
35 CFLAGS += $(WERROR_FLAGS)
36 CFLAGS += -Wno-strict-prototypes
38 LDLIBS += -lrte_eal -lrte_mbuf -lrte_mempool -lrte_ring
39 LDLIBS += -lrte_ethdev -lrte_net -lrte_kvargs
40 LDLIBS += -lrte_bus_vdev
43 include $(RTE_SDK)/mk/rte.lib.mk