blob: 2f272651bb8bb3ce15eed91c74cad5cf7c2de192 [file] [log] [blame]
Alexei Fedorove3f2b1a2020-09-01 15:38:32 +01001#
Madhukar Pappireddy015240d2021-01-26 21:36:18 -06002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Alexei Fedorove3f2b1a2020-09-01 15:38:32 +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 memmove.c \
15 memrchr.c \
16 printf.c \
17 putchar.c \
18 puts.c \
19 snprintf.c \
20 strchr.c \
21 strcmp.c \
Madhukar Pappireddy015240d2021-01-26 21:36:18 -060022 strlcat.c \
Alexei Fedorove3f2b1a2020-09-01 15:38:32 +010023 strlcpy.c \
24 strlen.c \
25 strncmp.c \
26 strnlen.c \
Madhukar Pappireddy015240d2021-01-26 21:36:18 -060027 strrchr.c \
28 strtok.c \
Madhukar Pappireddy15c1c142021-01-27 15:44:52 -060029 strtoul.c \
Madhukar Pappireddy587c1552021-01-27 18:32:17 -060030 strtoll.c \
Madhukar Pappireddyd56b9572021-01-27 19:12:33 -060031 strtoull.c \
Madhukar Pappireddy015240d2021-01-26 21:36:18 -060032 strtol.c)
Alexei Fedorove3f2b1a2020-09-01 15:38:32 +010033
34ifeq (${ARCH},aarch64)
35LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
36 memset.S \
37 setjmp.S)
38else
39LIBC_SRCS += $(addprefix lib/libc/aarch32/, \
40 memset.S)
41endif
42
43INCLUDES += -Iinclude/lib/libc \
44 -Iinclude/lib/libc/$(ARCH) \