From a80fc77b658a7883df95ac41ad83ac9ff7c8ff07 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 25 Oct 2005 22:17:39 +0000 Subject: All Makefile.in's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally. --- libpthread/linuxthreads/Makefile.in | 59 +++++++++++++++++++------------------ 1 file changed, 30 insertions(+), 29 deletions(-) (limited to 'libpthread/linuxthreads/Makefile.in') diff --git a/libpthread/linuxthreads/Makefile.in b/libpthread/linuxthreads/Makefile.in index ed24d3f5c..026fd1452 100644 --- a/libpthread/linuxthreads/Makefile.in +++ b/libpthread/linuxthreads/Makefile.in @@ -1,55 +1,56 @@ -# Makefile.in for uClibc +# Makefile for uClibc's pthread library # -# Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details. +# Copyright (C) 2003 Paul Mundt +# Copyright (C) 2000-2005 Erik Andersen +# +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # CFLAGS+=$(SSP_ALL_CFLAGS) -# Get the thread include dependencies -CFLAGS+=$(PTINC) - # This stuff will not compile without at least -O1 CFLAGS:=$(CFLAGS:-O0=-O1) -ARCH_CFLAGS:=$(CFLAGS) - LDFLAGS:=$(LDFLAGS_NOSTRIP) ifeq ($(UCLIBC_CTOR_DTOR),y) -SHARED_START_FILES=$(top_builddir)lib/crti.o $(LIBGCC_DIR)crtbeginS.o -SHARED_END_FILES = $(LIBGCC_DIR)crtendS.o $(top_builddir)lib/crtn.o +SHARED_START_FILES:=$(top_builddir)lib/crti.o $(LIBGCC_DIR)crtbeginS.o +SHARED_END_FILES:=$(LIBGCC_DIR)crtendS.o $(top_builddir)lib/crtn.o endif ifeq ($(PTHREADS_DEBUG_SUPPORT),y) STRIP_FLAGS:=-X --strip-debug -R .note -R .comment endif +DOMULTI=n + LIB_NAME:=libpthread -srcdir=$(top_srcdir)$(LIB_NAME)/linuxthreads -$(LIB_NAME)_DIR:=$(top_builddir)$(LIB_NAME)/linuxthreads -$(LIB_NAME)_SRC:=$(wildcard $(srcdir)/*.c) -ifneq ($(UCLIBC_HAS_XLOCALE),y) -$(LIB_NAME)_SRC:=$(filter-out $(srcdir)/locale.c,$($(LIB_NAME)_SRC)) -endif +libpthread_DIR:=$(top_srcdir)libpthread/linuxthreads +libpthread_OUT:=$(top_builddir)libpthread/linuxthreads -ARCH_DIR:=sysdeps/$(TARGET_ARCH) --include $(srcdir)/$(ARCH_DIR)/Makefile.in +ARCH_CFLAGS:=$(CFLAGS) +-include $(libpthread_DIR)/sysdeps/$(TARGET_ARCH)/Makefile.in +CFLAGS:=$(ARCH_CFLAGS) -$(LIB_NAME)_ARCH_SRC:=$(wildcard $(srcdir)/$(ARCH_DIR)/*.c) -$(LIB_NAME)_ARCH_OBJ:=$(patsubst $(srcdir)/$(ARCH_DIR)/%.c,$($(LIB_NAME)_DIR)/$(ARCH_DIR)/%.o,$($(LIB_NAME)_ARCH_SRC)) +libpthread_SRC:=$(wildcard $(libpthread_DIR)/*.c) +ifneq ($(UCLIBC_HAS_XLOCALE),y) +libpthread_SRC:=$(filter-out $(libpthread_DIR)/locale.c,$(libpthread_SRC)) +endif # remove generic sources, if arch specific version is present -$(LIB_NAME)_NO_SRC:=$(patsubst $(srcdir)/$(ARCH_DIR)/%.c,$(srcdir)/%.c,$($(LIB_NAME)_ARCH_SRC)) -$(LIB_NAME)_SRC:=$(filter-out $($(LIB_NAME)_NO_SRC),$($(LIB_NAME)_SRC)) -# add arch specific sources (assumed that these are not multi-sources) -$(LIB_NAME)_SRC+=$($(LIB_NAME)_ARCH_SRC) +ifneq ($(strip $(libpthread_ARCH_SRC)),) +libpthread_SRC:=$(filter-out $(patsubst %.c,$(libpthread_DIR)/%.c,$(notdir $(libpthread_ARCH_SRC))),$(libpthread_SRC)) +endif + +libpthread_OBJ:=$(patsubst $(libpthread_DIR)/%.c,$(libpthread_OUT)/%.o,$(libpthread_SRC)) -$(LIB_NAME)_arch_clean: - $(RM) $($(LIB_NAME)_DIR)/sysdeps/*/*.{o,os} +libpthread-a-$(UCLIBC_HAS_THREADS)+=$(libpthread_OBJ) +libpthread-a-pic-$(UCLIBC_HAS_THREADS)+=$(libpthread_OBJ:.o=.os) +libpthread-so-$(UCLIBC_HAS_THREADS)+=$(libpthread_OBJ:.o=.os) -libso-$(UCLIBC_HAS_THREADS)+=$(top_builddir)lib/$(LIB_NAME).so -liba-$(UCLIBC_HAS_THREADS)+=$(top_builddir)lib/$(LIB_NAME).a -libclean-y+=$(LIB_NAME)_clean $(LIB_NAME)_arch_clean +libpthread-multi-$(UCLIBC_HAS_THREADS)+=$(libpthread_SRC) -include $(top_srcdir)Makefile.libs +lib-a-$(UCLIBC_HAS_THREADS)+=$(top_builddir)lib/libpthread.a +lib-a-pic-$(UCLIBC_HAS_THREADS)+=$(top_builddir)lib/libpthread.a +lib-so-$(UCLIBC_HAS_THREADS)+=$(top_builddir)lib/libpthread.so -- cgit v1.2.3