Alexei Fedorov | 2381d2e | 2020-09-01 15:38:32 +0100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2020, Arm Limited. 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 | memmove.c \ |
| 15 | memrchr.c \ |
| 16 | printf.c \ |
| 17 | putchar.c \ |
| 18 | puts.c \ |
| 19 | snprintf.c \ |
| 20 | strchr.c \ |
| 21 | strcmp.c \ |
| 22 | strlcpy.c \ |
| 23 | strlen.c \ |
| 24 | strncmp.c \ |
| 25 | strnlen.c \ |
| 26 | strrchr.c) |
| 27 | |
| 28 | ifeq (${ARCH},aarch64) |
| 29 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ |
| 30 | memset.S \ |
| 31 | setjmp.S) |
| 32 | else |
| 33 | LIBC_SRCS += $(addprefix lib/libc/aarch32/, \ |
| 34 | memset.S) |
| 35 | endif |
| 36 | |
| 37 | INCLUDES += -Iinclude/lib/libc \ |
| 38 | -Iinclude/lib/libc/$(ARCH) \ |