Alexei Fedorov | 2381d2e | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 1 | # |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 2 | # Copyright (c) 2020-2021, Arm Limited. All rights reserved. |
Alexei Fedorov | 2381d2e | 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 | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 22 | strlcat.c \ |
Alexei Fedorov | 2381d2e | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 23 | strlcpy.c \ |
| 24 | strlen.c \ |
| 25 | strncmp.c \ |
| 26 | strnlen.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 27 | strrchr.c \ |
| 28 | strtok.c \ |
Madhukar Pappireddy | c74cae4 | 2021-01-27 15:44:52 -0600 | [diff] [blame] | 29 | strtoul.c \ |
Madhukar Pappireddy | 83def83 | 2021-01-27 18:32:17 -0600 | [diff] [blame^] | 30 | strtoll.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 31 | strtol.c) |
Alexei Fedorov | 2381d2e | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 32 | |
| 33 | ifeq (${ARCH},aarch64) |
| 34 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ |
| 35 | memset.S \ |
| 36 | setjmp.S) |
| 37 | else |
| 38 | LIBC_SRCS += $(addprefix lib/libc/aarch32/, \ |
| 39 | memset.S) |
| 40 | endif |
| 41 | |
| 42 | INCLUDES += -Iinclude/lib/libc \ |
| 43 | -Iinclude/lib/libc/$(ARCH) \ |