1#
2# Copyright (c) 2020-2021, Arm Limited. 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			printf.c			\
17			putchar.c			\
18			puts.c				\
19			snprintf.c			\
20			strchr.c			\
21			strcmp.c			\
22			strlcat.c			\
23			strlcpy.c			\
24			strlen.c			\
25			strncmp.c			\
26			strnlen.c			\
27			strrchr.c			\
28			strtok.c			\
29			strtoul.c			\
30			strtoll.c			\
31			strtoull.c			\
32			strtol.c)
33
34ifeq (${ARCH},aarch64)
35LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
36			memset.S			\
37			setjmp.S)
38else
39LIBC_SRCS	+=	$(addprefix lib/libc/aarch32/,	\
40			memset.S)
41endif
42
43INCLUDES	+=	-Iinclude/lib/libc		\
44			-Iinclude/lib/libc/$(ARCH)	\
45