Makefile.arch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. CSRC-y := brk.c ioperm.c iopl.c __syscall_error.c sigaction.c
  8. SSRC-y := \
  9. __longjmp.S setjmp.S bsd-setjmp.S \
  10. bsd-_setjmp.S sigrestorer.S \
  11. vfork.S clone.S
  12. SSRC-$(UCLIBC_HAS_LFS) += mmap64.S
  13. SSRC-$(UCLIBC_HAS_THREADS_NATIVE) += libc-thumb_atomics.S
  14. libc-nonshared-$(UCLIBC_HAS_THREADS_NATIVE) += $(ARCH_OUT)/libc-aeabi_read_tp.os
  15. libc-static-$(UCLIBC_HAS_THREADS_NATIVE) += $(ARCH_OUT)/libc-aeabi_read_tp.o
  16. CSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.c
  17. SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += getcontext.S setcontext.S swapcontext.S
  18. # Is our compiler set up for EABI ?
  19. CC_IS_EABI_CHECK = $(filter-out -include libc-symbols.h,$(CC) $(CFLAGS))
  20. $(eval $(call cache-output-var,IS_EABI,$(CC_IS_EABI_CHECK) -x c - -E -dM </dev/null 2>/dev/null | grep __ARM_EABI__ 2>&1 >/dev/null && echo 'y'))
  21. CSRC-$(IS_EABI) += aeabi_assert.c aeabi_atexit.c aeabi_errno_addr.c \
  22. aeabi_localeconv.c aeabi_memclr.c aeabi_memcpy.c \
  23. aeabi_memmove.c aeabi_memset.c find_exidx.c
  24. SSRC-$(IS_EABI) += syscall-eabi.S
  25. CSRC-$(if $(IS_EABI),,y)) += syscall.c
  26. ARCH_OBJ_FILTEROUT-$(IS_EABI) := syscall.c
  27. ifeq ($(IS_EABI),y)
  28. CSRC-$(UCLIBC_HAS_WCHAR) += aeabi_mb_cur_max.c
  29. endif
  30. libc-static-$(IS_EABI) += $(addprefix $(ARCH_OUT)/, \
  31. aeabi_lcsts.o \
  32. aeabi_math.o \
  33. aeabi_sighandlers.o \
  34. )
  35. libc-nonshared-$(IS_EABI) += $(addprefix $(ARCH_OUT)/, \
  36. aeabi_lcsts.os \
  37. aeabi_math.os \
  38. aeabi_sighandlers.os \
  39. aeabi_unwind_cpp_pr1.o \
  40. )