X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fmulti_process%2Fclient_server_mp%2FMakefile;h=fe7a8af605d7f6193eac0f072fe18ce6c5142945;hb=c13cecf60f12;hp=6f6c45228d4832849aa2d8ba4ed9658770df80cf;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/multi_process/client_server_mp/Makefile b/examples/multi_process/client_server_mp/Makefile index 6f6c45228d..fe7a8af605 100644 --- a/examples/multi_process/client_server_mp/Makefile +++ b/examples/multi_process/client_server_mp/Makefile @@ -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