1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
12 EXPORT_MAP := rte_metrics_version.map
14 # all source are stored in SRCS-y
15 SRCS-$(CONFIG_RTE_LIBRTE_METRICS) := rte_metrics.c
17 ifeq ($(CONFIG_RTE_LIBRTE_TELEMETRY),y)
18 SRCS-y += rte_metrics_telemetry.c
19 SYMLINK-$(CONFIG_RTE_LIBRTE_METRICS)-include += rte_metrics_telemetry.h
21 LDLIBS += -lrte_ethdev -lrte_telemetry
24 CFLAGS += -I$(RTE_SDK)/lib/librte_telemetry/
28 SYMLINK-$(CONFIG_RTE_LIBRTE_METRICS)-include += rte_metrics.h
30 include $(RTE_SDK)/mk/rte.lib.mk