diff options
author | David Schleef <ds@schleef.org> | 2001-05-26 01:48:56 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2001-05-26 01:48:56 +0000 |
commit | 86cffec4d5a8aa8c54bb3653cd289f4b92bfa3e1 (patch) | |
tree | 8a7c4e2ff510e83050d9d12d916edb2d53d11d4d | |
parent | d0c0ebb78efe2fba3132c78c70b26373b4660353 (diff) | |
download | uClibc-alpine-86cffec4d5a8aa8c54bb3653cd289f4b92bfa3e1.tar.bz2 uClibc-alpine-86cffec4d5a8aa8c54bb3653cd289f4b92bfa3e1.tar.xz |
Makefile targets to symlink arch-specific headers into include/ (only
used on mipsel.)
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/arm/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/i386/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/m68k/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/mips/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/powerpc/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/sh/Makefile | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/sparc/Makefile | 3 |
8 files changed, 23 insertions, 1 deletions
@@ -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 |