]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/link_status_interrupt/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / link_status_interrupt / Makefile
index 16068212326a93fee2698e622cefadf37b5f7f05..d12e04782ceb34e526005db57d879d241696c7cb 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-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