]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/l2fwd-keepalive/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / l2fwd-keepalive / Makefile
index 4ab67db44ed1e4ed6ff4f866e4fdab18c6312ba2..bc851b732e3f4151bb7e06764a111018c02b5a6c 100644 (file)
@@ -45,8 +45,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