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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [Makefile.am] - Blame information for rev 802

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

Line No. Rev Author Line
1 207 jeremybenn
## 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
if HAVE_STDIO_DIR
22
STDIO_SUBDIR = stdio
23
endif
24
 
25
if HAVE_STDIO64_DIR
26
STDIO64_SUBDIR = stdio64
27
endif
28
 
29
if ENABLE_NEWLIB_ICONV
30
NEWLIB_ICONV_DIRS = iconv
31
NEWLIB_ICONV_LIBS = iconv/ces/lib.$(aext) iconv/ccs/lib.$(aext) iconv/lib/lib.$(aext)
32
else
33
NEWLIB_ICONV_DIRS =
34
NEWLIB_ICONV_LIBS =
35
endif
36
 
37
# The order of SUBDIRS is important for the integrated documentation.
38
# Do not change the order without considering the doc impact.
39
SUBDIRS = argz stdlib ctype search $(STDIO_SUBDIR) $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale sys reent \
40
        $(extra_dir) errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) .
41
 
42
noinst_DATA = $(CRT0)
43
 
44
if USE_LIBTOOL
45
noinst_LTLIBRARIES = libc.la
46
SUBLIBS = \
47
        argz/libargz.$(aext) \
48
        stdlib/libstdlib.$(aext) \
49
        ctype/libctype.$(aext) \
50
        search/libsearch.$(aext) \
51
        $(LIBC_STDIO_LIB) \
52
        $(LIBC_STDIO64_LIB) \
53
        string/libstring.$(aext) \
54
        $(LIBC_SIGNAL_LIB) \
55
        time/libtime.$(aext) \
56
        locale/liblocale.$(aext) \
57
        reent/libreent.$(aext) \
58
        $(LIBC_EXTRA_LIB) \
59
        errno/liberrno.$(aext) \
60
        misc/libmisc.$(aext) \
61
        $(LIBC_UNIX_LIB) \
62
        $(LIBC_POSIX_LIB) \
63
        $(LIBC_SYSCALL_LIB) \
64
        $(LIBC_MACHINE_LIB) \
65
        $(LIBC_SYS_LIB)
66
else
67
noinst_LIBRARIES = libc.a
68
SUBLIBS = \
69
        argz/lib.$(aext) \
70
        stdlib/lib.$(aext) \
71
        ctype/lib.$(aext) \
72
        search/lib.$(aext) \
73
        $(LIBC_STDIO_LIB) \
74
        $(LIBC_STDIO64_LIB) \
75
        string/lib.$(aext) \
76
        $(LIBC_SIGNAL_LIB) \
77
        time/lib.$(aext) \
78
        locale/lib.$(aext) \
79
        reent/lib.$(aext) \
80
        $(LIBC_EXTRA_LIB) \
81
        errno/lib.$(aext) \
82
        misc/lib.$(aext) \
83
        $(LIBC_UNIX_LIB) \
84
        $(LIBC_POSIX_LIB) \
85
        $(LIBC_SYSCALL_LIB) \
86
        $(NEWLIB_ICONV_LIBS) \
87
        $(LIBC_MACHINE_LIB) \
88
        $(LIBC_SYS_LIB)
89
endif
90
 
91
libc_la_LDFLAGS = -Xcompiler -nostdlib
92
 
93
if USE_LIBTOOL
94
libc_la_SOURCES =
95
libc_la_LIBADD = $(SUBLIBS)
96
libc_la_DEPENDENCIES = $(SUBLIBS)
97
else
98
libc.a: $(SUBLIBS)
99
        rm -f $@
100
        rm -rf tmp
101
        mkdir tmp
102
        cd tmp; \
103
         for i in $(SUBLIBS); do \
104
           $(AR) x ../$$i; \
105
         done; \
106
        $(AR) $(AR_FLAGS) ../$@ *.o
107
        $(RANLIB) $@
108
        rm -rf tmp
109
endif # USE_LIBTOOL
110
 
111
$(SUBLIBS): ; @true
112
 
113
crt0.o: sys/crt0.o
114
        rm -f $@
115
        ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
116
 
117
sys/crt0.o: ; @true
118
 
119
# This is a list of the stmp-def files in each subdirectory which
120
# builds .def files.  We don't list subdirectories which don't build
121
# .def files; if the list of subdirectories changes, we must change
122
# this as well.
123
SUBDEFS = \
124
        stdlib/stmp-def \
125
        ctype/stmp-def \
126
        $(LIBC_STDIO_DEF) \
127
        $(LIBC_STDIO64_DEF) \
128
        string/stmp-def \
129
        $(LIBC_SIGNAL_DEF) \
130
        time/stmp-def \
131
        locale/stmp-def \
132
        reent/stmp-def \
133
        $(LIBC_EXTRA_DEF) \
134
        misc/stmp-def \
135
        posix/stmp-def
136
 
137
libc.info: sigset.texi extra.texi stdio64.texi iconvset.texi \
138
        targetdep.tex $(SUBDEFS)
139
 
140
libc.dvi: sigset.texi extra.texi stdio64.texi iconvset.texi \
141
        targetdep.tex $(SUBDEFS)
142
 
143
stmp-sigset: config.status
144
        if test -n "$(LIBC_SIGNAL_LIB)"; then \
145
          echo "@set SIGNALS" >tmp.texi; \
146
        else \
147
          echo "@clear SIGNALS" >tmp.texi; \
148
        fi
149
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
150
        touch $@
151
 
152
sigset.texi: stmp-sigset ; @true
153
 
154
stmp-iconvset: config.status
155
        if test -n "$(NEWLIB_ICONV_LIBS)"; then \
156
          echo "@set ICONV" >tmp.texi; \
157
        else \
158
          echo "@clear ICONV" >tmp.texi; \
159
        fi
160
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi iconvset.texi
161
        touch $@
162
 
163
iconvset.texi: stmp-iconvset ; @true
164
 
165
stmp-extra: config.status
166
        if test -n "$(LIBC_EXTRA_LIB)"; then \
167
          echo "@set EXTRA" >tmp.texi; \
168
        else \
169
          echo "@clear EXTRA" >tmp.texi; \
170
        fi
171
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi extra.texi
172
        touch $@
173
 
174
extra.texi: stmp-extra ; @true
175
 
176
stmp-stdio64: config.status
177
        if test -n "$(LIBC_STDIO64_LIB)"; then \
178
          echo "@set STDIO64" >tmp.texi; \
179
        else \
180
          echo "@clear STDIO64" >tmp.texi; \
181
        fi
182
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi stdio64.texi
183
        touch $@
184
 
185
stdio64.texi: stmp-stdio64 ; @true
186
 
187
stmp-targetdep: force
188
        rm -f tmp.texi
189
        targetdoc=`pwd`/tmp.texi; \
190
        for d in $(SUBDIRS); do \
191
          if test "$$d" != "."; then \
192
            (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
193
          fi; \
194
        done
195
        cat $(srcdir)/sys.tex >>tmp.texi
196
        $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
197
        touch $@
198
 
199
targetdep.tex: stmp-targetdep ; @true
200
 
201
$(SUBDEFS): stmp-targetdep ; @true
202
 
203
info_TEXINFOS = libc.texinfo
204
libc_TEXINFOS = sigset.texi extra.texi stdio64.texi iconvset.texi \
205
        targetdep.tex $(SUBDEFS)
206
 
207
.PHONY: force
208
force:
209
 
210
CLEANFILES = $(CRT0) \
211
        sigset.texi stmp-sigset extra.texi stmp-extra \
212
        stdio64.texi stmp-stdio64 tmp.texi targetdep.tex stmp-targetdep
213
 
214
ACLOCAL_AMFLAGS = -I .. -I ../..
215
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.