Alexei Fedorov | e3f2b1a | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 1 | # |
Madhukar Pappireddy | 015240d | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Alexei Fedorov | e3f2b1a | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | LIBC_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 Pappireddy | 015240d | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 22 | strlcat.c \ |
Alexei Fedorov | e3f2b1a | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 23 | strlcpy.c \ |
| 24 | strlen.c \ |
| 25 | strncmp.c \ |
| 26 | strnlen.c \ |
Madhukar Pappireddy | 015240d | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 27 | strrchr.c \ |
| 28 | strtok.c \ |
Madhukar Pappireddy | 15c1c14 | 2021-01-27 15:44:52 -0600 | [diff] [blame] | 29 | strtoul.c \ |
Madhukar Pappireddy | 587c155 | 2021-01-27 18:32:17 -0600 | [diff] [blame] | 30 | strtoll.c \ |
Madhukar Pappireddy | d56b957 | 2021-01-27 19:12:33 -0600 | [diff] [blame] | 31 | strtoull.c \ |
Madhukar Pappireddy | 015240d | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 32 | strtol.c) |
Alexei Fedorov | e3f2b1a | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 33 | |
| 34 | ifeq (${ARCH},aarch64) |
| 35 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ |
| 36 | memset.S \ |
| 37 | setjmp.S) |
| 38 | else |
| 39 | LIBC_SRCS += $(addprefix lib/libc/aarch32/, \ |
| 40 | memset.S) |
| 41 | endif |
| 42 | |
| 43 | INCLUDES += -Iinclude/lib/libc \ |
| 44 | -Iinclude/lib/libc/$(ARCH) \ |