13998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause 23998e2a0SBruce Richardson# Copyright(c) 2010-2014 Intel Corporation 37107e471SBruce Richardson 4*0eba4adeSBruce Richardson# binary name 5*0eba4adeSBruce RichardsonAPP = basicfwd 6*0eba4adeSBruce Richardson 7*0eba4adeSBruce Richardson# all source are stored in SRCS-y 8*0eba4adeSBruce RichardsonSRCS-y := basicfwd.c 9*0eba4adeSBruce Richardson 107107e471SBruce Richardsonifeq ($(RTE_SDK),) 117107e471SBruce Richardson$(error "Please define RTE_SDK environment variable") 127107e471SBruce Richardsonendif 137107e471SBruce Richardson 147107e471SBruce Richardson# Default target, can be overridden by command line or environment 157107e471SBruce RichardsonRTE_TARGET ?= x86_64-native-linuxapp-gcc 167107e471SBruce Richardson 177107e471SBruce Richardsoninclude $(RTE_SDK)/mk/rte.vars.mk 187107e471SBruce Richardson 197107e471SBruce RichardsonCFLAGS += $(WERROR_FLAGS) 207107e471SBruce Richardson 217107e471SBruce Richardson# workaround for a gcc bug with noreturn attribute 227107e471SBruce Richardson# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 237107e471SBruce Richardsonifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) 247107e471SBruce RichardsonCFLAGS_main.o += -Wno-return-type 257107e471SBruce Richardsonendif 267107e471SBruce Richardson 277107e471SBruce RichardsonEXTRA_CFLAGS += -O3 -g -Wfatal-errors 287107e471SBruce Richardson 297107e471SBruce Richardsoninclude $(RTE_SDK)/mk/rte.extapp.mk 30