1a9643ea8Slogwang# 2a9643ea8Slogwang# BSD LICENSE 3a9643ea8Slogwang# 4a9643ea8Slogwang# Copyright(c) 2015 Intel Corporation. All rights reserved. 5a9643ea8Slogwang# All rights reserved. 6a9643ea8Slogwang# 7a9643ea8Slogwang# Redistribution and use in source and binary forms, with or without 8a9643ea8Slogwang# modification, are permitted provided that the following conditions 9a9643ea8Slogwang# are met: 10a9643ea8Slogwang# 11a9643ea8Slogwang# * Redistributions of source code must retain the above copyright 12a9643ea8Slogwang# notice, this list of conditions and the following disclaimer. 13a9643ea8Slogwang# * Redistributions in binary form must reproduce the above copyright 14a9643ea8Slogwang# notice, this list of conditions and the following disclaimer in 15a9643ea8Slogwang# the documentation and/or other materials provided with the 16a9643ea8Slogwang# distribution. 17a9643ea8Slogwang# * Neither the name of Intel Corporation nor the names of its 18a9643ea8Slogwang# contributors may be used to endorse or promote products derived 19a9643ea8Slogwang# from this software without specific prior written permission. 20a9643ea8Slogwang# 21a9643ea8Slogwang# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22a9643ea8Slogwang# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23a9643ea8Slogwang# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 24a9643ea8Slogwang# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 25a9643ea8Slogwang# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26a9643ea8Slogwang# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 27a9643ea8Slogwang# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 28a9643ea8Slogwang# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 29a9643ea8Slogwang# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30a9643ea8Slogwang# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 31a9643ea8Slogwang# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32a9643ea8Slogwang 33*2bfe3f2eSlogwang# list the C files belonging to the lthread subsystem, these are common to all 34*2bfe3f2eSlogwang# lthread apps. Any makefile including this should set VPATH to include this 35*2bfe3f2eSlogwang# directory path 36*2bfe3f2eSlogwang# 37a9643ea8Slogwang 38*2bfe3f2eSlogwangMKFILE_PATH=$(abspath $(dir $(lastword $(MAKEFILE_LIST)))) 39*2bfe3f2eSlogwang 40*2bfe3f2eSlogwangifeq ($(CONFIG_RTE_ARCH_X86_64),y) 41*2bfe3f2eSlogwangARCH_PATH += $(MKFILE_PATH)/arch/x86 42*2bfe3f2eSlogwangelse ifeq ($(CONFIG_RTE_ARCH_ARM64),y) 43*2bfe3f2eSlogwangARCH_PATH += $(MKFILE_PATH)/arch/arm64 44*2bfe3f2eSlogwangendif 45*2bfe3f2eSlogwang 46*2bfe3f2eSlogwangVPATH := $(MKFILE_PATH) $(ARCH_PATH) 47*2bfe3f2eSlogwang 48*2bfe3f2eSlogwangSRCS-y += lthread.c lthread_sched.c lthread_cond.c lthread_tls.c lthread_mutex.c lthread_diag.c ctx.c 49*2bfe3f2eSlogwang 50*2bfe3f2eSlogwangINCLUDES += -I$(MKFILE_PATH) -I$(ARCH_PATH) 51