diff options
Diffstat (limited to 'src/spdk/dpdk/examples/performance-thread/common/common.mk')
-rw-r--r-- | src/spdk/dpdk/examples/performance-thread/common/common.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/spdk/dpdk/examples/performance-thread/common/common.mk b/src/spdk/dpdk/examples/performance-thread/common/common.mk new file mode 100644 index 00000000..5e2b18a9 --- /dev/null +++ b/src/spdk/dpdk/examples/performance-thread/common/common.mk @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2015 Intel Corporation + +# list the C files belonging to the lthread subsystem, these are common to all +# lthread apps. Any makefile including this should set VPATH to include this +# directory path +# + +MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST)))) + +ifeq ($(CONFIG_RTE_ARCH_X86_64),y) +ARCH_PATH += $(MKFILE_PATH)/arch/x86 +else ifeq ($(CONFIG_RTE_ARCH_ARM64),y) +ARCH_PATH += $(MKFILE_PATH)/arch/arm64 +endif + +VPATH := $(MKFILE_PATH) $(ARCH_PATH) + +SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c + +INCLUDES += -I$(MKFILE_PATH) -I$(ARCH_PATH) |