Makefile.arch 1.0 KB

1234567891011121314151617181920212223242526272829
  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 sigaction.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. SSRC += fork.S vfork.S clone.S
  13. endif
  14. # check weather __LONG_DOUBLE_128__ is defined (long double support)
  15. 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)
  16. ifeq ($(UCLIBC_SPARC_HAS_LONG_DOUBLE),y)
  17. CSRC += $(foreach f, \
  18. q_div.c q_fle.c q_mul.c q_qtoll.c q_stoq.c \
  19. mp_clz_tab.c q_dtoq.c q_flt.c q_neg.c q_qtos.c q_sub.c \
  20. q_add.c q_feq.c q_fne.c q_qtod.c q_qtou.c q_ulltoq.c \
  21. q_cmp.c q_fge.c q_itoq.c q_qtoull.c q_util.c \
  22. q_cmpe.c q_fgt.c q_lltoq.c q_qtoi.c q_sqrt.c q_utoq.c, soft-fp/$(f))
  23. else
  24. CSRC += qp_ops.c
  25. endif