Olivier Deprez | 91cb049 | 2024-01-24 11:15:26 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. |
| 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 | memcpy_s.c \ |
| 15 | memmove.c \ |
| 16 | memrchr.c \ |
Olivier Deprez | 91cb049 | 2024-01-24 11:15:26 +0100 | [diff] [blame] | 17 | printf.c \ |
| 18 | putchar.c \ |
| 19 | puts.c \ |
| 20 | snprintf.c \ |
| 21 | strchr.c \ |
| 22 | strcmp.c \ |
| 23 | strlcat.c \ |
| 24 | strlcpy.c \ |
| 25 | strlen.c \ |
| 26 | strncmp.c \ |
| 27 | strnlen.c \ |
| 28 | strrchr.c \ |
| 29 | strtok.c \ |
| 30 | strtoul.c \ |
| 31 | strtoll.c \ |
| 32 | strtoull.c \ |
| 33 | strtol.c) |
| 34 | |
| 35 | ifeq (${ARCH},aarch64) |
| 36 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ |
| 37 | setjmp.S) |
| 38 | endif |
| 39 | |
| 40 | INCLUDES += -Iinclude/lib/libc \ |
| 41 | -Iinclude/lib/libc/$(ARCH) \ |
| 42 | |