Makefile.arch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_once.S \
  8. lowlevellock.S pthread_barrier_wait.S pthread_cond_signal.S pthread_cond_broadcast.S \
  9. sem_post.S sem_timedwait.S lowlevelrobustlock.S \
  10. sem_trywait.S sem_wait.S pthread_rwlock_rdlock.S pthread_rwlock_wrlock.S \
  11. pthread_rwlock_timedrdlock.S pthread_rwlock_timedwrlock.S pthread_rwlock_unlock.S \
  12. pthread_spin_unlock.S cancellation.S pthread_cond_timedwait.S pthread_cond_wait.S
  13. libpthread_linux_arch_CSRC = pthread_spin_init.c pt-__syscall_error.c
  14. libc_linux_arch_CSRC = fork.c
  15. libc_linux_arch_SSRC = clone.S vfork.S libc-cancellation.S libc-lowlevellock.S
  16. libc_linux_arch_SSRC-OMIT = waitpid.S
  17. librt_linux_arch_SSRC = librt-cancellation.S
  18. ASFLAGS += -DUSE___THREAD
  19. CFLAGS += $(SSP_ALL_CFLAGS)
  20. CFLAGS-pt-__syscall_error.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
  21. ASFLAGS-pt-vfork.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -D_LIBC_REENTRANT
  22. ASFLAGS-lowlevellock.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -D_LIBC_REENTRANT
  23. ASFLAGS-pthread_once.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -D_LIBC_REENTRANT
  24. ASFLAGS-cancellation.S = -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -D_LIBC_REENTRANT
  25. ASFLAGS-pthread_cond_timedwait.S = -D_LIBC_REENTRANT
  26. ASFLAGS-pthread_cond_wait.S = -D_LIBC_REENTRANT
  27. ASFLAGS-clone.S = -D_LIBC_REENTRANT
  28. ASFLAGS-vfork.S = -D_LIBC_REENTRANT
  29. ASFLAGS-libc-lowlevellock.S = -D_LIBC_REENTRANT
  30. ASFLAGS-libc-cancellation.S = -D_LIBC_REENTRANT
  31. ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y)
  32. CFLAGS-fork.c = -D__USE_STDIO_FUTEXES__
  33. endif
  34. CFLAGS-OMIT-fork.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1