]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/Makefile
app/test-fib: add in default build
[dpdk.git] / examples / multi_process / Makefile
index 4514014a08ba54f03d5ed0db8f00169c7a8a65d0..7f7e68d912078ebd4639ad8739b78d18fd3028fa 100644 (file)
@@ -5,8 +5,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