OSDN Git Service

94f4692e44a4315b4187ab2b583c982ce716482a
[pf3gnuchains/gcc-fork.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 #   1999, 2000, 2001 Free Software Foundation
5 #
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #
20
21 # Tell GNU make 3.79 not to run the top level in parallel.  This 
22 # prevents contention for $builddir/$target/config.cache, as well
23 # as minimizing scatter in file system caches.
24 NOTPARALLEL = .NOTPARALLEL
25 $(NOTPARALLEL):
26
27 srcdir = .
28
29 prefix = /usr/local
30 exec_prefix = $(prefix)
31
32 bindir=${exec_prefix}/bin
33 sbindir=${exec_prefix}/sbin
34 libexecdir=${exec_prefix}/libexec
35 datadir=${prefix}/share
36 sysconfdir=${prefix}/etc
37 sharedstatedir=${prefix}/com
38 localstatedir=${prefix}/var
39 libdir=${exec_prefix}/lib
40 includedir=${prefix}/include
41 oldincludedir=/usr/include
42 infodir=${prefix}/info
43 mandir=${prefix}/man
44 gxx_include_dir=${includedir}/g++
45
46 tooldir = $(exec_prefix)/$(target_alias)
47 build_tooldir = $(exec_prefix)/$(target_alias)
48
49 program_transform_name =
50
51 man1dir = $(mandir)/man1
52 man2dir = $(mandir)/man2
53 man3dir = $(mandir)/man3
54 man4dir = $(mandir)/man4
55 man5dir = $(mandir)/man5
56 man6dir = $(mandir)/man6
57 man7dir = $(mandir)/man7
58 man8dir = $(mandir)/man8
59 man9dir = $(mandir)/man9
60 infodir = $(prefix)/info
61 includedir = $(prefix)/include
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
64 GDB_NLM_DEPS = 
65
66 SHELL = /bin/sh
67
68 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
69 # cygwin host.
70 INSTALL_PROGRAM_ARGS =
71
72 INSTALL = $(SHELL) $$s/install-sh -c
73 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
74 INSTALL_SCRIPT = $(INSTALL)
75 INSTALL_DATA = $(INSTALL) -m 644
76
77 INSTALL_DOSREL = install-dosrel-fake
78
79 AS = as
80 AR = ar
81 AR_FLAGS = rc
82 CC = cc
83
84 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
85 # here so that they can be overridden by Makefile fragments.
86 HOST_CC = $(CC_FOR_BUILD)
87 HOST_PREFIX = 
88 HOST_PREFIX_1 = loser-
89
90 # These flag values are normally overridden by the configure script.
91 CFLAGS = -g
92 CXXFLAGS = -g -O2
93
94 LDFLAGS = 
95 LIBCFLAGS = $(CFLAGS)
96 CFLAGS_FOR_BUILD = $(CFLAGS)
97 CFLAGS_FOR_TARGET = $(CFLAGS)
98 LDFLAGS_FOR_TARGET = 
99 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
100 PICFLAG = 
101 PICFLAG_FOR_TARGET = 
102
103 CHILLFLAGS = $(CFLAGS)
104 CHILL_LIB = -lchill
105 CXX = c++
106
107 # Use -O2 to stress test the compiler.
108 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
109 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
110 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
111
112 DLLTOOL = dlltool
113 WINDRES = windres
114
115 NM = nm
116
117 LD = ld
118
119 BZIPPROG = bzip2
120 MD5PROG = md5sum
121
122 # These values are substituted by configure.
123 DEFAULT_YACC = yacc
124 DEFAULT_LEX = lex
125 DEFAULT_M4 = m4
126
127 BISON = `if [ -f $$r/bison/bison ] ; then \
128             echo $$r/bison/bison -L $$s/bison/ ; \
129          else \
130             echo bison ; \
131          fi`
132
133 YACC = `if [ -f $$r/bison/bison ] ; then \
134             echo $$r/bison/bison -y -L $$s/bison/ ; \
135         elif [ -f $$r/byacc/byacc ] ; then \
136             echo $$r/byacc/byacc ; \
137         else \
138             echo ${DEFAULT_YACC} ; \
139         fi`
140
141 LEX = `if [ -f $$r/flex/flex ] ; \
142         then echo $$r/flex/flex ; \
143         else echo ${DEFAULT_LEX} ; fi`
144
145 M4 = `if [ -f $$r/m4/m4 ] ; \
146         then echo $$r/m4/m4 ; \
147         else echo ${DEFAULT_M4} ; fi`
148
149 # For an installed makeinfo, we require it to be from texinfo 4 or
150 # higher, else we use the "missing" dummy.
151 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
152         then echo $$r/texinfo/makeinfo/makeinfo ; \
153         else if (makeinfo --version \
154           | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
155         then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
156
157 # This just becomes part of the MAKEINFO definition passed down to
158 # sub-makes.  It lets flags be given on the command line while still
159 # using the makeinfo from the object tree.
160 MAKEINFOFLAGS =
161
162 EXPECT = `if [ -f $$r/expect/expect ] ; \
163         then echo $$r/expect/expect ; \
164         else echo expect ; fi`
165
166 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
167         then echo $$s/dejagnu/runtest ; \
168         else echo runtest ; fi`
169
170
171 # compilers to use to create programs which must be run in the build
172 # environment.
173 CC_FOR_BUILD = $(CC)
174 CXX_FOR_BUILD = $(CXX)
175
176 SUBDIRS = "this is set via configure, don't edit this"
177 OTHERS = 
178
179 # This is set by the configure script to the list of directories which
180 # should be built using the target tools.
181 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib librx winsup opcodes bsp libstub cygmon libf2c libchill libobjc
182
183 # Target libraries are put under this directory:
184 # Changed by configure to $(target_alias) if cross.
185 TARGET_SUBDIR = .
186
187 BUILD_CONFIGDIRS = libiberty
188 BUILD_SUBDIR = .
189
190 # This is set by the configure script to the arguments to use when configuring
191 # directories built for the target.
192 TARGET_CONFIGARGS = 
193
194 # This is set by the configure script to the arguments to use when configuring
195 # directories built for the build system.
196 BUILD_CONFIGARGS =
197
198 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
199 # was used.
200 SET_LIB_PATH =
201
202 # This is the name of the environment variable used for the path to
203 # the libraries.  This may be changed by configure.in.
204 RPATH_ENVVAR = LD_LIBRARY_PATH
205
206 # This is the list of directories that may be needed in RPATH_ENVVAR
207 # so that programs built for the host machine work.
208 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
209
210 # This is the list of directories that may be needed in RPATH_ENVVAR
211 # so that prorgams built for the target machine work.
212 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
213
214 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
215 # Some platforms don't like blank entries, so we remove duplicate,
216 # leading and trailing colons.
217 REALLY_SET_LIB_PATH = \
218   $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
219
220 ALL = all.normal
221 INSTALL_TARGET = installdirs \
222         install-gcc \
223         $(INSTALL_MODULES) \
224         $(INSTALL_TARGET_MODULES) \
225         $(INSTALL_X11_MODULES) \
226         $(INSTALL_DOSREL)
227
228 INSTALL_TARGET_CROSS = installdirs \
229         install-gcc-cross \
230         $(INSTALL_MODULES) \
231         $(INSTALL_TARGET_MODULES) \
232         $(INSTALL_X11_MODULES) \
233         $(INSTALL_DOSREL)
234
235 # Should be substed by configure.in
236 FLAGS_FOR_TARGET =
237 CC_FOR_TARGET =
238 CHILL_FOR_TARGET =
239 CXX_FOR_TARGET =
240 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =
241 GCJ_FOR_TARGET =
242
243 # If GCC_FOR_TARGET is not overriden on the command line, then this
244 # variable is passed down to the gcc Makefile, where it is used to
245 # build libgcc2.a.  We define it here so that it can itself be
246 # overridden on the command line.
247 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
248
249 AS_FOR_TARGET = ` \
250   if [ -f $$r/gas/as-new ] ; then \
251     echo $$r/gas/as-new ; \
252   elif [ -f $$r/gcc/xgcc ]; then \
253     $(CC_FOR_TARGET) -print-prog-name=as ; \
254   else \
255     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
256       echo $(AS); \
257     else \
258        t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
259     fi; \
260   fi`
261
262 LD_FOR_TARGET = ` \
263   if [ -f $$r/ld/ld-new ] ; then \
264     echo $$r/ld/ld-new ; \
265   elif [ -f $$r/gcc/xgcc ]; then \
266     $(CC_FOR_TARGET) -print-prog-name=ld ; \
267   else \
268     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
269       echo $(LD); \
270     else \
271        t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
272     fi; \
273   fi`
274
275 DLLTOOL_FOR_TARGET = ` \
276   if [ -f $$r/binutils/dlltool ] ; then \
277     echo $$r/binutils/dlltool ; \
278   else \
279     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
280       echo $(DLLTOOL); \
281     else \
282        t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
283     fi; \
284   fi`
285
286 WINDRES_FOR_TARGET = ` \
287   if [ -f $$r/binutils/windres ] ; then \
288     echo $$r/binutils/windres ; \
289   else \
290     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
291       echo $(WINDRES); \
292     else \
293        t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
294     fi; \
295   fi`
296
297 AR_FOR_TARGET = ` \
298   if [ -f $$r/binutils/ar ] ; then \
299     echo $$r/binutils/ar ; \
300   else \
301     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
302       echo $(AR); \
303     else \
304        t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
305     fi; \
306   fi`
307
308 RANLIB_FOR_TARGET = ` \
309   if [ -f $$r/binutils/ranlib ] ; then \
310     echo $$r/binutils/ranlib ; \
311   else \
312     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
313       if [ x'$(RANLIB)' != x ]; then \
314          echo $(RANLIB); \
315       else \
316          echo ranlib; \
317       fi; \
318     else \
319        t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
320     fi; \
321   fi`
322
323 NM_FOR_TARGET = ` \
324   if [ -f $$r/binutils/nm-new ] ; then \
325     echo $$r/binutils/nm-new ; \
326   elif [ -f $$r/gcc/xgcc ]; then \
327     $(CC_FOR_TARGET) -print-prog-name=nm ; \
328   else \
329     if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
330       echo $(NM); \
331     else \
332        t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
333     fi; \
334   fi`
335
336 # The first rule in the file had better be this one.  Don't put any above it.
337 # This lives here to allow makefile fragments to contain dependencies.
338 all: all.normal
339 .PHONY: all
340
341 # These can be overridden by config/mt-*.
342 # The _TARGET_ is because they're specified in mt-foo.
343 # The _HOST_ is because they're programs that run on the host.
344 EXTRA_TARGET_HOST_ALL_MODULES =
345 EXTRA_TARGET_HOST_INSTALL_MODULES =
346 EXTRA_TARGET_HOST_CHECK_MODULES =
347
348 #### host and target specific makefile fragments come in here.
349 ###
350
351 # Flags to pass down to all sub-makes.
352 # Please keep these in alphabetical order.
353 BASE_FLAGS_TO_PASS = \
354         "AR_FLAGS=$(AR_FLAGS)" \
355         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
356         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
357         "BISON=$(BISON)" \
358         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
359         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
360         "CFLAGS=$(CFLAGS)" \
361         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
362         "CHILLFLAGS=$(CHILLFLAGS)" \
363         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
364         "CHILL_LIB=$(CHILL_LIB)" \
365         "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
366         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
367         "CXXFLAGS=$(CXXFLAGS)" \
368         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
369         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
370         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
371         "INSTALL=$(INSTALL)" \
372         "INSTALL_DATA=$(INSTALL_DATA)" \
373         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
374         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
375         "LDFLAGS=$(LDFLAGS)" \
376         "LEX=$(LEX)" \
377         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
378         "LIBCFLAGS=$(LIBCFLAGS)" \
379         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
380         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
381         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
382         "M4=$(M4)" \
383         "MAKE=$(MAKE)" \
384         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
385         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
386         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
387         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
388         "SHELL=$(SHELL)" \
389         "EXPECT=$(EXPECT)" \
390         "RUNTEST=$(RUNTEST)" \
391         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
392         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
393         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
394         "YACC=$(YACC)" \
395         "bindir=$(bindir)" \
396         "datadir=$(datadir)" \
397         "exec_prefix=$(exec_prefix)" \
398         "includedir=$(includedir)" \
399         "infodir=$(infodir)" \
400         "libdir=$(libdir)" \
401         "libexecdir=$(libexecdir)" \
402         "lispdir=$(lispdir)" \
403         "libstdcxx_incdir=$(libstdcxx_incdir)" \
404         "libsubdir=$(libsubdir)" \
405         "localstatedir=$(localstatedir)" \
406         "mandir=$(mandir)" \
407         "oldincludedir=$(oldincludedir)" \
408         "prefix=$(prefix)" \
409         "sbindir=$(sbindir)" \
410         "sharedstatedir=$(sharedstatedir)" \
411         "sysconfdir=$(sysconfdir)" \
412         "tooldir=$(tooldir)" \
413         "build_tooldir=$(build_tooldir)" \
414         "gxx_include_dir=$(gxx_include_dir)" \
415         "gcc_version=$(gcc_version)" \
416         "gcc_version_trigger=$(gcc_version_trigger)" \
417         "target_alias=$(target_alias)" 
418
419 # For any flags above that may contain shell code that varies from one
420 # target library to another.  When doing recursive invocations of the
421 # top-level Makefile, we don't want the outer make to evaluate them,
422 # so we pass these variables down unchanged.  They must not contain
423 # single nor double quotes.
424 RECURSE_FLAGS = \
425         CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
426
427 # Flags to pass down to most sub-makes, in which we're building with
428 # the host environment.
429 # If any variables are added here, they must be added to do-*, below.
430 EXTRA_HOST_FLAGS = \
431         'AR=$(AR)' \
432         'AS=$(AS)' \
433         'CC=$(CC)' \
434         'CXX=$(CXX)' \
435         'DLLTOOL=$(DLLTOOL)' \
436         'LD=$(LD)' \
437         'NM=$(NM)' \
438         "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
439         'WINDRES=$(WINDRES)'
440
441 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
442
443 # Flags that are concerned with the location of the X11 include files
444 # and library files
445 #
446 # NOTE: until the top-level is getting the values via autoconf, it only
447 # causes problems to have this top-level Makefile overriding the autoconf-set
448 # values in child directories.  Only variables that don't conflict with
449 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
450 #
451 X11_FLAGS_TO_PASS = \
452         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
453         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
454
455 # Flags to pass down to makes which are built with the target environment.
456 # The double $ decreases the length of the command line; the variables
457 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
458 # If any variables are added here, they must be added to do-*, below.
459 EXTRA_TARGET_FLAGS = \
460         'AR=$$(AR_FOR_TARGET)' \
461         'AS=$$(AS_FOR_TARGET)' \
462         'CC=$$(CC_FOR_TARGET)' \
463         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
464         'CXX=$$(CXX_FOR_TARGET)' \
465         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
466         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
467         'LD=$$(LD_FOR_TARGET)' \
468         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
469         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
470         'NM=$$(NM_FOR_TARGET)' \
471         'RANLIB=$$(RANLIB_FOR_TARGET)' \
472         'WINDRES=$$(WINDRES_FOR_TARGET)'
473
474 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
475
476 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
477 # unfortunately needs the native compiler and the target ar and
478 # ranlib.
479 # If any variables are added here, they must be added to do-*, below.
480 # The HOST_* variables are a special case, which are used for the gcc
481 # cross-building scheme.
482 EXTRA_GCC_FLAGS = \
483         'AR=$(AR)' \
484         'AS=$(AS)' \
485         'CC=$(CC)' \
486         'CXX=$(CXX)' \
487         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488         'HOST_CC=$(CC_FOR_BUILD)' \
489         'HOST_PREFIX=$(HOST_PREFIX)' \
490         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
491         'NM=$(NM)' \
492         "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
493         'WINDRES=$$(WINDRES_FOR_TARGET)' \
494         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
495         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
496         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
497         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
498         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
499         "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
500         "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
501         "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
502         "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
503         "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
504         "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
505         "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
506
507 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
508
509 # This is a list of the targets for all of the modules which are compiled
510 # using the build machine's native compiler.  Configure edits the second
511 # macro for build!=host builds.
512 ALL_BUILD_MODULES_LIST = \
513         all-build-libiberty
514 ALL_BUILD_MODULES = 
515
516 # This is a list of the configure targets for all of the modules which
517 # are compiled using the native tools.
518 CONFIGURE_BUILD_MODULES = \
519         configure-build-libiberty
520
521 # This is a list of the targets for all of the modules which are compiled
522 # using $(FLAGS_TO_PASS).
523 ALL_MODULES = \
524         all-apache \
525         all-ash \
526         all-autoconf \
527         all-automake \
528         all-bash \
529         all-bfd \
530         all-binutils \
531         all-bison \
532         all-byacc \
533         all-bzip2 \
534         all-cgen \
535         all-cvssrc \
536         all-db \
537         all-dejagnu \
538         all-diff \
539         all-dosutils \
540         all-etc \
541         all-fastjar \
542         all-fileutils \
543         all-findutils \
544         all-find \
545         all-flex \
546         all-gas \
547         all-gawk \
548         all-gettext \
549         all-gnuserv \
550         all-gprof \
551         all-grep \
552         all-grez \
553         all-gzip \
554         all-hello \
555         all-indent \
556         all-inet \
557         all-intl \
558         all-ispell \
559         all-itcl \
560         all-ld \
561         all-libgui \
562         all-libiberty \
563         all-libtool \
564         all-m4 \
565         all-make \
566         all-mmalloc \
567         all-opcodes \
568         all-patch \
569         all-perl \
570         all-prms \
571         all-rcs \
572         all-readline \
573         all-release \
574         all-recode \
575         all-sed \
576         all-send-pr \
577         all-shellutils \
578         all-sid \
579         all-sim \
580         all-snavigator \
581         all-tar \
582         all-tcl \
583         all-tcl8.1 \
584         all-texinfo \
585         all-textutils \
586         all-tgas \
587         all-time \
588         all-uudecode \
589         all-wdiff \
590         all-zip \
591         all-zlib \
592         $(EXTRA_TARGET_HOST_ALL_MODULES)
593
594 # This is a list of the check targets for all of the modules which are
595 # compiled using $(FLAGS_TO_PASS).
596 #
597 # The list is in two parts.  The first lists those tools which
598 # are tested as part of the host's native tool-chain, and not
599 # tested in a cross configuration.
600 NATIVE_CHECK_MODULES = \
601         check-bison \
602         check-byacc \
603         check-fastjar \
604         check-flex \
605         check-zip
606
607 CROSS_CHECK_MODULES = \
608         check-apache \
609         check-ash \
610         check-autoconf \
611         check-automake \
612         check-bash \
613         check-bfd \
614         check-binutils \
615         check-bzip2 \
616         check-cgen \
617         check-cvssrc \
618         check-db \
619         check-dejagnu \
620         check-diff \
621         check-etc \
622         check-fileutils \
623         check-findutils \
624         check-find \
625         check-gas \
626         check-gawk \
627         check-gettext \
628         check-gnuserv \
629         check-gprof \
630         check-grep \
631         check-gzip \
632         check-hello \
633         check-indent \
634         check-inet \
635         check-intl \
636         check-ispell \
637         check-itcl \
638         check-ld \
639         check-libgui \
640         check-libiberty \
641         check-libtool \
642         check-m4 \
643         check-make \
644         check-mmcheckoc \
645         check-opcodes \
646         check-patch \
647         check-perl \
648         check-prms \
649         check-rcs \
650         check-readline \
651         check-recode \
652         check-sed \
653         check-send-pr \
654         check-shellutils \
655         check-snavigator \
656         check-sid \
657         check-sim \
658         check-tar \
659         check-tcl \
660         check-texinfo \
661         check-textutils \
662         check-tgas \
663         check-time \
664         check-uudecode \
665         check-wdiff \
666         $(EXTRA_TARGET_HOST_CHECK_MODULES)
667
668 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
669
670 # This is a list of the install targets for all of the modules which are
671 # compiled using $(FLAGS_TO_PASS).
672 # We put install-opcodes before install-binutils because the installed
673 # binutils might be on PATH, and they might need the shared opcodes
674 # library.
675 # We put install-tcl before install-itcl because itcl wants to run a
676 # program on installation which uses the Tcl libraries.
677 INSTALL_MODULES = \
678         install-apache \
679         install-ash \
680         install-autoconf \
681         install-automake \
682         install-bash \
683         install-bfd \
684         install-bzip2 \
685         install-opcodes \
686         install-binutils \
687         install-bison \
688         install-byacc \
689         install-cgen \
690         install-cvssrc \
691         install-db \
692         install-dejagnu \
693         install-diff \
694         install-dosutils \
695         install-etc \
696         install-fastjar \
697         install-fileutils \
698         install-findutils \
699         install-find \
700         install-flex \
701         install-gas \
702         install-gawk \
703         install-gettext \
704         install-gnuserv \
705         install-gprof \
706         install-grep \
707         install-grez \
708         install-gzip \
709         install-hello \
710         install-indent \
711         install-inet \
712         install-intl \
713         install-ispell \
714         install-tcl \
715         install-tcl8.1 \
716         install-itcl \
717         install-ld \
718         install-libgui \
719         install-libiberty \
720         install-libtool \
721         install-m4 \
722         install-make \
723         install-mmalloc \
724         install-patch \
725         install-perl \
726         install-prms \
727         install-rcs \
728         install-readline \
729         install-recode \
730         install-sed \
731         install-send-pr \
732         install-shellutils \
733         install-sid \
734         install-sim \
735         install-snavigator \
736         install-tar \
737         install-textutils \
738         install-tgas \
739         install-time \
740         install-uudecode \
741         install-wdiff \
742         install-zip \
743         $(EXTRA_TARGET_HOST_INSTALL_MODULES)
744
745 # This is a list of the targets for all of the modules which are compiled
746 # using $(X11_FLAGS_TO_PASS).
747 ALL_X11_MODULES = \
748         all-emacs \
749         all-emacs19 \
750         all-gdb \
751         all-expect \
752         all-gash \
753         all-guile \
754         all-tclX \
755         all-tk \
756         all-tk8.1 \
757         all-tix
758
759 # This is a list of the check targets for all of the modules which are
760 # compiled using $(X11_FLAGS_TO_PASS).
761 CHECK_X11_MODULES = \
762         check-emacs \
763         check-gdb \
764         check-guile \
765         check-expect \
766         check-gash \
767         check-tclX \
768         check-tk \
769         check-tix
770
771 # This is a list of the install targets for all the modules which are
772 # compiled using $(X11_FLAGS_TO_PASS).
773 INSTALL_X11_MODULES = \
774         install-emacs \
775         install-emacs19 \
776         install-gdb \
777         install-guile \
778         install-expect \
779         install-gash \
780         install-tclX \
781         install-tk \
782         install-tk8.1 \
783         install-tix
784
785 # This is a list of the targets for all of the modules which are compiled
786 # using $(TARGET_FLAGS_TO_PASS).
787 ALL_TARGET_MODULES = \
788         all-target-libstdc++-v3 \
789         all-target-librx \
790         all-target-newlib \
791         all-target-libf2c \
792         all-target-libchill \
793         all-target-libobjc \
794         all-target-libtermcap \
795         all-target-winsup \
796         all-target-libgloss \
797         all-target-libiberty \
798         all-target-gperf \
799         all-target-examples \
800         all-target-libstub \
801         all-target-libffi \
802         all-target-libjava \
803         all-target-zlib \
804         all-target-boehm-gc \
805         all-target-qthreads \
806         all-target-bsp \
807         all-target-cygmon
808
809 # This is a list of the configure targets for all of the modules which
810 # are compiled using the target tools.
811 CONFIGURE_TARGET_MODULES = \
812         configure-target-libstdc++-v3 \
813         configure-target-librx \
814         configure-target-newlib \
815         configure-target-libf2c \
816         configure-target-libchill \
817         configure-target-libobjc \
818         configure-target-libtermcap \
819         configure-target-winsup \
820         configure-target-libgloss \
821         configure-target-libiberty \
822         configure-target-gperf \
823         configure-target-examples \
824         configure-target-libstub \
825         configure-target-libffi \
826         configure-target-libjava \
827         configure-target-zlib \
828         configure-target-boehm-gc \
829         configure-target-qthreads \
830         configure-target-bsp \
831         configure-target-cygmon
832
833 # This is a list of the check targets for all of the modules which are
834 # compiled using $(TARGET_FLAGS_TO_PASS).
835 CHECK_TARGET_MODULES = \
836         check-target-libstdc++-v3 \
837         check-target-newlib \
838         check-target-libf2c \
839         check-target-libchill \
840         check-target-libobjc \
841         check-target-winsup \
842         check-target-libiberty \
843         check-target-libffi \
844         check-target-libjava \
845         check-target-zlib \
846         check-target-boehm-gc \
847         check-target-qthreads \
848         check-target-gperf
849
850 # This is a list of the install targets for all of the modules which are
851 # compiled using $(TARGET_FLAGS_TO_PASS).
852 INSTALL_TARGET_MODULES = \
853         install-target-libstdc++-v3 \
854         install-target-newlib \
855         install-target-libf2c \
856         install-target-libchill \
857         install-target-libobjc \
858         install-target-libtermcap \
859         install-target-winsup \
860         install-target-libgloss \
861         install-target-libiberty \
862         install-target-bsp \
863         install-target-libjava \
864         install-target-zlib \
865         install-target-boehm-gc \
866         install-target-qthreads \
867         install-target-gperf
868
869 # This is a list of the targets for which we can do a clean-{target}.
870 CLEAN_MODULES = \
871         clean-apache \
872         clean-ash \
873         clean-autoconf \
874         clean-automake \
875         clean-bash \
876         clean-bfd \
877         clean-binutils \
878         clean-bison \
879         clean-byacc \
880         clean-bzip2 \
881         clean-cgen \
882         clean-cvssrc \
883         clean-db \
884         clean-dejagnu \
885         clean-diff \
886         clean-dosutils \
887         clean-etc \
888         clean-fastjar \
889         clean-fileutils \
890         clean-findutils \
891         clean-find \
892         clean-flex \
893         clean-gas \
894         clean-gawk \
895         clean-gettext \
896         clean-gnuserv \
897         clean-gprof \
898         clean-grep \
899         clean-grez \
900         clean-gzip \
901         clean-hello \
902         clean-indent \
903         clean-inet \
904         clean-intl \
905         clean-ispell \
906         clean-itcl \
907         clean-ld \
908         clean-libgui \
909         clean-libiberty \
910         clean-libtool \
911         clean-m4 \
912         clean-make \
913         clean-mmalloc \
914         clean-opcodes \
915         clean-patch \
916         clean-perl \
917         clean-prms \
918         clean-rcs \
919         clean-readline \
920         clean-release \
921         clean-recode \
922         clean-sed \
923         clean-send-pr \
924         clean-shellutils \
925         clean-sid \
926         clean-sim \
927         clean-snavigator \
928         clean-tar \
929         clean-tcl \
930         clean-texinfo \
931         clean-textutils \
932         clean-tgas \
933         clean-time \
934         clean-uudecode \
935         clean-wdiff \
936         clean-zip \
937         clean-zlib
938
939 # All of the target modules that can be cleaned
940 CLEAN_TARGET_MODULES = \
941         clean-target-libstdc++-v3 \
942         clean-target-librx \
943         clean-target-newlib \
944         clean-target-libf2c \
945         clean-target-libchill \
946         clean-target-libobjc \
947         clean-target-winsup \
948         clean-target-libgloss \
949         clean-target-libiberty \
950         clean-target-gperf \
951         clean-target-examples \
952         clean-target-libstub \
953         clean-target-libffi \
954         clean-target-libjava \
955         clean-target-zlib \
956         clean-target-boehm-gc \
957         clean-target-qthreads \
958         clean-target-bsp \
959         clean-target-cygmon
960
961 # All of the x11 modules that can be cleaned
962 CLEAN_X11_MODULES = \
963         clean-emacs \
964         clean-emacs19 \
965         clean-gdb \
966         clean-expect \
967         clean-gash \
968         clean-guile \
969         clean-tclX \
970         clean-tk \
971         clean-tix
972
973 # The target built for a native build.
974 .PHONY: all.normal
975 all.normal: \
976         $(ALL_BUILD_MODULES) \
977         $(ALL_MODULES) \
978         $(ALL_X11_MODULES) \
979         $(ALL_TARGET_MODULES) \
980         all-gcc
981
982 # Do a target for all the subdirectories.  A ``make do-X'' will do a
983 # ``make X'' in all subdirectories (because, in general, there is a
984 # dependency (below) of X upon do-X, a ``make X'' will also do this,
985 # but it may do additional work as well).
986 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
987 # because it is so large that it can easily overflow the command line
988 # length limit on some systems.
989 DO_X = \
990         do-clean \
991         do-distclean \
992         do-dvi \
993         do-info \
994         do-install-info \
995         do-installcheck \
996         do-mostlyclean \
997         do-maintainer-clean \
998         do-TAGS
999 .PHONY: $(DO_X)
1000 $(DO_X):
1001         @target=`echo $@ | sed -e 's/^do-//'`; \
1002         r=`pwd`; export r; \
1003         s=`cd $(srcdir); pwd`; export s; \
1004         $(SET_LIB_PATH) \
1005         for i in $(SUBDIRS) -dummy-; do \
1006           if [ -f ./$$i/Makefile ]; then \
1007             case $$i in \
1008             gcc) \
1009               for flag in $(EXTRA_GCC_FLAGS); do \
1010                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1011               done; \
1012               ;; \
1013             *) \
1014               for flag in $(EXTRA_HOST_FLAGS); do \
1015                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1016               done; \
1017               ;; \
1018             esac ; \
1019             if (cd ./$$i; \
1020                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1021                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1022                         "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1023                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1024                         $${target}); \
1025             then true; else exit 1; fi; \
1026           else true; fi; \
1027         done
1028         @target=`echo $@ | sed -e 's/^do-//'`; \
1029         r=`pwd`; export r; \
1030         s=`cd $(srcdir); pwd`; export s; \
1031         $(SET_LIB_PATH) \
1032         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1033           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1034             for flag in $(EXTRA_TARGET_FLAGS); do \
1035                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1036             done; \
1037             if (cd $(TARGET_SUBDIR)/$$i; \
1038                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1039                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1040                         "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1041                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1042                         $${target}); \
1043             then true; else exit 1; fi; \
1044           else true; fi; \
1045         done
1046
1047 # Here are the targets which correspond to the do-X targets.
1048
1049 .PHONY: info installcheck dvi install-info
1050 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1051 .PHONY: local-clean local-distclean local-maintainer-clean
1052 info: do-info
1053 installcheck: do-installcheck
1054 dvi: do-dvi
1055
1056 # Make sure makeinfo is built before we do a `make info'.
1057 do-info: all-texinfo
1058
1059 install-info: do-install-info dir.info
1060         s=`cd $(srcdir); pwd`; export s; \
1061         if [ -f dir.info ] ; then \
1062           $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1063         else true ; fi
1064
1065 local-clean:
1066         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1067
1068 local-distclean:
1069         -rm -f Makefile config.status config.cache mh-frag mt-frag
1070         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1071           rm -rf $(TARGET_SUBDIR); \
1072         else true; fi
1073         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1074         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1075         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1076         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1077         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1078
1079 local-maintainer-clean:
1080         @echo "This command is intended for maintainers to use;"
1081         @echo "it deletes files that may require special tools to rebuild."
1082
1083 clean: do-clean local-clean
1084 mostlyclean: do-mostlyclean local-clean
1085 distclean: do-distclean local-clean local-distclean
1086 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1087 maintainer-clean: local-distclean
1088 realclean: maintainer-clean
1089
1090 # This rule is used to clean specific modules.
1091 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1092 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1093         @dir=`echo $@ | sed -e 's/clean-//'`; \
1094         if [ -f ./$${dir}/Makefile ] ; then \
1095           r=`pwd`; export r; \
1096           s=`cd $(srcdir); pwd`; export s; \
1097           $(SET_LIB_PATH) \
1098           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1099         else \
1100           true; \
1101         fi
1102
1103 .PHONY: $(CLEAN_TARGET_MODULES)
1104 $(CLEAN_TARGET_MODULES):
1105         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1106         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1107         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1108           r=`pwd`; export r; \
1109           s=`cd $(srcdir); pwd`; export s; \
1110           $(SET_LIB_PATH) \
1111           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1112         else \
1113           true; \
1114         fi
1115
1116 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1117 clean-target-libgcc:
1118         test ! -d gcc/libgcc || \
1119         (cd gcc/libgcc && find . -type d -print) | \
1120         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1121         -rm -rf gcc/libgcc
1122
1123 # Check target.
1124
1125 .PHONY: check do-check
1126 check:
1127         $(MAKE) do-check NOTPARALLEL=parallel-ok
1128
1129 do-check: $(CHECK_MODULES) \
1130         $(CHECK_TARGET_MODULES) \
1131         $(CHECK_X11_MODULES) \
1132         check-gcc
1133
1134 # Automated reporting of test results.
1135
1136 warning.log: build.log
1137         $(srcdir)/contrib/warn_summary build.log > $@
1138
1139 mail-report.log:
1140         if test x'$(BOOT_CFLAGS)' != x''; then \
1141             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1142         fi; \
1143         $(srcdir)/contrib/test_summary -t >$@
1144         chmod +x $@
1145         echo If you really want to send e-mail, run ./$@ now
1146
1147 mail-report-with-warnings.log: warning.log
1148         if test x'$(BOOT_CFLAGS)' != x''; then \
1149             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1150         fi; \
1151         $(srcdir)/contrib/test_summary -t -i warning.log >$@
1152         chmod +x $@
1153         echo If you really want to send e-mail, run ./$@ now
1154
1155 # Installation targets.
1156
1157 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1158 install: $(INSTALL_TARGET) 
1159 install-cross: $(INSTALL_TARGET_CROSS) 
1160
1161 uninstall:
1162         @echo "the uninstall target is not supported in this tree"
1163
1164 source-vault:
1165         $(MAKE) -f ./release/Build-A-Release \
1166                 host=$(host_alias) source-vault
1167
1168 binary-vault:
1169         $(MAKE) -f ./release/Build-A-Release \
1170                 host=$(host_alias) target=$(target_alias)
1171
1172 vault-install:
1173         @if [ -f ./release/vault-install ] ; then \
1174           ./release/vault-install $(host_alias) $(target_alias) ; \
1175         else \
1176           true ; \
1177         fi
1178
1179 .PHONY: install.all
1180 install.all: install-no-fixedincludes
1181         @if [ -f ./gcc/Makefile ] ; then \
1182                 r=`pwd` ; export r ; \
1183                 $(SET_LIB_PATH) \
1184                 (cd ./gcc; \
1185                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1186         else \
1187                 true ; \
1188         fi
1189
1190 # inet-install is used because the I*Net wants DejaGNU installed but
1191 # not built.  Similarly, gzip is built but not installed.
1192 inet-install:
1193         $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1194
1195 # install-no-fixedincludes is used because Cygnus can not distribute
1196 # the fixed header files.
1197 .PHONY: install-no-fixedincludes
1198 install-no-fixedincludes: \
1199         installdirs \
1200         $(INSTALL_MODULES) \
1201         $(INSTALL_TARGET_MODULES) \
1202         $(INSTALL_X11_MODULES) \
1203         gcc-no-fixedincludes 
1204
1205 # Install the gcc headers files, but not the fixed include files,
1206 # which Cygnus is not allowed to distribute.  This rule is very
1207 # dependent on the workings of the gcc Makefile.in.
1208 .PHONY: gcc-no-fixedincludes
1209 gcc-no-fixedincludes:
1210         @if [ -f ./gcc/Makefile ]; then \
1211           rm -rf gcc/tmp-include; \
1212           mv gcc/include gcc/tmp-include 2>/dev/null; \
1213           mkdir gcc/include; \
1214           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1215           touch gcc/stmp-fixinc gcc/include/fixed; \
1216           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1217           r=`pwd`; export r; \
1218           s=`cd $(srcdir); pwd` ; export s; \
1219           $(SET_LIB_PATH) \
1220           (cd ./gcc; \
1221            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1222           rm -rf gcc/include; \
1223           mv gcc/tmp-include gcc/include 2>/dev/null; \
1224         else true; fi
1225
1226 # This rule is used to build the modules which are built with the
1227 # build machine's native compiler.
1228 .PHONY: $(ALL_BUILD_MODULES)
1229 $(ALL_BUILD_MODULES):
1230         dir=`echo $@ | sed -e 's/all-build-//'`; \
1231         if [ -f ./$${dir}/Makefile ] ; then \
1232           r=`pwd`; export r; \
1233           s=`cd $(srcdir); pwd`; export s; \
1234           (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1235         else \
1236           true; \
1237         fi
1238
1239 # This rule is used to configure the modules which are built with the
1240 # native tools.
1241 .PHONY: $(CONFIGURE_BUILD_MODULES)
1242 $(CONFIGURE_BUILD_MODULES):
1243         @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1244         if [ ! -d $(BUILD_SUBDIR) ]; then \
1245           true; \
1246         elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1247           true; \
1248         elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1249           if [ -d $(srcdir)/$${dir} ]; then \
1250             [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1251             r=`pwd`; export r; \
1252             s=`cd $(srcdir); pwd`; export s; \
1253             AR="$(AR_FOR_BUILD)"; export AR; \
1254             AS="$(AS_FOR_BUILD)"; export AS; \
1255             CC="$(CC_FOR_BUILD)"; export CC; \
1256             CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1257             CXX="$(CXX_FOR_BUILD)"; export CXX; \
1258             CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1259             GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1260             DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1261             LD="$(LD_FOR_BUILD)"; export LD; \
1262             LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1263             NM="$(NM_FOR_BUILD)"; export NM; \
1264             RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1265             WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1266             echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1267             cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1268             case $(srcdir) in \
1269             /* | [A-Za-z]:[\\/]*) \
1270               topdir=$(srcdir) ;; \
1271             *) \
1272               case "$(BUILD_SUBDIR)" in \
1273               .) topdir="../$(srcdir)" ;; \
1274               *) topdir="../../$(srcdir)" ;; \
1275               esac ;; \
1276             esac; \
1277             if [ "$(srcdir)" = "." ] ; then \
1278               if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1279                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1280                   if [ -f Makefile ]; then \
1281                     if $(MAKE) distclean; then \
1282                       true; \
1283                     else \
1284                       exit 1; \
1285                     fi; \
1286                   else \
1287                     true; \
1288                   fi; \
1289                 else \
1290                   exit 1; \
1291                 fi; \
1292               else \
1293                 true; \
1294               fi; \
1295               srcdiroption="--srcdir=."; \
1296               libsrcdir="."; \
1297             else \
1298               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1299               libsrcdir="$$s/$${dir}"; \
1300             fi; \
1301             if [ -f $${libsrcdir}/configure ] ; then \
1302               rm -f no-such-file skip-this-dir; \
1303               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1304                 $(BUILD_CONFIGARGS) $${srcdiroption} \
1305                 --with-build-subdir="$(BUILD_SUBDIR)"; \
1306             else \
1307               rm -f no-such-file skip-this-dir; \
1308               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1309                 $(BUILD_CONFIGARGS) $${srcdiroption} \
1310                 --with-build-subdir="$(BUILD_SUBDIR)"; \
1311             fi || exit 1; \
1312             if [ -f skip-this-dir ] ; then \
1313               sh skip-this-dir; \
1314               rm -f skip-this-dir; \
1315               cd ..; rmdir $${dir} || true; \
1316             else \
1317               true; \
1318             fi; \
1319           else \
1320             true; \
1321           fi; \
1322         else \
1323           true; \
1324         fi
1325
1326 # This rule is used to build the modules which use FLAGS_TO_PASS.  To
1327 # build a target all-X means to cd to X and make all.
1328 #
1329 # all-gui, and all-libproc are handled specially because
1330 # they are still experimental, and if they fail to build, that
1331 # shouldn't stop "make all".
1332 .PHONY: $(ALL_MODULES) all-gui all-libproc
1333 $(ALL_MODULES) all-gui all-libproc:
1334         @dir=`echo $@ | sed -e 's/all-//'`; \
1335         if [ -f ./$${dir}/Makefile ] ; then \
1336           r=`pwd`; export r; \
1337           s=`cd $(srcdir); pwd`; export s; \
1338           $(SET_LIB_PATH) \
1339           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1340         else \
1341           true; \
1342         fi
1343
1344 # These rules are used to check the modules which use FLAGS_TO_PASS.
1345 # To build a target check-X means to cd to X and make check.  Some
1346 # modules are only tested in a native toolchain.
1347
1348 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1349 $(NATIVE_CHECK_MODULES):
1350         @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1351           dir=`echo $@ | sed -e 's/check-//'`; \
1352           if [ -f ./$${dir}/Makefile ] ; then \
1353             r=`pwd`; export r; \
1354             s=`cd $(srcdir); pwd`; export s; \
1355             $(SET_LIB_PATH) \
1356             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1357           else \
1358             true; \
1359           fi; \
1360         fi
1361
1362 $(CROSS_CHECK_MODULES):
1363         @dir=`echo $@ | sed -e 's/check-//'`; \
1364         if [ -f ./$${dir}/Makefile ] ; then \
1365           r=`pwd`; export r; \
1366           s=`cd $(srcdir); pwd`; export s; \
1367           $(SET_LIB_PATH) \
1368           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1369         else \
1370           true; \
1371         fi
1372
1373 # This rule is used to install the modules which use FLAGS_TO_PASS.
1374 # To build a target install-X means to cd to X and make install.
1375 .PHONY: $(INSTALL_MODULES)
1376 $(INSTALL_MODULES): installdirs
1377         @dir=`echo $@ | sed -e 's/install-//'`; \
1378         if [ -f ./$${dir}/Makefile ] ; then \
1379           r=`pwd`; export r; \
1380           s=`cd $(srcdir); pwd`; export s; \
1381           $(SET_LIB_PATH) \
1382           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1383         else \
1384           true; \
1385         fi
1386
1387 # This rule is used to configure the modules which are built with the
1388 # target tools.
1389 .PHONY: $(CONFIGURE_TARGET_MODULES)
1390 $(CONFIGURE_TARGET_MODULES):
1391         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1392         if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1393           r=`pwd`; export r; \
1394           $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1395           if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1396             if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1397               if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1398                 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1399               else \
1400                 echo "Multilibs changed for $${dir}, reconfiguring"; \
1401                 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1402                 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1403               fi; \
1404             else \
1405               mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1406             fi; \
1407           fi; \
1408         fi; exit 0      # break command into two pieces
1409         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1410         if [ ! -d $(TARGET_SUBDIR) ]; then \
1411           true; \
1412         elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1413           true; \
1414         elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1415           if [ -d $(srcdir)/$${dir} ]; then \
1416             [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1417             r=`pwd`; export r; \
1418             s=`cd $(srcdir); pwd`; export s; \
1419             $(SET_LIB_PATH) \
1420             AR="$(AR_FOR_TARGET)"; export AR; \
1421             AS="$(AS_FOR_TARGET)"; export AS; \
1422             CC="$(CC_FOR_TARGET)"; export CC; \
1423             CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1424             CXX="$(CXX_FOR_TARGET)"; export CXX; \
1425             CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1426             GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1427             DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1428             LD="$(LD_FOR_TARGET)"; export LD; \
1429             LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1430             NM="$(NM_FOR_TARGET)"; export NM; \
1431             RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1432             WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1433             echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1434             cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
1435             case $(srcdir) in \
1436             /* | [A-Za-z]:[\\/]*) \
1437               topdir=$(srcdir) ;; \
1438             *) \
1439               case "$(TARGET_SUBDIR)" in \
1440               .) topdir="../$(srcdir)" ;; \
1441               *) topdir="../../$(srcdir)" ;; \
1442               esac ;; \
1443             esac; \
1444             if [ "$(srcdir)" = "." ] ; then \
1445               if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1446                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1447                   if [ -f Makefile ]; then \
1448                     if $(MAKE) distclean; then \
1449                       true; \
1450                     else \
1451                       exit 1; \
1452                     fi; \
1453                   else \
1454                     true; \
1455                   fi; \
1456                 else \
1457                   exit 1; \
1458                 fi; \
1459               else \
1460                 true; \
1461               fi; \
1462               srcdiroption="--srcdir=."; \
1463               libsrcdir="."; \
1464             else \
1465               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1466               libsrcdir="$$s/$${dir}"; \
1467             fi; \
1468             if [ -f $${libsrcdir}/configure ] ; then \
1469               rm -f no-such-file skip-this-dir; \
1470               CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1471                 $(TARGET_CONFIGARGS) $${srcdiroption} \
1472                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1473             else \
1474               rm -f no-such-file skip-this-dir; \
1475               CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1476                 $(TARGET_CONFIGARGS) $${srcdiroption} \
1477                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1478             fi || exit 1; \
1479             if [ -f skip-this-dir ] ; then \
1480               sh skip-this-dir; \
1481               rm -f skip-this-dir; \
1482               cd ..; rmdir $${dir} || true; \
1483             else \
1484               true; \
1485             fi; \
1486           else \
1487             true; \
1488           fi; \
1489         else \
1490           true; \
1491         fi
1492
1493 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1494 # To build a target all-X means to cd to X and make all.
1495 .PHONY: $(ALL_TARGET_MODULES)
1496 $(ALL_TARGET_MODULES):
1497         @dir=`echo $@ | sed -e 's/all-target-//'`; \
1498         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1499           r=`pwd`; export r; \
1500           s=`cd $(srcdir); pwd`; export s; \
1501           $(SET_LIB_PATH) \
1502           (cd $(TARGET_SUBDIR)/$${dir}; \
1503             $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1504         else \
1505           true; \
1506         fi
1507
1508 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1509 # To build a target install-X means to cd to X and make install.
1510 .PHONY: $(CHECK_TARGET_MODULES)
1511 $(CHECK_TARGET_MODULES):
1512         @dir=`echo $@ | sed -e 's/check-target-//'`; \
1513         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1514           r=`pwd`; export r; \
1515           s=`cd $(srcdir); pwd`; export s; \
1516           $(SET_LIB_PATH) \
1517           (cd $(TARGET_SUBDIR)/$${dir}; \
1518             $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1519         else \
1520           true; \
1521         fi
1522
1523 # This rule is used to install the modules which use
1524 # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
1525 # and make install.
1526 .PHONY: $(INSTALL_TARGET_MODULES)
1527 $(INSTALL_TARGET_MODULES): installdirs
1528         @dir=`echo $@ | sed -e 's/install-target-//'`; \
1529         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1530           r=`pwd`; export r; \
1531           s=`cd $(srcdir); pwd`; export s; \
1532           $(SET_LIB_PATH) \
1533           (cd $(TARGET_SUBDIR)/$${dir}; \
1534             $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1535         else \
1536           true; \
1537         fi
1538
1539 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1540 # To build a target all-X means to cd to X and make all.
1541 .PHONY: $(ALL_X11_MODULES)
1542 $(ALL_X11_MODULES):
1543         @dir=`echo $@ | sed -e 's/all-//'`; \
1544         if [ -f ./$${dir}/Makefile ] ; then \
1545           r=`pwd`; export r; \
1546           s=`cd $(srcdir); pwd`; export s; \
1547           $(SET_LIB_PATH) \
1548           (cd $${dir}; \
1549            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1550         else \
1551           true; \
1552         fi
1553
1554 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1555 # To build a target check-X means to cd to X and make all.
1556 .PHONY: $(CHECK_X11_MODULES)
1557 $(CHECK_X11_MODULES):
1558         @dir=`echo $@ | sed -e 's/check-//'`; \
1559         if [ -f ./$${dir}/Makefile ] ; then \
1560           r=`pwd`; export r; \
1561           s=`cd $(srcdir); pwd`; export s; \
1562           $(SET_LIB_PATH) \
1563           (cd $${dir}; \
1564            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1565         else \
1566           true; \
1567         fi
1568
1569 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1570 # To build a target install-X means to cd to X and make install.
1571 .PHONY: $(INSTALL_X11_MODULES)
1572 $(INSTALL_X11_MODULES): installdirs
1573         @dir=`echo $@ | sed -e 's/install-//'`; \
1574         if [ -f ./$${dir}/Makefile ] ; then \
1575           r=`pwd`; export r; \
1576           s=`cd $(srcdir); pwd`; export s; \
1577           $(SET_LIB_PATH) \
1578           (cd $${dir}; \
1579            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1580         else \
1581           true; \
1582         fi
1583
1584 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1585 .PHONY: all-gcc
1586 all-gcc:
1587         @if [ -f ./gcc/Makefile ] ; then \
1588           r=`pwd`; export r; \
1589           s=`cd $(srcdir); pwd`; export s; \
1590           $(SET_LIB_PATH) \
1591           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1592         else \
1593           true; \
1594         fi
1595
1596 # Building GCC uses some tools for rebuilding "source" files
1597 # like texinfo, bison/byacc, etc.  So we must depend on those.
1598 #
1599 # While building GCC, it may be necessary to run various target
1600 # programs like the assembler, linker, etc.  So we depend on
1601 # those too.
1602 #
1603 # In theory, on an SMP all those dependencies can be resolved
1604 # in parallel.
1605 #
1606 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1607 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1608         @r=`pwd`; export r; \
1609         s=`cd $(srcdir); pwd`; export s; \
1610         $(SET_LIB_PATH) \
1611         echo "Bootstrapping the compiler"; \
1612         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1613         @r=`pwd`; export r; \
1614         s=`cd $(srcdir); pwd`; export s; \
1615         case "$@" in \
1616           *bootstrap4-lean ) \
1617                         msg="Comparing stage3 and stage4 of the compiler"; \
1618                         compare=compare3-lean ;; \
1619           *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1620                         compare=compare3 ;; \
1621           *-lean )      msg="Comparing stage2 and stage3 of the compiler"; \
1622                         compare=compare-lean ;; \
1623           * )           msg="Comparing stage2 and stage3 of the compiler"; \
1624                         compare=compare ;; \
1625         esac; \
1626         $(SET_LIB_PATH) \
1627         echo "$$msg"; \
1628         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1629         @r=`pwd`; export r; \
1630         s=`cd $(srcdir); pwd` ; export s; \
1631         $(SET_LIB_PATH) \
1632         echo "Building runtime libraries"; \
1633         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1634
1635 .PHONY: cross
1636 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1637         @r=`pwd`; export r; \
1638         s=`cd $(srcdir); pwd`; export s; \
1639         $(SET_LIB_PATH) \
1640         echo "Building the C and C++ compiler"; \
1641         cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1642         @r=`pwd`; export r; \
1643         s=`cd $(srcdir); pwd` ; export s; \
1644         $(SET_LIB_PATH) \
1645         echo "Building runtime libraries"; \
1646         $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1647           LANGUAGES="c c++" all
1648
1649 .PHONY: check-gcc
1650 check-gcc:
1651         @if [ -f ./gcc/Makefile ] ; then \
1652           r=`pwd`; export r; \
1653           s=`cd $(srcdir); pwd`; export s; \
1654           $(SET_LIB_PATH) \
1655           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1656         else \
1657           true; \
1658         fi
1659
1660 .PHONY: check-c++
1661 check-c++:
1662         @if [ -f ./gcc/Makefile ] ; then \
1663           r=`pwd`; export r; \
1664           s=`cd $(srcdir); pwd`; export s; \
1665           $(SET_LIB_PATH) \
1666           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1667           $(MAKE) check-target-libstdc++-v3; \
1668         else \
1669           true; \
1670         fi 
1671
1672 .PHONY: install-gcc
1673 install-gcc:
1674         @if [ -f ./gcc/Makefile ] ; then \
1675           r=`pwd`; export r; \
1676           s=`cd $(srcdir); pwd`; export s; \
1677           $(SET_LIB_PATH) \
1678           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1679         else \
1680           true; \
1681         fi
1682
1683 .PHONY: install-gcc-cross
1684 install-gcc-cross:
1685         @if [ -f ./gcc/Makefile ] ; then \
1686           r=`pwd`; export r; \
1687           s=`cd $(srcdir); pwd`; export s; \
1688           $(SET_LIB_PATH) \
1689           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1690         else \
1691           true; \
1692         fi
1693 # EXPERIMENTAL STUFF
1694 # This rule is used to install the modules which use FLAGS_TO_PASS.
1695 # To build a target install-X means to cd to X and make install.
1696 .PHONY: install-dosrel
1697 install-dosrel: installdirs info
1698         @dir=`echo $@ | sed -e 's/install-//'`; \
1699         if [ -f ./$${dir}/Makefile ] ; then \
1700           r=`pwd`; export r; \
1701           s=`cd $(srcdir); pwd`; export s; \
1702           $(SET_LIB_PATH) \
1703           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1704         else \
1705           true; \
1706         fi
1707
1708 install-dosrel-fake:
1709
1710 ALL_GCC = all-gcc
1711 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1712 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
1713
1714 # This is a list of inter-dependencies among modules.
1715 all-apache:
1716 all-ash:
1717 all-autoconf: all-m4 all-texinfo
1718 all-automake: all-m4 all-texinfo
1719 all-bash:
1720 all-bfd: all-libiberty all-intl
1721 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1722 all-bison: all-texinfo
1723 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
1724 all-target-boehm-gc: configure-target-boehm-gc
1725 configure-target-bsp: $(ALL_GCC_C)
1726 all-target-bsp: configure-target-bsp
1727 all-byacc:
1728 all-bzip2:
1729 all-cgen: all-libiberty
1730 all-cvssrc:
1731 configure-target-cygmon: $(ALL_GCC_C)
1732 all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp
1733 all-db:
1734 all-dejagnu: all-tcl all-expect all-tk
1735 all-diff: all-libiberty
1736 all-emacs:
1737 all-emacs19: all-bison all-byacc
1738 all-etc:
1739 configure-target-examples: $(ALL_GCC_C)
1740 all-target-examples: configure-target-examples
1741 all-expect: all-tcl all-tk
1742 all-fileutils: all-libiberty
1743 all-findutils:
1744 all-find:
1745 all-flex: all-libiberty all-bison all-byacc
1746 all-gas: all-libiberty all-opcodes all-bfd all-intl
1747 all-gash: all-tcl
1748 all-gawk:
1749 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1750 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1751 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1752 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1753 all-gettext:
1754 all-gnuserv:
1755 configure-target-gperf: $(ALL_GCC_CXX)
1756 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
1757 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1758 all-grep: all-libiberty
1759 all-grez: all-libiberty all-bfd all-opcodes
1760 all-gui: all-gdb all-libproc all-target-librx
1761 all-guile:
1762 all-gzip: all-libiberty
1763 all-hello: all-libiberty
1764 all-indent:
1765 all-inet: all-tcl all-send-pr all-perl
1766 all-intl:
1767 all-ispell: all-emacs19
1768 all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
1769 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1770 configure-target-libgloss: $(ALL_GCC)
1771 all-target-libgloss: configure-target-libgloss configure-target-newlib
1772 all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1773 all-libiberty:
1774
1775 all-build-libiberty: configure-build-libiberty
1776
1777 configure-target-libffi: $(ALL_GCC_C) 
1778 all-target-libffi: configure-target-libffi
1779 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1780 all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1781 configure-target-librx: $(ALL_GCC_C)
1782 all-target-librx: configure-target-librx
1783 configure-target-libstdc++-v3: $(ALL_GCC_C)
1784 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1785 configure-target-libstub: $(ALL_GCC_C)
1786 all-target-libstub: configure-target-libstub
1787 all-libtool:
1788 configure-target-libf2c: $(ALL_GCC_C)
1789 all-target-libf2c: configure-target-libf2c all-target-libiberty
1790 configure-target-libchill: $(ALL_GCC_C)
1791 all-target-libchill: configure-target-libchill all-target-libiberty
1792 configure-target-libobjc: $(ALL_GCC_C)
1793 all-target-libobjc: configure-target-libobjc all-target-libiberty
1794 all-m4: all-libiberty all-texinfo
1795 all-make: all-libiberty
1796 all-mmalloc:
1797 configure-target-newlib: $(ALL_GCC)
1798 all-target-newlib: configure-target-newlib
1799 configure-target-libtermcap: $(ALL_GCC_C)
1800 all-target-libtermcap: configure-target-libtermcap
1801 all-opcodes: all-bfd all-libiberty all-cgen
1802 all-patch: all-libiberty
1803 all-perl:
1804 all-prms: all-libiberty
1805 configure-target-qthreads: $(ALL_GCC_C)
1806 all-target-qthreads: configure-target-qthreads
1807 all-rcs:
1808 all-readline:
1809 all-recode: all-libiberty
1810 all-sed: all-libiberty
1811 all-send-pr: all-prms
1812 all-shellutils:
1813 all-sid: all-tcl all-tk
1814 all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen
1815 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1816 all-tar: all-libiberty
1817 all-tcl:
1818 all-tcl8.1:
1819 all-tclX: all-tcl all-tk
1820 all-tk: all-tcl
1821 all-tk8.1: all-tcl8.1
1822 all-texinfo: all-libiberty
1823 all-textutils:
1824 all-tgas: all-libiberty all-bfd all-opcodes
1825 all-time:
1826 all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
1827 all-wdiff:
1828 configure-target-winsup: $(ALL_GCC_C)
1829 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
1830 all-uudecode: all-libiberty
1831 all-zip:
1832 all-zlib:
1833 configure-target-zlib: $(ALL_GCC_C)
1834 all-target-zlib: configure-target-zlib
1835 all-fastjar: all-zlib all-libiberty
1836 configure-target-fastjar: configure-target-zlib
1837 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
1838 configure-target-libiberty: $(ALL_GCC_C)
1839 all-target-libiberty: configure-target-libiberty
1840 all-target: $(ALL_TARGET_MODULES)
1841 install-target: $(INSTALL_TARGET_MODULES)
1842 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1843 install-sid: install-tcl install-tk
1844 ### other supporting targets
1845
1846 MAKEDIRS= \
1847         $(prefix) \
1848         $(exec_prefix)
1849 .PHONY: installdirs
1850 installdirs: mkinstalldirs
1851         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1852
1853 dir.info: do-install-info
1854         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1855           $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1856           mv -f dir.info.new dir.info ; \
1857         else true ; \
1858         fi
1859
1860 dist:
1861         @echo "Building a full distribution of this tree isn't done"
1862         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
1863
1864 etags tags: TAGS
1865
1866 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
1867 # ability to use several tags files at once, so there is probably no need
1868 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
1869 # (if we felt like it) have this Makefile write a piece of elisp which
1870 # the user could load to tell emacs19 where all the TAGS files we just
1871 # built are.
1872 TAGS: do-TAGS
1873
1874 # with the gnu make, this is done automatically.
1875
1876 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1877         $(SHELL) ./config.status
1878
1879 #
1880 # Support for building net releases
1881
1882 # Files in devo used in any net release.
1883 # ChangeLog omitted because it may refer to files which are not in this
1884 # distribution (perhaps it would be better to include it anyway).
1885 DEVO_SUPPORT= README Makefile.in configure configure.in \
1886         config.guess config.if config.sub config move-if-change \
1887         mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1888         COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1889         mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1890         libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1891
1892 # Files in devo/etc used in any net release.
1893 # ChangeLog omitted because it may refer to files which are not in this
1894 # distribution (perhaps it would be better to include it anyway).
1895 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1896         make-stds.texi standards.info* configure.texi configure.info* \
1897         configbuild.* configdev.*
1898
1899
1900 # When you use `make setup-dirs' or `make taz' you should always redefine
1901 # this macro.
1902 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1903
1904 # NOTE: No double quotes in the below.  It is used within shell script
1905 # as VER="$(VER)"
1906 VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1907           sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1908         elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1909           sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1910         elif test -f $(TOOL)/version.in; then \
1911           head -1 $(TOOL)/version.in; \
1912         elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1913           sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1914         else \
1915           echo VERSION; \
1916         fi`
1917 PACKAGE = $(TOOL)
1918
1919 .PHONY: taz
1920 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1921         $(MAKE) -f Makefile.in do-proto-toplev \
1922                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1923                 MD5PROG="$(MD5PROG)" \
1924                 SUPPORT_FILES="$(SUPPORT_FILES)"
1925         $(MAKE) -f Makefile.in do-md5sum \
1926                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1927                 MD5PROG="$(MD5PROG)" \
1928                 SUPPORT_FILES="$(SUPPORT_FILES)"
1929         $(MAKE) -f Makefile.in do-tar \
1930                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1931                 MD5PROG="$(MD5PROG)" \
1932                 SUPPORT_FILES="$(SUPPORT_FILES)"
1933         $(MAKE) -f Makefile.in do-bz2 \
1934                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1935                 MD5PROG="$(MD5PROG)" \
1936                 SUPPORT_FILES="$(SUPPORT_FILES)"
1937
1938 .PHONY: gdb-tar
1939 gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1940         $(MAKE) -f Makefile.in do-proto-toplev \
1941                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1942                 MD5PROG="$(MD5PROG)" \
1943                 SUPPORT_FILES="$(SUPPORT_FILES)"
1944         $(MAKE) -f Makefile.in do-md5sum \
1945                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1946                 MD5PROG="$(MD5PROG)" \
1947                 SUPPORT_FILES="$(SUPPORT_FILES)"
1948         $(MAKE) -f Makefile.in do-djunpack \
1949                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1950                 MD5PROG="$(MD5PROG)" \
1951                 SUPPORT_FILES="$(SUPPORT_FILES)"
1952         $(MAKE) -f Makefile.in do-tar \
1953                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1954                 MD5PROG="$(MD5PROG)" \
1955                 SUPPORT_FILES="$(SUPPORT_FILES)"
1956
1957 .PHONY: gdb-taz
1958 gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1959         $(MAKE) -f Makefile.in gdb-tar \
1960                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1961                 MD5PROG="$(MD5PROG)" \
1962                 SUPPORT_FILES="$(SUPPORT_FILES)"
1963         $(MAKE) -f Makefile.in do-bz2 \
1964                 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1965                 MD5PROG="$(MD5PROG)" \
1966                 SUPPORT_FILES="$(SUPPORT_FILES)"
1967
1968 .PHONY: do-proto-toplev
1969 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1970         echo "==> Making $(PACKAGE)-$(VER)/"
1971         # Take out texinfo from a few places.
1972         sed -e '/^all\.normal: /s/\all-texinfo //' \
1973             -e '/^      install-texinfo /d' \
1974         <Makefile.in >tmp
1975         mv -f tmp Makefile.in
1976         #
1977         ./configure sun4
1978         [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1979           || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1980             ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
1981             CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1982         # Make links, and run "make diststuff" or "make info" when needed.
1983         rm -rf proto-toplev ; mkdir proto-toplev
1984         set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1985         for d in $$dirs ; do \
1986           if [ -d $$d ]; then \
1987             if [ ! -f $$d/Makefile ] ; then true ; \
1988             elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1989                 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1990             elif grep '^info:' $$d/Makefile >/dev/null ; then \
1991                 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1992             fi ; \
1993             if [ -d $$d/proto-$$d.dir ]; then \
1994               ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1995             else \
1996               ln -s ../$$d proto-toplev/$$d ; \
1997             fi ; \
1998           else ln -s ../$$d proto-toplev/$$d ; fi ; \
1999         done
2000         cd etc && $(MAKE) info
2001         $(MAKE) distclean
2002         #
2003         mkdir proto-toplev/etc
2004         (cd proto-toplev/etc; \
2005          for i in $(ETC_SUPPORT); do \
2006                 ln -s ../../etc/$$i . ; \
2007          done)
2008         #
2009         # Take out texinfo from configurable dirs
2010         rm proto-toplev/configure.in
2011         sed -e '/^host_tools=/s/texinfo //' \
2012             <configure.in >proto-toplev/configure.in
2013         #
2014         mkdir proto-toplev/texinfo
2015         ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/
2016         if test -r texinfo/util/tex3patch ; then \
2017           mkdir proto-toplev/texinfo/util && \
2018           ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
2019         else true; fi
2020         chmod -R og=u . || chmod og=u `find . -print`
2021         #
2022         # Create .gmo files from .po files.
2023         for f in `find . -name '*.po' -type f -print`; do \
2024              msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2025         done
2026         #
2027         -rm -f $(PACKAGE)-$(VER)
2028         ln -s proto-toplev $(PACKAGE)-$(VER)
2029
2030 .PHONY: do-tar
2031 do-tar:
2032         echo "==> Making $(PACKAGE)-$(VER).tar"
2033         -rm -f $(PACKAGE)-$(VER).tar
2034         find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
2035                 | tar cTfh - $(PACKAGE)-$(VER).tar
2036
2037 .PHONY: do-bz2
2038 do-bz2:
2039         echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2040         -rm -f $(PACKAGE)-$(VER).tar.bz2
2041         $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
2042
2043 .PHONY: do-md5sum
2044 do-md5sum:
2045         echo "==> Adding md5 checksum to top-level directory"
2046         cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2047                 | xargs $(MD5PROG) > ../md5.sum
2048         mv md5.sum proto-toplev
2049
2050 .PHONY: do-djunpack
2051 do-djunpack:
2052         echo "==> Adding updated djunpack.bat to top-level directory"
2053         echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2054         sed < djunpack.bat > djunpack.new \
2055                 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2056         mv djunpack.new djunpack.bat
2057         -rm -f proto-toplev/djunpack.bat
2058         ln -s ../djunpack.bat proto-toplev/djunpack.bat
2059
2060 TEXINFO_SUPPORT= texinfo/texinfo.tex
2061 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2062
2063 .PHONY: gas.tar.bz2
2064 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
2065 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
2066         $(MAKE) -f Makefile.in taz TOOL=gas \
2067                 MD5PROG="$(MD5PROG)" \
2068                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2069
2070 # The FSF "binutils" release includes gprof and ld.
2071 .PHONY: binutils.tar.bz2
2072 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2073 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2074         $(MAKE) -f Makefile.in taz TOOL=binutils \
2075                 MD5PROG="$(MD5PROG)" \
2076                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2077
2078 .PHONY: gas+binutils.tar.bz2
2079 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2080 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2081         $(MAKE) -f Makefile.in taz TOOL=gas \
2082                 MD5PROG="$(MD5PROG)" \
2083                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2084
2085 GNATS_SUPPORT_DIRS=include libiberty send-pr
2086 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2087         $(MAKE) -f  Makefile.in taz TOOL=gnats \
2088                 MD5PROG="$(MD5PROG)" \
2089                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2090
2091 .PHONY: gdb.tar.bz2
2092 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2093 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2094         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2095                 MD5PROG="$(MD5PROG)" \
2096                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2097 .PHONY: gdb.tar
2098 gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2099         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2100                 MD5PROG="$(MD5PROG)" \
2101                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2102
2103 DEJAGNU_SUPPORT_DIRS=  tcl expect libiberty
2104 .PHONY: dejagnu.tar.bz2
2105 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2106         $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2107                 MD5PROG="$(MD5PROG)" \
2108                 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2109
2110 .PHONY: gdb+dejagnu.tar.bz2
2111 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2112 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2113         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2114                 MD5PROG="$(MD5PROG)" \
2115                 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2116 .PHONY: gdb+dejagnu.tar
2117 gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2118         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2119                 MD5PROG="$(MD5PROG)" \
2120                 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2121
2122 .PHONY: insight.tar.bz2
2123 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2124 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2125         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2126                 MD5PROG="$(MD5PROG)" \
2127                 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2128 .PHONY: insight.tar
2129 insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2130         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2131                 MD5PROG="$(MD5PROG)" \
2132                 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2133
2134 .PHONY: insight+dejagnu.tar.bz2
2135 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2136 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2137         $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2138                 MD5PROG="$(MD5PROG)" \
2139                 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2140 .PHONY: insight+dejagnu.tar
2141 insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2142         $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2143                 MD5PROG="$(MD5PROG)" \
2144                 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2145
2146 .PHONY: newlib.tar.bz2
2147 NEWLIB_SUPPORT_DIRS=libgloss
2148 # taz configures for the sun4 target which won't configure newlib.
2149 # We need newlib configured so that the .info files are made.
2150 # Unfortunately, it is not enough to just configure newlib separately:
2151 # taz will build the .info files but since SUBDIRS won't contain newlib,
2152 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2153 # used in building the .info files, eg: *.def, *.ref).
2154 # The problem isn't solvable however without a lot of extra work because
2155 # target libraries are built in subdir $(target_alias) which gets nuked during
2156 # the make distclean.  For now punt on the issue of shipping newlib info files
2157 # with newlib net releases and wait for a day when some native target (sun4?)
2158 # supports newlib (if only minimally).
2159 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2160         $(MAKE) -f Makefile.in taz TOOL=newlib \
2161                 MD5PROG="$(MD5PROG)" \
2162                 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2163                 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2164
2165 .NOEXPORT:
2166 MAKEOVERRIDES=
2167
2168 # end of Makefile.in