New upstream version 18.02
[deb_dpdk.git] / examples / performance-thread / common / common.mk
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015 Intel Corporation
3
4 # list the C files belonging to the lthread subsystem, these are common to all
5 # lthread apps. Any makefile including this should set VPATH to include this
6 # directory path
7 #
8
9 MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
10
11 ifeq ($(CONFIG_RTE_ARCH_X86_64),y)
12 ARCH_PATH += $(MKFILE_PATH)/arch/x86
13 else ifeq ($(CONFIG_RTE_ARCH_ARM64),y)
14 ARCH_PATH += $(MKFILE_PATH)/arch/arm64
15 endif
16
17 VPATH := $(MKFILE_PATH) $(ARCH_PATH)
18
19 SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c
20
21 INCLUDES += -I$(MKFILE_PATH) -I$(ARCH_PATH)