summaryrefslogtreecommitdiff
path: root/examples/multi_process/Makefile
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/Makefile
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/Makefile')
-rw-r--r--examples/multi_process/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/examples/multi_process/Makefile b/examples/multi_process/Makefile
index ba96a7e..5e01f9a 100644
--- a/examples/multi_process/Makefile
+++ b/examples/multi_process/Makefile
@@ -33,15 +33,13 @@ 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) += client_server_mp
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += simple_mp
+DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += symmetric_mp
-$(DIRS-y):
- $(MAKE) -C $@ $(MAKECMDGOALS)
+include $(RTE_SDK)/mk/rte.extsubdir.mk