blob: 93d30d0356c8209556770a56f35962dc8fca6ca3 [file] [log] [blame]
Dan Handleyd7b59e42016-06-02 17:15:13 +01001#
Mark Dykesad5ab072020-08-19 19:11:33 +00002# Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
Dan Handleyd7b59e42016-06-02 17:15:13 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Dan Handleyd7b59e42016-06-02 17:15:13 +01005#
6
Antonio Nino Diaza884dfb2019-02-08 13:20:37 +00007LIBC_SRCS := $(addprefix lib/libc/, \
Dan Handleyd7b59e42016-06-02 17:15:13 +01008 abort.c \
9 assert.c \
10 exit.c \
Antonio Nino Diaz9eddb1e2018-08-16 14:53:05 +010011 memchr.c \
12 memcmp.c \
13 memcpy.c \
14 memmove.c \
Ambroise Vincent35248f22019-06-19 17:14:09 +010015 memrchr.c \
Mark Dykesad5ab072020-08-19 19:11:33 +000016 memset.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010017 printf.c \
18 putchar.c \
19 puts.c \
Antonio Nino Diazc0c8eb62018-08-15 17:02:28 +010020 snprintf.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010021 strchr.c \
22 strcmp.c \
Antonio Nino Diazbbf55f92018-09-27 09:22:19 +010023 strlcpy.c \
Dan Handleyd7b59e42016-06-02 17:15:13 +010024 strlen.c \
25 strncmp.c \
Antonio Nino Diaz12f0a0f2018-10-19 00:57:10 +010026 strnlen.c \
27 strrchr.c)
Dan Handleyd7b59e42016-06-02 17:15:13 +010028
Antonio Nino Diaza884dfb2019-02-08 13:20:37 +000029ifeq (${ARCH},aarch64)
30LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
31 setjmp.S)
32endif
33
Roberto Vargas0f8f9852018-05-08 10:27:10 +010034INCLUDES += -Iinclude/lib/libc \
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +010035 -Iinclude/lib/libc/$(ARCH) \