X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fptpclient%2FMakefile;h=f113c9d56fee59c9b3811a6fdd61f86aa60d72d7;hb=adf93ca564c73183e1c705cd7f35b98f3a660228;hp=989e2dd40c6e1d53065ebd4662da50f47085a97d;hpb=fa47405cc119846574a3b290032f5ac2ab66757f;p=dpdk.git diff --git a/examples/ptpclient/Makefile b/examples/ptpclient/Makefile index 989e2dd40c..f113c9d56f 100644 --- a/examples/ptpclient/Makefile +++ b/examples/ptpclient/Makefile @@ -43,8 +43,8 @@ ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif -# Default target, can be overriddegitn by command line or environment -RTE_TARGET ?= x86_64-native-linuxapp-gcc +# Default target, detect a build directory, by looking for a path with a .config +RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config))))) include $(RTE_SDK)/mk/rte.vars.mk