Makefile.arch 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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-pt-__syscall_error.c = -DNOT_IN_libc -DIS_IN_libpthread
  20. ASFLAGS-pt-vfork.S = -DNOT_IN_libc -DIS_IN_libpthread
  21. ASFLAGS-lowlevellock.S = -DNOT_IN_libc -DIS_IN_libpthread
  22. ASFLAGS-pthread_once.S = -DNOT_IN_libc -DIS_IN_libpthread
  23. ASFLAGS-cancellation.S = -DNOT_IN_libc -DIS_IN_libpthread
  24. ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y)
  25. CFLAGS-fork.c = -D__USE_STDIO_FUTEXES__
  26. endif
  27. CFLAGS-OMIT-fork.c = -DNOT_IN_libc -DIS_IN_libpthread