Makefile.arch 765 B

123456789101112131415161718192021222324252627282930313233
  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 := \
  8. __longjmp.c brk.c setjmp_aux.c \
  9. pread_write.c sigaction.c _test_and_set.c
  10. ifeq ($(UCLIBC_LINUX_SPECIFIC),y)
  11. CSRC += cacheflush.c readahead.c sysmips.c
  12. endif
  13. SSRC := bsd-_setjmp.S bsd-setjmp.S setjmp.S syscall.S pipe.S syscall_error.S
  14. ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),y)
  15. CSRC += posix_fadvise.c posix_fadvise64.c
  16. endif
  17. ifneq ($(UCLIBC_HAS_THREADS_NATIVE),y)
  18. SSRC += vfork.S clone.S
  19. endif
  20. ASFLAGS-syscall_error.S += -D_LIBC_REENTRANT
  21. ARCH_HEADERS := sgidefs.h
  22. # regdef.h
  23. ifeq ($(UCLIBC_HAS_CONTEXT_FUNCS),y)
  24. SSRC += makecontext.S setcontext.S getcontext.S swapcontext.S
  25. endif