Browse Source

Makefile targets to symlink arch-specific headers into include/ (only
used on mipsel.)

David Schleef 23 years ago
parent
commit
86cffec4d5

+ 2 - 1
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

+ 3 - 0
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
 

+ 3 - 0
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
 

+ 3 - 0
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
 

+ 3 - 0
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
 

+ 3 - 0
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
 

+ 3 - 0
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
 

+ 3 - 0
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