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