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