diff options
Diffstat (limited to 'src/spdk/dpdk/lib/librte_metrics/Makefile')
-rw-r--r-- | src/spdk/dpdk/lib/librte_metrics/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/spdk/dpdk/lib/librte_metrics/Makefile b/src/spdk/dpdk/lib/librte_metrics/Makefile new file mode 100644 index 000000000..1264d3bbb --- /dev/null +++ b/src/spdk/dpdk/lib/librte_metrics/Makefile @@ -0,0 +1,30 @@ +# 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 |