summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2014-05-16 10:18:57 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-05-16 16:01:46 +0200
commitf71d637cc5847ac534345b73feedc54d7a80fc76 (patch)
tree3f4510049e0cbb7065046b86c500bffb1afd78b0 /examples/multi_process/client_server_mp
parentbc85dcf0556b1c78ce166321f43ca00c89a046ae (diff)
downloaddpdk-f71d637cc5847ac534345b73feedc54d7a80fc76.zip
dpdk-f71d637cc5847ac534345b73feedc54d7a80fc76.tar.gz
dpdk-f71d637cc5847ac534345b73feedc54d7a80fc76.tar.xz
examples: use rte.extsubdir.mk to build examples with subdirectories
Signed-off-by: Olivier Matz <olivier.matz@6wind.com> Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/examples/multi_process/client_server_mp/Makefile b/examples/multi_process/client_server_mp/Makefile
index 24d31b0..d2046ba 100644
--- a/examples/multi_process/client_server_mp/Makefile
+++ b/examples/multi_process/client_server_mp/Makefile
@@ -33,15 +33,12 @@ ifeq ($(RTE_SDK),)
$(error "Please define RTE_SDK environment variable")
endif
-include $(RTE_SDK)/mk/rte.vars.mk
-unexport RTE_SRCDIR RTE_OUTPUT RTE_EXTMK
-
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += $(wildcard mp_*)
+# Default target, can be overriden by command line or environment
+RTE_TARGET ?= x86_64-default-linuxapp-gcc
-.PHONY: all clean $(DIRS-y)
+include $(RTE_SDK)/mk/rte.vars.mk
-all: $(DIRS-y)
-clean: $(DIRS-y)
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_client
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += mp_server
-$(DIRS-y):
- $(MAKE) -C $@ $(MAKECMDGOALS)
+include $(RTE_SDK)/mk/rte.extsubdir.mk