13998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause 23998e2a0SBruce Richardson# Copyright(c) 2010-2014 Intel Corporation 3cc8f4d02SIntel# 4cc8f4d02SIntel 5*0eba4adeSBruce Richardson# binary name 6*0eba4adeSBruce RichardsonAPP = ip_reassembly 7*0eba4adeSBruce Richardson 8*0eba4adeSBruce Richardson# all source are stored in SRCS-y 9*0eba4adeSBruce RichardsonSRCS-y := main.c 10*0eba4adeSBruce Richardson 11cc8f4d02SIntelifeq ($(RTE_SDK),) 12cc8f4d02SIntel$(error "Please define RTE_SDK environment variable") 13cc8f4d02SIntelendif 14cc8f4d02SIntel 1598a7ea33SJerin Jacob# Default target, can be overridden by command line or environment 16519f3227SDavid MarchandRTE_TARGET ?= x86_64-native-linuxapp-gcc 17cc8f4d02SIntel 18cc8f4d02SIntelinclude $(RTE_SDK)/mk/rte.vars.mk 19cc8f4d02SIntel 20cc8f4d02SIntelCFLAGS += -O3 21cc8f4d02SIntelCFLAGS += $(WERROR_FLAGS) 22cc8f4d02SIntel 23cc8f4d02SIntel# workaround for a gcc bug with noreturn attribute 24cc8f4d02SIntel# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 25cc8f4d02SIntelifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) 26cc8f4d02SIntelCFLAGS_main.o += -Wno-return-type 27cc8f4d02SIntelendif 28cc8f4d02SIntel 29cc8f4d02SIntelinclude $(RTE_SDK)/mk/rte.extapp.mk 30