xref: /dpdk/examples/vm_power_manager/Makefile (revision 8db653ff)
1*8db653ffSAlan Carew#   BSD LICENSE
2*8db653ffSAlan Carew#
3*8db653ffSAlan Carew#   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
4*8db653ffSAlan Carew#   All rights reserved.
5*8db653ffSAlan Carew#
6*8db653ffSAlan Carew#   Redistribution and use in source and binary forms, with or without
7*8db653ffSAlan Carew#   modification, are permitted provided that the following conditions
8*8db653ffSAlan Carew#   are met:
9*8db653ffSAlan Carew#
10*8db653ffSAlan Carew#     * Redistributions of source code must retain the above copyright
11*8db653ffSAlan Carew#       notice, this list of conditions and the following disclaimer.
12*8db653ffSAlan Carew#     * Redistributions in binary form must reproduce the above copyright
13*8db653ffSAlan Carew#       notice, this list of conditions and the following disclaimer in
14*8db653ffSAlan Carew#       the documentation and/or other materials provided with the
15*8db653ffSAlan Carew#       distribution.
16*8db653ffSAlan Carew#     * Neither the name of Intel Corporation nor the names of its
17*8db653ffSAlan Carew#       contributors may be used to endorse or promote products derived
18*8db653ffSAlan Carew#       from this software without specific prior written permission.
19*8db653ffSAlan Carew#
20*8db653ffSAlan Carew#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21*8db653ffSAlan Carew#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*8db653ffSAlan Carew#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23*8db653ffSAlan Carew#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24*8db653ffSAlan Carew#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25*8db653ffSAlan Carew#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26*8db653ffSAlan Carew#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*8db653ffSAlan Carew#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*8db653ffSAlan Carew#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*8db653ffSAlan Carew#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30*8db653ffSAlan Carew#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*8db653ffSAlan Carew
32*8db653ffSAlan Carewifeq ($(RTE_SDK),)
33*8db653ffSAlan Carew$(error "Please define RTE_SDK environment variable")
34*8db653ffSAlan Carewendif
35*8db653ffSAlan Carew
36*8db653ffSAlan Carew# Default target, can be overridden by command line or environment
37*8db653ffSAlan CarewRTE_TARGET ?= x86_64-native-linuxapp-gcc
38*8db653ffSAlan Carew
39*8db653ffSAlan Carewinclude $(RTE_SDK)/mk/rte.vars.mk
40*8db653ffSAlan Carew
41*8db653ffSAlan Carew# binary name
42*8db653ffSAlan CarewAPP = vm_power_mgr
43*8db653ffSAlan Carew
44*8db653ffSAlan Carew# all source are stored in SRCS-y
45*8db653ffSAlan CarewSRCS-y := main.c vm_power_cli.c power_manager.c channel_manager.c
46*8db653ffSAlan CarewSRCS-y += channel_monitor.c
47*8db653ffSAlan Carew
48*8db653ffSAlan CarewCFLAGS += -O3 -lvirt -I$(RTE_SDK)/lib/librte_power/
49*8db653ffSAlan CarewCFLAGS += $(WERROR_FLAGS)
50*8db653ffSAlan Carew
51*8db653ffSAlan Carew# workaround for a gcc bug with noreturn attribute
52*8db653ffSAlan Carew# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
53*8db653ffSAlan Carewifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
54*8db653ffSAlan CarewCFLAGS_main.o += -Wno-return-type
55*8db653ffSAlan Carewendif
56*8db653ffSAlan Carew
57*8db653ffSAlan Carewinclude $(RTE_SDK)/mk/rte.extapp.mk
58