libc.mk 745 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (c) 2016-2021, 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. memmove.c \
  14. memrchr.c \
  15. memset.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) \