07c1b6925b
Rather than having the telemetry library depend on the metrics lib we invert the dependency so that metrics instead depends on telemetry lib, and registers the needed functions with it at init time. This prepares the way for a cleaner telemetry architecture to be applied in later patches. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Keith Wiles <keith.wiles@intel.com>
31 lines
718 B
Makefile
31 lines
718 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
include $(RTE_SDK)/mk/rte.vars.mk
|
|
|
|
# library name
|
|
LIB = librte_metrics.a
|
|
|
|
CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3
|
|
LDLIBS += -lrte_eal
|
|
|
|
EXPORT_MAP := rte_metrics_version.map
|
|
|
|
# all source are stored in SRCS-y
|
|
SRCS-$(CONFIG_RTE_LIBRTE_METRICS) := rte_metrics.c
|
|
|
|
ifeq ($(CONFIG_RTE_LIBRTE_TELEMETRY),y)
|
|
SRCS-y += rte_metrics_telemetry.c
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_METRICS)-include += rte_metrics_telemetry.h
|
|
|
|
LDLIBS += -lrte_ethdev -lrte_telemetry
|
|
LDLIBS += -ljansson
|
|
|
|
CFLAGS += -I$(RTE_SDK)/lib/librte_telemetry/
|
|
endif
|
|
|
|
# Install header file
|
|
SYMLINK-$(CONFIG_RTE_LIBRTE_METRICS)-include += rte_metrics.h
|
|
|
|
include $(RTE_SDK)/mk/rte.lib.mk
|