Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2016-2019, 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 | memmove.c \ |
| 15 | memset.c \ |
| 16 | printf.c \ |
| 17 | putchar.c \ |
| 18 | puts.c \ |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame] | 19 | rand.c \ |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 20 | snprintf.c \ |
| 21 | strchr.c \ |
| 22 | strcmp.c \ |
| 23 | strlcpy.c \ |
| 24 | strlen.c \ |
| 25 | strncmp.c \ |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame] | 26 | strncpy.c \ |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 27 | strnlen.c \ |
| 28 | strrchr.c) |
| 29 | |
| 30 | ifeq (${ARCH},aarch64) |
| 31 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ |
| 32 | setjmp.S) |
| 33 | endif |
| 34 | |
| 35 | INCLUDES += -Iinclude/lib/libc \ |
| 36 | -Iinclude/lib/libc/$(ARCH) \ |