]> git.droids-corp.org - dpdk.git/blobdiff - examples/cmdline/Makefile
build: add workarounds for Windows helloworld
[dpdk.git] / examples / cmdline / Makefile
index a617cce115132ee1f1d23954a7059d9de0c4f80d..a03dfa8eea23ffbbb4357af45449623161675364 100644 (file)
@@ -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-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