1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
4 include $(RTE_SDK)/mk/rte.vars.mk
9 CFLAGS += -DALLOW_EXPERIMENTAL_API
10 CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -fno-strict-aliasing
11 LDLIBS += -lrte_eal -lrte_timer
13 EXPORT_MAP := rte_power_version.map
17 # all source are stored in SRCS-y
18 SRCS-$(CONFIG_RTE_LIBRTE_POWER) := rte_power.c power_acpi_cpufreq.c
19 SRCS-$(CONFIG_RTE_LIBRTE_POWER) += power_kvm_vm.c guest_channel.c
20 SRCS-$(CONFIG_RTE_LIBRTE_POWER) += rte_power_empty_poll.c
21 SRCS-$(CONFIG_RTE_LIBRTE_POWER) += power_pstate_cpufreq.c
23 # install this header file
24 SYMLINK-$(CONFIG_RTE_LIBRTE_POWER)-include := rte_power.h rte_power_empty_poll.h
26 include $(RTE_SDK)/mk/rte.lib.mk