]> git.droids-corp.org - dpdk.git/blobdiff - examples/performance-thread/pthread_shim/Makefile
examples/tep_term: remove redundant info get
[dpdk.git] / examples / performance-thread / pthread_shim / Makefile
index a6d276a49edf52bb99e0cb40f8ce80373bcb220d..efd66febf48fae30f406346aebe25418aaa71f81 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