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