summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>2007-02-12 21:57:57 +0000
committerJoakim Tjernlund <joakim.tjernlund@transmode.se>2007-02-12 21:57:57 +0000
commitdcf241189ab7eb060aeb06caad8b14aa964f6736 (patch)
tree735c06c0036aed160a35e9c0e2870e87fe5730e5 /Makefile.in
parent216bfd092c46dc0479e571a37fd2fd96e47605b5 (diff)
downloaduClibc-alpine-dcf241189ab7eb060aeb06caad8b14aa964f6736.tar.bz2
uClibc-alpine-dcf241189ab7eb060aeb06caad8b14aa964f6736.tar.xz
Rehash the PowerPC e500 port to avoid creating symlinks
in the powerpc arch code and make more code common with classic PowerPC. From Steve Papacharalambous Lets hope I didn't break something.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index a3d740f7c..72ac2760e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -52,7 +52,8 @@ export header_extra_args = -n
endif
HEADERS_BITS_COMMON := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/common/bits/*.h))
HEADERS_BITS_ARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/*.h))
-HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH),$(HEADERS_BITS_COMMON))
+HEADERS_BITS_SUBARCH := $(notdir $(wildcard $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/*.h))
+HEADERS_BITS_COMMON := $(filter-out $(HEADERS_BITS_ARCH) $(HEADERS_BITS_SUBARCH),$(HEADERS_BITS_COMMON))
headers: include/bits/uClibc_config.h
$(Q)$(MAKE) headers-y
$(Q)\
@@ -73,7 +74,12 @@ headers: include/bits/uClibc_config.h
done; \
for i in $(HEADERS_BITS_ARCH) ; do \
$(LN) -fs ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/$$i .; \
- done
+ done; \
+ if [ -n $(HEADERS_BITS_SUBARCH) ] ; then \
+ for i in $(HEADERS_BITS_SUBARCH) ; do \
+ $(LN) -fs ../../libc/sysdeps/linux/$(TARGET_ARCH)/bits/$(TARGET_SUBARCH)/$$i .; \
+ done; \
+ fi
$(Q)\
cd include/sys; \
set -e; \