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