]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/client_server_mp/Makefile
test/spinlock: use compile atomics for lcores sync
[dpdk.git] / examples / multi_process / client_server_mp / Makefile
index fe7a8af605d7f6193eac0f072fe18ce6c5142945..f4cab6313024c22d34b1a1f5999eb34dcbf77f87 100644 (file)
@@ -1,16 +1,10 @@
 # SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2010-2014 Intel Corporation
+# Copyright(c) 2020 Intel Corporation
 
-ifeq ($(RTE_SDK),)
-$(error "Please define RTE_SDK environment variable")
-endif
+subdirs := mp_client mp_server
 
-# Default target, detect a build directory, by looking for a path with a .config
-RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config)))))
+.PHONY: all static shared clean $(subdirs)
+all static shared clean: $(subdirs)
 
-include $(RTE_SDK)/mk/rte.vars.mk
-
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_client
-DIRS-$(CONFIG_RTE_EXEC_ENV_LINUX) += mp_server
-
-include $(RTE_SDK)/mk/rte.extsubdir.mk
+$(subdirs):
+       $(MAKE) -C $@ $(MAKECMDGOALS)