]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/dpdk/examples/multi_process/client_server_mp/Makefile
import 15.2.0 Octopus source
[ceph.git] / ceph / src / spdk / dpdk / examples / multi_process / client_server_mp / Makefile
index 6f6c45228d4832849aa2d8ba4ed9658770df80cf..fe7a8af605d7f6193eac0f072fe18ce6c5142945 100644 (file)
@@ -5,12 +5,12 @@ 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
 
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_client
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_server
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_client
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_server
 
 include $(RTE_SDK)/mk/rte.extsubdir.mk