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 \ | ||||
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 \ | ||||
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 23 | strlcat.c \ |
Antonio Nino Diaz | bbf55f9 | 2018-09-27 09:22:19 +0100 | [diff] [blame] | 24 | strlcpy.c \ |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 25 | strlen.c \ |
26 | strncmp.c \ | ||||
Antonio Nino Diaz | 12f0a0f | 2018-10-19 00:57:10 +0100 | [diff] [blame] | 27 | strnlen.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 28 | strrchr.c \ |
29 | strtok.c \ | ||||
Madhukar Pappireddy | c74cae4 | 2021-01-27 15:44:52 -0600 | [diff] [blame] | 30 | strtoul.c \ |
Madhukar Pappireddy | 83def83 | 2021-01-27 18:32:17 -0600 | [diff] [blame] | 31 | strtoll.c \ |
Madhukar Pappireddy | 727830c | 2021-01-27 19:12:33 -0600 | [diff] [blame] | 32 | strtoull.c \ |
Madhukar Pappireddy | 4febc08 | 2021-01-26 21:36:18 -0600 | [diff] [blame] | 33 | strtol.c) |
Dan Handley | d7b59e4 | 2016-06-02 17:15:13 +0100 | [diff] [blame] | 34 | |
Antonio Nino Diaz | a884dfb | 2019-02-08 13:20:37 +0000 | [diff] [blame] | 35 | ifeq (${ARCH},aarch64) |
36 | LIBC_SRCS += $(addprefix lib/libc/aarch64/, \ | ||||
37 | setjmp.S) | ||||
38 | endif | ||||
39 | |||||
Roberto Vargas | 0f8f985 | 2018-05-08 10:27:10 +0100 | [diff] [blame] | 40 | INCLUDES += -Iinclude/lib/libc \ |
Antonio Nino Diaz | 6ef1612 | 2018-08-15 19:51:09 +0100 | [diff] [blame] | 41 | -Iinclude/lib/libc/$(ARCH) \ |