diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-09 05:57:05 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-08-09 05:57:05 +0000 |
| commit | 680c018810e22008f4fdd4581542648c9fb89e9a (patch) | |
| tree | 053ad7392c2ed8577ea07f910d35a750b18959ee /libpthread/nptl/sysdeps/mips/Makefile | |
| parent | 3dfe29ec75a1adfe9f05e8437ff8b67f309d4acd (diff) | |
| download | uClibc-alpine-680c018810e22008f4fdd4581542648c9fb89e9a.tar.bz2 uClibc-alpine-680c018810e22008f4fdd4581542648c9fb89e9a.tar.xz | |
Finally, all of the makefiles that make the magic happen. These changes allow for uClibc to build for NPTL support without breaking the old linuxthreads model. Let the testing begin.
Diffstat (limited to 'libpthread/nptl/sysdeps/mips/Makefile')
| -rw-r--r-- | libpthread/nptl/sysdeps/mips/Makefile | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/libpthread/nptl/sysdeps/mips/Makefile b/libpthread/nptl/sysdeps/mips/Makefile index 29ee02c5a..2528194f3 100644 --- a/libpthread/nptl/sysdeps/mips/Makefile +++ b/libpthread/nptl/sysdeps/mips/Makefile @@ -1,4 +1,4 @@ -# Makefile for uClibc's NPTL pthread library +# Makefile for uClibc NPTL pthread library (MIPS) # # Copyright (C) 2005 Steven J. Hill <sjhill@realitydiluted.com> # @@ -19,21 +19,41 @@ TOPDIR=../../../../ include $(TOPDIR)Rules.mak +include ../../Rules.mak -# -# FIX ME: We should probably be including 'nptl-sysdep.S' which needs -# the new '__syscall_error' function for per-thread 'errno'. Maybe -# this work and maybe it will not. -# -SOBJS = $(patsubst %.S,%.o, $(filter-out nptl-sysdep.S, $(wildcard *.S))) +COBJ-LIBC-ST = $(patsubst %.c, %.o, $(wildcard *.c)) + +AOBJ-LIBP-ST = $(patsubst %.S, %.o, $(wildcard *.S)) +AOBJ-LIBP-SH = $(patsubst %.S, %.os, $(wildcard *.S)) + +ar-target all: $(AOBJ-LIBP-ST) $(AOBJ-LIBP-SH) +ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) + $(STRIPTOOL) -X --strip-debug -R .note -R .comment \ + $(AOBJ-LIBP-ST) $(AOBJ-LIBP-SH) +else + $(STRIPTOOL) -x -R .note -R .comment $(AOBJ-LIBP-ST) $(AOBJ-LIBP-SH) +endif + $(AR) $(ARFLAGS) $(PTDIR)../$(LIBPTHREAD_STATIC_ARCHIVE) $(AOBJ-LIBP-ST) + $(AR) $(ARFLAGS) $(PTDIR)../$(LIBPTHREAD_SHARED_ARCHIVE) $(AOBJ-LIBP-SH) + +$(AOBJ-LIBP-ST): %.o : %.S + $(CC) $(ASFLAGS) $(ASFLAGS-NPTL) -c $< -o $@ -OBJS = $(SOBJS) +$(AOBJ-LIBP-SH): %.os : %.S + $(CC) $(ASFLAGS) $(ASFLAGS-NPTL) -DSHARED -c $< -o $@ -all: $(OBJS) +$(COBJ-LIBC-ST): %.o : %.c + $(CC) $(CFLAGS-LIBC) -c $< -o $@ -$(SOBJS): %.o : %.S - echo $(PTDIR) - $(CC) $(ASFLAGS) -c $< -o $@ +objs-pthread-libc: $(COBJ-LIBC-ST) +ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y) + $(STRIPTOOL) -X --strip-debug -R .note -R .comment $(COBJ-LIBC-ST) +else + $(STRIPTOOL) -x -R .note -R .comment $(COBJ-LIBC-ST) +endif + @for objfile in $(COBJ-LIBC-ST); do \ + echo ../libpthread/nptl/sysdeps/mips/$$objfile >> $(PTCOBJST); \ + done clean: - $(RM) *.[oa] *~ core + $(RM) *.o *.os *~ core |
