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