xref: /dpdk/examples/ipv4_multicast/Makefile (revision 3998e2a0)
1*3998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
2*3998e2a0SBruce Richardson# Copyright(c) 2010-2014 Intel Corporation
3af75078fSIntel#
4af75078fSIntel
5af75078fSIntelifeq ($(RTE_SDK),)
6af75078fSIntel$(error "Please define RTE_SDK environment variable")
7af75078fSIntelendif
8af75078fSIntel
998a7ea33SJerin Jacob# Default target, can be overridden by command line or environment
10519f3227SDavid MarchandRTE_TARGET ?= x86_64-native-linuxapp-gcc
11af75078fSIntel
12af75078fSIntelinclude $(RTE_SDK)/mk/rte.vars.mk
13af75078fSIntel
14af75078fSIntel# binary name
15af75078fSIntelAPP = ipv4_multicast
16af75078fSIntel
17af75078fSIntel# all source are stored in SRCS-y
18af75078fSIntelSRCS-y := main.c
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