]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/ptpclient/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / ptpclient / Makefile
index 989e2dd40c6e1d53065ebd4662da50f47085a97d..f113c9d56fee59c9b3811a6fdd61f86aa60d72d7 100644 (file)
@@ -43,8 +43,8 @@ ifeq ($(RTE_SDK),)
 $(error "Please define RTE_SDK environment variable")
 endif
 
-# Default target, can be overriddegitn 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