blob: e3f5c67dd60dc466c8855eb97fddf6773d2feb7b [file] [log] [blame]
Alexei Fedorov2381d2e2020-09-01 15:38:32 +01001#
Madhukar Pappireddy4febc082021-01-26 21:36:18 -06002# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
Alexei Fedorov2381d2e2020-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 Pappireddy4febc082021-01-26 21:36:18 -060022 strlcat.c \
Alexei Fedorov2381d2e2020-09-01 15:38:32 +010023 strlcpy.c \
24 strlen.c \
25 strncmp.c \
26 strnlen.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060027 strrchr.c \
28 strtok.c \
Madhukar Pappireddyc74cae42021-01-27 15:44:52 -060029 strtoul.c \
Madhukar Pappireddy83def832021-01-27 18:32:17 -060030 strtoll.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060031 strtol.c)
Alexei Fedorov2381d2e2020-09-01 15:38:32 +010032
33ifeq (${ARCH},aarch64)
34LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
35 memset.S \
36 setjmp.S)
37else
38LIBC_SRCS += $(addprefix lib/libc/aarch32/, \
39 memset.S)
40endif
41
42INCLUDES += -Iinclude/lib/libc \
43 -Iinclude/lib/libc/$(ARCH) \