diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-28 09:57:22 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-28 09:57:22 +0000 |
commit | 358043ffb9380926813eb8200f0a45140acdb77a (patch) | |
tree | a2ff6acbb0f25269b47efd0679a212d82808298b /Makefile.in | |
parent | 86553e6605853bb982cd0cd578134c42e26ee407 (diff) | |
download | uClibc-alpine-358043ffb9380926813eb8200f0a45140acdb77a.tar.bz2 uClibc-alpine-358043ffb9380926813eb8200f0a45140acdb77a.tar.xz |
Renamed arch specific Makefile.in to Makefile.arch, else if TARGET_ARCH does not exist, we reinclude the including Makefile. Moved arch/common fpu_control.h link creation into main Makefile.in. Updated the link creation script to remove all the other Makefiles
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 8d8065696..4aa2a78f3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -71,6 +71,12 @@ headers: $(top_srcdir)include/bits/uClibc_config.h $(top_srcdir)extra/scripts/fix_includes.sh \ -k $(KERNEL_SOURCE) -t $(TARGET_ARCH) \ $(header_extra_args) + if [ -f libc/sysdeps/linux/$(TARGET_ARCH)/fpu_control.h ] ; then \ + $(LN) -fs ../libc/sysdeps/linux/$(TARGET_ARCH)/fpu_control.h include/ ; \ + else \ + $(LN) -fs ../libc/sysdeps/linux/common/fpu_control.h include/ ; \ + fi + $(LN) -fs ../libc/sysdeps/linux/common/dl-osinfo.h include/ @cd $(top_builddir)include/bits; \ set -e; \ for i in `ls ../../libc/sysdeps/linux/common/bits/*.h` ; do \ @@ -366,7 +372,7 @@ clean: $(MAKE) -C test clean $(MAKE) -C utils clean @set -e; \ - for i in `(cd $(top_builddir)libc/sysdeps/linux/common/sys; ls *.h)` ; do \ + for i in `(cd libc/sysdeps/linux/common/sys; ls *.h)` ; do \ $(RM) include/sys/$$i; \ done; \ if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \ @@ -375,8 +381,8 @@ clean: done; \ fi @$(RM) include/linux include/asm* - @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then \ - $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean; \ + @if [ -f libc/sysdeps/linux/$(TARGET_ARCH)/Makefile.arch ]; then \ + $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers_clean-y; \ fi -find . \( -name \*.o -o -name \*.os -o -name \*.oS \) -exec $(RM) {} \; |