OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [Makefile.am] - Blame information for rev 1005

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus
4
 
5
if HAVE_POSIX_DIR
6
POSIX_SUBDIR = posix
7
endif
8
 
9
if HAVE_SIGNAL_DIR
10
SIGNAL_SUBDIR = signal
11
endif
12
 
13
if HAVE_SYSCALL_DIR
14
SYSCALLS_SUBDIR = syscalls
15
endif
16
 
17
if HAVE_UNIX_DIR
18
UNIX_SUBDIR = unix
19
endif
20
 
21
# The order of SUBDIRS is important for the integrated documentation.
22
# Do not change the order without considering the doc impact.
23
SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
24
        errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
25
 
26
noinst_DATA = $(CRT0)
27
 
28
if USE_LIBTOOL
29
noinst_LTLIBRARIES = libc.la
30
SUBLIBS = \
31
        stdlib/libstdlib.$(aext) \
32
        ctype/libctype.$(aext) \
33
        stdio/libstdio.$(aext) \
34
        string/libstring.$(aext) \
35
        $(LIBC_SIGNAL_LIB) \
36
        time/libtime.$(aext) \
37
        locale/liblocale.$(aext) \
38
        $(LIBC_SYS_LIB) \
39
        reent/libreent.$(aext) \
40
        errno/liberrno.$(aext) \
41
        misc/libmisc.$(aext) \
42
        $(LIBC_MACHINE_LIB) \
43
        $(LIBC_UNIX_LIB) \
44
        $(LIBC_POSIX_LIB) \
45
        $(LIBC_SYSCALL_LIB)
46
else
47
noinst_LIBRARIES = libc.a
48
SUBLIBS = \
49
        stdlib/lib.$(aext) \
50
        ctype/lib.$(aext) \
51
        stdio/lib.$(aext) \
52
        string/lib.$(aext) \
53
        $(LIBC_SIGNAL_LIB) \
54
        time/lib.$(aext) \
55
        locale/lib.$(aext) \
56
        $(LIBC_SYS_LIB) \
57
        reent/lib.$(aext) \
58
        errno/lib.$(aext) \
59
        misc/lib.$(aext) \
60
        $(LIBC_MACHINE_LIB) \
61
        $(LIBC_UNIX_LIB) \
62
        $(LIBC_POSIX_LIB) \
63
        $(LIBC_SYSCALL_LIB)
64
endif
65
 
66
libc_la_LDFLAGS = -Xcompiler -nostdlib
67
 
68
if USE_LIBTOOL
69
libc_la_SOURCES =
70
libc_la_LIBADD = $(SUBLIBS)
71
else
72
libc.a: $(SUBLIBS)
73
        rm -f $@
74
        rm -rf tmp
75
        mkdir tmp
76
        cd tmp; \
77
         for i in $(SUBLIBS); do \
78
           $(AR) x ../$$i; \
79
         done; \
80
        $(AR) $(AR_FLAGS) ../$@ *.o
81
        $(RANLIB) $@
82
        rm -rf tmp
83
endif # USE_LIBTOOL
84
 
85
$(SUBLIBS): ; @true
86
 
87
crt0.o: sys/crt0.o
88
        rm -f $@
89
        ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
90
 
91
sys/crt0.o: ; @true
92
 
93
info_TEXINFOS = libc.texinfo
94
 
95
# This is a list of the stmp-def files in each subdirectory which
96
# builds .def files.  We don't list subdirectories which don't build
97
# .def files; if the list of subdirectories changes, we must change
98
# this as well.
99
SUBDEFS = \
100
        stdlib/stmp-def \
101
        ctype/stmp-def \
102
        stdio/stmp-def \
103
        string/stmp-def \
104
        $(LIBC_SIGNAL_DEF) \
105
        time/stmp-def \
106
        locale/stmp-def \
107
        reent/stmp-def \
108
        misc/stmp-def
109
 
110
libc.info: sigset.texi targetdep.tex $(SUBDEFS)
111
 
112
stmp-sigset: config.status
113
        if test -n "$(LIBC_SIGNAL_LIB)"; then \
114
          echo "@set SIGNALS" >tmp.texi; \
115
        else \
116
          echo "@clear SIGNALS" >tmp.texi; \
117
        fi
118
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
119
        touch $@
120
 
121
sigset.texi: stmp-sigset ; @true
122
 
123
stmp-targetdep: force
124
        rm -f tmp.texi
125
        targetdoc=`pwd`/tmp.texi; \
126
        for d in $(SUBDIRS); do \
127
          if test "$$d" != "."; then \
128
            (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
129
          fi; \
130
        done
131
        cat $(srcdir)/sys.tex >>tmp.texi
132
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
133
        touch $@
134
 
135
targetdep.tex: stmp-targetdep ; @true
136
 
137
$(SUBDEFS): stmp-targetdep ; @true
138
 
139
.PHONY: force
140
force:
141
 
142
CLEANFILES = $(CRT0) \
143
        sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
144
 
145
ACLOCAL_AMFLAGS = -I ..
146
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.