1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2015 Intel Corporation
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
9 MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
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
17 VPATH := $(MKFILE_PATH) $(ARCH_PATH)
19 SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c
21 INCLUDES += -I$(MKFILE_PATH) -I$(ARCH_PATH)