From 86cffec4d5a8aa8c54bb3653cd289f4b92bfa3e1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 26 May 2001 01:48:56 +0000 Subject: Makefile targets to symlink arch-specific headers into include/ (only used on mipsel.) --- Makefile | 3 ++- libc/sysdeps/linux/arm/Makefile | 3 +++ libc/sysdeps/linux/i386/Makefile | 3 +++ libc/sysdeps/linux/m68k/Makefile | 3 +++ libc/sysdeps/linux/mips/Makefile | 3 +++ libc/sysdeps/linux/powerpc/Makefile | 3 +++ libc/sysdeps/linux/sh/Makefile | 3 +++ libc/sysdeps/linux/sparc/Makefile | 3 +++ 8 files changed, 23 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7894ca733..367d5e990 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ headers: dummy @ln -s $(KERNEL_SOURCE)/include/linux include/linux @ln -s ../libc/sysdeps/linux/$(TARGET_ARCH)/bits include/bits (cd include/bits; ln -sf ../../../../../uClibc_config.h uClibc_config.h) + make -C libc/sysdeps/linux/$(TARGET_ARCH) headers uClibc_config.h: Config @echo "/* WARNING!!! AUTO-GENERATED FILE!!! DO NOT EDIT!!! */" > uClibc_config.h @@ -169,7 +170,7 @@ install_dev: clean: @rm -rf tmp lib - rm -f include/asm include/linux include/bits uClibc_config.h + - find include -type l -exec rm -f {} \; - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core \) -exec rm -f {} \; .PHONY: dummy subdirs diff --git a/libc/sysdeps/linux/arm/Makefile b/libc/sysdeps/linux/arm/Makefile index 8c543ac4e..181d5a294 100644 --- a/libc/sysdeps/linux/arm/Makefile +++ b/libc/sysdeps/linux/arm/Makefile @@ -62,6 +62,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # No arch specific headers + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile index afca6bd82..f55b91355 100644 --- a/libc/sysdeps/linux/i386/Makefile +++ b/libc/sysdeps/linux/i386/Makefile @@ -59,6 +59,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # No arch specific headers + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/m68k/Makefile b/libc/sysdeps/linux/m68k/Makefile index d79f0e33c..e4346e4c8 100644 --- a/libc/sysdeps/linux/m68k/Makefile +++ b/libc/sysdeps/linux/m68k/Makefile @@ -59,6 +59,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # no arch-specific headers + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile index 00061de71..e4a582b5a 100644 --- a/libc/sysdeps/linux/mips/Makefile +++ b/libc/sysdeps/linux/mips/Makefile @@ -71,6 +71,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + cd $(TOPDIR)/include;ln -s ../libc/sysdeps/linux/mipsel/sgidefs.h . + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/powerpc/Makefile b/libc/sysdeps/linux/powerpc/Makefile index 09caa560e..c2190de6f 100644 --- a/libc/sysdeps/linux/powerpc/Makefile +++ b/libc/sysdeps/linux/powerpc/Makefile @@ -70,6 +70,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # no arch-specific headers + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/sh/Makefile b/libc/sysdeps/linux/sh/Makefile index d39d3bf40..e0504a22c 100644 --- a/libc/sysdeps/linux/sh/Makefile +++ b/libc/sysdeps/linux/sh/Makefile @@ -61,6 +61,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # no arch-specific headers + clean: rm -f *.[oa] *~ core diff --git a/libc/sysdeps/linux/sparc/Makefile b/libc/sysdeps/linux/sparc/Makefile index c713f18a0..62e1a40d7 100644 --- a/libc/sysdeps/linux/sparc/Makefile +++ b/libc/sysdeps/linux/sparc/Makefile @@ -57,6 +57,9 @@ $(COBJS): %.o : %.c $(CC) $(CFLAGS) -c $< -o $@ $(STRIPTOOL) -x -R .note -R .comment $*.o +headers: + # no arch-specific headers + clean: rm -f *.[oa] *~ core -- cgit v1.2.3