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