diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-25 22:17:39 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-25 22:17:39 +0000 |
commit | a80fc77b658a7883df95ac41ad83ac9ff7c8ff07 (patch) | |
tree | 3edbcb812b876e0ba1424b229d50e9c04a2b0d4a /libpthread/Makefile.in | |
parent | 7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (diff) |
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.
Diffstat (limited to 'libpthread/Makefile.in')
-rw-r--r-- | libpthread/Makefile.in | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libpthread/Makefile.in b/libpthread/Makefile.in new file mode 100644 index 000000000..17a5adca9 --- /dev/null +++ b/libpthread/Makefile.in @@ -0,0 +1,57 @@ +# 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. +# + +ifeq ($(PTHREADS_DEBUG_SUPPORT),y) +DIRS:= $(PTNAME) $(PTNAME)_db +libs: subdirs +else +# both do not work at once +include $(PTDIR)/Makefile.in +#include $(PTDIR)_db/Makefile.in +endif + +headers-y+=threads_headers + +# NPTL does not have a generic pthreadtypes.h +# and each arch has to have both semaphore.h/pthreadtypes.h ? +threads_headers: + $(LN) -sf $(PTDIR)/sysdeps/pthread/pthread.h $(top_builddir)include/ + $(LN) -sf $(PTDIR)/semaphore.h $(top_builddir)include/ +ifeq ($(PTHREADS_DEBUG_SUPPORT),y) + $(LN) -sf $(PTDIR)_db/thread_db.h $(top_builddir)include/ +endif +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) + $(LN) -sf ../$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/semaphore.h $(top_builddir)include/bits/ + $(LN) -sf ../$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/pthreadtypes.h $(top_builddir)include/bits/ + $(LN) -sf ../$(PTDIR)/sysdeps/pthread/bits/libc-lock.h $(top_builddir)include/bits/ + $(LN) -sf ../$(PTDIR)/sysdeps/pthread/bits/stdio-lock.h $(top_builddir)include/bits/ +else + $(LN) -sf ../$(PTDIR)/sysdeps/pthread/bits/pthreadtypes.h $(top_builddir)include/bits/ +endif + +headers_clean-y+=threads_headers_clean + +threads_headers_clean: + $(RM) $(top_builddir)include/pthread.h $(top_builddir)include/semaphore.h \ + $(top_builddir)include/thread_db.h \ + $(top_builddir)include/bits/pthreadtypes.h $(top_builddir)include/bits/semaphore.h \ + $(top_builddir)include/bits/libc-lock.h $(top_builddir)include/bits/stdio-lock +ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y) + $(RM) $(PTNAME)/version.h $(PTDIR)/banner.h \ + $(PTDIR)/sysdeps/unix/sysv/linux/rtld-libc-lowlevellock.c +endif + +objclean-y+=libpthread_gen_clean + +libpthread_gen_clean: + $(RM) $(top_builddir)libpthread/*/*.{o,os,a} + +ifeq ($(PTHREADS_DEBUG_SUPPORT),y) +subdirs: $(patsubst %, _dir_%, $(DIRS)) +$(patsubst %, _dir_%, $(DIRS)): + $(MAKE) -C $(patsubst _dir_%, %, $@) +endif |