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