From 5992896c5871e809a519e924262bc643bbe9b9b8 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Sat, 14 May 2005 22:32:43 +0000 Subject: In order to accomodate usage of either pthreads implementation, we now have to create symbolic links for 'semaphore.h' and 'pthread.h' which will point to the proper pthreads directory. When we finish getting NPTL working with uClibc, perhaps we can merge them, but a first glance at the differences between the two does not make that very likely. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 702721f92..2519c3b95 100644 --- a/Makefile +++ b/Makefile @@ -86,6 +86,15 @@ ifeq ($(strip $(ARCH_HAS_MMU)),y) @set -x; ./extra/scripts/fix_includes.sh -k $(KERNEL_SOURCE) -t $(TARGET_ARCH) else @set -x; ./extra/scripts/fix_includes.sh -k $(KERNEL_SOURCE) -t $(TARGET_ARCH) -n +endif +ifeq ($(strip $(PTHREADS_NATIVE)),y) + (cd include; \ + $(LN) -fs ../libpthread/nptl/sysdeps/pthread/pthread.h .; \ + $(LN) -fs ../libpthread/nptl/semaphore.h .); +else + (cd include; \ + $(LN) -fs ../libpthread/linuxthreads/sysdeps/pthread/pthread.h .; \ + $(LN) -fs ../libpthread/linuxthreads/semaphore.h .); endif @cd include/bits; \ set -e; \ @@ -346,6 +355,7 @@ clean: done; \ fi; @$(RM) include/linux include/asm* + @$(RM) include/pthread.h include/semaphore.h @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then \ $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean; \ fi; -- cgit v1.2.3