blob: 3b83216061fbf49885a92d39fa1ce9ddc4262b0e [file] [log] [blame]
Olivier Deprez91cb0492024-01-24 11:15:26 +01001#
Manish V Badarkhecc9f3932025-01-21 10:27:45 +00002# Copyright (c) 2024-2025, Arm Limited and Contributors. All rights reserved.
Olivier Deprez91cb0492024-01-24 11:15:26 +01003#
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 \
Olivier Deprez91cb0492024-01-24 11:15:26 +010017 printf.c \
18 putchar.c \
19 puts.c \
Manish V Badarkhecc9f3932025-01-21 10:27:45 +000020 qsort.c \
Olivier Deprez91cb0492024-01-24 11:15:26 +010021 snprintf.c \
22 strchr.c \
23 strcmp.c \
Jit Loon Lim012a9d92025-03-17 16:25:53 +080024 strcpy_secure.c \
Olivier Deprez91cb0492024-01-24 11:15:26 +010025 strlcat.c \
26 strlcpy.c \
27 strlen.c \
Jit Loon Lim012a9d92025-03-17 16:25:53 +080028 strnlen_secure.c \
Olivier Deprez91cb0492024-01-24 11:15:26 +010029 strncmp.c \
30 strnlen.c \
31 strrchr.c \
32 strtok.c \
33 strtoul.c \
34 strtoll.c \
35 strtoull.c \
36 strtol.c)
37
38ifeq (${ARCH},aarch64)
39LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
40 setjmp.S)
41endif
42
43INCLUDES += -Iinclude/lib/libc \
44 -Iinclude/lib/libc/$(ARCH) \
45