xref: /dpdk/examples/ptpclient/Makefile (revision 0eba4ade)
13998e2a0SBruce Richardson# SPDX-License-Identifier: BSD-3-Clause
23998e2a0SBruce Richardson# Copyright(c) 2015 Intel Corporation
3ab129e90SDaniel Mrzyglod
4*0eba4adeSBruce Richardson# binary name
5*0eba4adeSBruce RichardsonAPP = ptpclient
6*0eba4adeSBruce Richardson
7*0eba4adeSBruce Richardson# all source are stored in SRCS-y
8*0eba4adeSBruce RichardsonSRCS-y := ptpclient.c
9*0eba4adeSBruce Richardson
10ab129e90SDaniel Mrzyglodifeq ($(RTE_SDK),)
11ab129e90SDaniel Mrzyglod$(error "Please define RTE_SDK environment variable")
12ab129e90SDaniel Mrzyglodendif
13ab129e90SDaniel Mrzyglod
14ab129e90SDaniel Mrzyglod# Default target, can be overriddegitn by command line or environment
15ab129e90SDaniel MrzyglodRTE_TARGET ?= x86_64-native-linuxapp-gcc
16ab129e90SDaniel Mrzyglod
17ab129e90SDaniel Mrzyglodinclude $(RTE_SDK)/mk/rte.vars.mk
18ab129e90SDaniel Mrzyglod
19ab129e90SDaniel MrzyglodCFLAGS += -O3
20ab129e90SDaniel MrzyglodCFLAGS += $(WERROR_FLAGS)
21ab129e90SDaniel Mrzyglod
22ab129e90SDaniel Mrzyglod# workaround for a gcc bug with noreturn attribute
23ab129e90SDaniel Mrzyglod# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603
24ab129e90SDaniel Mrzyglodifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y)
25ab129e90SDaniel MrzyglodCFLAGS_main.o += -Wno-return-type
26ab129e90SDaniel Mrzyglodendif
27ab129e90SDaniel Mrzyglod
28ab129e90SDaniel Mrzyglodinclude $(RTE_SDK)/mk/rte.extapp.mk
29