xref: /rk3399_ARM-atf/lib/libc/libc_common.mk (revision 99db13bfaa5b11345730937c2e0e56cb670c01a5)
1*99db13bfSOlivier Deprez#
2*99db13bfSOlivier Deprez# Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
3*99db13bfSOlivier Deprez#
4*99db13bfSOlivier Deprez# SPDX-License-Identifier: BSD-3-Clause
5*99db13bfSOlivier Deprez#
6*99db13bfSOlivier Deprez
7*99db13bfSOlivier DeprezLIBC_SRCS	:=	$(addprefix lib/libc/,		\
8*99db13bfSOlivier Deprez			abort.c				\
9*99db13bfSOlivier Deprez			assert.c			\
10*99db13bfSOlivier Deprez			exit.c				\
11*99db13bfSOlivier Deprez			memchr.c			\
12*99db13bfSOlivier Deprez			memcmp.c			\
13*99db13bfSOlivier Deprez			memcpy.c			\
14*99db13bfSOlivier Deprez			memcpy_s.c			\
15*99db13bfSOlivier Deprez			memmove.c			\
16*99db13bfSOlivier Deprez			memrchr.c			\
17*99db13bfSOlivier Deprez			memset.c			\
18*99db13bfSOlivier Deprez			printf.c			\
19*99db13bfSOlivier Deprez			putchar.c			\
20*99db13bfSOlivier Deprez			puts.c				\
21*99db13bfSOlivier Deprez			snprintf.c			\
22*99db13bfSOlivier Deprez			strchr.c			\
23*99db13bfSOlivier Deprez			strcmp.c			\
24*99db13bfSOlivier Deprez			strlcat.c			\
25*99db13bfSOlivier Deprez			strlcpy.c			\
26*99db13bfSOlivier Deprez			strlen.c			\
27*99db13bfSOlivier Deprez			strncmp.c			\
28*99db13bfSOlivier Deprez			strnlen.c			\
29*99db13bfSOlivier Deprez			strrchr.c			\
30*99db13bfSOlivier Deprez			strtok.c			\
31*99db13bfSOlivier Deprez			strtoul.c			\
32*99db13bfSOlivier Deprez			strtoll.c			\
33*99db13bfSOlivier Deprez			strtoull.c			\
34*99db13bfSOlivier Deprez			strtol.c)
35*99db13bfSOlivier Deprez
36*99db13bfSOlivier Deprezifeq (${ARCH},aarch64)
37*99db13bfSOlivier DeprezLIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
38*99db13bfSOlivier Deprez			setjmp.S)
39*99db13bfSOlivier Deprezendif
40*99db13bfSOlivier Deprez
41*99db13bfSOlivier DeprezINCLUDES	+=	-Iinclude/lib/libc		\
42*99db13bfSOlivier Deprez			-Iinclude/lib/libc/$(ARCH)	\
43*99db13bfSOlivier Deprez
44