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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [Makefile.am] - Blame information for rev 252

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

Line No. Rev Author Line
1 148 jeremybenn
## Process this file with automake to generate Makefile.in
2
 
3
AUTOMAKE_OPTIONS = cygnus dejagnu
4
ACLOCAL_AMFLAGS = -I . -I ..
5
 
6
# Multilib support variables.
7
MULTISRCTOP =
8
MULTIBUILDTOP =
9
MULTIDIRS =
10
MULTISUBDIR =
11
MULTIDO = true
12
MULTICLEAN = true
13
 
14
LIBTOOL_VERSION_INFO = 0:0:0
15
 
16
if NEWLIB_HW_FP
17
MATHDIR = mathfp
18
else
19
MATHDIR = math
20
endif
21
 
22
# Work around what appears to be a GNU make bug handling MAKEFLAGS
23
# values defined in terms of make variables, as is the case for CC and
24
# friends when we are called from the top level Makefile.
25
AM_MAKEFLAGS = \
26
        "AR_FLAGS=$(AR_FLAGS)" \
27
        "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
28
        "CFLAGS=$(CFLAGS)" \
29
        "CCASFLAGS=$(CCASFLAGS)" \
30
        "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
31
        "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
32
        "INSTALL=$(INSTALL)" \
33
        "LDFLAGS=$(LDFLAGS)" \
34
        "LIBCFLAGS=$(LIBCFLAGS)" \
35
        "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
36
        "MAKE=$(MAKE)" \
37
        "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
38
        "PICFLAG=$(PICFLAG)" \
39
        "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
40
        "SHELL=$(SHELL)" \
41
        "EXPECT=$(EXPECT)" \
42
        "RUNTEST=$(RUNTEST)" \
43
        "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
44
        "exec_prefix=$(exec_prefix)" \
45
        "infodir=$(infodir)" \
46
        "libdir=$(libdir)" \
47
        "prefix=$(prefix)" \
48
        "tooldir=$(tooldir)" \
49
        "top_toollibdir=$(toollibdir)" \
50
        "AR=$(AR)" \
51
        "AS=$(AS)" \
52
        "CC=$(CC_FOR_NEWLIB)" \
53
        "LD=$(LD)" \
54
        "LIBCFLAGS=$(LIBCFLAGS)" \
55
        "NM=$(NM)" \
56
        "PICFLAG=$(PICFLAG)" \
57
        "RANLIB=$(RANLIB)" \
58
        "DESTDIR=$(DESTDIR)"
59
 
60
FLAGS_TO_PASS=$(AM_MAKEFLAGS)
61
 
62
if HAVE_DOC
63
DOCDIR = doc
64
else
65
DOCDIR =
66
endif
67
 
68
SUBDIRS = libc libm \
69
        $(DOCDIR) . $(EXTRA_DIRS)
70
 
71
tooldir = $(exec_prefix)/$(host_alias)
72
toollibdir = $(tooldir)/lib$(MULTISUBDIR)
73
 
74
AR_FLAGS = rc
75
 
76
if USE_LIBTOOL
77
toollib_LTLIBRARIES = libm.la \
78
        libc.la
79
else
80
toollib_LIBRARIES = libm.a \
81
        libc.a
82
endif
83
 
84
noinst_DATA = stmp-targ-include
85
 
86
toollib_DATA = $(CRT0) $(CRT1)
87
 
88
 
89
# The functions ldexp, frexp and modf are traditionally supplied in
90
# both libc.a and libm.a.  We build them in libm.a and copy them over,
91
# along with some required supporting routines.
92
MATHOBJS_IN_LIBC = \
93
        $(lpfx)s_isinf.$(oext) $(lpfx)sf_isinf.$(oext) \
94
        $(lpfx)s_isnan.$(oext) $(lpfx)sf_isnan.$(oext) \
95
        $(lpfx)s_isinfd.$(oext) $(lpfx)sf_isinff.$(oext) \
96
        $(lpfx)s_isnand.$(oext) $(lpfx)sf_isnanf.$(oext) \
97
        $(lpfx)s_nan.$(oext) $(lpfx)sf_nan.$(oext) \
98
        $(lpfx)s_ldexp.$(oext) $(lpfx)sf_ldexp.$(oext) \
99
        $(lpfx)s_frexp.$(oext) $(lpfx)sf_frexp.$(oext) \
100
        $(lpfx)s_modf.$(oext) \
101
        $(lpfx)sf_modf.$(oext) $(lpfx)s_scalbn.$(oext) \
102
        $(lpfx)sf_scalbn.$(oext) \
103
        $(lpfx)s_finite.$(oext) $(lpfx)sf_finite.$(oext) \
104
        $(lpfx)s_copysign.$(oext) $(lpfx)sf_copysign.$(oext) \
105
        $(lpfx)s_infconst.$(oext)
106
 
107
LIBC_OBJECTLISTS = \
108
        $(POSIX_OBJECTLIST) \
109
        $(SIGNAL_OBJECTLIST) \
110
        $(SYSCALL_OBJECTLIST) \
111
        $(UNIX_OBJECTLIST) \
112
        $(STDIO64_OBJECTLIST) \
113
        libc/argz/objectlist.awk.in \
114
        libc/stdlib/objectlist.awk.in \
115
        libc/time/objectlist.awk.in \
116
        libc/ctype/objectlist.awk.in \
117
        libc/search/objectlist.awk.in \
118
        libc/string/objectlist.awk.in \
119
        libc/locale/objectlist.awk.in \
120
        libc/misc/objectlist.awk.in \
121
        libc/reent/objectlist.awk.in \
122
        libc/errno/objectlist.awk.in \
123
        libc/stdio/objectlist.awk.in \
124
        $(MACHINE_OBJECTLIST) \
125
        $(SYS_OBJECTLIST) \
126
        $(SYS_MACH_OBJECTLIST)
127
 
128
LIBM_OBJECTLISTS = \
129
        libm/$(MATHDIR)/objectlist.awk.in \
130
        libm/common/objectlist.awk.in \
131
        $(LIBM_MACHINE_OBJECTLIST)
132
 
133
libm_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libm-libtool-objectlist
134
 
135
libc_la_LDFLAGS = -version-info $(LIBTOOL_VERSION_INFO) -release newlib -no-undefined -Xcompiler -nostdlib -Xlinker --version-script=$(srcdir)/libc/sys/linux/shared.ld -lgcc -objectlist libc-libtool-objectlist
136
 
137
if USE_LIBTOOL
138
libm_la_SOURCES =
139
libm_la_DEPENDENCIES = libm-libtool-objectlist
140
 
141
# objects listed later in LIBM_OBJECTLISTS will override those listed earlier
142
libm-libtool-objectlist: $(LIBM_OBJECTLISTS)
143
        cat $(LIBM_OBJECTLISTS) | $(AWK) '{ libm[$$1] = $$2 }; END { for (x in libm) printf ("%s\n", libm[x]) }' > $@
144
 
145
libc_la_SOURCES =
146
libc_la_DEPENDENCIES = libc-libtool-objectlist
147
 
148
# objects listed later in LIBM_OBJECTLISTS and LIBC_OBJECTLISTS will override those listed earlier
149
libc-libtool-objectlist: $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS)
150
        cat $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) |  $(AWK) '{ libc[$$1] = $$2 }; END { for (x in libc) printf ("%s\n", libc[x]) }' > $@
151
 
152
else
153
 
154
libc.a: libc/libc.a libm.a
155
        rm -rf libc.a libg.a tmp
156
        mkdir tmp
157
        cd tmp; \
158
         $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
159
         $(AR) x ../libc/libc.a ; \
160
         $(AR) $(AR_FLAGS) ../$@ *.o
161
        $(RANLIB) libc.a
162
        ln libc.a libg.a >/dev/null 2>/dev/null || cp libc.a libg.a
163
        rm -rf tmp
164
 
165
libc/libc.a: ; @true
166
 
167
libm.a: libm/libm.a
168
        rm -f $@
169
        ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@
170
 
171
libm/libm.a: ; @true
172
 
173
endif # USE_LIBTOOL
174
 
175
crt0.o: $(CRT0_DIR)$(CRT0)
176
        rm -f $@
177
        ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \
178
         || cp $(CRT0_DIR)$(CRT0) $@
179
 
180
$(CRT0_DIR)$(CRT0): ; @true
181
 
182
crt1.o: $(CRT1_DIR)$(CRT1)
183
        rm -f $@
184
        ln $< $@ >/dev/null 2>/dev/null \
185
         || cp $< $@
186
 
187
$(CRT1_DIR)$(CRT1): ; @true
188
 
189
 
190
all-recursive: stmp-targ-include
191
 
192
# The targ-include directory just holds the includes files for the
193
# particular system and machine we have been configured for.  It is
194
# used while building.
195
stmp-targ-include: config.status
196
        -rm -rf targ-include stmp-targ-include
197
        mkdir targ-include targ-include/sys targ-include/machine targ-include/bits
198
        cp newlib.h targ-include/newlib.h
199
        -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
200
            if [ -f $$i ]; then \
201
              cp $$i targ-include/machine/`basename $$i`; \
202
            else true; fi ; \
203
          done
204
        -for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
205
            if [ -f $$i ]; then \
206
              cp $$i targ-include/sys/`basename $$i`; \
207
            else true; fi ; \
208
          done
209
        -for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
210
            if [ -f $$i ]; then \
211
              cp $$i targ-include/`basename $$i`; \
212
            else true; fi ; \
213
          done
214
        -for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
215
            if [ -f $$i ]; then \
216
              cp $$i targ-include/`basename $$i`; \
217
            else true; fi ; \
218
          done
219
        -for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
220
            if [ -f $$i ]; then \
221
              cp $$i targ-include/sys/`basename $$i`; \
222
            else true; fi ; \
223
          done
224
        -for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
225
            if [ -f $$i ]; then \
226
              cp $$i targ-include/bits/`basename $$i`; \
227
            else true; fi ; \
228
          done
229
        -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
230
            if [ -f $$i ]; then \
231
              cp $$i targ-include/machine/`basename $$i`; \
232
            else true; fi ; \
233
          done
234
        -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \
235
            if [ -f $$i ]; then \
236
              cp $$i targ-include/machine/`basename $$i`; \
237
            else true; fi ; \
238
          done
239
        -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
240
            if [ -f $$i ]; then \
241
              cp $$i targ-include/machine/`basename $$i`; \
242
            else true; fi ; \
243
          done
244
        touch $@
245
 
246
CLEANFILES = targ-include stmp-targ-include
247
 
248
install-data-local:     install-toollibLIBRARIES
249
if USE_LIBTOOL
250
else
251
        rm -f $(DESTDIR)$(toollibdir)/libg.a
252
        ln $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a >/dev/null 2>/dev/null || cp $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a
253
endif
254
        $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
255
        -if [ -z "$(MULTISUBDIR)" ]; then \
256
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include; \
257
          for i in $(srcdir)/libc/include/*.h; do \
258
           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
259
          done; \
260
          $(INSTALL_DATA) newlib.h $(DESTDIR)$(tooldir)/include/newlib.h; \
261
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \
262
          for i in $(srcdir)/libc/include/machine/*.h; do \
263
           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
264
          done; \
265
          for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
266
            if [ -f $$i ]; then \
267
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
268
            else true; fi ; \
269
          done; \
270
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \
271
          for i in $(srcdir)/libc/include/sys/*.h; do \
272
           $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
273
          done; \
274
          for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
275
            if [ -f $$i ]; then \
276
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
277
            else true; fi ; \
278
          done ; \
279
          for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
280
            if [ -f $$i ]; then \
281
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
282
            else true; fi ; \
283
          done ; \
284
          for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
285
            if [ -f $$i ]; then \
286
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
287
            else true; fi ; \
288
          done ; \
289
          $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/bits; \
290
          for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
291
            if [ -f $$i ]; then \
292
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/bits/`basename $$i`; \
293
            else true; fi ; \
294
          done ; \
295
          for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
296
            if [ -f $$i ]; then \
297
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
298
            else true; fi ; \
299
          done ; \
300
          for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
301
            if [ -f $$i ]; then \
302
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
303
            else true; fi ; \
304
          done ; \
305
          for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
306
            if [ -f $$i ]; then \
307
             $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
308
            else true; fi ; \
309
          done ; \
310
        else true; fi
311
 
312
# Force makedoc to be built before building info files.
313
info-recursive: doc/makedoc
314
dvi-recursive: doc/makedoc
315
doc/makedoc:
316
        cd doc && $(MAKE) all
317
 
318
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
319
 
320
# Multilib support.
321
.PHONY: all-multi check-multi mostlyclean-multi clean-multi distclean-multi \
322
        maintainer-clean-multi
323
 
324
all-recursive: all-multi
325
check-recursive: check-multi
326
mostlyclean-recursive: mostlyclean-multi
327
clean-recursive: clean-multi
328
distclean-recursive: distclean-multi
329
maintainer-clean-recursive: maintainer-clean-multi
330
 
331
# The $(MAKE) comments below are to enable parallel building.
332
all-multi:
333
        $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
334
check-multi:
335
        $(MULTIDO) $(AM_MAKEFLAGS) DO=check multi-do # $(MAKE)
336
mostlyclean-multi:
337
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
338
clean-multi:
339
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
340
distclean-multi:
341
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
342
maintainer-clean-multi:
343
        $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE)
344
 
345
MAKEOVERRIDES=
346
 
347
# dejagnu support
348
 
349
RUNTESTFLAGS=
350
 
351
site.exp: Makefile
352
        @echo 'Making a new site.exp file...'
353
        @test ! -f site.bak || rm -f site.bak
354
        @echo '## these variables are automatically generated by make ##' > $@-t
355
        @echo '# Do not edit here.  If you wish to override these values' >> $@-t
356
        @echo '# edit the last section' >> $@-t
357
        @echo 'set tool $(DEJATOOL)' >> $@-t
358
        @echo 'set tool_version $(VERSION)' >> $@-t
359
        @echo 'set srcdir $(srcdir)/testsuite' >> $@-t
360
        @echo 'set objdir' `pwd` >> $@-t
361
        @echo 'set tmpdir' `pwd`/testsuite >> $@-t
362
        @echo 'set multibuildtop ./$(MULTIBUILDTOP)' >> $@-t
363
        @echo 'set host_alias $(build_alias)' >> $@-t
364
        @echo 'set host_triplet $(build_triplet)' >> $@-t
365
        @echo 'set target_alias $(host_alias)' >> $@-t
366
        @echo 'set target_triplet $(host_triplet)' >> $@-t
367
        @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
368
        @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
369
        @test ! -f site.exp || mv site.exp site.bak
370
        @mv $@-t site.exp
371
 
372
check-DEJAGNU: site.exp
373
        @if [ -d testsuite ] ; then \
374
          true ; \
375
        else \
376
          mkdir testsuite ; \
377
        fi
378
        @rm -f testsuite/site.exp
379
        @cp site.exp testsuite/site.exp
380
        @rootme=`pwd` ; \
381
        export rootme ; \
382
        srcdir=`cd ${srcdir}; pwd` ; \
383
        export srcdir ; \
384
        EXPECT=`if [ -f $${rootme}/${MULTIBUILDTOP}../../expect/expect ] ; then \
385
                  echo $${rootme}/${MULTIBUILDTOP}../../expect/expect ; \
386
                else \
387
                  echo expect ; \
388
                fi` ; \
389
        export EXPECT ; \
390
        echo "Found expect: $${EXPECT}" ; \
391
        if [ -f $(top_builddir)/$(MULTIBUILDTOP)../../expect/expect ] ; then \
392
          TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd` ; \
393
          export TCL_LIBRARY ; \
394
          echo "Found TCL library directory: $${TCL_LIBRARY}" ; \
395
        fi ; \
396
        RUNTEST=`if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
397
                   echo $${srcdir}/../dejagnu/runtest ; \
398
                 else \
399
                   echo runtest ; \
400
                 fi` ; \
401
        export RUNTEST ; \
402
        echo "Found runtest: $${RUNTEST}" ; \
403
        cd testsuite ; \
404
        if $(SHELL) -c "$$RUNTEST --version" > /dev/null 2>&1 ; then \
405
           $$RUNTEST --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite $(RUNTESTFLAGS) ; \
406
           : ; \
407
        else \
408
           echo "WARNING: could not find \`runtest'" 1>&2 ; \
409
        fi

powered by: WebSVN 2.1.0

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