1#
2# Copyright (c) 2016-2021, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7LIBC_SRCS	:=	$(addprefix lib/libc/,		\
8			abort.c				\
9			assert.c			\
10			exit.c				\
11			memchr.c			\
12			memcmp.c			\
13			memcpy.c			\
14			memmove.c			\
15			memrchr.c			\
16			memset.c			\
17			printf.c			\
18			putchar.c			\
19			puts.c				\
20			snprintf.c			\
21			strchr.c			\
22			strcmp.c			\
23			strlcat.c			\
24			strlcpy.c			\
25			strlen.c			\
26			strncmp.c			\
27			strnlen.c			\
28			strrchr.c			\
29			strtok.c			\
30			strtoul.c			\
31			strtoll.c			\
32			strtoull.c			\
33			strtol.c)
34
35ifeq (${ARCH},aarch64)
36LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
37			setjmp.S)
38endif
39
40INCLUDES	+=	-Iinclude/lib/libc		\
41			-Iinclude/lib/libc/$(ARCH)	\
42