Makefile.arch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # Makefile for uClibc NPTL
  2. #
  3. # Copyright (C) 2006 Steven J. Hill <sjhill@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. libpthread_linux_arch_SSRC = pt-vfork.S clone.S pthread_spin_unlock.S pthread_once.S
  8. libpthread_linux_arch_CSRC = pthread_spin_init.c pt-__syscall_error.c
  9. libc_linux_arch_CSRC = fork.c
  10. libc_linux_arch_SSRC = clone.S vfork.S
  11. ASFLAGS += -DUSE___THREAD
  12. CFLAGS-pt-__syscall_error.c = -DNOT_IN_libc -DIS_IN_libpthread
  13. ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT
  14. ASFLAGS-lowlevellock.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT
  15. ASFLAGS-lowlevelrobustlock.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT
  16. ASFLAGS-pthread_once.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT
  17. ASFLAGS-pthread_spin_unlock.S = -DNOT_IN_libc -DIS_IN_libpthread -D_LIBC_REENTRANT
  18. ASFLAGS-clone.S = -D_LIBC_REENTRANT
  19. ASFLAGS-vfork.S = -D_LIBC_REENTRANT
  20. ASFLAGS-libc-lowlevellock.S = -D_LIBC_REENTRANT
  21. ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y)
  22. CFLAGS-fork.c = -D__USE_STDIO_FUTEXES__
  23. endif
  24. CFLAGS-OMIT-fork.c = -DNOT_IN_libc -DIS_IN_libpthread