]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/netmap_compat/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / netmap_compat / Makefile
index dd87ac9bd7fcd9d604a56865fbf60372c2c6a54d..b9f78d1736240404905794cb5aacfdf6b1ee7609 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
 unexport RTE_SRCDIR RTE_OUTPUT RTE_EXTMK