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