]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/Makefile
net/vhost: fix potential memory leak on close
[dpdk.git] / examples / multi_process / Makefile
index b0633df38f70a15edb5b23147b633fcd35a7334a..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-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