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 ($(shell uname -m),x86_64)
12 ARCH_PATH += $(MKFILE_PATH)/arch/x86
13 else ifeq ($(shell uname -m),arm64)
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 CFLAGS += -I$(MKFILE_PATH) -I$(ARCH_PATH)