From 79a790a53f60ff71cf5b77d7afe4ff3d7731edde Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Tue, 8 Oct 2002 22:21:28 +0000 Subject: Implemented 'romfs' target so that uClibc works with building uClinux. --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ed4bd3d11..4087c2a0c 100644 --- a/Makefile +++ b/Makefile @@ -64,9 +64,20 @@ finished: shared @echo # -# dummy target for uClinux distro +# Target for uClinux distro # romfs: +ifeq ($(strip $(HAVE_SHARED)),true) + install -d $(ROMFSDIR)/lib + install -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ + $(ROMFSDIR)/lib + cp -a lib/*.so.* $(ROMFSDIR)/lib + @if [ -x lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so ] ; then \ + set -x -e; \ + install -m 755 lib/ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \ + $(ROMFSDIR)/lib; \ + fi; +endif headers: dummy rm -f include/asm; -- cgit v1.2.3