Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 1 | # |
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +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 \ | ||||
15 | memset.c \ | ||||
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 16 | printf.c \ |
17 | putchar.c \ | ||||
18 | puts.c \ | ||||
Antonio Nino Diaz | c0c8eb6 | 2018-08-15 17:02:28 +0100 | [diff] [blame] | 19 | snprintf.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 20 | strchr.c \ |
21 | strcmp.c \ | ||||
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 22 | strlcpy.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 23 | strlen.c \ |
24 | strncmp.c \ | ||||
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 25 | strnlen.c \ |
26 | strrchr.c) | ||||
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 27 | |
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +0000 | [diff] [blame] | 28 | ifeq (${ARCH},aarch64) |
29 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ | ||||
30 | setjmp.S) | ||||
31 | endif | ||||
32 | |||||
Roberto Vargas | 0f8f985 | 2018-05-08 10:27:10 +0100 | [diff] [blame] | 33 | INCLUDES += -Iinclude/lib/libc \ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 34 | -Iinclude/lib/libc/$(ARCH) \ |