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
9MKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))
10
11ifeq ($(shell uname -m),x86_64)
12ARCH_PATH += $(MKFILE_PATH)/arch/x86
13else ifeq ($(shell uname -m),arm64)
14ARCH_PATH += $(MKFILE_PATH)/arch/arm64
15endif
16
17VPATH := $(MKFILE_PATH) $(ARCH_PATH)
18
19SRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c
20
21CFLAGS += -I$(MKFILE_PATH) -I$(ARCH_PATH)
22