Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 1 | # |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 2 | # Copyright (c) 2016-2021, 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 \ | ||||
Jit Loon Lim | 410c451 | 2023-05-28 16:33:28 +0800 | [diff] [blame] | 14 | memcpy_s.c \ |
Antonio Nino Diaz | 9eddb1e | 2018-08-16 14:53:05 +0100 | [diff] [blame] | 15 | memmove.c \ |
Ambroise Vincent | 35248f2 | 2019-06-19 17:14:09 +0100 | [diff] [blame] | 16 | memrchr.c \ |
Mark Dykes | ad5ab07 | 2020-08-19 19:11:33 +0000 | [diff] [blame] | 17 | memset.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 18 | printf.c \ |
19 | putchar.c \ | ||||
20 | puts.c \ | ||||
Antonio Nino Diaz | c0c8eb6 | 2018-08-15 17:02:28 +0100 | [diff] [blame] | 21 | snprintf.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 22 | strchr.c \ |
23 | strcmp.c \ | ||||
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 24 | strlcat.c \ |
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 25 | strlcpy.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 26 | strlen.c \ |
27 | strncmp.c \ | ||||
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 28 | strnlen.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 29 | strrchr.c \ |
30 | strtok.c \ | ||||
Madhukar Pappireddy | c74cae4 | 2021-01-27 15:44:52 -0600 | [diff] [blame] | 31 | strtoul.c \ |
Madhukar Pappireddy | 83def83 | 2021-01-27 18:32:17 -0600 | [diff] [blame] | 32 | strtoll.c \ |
Madhukar Pappireddy | 727830c | 2021-01-27 19:12:33 -0600 | [diff] [blame] | 33 | strtoull.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 34 | strtol.c) |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 35 | |
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +0000 | [diff] [blame] | 36 | ifeq (${ARCH},aarch64) |
37 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ | ||||
38 | setjmp.S) | ||||
39 | endif | ||||
40 | |||||
Roberto Vargas | 0f8f985 | 2018-05-08 10:27:10 +0100 | [diff] [blame] | 41 | INCLUDES += -Iinclude/lib/libc \ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 42 | -Iinclude/lib/libc/$(ARCH) \ |