libc_common.mk 743 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (c) 2024, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. LIBC_SRCS := $(addprefix lib/libc/, \
  7. abort.c \
  8. assert.c \
  9. exit.c \
  10. memchr.c \
  11. memcmp.c \
  12. memcpy.c \
  13. memcpy_s.c \
  14. memmove.c \
  15. memrchr.c \
  16. printf.c \
  17. putchar.c \
  18. puts.c \
  19. snprintf.c \
  20. strchr.c \
  21. strcmp.c \
  22. strlcat.c \
  23. strlcpy.c \
  24. strlen.c \
  25. strncmp.c \
  26. strnlen.c \
  27. strrchr.c \
  28. strtok.c \
  29. strtoul.c \
  30. strtoll.c \
  31. strtoull.c \
  32. strtol.c)
  33. ifeq (${ARCH},aarch64)
  34. LIBC_SRCS += $(addprefix lib/libc/aarch64/, \
  35. setjmp.S)
  36. endif
  37. INCLUDES += -Iinclude/lib/libc \
  38. -Iinclude/lib/libc/$(ARCH) \