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