# Makefile for uClibc
#
# Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org>
# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

klib-y += sysdeps/$(ARCH)/pspinlock.c

klib-y += sysdeps/unix/sysv/linux/fork.c
klib-y += sysdeps/unix/sysv/linux/pt-sigsuspend.c
klib-y += sysdeps/unix/sysv/linux/register-atfork.c
klib-y += sysdeps/unix/sysv/linux/unregister-atfork.c

klib-y += sysdeps/pthread/errno-loc.c
klib-y += sysdeps/pthread/herrno-loc.c
klib-y += sysdeps/pthread/ptlongjmp.c

klib-y += \
    attr.c barrier.c cancel.c condvar.c errno.c events.c join.c pthread.c \
    lockfile.c manager.c mutex.c pt-machine.c ptcleanup.c \
    ptclock_gettime.c ptclock_settime.c ptfork.c pthandles.c \
    pthread_setegid.c pthread_seteuid.c pthread_setgid.c pthread_setregid.c \
    pthread_setresgid.c pthread_setresuid pthread_setreuid.c pthread_setuid.c \
    rwlock.c semaphore.c sighandler.c signals.c specific.c spinlock.c

#?? libpthread_static_SRC := pthread_atfork

#
# Stuff that goes into libc.so, not libpthread.so
#
###libpthread_libc_CSRC := \
###    forward.c libc-cancellation.c libc_pthread_init.c
#### ... alloca_cutoff.c
###
###libc-nonshared-y += libc_pthread_init.o
###libc-shared-y += $(libpthread_libc_OBJ:.o=.oS)
