OSDN Git Service

2005-09-08 Jeff Johnston <jjohnstn@redhat.com>
[pf3gnuchains/pf3gnuchains4x.git] / newlib / Makefile.in
1 # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4 # This Makefile.in is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13
14 SHELL = @SHELL@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 prefix = @prefix@
20 exec_prefix = @exec_prefix@
21
22 bindir = @bindir@
23 sbindir = @sbindir@
24 libexecdir = @libexecdir@
25 datadir = @datadir@
26 sysconfdir = @sysconfdir@
27 sharedstatedir = @sharedstatedir@
28 localstatedir = @localstatedir@
29 libdir = @libdir@
30 infodir = @infodir@
31 mandir = @mandir@
32 includedir = @includedir@
33 oldincludedir = /usr/include
34
35 DESTDIR =
36
37 pkgdatadir = $(datadir)/@PACKAGE@
38 pkglibdir = $(libdir)/@PACKAGE@
39 pkgincludedir = $(includedir)/@PACKAGE@
40
41 top_builddir = .
42
43 ACLOCAL = @ACLOCAL@
44 AUTOCONF = @AUTOCONF@
45 AUTOMAKE = @AUTOMAKE@
46 AUTOHEADER = @AUTOHEADER@
47
48 INSTALL = @INSTALL@
49 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
50 INSTALL_DATA = @INSTALL_DATA@
51 INSTALL_SCRIPT = @INSTALL_SCRIPT@
52 transform = @program_transform_name@
53
54 NORMAL_INSTALL = :
55 PRE_INSTALL = :
56 POST_INSTALL = :
57 NORMAL_UNINSTALL = :
58 PRE_UNINSTALL = :
59 POST_UNINSTALL = :
60 build_alias = @build_alias@
61 build_triplet = @build@
62 host_alias = @host_alias@
63 host_triplet = @host@
64 target_alias = @target_alias@
65 target_triplet = @target@
66 AR = @AR@
67 AS = @AS@
68 AWK = @AWK@
69 CC = @CC@
70 CC_FOR_BUILD = @CC_FOR_BUILD@
71 CC_FOR_NEWLIB = @CC_FOR_NEWLIB@
72 CPP = @CPP@
73 CRT0 = @CRT0@
74 CRT0_DIR = @CRT0_DIR@
75 CRT1 = @CRT1@
76 CRT1_DIR = @CRT1_DIR@
77 CXX = @CXX@
78 CXXCPP = @CXXCPP@
79 DLLTOOL = @DLLTOOL@
80 EXEEXT = @EXEEXT@
81 EXTRA_DIRS = @EXTRA_DIRS@
82 GCJ = @GCJ@
83 GCJFLAGS = @GCJFLAGS@
84 LDFLAGS = @LDFLAGS@
85 LIBM_MACHINE_OBJECTLIST = @LIBM_MACHINE_OBJECTLIST@
86 LIBTOOL = @LIBTOOL@
87 LN_S = @LN_S@
88 MACHINE_OBJECTLIST = @MACHINE_OBJECTLIST@
89 MAINT = @MAINT@
90 MAKEINFO = @MAKEINFO@
91 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
92 OBJDUMP = @OBJDUMP@
93 OBJEXT = @OBJEXT@
94 PACKAGE = @PACKAGE@
95 POSIX_OBJECTLIST = @POSIX_OBJECTLIST@
96 RANLIB = @RANLIB@
97 SIGNAL_OBJECTLIST = @SIGNAL_OBJECTLIST@
98 STDIO64_OBJECTLIST = @STDIO64_OBJECTLIST@
99 STRIP = @STRIP@
100 SYSCALL_OBJECTLIST = @SYSCALL_OBJECTLIST@
101 SYS_MACH_OBJECTLIST = @SYS_MACH_OBJECTLIST@
102 SYS_OBJECTLIST = @SYS_OBJECTLIST@
103 UNIX_OBJECTLIST = @UNIX_OBJECTLIST@
104 VERSION = @VERSION@
105 aext = @aext@
106 libc_cv_array_aliasing = @libc_cv_array_aliasing@
107 libc_cv_initfinit_array = @libc_cv_initfinit_array@
108 libm_machine_dir = @libm_machine_dir@
109 machine_dir = @machine_dir@
110 newlib_basedir = @newlib_basedir@
111 oext = @oext@
112 sys_dir = @sys_dir@
113
114 AUTOMAKE_OPTIONS = cygnus dejagnu
115
116 # Multilib support variables.
117 MULTISRCTOP = 
118 MULTIBUILDTOP = 
119 MULTIDIRS = 
120 MULTISUBDIR = 
121 MULTIDO = true
122 MULTICLEAN = true
123
124 LIBTOOL_VERSION_INFO = 0:0:0
125 @NEWLIB_HW_FP_TRUE@MATHDIR = mathfp
126 @NEWLIB_HW_FP_FALSE@MATHDIR = math
127
128 # Work around what appears to be a GNU make bug handling MAKEFLAGS
129 # values defined in terms of make variables, as is the case for CC and
130 # friends when we are called from the top level Makefile.
131 AM_MAKEFLAGS =          "AR_FLAGS=$(AR_FLAGS)"  "CC_FOR_BUILD=$(CC_FOR_BUILD)"  "CFLAGS=$(CFLAGS)"      "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)"  "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)"        "LDFLAGS=$(LDFLAGS)"    "LIBCFLAGS=$(LIBCFLAGS)"        "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)"  "MAKE=$(MAKE)"  "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"         "PICFLAG=$(PICFLAG)"    "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)"      "SHELL=$(SHELL)"        "EXPECT=$(EXPECT)"      "RUNTEST=$(RUNTEST)"    "RUNTESTFLAGS=$(RUNTESTFLAGS)"  "exec_prefix=$(exec_prefix)"    "infodir=$(infodir)"    "libdir=$(libdir)"      "prefix=$(prefix)"      "tooldir=$(tooldir)"    "top_toollibdir=$(toollibdir)"  "AR=$(AR)"      "AS=$(AS)"      "CC=$(CC_FOR_NEWLIB)"   "LD=$(LD)"      "LIBCFLAGS=$(LIBCFLAGS)"        "NM=$(NM)"      "PICFLAG=$(PICFLAG)"    "RANLIB=$(RANLIB)"      "DESTDIR=$(DESTDIR)"
132
133
134 FLAGS_TO_PASS = $(AM_MAKEFLAGS)
135 @HAVE_DOC_TRUE@DOCDIR = doc
136 @HAVE_DOC_FALSE@DOCDIR = 
137
138 SUBDIRS = libc libm     $(DOCDIR) . $(EXTRA_DIRS)
139
140
141 tooldir = $(exec_prefix)/$(host_alias)
142 toollibdir = $(tooldir)/lib$(MULTISUBDIR)
143
144 AR_FLAGS = rc
145
146 @USE_LIBTOOL_TRUE@toollib_LTLIBRARIES = libm.la         libc.la
147 @USE_LIBTOOL_FALSE@toollib_LIBRARIES = libm.a   libc.a
148
149 noinst_DATA = stmp-targ-include
150
151 toollib_DATA = $(CRT0) $(CRT1)
152
153 # The functions ldexp, frexp and modf are traditionally supplied in
154 # both libc.a and libm.a.  We build them in libm.a and copy them over,
155 # along with some required supporting routines.
156 MATHOBJS_IN_LIBC =      s_isinf.$(oext) sf_isinf.$(oext)        s_isnan.$(oext) sf_isnan.$(oext)        s_nan.$(oext) sf_nan.$(oext)    s_ldexp.$(oext) sf_ldexp.$(oext)        s_frexp.$(oext) sf_frexp.$(oext)        s_modf.$(oext)  sf_modf.$(oext) s_scalbn.$(oext)        sf_scalbn.$(oext)       s_finite.$(oext) sf_finite.$(oext)      s_copysign.$(oext) sf_copysign.$(oext)  s_infconst.$(oext)
157
158
159 LIBC_OBJECTLISTS =      $(POSIX_OBJECTLIST)     $(SIGNAL_OBJECTLIST)    $(SYSCALL_OBJECTLIST)   $(UNIX_OBJECTLIST)      $(STDIO64_OBJECTLIST)   libc/argz/objectlist.awk.in     libc/stdlib/objectlist.awk.in   libc/time/objectlist.awk.in     libc/ctype/objectlist.awk.in    libc/search/objectlist.awk.in   libc/string/objectlist.awk.in   libc/locale/objectlist.awk.in   libc/misc/objectlist.awk.in     libc/reent/objectlist.awk.in    libc/errno/objectlist.awk.in    libc/stdio/objectlist.awk.in    $(MACHINE_OBJECTLIST)   $(SYS_OBJECTLIST)       $(SYS_MACH_OBJECTLIST)
160
161
162 LIBM_OBJECTLISTS =      libm/$(MATHDIR)/objectlist.awk.in       libm/common/objectlist.awk.in   $(LIBM_MACHINE_OBJECTLIST)
163
164
165 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
166
167 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
168
169 @USE_LIBTOOL_TRUE@libm_la_SOURCES = 
170 @USE_LIBTOOL_TRUE@libm_la_DEPENDENCIES = libm-libtool-objectlist
171
172 @USE_LIBTOOL_TRUE@libc_la_SOURCES = 
173 @USE_LIBTOOL_TRUE@libc_la_DEPENDENCIES = libc-libtool-objectlist
174
175 CLEANFILES = targ-include stmp-targ-include
176
177 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
178
179 MAKEOVERRIDES = 
180
181 # dejagnu support
182
183 RUNTESTFLAGS = 
184 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
185 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
186 CONFIG_HEADER = newlib.h
187 CONFIG_CLEAN_FILES = 
188 LIBRARIES =  $(toollib_LIBRARIES)
189
190
191 DEFS = @DEFS@ -I. -I$(srcdir) -I.
192 CPPFLAGS = @CPPFLAGS@
193 LIBS = @LIBS@
194 libm_a_LIBADD = 
195 libm_a_SOURCES = libm.a.c
196 libm_a_OBJECTS =  libm.a.$(OBJEXT)
197 libc_a_LIBADD = 
198 libc_a_SOURCES = libc.a.c
199 libc_a_OBJECTS =  libc.a.$(OBJEXT)
200 LTLIBRARIES =  $(toollib_LTLIBRARIES)
201
202 libm_la_LIBADD = 
203 @USE_LIBTOOL_TRUE@libm_la_OBJECTS = 
204 libc_la_LIBADD = 
205 @USE_LIBTOOL_TRUE@libc_la_OBJECTS = 
206 CFLAGS = @CFLAGS@
207 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
208 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
209 CCLD = $(CC)
210 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
211 DATA =  $(noinst_DATA) $(toollib_DATA)
212
213 DIST_COMMON =  README ./stamp-h.in ChangeLog Makefile.am Makefile.in \
214 NEWS acinclude.m4 aclocal.m4 configure configure.in newlib.hin
215
216
217 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
218
219 TAR = gtar
220 GZIP_ENV = --best
221 DIST_SUBDIRS =  libc libm doc . @EXTRA_DIRS@
222 EXPECT = `if test -f $(top_builddir)/../expect/expect; then echo $(top_builddir)/../expect/expect; else echo expect; fi`
223 RUNTEST = `if test -f $(top_srcdir)/../dejagnu/runtest; then echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi`
224 SOURCES = libm.a.c libc.a.c $(libm_la_SOURCES) $(libc_la_SOURCES)
225 OBJECTS = libm.a.$(OBJEXT) libc.a.$(OBJEXT) $(libm_la_OBJECTS) $(libc_la_OBJECTS)
226
227 all: all-redirect
228 .SUFFIXES:
229 .SUFFIXES: .S .c .lo .o .obj .s
230 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
231         cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
232
233 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
234         cd $(top_builddir) \
235           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
236
237 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  acinclude.m4
238         cd $(srcdir) && $(ACLOCAL)
239
240 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
241         $(SHELL) ./config.status --recheck
242 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
243         cd $(srcdir) && $(AUTOCONF)
244
245 newlib.h: stamp-h
246         @if test ! -f $@; then \
247                 rm -f stamp-h; \
248                 $(MAKE) stamp-h; \
249         else :; fi
250 stamp-h: $(srcdir)/newlib.hin $(top_builddir)/config.status
251         cd $(top_builddir) \
252           && CONFIG_FILES= CONFIG_HEADERS=newlib.h:newlib.hin \
253              $(SHELL) ./config.status
254         @echo timestamp > stamp-h 2> /dev/null
255 $(srcdir)/newlib.hin: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
256         @if test ! -f $@; then \
257                 rm -f $(srcdir)/stamp-h.in; \
258                 $(MAKE) $(srcdir)/stamp-h.in; \
259         else :; fi
260 $(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 
261         cd $(top_srcdir) && $(AUTOHEADER)
262         @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
263
264 mostlyclean-hdr:
265
266 clean-hdr:
267
268 distclean-hdr:
269         -rm -f newlib.h
270
271 maintainer-clean-hdr:
272
273 mostlyclean-toollibLIBRARIES:
274
275 clean-toollibLIBRARIES:
276         -test -z "$(toollib_LIBRARIES)" || rm -f $(toollib_LIBRARIES)
277
278 distclean-toollibLIBRARIES:
279
280 maintainer-clean-toollibLIBRARIES:
281
282 install-toollibLIBRARIES: $(toollib_LIBRARIES)
283         @$(NORMAL_INSTALL)
284         $(mkinstalldirs) $(DESTDIR)$(toollibdir)
285         @list='$(toollib_LIBRARIES)'; for p in $$list; do \
286           if test -f $$p; then \
287             echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \
288             $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \
289           else :; fi; \
290         done
291         @$(POST_INSTALL)
292         @list='$(toollib_LIBRARIES)'; for p in $$list; do \
293           if test -f $$p; then \
294             echo " $(RANLIB) $(DESTDIR)$(toollibdir)/$$p"; \
295             $(RANLIB) $(DESTDIR)$(toollibdir)/$$p; \
296           else :; fi; \
297         done
298
299 uninstall-toollibLIBRARIES:
300         @$(NORMAL_UNINSTALL)
301         list='$(toollib_LIBRARIES)'; for p in $$list; do \
302           rm -f $(DESTDIR)$(toollibdir)/$$p; \
303         done
304
305 .c.o:
306         $(COMPILE) -c $<
307
308 # FIXME: We should only use cygpath when building on Windows,
309 # and only if it is available.
310 .c.obj:
311         $(COMPILE) -c `cygpath -w $<`
312
313 .s.o:
314         $(COMPILE) -c $<
315
316 .S.o:
317         $(COMPILE) -c $<
318
319 mostlyclean-compile:
320         -rm -f *.o core *.core
321         -rm -f *.$(OBJEXT)
322
323 clean-compile:
324
325 distclean-compile:
326         -rm -f *.tab.c
327
328 maintainer-clean-compile:
329
330 .c.lo:
331         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
332
333 .s.lo:
334         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
335
336 .S.lo:
337         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
338
339 mostlyclean-libtool:
340         -rm -f *.lo
341
342 clean-libtool:
343         -rm -rf .libs _libs
344
345 distclean-libtool:
346
347 maintainer-clean-libtool:
348
349 mostlyclean-toollibLTLIBRARIES:
350
351 clean-toollibLTLIBRARIES:
352         -test -z "$(toollib_LTLIBRARIES)" || rm -f $(toollib_LTLIBRARIES)
353
354 distclean-toollibLTLIBRARIES:
355
356 maintainer-clean-toollibLTLIBRARIES:
357
358 install-toollibLTLIBRARIES: $(toollib_LTLIBRARIES)
359         @$(NORMAL_INSTALL)
360         $(mkinstalldirs) $(DESTDIR)$(toollibdir)
361         @list='$(toollib_LTLIBRARIES)'; for p in $$list; do \
362           if test -f $$p; then \
363             echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(toollibdir)/$$p"; \
364             $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(toollibdir)/$$p; \
365           else :; fi; \
366         done
367
368 uninstall-toollibLTLIBRARIES:
369         @$(NORMAL_UNINSTALL)
370         list='$(toollib_LTLIBRARIES)'; for p in $$list; do \
371           $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(toollibdir)/$$p; \
372         done
373
374 libm.la: $(libm_la_OBJECTS) $(libm_la_DEPENDENCIES)
375         $(LINK) -rpath $(toollibdir) $(libm_la_LDFLAGS) $(libm_la_OBJECTS) $(libm_la_LIBADD) $(LIBS)
376
377 libc.la: $(libc_la_OBJECTS) $(libc_la_DEPENDENCIES)
378         $(LINK) -rpath $(toollibdir) $(libc_la_LDFLAGS) $(libc_la_OBJECTS) $(libc_la_LIBADD) $(LIBS)
379
380 install-toollibDATA: $(toollib_DATA)
381         @$(NORMAL_INSTALL)
382         $(mkinstalldirs) $(DESTDIR)$(toollibdir)
383         @list='$(toollib_DATA)'; for p in $$list; do \
384           if test -f $(srcdir)/$$p; then \
385             echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p"; \
386             $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(toollibdir)/$$p; \
387           else if test -f $$p; then \
388             echo " $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p"; \
389             $(INSTALL_DATA) $$p $(DESTDIR)$(toollibdir)/$$p; \
390           fi; fi; \
391         done
392
393 uninstall-toollibDATA:
394         @$(NORMAL_UNINSTALL)
395         list='$(toollib_DATA)'; for p in $$list; do \
396           rm -f $(DESTDIR)$(toollibdir)/$$p; \
397         done
398
399 # This directory's subdirectories are mostly independent; you can cd
400 # into them and run `make' without going through this Makefile.
401 # To change the values of `make' variables: instead of editing Makefiles,
402 # (1) if the variable is set in `config.status', edit `config.status'
403 #     (which will cause the Makefiles to be regenerated when you run `make');
404 # (2) otherwise, pass the desired values on the `make' command line.
405
406 @SET_MAKE@
407
408 all-recursive install-data-recursive install-exec-recursive \
409 installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
410 check-recursive installcheck-recursive info-recursive dvi-recursive:
411         @set fnord $(MAKEFLAGS); amf=$$2; \
412         dot_seen=no; \
413         target=`echo $@ | sed s/-recursive//`; \
414         list='$(SUBDIRS)'; for subdir in $$list; do \
415           echo "Making $$target in $$subdir"; \
416           if test "$$subdir" = "."; then \
417             dot_seen=yes; \
418             local_target="$$target-am"; \
419           else \
420             local_target="$$target"; \
421           fi; \
422           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
423            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
424         done; \
425         if test "$$dot_seen" = "no"; then \
426           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
427         fi; test -z "$$fail"
428
429 mostlyclean-recursive clean-recursive distclean-recursive \
430 maintainer-clean-recursive:
431         @set fnord $(MAKEFLAGS); amf=$$2; \
432         dot_seen=no; \
433         rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
434           rev="$$subdir $$rev"; \
435           test "$$subdir" != "." || dot_seen=yes; \
436         done; \
437         test "$$dot_seen" = "no" && rev=". $$rev"; \
438         target=`echo $@ | sed s/-recursive//`; \
439         for subdir in $$rev; do \
440           echo "Making $$target in $$subdir"; \
441           if test "$$subdir" = "."; then \
442             local_target="$$target-am"; \
443           else \
444             local_target="$$target"; \
445           fi; \
446           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
447            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
448         done && test -z "$$fail"
449 tags-recursive:
450         list='$(SUBDIRS)'; for subdir in $$list; do \
451           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
452         done
453
454 tags: TAGS
455
456 ID: $(HEADERS) $(SOURCES) $(LISP)
457         list='$(SOURCES) $(HEADERS)'; \
458         unique=`for i in $$list; do echo $$i; done | \
459           awk '    { files[$$0] = 1; } \
460                END { for (i in files) print i; }'`; \
461         here=`pwd` && cd $(srcdir) \
462           && mkid -f$$here/ID $$unique $(LISP)
463
464 TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) $(LISP)
465         tags=; \
466         here=`pwd`; \
467         list='$(SUBDIRS)'; for subdir in $$list; do \
468    if test "$$subdir" = .; then :; else \
469             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
470    fi; \
471         done; \
472         list='$(SOURCES) $(HEADERS)'; \
473         unique=`for i in $$list; do echo $$i; done | \
474           awk '    { files[$$0] = 1; } \
475                END { for (i in files) print i; }'`; \
476         test -z "$(ETAGS_ARGS)newlib.hin$$unique$(LISP)$$tags" \
477           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags newlib.hin $$unique $(LISP) -o $$here/TAGS)
478
479 mostlyclean-tags:
480
481 clean-tags:
482
483 distclean-tags:
484         -rm -f TAGS ID
485
486 maintainer-clean-tags:
487
488 distdir = $(PACKAGE)-$(VERSION)
489 top_distdir = $(distdir)
490
491 # This target untars the dist file and tries a VPATH configuration.  Then
492 # it guarantees that the distribution is self-contained by making another
493 # tarfile.
494 distcheck: dist
495         -rm -rf $(distdir)
496         GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
497         mkdir $(distdir)/=build
498         mkdir $(distdir)/=inst
499         dc_install_base=`cd $(distdir)/=inst && pwd`; \
500         cd $(distdir)/=build \
501           && ../configure --srcdir=.. --prefix=$$dc_install_base \
502           && $(MAKE) $(AM_MAKEFLAGS) \
503           && $(MAKE) $(AM_MAKEFLAGS) dvi \
504           && $(MAKE) $(AM_MAKEFLAGS) check \
505           && $(MAKE) $(AM_MAKEFLAGS) install \
506           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
507           && $(MAKE) $(AM_MAKEFLAGS) dist
508         -rm -rf $(distdir)
509         @banner="$(distdir).tar.gz is ready for distribution"; \
510         dashes=`echo "$$banner" | sed s/./=/g`; \
511         echo "$$dashes"; \
512         echo "$$banner"; \
513         echo "$$dashes"
514 dist: distdir
515         -chmod -R a+r $(distdir)
516         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
517         -rm -rf $(distdir)
518 dist-all: distdir
519         -chmod -R a+r $(distdir)
520         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
521         -rm -rf $(distdir)
522 distdir: $(DISTFILES)
523         -rm -rf $(distdir)
524         mkdir $(distdir)
525         -chmod 777 $(distdir)
526         @for file in $(DISTFILES); do \
527           if test -f $$file; then d=.; else d=$(srcdir); fi; \
528           if test -d $$d/$$file; then \
529             cp -pr $$d/$$file $(distdir)/$$file; \
530           else \
531             test -f $(distdir)/$$file \
532             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
533             || cp -p $$d/$$file $(distdir)/$$file || :; \
534           fi; \
535         done
536         for subdir in $(DIST_SUBDIRS); do \
537           if test "$$subdir" = .; then :; else \
538             test -d $(distdir)/$$subdir \
539             || mkdir $(distdir)/$$subdir \
540             || exit 1; \
541             chmod 777 $(distdir)/$$subdir; \
542             (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
543               || exit 1; \
544           fi; \
545         done
546
547 DEJATOOL = $(PACKAGE)
548
549 RUNTESTDEFAULTFLAGS = --tool $(DEJATOOL) --srcdir $$srcdir
550 info-am:
551 info: info-recursive
552 dvi-am:
553 dvi: dvi-recursive
554 check-am:
555         $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU
556 check: check-recursive
557 installcheck-am:
558 installcheck: installcheck-recursive
559 install-info-am: 
560 install-info: install-info-recursive
561 all-recursive-am: newlib.h
562         $(MAKE) $(AM_MAKEFLAGS) all-recursive
563
564 install-exec-am:
565 install-exec: install-exec-recursive
566
567 install-data-am: install-toollibLIBRARIES install-toollibLTLIBRARIES \
568                 install-toollibDATA install-data-local
569 install-data: install-data-recursive
570
571 install-am: all-am
572         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
573 install: install-recursive
574 uninstall-am: uninstall-toollibLIBRARIES uninstall-toollibLTLIBRARIES \
575                 uninstall-toollibDATA
576 uninstall: uninstall-recursive
577 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h
578 all-redirect: all-recursive-am
579 install-strip:
580         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
581 installdirs: installdirs-recursive
582 installdirs-am:
583         $(mkinstalldirs)  $(DESTDIR)$(toollibdir) $(DESTDIR)$(toollibdir) \
584                 $(DESTDIR)$(toollibdir)
585
586
587 mostlyclean-generic:
588
589 clean-generic:
590         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
591
592 distclean-generic:
593         -rm -f Makefile $(CONFIG_CLEAN_FILES)
594         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
595
596 maintainer-clean-generic:
597 mostlyclean-am:  mostlyclean-hdr mostlyclean-toollibLIBRARIES \
598                 mostlyclean-compile mostlyclean-libtool \
599                 mostlyclean-toollibLTLIBRARIES mostlyclean-tags \
600                 mostlyclean-generic
601
602 mostlyclean: mostlyclean-recursive
603
604 clean-am:  clean-hdr clean-toollibLIBRARIES clean-compile clean-libtool \
605                 clean-toollibLTLIBRARIES clean-tags clean-generic \
606                 mostlyclean-am
607
608 clean: clean-recursive
609
610 distclean-am:  distclean-hdr distclean-toollibLIBRARIES \
611                 distclean-compile distclean-libtool \
612                 distclean-toollibLTLIBRARIES distclean-tags \
613                 distclean-generic clean-am
614         -rm -f libtool
615
616 distclean: distclean-recursive
617         -rm -f config.status
618
619 maintainer-clean-am:  maintainer-clean-hdr \
620                 maintainer-clean-toollibLIBRARIES \
621                 maintainer-clean-compile maintainer-clean-libtool \
622                 maintainer-clean-toollibLTLIBRARIES \
623                 maintainer-clean-tags maintainer-clean-generic \
624                 distclean-am
625         @echo "This command is intended for maintainers to use;"
626         @echo "it deletes files that may require special tools to rebuild."
627
628 maintainer-clean: maintainer-clean-recursive
629         -rm -f config.status
630
631 .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
632 mostlyclean-toollibLIBRARIES distclean-toollibLIBRARIES \
633 clean-toollibLIBRARIES maintainer-clean-toollibLIBRARIES \
634 uninstall-toollibLIBRARIES install-toollibLIBRARIES mostlyclean-compile \
635 distclean-compile clean-compile maintainer-clean-compile \
636 mostlyclean-libtool distclean-libtool clean-libtool \
637 maintainer-clean-libtool mostlyclean-toollibLTLIBRARIES \
638 distclean-toollibLTLIBRARIES clean-toollibLTLIBRARIES \
639 maintainer-clean-toollibLTLIBRARIES uninstall-toollibLTLIBRARIES \
640 install-toollibLTLIBRARIES uninstall-toollibDATA install-toollibDATA \
641 install-data-recursive uninstall-data-recursive install-exec-recursive \
642 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
643 all-recursive check-recursive installcheck-recursive info-recursive \
644 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
645 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
646 distclean-tags clean-tags maintainer-clean-tags distdir check-DEJAGNU \
647 info-am info dvi-am dvi check check-am installcheck-am installcheck \
648 install-info-am install-info all-recursive-am install-exec-am \
649 install-exec install-data-local install-data-am install-data install-am \
650 install uninstall-am uninstall all-redirect all-am all installdirs-am \
651 installdirs mostlyclean-generic distclean-generic clean-generic \
652 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
653
654
655 # objects listed later in LIBM_OBJECTLISTS will override those listed earlier
656 @USE_LIBTOOL_TRUE@libm-libtool-objectlist: $(LIBM_OBJECTLISTS)
657 @USE_LIBTOOL_TRUE@      cat $(LIBM_OBJECTLISTS) | $(AWK) '{ libm[$$1] = $$2 }; END { for (x in libm) printf ("%s\n", libm[x]) }' > $@
658
659 # objects listed later in LIBM_OBJECTLISTS and LIBC_OBJECTLISTS will override those listed earlier
660 @USE_LIBTOOL_TRUE@libc-libtool-objectlist: $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS)
661 @USE_LIBTOOL_TRUE@      cat $(LIBM_OBJECTLISTS) $(LIBC_OBJECTLISTS) |  $(AWK) '{ libc[$$1] = $$2 }; END { for (x in libc) printf ("%s\n", libc[x]) }' > $@
662
663 @USE_LIBTOOL_FALSE@libc.a: libc/libc.a libm.a
664 @USE_LIBTOOL_FALSE@     rm -rf libc.a libg.a tmp
665 @USE_LIBTOOL_FALSE@     mkdir tmp
666 @USE_LIBTOOL_FALSE@     cd tmp; \
667 @USE_LIBTOOL_FALSE@      $(AR) x ../libm.a $(MATHOBJS_IN_LIBC) ; \
668 @USE_LIBTOOL_FALSE@      $(AR) x ../libc/libc.a ; \
669 @USE_LIBTOOL_FALSE@      $(AR) $(AR_FLAGS) ../$@ *.o
670 @USE_LIBTOOL_FALSE@     $(RANLIB) libc.a
671 @USE_LIBTOOL_FALSE@     ln libc.a libg.a >/dev/null 2>/dev/null || cp libc.a libg.a
672 @USE_LIBTOOL_FALSE@     rm -rf tmp
673
674 @USE_LIBTOOL_FALSE@libc/libc.a: ; @true
675
676 @USE_LIBTOOL_FALSE@libm.a: libm/libm.a
677 @USE_LIBTOOL_FALSE@     rm -f $@
678 @USE_LIBTOOL_FALSE@     ln libm/libm.a $@ >/dev/null 2>/dev/null || cp libm/libm.a $@
679
680 @USE_LIBTOOL_FALSE@libm/libm.a: ; @true
681
682 crt0.o: $(CRT0_DIR)$(CRT0)
683         rm -f $@
684         ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \
685          || cp $(CRT0_DIR)$(CRT0) $@
686
687 $(CRT0_DIR)$(CRT0): ; @true
688
689 crt1.o: $(CRT1_DIR)$(CRT1)
690         rm -f $@
691         ln $(CRT0_DIR)$(CRT0) $@ >/dev/null 2>/dev/null \
692          || cp $(CRT0_DIR)$(CRT0) $@
693
694 $(CRT1_DIR)$(CRT1): ; @true
695
696 all-recursive: stmp-targ-include
697
698 # The targ-include directory just holds the includes files for the
699 # particular system and machine we have been configured for.  It is
700 # used while building.
701 stmp-targ-include: config.status
702         -rm -rf targ-include stmp-targ-include
703         mkdir targ-include targ-include/sys targ-include/machine targ-include/bits
704         cp newlib.h targ-include/newlib.h
705         -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
706             if [ -f $$i ]; then \
707               cp $$i targ-include/machine/`basename $$i`; \
708             else true; fi ; \
709           done
710         -for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
711             if [ -f $$i ]; then \
712               cp $$i targ-include/sys/`basename $$i`; \
713             else true; fi ; \
714           done
715         -for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
716             if [ -f $$i ]; then \
717               cp $$i targ-include/`basename $$i`; \
718             else true; fi ; \
719           done
720         -for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
721             if [ -f $$i ]; then \
722               cp $$i targ-include/`basename $$i`; \
723             else true; fi ; \
724           done
725         -for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
726             if [ -f $$i ]; then \
727               cp $$i targ-include/sys/`basename $$i`; \
728             else true; fi ; \
729           done
730         -for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
731             if [ -f $$i ]; then \
732               cp $$i targ-include/bits/`basename $$i`; \
733             else true; fi ; \
734           done
735         -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
736             if [ -f $$i ]; then \
737               cp $$i targ-include/machine/`basename $$i`; \
738             else true; fi ; \
739           done
740         -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/*.h; do \
741             if [ -f $$i ]; then \
742               cp $$i targ-include/machine/`basename $$i`; \
743             else true; fi ; \
744           done
745         -for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
746             if [ -f $$i ]; then \
747               cp $$i targ-include/machine/`basename $$i`; \
748             else true; fi ; \
749           done
750         touch $@
751
752 install-data-local:     install-toollibLIBRARIES
753 @USE_LIBTOOL_FALSE@     rm -f $(DESTDIR)$(toollibdir)/libg.a
754 @USE_LIBTOOL_FALSE@     ln $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a >/dev/null 2>/dev/null || cp $(DESTDIR)$(toollibdir)/libc.a $(DESTDIR)$(toollibdir)/libg.a
755         $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE)
756         -if [ -z "$(MULTISUBDIR)" ]; then \
757           $(mkinstalldirs) $(DESTDIR)$(tooldir)/include; \
758           for i in $(srcdir)/libc/include/*.h; do \
759            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
760           done; \
761           $(INSTALL_DATA) newlib.h $(DESTDIR)$(tooldir)/include/newlib.h; \
762           $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \
763           for i in $(srcdir)/libc/include/machine/*.h; do \
764            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
765           done; \
766           for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \
767             if [ -f $$i ]; then \
768              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
769             else true; fi ; \
770           done; \
771           $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/sys; \
772           for i in $(srcdir)/libc/include/sys/*.h; do \
773            $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
774           done; \
775           for i in $(srcdir)/libc/machine/$(machine_dir)/sys/*.h; do \
776             if [ -f $$i ]; then \
777              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
778             else true; fi ; \
779           done ; \
780           for i in $(srcdir)/libc/machine/$(machine_dir)/include/*.h; do \
781             if [ -f $$i ]; then \
782              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
783             else true; fi ; \
784           done ; \
785           for i in $(srcdir)/libc/sys/$(sys_dir)/sys/*.h; do \
786             if [ -f $$i ]; then \
787              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/sys/`basename $$i`; \
788             else true; fi ; \
789           done ; \
790           $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/bits; \
791           for i in $(srcdir)/libc/sys/$(sys_dir)/bits/*.h; do \
792             if [ -f $$i ]; then \
793              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/bits/`basename $$i`; \
794             else true; fi ; \
795           done ; \
796           for i in $(srcdir)/libc/sys/$(sys_dir)/machine/*.h; do \
797             if [ -f $$i ]; then \
798              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
799             else true; fi ; \
800           done ; \
801           for i in $(srcdir)/libc/sys/$(sys_dir)/include/*.h; do \
802             if [ -f $$i ]; then \
803              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \
804             else true; fi ; \
805           done ; \
806           for i in $(srcdir)/libc/sys/$(sys_dir)/machine/$(machine_dir)/include/*.h; do \
807             if [ -f $$i ]; then \
808              $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \
809             else true; fi ; \
810           done ; \
811         else true; fi
812
813 # Force makedoc to be built before building info files.
814 info-recursive: doc/makedoc
815 dvi-recursive: doc/makedoc
816 doc/makedoc:
817         cd doc && $(MAKE) all
818
819 # Multilib support.
820 .PHONY: all-multi check-multi mostlyclean-multi clean-multi distclean-multi \
821         maintainer-clean-multi
822
823 all-recursive: all-multi
824 check-recursive: check-multi
825 mostlyclean-recursive: mostlyclean-multi
826 clean-recursive: clean-multi
827 distclean-recursive: distclean-multi
828 maintainer-clean-recursive: maintainer-clean-multi
829
830 # The $(MAKE) comments below are to enable parallel building.
831 all-multi:
832         $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE)
833 check-multi:
834         $(MULTIDO) $(AM_MAKEFLAGS) DO=check multi-do # $(MAKE)
835 mostlyclean-multi:
836         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE)
837 clean-multi:
838         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE)
839 distclean-multi:
840         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE)
841 maintainer-clean-multi:
842         $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE)
843
844 site.exp: Makefile
845         @echo 'Making a new site.exp file...'
846         @test ! -f site.bak || rm -f site.bak
847         @echo '## these variables are automatically generated by make ##' > $@-t
848         @echo '# Do not edit here.  If you wish to override these values' >> $@-t
849         @echo '# edit the last section' >> $@-t
850         @echo 'set tool $(DEJATOOL)' >> $@-t
851         @echo 'set tool_version $(VERSION)' >> $@-t
852         @echo 'set srcdir $(srcdir)/testsuite' >> $@-t
853         @echo 'set objdir' `pwd` >> $@-t
854         @echo 'set tmpdir' `pwd`/testsuite >> $@-t
855         @echo 'set multibuildtop ./$(MULTIBUILDTOP)' >> $@-t
856         @echo 'set host_alias $(build_alias)' >> $@-t
857         @echo 'set host_triplet $(build_triplet)' >> $@-t
858         @echo 'set target_alias $(host_alias)' >> $@-t
859         @echo 'set target_triplet $(host_triplet)' >> $@-t
860         @echo '## All variables above are generated by configure. Do Not Edit ##' >> $@-t
861         @test ! -f site.exp || sed '1,/^## All variables above are.*##/ d' site.exp >> $@-t
862         @test ! -f site.exp || mv site.exp site.bak
863         @mv $@-t site.exp
864
865 check-DEJAGNU: site.exp
866         @if [ -d testsuite ] ; then \
867           true ; \
868         else \
869           mkdir testsuite ; \
870         fi
871         @rm -f testsuite/site.exp
872         @cp site.exp testsuite/site.exp
873         @rootme=`pwd` ; \
874         export rootme ; \
875         srcdir=`cd ${srcdir}; pwd` ; \
876         export srcdir ; \
877         EXPECT=`if [ -f $${rootme}/${MULTIBUILDTOP}../../expect/expect ] ; then \
878                   echo $${rootme}/${MULTIBUILDTOP}../../expect/expect ; \
879                 else \
880                   echo expect ; \
881                 fi` ; \
882         export EXPECT ; \
883         echo "Found expect: $${EXPECT}" ; \
884         if [ -f $(top_builddir)/$(MULTIBUILDTOP)../../expect/expect ] ; then \
885           TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd` ; \
886           export TCL_LIBRARY ; \
887           echo "Found TCL library directory: $${TCL_LIBRARY}" ; \
888         fi ; \
889         RUNTEST=`if [ -f $${srcdir}/../dejagnu/runtest ] ; then \
890                    echo $${srcdir}/../dejagnu/runtest ; \
891                  else \
892                    echo runtest ; \
893                  fi` ; \
894         export RUNTEST ; \
895         echo "Found runtest: $${RUNTEST}" ; \
896         cd testsuite ; \
897         if $(SHELL) -c "$$RUNTEST --version" > /dev/null 2>&1 ; then \
898            $$RUNTEST --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite $(RUNTESTFLAGS) ; \
899            : ; \
900         else \
901            echo "WARNING: could not find \`runtest'" 1>&2 ; \
902         fi
903
904 # Tell versions [3.59,3.63) of GNU make to not export all variables.
905 # Otherwise a system limit (for SysV at least) may be exceeded.
906 .NOEXPORT: