Makefile.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. DOMULTI=n
  9. # we have SHARED_MAJORNAME=libc.so.$(MAJOR_VERSION) defined in Rules.mak
  10. LIB_NAME:=libc
  11. libc_DIR:=$(top_srcdir)libc
  12. libc_OUT:=$(top_builddir)libc
  13. libc_FULL_NAME:=libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
  14. #DIRS:=misc pwd_grp stdio string termios inet signal stdlib sysdeps unistd
  15. # this comes first, so duplicate removal works correctly
  16. include $(libc_DIR)/sysdeps/Makefile.in
  17. include $(libc_DIR)/misc/Makefile.in
  18. include $(libc_DIR)/pwd_grp/Makefile.in
  19. include $(libc_DIR)/stdio/Makefile.in
  20. include $(libc_DIR)/string/Makefile.in
  21. include $(libc_DIR)/termios/Makefile.in
  22. include $(libc_DIR)/inet/Makefile.in
  23. include $(libc_DIR)/signal/Makefile.in
  24. include $(libc_DIR)/stdlib/Makefile.in
  25. include $(libc_DIR)/unistd/Makefile.in
  26. # Check if the target architecture has a version script for
  27. # libc, and if so, include it when linking.
  28. VERSION_SCRIPT:=${shell if [ -f $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map ] ; then \
  29. echo "--version-script $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map"; fi}
  30. EXTRA_LINK_OPTS:=$(VERSION_SCRIPT) -init __uClibc_init
  31. EXTRA_LINK_LIBS:=$(libc_OUT)/misc/internals/interp.os $(top_builddir)lib/$(UCLIBC_LDSO) $(LIBGCC) # $(LDADD_LIBFLOAT)
  32. objclean-y+=libc_clean
  33. lib-a-y+=$(top_builddir)lib/libc.a crt-y
  34. lib-so-y+=$(top_builddir)lib/libc.so $(top_builddir)lib/$(NONSHARED_LIBNAME) crt-y other-y