Makefile.arch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-aeabi_read_tp.S libc-thumb_atomics.S
  14. CSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += makecontext.c
  15. SSRC-$(UCLIBC_HAS_CONTEXT_FUNCS) += getcontext.S setcontext.S swapcontext.S
  16. # Is our compiler set up for EABI ?
  17. CC_IS_EABI_CHECK = $(filter-out -include libc-symbols.h,$(CC) $(CFLAGS))
  18. $(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'))
  19. CSRC-$(IS_EABI) += aeabi_assert.c aeabi_atexit.c aeabi_errno_addr.c \
  20. aeabi_localeconv.c aeabi_memclr.c aeabi_memcpy.c \
  21. aeabi_memmove.c aeabi_memset.c find_exidx.c
  22. SSRC-$(IS_EABI) += syscall-eabi.S
  23. CSRC-$(if $(IS_EABI),,y)) += syscall.c
  24. ARCH_OBJ_FILTEROUT-$(IS_EABI) := syscall.c
  25. ifeq ($(IS_EABI),y)
  26. CSRC-$(UCLIBC_HAS_WCHAR) += aeabi_mb_cur_max.c
  27. endif
  28. libc-static-$(IS_EABI) += $(addprefix $(ARCH_OUT)/, \
  29. aeabi_lcsts.o \
  30. aeabi_math.o \
  31. aeabi_sighandlers.o \
  32. )
  33. libc-nonshared-$(IS_EABI) += $(addprefix $(ARCH_OUT)/, \
  34. aeabi_lcsts.os \
  35. aeabi_math.os \
  36. aeabi_sighandlers.os \
  37. aeabi_unwind_cpp_pr1.o \
  38. )