X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Ftimer%2FMakefile;h=046348fd1c32aae92959e29ddd4078025ccabf15;hb=380154406dc8ce6f46a1c3e4e9fced5ba67644a1;hp=daed94d29b236ccb10d26a7e9439fc1feaab135e;hpb=218c4e68c1d9bd4a9281bc1dc4d0ab89859083bf;p=dpdk.git diff --git a/examples/timer/Makefile b/examples/timer/Makefile index daed94d29b..046348fd1c 100644 --- a/examples/timer/Makefile +++ b/examples/timer/Makefile @@ -43,8 +43,8 @@ ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif -# Default target, can be overridden by command line or environment -RTE_TARGET ?= x86_64-native-linux-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