xref: /dpdk/examples/cmdline/Makefile (revision 0eba4ade)
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 = cmdline
6*0eba4adeSBruce Richardson
7*0eba4adeSBruce Richardson# all source are stored in SRCS-y
8*0eba4adeSBruce RichardsonSRCS-y := main.c commands.c parse_obj_list.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
19af75078fSIntel# binary name
20af75078fSIntelAPP = cmdline
21af75078fSIntel
22af75078fSIntel# all source are stored in SRCS-y
23af75078fSIntelSRCS-y := main.c commands.c parse_obj_list.c
24af75078fSIntel
25af75078fSIntelCFLAGS += -O3
26af75078fSIntelCFLAGS += $(WERROR_FLAGS)
27e49680a8SBruce RichardsonCFLAGS_parse_obj_list.o := -D_GNU_SOURCE
28af75078fSIntel
29af75078fSIntelinclude $(RTE_SDK)/mk/rte.extapp.mk
30