]> git.droids-corp.org - dpdk.git/blobdiff - examples/service_cores/Makefile
examples/ipsec-secgw: fix SPD no-match case
[dpdk.git] / examples / service_cores / Makefile
index d38acd53a483eaa6a167c15b52e285c8ae050fb3..351fb7e1d9665367a6a819f30f11d060b3ebfda1 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-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