summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-12 10:53:48 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-12 10:53:48 +0000
commitddaf94095891a21cedd6a18d9178e4444fb937a7 (patch)
treeb47bcefa33533e4f41ecce4e3a1bee1d215e006e /Makefile
parent77879554671206102471bb282accb3251395d151 (diff)
Patch from James Graves <jgraves@deltamobile.com> to better handle m68k.
Also fixes 2 very important malloc bugs! Anyone using malloc (esp mmu-less) should update and recompile. -Erik
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