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