diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-02 02:11:44 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-02 02:11:44 +0000 |
commit | 76e3f1c91e7cc21260b08adb60c974fa6515ce52 (patch) | |
tree | cc067b62989d94feedd81d74cde596d643ff01c1 /libpthread/nptl/sysdeps/unix/sysv/linux/mips | |
parent | 61257ecf3c60e69e38c2d28fc23040735f2e35b1 (diff) | |
download | uClibc-alpine-76e3f1c91e7cc21260b08adb60c974fa6515ce52.tar.bz2 uClibc-alpine-76e3f1c91e7cc21260b08adb60c974fa6515ce52.tar.xz |
Final set of changes for NPTL and new build system. NPTL can now build with the new build system.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/mips')
-rw-r--r-- | libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile | 113 |
1 files changed, 9 insertions, 104 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile index 084708397..43a6fad84 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile @@ -1,108 +1,13 @@ -# Makefile for uClibc NPTL pthread library (Linux/MIPS) +# Makefile for uClibc NPTL # -# Copyright (C) 2005 Steven J. Hill <sjhill@realitydiluted.com> +# Copyright (C) 2005 Steven J. Hill <sjhill@uclibc.org> # -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU Library General Public License as published by the Free -# Software Foundation; either version 2 of the License, or (at your option) any -# later version. +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more -# details. -# -# You should have received a copy of the GNU Library General Public License -# along with this program; if not, write to the Free Software Foundation, Inc., -# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# Makefile for uClibc - -TOPDIR=../../../../../../../ -include $(TOPDIR)Rules.mak -include ../../../../../Rules.mak - -#AR_LIBP_ASRC = pt-vfork.S clone.S -AR_LIBP_ASRC = pt-vfork.S -SO_LIBP_ASRC = $(AR_LIBP_ASRC) -AR_LIBP_CSRC = pthread_once.c -SO_LIBP_CSRC = $(AR_LIBP_CSRC) -AR_LIBC_CSRC = fork-nptl.c -SO_LIBC_CSRC = $(AR_LIBC_CSRC) - -AR_LIBP_AOBJS = $(patsubst %.S, %.o, $(AR_LIBP_ASRC)) -SO_LIBP_AOBJS = $(patsubst %.S, %.os, $(SO_LIBP_ASRC)) -AR_LIBP_COBJS = $(patsubst %.c, %.o, $(AR_LIBP_CSRC)) -SO_LIBP_COBJS = $(patsubst %.c, %.os, $(SO_LIBP_CSRC)) -AR_LIBC_COBJS = $(patsubst %.c, %.o, $(AR_LIBC_CSRC)) -SO_LIBC_COBJS = $(patsubst %.c, %.os, $(SO_LIBC_CSRC)) - -ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y) -CFLAGS-fork-nptl.c = -D__USE_STDIO_FUTEXES__ -endif - -all: $(AR_LIB_NAME) $(AR_SO_LIB_NAME) - -$(AR_LIB_NAME): $(AR_LIBP_AOBJS) $(AR_LIBP_COBJS) -ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) - $(STRIPTOOL) -X --strip-debug -R .note -R .comment \ - $(AR_LIBP_AOBJS) $(AR_LIBP_COBJS) -else - $(STRIPTOOL) -x -R .note -R .comment \ - $(AR_LIBP_AOBJS) $(AR_LIBP_COBJS) -endif - $(AR) $(ARFLAGS) $(AR_LIB_NAME) $(AR_LIBP_AOBJS) $(AR_LIBP_COBJS) - -$(AR_SO_LIB_NAME): $(SO_LIBP_AOBJS) $(SO_LIBP_COBJS) -ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) - $(STRIPTOOL) -X --strip-debug -R .note -R .comment \ - $(SO_LIBP_AOBJS) $(SO_LIBP_COBJS) -else - $(STRIPTOOL) -x -R .note -R .comment \ - $(SO_LIBP_AOBJS) $(SO_LIBP_COBJS) -endif - $(AR) $(ARFLAGS) $(AR_SO_LIB_NAME) $(SO_LIBP_AOBJS) $(SO_LIBP_COBJS) - -obj.pthread.ar: $(AR_LIBC_COBJS) -ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) - $(STRIPTOOL) -X --strip-debug -R .note -R .comment $(AR_LIBC_COBJS) -else - $(STRIPTOOL) -x -R .note -R .comment $(AR_LIBC_COBJS) -endif - @for objfile in $(AR_LIBC_COBJS); do \ - echo ../libpthread/nptl/sysdeps/unix/sysv/linux/mips/$$objfile \ - >> $(TOPDIR)libc/$@; \ - done - -obj.pthread.so: $(SO_LIBC_COBJS) -ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) - $(STRIPTOOL) -X --strip-debug -R .note -R .comment $(SO_LIBC_COBJS) -else - $(STRIPTOOL) -x -R .note -R .comment $(SO_LIBC_COBJS) -endif - @for objfile in $(SO_LIBC_COBJS); do \ - echo ../libpthread/nptl/sysdeps/unix/sysv/linux/mips/$$objfile \ - >> $(TOPDIR)libc/$@; \ - done - -$(AR_LIBP_AOBJS): %.o : %.S - $(CC) $(ASFLAGS-LIBP) -c $< -o $@ - -$(SO_LIBP_AOBJS): %.os : %.S - $(CC) $(ASFLAGS-LIBP) -DSHARED -c $< -o $@ - -$(AR_LIBP_COBJS): %.o : %.c - $(CC) $(CFLAGS-$<) $(CFLAGS-LIBP) -c $< -o $@ - -$(SO_LIBP_COBJS): %.os : %.c - $(CC) $(CFLAGS-$<) $(CFLAGS-LIBP) -DSHARED -c $< -o $@ - -$(AR_LIBC_COBJS): %.o : %.c - $(CC) $(CFLAGS-$<) $(CFLAGS-LIBC) -c $< -o $@ - -$(SO_LIBC_COBJS): %.os : %.c - $(CC) $(CFLAGS-$<) $(CFLAGS-LIBC) -DSHARED -c $< -o $@ - -clean: - $(RM) *.o *.os *~ core -.PHONY: $(AR_LIB_NAME) $(AR_SO_LIB_NAME) +top_srcdir=../../../../../../../ +top_builddir=../../../../../../../ +all: objs +include $(top_builddir)Rules.mak +include Makefile.arch +include $(top_srcdir)Makerules |