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