blob: 6416a3c84bf7b84df51268d3c6b9fab0c9da78df [file] [log] [blame]
Alexei Fedorov2381d2e2020-09-01 15:38:32 +01001#
2# Copyright (c) 2020, 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 strlcpy.c \
23 strlen.c \
24 strncmp.c \
25 strnlen.c \
26 strrchr.c)
27
28ifeq (${ARCH},aarch64)
29LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
30 memset.S \
31 setjmp.S)
32else
33LIBC_SRCS += $(addprefix lib/libc/aarch32/, \
34 memset.S)
35endif
36
37INCLUDES += -Iinclude/lib/libc \
38 -Iinclude/lib/libc/$(ARCH) \