xref: /dpdk/examples/distributor/Makefile (revision 98a7ea33)
107db4a97SReshma Pattan#   BSD LICENSE
207db4a97SReshma Pattan#
307db4a97SReshma Pattan#   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
407db4a97SReshma Pattan#   All rights reserved.
507db4a97SReshma Pattan#
607db4a97SReshma Pattan#   Redistribution and use in source and binary forms, with or without
707db4a97SReshma Pattan#   modification, are permitted provided that the following conditions
807db4a97SReshma Pattan#   are met:
907db4a97SReshma Pattan#
1007db4a97SReshma Pattan#     * Redistributions of source code must retain the above copyright
1107db4a97SReshma Pattan#       notice, this list of conditions and the following disclaimer.
1207db4a97SReshma Pattan#     * Redistributions in binary form must reproduce the above copyright
1307db4a97SReshma Pattan#       notice, this list of conditions and the following disclaimer in
1407db4a97SReshma Pattan#       the documentation and/or other materials provided with the
1507db4a97SReshma Pattan#       distribution.
1607db4a97SReshma Pattan#     * Neither the name of Intel Corporation nor the names of its
1707db4a97SReshma Pattan#       contributors may be used to endorse or promote products derived
1807db4a97SReshma Pattan#       from this software without specific prior written permission.
1907db4a97SReshma Pattan#
2007db4a97SReshma Pattan#   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2107db4a97SReshma Pattan#   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2207db4a97SReshma Pattan#   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2307db4a97SReshma Pattan#   A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
2407db4a97SReshma Pattan#   OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2507db4a97SReshma Pattan#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2607db4a97SReshma Pattan#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2707db4a97SReshma Pattan#   DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2807db4a97SReshma Pattan#   THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2907db4a97SReshma Pattan#   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3007db4a97SReshma Pattan#   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3107db4a97SReshma Pattan
3207db4a97SReshma Pattanifeq ($(RTE_SDK),)
3307db4a97SReshma Pattan$(error "Please define RTE_SDK environment variable")
3407db4a97SReshma Pattanendif
3507db4a97SReshma Pattan
36*98a7ea33SJerin Jacob# Default target, can be overridden by command line or environment
3707db4a97SReshma PattanRTE_TARGET ?= x86_64-native-linuxapp-gcc
3807db4a97SReshma Pattan
3907db4a97SReshma Pattaninclude $(RTE_SDK)/mk/rte.vars.mk
4007db4a97SReshma Pattan
4107db4a97SReshma Pattan# binary name
4207db4a97SReshma PattanAPP = distributor_app
4307db4a97SReshma Pattan
4407db4a97SReshma Pattan# all source are stored in SRCS-y
4507db4a97SReshma PattanSRCS-y := main.c
4607db4a97SReshma Pattan
4707db4a97SReshma PattanCFLAGS += $(WERROR_FLAGS)
4807db4a97SReshma Pattan
4907db4a97SReshma Pattan# workaround for a gcc bug with noreturn attribute
5007db4a97SReshma Pattan# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
5107db4a97SReshma Pattanifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
5207db4a97SReshma PattanCFLAGS_main.o += -Wno-return-type
5307db4a97SReshma Pattanendif
5407db4a97SReshma Pattan
5507db4a97SReshma PattanEXTRA_CFLAGS += -O3 -Wfatal-errors
5607db4a97SReshma Pattan
5707db4a97SReshma Pattaninclude $(RTE_SDK)/mk/rte.extapp.mk
58