Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 1 | # |
Mark Dykes | ad5ab07 | 2020-08-19 19:11:33 +0000 | [diff] [blame] | 2 | # Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 5 | # |
6 | |||||
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +0000 | [diff] [blame] | 7 | LIBC_SRCS := $(addprefix lib/libc/, \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 8 | abort.c \ |
9 | assert.c \ | ||||
10 | exit.c \ | ||||
Antonio Nino Diaz | 9eddb1e | 2018-08-16 14:53:05 +0100 | [diff] [blame] | 11 | memchr.c \ |
12 | memcmp.c \ | ||||
13 | memcpy.c \ | ||||
14 | memmove.c \ | ||||
Ambroise Vincent | 35248f2 | 2019-06-19 17:14:09 +0100 | [diff] [blame] | 15 | memrchr.c \ |
Mark Dykes | ad5ab07 | 2020-08-19 19:11:33 +0000 | [diff] [blame] | 16 | memset.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 17 | printf.c \ |
18 | putchar.c \ | ||||
19 | puts.c \ | ||||
Antonio Nino Diaz | c0c8eb6 | 2018-08-15 17:02:28 +0100 | [diff] [blame] | 20 | snprintf.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 21 | strchr.c \ |
22 | strcmp.c \ | ||||
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 23 | strlcpy.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 24 | strlen.c \ |
25 | strncmp.c \ | ||||
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 26 | strnlen.c \ |
27 | strrchr.c) | ||||
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 28 | |
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +0000 | [diff] [blame] | 29 | ifeq (${ARCH},aarch64) |
30 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ | ||||
31 | setjmp.S) | ||||
32 | endif | ||||
33 | |||||
Roberto Vargas | 0f8f985 | 2018-05-08 10:27:10 +0100 | [diff] [blame] | 34 | INCLUDES += -Iinclude/lib/libc \ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 35 | -Iinclude/lib/libc/$(ARCH) \ |