Makefile.in 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Makefile for uClibc NPTL
  2. #
  3. # Copyright (C) 2005-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. subdirs += libpthread/nptl/sysdeps/pthread
  8. #
  9. # NOTE: glibc puts flockfile.c, ftrylockfile.c, funlockfile.c, and
  10. # pt-longjmp.c in libc and libpthread. For uClibc, they are
  11. # in libc only.
  12. #
  13. libpthread_pthread_DIR = $(top_srcdir)libpthread/nptl/sysdeps/pthread
  14. libpthread_pthread_OUT = $(top_builddir)libpthread/nptl/sysdeps/pthread
  15. libpthread_pthread_COBJ = $(patsubst %.c,$(libpthread_pthread_OUT)/%.o,$(libpthread_pthread_CSRC))
  16. libpthread_pthread_CSRC = \
  17. pthread_barrier_destroy.c \
  18. pthread_barrier_init.c \
  19. pthread_barrier_wait.c \
  20. pthread_cond_broadcast.c \
  21. pthread_cond_signal.c \
  22. pthread_cond_timedwait.c \
  23. pthread_cond_wait.c \
  24. pthread_rwlock_rdlock.c \
  25. pthread_rwlock_timedrdlock.c \
  26. pthread_rwlock_timedwrlock.c \
  27. pthread_rwlock_unlock.c \
  28. pthread_rwlock_wrlock.c \
  29. pthread_sigmask.c \
  30. pthread_spin_destroy.c \
  31. pthread_spin_init.c \
  32. pthread_spin_unlock.c \
  33. pt-longjmp.c \
  34. pt-sigaction.c \
  35. tpp.c
  36. CFLAGS-pthread_barrier_wait.c = -D_GNU_SOURCE
  37. CFLAGS-pthread_spin_destroy.c = -D_GNU_SOURCE
  38. CFLAGS-pthread_spin_init.c = -D_GNU_SOURCE
  39. CFLAGS-pthread_spin_unlock.c = -D_GNU_SOURCE
  40. CFLAGS-unwind-forcedunwind.c = -fexceptions -fasynchronous-unwind-tables
  41. CFLAGS-OMIT-librt-cancellation.c = -DIS_IN_libpthread
  42. CFLAGS-librt-cancellation.c = -DIS_IN_librt \
  43. -fexceptions -fasynchronous-unwind-tables
  44. libpthread-so-y += $(patsubst %,$(libpthread_pthread_OUT)/%.oS, unwind-forcedunwind)
  45. librt-pt-routines-y = librt-cancellation.c
  46. objclean-y += CLEAN_libpthread/nptl/sysdeps/pthread
  47. CLEAN_libpthread/nptl/sysdeps/pthread:
  48. $(do_rm) $(addprefix $(libpthread_pthread_OUT)/*., o os oS s S) \
  49. $(libpthread_pthread_OUT)/defs.h