path: root/libc/
diff options
authorPeter S. Mazinger <>2005-10-25 22:17:39 (GMT)
committerPeter S. Mazinger <>2005-10-25 22:17:39 (GMT)
commita80fc77b658a7883df95ac41ad83ac9ff7c8ff07 (patch)
tree3edbcb812b876e0ba1424b229d50e9c04a2b0d4a /libc/
parent7ce8f67d27885ea6b1cba2c43e5edc9f1dc17f0f (diff)
All's. Only arm/i386/mips/powerpc/x86_64 are done, the other archs lack proper crt1. The Makefiles in extra/scripts are intended to be linked into each dir, where it is necessary to build locally.
Diffstat (limited to 'libc/')
1 files changed, 57 insertions, 0 deletions
diff --git a/libc/ b/libc/
new file mode 100644
index 0000000..33a1070
--- /dev/null
+++ b/libc/
@@ -0,0 +1,57 @@
+# Makefile for uClibc
+# Copyright (C) 2000 by Lineo, inc.
+# Copyright (C) 2000-2005 Erik Andersen <>
+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+# we have$(MAJOR_VERSION) defined in Rules.mak
+#DIRS:=misc pwd_grp stdio string termios inet signal stdlib sysdeps unistd
+# this comes first, so duplicate removal works correctly
+include $(libc_DIR)/sysdeps/
+include $(libc_DIR)/misc/
+include $(libc_DIR)/pwd_grp/
+include $(libc_DIR)/stdio/
+include $(libc_DIR)/string/
+include $(libc_DIR)/termios/
+include $(libc_DIR)/inet/
+include $(libc_DIR)/signal/
+include $(libc_DIR)/stdlib/
+include $(libc_DIR)/unistd/
+# Check if the target architecture has a version script for
+# libc, and if so, include it when linking.
+VERSION_SCRIPT:=${shell if [ -f $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/ ] ; then \
+ echo "--version-script $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/"; fi}
+EXTRA_LINK_OPTS:=$(VERSION_SCRIPT) -init __uClibc_init
+EXTRA_LINK_LIBS:=$(libc_OUT)/misc/internals/interp.os $(top_builddir)lib/$(UCLIBC_LDSO) $(LIBGCC) # $(LDADD_LIBFLOAT)
+ifeq ($(DOPIC),y)
+libc-a-y: $(libc-a-pic-y)
+libc-a-y: $(libc-a-y)
+libc-so-y: $(libc-so-y)
+crt-y: $(crt-y)
+other-y: $(other-y)
+lib-so-y+=$(top_builddir)lib/ $(top_builddir)lib/$(NONSHARED_LIBNAME) crt-y