OSDN Git Service

Last bits for IMA, now everything can be built w/ DOMULTI=y on gcc-3.4.4 with my...
[uclinux-h8/uclibc-ng.git] / libc / Makefile.in
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
9 # we have SHARED_MAJORNAME=libc.so.$(MAJOR_VERSION) defined in Rules.mak
10 LIB_NAME:=libc
11
12 libc_DIR:=$(top_srcdir)libc
13 libc_OUT:=$(top_builddir)libc
14
15 libc_FULL_NAME:=libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
16
17 #DIRS:=misc pwd_grp stdio string termios inet signal stdlib sysdeps unistd
18
19 # this comes first, so duplicate removal works correctly
20 include $(libc_DIR)/sysdeps/Makefile.in
21
22 include $(libc_DIR)/misc/Makefile.in
23 include $(libc_DIR)/pwd_grp/Makefile.in
24 include $(libc_DIR)/stdio/Makefile.in
25 include $(libc_DIR)/string/Makefile.in
26 include $(libc_DIR)/termios/Makefile.in
27 include $(libc_DIR)/inet/Makefile.in
28 include $(libc_DIR)/signal/Makefile.in
29 include $(libc_DIR)/stdlib/Makefile.in
30 include $(libc_DIR)/unistd/Makefile.in
31
32 # Check if the target architecture has a version script for
33 # libc, and if so, include it when linking.
34 VERSION_SCRIPT:=${shell if [ -f $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map ] ; then \
35         echo "--version-script $(libc_DIR)/sysdeps/linux/$(TARGET_ARCH)/libc.map"; fi}
36
37 EXTRA_LINK_OPTS:=$(VERSION_SCRIPT) -init __uClibc_init
38 EXTRA_LINK_LIBS:=$(libc_OUT)/misc/internals/interp.os $(top_builddir)lib/$(UCLIBC_LDSO) $(LIBGCC) # $(LDADD_LIBFLOAT)
39
40 objclean-y+=libc_clean
41
42 lib-a-y+=$(top_builddir)lib/libc.a crt-y
43 lib-so-y+=$(top_builddir)lib/libc.so $(top_builddir)lib/$(NONSHARED_LIBNAME) crt-y other-y