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