X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fmulti_process%2Fclient_server_mp%2Fmp_server%2FMakefile;h=50ebf1d7daab06ecd6dae0187c5ebf5f083660a4;hb=22e5c73bd181ddae758189295146154542b63360;hp=09ee270c01d7f5f009b3a55e7e69b74552506b08;hpb=742bde12f3bd008c2f06d744330436d8b1a56720;p=dpdk.git diff --git a/examples/multi_process/client_server_mp/mp_server/Makefile b/examples/multi_process/client_server_mp/mp_server/Makefile index 09ee270c01..50ebf1d7da 100644 --- a/examples/multi_process/client_server_mp/mp_server/Makefile +++ b/examples/multi_process/client_server_mp/mp_server/Makefile @@ -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