libc.mk 745 Bytes
Newer Older
1
#
2
# Copyright (c) 2016-2021, ARM Limited and Contributors. All rights reserved.
3
#
dp-arm's avatar
dp-arm committed
4
# SPDX-License-Identifier: BSD-3-Clause
5
6
#

7
LIBC_SRCS	:=	$(addprefix lib/libc/,		\
8
9
10
			abort.c				\
			assert.c			\
			exit.c				\
11
12
13
14
			memchr.c			\
			memcmp.c			\
			memcpy.c			\
			memmove.c			\
Ambroise Vincent's avatar
Ambroise Vincent committed
15
			memrchr.c			\
16
			memset.c			\
17
18
19
			printf.c			\
			putchar.c			\
			puts.c				\
20
			snprintf.c			\
21
22
			strchr.c			\
			strcmp.c			\
23
			strlcat.c			\
24
			strlcpy.c			\
25
26
			strlen.c			\
			strncmp.c			\
27
			strnlen.c			\
28
29
			strrchr.c			\
			strtok.c			\
30
			strtoul.c			\
31
			strtoll.c			\
32
			strtoull.c			\
33
			strtol.c)
34

35
36
37
38
39
ifeq (${ARCH},aarch64)
LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
			setjmp.S)
endif

40
INCLUDES	+=	-Iinclude/lib/libc		\
41
			-Iinclude/lib/libc/$(ARCH)	\