summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-21 23:47:10 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-21 23:47:10 +0000
commit949778366681cd167816e968fa02f225fc2e8fba (patch)
tree19f05150c035281c301b35620dd9f1fa85ba6e01 /libpthread/Makefile
parent9431826d42584a580512f5613e5d9ff7b46840d1 (diff)
also symlink thread_db.h instead of duplicating it, fix the clean target, and touchup the headers target so we dont create bogus dir symlinks
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile28
1 files changed, 16 insertions, 12 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index a8788125d..f6d338bb4 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -50,16 +50,19 @@ all: $(LIBPTHREAD) $(LIBTHREAD_DB)
headers:
ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y)
- $(LN) -sf $(TOPDIR)libpthread/nptl/sysdeps/pthread/pthread.h $(TOPDIR)include
- $(LN) -sf $(TOPDIR)libpthread/nptl/semaphore.h $(TOPDIR)include
- $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/semaphore.h $(TOPDIR)include/bits
- $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/pthreadtypes.h $(TOPDIR)include/bits
- $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/pthread/bits/libc-lock.h $(TOPDIR)include/bits
- $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/pthread/bits/stdio-lock.h $(TOPDIR)include/bits
+ $(LN) -sf $(TOPDIR)libpthread/nptl/sysdeps/pthread/pthread.h $(TOPDIR)include/
+ $(LN) -sf $(TOPDIR)libpthread/nptl/semaphore.h $(TOPDIR)include/
+ $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/semaphore.h $(TOPDIR)include/bits/
+ $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/unix/sysv/linux/$(TARGET_ARCH)/bits/pthreadtypes.h $(TOPDIR)include/bits/
+ $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/pthread/bits/libc-lock.h $(TOPDIR)include/bits/
+ $(LN) -sf ../$(TOPDIR)libpthread/nptl/sysdeps/pthread/bits/stdio-lock.h $(TOPDIR)include/bits/
else
- $(LN) -sf $(TOPDIR)libpthread/linuxthreads/sysdeps/pthread/pthread.h $(TOPDIR)include
- $(LN) -sf $(TOPDIR)libpthread/linuxthreads/semaphore.h $(TOPDIR)include
- $(LN) -sf ../$(TOPDIR)libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h $(TOPDIR)include/bits
+ $(LN) -sf $(TOPDIR)libpthread/linuxthreads/sysdeps/pthread/pthread.h $(TOPDIR)include/
+ $(LN) -sf $(TOPDIR)libpthread/linuxthreads/semaphore.h $(TOPDIR)include/
+ $(LN) -sf ../$(TOPDIR)libpthread/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h $(TOPDIR)include/bits/
+ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ $(LN) -sf $(TOPDIR)libpthread/linuxthreads_db/thread_db.h $(TOPDIR)include/
+endif
endif
$(LIBPTHREAD): subdirs
@@ -129,8 +132,9 @@ $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy
clean: subdirs_clean
$(RM) *.[oa] *~ core $(LIBPTHREAD) $(LIBPTHREAD_SHARED_FULLNAME) \
$(LIBTHREAD_DB) $(LIBTHREAD_DB_SHARED_FULLNAME) \
- $(RM) $(TOPDIR)include/pthread.h $(TOPDIR)include/semaphore.h \
- $(RM) $(TOPDIR)include/bits/pthreadtypes.h $(TOPDIR)include/bits/semaphore.h \
- $(RM) $(TOPDIR)include/bits/libc-lock.h $(TOPDIR)include/bits/stdio-lock
+ $(TOPDIR)include/pthread.h $(TOPDIR)include/semaphore.h \
+ $(TOPDIR)include/thread_db.h \
+ $(TOPDIR)include/bits/pthreadtypes.h $(TOPDIR)include/bits/semaphore.h \
+ $(TOPDIR)include/bits/libc-lock.h $(TOPDIR)include/bits/stdio-lock
.PHONY: dummy