Makefile.arch 1.0 KB

123456789101112131415161718192021222324252627282930
  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 := brk.c __syscall_error.c
  8. SSRC := \
  9. __longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \
  10. syscall.S urem.S udiv.S umul.S sdiv.S rem.S pipe.S
  11. ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
  12. CSRC += sigaction.c
  13. SSRC += fork.S vfork.S
  14. endif
  15. # check weather __LONG_DOUBLE_128__ is defined (long double support)
  16. UCLIBC_SPARC_HAS_LONG_DOUBLE=$(shell if [ "x`$(CC) -E -dM -xc /dev/null 2>&1 | grep __LONG_DOUBLE_128__`" != "x" ]; then echo "y"; fi)
  17. ifeq ($(UCLIBC_SPARC_HAS_LONG_DOUBLE),y)
  18. CSRC += $(foreach f, \
  19. q_div.c q_fle.c q_mul.c q_qtoll.c q_stoq.c \
  20. mp_clz_tab.c q_dtoq.c q_flt.c q_neg.c q_qtos.c q_sub.c \
  21. q_add.c q_feq.c q_fne.c q_qtod.c q_qtou.c q_ulltoq.c \
  22. q_cmp.c q_fge.c q_itoq.c q_qtoull.c q_util.c \
  23. q_cmpe.c q_fgt.c q_lltoq.c q_qtoi.c q_sqrt.c q_utoq.c, soft-fp/$(f))
  24. else
  25. CSRC += qp_ops.c
  26. endif