diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-07-01 10:28:46 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-07-06 18:33:22 +0200 |
commit | 9381d622e2411a35a5fd73a5a573eb269e2dd9c9 (patch) | |
tree | 84b4bcad496368d6ce9875451e5adcc9c6138560 /libpthread/nptl/sysdeps/Makefile.in | |
parent | eaae6e6776ad091a5b84c3fb09f26ff01bda2f18 (diff) |
nptl: fix buildsys
Now automatically picks the correct (arch and subarch specific) impls in
favour of generic impls.
make O=/tmp/objs PREFIX=/my/sysroot -j
works now as expected (both out-of-tree as well as parallel-safe).
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/Makefile.in')
-rw-r--r-- | libpthread/nptl/sysdeps/Makefile.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/Makefile.in b/libpthread/nptl/sysdeps/Makefile.in new file mode 100644 index 000000000..5296f4a7b --- /dev/null +++ b/libpthread/nptl/sysdeps/Makefile.in @@ -0,0 +1,29 @@ +# 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 + +define arch_and_subarch + $(addprefix $(1)/,$(notdir $(2))) $(if $(TARGET_SUBARCH),$(addprefix $(1)/$(TARGET_SUBARCH)/,$(notdir $(2)))) +endef +define base_and_arch_and_subarch + $(addprefix $(1)/,$(notdir $(2))) $(addprefix $(1)/$(TARGET_ARCH)/,$(notdir $(2))) $(if $(TARGET_SUBARCH),$(addprefix $(1)/$(TARGET_ARCH)/$(TARGET_SUBARCH)/,$(notdir $(2)))) +endef + +include $(libpthread_DIR)/sysdeps/unix/sysv/linux/Makefile.commonarch +include $(libpthread_DIR)/sysdeps/generic/Makefile.in +include $(libpthread_DIR)/sysdeps/Makefile.commonarch +libpthread_generic_libc_a_CSRC := $(filter-out $(notdir $(libc_arch_a_OBJS:.o=.c)),$(libpthread_generic_libc_a_CSRC)) +libpthread_arch_OBJS := $(filter-out $(call base_and_arch_and_subarch,$(libpthread_arch_OUT),$(libpthread_linux_OBJS)),$(libpthread_arch_OBJS)) +include $(libpthread_DIR)/sysdeps/pthread/Makefile.in +libpthread_pthread_CSRC := $(filter-out $(notdir $(libpthread_linux_OBJS:.o=.c) $(libpthread_arch_OBJS:.o=.c)),$(libpthread_pthread_CSRC)) +libpthread-so-y := $(filter-out $(call base_and_arch_and_subarch,$(libpthread_pthread_OUT),$(libpthread_linux_OBJS) $(libpthread_arch_OBJS)),$(libpthread-so-y)) + +libpthread_OBJS := $(libpthread_linux_OBJS) $(libpthread_arch_OBJS) $(libpthread_pthread_COBJ) +libpthread_libc_OBJS = $(libc_linux_OBJS) $(libc_arch_OBJS) +libpthread_libc_a_OBJS = $(libc_arch_a_OBJS) $(libpthread_generic_libc_a_OBJS) +libpthread_librt_OBJS = $(librt_linux_OBJS) $(librt_arch_OBJS) |