blob: 4879818da51e493c69a8997cc78aa679524deec1 [file] [log] [blame]
Olivier Deprez91cb0492024-01-24 11:15:26 +01001#
2# Copyright (c) 2024, 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 \
Olivier Deprez91cb0492024-01-24 11:15:26 +010017 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