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