* aout-adobe.c: Don't compare against "true" or "false.
[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 \
538 all-cvssrc \
539 all-db \
540 all-dejagnu \
541 all-diff \
542 all-dosutils \
543 all-etc \
75205f78 544 all-fastjar \
252b5132
RH
545 all-fileutils \
546 all-findutils \
547 all-find \
548 all-flex \
549 all-gas \
550 all-gawk \
551 all-gettext \
552 all-gnuserv \
553 all-gprof \
554 all-grep \
555 all-grez \
556 all-gzip \
557 all-hello \
558 all-indent \
559 all-inet \
560 all-intl \
561 all-ispell \
562 all-itcl \
563 all-ld \
564 all-libgui \
565 all-libiberty \
566 all-libtool \
567 all-m4 \
568 all-make \
569 all-mmalloc \
570 all-opcodes \
571 all-patch \
572 all-perl \
573 all-prms \
574 all-rcs \
575 all-readline \
576 all-release \
577 all-recode \
578 all-sed \
579 all-send-pr \
580 all-shellutils \
8817b92e 581 all-sid \
252b5132 582 all-sim \
ba73c63f 583 all-snavigator \
252b5132
RH
584 all-tar \
585 all-tcl \
252b5132
RH
586 all-texinfo \
587 all-textutils \
588 all-tgas \
589 all-time \
590 all-uudecode \
591 all-wdiff \
592 all-zip \
5cec67bf 593 all-zlib \
252b5132
RH
594 $(EXTRA_TARGET_HOST_ALL_MODULES)
595
596# This is a list of the check targets for all of the modules which are
597# compiled using $(FLAGS_TO_PASS).
598#
599# The list is in two parts. The first lists those tools which
600# are tested as part of the host's native tool-chain, and not
601# tested in a cross configuration.
602NATIVE_CHECK_MODULES = \
603 check-bison \
604 check-byacc \
75205f78 605 check-fastjar \
252b5132
RH
606 check-flex \
607 check-zip
608
609CROSS_CHECK_MODULES = \
610 check-apache \
611 check-ash \
612 check-autoconf \
613 check-automake \
614 check-bash \
615 check-bfd \
616 check-binutils \
617 check-bzip2 \
618 check-cvssrc \
619 check-db \
620 check-dejagnu \
621 check-diff \
622 check-etc \
623 check-fileutils \
624 check-findutils \
625 check-find \
626 check-gas \
627 check-gawk \
628 check-gettext \
629 check-gnuserv \
630 check-gprof \
631 check-grep \
632 check-gzip \
633 check-hello \
634 check-indent \
635 check-inet \
636 check-intl \
637 check-ispell \
638 check-itcl \
639 check-ld \
640 check-libgui \
641 check-libiberty \
642 check-libtool \
643 check-m4 \
644 check-make \
645 check-mmcheckoc \
646 check-opcodes \
647 check-patch \
648 check-perl \
649 check-prms \
650 check-rcs \
651 check-readline \
652 check-recode \
653 check-sed \
654 check-send-pr \
655 check-shellutils \
ba73c63f 656 check-snavigator \
8817b92e 657 check-sid \
252b5132
RH
658 check-sim \
659 check-tar \
660 check-tcl \
661 check-texinfo \
662 check-textutils \
663 check-tgas \
664 check-time \
665 check-uudecode \
666 check-wdiff \
667 $(EXTRA_TARGET_HOST_CHECK_MODULES)
668
669CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
670
671# This is a list of the install targets for all of the modules which are
672# compiled using $(FLAGS_TO_PASS).
673# We put install-opcodes before install-binutils because the installed
674# binutils might be on PATH, and they might need the shared opcodes
675# library.
676# We put install-tcl before install-itcl because itcl wants to run a
677# program on installation which uses the Tcl libraries.
678INSTALL_MODULES = \
679 install-apache \
680 install-ash \
681 install-autoconf \
682 install-automake \
683 install-bash \
684 install-bfd \
685 install-bzip2 \
686 install-opcodes \
687 install-binutils \
688 install-bison \
689 install-byacc \
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 \
252b5132
RH
715 install-itcl \
716 install-ld \
717 install-libgui \
718 install-libiberty \
719 install-libtool \
720 install-m4 \
721 install-make \
722 install-mmalloc \
723 install-patch \
724 install-perl \
725 install-prms \
726 install-rcs \
727 install-readline \
728 install-recode \
729 install-sed \
730 install-send-pr \
731 install-shellutils \
8817b92e 732 install-sid \
252b5132 733 install-sim \
ba73c63f 734 install-snavigator \
252b5132 735 install-tar \
252b5132
RH
736 install-textutils \
737 install-tgas \
738 install-time \
739 install-uudecode \
740 install-wdiff \
741 install-zip \
742 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
743
744# This is a list of the targets for all of the modules which are compiled
745# using $(X11_FLAGS_TO_PASS).
746ALL_X11_MODULES = \
747 all-emacs \
748 all-emacs19 \
749 all-gdb \
750 all-expect \
252b5132
RH
751 all-guile \
752 all-tclX \
753 all-tk \
252b5132
RH
754 all-tix
755
756# This is a list of the check targets for all of the modules which are
757# compiled using $(X11_FLAGS_TO_PASS).
758CHECK_X11_MODULES = \
759 check-emacs \
760 check-gdb \
761 check-guile \
762 check-expect \
252b5132
RH
763 check-tclX \
764 check-tk \
765 check-tix
766
767# This is a list of the install targets for all the modules which are
768# compiled using $(X11_FLAGS_TO_PASS).
769INSTALL_X11_MODULES = \
770 install-emacs \
771 install-emacs19 \
772 install-gdb \
773 install-guile \
774 install-expect \
252b5132
RH
775 install-tclX \
776 install-tk \
252b5132
RH
777 install-tix
778
779# This is a list of the targets for all of the modules which are compiled
780# using $(TARGET_FLAGS_TO_PASS).
781ALL_TARGET_MODULES = \
ba73c63f 782 all-target-libstdc++-v3 \
252b5132 783 all-target-newlib \
ba73c63f 784 all-target-libf2c \
ba73c63f 785 all-target-libobjc \
252b5132
RH
786 all-target-libtermcap \
787 all-target-winsup \
788 all-target-libgloss \
789 all-target-libiberty \
790 all-target-gperf \
791 all-target-examples \
792 all-target-libstub \
ba73c63f
JM
793 all-target-libffi \
794 all-target-libjava \
795 all-target-zlib \
796 all-target-boehm-gc \
797 all-target-qthreads \
252b5132
RH
798 all-target-bsp \
799 all-target-cygmon
800
801# This is a list of the configure targets for all of the modules which
802# are compiled using the target tools.
803CONFIGURE_TARGET_MODULES = \
ba73c63f 804 configure-target-libstdc++-v3 \
252b5132 805 configure-target-newlib \
ba73c63f 806 configure-target-libf2c \
ba73c63f 807 configure-target-libobjc \
252b5132
RH
808 configure-target-libtermcap \
809 configure-target-winsup \
810 configure-target-libgloss \
811 configure-target-libiberty \
812 configure-target-gperf \
813 configure-target-examples \
814 configure-target-libstub \
ba73c63f
JM
815 configure-target-libffi \
816 configure-target-libjava \
817 configure-target-zlib \
818 configure-target-boehm-gc \
819 configure-target-qthreads \
252b5132
RH
820 configure-target-bsp \
821 configure-target-cygmon
822
823# This is a list of the check targets for all of the modules which are
824# compiled using $(TARGET_FLAGS_TO_PASS).
825CHECK_TARGET_MODULES = \
ba73c63f 826 check-target-libstdc++-v3 \
252b5132 827 check-target-newlib \
ba73c63f 828 check-target-libf2c \
ba73c63f 829 check-target-libobjc \
252b5132
RH
830 check-target-winsup \
831 check-target-libiberty \
ba73c63f
JM
832 check-target-libffi \
833 check-target-libjava \
834 check-target-zlib \
835 check-target-boehm-gc \
836 check-target-qthreads \
252b5132
RH
837 check-target-gperf
838
839# This is a list of the install targets for all of the modules which are
840# compiled using $(TARGET_FLAGS_TO_PASS).
841INSTALL_TARGET_MODULES = \
ba73c63f 842 install-target-libstdc++-v3 \
252b5132 843 install-target-newlib \
ba73c63f 844 install-target-libf2c \
ba73c63f 845 install-target-libobjc \
252b5132
RH
846 install-target-libtermcap \
847 install-target-winsup \
848 install-target-libgloss \
849 install-target-libiberty \
850 install-target-bsp \
ba73c63f
JM
851 install-target-libjava \
852 install-target-zlib \
853 install-target-boehm-gc \
854 install-target-qthreads \
252b5132
RH
855 install-target-gperf
856
857# This is a list of the targets for which we can do a clean-{target}.
858CLEAN_MODULES = \
859 clean-apache \
860 clean-ash \
861 clean-autoconf \
862 clean-automake \
863 clean-bash \
864 clean-bfd \
865 clean-binutils \
866 clean-bison \
867 clean-byacc \
868 clean-bzip2 \
869 clean-cvssrc \
870 clean-db \
871 clean-dejagnu \
872 clean-diff \
873 clean-dosutils \
874 clean-etc \
75205f78 875 clean-fastjar \
252b5132
RH
876 clean-fileutils \
877 clean-findutils \
878 clean-find \
879 clean-flex \
880 clean-gas \
881 clean-gawk \
882 clean-gettext \
883 clean-gnuserv \
884 clean-gprof \
885 clean-grep \
886 clean-grez \
887 clean-gzip \
888 clean-hello \
889 clean-indent \
890 clean-inet \
891 clean-intl \
892 clean-ispell \
893 clean-itcl \
894 clean-ld \
895 clean-libgui \
896 clean-libiberty \
897 clean-libtool \
898 clean-m4 \
899 clean-make \
900 clean-mmalloc \
901 clean-opcodes \
902 clean-patch \
903 clean-perl \
904 clean-prms \
905 clean-rcs \
906 clean-readline \
907 clean-release \
908 clean-recode \
909 clean-sed \
910 clean-send-pr \
911 clean-shellutils \
8817b92e 912 clean-sid \
252b5132 913 clean-sim \
ba73c63f 914 clean-snavigator \
252b5132
RH
915 clean-tar \
916 clean-tcl \
917 clean-texinfo \
918 clean-textutils \
919 clean-tgas \
920 clean-time \
921 clean-uudecode \
922 clean-wdiff \
5cec67bf
AO
923 clean-zip \
924 clean-zlib
252b5132
RH
925
926# All of the target modules that can be cleaned
927CLEAN_TARGET_MODULES = \
ba73c63f 928 clean-target-libstdc++-v3 \
252b5132 929 clean-target-newlib \
ba73c63f 930 clean-target-libf2c \
ba73c63f 931 clean-target-libobjc \
252b5132
RH
932 clean-target-winsup \
933 clean-target-libgloss \
934 clean-target-libiberty \
935 clean-target-gperf \
936 clean-target-examples \
937 clean-target-libstub \
ba73c63f
JM
938 clean-target-libffi \
939 clean-target-libjava \
940 clean-target-zlib \
941 clean-target-boehm-gc \
942 clean-target-qthreads \
252b5132
RH
943 clean-target-bsp \
944 clean-target-cygmon
945
946# All of the x11 modules that can be cleaned
947CLEAN_X11_MODULES = \
948 clean-emacs \
949 clean-emacs19 \
950 clean-gdb \
951 clean-expect \
252b5132
RH
952 clean-guile \
953 clean-tclX \
954 clean-tk \
955 clean-tix
956
957# The target built for a native build.
958.PHONY: all.normal
959all.normal: \
49b7683b 960 $(ALL_BUILD_MODULES) \
252b5132
RH
961 $(ALL_MODULES) \
962 $(ALL_X11_MODULES) \
963 $(ALL_TARGET_MODULES) \
964 all-gcc
965
966# Do a target for all the subdirectories. A ``make do-X'' will do a
967# ``make X'' in all subdirectories (because, in general, there is a
968# dependency (below) of X upon do-X, a ``make X'' will also do this,
969# but it may do additional work as well).
970# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
971# because it is so large that it can easily overflow the command line
972# length limit on some systems.
973DO_X = \
974 do-clean \
975 do-distclean \
976 do-dvi \
977 do-info \
978 do-install-info \
979 do-installcheck \
980 do-mostlyclean \
981 do-maintainer-clean \
982 do-TAGS
983.PHONY: $(DO_X)
984$(DO_X):
985 @target=`echo $@ | sed -e 's/^do-//'`; \
d5de0a84
NC
986 r=`${PWD}`; export r; \
987 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
988 $(SET_LIB_PATH) \
989 for i in $(SUBDIRS) -dummy-; do \
990 if [ -f ./$$i/Makefile ]; then \
991 case $$i in \
992 gcc) \
993 for flag in $(EXTRA_GCC_FLAGS); do \
3f152009 994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
252b5132
RH
995 done; \
996 ;; \
997 *) \
998 for flag in $(EXTRA_HOST_FLAGS); do \
3f152009 999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
252b5132
RH
1000 done; \
1001 ;; \
1002 esac ; \
252b5132
RH
1003 if (cd ./$$i; \
1004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
75205f78 1006 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
252b5132
RH
1007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1008 $${target}); \
1009 then true; else exit 1; fi; \
1010 else true; fi; \
1011 done
1012 @target=`echo $@ | sed -e 's/^do-//'`; \
d5de0a84
NC
1013 r=`${PWD}`; export r; \
1014 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1015 $(SET_LIB_PATH) \
1016 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1017 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1018 for flag in $(EXTRA_TARGET_FLAGS); do \
3f152009 1019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
252b5132 1020 done; \
252b5132
RH
1021 if (cd $(TARGET_SUBDIR)/$$i; \
1022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
75205f78 1024 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
252b5132
RH
1025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1026 $${target}); \
1027 then true; else exit 1; fi; \
1028 else true; fi; \
1029 done
1030
1031# Here are the targets which correspond to the do-X targets.
1032
1033.PHONY: info installcheck dvi install-info
1034.PHONY: clean distclean mostlyclean maintainer-clean realclean
1035.PHONY: local-clean local-distclean local-maintainer-clean
1036info: do-info
1037installcheck: do-installcheck
1038dvi: do-dvi
1039
1040# Make sure makeinfo is built before we do a `make info'.
1041do-info: all-texinfo
1042
1043install-info: do-install-info dir.info
d5de0a84 1044 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1045 if [ -f dir.info ] ; then \
1046 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1047 else true ; fi
1048
1049local-clean:
1050 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1051
1052local-distclean:
1053 -rm -f Makefile config.status config.cache mh-frag mt-frag
1054 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1055 rm -rf $(TARGET_SUBDIR); \
1056 else true; fi
75205f78
DD
1057 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1058 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1059 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1060 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1061 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
252b5132
RH
1062
1063local-maintainer-clean:
1064 @echo "This command is intended for maintainers to use;"
1065 @echo "it deletes files that may require special tools to rebuild."
1066
1067clean: do-clean local-clean
1068mostlyclean: do-mostlyclean local-clean
1069distclean: do-distclean local-clean local-distclean
1070maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1071maintainer-clean: local-distclean
1072realclean: maintainer-clean
1073
1074# This rule is used to clean specific modules.
1075.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1076$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1077 @dir=`echo $@ | sed -e 's/clean-//'`; \
1078 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1079 r=`${PWD}`; export r; \
1080 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1081 $(SET_LIB_PATH) \
1082 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1083 else \
1084 true; \
1085 fi
1086
1087.PHONY: $(CLEAN_TARGET_MODULES)
1088$(CLEAN_TARGET_MODULES):
1089 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1090 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1091 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
d5de0a84
NC
1092 r=`${PWD}`; export r; \
1093 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1094 $(SET_LIB_PATH) \
1095 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1096 else \
1097 true; \
1098 fi
1099
5cec67bf
AO
1100clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1101clean-target-libgcc:
1102 test ! -d gcc/libgcc || \
1103 (cd gcc/libgcc && find . -type d -print) | \
1104 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1105 -rm -rf gcc/libgcc
252b5132
RH
1106
1107# Check target.
1108
80413487
RH
1109.PHONY: check do-check
1110check:
1111 $(MAKE) do-check NOTPARALLEL=parallel-ok
1112
1113do-check: $(CHECK_MODULES) \
252b5132
RH
1114 $(CHECK_TARGET_MODULES) \
1115 $(CHECK_X11_MODULES) \
1116 check-gcc
1117
1118# Automated reporting of test results.
1119
1120warning.log: build.log
1121 $(srcdir)/contrib/warn_summary build.log > $@
1122
1123mail-report.log:
1124 if test x'$(BOOT_CFLAGS)' != x''; then \
1125 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1126 fi; \
1127 $(srcdir)/contrib/test_summary -t >$@
1128 chmod +x $@
1129 echo If you really want to send e-mail, run ./$@ now
1130
1131mail-report-with-warnings.log: warning.log
1132 if test x'$(BOOT_CFLAGS)' != x''; then \
1133 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1134 fi; \
1135 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1136 chmod +x $@
1137 echo If you really want to send e-mail, run ./$@ now
1138
1139# Installation targets.
1140
1141.PHONY: install install-cross uninstall source-vault binary-vault vault-install
1142install: $(INSTALL_TARGET)
1143install-cross: $(INSTALL_TARGET_CROSS)
1144
1145uninstall:
1146 @echo "the uninstall target is not supported in this tree"
1147
1148source-vault:
1149 $(MAKE) -f ./release/Build-A-Release \
1150 host=$(host_alias) source-vault
1151
1152binary-vault:
1153 $(MAKE) -f ./release/Build-A-Release \
1154 host=$(host_alias) target=$(target_alias)
1155
1156vault-install:
1157 @if [ -f ./release/vault-install ] ; then \
1158 ./release/vault-install $(host_alias) $(target_alias) ; \
1159 else \
1160 true ; \
1161 fi
1162
1163.PHONY: install.all
1164install.all: install-no-fixedincludes
1165 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84 1166 r=`${PWD}` ; export r ; \
252b5132
RH
1167 $(SET_LIB_PATH) \
1168 (cd ./gcc; \
1169 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1170 else \
1171 true ; \
1172 fi
1173
1174# inet-install is used because the I*Net wants DejaGNU installed but
1175# not built. Similarly, gzip is built but not installed.
1176inet-install:
1177 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1178
1179# install-no-fixedincludes is used because Cygnus can not distribute
1180# the fixed header files.
1181.PHONY: install-no-fixedincludes
1182install-no-fixedincludes: \
1183 installdirs \
1184 $(INSTALL_MODULES) \
1185 $(INSTALL_TARGET_MODULES) \
1186 $(INSTALL_X11_MODULES) \
1187 gcc-no-fixedincludes
1188
1189# Install the gcc headers files, but not the fixed include files,
1190# which Cygnus is not allowed to distribute. This rule is very
1191# dependent on the workings of the gcc Makefile.in.
1192.PHONY: gcc-no-fixedincludes
1193gcc-no-fixedincludes:
1194 @if [ -f ./gcc/Makefile ]; then \
1195 rm -rf gcc/tmp-include; \
1196 mv gcc/include gcc/tmp-include 2>/dev/null; \
1197 mkdir gcc/include; \
1198 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1199 touch gcc/stmp-fixinc gcc/include/fixed; \
1200 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
d5de0a84
NC
1201 r=`${PWD}`; export r; \
1202 s=`cd $(srcdir); ${PWD}` ; export s; \
252b5132
RH
1203 $(SET_LIB_PATH) \
1204 (cd ./gcc; \
1205 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1206 rm -rf gcc/include; \
1207 mv gcc/tmp-include gcc/include 2>/dev/null; \
1208 else true; fi
1209
49b7683b
DD
1210# This rule is used to build the modules which are built with the
1211# build machine's native compiler.
1212.PHONY: $(ALL_BUILD_MODULES)
1213$(ALL_BUILD_MODULES):
1214 dir=`echo $@ | sed -e 's/all-build-//'`; \
1215 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1216 r=`${PWD}`; export r; \
1217 s=`cd $(srcdir); ${PWD}`; export s; \
49b7683b
DD
1218 (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1219 else \
1220 true; \
1221 fi
1222
1223# This rule is used to configure the modules which are built with the
1224# native tools.
1225.PHONY: $(CONFIGURE_BUILD_MODULES)
1226$(CONFIGURE_BUILD_MODULES):
1227 @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1228 if [ ! -d $(BUILD_SUBDIR) ]; then \
1229 true; \
1230 elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1231 true; \
1232 elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1233 if [ -d $(srcdir)/$${dir} ]; then \
1234 [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
d5de0a84
NC
1235 r=`${PWD}`; export r; \
1236 s=`cd $(srcdir); ${PWD}`; export s; \
49b7683b
DD
1237 AR="$(AR_FOR_BUILD)"; export AR; \
1238 AS="$(AS_FOR_BUILD)"; export AS; \
1239 CC="$(CC_FOR_BUILD)"; export CC; \
1240 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1241 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1242 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1243 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1244 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1245 LD="$(LD_FOR_BUILD)"; export LD; \
1246 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1247 NM="$(NM_FOR_BUILD)"; export NM; \
1248 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1249 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1250 echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1251 cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1252 case $(srcdir) in \
1253 /* | [A-Za-z]:[\\/]*) \
1254 topdir=$(srcdir) ;; \
1255 *) \
1256 case "$(BUILD_SUBDIR)" in \
1257 .) topdir="../$(srcdir)" ;; \
1258 *) topdir="../../$(srcdir)" ;; \
1259 esac ;; \
1260 esac; \
1261 if [ "$(srcdir)" = "." ] ; then \
1262 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1263 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1264 if [ -f Makefile ]; then \
1265 if $(MAKE) distclean; then \
1266 true; \
1267 else \
1268 exit 1; \
1269 fi; \
1270 else \
1271 true; \
1272 fi; \
1273 else \
1274 exit 1; \
1275 fi; \
1276 else \
1277 true; \
1278 fi; \
1279 srcdiroption="--srcdir=."; \
1280 libsrcdir="."; \
1281 else \
1282 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1283 libsrcdir="$$s/$${dir}"; \
1284 fi; \
1285 if [ -f $${libsrcdir}/configure ] ; then \
1286 rm -f no-such-file skip-this-dir; \
1287 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1288 $(BUILD_CONFIGARGS) $${srcdiroption} \
1289 --with-build-subdir="$(BUILD_SUBDIR)"; \
1290 else \
1291 rm -f no-such-file skip-this-dir; \
1292 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1293 $(BUILD_CONFIGARGS) $${srcdiroption} \
1294 --with-build-subdir="$(BUILD_SUBDIR)"; \
1295 fi || exit 1; \
1296 if [ -f skip-this-dir ] ; then \
1297 sh skip-this-dir; \
1298 rm -f skip-this-dir; \
1299 cd ..; rmdir $${dir} || true; \
1300 else \
1301 true; \
1302 fi; \
1303 else \
1304 true; \
1305 fi; \
1306 else \
1307 true; \
1308 fi
1309
252b5132
RH
1310# This rule is used to build the modules which use FLAGS_TO_PASS. To
1311# build a target all-X means to cd to X and make all.
1312#
1313# all-gui, and all-libproc are handled specially because
1314# they are still experimental, and if they fail to build, that
1315# shouldn't stop "make all".
1316.PHONY: $(ALL_MODULES) all-gui all-libproc
1317$(ALL_MODULES) all-gui all-libproc:
1318 @dir=`echo $@ | sed -e 's/all-//'`; \
1319 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1320 r=`${PWD}`; export r; \
1321 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1322 $(SET_LIB_PATH) \
1323 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1324 else \
1325 true; \
1326 fi
1327
1328# These rules are used to check the modules which use FLAGS_TO_PASS.
1329# To build a target check-X means to cd to X and make check. Some
1330# modules are only tested in a native toolchain.
1331
1332.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1333$(NATIVE_CHECK_MODULES):
3f152009 1334 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
252b5132
RH
1335 dir=`echo $@ | sed -e 's/check-//'`; \
1336 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1337 r=`${PWD}`; export r; \
1338 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1339 $(SET_LIB_PATH) \
1340 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1341 else \
1342 true; \
1343 fi; \
1344 fi
1345
1346$(CROSS_CHECK_MODULES):
1347 @dir=`echo $@ | sed -e 's/check-//'`; \
1348 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1349 r=`${PWD}`; export r; \
1350 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1351 $(SET_LIB_PATH) \
1352 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1353 else \
1354 true; \
1355 fi
1356
1357# This rule is used to install the modules which use FLAGS_TO_PASS.
1358# To build a target install-X means to cd to X and make install.
1359.PHONY: $(INSTALL_MODULES)
1360$(INSTALL_MODULES): installdirs
1361 @dir=`echo $@ | sed -e 's/install-//'`; \
1362 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1363 r=`${PWD}`; export r; \
1364 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1365 $(SET_LIB_PATH) \
1366 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1367 else \
1368 true; \
1369 fi
1370
1371# This rule is used to configure the modules which are built with the
1372# target tools.
1373.PHONY: $(CONFIGURE_TARGET_MODULES)
1374$(CONFIGURE_TARGET_MODULES):
1375 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1376 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
d5de0a84 1377 r=`${PWD}`; export r; \
252b5132
RH
1378 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1379 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1380 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1381 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1382 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1383 else \
1384 echo "Multilibs changed for $${dir}, reconfiguring"; \
1385 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1386 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1387 fi; \
1388 else \
1389 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1390 fi; \
1391 fi; \
1392 fi; exit 0 # break command into two pieces
1393 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1394 if [ ! -d $(TARGET_SUBDIR) ]; then \
1395 true; \
1396 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1397 true; \
1398 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1399 if [ -d $(srcdir)/$${dir} ]; then \
1400 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
d5de0a84
NC
1401 r=`${PWD}`; export r; \
1402 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1403 $(SET_LIB_PATH) \
1404 AR="$(AR_FOR_TARGET)"; export AR; \
1405 AS="$(AS_FOR_TARGET)"; export AS; \
1406 CC="$(CC_FOR_TARGET)"; export CC; \
1407 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1408 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1409 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
75205f78 1410 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
252b5132
RH
1411 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1412 LD="$(LD_FOR_TARGET)"; export LD; \
1413 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1414 NM="$(NM_FOR_TARGET)"; export NM; \
1415 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1416 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1417 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
75205f78 1418 cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
252b5132 1419 case $(srcdir) in \
75205f78 1420 /* | [A-Za-z]:[\\/]*) \
252b5132
RH
1421 topdir=$(srcdir) ;; \
1422 *) \
1423 case "$(TARGET_SUBDIR)" in \
1424 .) topdir="../$(srcdir)" ;; \
1425 *) topdir="../../$(srcdir)" ;; \
1426 esac ;; \
1427 esac; \
1428 if [ "$(srcdir)" = "." ] ; then \
1429 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1430 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1431 if [ -f Makefile ]; then \
1432 if $(MAKE) distclean; then \
1433 true; \
1434 else \
1435 exit 1; \
1436 fi; \
1437 else \
1438 true; \
1439 fi; \
1440 else \
1441 exit 1; \
1442 fi; \
1443 else \
1444 true; \
1445 fi; \
1446 srcdiroption="--srcdir=."; \
1447 libsrcdir="."; \
1448 else \
1449 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1450 libsrcdir="$$s/$${dir}"; \
1451 fi; \
1452 if [ -f $${libsrcdir}/configure ] ; then \
1453 rm -f no-such-file skip-this-dir; \
1454 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
49b7683b 1455 $(TARGET_CONFIGARGS) $${srcdiroption} \
252b5132
RH
1456 --with-target-subdir="$(TARGET_SUBDIR)"; \
1457 else \
1458 rm -f no-such-file skip-this-dir; \
1459 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
49b7683b 1460 $(TARGET_CONFIGARGS) $${srcdiroption} \
252b5132 1461 --with-target-subdir="$(TARGET_SUBDIR)"; \
75205f78 1462 fi || exit 1; \
252b5132
RH
1463 if [ -f skip-this-dir ] ; then \
1464 sh skip-this-dir; \
1465 rm -f skip-this-dir; \
1466 cd ..; rmdir $${dir} || true; \
1467 else \
1468 true; \
1469 fi; \
1470 else \
1471 true; \
1472 fi; \
1473 else \
1474 true; \
1475 fi
1476
1477# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1478# To build a target all-X means to cd to X and make all.
1479.PHONY: $(ALL_TARGET_MODULES)
1480$(ALL_TARGET_MODULES):
1481 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1482 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
d5de0a84
NC
1483 r=`${PWD}`; export r; \
1484 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132 1485 $(SET_LIB_PATH) \
dec0cb0c
AO
1486 (cd $(TARGET_SUBDIR)/$${dir}; \
1487 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
252b5132
RH
1488 else \
1489 true; \
1490 fi
1491
1492# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1493# To build a target install-X means to cd to X and make install.
1494.PHONY: $(CHECK_TARGET_MODULES)
1495$(CHECK_TARGET_MODULES):
1496 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1497 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
d5de0a84
NC
1498 r=`${PWD}`; export r; \
1499 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132 1500 $(SET_LIB_PATH) \
dec0cb0c
AO
1501 (cd $(TARGET_SUBDIR)/$${dir}; \
1502 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
252b5132
RH
1503 else \
1504 true; \
1505 fi
1506
1507# This rule is used to install the modules which use
1508# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1509# and make install.
1510.PHONY: $(INSTALL_TARGET_MODULES)
1511$(INSTALL_TARGET_MODULES): installdirs
1512 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1513 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
d5de0a84
NC
1514 r=`${PWD}`; export r; \
1515 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1516 $(SET_LIB_PATH) \
1517 (cd $(TARGET_SUBDIR)/$${dir}; \
1518 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1519 else \
1520 true; \
1521 fi
1522
1523# This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1524# To build a target all-X means to cd to X and make all.
1525.PHONY: $(ALL_X11_MODULES)
1526$(ALL_X11_MODULES):
1527 @dir=`echo $@ | sed -e 's/all-//'`; \
1528 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1529 r=`${PWD}`; export r; \
1530 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1531 $(SET_LIB_PATH) \
1532 (cd $${dir}; \
1533 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1534 else \
1535 true; \
1536 fi
1537
1538# This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1539# To build a target check-X means to cd to X and make all.
1540.PHONY: $(CHECK_X11_MODULES)
1541$(CHECK_X11_MODULES):
1542 @dir=`echo $@ | sed -e 's/check-//'`; \
1543 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1544 r=`${PWD}`; export r; \
1545 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1546 $(SET_LIB_PATH) \
1547 (cd $${dir}; \
1548 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1549 else \
1550 true; \
1551 fi
1552
1553# This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1554# To build a target install-X means to cd to X and make install.
1555.PHONY: $(INSTALL_X11_MODULES)
1556$(INSTALL_X11_MODULES): installdirs
1557 @dir=`echo $@ | sed -e 's/install-//'`; \
1558 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1559 r=`${PWD}`; export r; \
1560 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1561 $(SET_LIB_PATH) \
1562 (cd $${dir}; \
1563 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1564 else \
1565 true; \
1566 fi
1567
1568# gcc is the only module which uses GCC_FLAGS_TO_PASS.
1569.PHONY: all-gcc
1570all-gcc:
1571 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84
NC
1572 r=`${PWD}`; export r; \
1573 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1574 $(SET_LIB_PATH) \
1575 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1576 else \
1577 true; \
1578 fi
1579
1580# Building GCC uses some tools for rebuilding "source" files
1581# like texinfo, bison/byacc, etc. So we must depend on those.
1582#
1583# While building GCC, it may be necessary to run various target
1584# programs like the assembler, linker, etc. So we depend on
1585# those too.
1586#
1587# In theory, on an SMP all those dependencies can be resolved
1588# in parallel.
1589#
1590.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
2809b4b9 1591bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
d5de0a84
NC
1592 @r=`${PWD}`; export r; \
1593 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1594 $(SET_LIB_PATH) \
1595 echo "Bootstrapping the compiler"; \
5cec67bf 1596 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
d5de0a84
NC
1597 @r=`${PWD}`; export r; \
1598 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1599 case "$@" in \
1600 *bootstrap4-lean ) \
1601 msg="Comparing stage3 and stage4 of the compiler"; \
1602 compare=compare3-lean ;; \
1603 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1604 compare=compare3 ;; \
1605 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1606 compare=compare-lean ;; \
1607 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1608 compare=compare ;; \
1609 esac; \
1610 $(SET_LIB_PATH) \
1611 echo "$$msg"; \
5cec67bf 1612 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
d5de0a84
NC
1613 @r=`${PWD}`; export r; \
1614 s=`cd $(srcdir); ${PWD}` ; export s; \
252b5132
RH
1615 $(SET_LIB_PATH) \
1616 echo "Building runtime libraries"; \
dec0cb0c 1617 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
252b5132
RH
1618
1619.PHONY: cross
1620cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
d5de0a84
NC
1621 @r=`${PWD}`; export r; \
1622 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1623 $(SET_LIB_PATH) \
1624 echo "Building the C and C++ compiler"; \
5cec67bf 1625 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
d5de0a84
NC
1626 @r=`${PWD}`; export r; \
1627 s=`cd $(srcdir); ${PWD}` ; export s; \
252b5132
RH
1628 $(SET_LIB_PATH) \
1629 echo "Building runtime libraries"; \
dec0cb0c
AO
1630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1631 LANGUAGES="c c++" all
252b5132
RH
1632
1633.PHONY: check-gcc
1634check-gcc:
1635 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84
NC
1636 r=`${PWD}`; export r; \
1637 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1638 $(SET_LIB_PATH) \
1639 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1640 else \
1641 true; \
1642 fi
1643
75205f78
DD
1644.PHONY: check-c++
1645check-c++:
1646 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84
NC
1647 r=`${PWD}`; export r; \
1648 s=`cd $(srcdir); ${PWD}`; export s; \
75205f78
DD
1649 $(SET_LIB_PATH) \
1650 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1651 $(MAKE) check-target-libstdc++-v3; \
1652 else \
1653 true; \
1654 fi
1655
252b5132
RH
1656.PHONY: install-gcc
1657install-gcc:
1658 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84
NC
1659 r=`${PWD}`; export r; \
1660 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1661 $(SET_LIB_PATH) \
1662 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1663 else \
1664 true; \
1665 fi
1666
1667.PHONY: install-gcc-cross
1668install-gcc-cross:
1669 @if [ -f ./gcc/Makefile ] ; then \
d5de0a84
NC
1670 r=`${PWD}`; export r; \
1671 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1672 $(SET_LIB_PATH) \
1673 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1674 else \
1675 true; \
1676 fi
1677# EXPERIMENTAL STUFF
1678# This rule is used to install the modules which use FLAGS_TO_PASS.
1679# To build a target install-X means to cd to X and make install.
1680.PHONY: install-dosrel
1681install-dosrel: installdirs info
1682 @dir=`echo $@ | sed -e 's/install-//'`; \
1683 if [ -f ./$${dir}/Makefile ] ; then \
d5de0a84
NC
1684 r=`${PWD}`; export r; \
1685 s=`cd $(srcdir); ${PWD}`; export s; \
252b5132
RH
1686 $(SET_LIB_PATH) \
1687 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1688 else \
1689 true; \
1690 fi
1691
1692install-dosrel-fake:
1693
c559bb17
AO
1694ALL_GCC = all-gcc
1695ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
75205f78 1696ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
252b5132
RH
1697
1698# This is a list of inter-dependencies among modules.
1699all-apache:
1700all-ash:
1701all-autoconf: all-m4 all-texinfo
1702all-automake: all-m4 all-texinfo
1703all-bash:
1704all-bfd: all-libiberty all-intl
1705all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
227b9953 1706all-bison: all-texinfo
75205f78 1707configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
ba73c63f 1708all-target-boehm-gc: configure-target-boehm-gc
5cec67bf
AO
1709configure-target-bsp: $(ALL_GCC_C)
1710all-target-bsp: configure-target-bsp
252b5132
RH
1711all-byacc:
1712all-bzip2:
1713all-cvssrc:
5cec67bf 1714configure-target-cygmon: $(ALL_GCC_C)
75205f78 1715all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp
252b5132
RH
1716all-db:
1717all-dejagnu: all-tcl all-expect all-tk
1718all-diff: all-libiberty
1719all-emacs:
1720all-emacs19: all-bison all-byacc
1721all-etc:
5cec67bf 1722configure-target-examples: $(ALL_GCC_C)
252b5132
RH
1723all-target-examples: configure-target-examples
1724all-expect: all-tcl all-tk
1725all-fileutils: all-libiberty
1726all-findutils:
1727all-find:
1728all-flex: all-libiberty all-bison all-byacc
1729all-gas: all-libiberty all-opcodes all-bfd all-intl
252b5132 1730all-gawk:
5cec67bf 1731all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
2809b4b9 1732all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
252b5132
RH
1733GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1734all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1735all-gettext:
1736all-gnuserv:
373688ac
AO
1737configure-target-gperf: $(ALL_GCC_CXX)
1738all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
252b5132 1739all-gprof: all-libiberty all-bfd all-opcodes all-intl
ba73c63f 1740all-grep: all-libiberty
252b5132 1741all-grez: all-libiberty all-bfd all-opcodes
e3b0c936 1742all-gui: all-gdb all-libproc
252b5132
RH
1743all-guile:
1744all-gzip: all-libiberty
1745all-hello: all-libiberty
1746all-indent:
1747all-inet: all-tcl all-send-pr all-perl
1748all-intl:
1749all-ispell: all-emacs19
fd8958d5 1750all-itcl: all-tcl all-tk
252b5132 1751all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
252b5132
RH
1752configure-target-libgloss: $(ALL_GCC)
1753all-target-libgloss: configure-target-libgloss configure-target-newlib
fd8958d5 1754all-libgui: all-tcl all-tk all-itcl
252b5132 1755all-libiberty:
49b7683b
DD
1756
1757all-build-libiberty: configure-build-libiberty
1758
5cec67bf 1759configure-target-libffi: $(ALL_GCC_C)
ba73c63f 1760all-target-libffi: configure-target-libffi
75205f78
DD
1761configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1762all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
5cec67bf
AO
1763configure-target-libstdc++-v3: $(ALL_GCC_C)
1764all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1765configure-target-libstub: $(ALL_GCC_C)
252b5132
RH
1766all-target-libstub: configure-target-libstub
1767all-libtool:
5cec67bf
AO
1768configure-target-libf2c: $(ALL_GCC_C)
1769all-target-libf2c: configure-target-libf2c all-target-libiberty
5cec67bf
AO
1770configure-target-libobjc: $(ALL_GCC_C)
1771all-target-libobjc: configure-target-libobjc all-target-libiberty
b0dad762 1772all-m4: all-libiberty all-texinfo
252b5132
RH
1773all-make: all-libiberty
1774all-mmalloc:
1775configure-target-newlib: $(ALL_GCC)
5cec67bf
AO
1776all-target-newlib: configure-target-newlib
1777configure-target-libtermcap: $(ALL_GCC_C)
1778all-target-libtermcap: configure-target-libtermcap
cdb9e2b8 1779all-opcodes: all-bfd all-libiberty
252b5132
RH
1780all-patch: all-libiberty
1781all-perl:
1782all-prms: all-libiberty
5cec67bf 1783configure-target-qthreads: $(ALL_GCC_C)
ba73c63f 1784all-target-qthreads: configure-target-qthreads
252b5132
RH
1785all-rcs:
1786all-readline:
1787all-recode: all-libiberty
1788all-sed: all-libiberty
1789all-send-pr: all-prms
1790all-shellutils:
8817b92e 1791all-sid: all-tcl all-tk
cdb9e2b8 1792all-sim: all-libiberty all-bfd all-opcodes all-readline
48d19748 1793all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
252b5132
RH
1794all-tar: all-libiberty
1795all-tcl:
252b5132
RH
1796all-tclX: all-tcl all-tk
1797all-tk: all-tcl
252b5132
RH
1798all-texinfo: all-libiberty
1799all-textutils:
1800all-tgas: all-libiberty all-bfd all-opcodes
1801all-time:
fd8958d5 1802all-tix: all-tcl all-tk
252b5132 1803all-wdiff:
5cec67bf
AO
1804configure-target-winsup: $(ALL_GCC_C)
1805all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
252b5132
RH
1806all-uudecode: all-libiberty
1807all-zip:
51601921 1808all-zlib:
5cec67bf 1809configure-target-zlib: $(ALL_GCC_C)
ba73c63f 1810all-target-zlib: configure-target-zlib
75205f78
DD
1811all-fastjar: all-zlib all-libiberty
1812configure-target-fastjar: configure-target-zlib
1813all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
5cec67bf
AO
1814configure-target-libiberty: $(ALL_GCC_C)
1815all-target-libiberty: configure-target-libiberty
252b5132
RH
1816all-target: $(ALL_TARGET_MODULES)
1817install-target: $(INSTALL_TARGET_MODULES)
afb8d725 1818install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
8817b92e 1819install-sid: install-tcl install-tk
252b5132
RH
1820### other supporting targets
1821
1822MAKEDIRS= \
d3d8a9ee
NC
1823 $(DESTDIR)$(prefix) \
1824 $(DESTDIR)$(exec_prefix)
252b5132
RH
1825.PHONY: installdirs
1826installdirs: mkinstalldirs
1827 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1828
1829dir.info: do-install-info
1830 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1831 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1832 mv -f dir.info.new dir.info ; \
1833 else true ; \
1834 fi
1835
1836dist:
1837 @echo "Building a full distribution of this tree isn't done"
1838 @echo "via 'make dist'. Check out the etc/ subdirectory"
1839
1840etags tags: TAGS
1841
1842# Right now this just builds TAGS in each subdirectory. emacs19 has the
1843# ability to use several tags files at once, so there is probably no need
1844# to combine them into one big TAGS file (like CVS 1.3 does). We could
1845# (if we felt like it) have this Makefile write a piece of elisp which
1846# the user could load to tell emacs19 where all the TAGS files we just
1847# built are.
1848TAGS: do-TAGS
1849
1850# with the gnu make, this is done automatically.
1851
1852Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1853 $(SHELL) ./config.status
1854
1855#
1856# Support for building net releases
1857
1858# Files in devo used in any net release.
1859# ChangeLog omitted because it may refer to files which are not in this
1860# distribution (perhaps it would be better to include it anyway).
1861DEVO_SUPPORT= README Makefile.in configure configure.in \
1862 config.guess config.if config.sub config move-if-change \
1863 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1864 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
97f60b31 1865 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
5cec67bf 1866 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
252b5132
RH
1867
1868# Files in devo/etc used in any net release.
1869# ChangeLog omitted because it may refer to files which are not in this
1870# distribution (perhaps it would be better to include it anyway).
1871ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
ebf0fa2e
AJ
1872 make-stds.texi standards.info* configure.texi configure.info* \
1873 configbuild.* configdev.*
1874
252b5132
RH
1875
1876# When you use `make setup-dirs' or `make taz' you should always redefine
1877# this macro.
1878SUPPORT_FILES = list-of-support-files-for-tool-in-question
1879
b35ece4e
AC
1880# NOTE: No double quotes in the below. It is used within shell script
1881# as VER="$(VER)"
1107dce2
AM
1882VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1883 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1884 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
b35ece4e 1885 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
31a8b634
AC
1886 elif test -f $(TOOL)/version.in; then \
1887 head -1 $(TOOL)/version.in; \
1888 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
b35ece4e 1889 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
31a8b634
AC
1890 else \
1891 echo VERSION; \
b35ece4e
AC
1892 fi`
1893PACKAGE = $(TOOL)
252b5132 1894
b35ece4e 1895.PHONY: taz
c1b640f7 1896taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
b35ece4e
AC
1897 $(MAKE) -f Makefile.in do-proto-toplev \
1898 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
fd751128 1899 MD5PROG="$(MD5PROG)" \
b35ece4e
AC
1900 SUPPORT_FILES="$(SUPPORT_FILES)"
1901 $(MAKE) -f Makefile.in do-md5sum \
1902 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
fd751128 1903 MD5PROG="$(MD5PROG)" \
b35ece4e 1904 SUPPORT_FILES="$(SUPPORT_FILES)"
bbf6e9e3
AC
1905 $(MAKE) -f Makefile.in do-tar \
1906 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1907 MD5PROG="$(MD5PROG)" \
1908 SUPPORT_FILES="$(SUPPORT_FILES)"
1909 $(MAKE) -f Makefile.in do-bz2 \
b35ece4e 1910 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
fd751128 1911 MD5PROG="$(MD5PROG)" \
b35ece4e
AC
1912 SUPPORT_FILES="$(SUPPORT_FILES)"
1913
bbf6e9e3
AC
1914.PHONY: gdb-tar
1915gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
b5a23627
AC
1916 $(MAKE) -f Makefile.in do-proto-toplev \
1917 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1918 MD5PROG="$(MD5PROG)" \
1919 SUPPORT_FILES="$(SUPPORT_FILES)"
1920 $(MAKE) -f Makefile.in do-md5sum \
1921 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1922 MD5PROG="$(MD5PROG)" \
1923 SUPPORT_FILES="$(SUPPORT_FILES)"
1924 $(MAKE) -f Makefile.in do-djunpack \
1925 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1926 MD5PROG="$(MD5PROG)" \
1927 SUPPORT_FILES="$(SUPPORT_FILES)"
bbf6e9e3
AC
1928 $(MAKE) -f Makefile.in do-tar \
1929 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1930 MD5PROG="$(MD5PROG)" \
1931 SUPPORT_FILES="$(SUPPORT_FILES)"
1932
1933.PHONY: gdb-taz
1934gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1935 $(MAKE) -f Makefile.in gdb-tar \
1936 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1937 MD5PROG="$(MD5PROG)" \
1938 SUPPORT_FILES="$(SUPPORT_FILES)"
1939 $(MAKE) -f Makefile.in do-bz2 \
b35ece4e 1940 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
fd751128 1941 MD5PROG="$(MD5PROG)" \
b35ece4e
AC
1942 SUPPORT_FILES="$(SUPPORT_FILES)"
1943
1944.PHONY: do-proto-toplev
1945do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1946 echo "==> Making $(PACKAGE)-$(VER)/"
252b5132
RH
1947 # Take out texinfo from a few places.
1948 sed -e '/^all\.normal: /s/\all-texinfo //' \
1949 -e '/^ install-texinfo /d' \
1950 <Makefile.in >tmp
1951 mv -f tmp Makefile.in
1952 #
1953 ./configure sun4
1954 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
5cec67bf
AO
1955 || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1956 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
252b5132
RH
1957 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1958 # Make links, and run "make diststuff" or "make info" when needed.
1959 rm -rf proto-toplev ; mkdir proto-toplev
1960 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1961 for d in $$dirs ; do \
1962 if [ -d $$d ]; then \
1963 if [ ! -f $$d/Makefile ] ; then true ; \
1964 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1965 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1966 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1967 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1968 fi ; \
1969 if [ -d $$d/proto-$$d.dir ]; then \
1970 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1971 else \
1972 ln -s ../$$d proto-toplev/$$d ; \
1973 fi ; \
1974 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1975 done
5cec67bf 1976 cd etc && $(MAKE) info
252b5132
RH
1977 $(MAKE) distclean
1978 #
1979 mkdir proto-toplev/etc
1980 (cd proto-toplev/etc; \
1981 for i in $(ETC_SUPPORT); do \
1982 ln -s ../../etc/$$i . ; \
1983 done)
1984 #
1985 # Take out texinfo from configurable dirs
1986 rm proto-toplev/configure.in
1987 sed -e '/^host_tools=/s/texinfo //' \
1988 <configure.in >proto-toplev/configure.in
1989 #
1990 mkdir proto-toplev/texinfo
1991 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
252b5132
RH
1992 if test -r texinfo/util/tex3patch ; then \
1993 mkdir proto-toplev/texinfo/util && \
1994 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1995 else true; fi
1996 chmod -R og=u . || chmod og=u `find . -print`
b35ece4e 1997 #
43e64072
NC
1998 # Create .gmo files from .po files.
1999 for f in `find . -name '*.po' -type f -print`; do \
2000 msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2001 done
2002 #
b35ece4e
AC
2003 -rm -f $(PACKAGE)-$(VER)
2004 ln -s proto-toplev $(PACKAGE)-$(VER)
252b5132 2005
bbf6e9e3
AC
2006.PHONY: do-tar
2007do-tar:
2008 echo "==> Making $(PACKAGE)-$(VER).tar"
2009 -rm -f $(PACKAGE)-$(VER).tar
82b43a09
AC
2010 find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
2011 | tar cTfh - $(PACKAGE)-$(VER).tar
bbf6e9e3
AC
2012
2013.PHONY: do-bz2
2014do-bz2:
2015 echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2016 -rm -f $(PACKAGE)-$(VER).tar.bz2
6dcbc97b 2017 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
252b5132 2018
b35ece4e
AC
2019.PHONY: do-md5sum
2020do-md5sum:
2021 echo "==> Adding md5 checksum to top-level directory"
82b43a09
AC
2022 cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2023 | xargs $(MD5PROG) > ../md5.sum
b35ece4e
AC
2024 mv md5.sum proto-toplev
2025
b5a23627
AC
2026.PHONY: do-djunpack
2027do-djunpack:
2028 echo "==> Adding updated djunpack.bat to top-level directory"
2029 echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2030 sed < djunpack.bat > djunpack.new \
2031 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2032 mv djunpack.new djunpack.bat
2033 -rm -f proto-toplev/djunpack.bat
2034 ln -s ../djunpack.bat proto-toplev/djunpack.bat
2035
c376f4ed 2036TEXINFO_SUPPORT= texinfo/texinfo.tex
252b5132
RH
2037DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2038
c376f4ed 2039.PHONY: gas.tar.bz2
71141bb6 2040GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
c376f4ed 2041gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1107dce2 2042 $(MAKE) -f Makefile.in taz TOOL=gas \
fd751128 2043 MD5PROG="$(MD5PROG)" \
252b5132
RH
2044 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2045
2046# The FSF "binutils" release includes gprof and ld.
c376f4ed 2047.PHONY: binutils.tar.bz2
71141bb6 2048BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
c376f4ed 2049binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1107dce2 2050 $(MAKE) -f Makefile.in taz TOOL=binutils \
fd751128 2051 MD5PROG="$(MD5PROG)" \
08d836d6 2052 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
252b5132 2053
c376f4ed 2054.PHONY: gas+binutils.tar.bz2
252b5132 2055GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
c376f4ed 2056gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1107dce2 2057 $(MAKE) -f Makefile.in taz TOOL=gas \
fd751128 2058 MD5PROG="$(MD5PROG)" \
08d836d6 2059 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
252b5132 2060
252b5132 2061GNATS_SUPPORT_DIRS=include libiberty send-pr
c376f4ed 2062gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
252b5132 2063 $(MAKE) -f Makefile.in taz TOOL=gnats \
fd751128 2064 MD5PROG="$(MD5PROG)" \
252b5132
RH
2065 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2066
c376f4ed 2067.PHONY: gdb.tar.bz2
252b5132 2068GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
c376f4ed 2069gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
b35ece4e 2070 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
fd751128 2071 MD5PROG="$(MD5PROG)" \
6dcbc97b 2072 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
bbf6e9e3
AC
2073.PHONY: gdb.tar
2074gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2075 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2076 MD5PROG="$(MD5PROG)" \
2077 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
6dcbc97b 2078
6dcbc97b 2079DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
bbf6e9e3 2080.PHONY: dejagnu.tar.bz2
6dcbc97b
AC
2081dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2082 $(MAKE) -f Makefile.in taz TOOL=dejagnu \
fd751128 2083 MD5PROG="$(MD5PROG)" \
6dcbc97b
AC
2084 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2085
2086.PHONY: gdb+dejagnu.tar.bz2
2087GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2088gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
b35ece4e 2089 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
fd751128 2090 MD5PROG="$(MD5PROG)" \
6dcbc97b 2091 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
bbf6e9e3
AC
2092.PHONY: gdb+dejagnu.tar
2093gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2094 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2095 MD5PROG="$(MD5PROG)" \
2096 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
6dcbc97b
AC
2097
2098.PHONY: insight.tar.bz2
2099INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2100insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
b35ece4e 2101 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
fd751128 2102 MD5PROG="$(MD5PROG)" \
6dcbc97b 2103 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
bbf6e9e3
AC
2104.PHONY: insight.tar
2105insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2106 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2107 MD5PROG="$(MD5PROG)" \
2108 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
6dcbc97b
AC
2109
2110.PHONY: insight+dejagnu.tar.bz2
2111INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2112insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
b35ece4e 2113 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
fd751128 2114 MD5PROG="$(MD5PROG)" \
6dcbc97b 2115 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
bbf6e9e3
AC
2116.PHONY: insight+dejagnu.tar
2117insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2118 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2119 MD5PROG="$(MD5PROG)" \
2120 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
252b5132 2121
c376f4ed 2122.PHONY: newlib.tar.bz2
252b5132
RH
2123NEWLIB_SUPPORT_DIRS=libgloss
2124# taz configures for the sun4 target which won't configure newlib.
2125# We need newlib configured so that the .info files are made.
2126# Unfortunately, it is not enough to just configure newlib separately:
2127# taz will build the .info files but since SUBDIRS won't contain newlib,
2128# distclean won't be run (leaving Makefile, config.status, and the tmp files
2129# used in building the .info files, eg: *.def, *.ref).
2130# The problem isn't solvable however without a lot of extra work because
2131# target libraries are built in subdir $(target_alias) which gets nuked during
2132# the make distclean. For now punt on the issue of shipping newlib info files
2133# with newlib net releases and wait for a day when some native target (sun4?)
2134# supports newlib (if only minimally).
c376f4ed 2135newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
252b5132 2136 $(MAKE) -f Makefile.in taz TOOL=newlib \
fd751128 2137 MD5PROG="$(MD5PROG)" \
252b5132
RH
2138 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2139 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2140
2141.NOEXPORT:
2142MAKEOVERRIDES=
2143
2144# end of Makefile.in
This page took 0.209064 seconds and 4 git commands to generate.