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