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