OSDN Git Service

nptl: fix subdirs handling
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 13 Jun 2010 07:52:45 +0000 (09:52 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 6 Jul 2010 16:33:22 +0000 (18:33 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/nptl/Makefile.in
libpthread/nptl/sysdeps/Makefile [new file with mode: 0644]
libpthread/nptl/sysdeps/Makefile.commonarch
libpthread/nptl/sysdeps/generic/Makefile.in
libpthread/nptl/sysdeps/pthread/Makefile.in
libpthread/nptl/sysdeps/sparc/Makefile.arch
libpthread/nptl/sysdeps/unix/Makefile [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/Makefile.in [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/Makefile [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/Makefile.in [new file with mode: 0644]
libpthread/nptl/sysdeps/unix/sysv/linux/Makefile.commonarch

index b32ee3f..e015807 100644 (file)
@@ -5,9 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
-subdirs += libpthread/nptl/sysdeps/$(TARGET_ARCH) \
-       libpthread/nptl/sysdeps/unix/sysv/linux \
-       libpthread/nptl/sysdeps/pthread
+subdirs += libpthread/nptl
 
 libpthread-routines-y = init vars events version \
                      pthread_create pthread_exit pthread_detach \
diff --git a/libpthread/nptl/sysdeps/Makefile b/libpthread/nptl/sysdeps/Makefile
new file mode 100644 (file)
index 0000000..1fea636
--- /dev/null
@@ -0,0 +1,13 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+top_srcdir:=../../../
+top_builddir:=../../../
+all: objs
+include $(top_builddir)Rules.mak
+include ./Makefile.commonarch
+include $(top_srcdir)Makerules
index 669e9d3..32fb998 100644 (file)
@@ -4,6 +4,11 @@
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
+subdirs += libpthread/nptl/sysdeps \
+          libpthread/nptl/sysdeps/$(TARGET_ARCH)
+ifneq ($(abspath libpthread/nptl/sysdeps/$(TARGET_ARCH)),$(abspath libpthread/nptl/sysdeps/$(TARGET_ARCH)/$(TARGET_SUBARCH)))
+subdirs += libpthread/nptl/sysdeps/$(TARGET_ARCH)/$(TARGET_SUBARCH)
+endif
 
 PTHREAD_ARCH_DIR  := $(top_srcdir)libpthread/nptl/sysdeps/$(TARGET_ARCH)
 PTHREAD_ARCH_OUT  := $(top_builddir)libpthread/nptl/sysdeps/$(TARGET_ARCH)
index 2091dca..03b2aa1 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
-
+subdirs += libpthread/nptl/sysdeps/generic
 #
 # NOTE: Alpha and MIPS have their own versions of 'libc-tls.c' in
 #       their architecture specific directory which will override
index 36d9eeb..a8e27f5 100644 (file)
@@ -5,6 +5,7 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
+subdirs += libpthread/nptl/sysdeps/pthread
 #
 # NOTE: glibc puts flockfile.c, ftrylockfile.c, funlockfile.c, and
 #       pt-longjmp.c in libc and libpthread. For uClibc, they are
index 3cd2e67..d657ced 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
-
+subdirs += libpthread/nptl/sysdeps/$(TARGET_ARCH)/$(TARGET_SUBARCH)/sparv9
 libpthread_CSRC = sparc32/pthread_spin_lock.c \
                                  sparc32/pthread_spin_trylock.c
 
diff --git a/libpthread/nptl/sysdeps/unix/Makefile b/libpthread/nptl/sysdeps/unix/Makefile
new file mode 100644 (file)
index 0000000..3ed177a
--- /dev/null
@@ -0,0 +1,13 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+top_srcdir=../../../../
+top_builddir=../../../../
+all: objs
+include $(top_builddir)Rules.mak
+include Makefile.in
+include $(top_srcdir)Makerules
diff --git a/libpthread/nptl/sysdeps/unix/Makefile.in b/libpthread/nptl/sysdeps/unix/Makefile.in
new file mode 100644 (file)
index 0000000..c2c9bcd
--- /dev/null
@@ -0,0 +1,8 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+subdirs += libpthread/nptl/sysdeps/unix
diff --git a/libpthread/nptl/sysdeps/unix/sysv/Makefile b/libpthread/nptl/sysdeps/unix/sysv/Makefile
new file mode 100644 (file)
index 0000000..64f51c8
--- /dev/null
@@ -0,0 +1,13 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+top_srcdir=../../../../../
+top_builddir=../../../../../
+all: objs
+include $(top_builddir)Rules.mak
+include Makefile.in
+include $(top_srcdir)Makerules
diff --git a/libpthread/nptl/sysdeps/unix/sysv/Makefile.in b/libpthread/nptl/sysdeps/unix/sysv/Makefile.in
new file mode 100644 (file)
index 0000000..8325616
--- /dev/null
@@ -0,0 +1,8 @@
+# Makefile for uClibc
+#
+# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+#
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+#
+
+subdirs += libpthread/nptl/sysdeps/unix/sysv
index 09d9676..4f09da4 100644 (file)
@@ -5,6 +5,12 @@
 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 #
 
+subdirs += libpthread/nptl/sysdeps/unix/sysv/linux \
+          libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)
+ifneq ($(abspath libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)),$(abspath libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/$(TARGET_SUBARCH)))
+subdirs += libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/$(TARGET_SUBARCH)
+endif
+
 libpthread_CSRC = pthread_attr_getaffinity.c                           \
                  pthread_attr_setaffinity.c pthread_getaffinity.c      \
                  pthread_getcpuclockid.c pthread_kill.c                \