OSDN Git Service

* Makefile.shared: New file.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / Makefile.in
1 # Makefile.in generated automatically by automake 1.4 from Makefile.am
2
3 # Copyright (C) 1994, 1995-8, 1999 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 host_alias = @host_alias@
61 host_triplet = @host@
62 AR = @AR@
63 AS = @AS@
64 CC = @CC@
65 CPP = @CPP@
66 CRT0 = @CRT0@
67 DLLTOOL = @DLLTOOL@
68 EXEEXT = @EXEEXT@
69 LDFLAGS = @LDFLAGS@
70 LIBC_MACHINE_LIB = @LIBC_MACHINE_LIB@
71 LIBC_POSIX_LIB = @LIBC_POSIX_LIB@
72 LIBC_SIGNAL_DEF = @LIBC_SIGNAL_DEF@
73 LIBC_SIGNAL_LIB = @LIBC_SIGNAL_LIB@
74 LIBC_SYSCALL_LIB = @LIBC_SYSCALL_LIB@
75 LIBC_SYS_LIB = @LIBC_SYS_LIB@
76 LIBC_UNIX_LIB = @LIBC_UNIX_LIB@
77 LIBTOOL = @LIBTOOL@
78 LN_S = @LN_S@
79 MAINT = @MAINT@
80 MAKEINFO = @MAKEINFO@
81 NEWLIB_CFLAGS = @NEWLIB_CFLAGS@
82 OBJDUMP = @OBJDUMP@
83 PACKAGE = @PACKAGE@
84 RANLIB = @RANLIB@
85 VERSION = @VERSION@
86 aext = @aext@
87 libm_machine_dir = @libm_machine_dir@
88 machine_dir = @machine_dir@
89 newlib_basedir = @newlib_basedir@
90 oext = @oext@
91 sys_dir = @sys_dir@
92
93 AUTOMAKE_OPTIONS = cygnus
94
95 @HAVE_POSIX_DIR_TRUE@POSIX_SUBDIR = @HAVE_POSIX_DIR_TRUE@posix
96
97 @HAVE_SIGNAL_DIR_TRUE@SIGNAL_SUBDIR = @HAVE_SIGNAL_DIR_TRUE@signal
98
99 @HAVE_SYSCALL_DIR_TRUE@SYSCALLS_SUBDIR = @HAVE_SYSCALL_DIR_TRUE@syscalls
100
101 @HAVE_UNIX_DIR_TRUE@UNIX_SUBDIR = @HAVE_UNIX_DIR_TRUE@unix
102
103 # The order of SUBDIRS is important for the integrated documentation.
104 # Do not change the order without considering the doc impact.
105 SUBDIRS = stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
106         errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
107
108
109 noinst_DATA = $(CRT0)
110
111 @USE_LIBTOOL_TRUE@noinst_LTLIBRARIES = @USE_LIBTOOL_TRUE@libc.la
112 @USE_LIBTOOL_TRUE@SUBLIBS = @USE_LIBTOOL_TRUE@\
113 @USE_LIBTOOL_TRUE@      stdlib/libstdlib.$(aext) \
114 @USE_LIBTOOL_TRUE@      ctype/libctype.$(aext) \
115 @USE_LIBTOOL_TRUE@      stdio/libstdio.$(aext) \
116 @USE_LIBTOOL_TRUE@      string/libstring.$(aext) \
117 @USE_LIBTOOL_TRUE@      $(LIBC_SIGNAL_LIB) \
118 @USE_LIBTOOL_TRUE@      time/libtime.$(aext) \
119 @USE_LIBTOOL_TRUE@      locale/liblocale.$(aext) \
120 @USE_LIBTOOL_TRUE@      $(LIBC_SYS_LIB) \
121 @USE_LIBTOOL_TRUE@      reent/libreent.$(aext) \
122 @USE_LIBTOOL_TRUE@      errno/liberrno.$(aext) \
123 @USE_LIBTOOL_TRUE@      misc/libmisc.$(aext) \
124 @USE_LIBTOOL_TRUE@      $(LIBC_MACHINE_LIB) \
125 @USE_LIBTOOL_TRUE@      $(LIBC_UNIX_LIB) \
126 @USE_LIBTOOL_TRUE@      $(LIBC_POSIX_LIB) \
127 @USE_LIBTOOL_TRUE@      $(LIBC_SYSCALL_LIB)
128 @USE_LIBTOOL_FALSE@SUBLIBS = @USE_LIBTOOL_FALSE@\
129 @USE_LIBTOOL_FALSE@     stdlib/lib.$(aext) \
130 @USE_LIBTOOL_FALSE@     ctype/lib.$(aext) \
131 @USE_LIBTOOL_FALSE@     stdio/lib.$(aext) \
132 @USE_LIBTOOL_FALSE@     string/lib.$(aext) \
133 @USE_LIBTOOL_FALSE@     $(LIBC_SIGNAL_LIB) \
134 @USE_LIBTOOL_FALSE@     time/lib.$(aext) \
135 @USE_LIBTOOL_FALSE@     locale/lib.$(aext) \
136 @USE_LIBTOOL_FALSE@     $(LIBC_SYS_LIB) \
137 @USE_LIBTOOL_FALSE@     reent/lib.$(aext) \
138 @USE_LIBTOOL_FALSE@     errno/lib.$(aext) \
139 @USE_LIBTOOL_FALSE@     misc/lib.$(aext) \
140 @USE_LIBTOOL_FALSE@     $(LIBC_MACHINE_LIB) \
141 @USE_LIBTOOL_FALSE@     $(LIBC_UNIX_LIB) \
142 @USE_LIBTOOL_FALSE@     $(LIBC_POSIX_LIB) \
143 @USE_LIBTOOL_FALSE@     $(LIBC_SYSCALL_LIB)
144 @USE_LIBTOOL_FALSE@noinst_LIBRARIES = @USE_LIBTOOL_FALSE@libc.a
145
146 libc_la_LDFLAGS = -Xcompiler -nostdlib
147
148 @USE_LIBTOOL_TRUE@libc_la_SOURCES = 
149 @USE_LIBTOOL_TRUE@libc_la_LIBADD = @USE_LIBTOOL_TRUE@$(SUBLIBS)
150
151 info_TEXINFOS = libc.texinfo
152
153 # This is a list of the stmp-def files in each subdirectory which
154 # builds .def files.  We don't list subdirectories which don't build
155 # .def files; if the list of subdirectories changes, we must change
156 # this as well.
157 SUBDEFS = \
158         stdlib/stmp-def \
159         ctype/stmp-def \
160         stdio/stmp-def \
161         string/stmp-def \
162         $(LIBC_SIGNAL_DEF) \
163         time/stmp-def \
164         locale/stmp-def \
165         reent/stmp-def \
166         misc/stmp-def
167
168
169 CLEANFILES = $(CRT0) \
170         sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
171
172
173 ACLOCAL_AMFLAGS = -I ..
174 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
175 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
176 mkinstalldirs = $(SHELL) $(top_srcdir)/../../mkinstalldirs
177 CONFIG_CLEAN_FILES = 
178 LIBRARIES =  $(noinst_LIBRARIES)
179
180
181 DEFS = @DEFS@ -I. -I$(srcdir) 
182 CPPFLAGS = @CPPFLAGS@
183 LIBS = @LIBS@
184 libc_a_LIBADD = 
185 libc_a_SOURCES = libc.a.c
186 libc_a_OBJECTS =  libc.a.o
187 LTLIBRARIES =  $(noinst_LTLIBRARIES)
188
189 @USE_LIBTOOL_TRUE@libc_la_DEPENDENCIES =  stdlib/libstdlib.$(aext) \
190 @USE_LIBTOOL_TRUE@ctype/libctype.$(aext) stdio/libstdio.$(aext) \
191 @USE_LIBTOOL_TRUE@string/libstring.$(aext) time/libtime.$(aext) \
192 @USE_LIBTOOL_TRUE@locale/liblocale.$(aext) reent/libreent.$(aext) \
193 @USE_LIBTOOL_TRUE@errno/liberrno.$(aext) misc/libmisc.$(aext)
194 @USE_LIBTOOL_TRUE@libc_la_OBJECTS = 
195 CFLAGS = @CFLAGS@
196 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
197 LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
198 CCLD = $(CC)
199 LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
200 TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then echo $(top_srcdir)/../texinfo/util/texi2dvi; else echo texi2dvi; fi`
201 TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
202 INFO_DEPS = libc.info
203 DVIS = libc.dvi
204 TEXINFOS = libc.texinfo
205 DATA =  $(noinst_DATA)
206
207 DIST_COMMON =  Makefile.am Makefile.in aclocal.m4 configure configure.in
208
209
210 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
211
212 TAR = gtar
213 GZIP_ENV = --best
214 DIST_SUBDIRS =  stdlib ctype stdio string signal time locale sys reent \
215 errno misc machine unix posix syscalls .
216 SOURCES = libc.a.c $(libc_la_SOURCES)
217 OBJECTS = libc.a.o $(libc_la_OBJECTS)
218
219 all: all-redirect
220 .SUFFIXES:
221 .SUFFIXES: .S .c .dvi .info .lo .o .ps .s .texi .texinfo .txi
222 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
223         cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
224
225 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
226         cd $(top_builddir) \
227           && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
228
229 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in  ../acinclude.m4 \
230                 ../aclocal.m4
231         cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
232
233 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
234         $(SHELL) ./config.status --recheck
235 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
236         cd $(srcdir) && $(AUTOCONF)
237
238 mostlyclean-noinstLIBRARIES:
239
240 clean-noinstLIBRARIES:
241         -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
242
243 distclean-noinstLIBRARIES:
244
245 maintainer-clean-noinstLIBRARIES:
246
247 .c.o:
248         $(COMPILE) -c $<
249
250 .s.o:
251         $(COMPILE) -c $<
252
253 .S.o:
254         $(COMPILE) -c $<
255
256 mostlyclean-compile:
257         -rm -f *.o core *.core
258
259 clean-compile:
260
261 distclean-compile:
262         -rm -f *.tab.c
263
264 maintainer-clean-compile:
265
266 .c.lo:
267         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
268
269 .s.lo:
270         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
271
272 .S.lo:
273         $(LIBTOOL) --mode=compile $(COMPILE) -c $<
274
275 mostlyclean-libtool:
276         -rm -f *.lo
277
278 clean-libtool:
279         -rm -rf .libs _libs
280
281 distclean-libtool:
282
283 maintainer-clean-libtool:
284
285 mostlyclean-noinstLTLIBRARIES:
286
287 clean-noinstLTLIBRARIES:
288         -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
289
290 distclean-noinstLTLIBRARIES:
291
292 maintainer-clean-noinstLTLIBRARIES:
293
294 libc.la: $(libc_la_OBJECTS) $(libc_la_DEPENDENCIES)
295         $(LINK)  $(libc_la_LDFLAGS) $(libc_la_OBJECTS) $(libc_la_LIBADD) $(LIBS)
296
297 libc.info: libc.texinfo
298 libc.dvi: libc.texinfo
299
300
301 DVIPS = dvips
302
303 .texi.info:
304         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
305         $(MAKEINFO) -I $(srcdir) $<
306
307 .texi.dvi:
308         TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
309           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
310
311 .texi:
312         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
313         $(MAKEINFO) -I $(srcdir) $<
314
315 .texinfo.info:
316         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
317         $(MAKEINFO) -I $(srcdir) $<
318
319 .texinfo:
320         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
321         $(MAKEINFO) -I $(srcdir) $<
322
323 .texinfo.dvi:
324         TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
325           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
326
327 .txi.info:
328         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
329         $(MAKEINFO) -I $(srcdir) $<
330
331 .txi.dvi:
332         TEXINPUTS=$(top_srcdir)/../texinfo/texinfo.tex:$$TEXINPUTS \
333           MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
334
335 .txi:
336         @rm -f $@ $@-[0-9] $@-[0-9][0-9]
337         $(MAKEINFO) -I $(srcdir) $<
338 .dvi.ps:
339         $(DVIPS) $< -o $@
340
341 install-info-am: $(INFO_DEPS)
342         @$(NORMAL_INSTALL)
343         $(mkinstalldirs) $(DESTDIR)$(infodir)
344         @list='$(INFO_DEPS)'; \
345         for file in $$list; do \
346           if test -f $$file; then d=.; else d=$(srcdir); fi; \
347           for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
348             if test -f $$d/$$ifile; then \
349               echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
350               $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
351             else : ; fi; \
352           done; \
353         done
354         @$(POST_INSTALL)
355         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
356           list='$(INFO_DEPS)'; \
357           for file in $$list; do \
358             echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
359             install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
360           done; \
361         else : ; fi
362
363 uninstall-info:
364         $(PRE_UNINSTALL)
365         @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
366           ii=yes; \
367         else ii=; fi; \
368         list='$(INFO_DEPS)'; \
369         for file in $$list; do \
370           test -z "$ii" \
371             || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
372         done
373         @$(NORMAL_UNINSTALL)
374         list='$(INFO_DEPS)'; \
375         for file in $$list; do \
376           (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
377         done
378
379 dist-info: $(INFO_DEPS)
380         list='$(INFO_DEPS)'; \
381         for base in $$list; do \
382           if test -f $$base; then d=.; else d=$(srcdir); fi; \
383           for file in `cd $$d && eval echo $$base*`; do \
384             test -f $(distdir)/$$file \
385             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
386             || cp -p $$d/$$file $(distdir)/$$file; \
387           done; \
388         done
389
390 mostlyclean-aminfo:
391         -rm -f libc.aux libc.cp libc.cps libc.dvi libc.fn libc.fns libc.ky \
392           libc.kys libc.ps libc.log libc.pg libc.toc libc.tp libc.tps \
393           libc.vr libc.vrs libc.op libc.tr libc.cv libc.cn
394
395 clean-aminfo:
396
397 distclean-aminfo:
398
399 maintainer-clean-aminfo:
400         for i in $(INFO_DEPS); do \
401           rm -f $$i; \
402           if test "`echo $$i-[0-9]*`" != "$$i-[0-9]*"; then \
403             rm -f $$i-[0-9]*; \
404           fi; \
405         done
406 clean-info: mostlyclean-aminfo
407
408 # This directory's subdirectories are mostly independent; you can cd
409 # into them and run `make' without going through this Makefile.
410 # To change the values of `make' variables: instead of editing Makefiles,
411 # (1) if the variable is set in `config.status', edit `config.status'
412 #     (which will cause the Makefiles to be regenerated when you run `make');
413 # (2) otherwise, pass the desired values on the `make' command line.
414
415 @SET_MAKE@
416
417 all-recursive install-data-recursive install-exec-recursive \
418 installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
419 check-recursive installcheck-recursive info-recursive dvi-recursive:
420         @set fnord $(MAKEFLAGS); amf=$$2; \
421         dot_seen=no; \
422         target=`echo $@ | sed s/-recursive//`; \
423         list='$(SUBDIRS)'; for subdir in $$list; do \
424           echo "Making $$target in $$subdir"; \
425           if test "$$subdir" = "."; then \
426             dot_seen=yes; \
427             local_target="$$target-am"; \
428           else \
429             local_target="$$target"; \
430           fi; \
431           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
432            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
433         done; \
434         if test "$$dot_seen" = "no"; then \
435           $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
436         fi; test -z "$$fail"
437
438 mostlyclean-recursive clean-recursive distclean-recursive \
439 maintainer-clean-recursive:
440         @set fnord $(MAKEFLAGS); amf=$$2; \
441         dot_seen=no; \
442         rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
443           rev="$$subdir $$rev"; \
444           test "$$subdir" = "." && dot_seen=yes; \
445         done; \
446         test "$$dot_seen" = "no" && rev=". $$rev"; \
447         target=`echo $@ | sed s/-recursive//`; \
448         for subdir in $$rev; do \
449           echo "Making $$target in $$subdir"; \
450           if test "$$subdir" = "."; then \
451             local_target="$$target-am"; \
452           else \
453             local_target="$$target"; \
454           fi; \
455           (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
456            || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
457         done && test -z "$$fail"
458 tags-recursive:
459         list='$(SUBDIRS)'; for subdir in $$list; do \
460           test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
461         done
462
463 tags: TAGS
464
465 ID: $(HEADERS) $(SOURCES) $(LISP)
466         list='$(SOURCES) $(HEADERS)'; \
467         unique=`for i in $$list; do echo $$i; done | \
468           awk '    { files[$$0] = 1; } \
469                END { for (i in files) print i; }'`; \
470         here=`pwd` && cd $(srcdir) \
471           && mkid -f$$here/ID $$unique $(LISP)
472
473 TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
474         tags=; \
475         here=`pwd`; \
476         list='$(SUBDIRS)'; for subdir in $$list; do \
477    if test "$$subdir" = .; then :; else \
478             test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
479    fi; \
480         done; \
481         list='$(SOURCES) $(HEADERS)'; \
482         unique=`for i in $$list; do echo $$i; done | \
483           awk '    { files[$$0] = 1; } \
484                END { for (i in files) print i; }'`; \
485         test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
486           || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
487
488 mostlyclean-tags:
489
490 clean-tags:
491
492 distclean-tags:
493         -rm -f TAGS ID
494
495 maintainer-clean-tags:
496
497 distdir = $(PACKAGE)-$(VERSION)
498 top_distdir = $(distdir)
499
500 # This target untars the dist file and tries a VPATH configuration.  Then
501 # it guarantees that the distribution is self-contained by making another
502 # tarfile.
503 distcheck: dist
504         -rm -rf $(distdir)
505         GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
506         mkdir $(distdir)/=build
507         mkdir $(distdir)/=inst
508         dc_install_base=`cd $(distdir)/=inst && pwd`; \
509         cd $(distdir)/=build \
510           && ../configure --srcdir=.. --prefix=$$dc_install_base \
511           && $(MAKE) $(AM_MAKEFLAGS) \
512           && $(MAKE) $(AM_MAKEFLAGS) dvi \
513           && $(MAKE) $(AM_MAKEFLAGS) check \
514           && $(MAKE) $(AM_MAKEFLAGS) install \
515           && $(MAKE) $(AM_MAKEFLAGS) installcheck \
516           && $(MAKE) $(AM_MAKEFLAGS) dist
517         -rm -rf $(distdir)
518         @banner="$(distdir).tar.gz is ready for distribution"; \
519         dashes=`echo "$$banner" | sed s/./=/g`; \
520         echo "$$dashes"; \
521         echo "$$banner"; \
522         echo "$$dashes"
523 dist: distdir
524         -chmod -R a+r $(distdir)
525         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
526         -rm -rf $(distdir)
527 dist-all: distdir
528         -chmod -R a+r $(distdir)
529         GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
530         -rm -rf $(distdir)
531 distdir: $(DISTFILES)
532         -rm -rf $(distdir)
533         mkdir $(distdir)
534         -chmod 777 $(distdir)
535         @for file in $(DISTFILES); do \
536           if test -f $$file; then d=.; else d=$(srcdir); fi; \
537           if test -d $$d/$$file; then \
538             cp -pr $$d/$$file $(distdir)/$$file; \
539           else \
540             test -f $(distdir)/$$file \
541             || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
542             || cp -p $$d/$$file $(distdir)/$$file || :; \
543           fi; \
544         done
545         for subdir in $(DIST_SUBDIRS); do \
546           if test "$$subdir" = .; then :; else \
547             test -d $(distdir)/$$subdir \
548             || mkdir $(distdir)/$$subdir \
549             || exit 1; \
550             chmod 777 $(distdir)/$$subdir; \
551             (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
552               || exit 1; \
553           fi; \
554         done
555         $(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
556 info-am: $(INFO_DEPS)
557 info: info-recursive
558 dvi-am: $(DVIS)
559 dvi: dvi-recursive
560 check-am:
561 check: check-recursive
562 installcheck-am:
563 installcheck: installcheck-recursive
564 install-info-am: 
565 install-info: install-info-recursive
566 install-exec-am:
567 install-exec: install-exec-recursive
568
569 install-data-am:
570 install-data: install-data-recursive
571
572 install-am: all-am
573         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
574 install: install-recursive
575 uninstall-am:
576 uninstall: uninstall-recursive
577 all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA)
578 all-redirect: all-recursive
579 install-strip:
580         $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
581 installdirs: installdirs-recursive
582 installdirs-am:
583
584
585 mostlyclean-generic:
586
587 clean-generic:
588         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
589
590 distclean-generic:
591         -rm -f Makefile $(CONFIG_CLEAN_FILES)
592         -rm -f config.cache config.log stamp-h stamp-h[0-9]*
593
594 maintainer-clean-generic:
595 mostlyclean-am:  mostlyclean-noinstLIBRARIES mostlyclean-compile \
596                 mostlyclean-libtool mostlyclean-noinstLTLIBRARIES \
597                 mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
598
599 mostlyclean: mostlyclean-recursive
600
601 clean-am:  clean-noinstLIBRARIES clean-compile clean-libtool \
602                 clean-noinstLTLIBRARIES clean-aminfo clean-tags \
603                 clean-generic mostlyclean-am
604
605 clean: clean-recursive
606
607 distclean-am:  distclean-noinstLIBRARIES distclean-compile \
608                 distclean-libtool distclean-noinstLTLIBRARIES \
609                 distclean-aminfo distclean-tags distclean-generic \
610                 clean-am
611         -rm -f libtool
612
613 distclean: distclean-recursive
614         -rm -f config.status
615
616 maintainer-clean-am:  maintainer-clean-noinstLIBRARIES \
617                 maintainer-clean-compile maintainer-clean-libtool \
618                 maintainer-clean-noinstLTLIBRARIES \
619                 maintainer-clean-aminfo maintainer-clean-tags \
620                 maintainer-clean-generic distclean-am
621         @echo "This command is intended for maintainers to use;"
622         @echo "it deletes files that may require special tools to rebuild."
623
624 maintainer-clean: maintainer-clean-recursive
625         -rm -f config.status
626
627 .PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \
628 clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \
629 mostlyclean-compile distclean-compile clean-compile \
630 maintainer-clean-compile mostlyclean-libtool distclean-libtool \
631 clean-libtool maintainer-clean-libtool mostlyclean-noinstLTLIBRARIES \
632 distclean-noinstLTLIBRARIES clean-noinstLTLIBRARIES \
633 maintainer-clean-noinstLTLIBRARIES install-info-am uninstall-info \
634 mostlyclean-aminfo distclean-aminfo clean-aminfo \
635 maintainer-clean-aminfo install-data-recursive uninstall-data-recursive \
636 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
637 uninstalldirs-recursive all-recursive check-recursive \
638 installcheck-recursive info-recursive dvi-recursive \
639 mostlyclean-recursive distclean-recursive clean-recursive \
640 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
641 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
642 dvi-am dvi check check-am installcheck-am installcheck install-info-am \
643 install-info install-exec-am install-exec install-data-am install-data \
644 install-am install uninstall-am uninstall all-redirect all-am all \
645 installdirs-am installdirs mostlyclean-generic distclean-generic \
646 clean-generic maintainer-clean-generic clean mostlyclean distclean \
647 maintainer-clean
648
649 @USE_LIBTOOL_FALSE@libc.a: $(SUBLIBS)
650 @USE_LIBTOOL_FALSE@     rm -f $@
651 @USE_LIBTOOL_FALSE@     rm -rf tmp
652 @USE_LIBTOOL_FALSE@     mkdir tmp
653 @USE_LIBTOOL_FALSE@     cd tmp; \
654 @USE_LIBTOOL_FALSE@      for i in $(SUBLIBS); do \
655 @USE_LIBTOOL_FALSE@        $(AR) x ../$$i; \
656 @USE_LIBTOOL_FALSE@      done; \
657 @USE_LIBTOOL_FALSE@     $(AR) $(AR_FLAGS) ../$@ *.o
658 @USE_LIBTOOL_FALSE@     $(RANLIB) $@
659 @USE_LIBTOOL_FALSE@     rm -rf tmp
660
661 $(SUBLIBS): ; @true
662
663 crt0.o: sys/crt0.o
664         rm -f $@
665         ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
666
667 sys/crt0.o: ; @true
668
669 libc.info: sigset.texi targetdep.tex $(SUBDEFS)
670
671 stmp-sigset: config.status
672         if test -n "$(LIBC_SIGNAL_LIB)"; then \
673           echo "@set SIGNALS" >tmp.texi; \
674         else \
675           echo "@clear SIGNALS" >tmp.texi; \
676         fi
677         $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
678         touch $@
679
680 sigset.texi: stmp-sigset ; @true
681
682 stmp-targetdep: force
683         rm -f tmp.texi
684         targetdoc=`pwd`/tmp.texi; \
685         for d in $(SUBDIRS); do \
686           if test "$$d" != "."; then \
687             (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
688           fi; \
689         done
690         cat $(srcdir)/sys.tex >>tmp.texi
691         $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
692         touch $@
693
694 targetdep.tex: stmp-targetdep ; @true
695
696 $(SUBDEFS): stmp-targetdep ; @true
697
698 .PHONY: force
699 force:
700
701 # Tell versions [3.59,3.63) of GNU make to not export all variables.
702 # Otherwise a system limit (for SysV at least) may be exceeded.
703 .NOEXPORT: