2016-06-02 17:15:13 +01:00
|
|
|
#
|
2019-02-08 13:20:37 +00:00
|
|
|
# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
|
2016-06-02 17:15:13 +01:00
|
|
|
#
|
2017-05-03 09:38:09 +01:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2016-06-02 17:15:13 +01:00
|
|
|
#
|
|
|
|
|
2019-02-08 13:20:37 +00:00
|
|
|
LIBC_SRCS := $(addprefix lib/libc/, \
|
2016-06-02 17:15:13 +01:00
|
|
|
abort.c \
|
|
|
|
assert.c \
|
|
|
|
exit.c \
|
2018-08-16 14:53:05 +01:00
|
|
|
memchr.c \
|
|
|
|
memcmp.c \
|
|
|
|
memcpy.c \
|
|
|
|
memmove.c \
|
|
|
|
memset.c \
|
2016-06-02 17:15:13 +01:00
|
|
|
printf.c \
|
|
|
|
putchar.c \
|
|
|
|
puts.c \
|
2018-08-15 17:02:28 +01:00
|
|
|
snprintf.c \
|
2016-06-02 17:15:13 +01:00
|
|
|
strchr.c \
|
|
|
|
strcmp.c \
|
2018-09-27 09:22:19 +01:00
|
|
|
strlcpy.c \
|
2016-06-02 17:15:13 +01:00
|
|
|
strlen.c \
|
|
|
|
strncmp.c \
|
2018-10-19 00:57:10 +01:00
|
|
|
strnlen.c \
|
|
|
|
strrchr.c)
|
2016-06-02 17:15:13 +01:00
|
|
|
|
2019-02-08 13:20:37 +00:00
|
|
|
ifeq (${ARCH},aarch64)
|
|
|
|
LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
|
|
|
|
setjmp.S)
|
|
|
|
endif
|
|
|
|
|
2018-05-08 10:27:10 +01:00
|
|
|
INCLUDES += -Iinclude/lib/libc \
|
2018-08-15 19:51:09 +01:00
|
|
|
-Iinclude/lib/libc/$(ARCH) \
|