This commit was generated by cvs2svn to track changes on a CVS vendor
[platform/upstream/binutils.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 #   Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 Free Software Foundation
4 #
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #
19
20 srcdir = .
21
22 prefix = /usr/local
23 exec_prefix = $(prefix)
24
25 bindir=${exec_prefix}/bin
26 sbindir=${exec_prefix}/sbin
27 libexecdir=${exec_prefix}/libexec
28 datadir=${prefix}/share
29 sysconfdir=${prefix}/etc
30 sharedstatedir=${prefix}/com
31 localstatedir=${prefix}/var
32 libdir=${exec_prefix}/lib
33 includedir=${prefix}/include
34 oldincludedir=/usr/include
35 infodir=${prefix}/info
36 mandir=${prefix}/man
37
38 tooldir = $(exec_prefix)/$(target)
39
40 program_transform_name =
41
42 man1dir = $(mandir)/man1
43 man2dir = $(mandir)/man2
44 man3dir = $(mandir)/man3
45 man4dir = $(mandir)/man4
46 man5dir = $(mandir)/man5
47 man6dir = $(mandir)/man6
48 man7dir = $(mandir)/man7
49 man8dir = $(mandir)/man8
50 man9dir = $(mandir)/man9
51 GDB_NLM_DEPS = 
52
53 SHELL = /bin/sh
54
55 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
56 # cygwin32 host.
57 INSTALL_PROGRAM_ARGS =
58
59 INSTALL = $(SHELL) $$s/install-sh -c
60 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
61 INSTALL_SCRIPT = $(INSTALL)
62 INSTALL_DATA = $(INSTALL) -m 644
63
64 INSTALL_DOSREL = install-dosrel-fake
65
66 AS = as
67 AR = ar
68 AR_FLAGS = rc
69 CC = cc
70
71 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
72 # here so that they can be overridden by Makefile fragments.
73 HOST_CC = $(CC_FOR_BUILD)
74 HOST_PREFIX = 
75 HOST_PREFIX_1 = loser-
76
77 # These flag values are normally overridden by the configure script.
78 CFLAGS = -g
79 CXXFLAGS = -g -O2
80
81 LIBCFLAGS = $(CFLAGS)
82 CFLAGS_FOR_TARGET = $(CFLAGS)
83 LDFLAGS_FOR_TARGET = 
84 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
85 PICFLAG = 
86 PICFLAG_FOR_TARGET = 
87
88 # start-sanitize-chill
89 CHILLFLAGS = $(CFLAGS)
90 CHILL_LIB = -lchill
91 # end-sanitize-chill
92 CXX = c++
93
94 # Use -O2 to stress test the compiler.
95 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
96 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
97 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
98
99 RANLIB = ranlib
100
101 DLLTOOL = dlltool
102 WINDRES = windres
103
104 NM = nm
105
106 LD = ld
107
108 # Not plain GZIP, since gzip looks there for extra command-line options.
109 GZIPPROG = gzip
110
111 # These values are substituted by configure.
112 DEFAULT_YACC = yacc
113 DEFAULT_LEX = lex
114
115 BISON = `if [ -f $$r/bison/bison ] ; then \
116             echo $$r/bison/bison -L $$s/bison/ ; \
117          else \
118             echo bison ; \
119          fi`
120
121 YACC = `if [ -f $$r/bison/bison ] ; then \
122             echo $$r/bison/bison -y -L $$s/bison/ ; \
123         elif [ -f $$r/byacc/byacc ] ; then \
124             echo $$r/byacc/byacc ; \
125         else \
126             echo ${DEFAULT_YACC} ; \
127         fi`
128
129 LEX = `if [ -f $$r/flex/flex ] ; \
130         then echo $$r/flex/flex ; \
131         else echo ${DEFAULT_LEX} ; fi`
132
133 M4 = `if [ -f $$r/m4/m4 ] ; \
134         then echo $$r/m4/m4 ; \
135         else echo m4 ; fi`
136
137 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
138         then echo $$r/texinfo/makeinfo/makeinfo ; \
139         else echo makeinfo ; fi`
140
141 # This just becomes part of the MAKEINFO definition passed down to
142 # sub-makes.  It lets flags be given on the command line while still
143 # using the makeinfo from the object tree.
144 MAKEINFOFLAGS =
145
146 EXPECT = `if [ -f $$r/expect/expect ] ; \
147         then echo $$r/expect/expect ; \
148         else echo expect ; fi`
149
150 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
151         then echo $$s/dejagnu/runtest ; \
152         else echo runtest ; fi`
153
154
155 # compilers to use to create programs which must be run in the build
156 # environment.
157 CC_FOR_BUILD = $(CC)
158 CXX_FOR_BUILD = $(CXX)
159
160 SUBDIRS = "this is set via configure, don't edit this"
161 OTHERS = 
162
163 # This is set by the configure script to the list of directories which
164 # should be built using the target tools.
165 TARGET_CONFIGDIRS = libiberty libgloss newlib libio libstdc++ winsup opcodes cygmon
166
167 # Target libraries are put under this directory:
168 # Changed by configure to $(target_alias) if cross.
169 TARGET_SUBDIR = .
170
171 # This is set by the configure script to the arguments passed to configure.
172 CONFIG_ARGUMENTS = 
173
174 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
175 # was used.
176 SET_LIB_PATH =
177
178 # This is the name of the environment variable used for the path to
179 # the libraries.  This may be changed by configure.in.
180 RPATH_ENVVAR = LD_LIBRARY_PATH
181
182 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
183 REALLY_SET_LIB_PATH = \
184   $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
185   export $(RPATH_ENVVAR);
186
187 ALL = all.normal
188 INSTALL_TARGET = installdirs \
189         install-gcc \
190         $(INSTALL_MODULES) \
191         $(INSTALL_TARGET_MODULES) \
192         $(INSTALL_X11_MODULES) \
193         $(INSTALL_DOSREL)
194
195
196 CC_FOR_TARGET = ` \
197   if [ -f $$r/gcc/xgcc ] ; then \
198     if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
199       if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
200         echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
201       else \
202         echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
203       fi; \
204     else \
205       echo $$r/gcc/xgcc -B$$r/gcc/; \
206     fi; \
207   else \
208     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
209       echo $(CC); \
210     else \
211       t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
212     fi; \
213   fi`
214
215 # If CC_FOR_TARGET is not overriden on the command line, then this
216 # variable is passed down to the gcc Makefile, where it is used to
217 # build libgcc2.a.  We define it here so that it can itself be
218 # overridden on the command line.
219 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
220
221 # start-sanitize-chill
222 CHILL_FOR_TARGET = ` \
223   if [ -f $$r/gcc/xgcc ] ; then \
224     echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
225   else \
226     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
227       echo $(CC); \
228     else \
229       t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
230     fi; \
231   fi`
232
233 # end-sanitize-chill
234
235 CXX_FOR_TARGET = ` \
236   if [ -f $$r/gcc/xgcc ] ; then \
237     if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
238       if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
239         echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
240       else \
241         echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
242       fi; \
243     else \
244       echo $$r/gcc/xgcc -B$$r/gcc/; \
245     fi; \
246   else \
247     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
248       echo $(CXX); \
249     else \
250       t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \
251     fi; \
252   fi`
253
254 AS_FOR_TARGET = ` \
255   if [ -f $$r/gas/as-new ] ; then \
256     echo $$r/gas/as-new ; \
257   else \
258     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
259       echo $(AS); \
260     else \
261        t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
262     fi; \
263   fi`
264
265 LD_FOR_TARGET = ` \
266   if [ -f $$r/ld/ld-new ] ; then \
267     echo $$r/ld/ld-new ; \
268   else \
269     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
270       echo $(LD); \
271     else \
272        t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
273     fi; \
274   fi`
275
276 DLLTOOL_FOR_TARGET = ` \
277   if [ -f $$r/binutils/dlltool ] ; then \
278     echo $$r/binutils/dlltool ; \
279   else \
280     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
281       echo $(DLLTOOL); \
282     else \
283        t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
284     fi; \
285   fi`
286
287 WINDRES_FOR_TARGET = ` \
288   if [ -f $$r/binutils/windres ] ; then \
289     echo $$r/binutils/windres ; \
290   else \
291     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
292       echo $(WINDRES); \
293     else \
294        t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
295     fi; \
296   fi`
297
298 AR_FOR_TARGET = ` \
299   if [ -f $$r/binutils/ar ] ; then \
300     echo $$r/binutils/ar ; \
301   else \
302     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
303       echo $(AR); \
304     else \
305        t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
306     fi; \
307   fi`
308
309 RANLIB_FOR_TARGET = ` \
310   if [ -f $$r/binutils/ranlib ] ; then \
311     echo $$r/binutils/ranlib ; \
312   else \
313     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
314       echo $(RANLIB); \
315     else \
316        t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
317     fi; \
318   fi`
319
320 NM_FOR_TARGET = ` \
321   if [ -f $$r/binutils/nm-new ] ; then \
322     echo $$r/binutils/nm-new ; \
323   else \
324     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
325       echo $(NM); \
326     else \
327        t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
328     fi; \
329   fi`
330
331 #### host and target specific makefile fragments come in here.
332 ###
333
334 # Flags to pass down to all sub-makes.
335 # Please keep these in alphabetical order.
336 BASE_FLAGS_TO_PASS = \
337         "AR_FLAGS=$(AR_FLAGS)" \
338         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
339         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
340         "BISON=$(BISON)" \
341         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
342         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
343         "CFLAGS=$(CFLAGS)" \
344         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
345         $(start-sanitize-chill)\
346         "CHILLFLAGS=$(CHILLFLAGS)" \
347         "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
348         "CHILL_LIB=$(CHILL_LIB)" \
349         $(end-sanitize-chill)\
350         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
351         "CXXFLAGS=$(CXXFLAGS)" \
352         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
353         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
354         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
355         "INSTALL=$(INSTALL)" \
356         "INSTALL_DATA=$(INSTALL_DATA)" \
357         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
358         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
359         "LDFLAGS=$(LDFLAGS)" \
360         "LEX=$(LEX)" \
361         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
362         "LIBCFLAGS=$(LIBCFLAGS)" \
363         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
364         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
365         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
366         "M4=$(M4)" \
367         "MAKE=$(MAKE)" \
368         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
369         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
370         "PICFLAG=$(PICFLAG)" \
371         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
372         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
373         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
374         "SHELL=$(SHELL)" \
375         "EXPECT=$(EXPECT)" \
376         "RUNTEST=$(RUNTEST)" \
377         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
378         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
379         "YACC=$(YACC)" \
380         "bindir=$(bindir)" \
381         "datadir=$(datadir)" \
382         "exec_prefix=$(exec_prefix)" \
383         "includedir=$(includedir)" \
384         "infodir=$(infodir)" \
385         "libdir=$(libdir)" \
386         "libexecdir=$(libexecdir)" \
387         "lispdir=$(lispdir)" \
388         "localstatedir=$(localstatedir)" \
389         "mandir=$(mandir)" \
390         "oldincludedir=$(oldincludedir)" \
391         "prefix=$(prefix)" \
392         "sbindir=$(sbindir)" \
393         "sharedstatedir=$(sharedstatedir)" \
394         "sysconfdir=$(sysconfdir)" \
395         "tooldir=$(tooldir)"
396
397 # Flags to pass down to most sub-makes, in which we're building with
398 # the host environment.
399 # If any variables are added here, they must be added to do-*, below.
400 EXTRA_HOST_FLAGS = \
401         'AR=$(AR)' \
402         'AS=$(AS)' \
403         'CC=$(CC)' \
404         'CXX=$(CXX)' \
405         'DLLTOOL=$(DLLTOOL)' \
406         'LD=$(LD)' \
407         'NM=$(NM)' \
408         'RANLIB=$(RANLIB)' \
409         'WINDRES=$(WINDRES)'
410
411 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
412
413 # Flags that are concerned with the location of the X11 include files
414 # and library files
415 #
416 # NOTE: until the top-level is getting the values via autoconf, it only
417 # causes problems to have this top-level Makefile overriding the autoconf-set
418 # values in child directories.  Only variables that don't conflict with
419 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
420 #
421 X11_FLAGS_TO_PASS = \
422         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
423         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
424
425 # Flags to pass down to makes which are built with the target environment.
426 # The double $ decreases the length of the command line; the variables
427 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
428 # If any variables are added here, they must be added to do-*, below.
429 EXTRA_TARGET_FLAGS = \
430         'AR=$$(AR_FOR_TARGET)' \
431         'AS=$$(AS_FOR_TARGET)' \
432         'CC=$$(CC_FOR_TARGET)' \
433         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
434         'CXX=$$(CXX_FOR_TARGET)' \
435         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
436         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
437         'LD=$$(LD_FOR_TARGET)' \
438         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
439         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
440         'NM=$$(NM_FOR_TARGET)' \
441         'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
442         'RANLIB=$$(RANLIB_FOR_TARGET)' \
443         'WINDRES=$$(WINDRES_FOR_TARGET)'
444
445 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
446
447 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
448 # unfortunately needs the native compiler and the target ar and
449 # ranlib.
450 # If any variables are added here, they must be added to do-*, below.
451 # The HOST_* variables are a special case, which are used for the gcc
452 # cross-building scheme.
453 EXTRA_GCC_FLAGS = \
454         'AR=$$(AR_FOR_TARGET)' \
455         'AS=$(AS)' \
456         'CC=$(CC)' \
457         'CXX=$(CXX)' \
458         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
459         'HOST_CC=$(CC_FOR_BUILD)' \
460         'HOST_PREFIX=$(HOST_PREFIX)' \
461         'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
462         'NM=$(NM)' \
463         'RANLIB=$$(RANLIB_FOR_TARGET)' \
464         'WINDRES=$$(WINDRES_FOR_TARGET)' \
465         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
466         "`if test x'$(LANGUAGES)' != x; then echo 'LANGUAGES=$(LANGUAGES)'; else echo 'XFOO=bar'; fi`" \
467         "`if test x'$(STMP_FIXPROTO)' != x; then echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)'; else echo 'XFOO=bar'; fi`" \
468         "`if test x'$(LIMITS_H_TEST)' != x; then echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)'; else echo 'XFOO=bar'; fi`" \
469         "`if test x'$(LIBGCC1_TEST)' != x; then echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)'; else echo 'XFOO=bar'; fi`" \
470         "`if test x'$(LIBGCC2_CFLAGS)' != x; then echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
471         "`if test x'$(LIBGCC2_DEBUG_CFLAGS)' != x; then echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
472         "`if test x'$(LIBGCC2_INCLUDES)' != x; then echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)'; else echo 'XFOO=bar'; fi`" \
473         "`if test x'$(ENQUIRE)' != x; then echo 'ENQUIRE=$(ENQUIRE)'; else echo 'XFOO=bar'; fi`" \
474         "`if test x'$(BOOT_CFLAGS)' != x; then echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)'; else echo 'XFOO=bar'; fi`"
475
476 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
477
478 # This is a list of the targets for all of the modules which are compiled
479 # using $(FLAGS_TO_PASS).
480 ALL_MODULES = \
481         all-apache \
482         all-autoconf \
483         all-automake \
484         all-bash \
485         all-bfd \
486         all-binutils \
487         all-bison \
488         all-byacc \
489         all-cvssrc \
490         all-db \
491         all-dejagnu \
492         all-diff \
493         all-dosutils \
494         all-etc \
495         all-fileutils \
496         all-findutils \
497         all-find \
498         all-flex \
499         all-gas \
500         all-gawk \
501         all-gnuserv \
502         all-gprof \
503         all-grep \
504         all-grez \
505         all-gzip \
506         all-hello \
507         $(start-sanitize-ide) \
508         all-ilu \
509         $(end-sanitize-ide) \
510         all-indent \
511         all-inet \
512         all-ispell \
513         all-itcl \
514         $(start-sanitize-ide) \
515         all-jstools \
516         $(end-sanitize-ide) \
517         all-ld \
518         all-libgui \
519         all-libiberty \
520         $(start-sanitize-ide) \
521         all-libide \
522         $(end-sanitize-ide) \
523         all-m4 \
524         all-make \
525         all-mmalloc \
526         all-opcodes \
527         all-patch \
528         all-perl \
529         all-prms \
530         all-rcs \
531         all-readline \
532         all-release \
533         all-recode \
534         all-sed \
535         all-send-pr \
536         all-shellutils \
537         all-sim \
538         all-snavigator \
539         all-tar \
540         all-tcl \
541         all-texinfo \
542         all-textutils \
543         all-tgas \
544         all-time \
545         all-uudecode \
546         $(start-sanitize-ide) \
547         all-vmake \
548         $(end-sanitize-ide) \
549         all-wdiff 
550
551 # This is a list of the check targets for all of the modules which are
552 # compiled using $(FLAGS_TO_PASS).
553 #
554 # The list is in two parts.  The first lists those tools which
555 # are tested as part of the host's native tool-chain, and not
556 # tested in a cross configuration.
557 NATIVE_CHECK_MODULES = \
558         check-bison \
559         check-byacc \
560         check-flex
561
562 CROSS_CHECK_MODULES = \
563         check-apache \
564         check-autoconf \
565         check-automake \
566         check-bash \
567         check-bfd \
568         check-binutils \
569         check-cvssrc \
570         check-db \
571         check-dejagnu \
572         check-diff \
573         check-etc \
574         check-fileutils \
575         check-findutils \
576         check-find \
577         check-gas \
578         check-gawk \
579         check-gnuserv \
580         check-gprof \
581         check-grep \
582         check-gzip \
583         check-hello \
584         $(start-sanitize-ide) \
585         check-ilu \
586         $(end-sanitize-ide) \
587         check-indent \
588         check-inet \
589         check-ispell \
590         check-itcl \
591         $(start-sanitize-ide) \
592         check-jstools \
593         $(end-sanitize-ide) \
594         check-ld \
595         check-libgui \
596         check-libiberty \
597         $(start-sanitize-ide) \
598         check-libide \
599         $(end-sanitize-ide) \
600         check-m4 \
601         check-make \
602         check-mmcheckoc \
603         check-opcodes \
604         check-patch \
605         check-perl \
606         check-prms \
607         check-rcs \
608         check-readline \
609         check-recode \
610         check-sed \
611         check-send-pr \
612         check-shellutils \
613         check-snavigator \
614         check-sim \
615         check-tar \
616         check-tcl \
617         check-texinfo \
618         check-textutils \
619         check-tgas \
620         check-time \
621         check-uudecode \
622         $(start-sanitize-ide) \
623         check-vmake \
624         $(end-sanitize-ide) \
625         check-wdiff
626
627 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
628
629 # This is a list of the install targets for all of the modules which are
630 # compiled using $(FLAGS_TO_PASS).
631 # We put install-opcodes before install-binutils because the installed
632 # binutils might be on PATH, and they might need the shared opcodes
633 # library.
634 # We put install-tcl before install-itcl because itcl wants to run a
635 # program on installation which uses the Tcl libraries.
636 INSTALL_MODULES = \
637         install-apache \
638         install-autoconf \
639         install-automake \
640         install-bash \
641         install-bfd \
642         install-opcodes \
643         install-binutils \
644         install-bison \
645         install-byacc \
646         install-cvssrc \
647         install-db \
648         install-dejagnu \
649         install-diff \
650         install-dosutils \
651         install-etc \
652         install-fileutils \
653         install-findutils \
654         install-find \
655         install-flex \
656         install-gas \
657         install-gawk \
658         install-gnuserv \
659         install-gprof \
660         install-grep \
661         install-grez \
662         install-gzip \
663         install-hello \
664         $(start-sanitize-ide) \
665         install-ilu \
666         $(end-sanitize-ide) \
667         install-indent \
668         install-inet \
669         install-ispell \
670         install-tcl \
671         install-itcl \
672         $(start-sanitize-ide) \
673         install-jstools \
674         $(end-sanitize-ide) \
675         install-ld \
676         install-libgui \
677         install-libiberty \
678         $(start-sanitize-ide) \
679         install-libide \
680         $(end-sanitize-ide) \
681         install-m4 \
682         install-make \
683         install-mmalloc \
684         install-patch \
685         install-perl \
686         install-prms \
687         install-rcs \
688         install-readline \
689         install-recode \
690         install-sed \
691         install-send-pr \
692         install-shellutils \
693         install-sim \
694         install-snavigator \
695         install-tar \
696         install-texinfo \
697         install-textutils \
698         install-tgas \
699         install-time \
700         install-uudecode \
701         $(start-sanitize-ide) \
702         install-vmake \
703         $(end-sanitize-ide) \
704         install-wdiff
705
706 # This is a list of the targets for all of the modules which are compiled
707 # using $(X11_FLAGS_TO_PASS).
708 ALL_X11_MODULES = \
709         all-emacs \
710         all-emacs19 \
711         all-gdb \
712         all-expect \
713         all-gash \
714         all-guile \
715         all-tclX \
716         all-tk \
717         all-tix
718
719 # This is a list of the check targets for all of the modules which are
720 # compiled using $(X11_FLAGS_TO_PASS).
721 CHECK_X11_MODULES = \
722         check-emacs \
723         check-gdb \
724         check-guile \
725         check-expect \
726         check-gash \
727         check-tclX \
728         check-tk \
729         check-tix
730
731 # This is a list of the install targets for all the modules which are
732 # compiled using $(X11_FLAGS_TO_PASS).
733 INSTALL_X11_MODULES = \
734         install-emacs \
735         install-emacs19 \
736         install-gdb \
737         install-guile \
738         install-expect \
739         install-gash \
740         install-tclX \
741         install-tk \
742         install-tix
743
744 # This is a list of the targets for all of the modules which are compiled
745 # using $(TARGET_FLAGS_TO_PASS).
746 ALL_TARGET_MODULES = \
747         all-target-libio \
748         all-target-libstdc++ \
749         all-target-newlib \
750         all-target-winsup \
751         all-target-libgloss \
752         all-target-libiberty \
753         all-target-gperf \
754         all-target-examples \
755         all-target-cygmon
756
757 # This is a list of the configure targets for all of the modules which
758 # are compiled using the target tools.
759 CONFIGURE_TARGET_MODULES = \
760         configure-target-libio \
761         configure-target-libstdc++ \
762         configure-target-newlib \
763         configure-target-winsup \
764         configure-target-libgloss \
765         configure-target-libiberty \
766         configure-target-gperf \
767         configure-target-examples \
768         configure-target-cygmon
769
770 # This is a list of the check targets for all of the modules which are
771 # compiled using $(TARGET_FLAGS_TO_PASS).
772 CHECK_TARGET_MODULES = \
773         check-target-libio \
774         check-target-libstdc++ \
775         check-target-newlib \
776         check-target-winsup \
777         check-target-libiberty \
778         check-target-gperf
779
780 # This is a list of the install targets for all of the modules which are
781 # compiled using $(TARGET_FLAGS_TO_PASS).
782 INSTALL_TARGET_MODULES = \
783         install-target-libio \
784         install-target-libstdc++ \
785         install-target-newlib \
786         install-target-winsup \
787         install-target-libgloss \
788         install-target-libiberty \
789         install-target-gperf
790
791 # This is a list of the targets for which we can do a clean-{target}.
792 CLEAN_MODULES = \
793         clean-apache \
794         clean-autoconf \
795         clean-automake \
796         clean-bash \
797         clean-bfd \
798         clean-binutils \
799         clean-bison \
800         clean-byacc \
801         clean-cvssrc \
802         clean-db \
803         clean-dejagnu \
804         clean-diff \
805         clean-dosutils \
806         clean-etc \
807         clean-fileutils \
808         clean-findutils \
809         clean-find \
810         clean-flex \
811         clean-gas \
812         clean-gawk \
813         clean-gnuserv \
814         clean-gprof \
815         clean-grep \
816         clean-grez \
817         clean-gzip \
818         clean-hello \
819         $(start-sanitize-ide) \
820         clean-ilu \
821         $(end-sanitize-ide) \
822         clean-indent \
823         clean-inet \
824         clean-ispell \
825         clean-itcl \
826         $(start-sanitize-ide) \
827         clean-jstools \
828         $(end-sanitize-ide) \
829         clean-ld \
830         clean-libgui \
831         clean-libiberty \
832         $(start-sanitize-ide) \
833         clean-libide \
834         $(end-sanitize-ide) \
835         clean-m4 \
836         clean-make \
837         clean-mmalloc \
838         clean-opcodes \
839         clean-patch \
840         clean-perl \
841         clean-prms \
842         clean-rcs \
843         clean-readline \
844         clean-release \
845         clean-recode \
846         clean-sed \
847         clean-send-pr \
848         clean-shellutils \
849         clean-sim \
850         clean-snavigator \
851         clean-tar \
852         clean-tcl \
853         clean-texinfo \
854         clean-textutils \
855         clean-tgas \
856         clean-time \
857         clean-uudecode \
858         $(start-sanitize-ide) \
859         clean-vmake \
860         $(end-sanitize-ide) \
861         clean-wdiff
862
863 # All of the target modules that can be cleaned
864 CLEAN_TARGET_MODULES = \
865         clean-target-libio \
866         clean-target-libstdc++ \
867         clean-target-newlib \
868         clean-target-winsup \
869         clean-target-libgloss \
870         clean-target-libiberty \
871         clean-target-gperf \
872         clean-target-examples \
873         clean-target-cygmon
874
875 # All of the x11 modules that can be cleaned
876 CLEAN_X11_MODULES = \
877         clean-emacs \
878         clean-emacs19 \
879         clean-gdb \
880         clean-expect \
881         clean-gash \
882         clean-guile \
883         clean-tclX \
884         clean-tk \
885         clean-tix
886
887 # The first rule in the file had better be this one.  Don't put any above it.
888 all: all.normal
889 .PHONY: all
890
891 # The target built for a native build.
892 .PHONY: all.normal
893 all.normal: \
894         $(ALL_MODULES) \
895         $(ALL_X11_MODULES) \
896         $(ALL_TARGET_MODULES) \
897         all-gcc
898
899 # Do a target for all the subdirectories.  A ``make do-X'' will do a
900 # ``make X'' in all subdirectories (because, in general, there is a
901 # dependency (below) of X upon do-X, a ``make X'' will also do this,
902 # but it may do additional work as well).
903 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
904 # because it is so large that it can easily overflow the command line
905 # length limit on some systems.
906 DO_X = \
907         do-clean \
908         do-distclean \
909         do-dvi \
910         do-info \
911         do-install-info \
912         do-installcheck \
913         do-mostlyclean \
914         do-maintainer-clean \
915         do-TAGS
916 .PHONY: $(DO_X)
917 $(DO_X):
918         @target=`echo $@ | sed -e 's/^do-//'`; \
919         r=`pwd`; export r; \
920         s=`cd $(srcdir); pwd`; export s; \
921         $(SET_LIB_PATH) \
922         for i in $(SUBDIRS) -dummy-; do \
923           if [ -f ./$$i/Makefile ]; then \
924             case $$i in \
925             gcc) \
926               for flag in $(EXTRA_GCC_FLAGS); do \
927                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
928               done; \
929               ;; \
930             *) \
931               for flag in $(EXTRA_HOST_FLAGS); do \
932                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
933               done; \
934               ;; \
935             esac ; \
936             export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
937             if (cd ./$$i; \
938                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
939                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
940                         "RANLIB=$${RANLIB}" \
941                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
942                         $${target}); \
943             then true; else exit 1; fi; \
944           else true; fi; \
945         done
946         @target=`echo $@ | sed -e 's/^do-//'`; \
947         r=`pwd`; export r; \
948         s=`cd $(srcdir); pwd`; export s; \
949         $(SET_LIB_PATH) \
950         for i in $(TARGET_CONFIGDIRS) -dummy-; do \
951           if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
952             for flag in $(EXTRA_TARGET_FLAGS); do \
953                 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
954             done; \
955             export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
956             if (cd $(TARGET_SUBDIR)/$$i; \
957                 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
958                         "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
959                         "RANLIB=$${RANLIB}" \
960                         "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
961                         $${target}); \
962             then true; else exit 1; fi; \
963           else true; fi; \
964         done
965
966 # Here are the targets which correspond to the do-X targets.
967
968 .PHONY: info installcheck dvi install-info
969 .PHONY: clean distclean mostlyclean maintainer-clean realclean
970 .PHONY: local-clean local-distclean local-maintainer-clean
971 info: do-info
972 installcheck: do-installcheck
973 dvi: do-dvi
974
975 # Make sure makeinfo is built before we do a `make info'.
976 do-info: all-texinfo
977
978 install-info: do-install-info dir.info
979         s=`cd $(srcdir); pwd`; export s; \
980         if [ -f dir.info ] ; then \
981           $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
982         else true ; fi
983
984 local-clean:
985         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
986
987 local-distclean:
988         -rm -f Makefile config.status config.cache
989         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
990           rm -rf $(TARGET_SUBDIR); \
991         else true; fi
992
993 local-maintainer-clean:
994         @echo "This command is intended for maintainers to use;"
995         @echo "it deletes files that may require special tools to rebuild."
996
997 clean: do-clean local-clean
998 mostlyclean: do-mostlyclean local-clean
999 distclean: do-distclean local-clean local-distclean
1000 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1001 maintainer-clean: local-distclean
1002 realclean: maintainer-clean
1003
1004 # This rule is used to clean specific modules.
1005 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1006 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1007         @dir=`echo $@ | sed -e 's/clean-//'`; \
1008         if [ -f ./$${dir}/Makefile ] ; then \
1009           r=`pwd`; export r; \
1010           s=`cd $(srcdir); pwd`; export s; \
1011           $(SET_LIB_PATH) \
1012           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1013         else \
1014           true; \
1015         fi
1016
1017 .PHONY: $(CLEAN_TARGET_MODULES)
1018 $(CLEAN_TARGET_MODULES):
1019         @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1020         rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1021         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1022           r=`pwd`; export r; \
1023           s=`cd $(srcdir); pwd`; export s; \
1024           $(SET_LIB_PATH) \
1025           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1026         else \
1027           true; \
1028         fi
1029
1030 clean-target: $(CLEAN_TARGET_MODULES)
1031
1032 # Check target.
1033
1034 .PHONY: check
1035 check: $(CHECK_MODULES) \
1036         $(CHECK_TARGET_MODULES) \
1037         $(CHECK_X11_MODULES) \
1038         check-gcc
1039
1040 # Installation targets.
1041
1042 .PHONY: install uninstall source-vault binary-vault vault-install
1043 install: $(INSTALL_TARGET) 
1044
1045 uninstall:
1046         @echo "the uninstall target is not supported in this tree"
1047
1048 source-vault:
1049         $(MAKE) -f ./release/Build-A-Release \
1050                 host=$(host_alias) source-vault
1051
1052 binary-vault:
1053         $(MAKE) -f ./release/Build-A-Release \
1054                 host=$(host_alias) target=$(target_alias)
1055
1056 vault-install:
1057         @if [ -f ./release/vault-install ] ; then \
1058           ./release/vault-install $(host_alias) $(target_alias) ; \
1059         else \
1060           true ; \
1061         fi
1062
1063 .PHONY: install.all
1064 install.all: install-no-fixedincludes
1065         @if [ -f ./gcc/Makefile ] ; then \
1066                 r=`pwd` ; export r ; \
1067                 $(SET_LIB_PATH) \
1068                 (cd ./gcc; \
1069                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1070         else \
1071                 true ; \
1072         fi
1073
1074 # inet-install is used because the I*Net wants DejaGNU installed but
1075 # not built.  Similarly, gzip is built but not installed.
1076 inet-install:
1077         $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1078
1079 # install-no-fixedincludes is used because Cygnus can not distribute
1080 # the fixed header files.
1081 .PHONY: install-no-fixedincludes
1082 install-no-fixedincludes: \
1083         installdirs \
1084         $(INSTALL_MODULES) \
1085         $(INSTALL_TARGET_MODULES) \
1086         $(INSTALL_X11_MODULES) \
1087         gcc-no-fixedincludes 
1088
1089 # Install the gcc headers files, but not the fixed include files,
1090 # which Cygnus is not allowed to distribute.  This rule is very
1091 # dependent on the workings of the gcc Makefile.in.
1092 .PHONY: gcc-no-fixedincludes
1093 gcc-no-fixedincludes:
1094         @if [ -f ./gcc/Makefile ]; then \
1095           rm -rf gcc/tmp-include; \
1096           mv gcc/include gcc/tmp-include 2>/dev/null; \
1097           mkdir gcc/include; \
1098           cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1099           touch gcc/stmp-fixinc gcc/include/fixed; \
1100           rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1101           r=`pwd`; export r; \
1102           s=`cd $(srcdir); pwd` ; export s; \
1103           $(SET_LIB_PATH) \
1104           (cd ./gcc; \
1105            $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1106           rm -rf gcc/include; \
1107           mv gcc/tmp-include gcc/include 2>/dev/null; \
1108         else true; fi
1109
1110 # start-sanitize-ide
1111 # Install Foundry.  Avoid installing a bunch of stuff we don't need.
1112 install-foundry:
1113         mods="$(INSTALL_MODULES)"; \
1114         x11_mods="$(INSTALL_X11_MODULES)"; \
1115         for d in install-tcl install-tk install-itcl install-tix install-ilu; do \
1116           mods="`echo $${mods} | sed -e "s/$$d//"`"; \
1117           x11_mods="`echo $${x11_mods} | sed -e "s/$$d//"`"; \
1118         done; \
1119         $(MAKE) INSTALL_MODULES="$${mods}" INSTALL_X11_MODULES="$${x11_mods}" install
1120         for d in tcl tk itcl tix ilu; do \
1121           if [ -f $$d/Makefile ]; then \
1122             r=`pwd`; export r; \
1123             s=`cd $(srcdir); pwd`; export s; \
1124             $(SET_LIB_PATH) \
1125             (cd $$d; $(MAKE) $(FLAGS_TO_PASS) install-minimal); \
1126           else \
1127             true; \
1128           fi; \
1129         done
1130 # end-sanitize-ide
1131
1132 # This rule is used to build the modules which use FLAGS_TO_PASS.  To
1133 # build a target all-X means to cd to X and make all.
1134 #
1135 # all-gui, and all-libproc are handled specially because
1136 # they are still experimental, and if they fail to build, that
1137 # shouldn't stop "make all".
1138 .PHONY: $(ALL_MODULES) all-gui all-libproc
1139 $(ALL_MODULES) all-gui all-libproc:
1140         @dir=`echo $@ | sed -e 's/all-//'`; \
1141         if [ -f ./$${dir}/Makefile ] ; then \
1142           r=`pwd`; export r; \
1143           s=`cd $(srcdir); pwd`; export s; \
1144           $(SET_LIB_PATH) \
1145           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1146         else \
1147           true; \
1148         fi
1149
1150 # These rules are used to check the modules which use FLAGS_TO_PASS.
1151 # To build a target check-X means to cd to X and make check.  Some
1152 # modules are only tested in a native toolchain.
1153
1154 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1155 $(NATIVE_CHECK_MODULES):
1156         @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1157           dir=`echo $@ | sed -e 's/check-//'`; \
1158           if [ -f ./$${dir}/Makefile ] ; then \
1159             r=`pwd`; export r; \
1160             s=`cd $(srcdir); pwd`; export s; \
1161             $(SET_LIB_PATH) \
1162             (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1163           else \
1164             true; \
1165           fi; \
1166         fi
1167
1168 $(CROSS_CHECK_MODULES):
1169         @dir=`echo $@ | sed -e 's/check-//'`; \
1170         if [ -f ./$${dir}/Makefile ] ; then \
1171           r=`pwd`; export r; \
1172           s=`cd $(srcdir); pwd`; export s; \
1173           $(SET_LIB_PATH) \
1174           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1175         else \
1176           true; \
1177         fi
1178
1179 # This rule is used to install the modules which use FLAGS_TO_PASS.
1180 # To build a target install-X means to cd to X and make install.
1181 .PHONY: $(INSTALL_MODULES)
1182 $(INSTALL_MODULES): installdirs
1183         @dir=`echo $@ | sed -e 's/install-//'`; \
1184         if [ -f ./$${dir}/Makefile ] ; then \
1185           r=`pwd`; export r; \
1186           s=`cd $(srcdir); pwd`; export s; \
1187           $(SET_LIB_PATH) \
1188           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1189         else \
1190           true; \
1191         fi
1192
1193 # This rule is used to configure the modules which are built with the
1194 # target tools.
1195 .PHONY: $(CONFIGURE_TARGET_MODULES)
1196 $(CONFIGURE_TARGET_MODULES):
1197         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1198         if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1199           r=`pwd`; export r; \
1200           $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1201           if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1202             if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1203               if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1204                 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1205               else \
1206                 echo "Multilibs changed for $${dir}, reconfiguring"; \
1207                 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1208                 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1209               fi; \
1210             else \
1211               mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1212             fi; \
1213           fi; \
1214         fi; exit 0      # break command into two pieces
1215         @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1216         if [ ! -d $(TARGET_SUBDIR) ]; then \
1217           true; \
1218         elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1219           true; \
1220         elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1221           if [ -d $(srcdir)/$${dir} ]; then \
1222             [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1223             r=`pwd`; export r; \
1224             s=`cd $(srcdir); pwd`; export s; \
1225             $(SET_LIB_PATH) \
1226             AR="$(AR_FOR_TARGET)"; export AR; \
1227             AS="$(AS_FOR_TARGET)"; export AS; \
1228             CC="$(CC_FOR_TARGET)"; export CC; \
1229             CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1230             CXX="$(CXX_FOR_TARGET)"; export CXX; \
1231             CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1232             DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1233             LD="$(LD_FOR_TARGET)"; export LD; \
1234             LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1235             NM="$(NM_FOR_TARGET)"; export NM; \
1236             RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1237             WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1238             echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1239             cd $(TARGET_SUBDIR)/$${dir}; \
1240             case $(srcdir) in \
1241             /*) \
1242               topdir=$(srcdir) ;; \
1243             *) \
1244               case "$(TARGET_SUBDIR)" in \
1245               .) topdir="../$(srcdir)" ;; \
1246               *) topdir="../../$(srcdir)" ;; \
1247               esac ;; \
1248             esac; \
1249             if [ "$(srcdir)" = "." ] ; then \
1250               if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1251                 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1252                   if [ -f Makefile ]; then \
1253                     if $(MAKE) distclean; then \
1254                       true; \
1255                     else \
1256                       exit 1; \
1257                     fi; \
1258                   else \
1259                     true; \
1260                   fi; \
1261                 else \
1262                   exit 1; \
1263                 fi; \
1264               else \
1265                 true; \
1266               fi; \
1267               srcdiroption="--srcdir=."; \
1268               libsrcdir="."; \
1269             else \
1270               srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1271               libsrcdir="$$s/$${dir}"; \
1272             fi; \
1273             if [ -f $${libsrcdir}/configure ] ; then \
1274               $(SHELL) $${libsrcdir}/configure \
1275                 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1276                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1277             else \
1278               $(SHELL) $$s/configure \
1279                 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1280                 --with-target-subdir="$(TARGET_SUBDIR)"; \
1281             fi; \
1282           else \
1283             true; \
1284           fi; \
1285         else \
1286           true; \
1287         fi
1288
1289 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1290 # To build a target all-X means to cd to X and make all.
1291 .PHONY: $(ALL_TARGET_MODULES)
1292 $(ALL_TARGET_MODULES):
1293         @dir=`echo $@ | sed -e 's/all-target-//'`; \
1294         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1295           r=`pwd`; export r; \
1296           s=`cd $(srcdir); pwd`; export s; \
1297           $(SET_LIB_PATH) \
1298           (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1299         else \
1300           true; \
1301         fi
1302
1303 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1304 # To build a target install-X means to cd to X and make install.
1305 .PHONY: $(CHECK_TARGET_MODULES)
1306 $(CHECK_TARGET_MODULES):
1307         @dir=`echo $@ | sed -e 's/check-target-//'`; \
1308         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1309           r=`pwd`; export r; \
1310           s=`cd $(srcdir); pwd`; export s; \
1311           $(SET_LIB_PATH) \
1312           (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1313         else \
1314           true; \
1315         fi
1316
1317 # This rule is used to install the modules which use
1318 # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
1319 # and make install.
1320 .PHONY: $(INSTALL_TARGET_MODULES)
1321 $(INSTALL_TARGET_MODULES): installdirs
1322         @dir=`echo $@ | sed -e 's/install-target-//'`; \
1323         if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1324           r=`pwd`; export r; \
1325           s=`cd $(srcdir); pwd`; export s; \
1326           $(SET_LIB_PATH) \
1327           (cd $(TARGET_SUBDIR)/$${dir}; \
1328             $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1329         else \
1330           true; \
1331         fi
1332
1333 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1334 # To build a target all-X means to cd to X and make all.
1335 .PHONY: $(ALL_X11_MODULES)
1336 $(ALL_X11_MODULES):
1337         @dir=`echo $@ | sed -e 's/all-//'`; \
1338         if [ -f ./$${dir}/Makefile ] ; then \
1339           r=`pwd`; export r; \
1340           s=`cd $(srcdir); pwd`; export s; \
1341           $(SET_LIB_PATH) \
1342           (cd $${dir}; \
1343            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1344         else \
1345           true; \
1346         fi
1347
1348 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1349 # To build a target check-X means to cd to X and make all.
1350 .PHONY: $(CHECK_X11_MODULES)
1351 $(CHECK_X11_MODULES):
1352         @dir=`echo $@ | sed -e 's/check-//'`; \
1353         if [ -f ./$${dir}/Makefile ] ; then \
1354           r=`pwd`; export r; \
1355           s=`cd $(srcdir); pwd`; export s; \
1356           $(SET_LIB_PATH) \
1357           (cd $${dir}; \
1358            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1359         else \
1360           true; \
1361         fi
1362
1363 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1364 # To build a target install-X means to cd to X and make install.
1365 .PHONY: $(INSTALL_X11_MODULES)
1366 $(INSTALL_X11_MODULES): installdirs
1367         @dir=`echo $@ | sed -e 's/install-//'`; \
1368         if [ -f ./$${dir}/Makefile ] ; then \
1369           r=`pwd`; export r; \
1370           s=`cd $(srcdir); pwd`; export s; \
1371           $(SET_LIB_PATH) \
1372           (cd $${dir}; \
1373            $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1374         else \
1375           true; \
1376         fi
1377
1378 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1379 .PHONY: all-gcc
1380 all-gcc:
1381         @if [ -f ./gcc/Makefile ] ; then \
1382           r=`pwd`; export r; \
1383           s=`cd $(srcdir); pwd`; export s; \
1384           $(SET_LIB_PATH) \
1385           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1386         else \
1387           true; \
1388         fi
1389
1390 .PHONY: all-bootstrap
1391 all-bootstrap:
1392         @if [ -f ./gcc/Makefile ] ; then \
1393           r=`pwd`; export r; \
1394           s=`cd $(srcdir); pwd`; export s; \
1395           $(SET_LIB_PATH) \
1396           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) bootstrap); \
1397         else \
1398           true; \
1399         fi
1400
1401 .PHONY: check-gcc
1402 check-gcc:
1403         @if [ -f ./gcc/Makefile ] ; then \
1404           r=`pwd`; export r; \
1405           s=`cd $(srcdir); pwd`; export s; \
1406           $(SET_LIB_PATH) \
1407           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1408         else \
1409           true; \
1410         fi
1411
1412 .PHONY: install-gcc
1413 install-gcc:
1414         @if [ -f ./gcc/Makefile ] ; then \
1415           r=`pwd`; export r; \
1416           s=`cd $(srcdir); pwd`; export s; \
1417           $(SET_LIB_PATH) \
1418           (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1419         else \
1420           true; \
1421         fi
1422
1423
1424 # EXPERIMENTAL STUFF
1425 # This rule is used to install the modules which use FLAGS_TO_PASS.
1426 # To build a target install-X means to cd to X and make install.
1427 .PHONY: install-dosrel
1428 install-dosrel: installdirs info
1429         @dir=`echo $@ | sed -e 's/install-//'`; \
1430         if [ -f ./$${dir}/Makefile ] ; then \
1431           r=`pwd`; export r; \
1432           s=`cd $(srcdir); pwd`; export s; \
1433           $(SET_LIB_PATH) \
1434           (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1435         else \
1436           true; \
1437         fi
1438
1439 install-dosrel-fake:
1440
1441
1442 # This is a list of inter-dependencies among modules.
1443 all-apache:
1444 all-autoconf: all-m4 all-texinfo
1445 all-automake:
1446 all-bash:
1447 all-bfd:
1448 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc
1449 all-bison: all-texinfo
1450 all-byacc:
1451 all-cvssrc:
1452 configure-target-cygmon: $(ALL_GCC)
1453 all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1454 all-db:
1455 all-dejagnu: all-tcl all-expect all-tk
1456 all-diff: all-libiberty
1457 all-emacs:
1458 all-emacs19: all-bison all-byacc
1459 all-etc:
1460 configure-target-examples: $(ALL_GCC)
1461 all-target-examples: configure-target-examples
1462 all-expect: all-tcl all-tk
1463 all-fileutils: all-libiberty
1464 all-findutils:
1465 all-find:
1466 all-flex: all-libiberty all-bison all-byacc
1467 all-gas: all-libiberty all-opcodes all-bfd
1468 all-gash: all-tcl
1469 all-gawk:
1470 ALL_GCC = all-gcc
1471 all-gcc: all-bison all-byacc all-binutils all-gas all-ld
1472 all-bootstrap: all-libiberty all-bison all-byacc all-binutils all-gas all-ld
1473 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1474 # start-sanitize-ide
1475 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui all-libide
1476 # end-sanitize-ide
1477 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1478 all-gnuserv:
1479 configure-target-gperf: $(ALL_GCC)
1480 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
1481 all-gprof: all-libiberty all-bfd all-opcodes
1482 all-grep: all-libiberty
1483 all-grez: all-libiberty all-bfd all-opcodes
1484 all-gui: all-gdb all-libproc all-target-librx
1485 all-guile:
1486 all-gzip: all-libiberty
1487 all-hello: all-libiberty
1488 # start-sanitize-ide
1489 all-ilu:
1490 # end-sanitize-ide
1491 all-indent:
1492 all-inet: all-tcl all-send-pr all-perl
1493 all-ispell: all-emacs19
1494 all-itcl: all-tcl all-tk
1495 # start-sanitize-ide
1496 all-jstools: all-tcl all-tk all-tix all-libgui all-libide
1497 # end-sanitize-ide
1498 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex
1499 configure-target-libg++: $(ALL_GCC) configure-target-librx
1500 all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++
1501 configure-target-libgloss: $(ALL_GCC)
1502 all-target-libgloss: configure-target-libgloss configure-target-newlib
1503 configure-target-libio: $(ALL_GCC)
1504 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1505 check-target-libio: all-target-libstdc++
1506 all-libgui: all-tcl all-tk all-itcl
1507 all-libiberty:
1508 # start-sanitize-ide
1509 all-libide: all-tcl all-tk all-itcl all-ilu all-libgui
1510 # end-sanitize-ide
1511 configure-target-librx: $(ALL_GCC) configure-target-newlib
1512 all-target-librx: configure-target-librx
1513 configure-target-libstdc++: $(ALL_GCC)
1514 all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1515 all-m4: all-libiberty
1516 all-make: all-libiberty
1517 all-mmalloc:
1518 configure-target-newlib: $(ALL_GCC)
1519 all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1520 all-opcodes: all-bfd all-libiberty
1521 all-patch: all-libiberty
1522 all-perl:
1523 all-prms: all-libiberty
1524 all-rcs:
1525 all-readline:
1526 all-recode: all-libiberty
1527 all-sed: all-libiberty
1528 all-send-pr: all-prms
1529 all-shellutils:
1530 all-sim: all-libiberty all-bfd all-opcodes all-readline
1531 all-snavigator: all-tcl all-tk all-tix all-itcl all-db all-grep
1532 all-tar: all-libiberty
1533 all-tcl:
1534 all-tclX: all-tcl all-tk
1535 all-tk: all-tcl
1536 all-texinfo: all-libiberty
1537 all-textutils:
1538 all-tgas: all-libiberty all-bfd all-opcodes
1539 all-time:
1540 all-tix: all-tcl all-tk
1541 # start-sanitize-ide
1542 all-vmake: all-tcl all-tk all-itcl all-tix all-libgui all-libide
1543 # end-sanitize-ide
1544 all-wdiff:
1545 all-target-winsup: all-target-newlib all-target-libiberty all-target-libio configure-target-winsup 
1546 configure-target-winsup: configure-target-newlib
1547 all-uudecode: all-libiberty
1548 configure-target-libiberty: $(ALL_GCC)
1549 all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1550 all-target: $(ALL_TARGET_MODULES)
1551 install-target: $(INSTALL_TARGET_MODULES)
1552 # start-sanitize-gdbtk
1553 install-gdbtk: install-tcl install-tk install-itcl install-tix install-libgui install-gdb
1554 #end-sanitize-gdbtk
1555 ### other supporting targets
1556
1557 MAKEDIRS= \
1558         $(prefix) \
1559         $(exec_prefix)
1560 .PHONY: installdirs
1561 installdirs: mkinstalldirs
1562         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1563
1564 dir.info: do-install-info
1565         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1566           $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1567           mv -f dir.info.new dir.info ; \
1568         else true ; \
1569         fi
1570
1571 dist:
1572         @echo "Building a full distribution of this tree isn't done"
1573         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
1574
1575 etags tags: TAGS
1576
1577 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
1578 # ability to use several tags files at once, so there is probably no need
1579 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
1580 # (if we felt like it) have this Makefile write a piece of elisp which
1581 # the user could load to tell emacs19 where all the TAGS files we just
1582 # built are.
1583 TAGS: do-TAGS
1584
1585 # with the gnu make, this is done automatically.
1586
1587 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1588         $(SHELL) ./config.status
1589
1590 #
1591 # Support for building net releases
1592
1593 # Files in devo used in any net release.
1594 # ChangeLog omitted because it may refer to files which are not in this
1595 # distribution (perhaps it would be better to include it anyway).
1596 DEVO_SUPPORT= README Makefile.in configure configure.in \
1597         config.guess config.sub config move-if-change \
1598         mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1599         COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1600         mkinstalldirs ltconfig ltmain.sh missing ylwrap
1601
1602 # Files in devo/etc used in any net release.
1603 # ChangeLog omitted because it may refer to files which are not in this
1604 # distribution (perhaps it would be better to include it anyway).
1605 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1606         make-stds.texi standards.info*
1607
1608 # When you use `make setup-dirs' or `make taz' you should always redefine
1609 # this macro.
1610 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1611
1612 .PHONY: taz
1613
1614 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1615   texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1616         # Take out texinfo from a few places; make simple BISON=bison line.
1617         sed -e '/^all\.normal: /s/\all-texinfo //' \
1618             -e '/^      install-texinfo /d' \
1619         <Makefile.in >tmp
1620         mv -f tmp Makefile.in
1621         #
1622         $(start-sanitize-Sanitize)
1623         @if [ -f .Sanitize ] ; then echo "RUN Sanitize FIRST!" ; false ; fi ;
1624         $(end-sanitize-Sanitize)
1625         ./configure sun4
1626         [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1627           || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1628             CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1629         # Make links, and run "make diststuff" or "make info" when needed.
1630         rm -rf proto-toplev ; mkdir proto-toplev
1631         set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1632         for d in $$dirs ; do \
1633           if [ -d $$d ]; then \
1634             if [ ! -f $$d/Makefile ] ; then true ; \
1635             elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1636                 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1637             elif grep '^info:' $$d/Makefile >/dev/null ; then \
1638                 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1639             fi ; \
1640             if [ -d $$d/proto-$$d.dir ]; then \
1641               ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1642             else \
1643               ln -s ../$$d proto-toplev/$$d ; \
1644             fi ; \
1645           else ln -s ../$$d proto-toplev/$$d ; fi ; \
1646         done
1647         cd etc ; $(MAKE) info
1648         $(MAKE) distclean
1649         #
1650         mkdir proto-toplev/etc
1651         (cd proto-toplev/etc; \
1652          for i in $(ETC_SUPPORT); do \
1653                 ln -s ../../etc/$$i . ; \
1654          done)
1655         #
1656         # Take out texinfo from configurable dirs
1657         rm proto-toplev/configure.in
1658         sed -e '/^host_tools=/s/texinfo //' \
1659             <configure.in >proto-toplev/configure.in
1660         #
1661         mkdir proto-toplev/texinfo
1662         ln -s ../../texinfo/texinfo.tex         proto-toplev/texinfo/
1663         ln -s ../../texinfo/gpl.texinfo         proto-toplev/texinfo/
1664         ln -s ../../texinfo/lgpl.texinfo        proto-toplev/texinfo/
1665         if test -r texinfo/util/tex3patch ; then \
1666           mkdir proto-toplev/texinfo/util && \
1667           ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1668         else true; fi
1669         chmod og=u `find . -print`
1670         if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1671           ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1672         else \
1673           ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1674         fi; \
1675         $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1676
1677 do-tar-gz:
1678         echo "==> Making $(TOOL)-$(VER).tar.gz"
1679         -rm -f $(TOOL)-$(VER)
1680         ln -s proto-toplev $(TOOL)-$(VER)
1681         tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1682         $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1683
1684 TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1685 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1686
1687 .PHONY: gas.tar.gz
1688 GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms
1689 gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1690         $(MAKE) -f Makefile.in taz TOOL=gas \
1691                 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1692
1693 # The FSF "binutils" release includes gprof and ld.
1694 .PHONY: binutils.tar.gz
1695 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms
1696 binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1697         $(MAKE) -f Makefile.in taz TOOL=binutils \
1698                 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1699
1700 .PHONY: gas+binutils.tar.gz
1701 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1702 gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1703         $(MAKE) -f Makefile.in taz TOOL=gas \
1704                 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1705
1706 .PHONY: libg++.tar.gz
1707 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1708 libg++.tar.gz: $(DIST_SUPPORT) libg++
1709         $(MAKE) -f Makefile.in taz TOOL=libg++ \
1710                 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1711
1712 GNATS_SUPPORT_DIRS=include libiberty send-pr
1713 gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1714         $(MAKE) -f  Makefile.in taz TOOL=gnats \
1715                 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1716
1717 .PHONY: gdb.tar.gz
1718 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
1719 GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1720 gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1721         $(MAKE) -f Makefile.in taz TOOL=gdb \
1722                 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1723
1724 .PHONY: newlib.tar.gz
1725 NEWLIB_SUPPORT_DIRS=libgloss
1726 # taz configures for the sun4 target which won't configure newlib.
1727 # We need newlib configured so that the .info files are made.
1728 # Unfortunately, it is not enough to just configure newlib separately:
1729 # taz will build the .info files but since SUBDIRS won't contain newlib,
1730 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1731 # used in building the .info files, eg: *.def, *.ref).
1732 # The problem isn't solvable however without a lot of extra work because
1733 # target libraries are built in subdir $(target_alias) which gets nuked during
1734 # the make distclean.  For now punt on the issue of shipping newlib info files
1735 # with newlib net releases and wait for a day when some native target (sun4?)
1736 # supports newlib (if only minimally).
1737 newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1738         $(MAKE) -f Makefile.in taz TOOL=newlib \
1739                 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1740                 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1741
1742 .NOEXPORT:
1743 MAKEOVERRIDES=
1744
1745 # start-sanitize-chill
1746 ## This is ugly, but I don't want GNU make to put these variables in
1747 ## the environment.  Older makes will see this as a set of targets
1748 ## with no dependencies and no actions.
1749 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET :
1750 # end-sanitize-chill
1751
1752 # end of Makefile.in