libc.mk 733 Bytes
Newer Older
1
#
2
# Copyright (c) 2016-2020, 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
17
18
			printf.c			\
			putchar.c			\
			puts.c				\
19
			snprintf.c			\
20
21
			strchr.c			\
			strcmp.c			\
22
			strlcpy.c			\
23
24
			strlen.c			\
			strncmp.c			\
25
26
			strnlen.c			\
			strrchr.c)
27

28
29
ifeq (${ARCH},aarch64)
LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
30
			memset.S			\
31
32
33
			setjmp.S)
endif

34
35
36
37
38
ifeq (${ARCH},aarch32)
LIBC_SRCS	+=	$(addprefix lib/libc/aarch32/,	\
			memset.S)
endif

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