summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7eae424e0..951b1909c 100644
--- a/Makefile
+++ b/Makefile
@@ -72,5 +72,19 @@ $(patsubst %, _dir_%, $(DIRS)) : dummy
$(patsubst %, _dirclean_%, $(DIRS) test) : dummy
$(MAKE) -C $(patsubst _dirclean_%, %, $@) clean
+
+install: libc.a
+ rm -f $(INSTALL_DIR)/include/asm
+ rm -f $(INSTALL_DIR)/include/linux
+ rm -f $(INSTALL_DIR)/include/net
+ ln -s $(KERNEL_SOURCE)/include/asm $(INSTALL_DIR)/include/asm
+ ln -s $(KERNEL_SOURCE)/include/net $(INSTALL_DIR)/include/net
+ ln -s $(KERNEL_SOURCE)/include/linux $(INSTALL_DIR)/include/linux
+ mkdir -p $(INSTALL_DIR)/include/bits
+ find include/ -type f -depth -print | cpio -pdmu $(INSTALL_DIR)
+ find include/bits/ -depth -print | cpio -pdmu $(INSTALL_DIR)
+ cp libc.a $(INSTALL_DIR)/lib
+ if [ -f crt0.o ] ; then cp crt0.o $(INSTALL_DIR)/lib ; fi
+
.PHONY: dummy