blob: 2f272651bb8bb3ce15eed91c74cad5cf7c2de192 [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 Pappireddy727830c2021-01-27 19:12:33 -060031 strtoull.c \
Madhukar Pappireddy4febc082021-01-26 21:36:18 -060032 strtol.c)
Alexei Fedorov2381d2e2020-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) \