libc.mk 627 Bytes
Newer Older
1
#
2
# Copyright (c) 2016-2019, 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
15
			memchr.c			\
			memcmp.c			\
			memcpy.c			\
			memmove.c			\
			memset.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
30
31
32
ifeq (${ARCH},aarch64)
LIBC_SRCS	+=	$(addprefix lib/libc/aarch64/,	\
			setjmp.S)
endif

33
INCLUDES	+=	-Iinclude/lib/libc		\
34
			-Iinclude/lib/libc/$(ARCH)	\