]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/client_server_mp/mp_server/Makefile
net/mlx5: support flow dump API
[dpdk.git] / examples / multi_process / client_server_mp / mp_server / Makefile
index 09ee270c01d7f5f009b3a55e7e69b74552506b08..50ebf1d7daab06ecd6dae0187c5ebf5f083660a4 100644 (file)
@@ -5,13 +5,13 @@ 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
 
 ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y)
-$(error This application can only operate in a linuxapp environment, \
+$(error This application can only operate in a linux environment, \
 please change the definition of the RTE_TARGET environment variable)
 endif