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