summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-05-14 22:32:43 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-05-14 22:32:43 +0000
commit5992896c5871e809a519e924262bc643bbe9b9b8 (patch)
tree6a60d2678a9c1b209a40a88286eec8c681c0617a /Makefile
parentd48219f8b28ad90bfb9d5ed2491c13568d714619 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 702721f92..2519c3b95 100644
--- a/Makefile
+++ b/Makefile
@@ -87,6 +87,15 @@ ifeq ($(strip $(ARCH_HAS_MMU)),y)
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; \
for i in `ls ../../libc/sysdeps/linux/common/bits/*.h` ; do \
@@ -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;