* Makefile.in (.NOTPARALLEL): Add fake tag.
[deliverable/binutils-gdb.git] / Makefile.in
1 #
2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001 Free Software Foundation
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
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
26 srcdir = .
27
28 prefix = /usr/local
29 exec_prefix = $(prefix)
30
31 bindir=${exec_prefix}/bin
32 sbindir=${exec_prefix}/sbin
33 libexecdir=${exec_prefix}/libexec
34 datadir=${prefix}/share
35 sysconfdir=${prefix}/etc
36 sharedstatedir=${prefix}/com
37 localstatedir=${prefix}/var
38 libdir=${exec_prefix}/lib
39 includedir=${prefix}/include
40 oldincludedir=/usr/include
41 infodir=${prefix}/info
42 mandir=${prefix}/man
43 gxx_include_dir=${includedir}/g++
44
45 tooldir = $(exec_prefix)/$(target_alias)
46 build_tooldir = $(exec_prefix)/$(target_alias)
47
48 program_transform_name =
49
50 man1dir = $(mandir)/man1
51 man2dir = $(mandir)/man2
52 man3dir = $(mandir)/man3
53 man4dir = $(mandir)/man4
54 man5dir = $(mandir)/man5
55 man6dir = $(mandir)/man6
56 man7dir = $(mandir)/man7
57 man8dir = $(mandir)/man8
58 man9dir = $(mandir)/man9
59 infodir = $(prefix)/info
60 includedir = $(prefix)/include
61 # Directory in which the compiler finds executables, libraries, etc.
62 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
63 GDB_NLM_DEPS =
64
65 SHELL = /bin/sh
66
67 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
68 # cygwin host.
69 INSTALL_PROGRAM_ARGS =
70
71 INSTALL = $(SHELL) $$s/install-sh -c
72 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
73 INSTALL_SCRIPT = $(INSTALL)
74 INSTALL_DATA = $(INSTALL) -m 644
75
76 INSTALL_DOSREL = install-dosrel-fake
77
78 AS = as
79 AR = ar
80 AR_FLAGS = rc
81 CC = 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.
85 HOST_CC = $(CC_FOR_BUILD)
86 HOST_PREFIX =
87 HOST_PREFIX_1 = loser-
88
89 # These flag values are normally overridden by the configure script.
90 CFLAGS = -g
91 CXXFLAGS = -g -O2
92
93 LDFLAGS =
94 LIBCFLAGS = $(CFLAGS)
95 CFLAGS_FOR_TARGET = $(CFLAGS)
96 LDFLAGS_FOR_TARGET =
97 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
98 PICFLAG =
99 PICFLAG_FOR_TARGET =
100
101 CHILLFLAGS = $(CFLAGS)
102 CHILL_LIB = -lchill
103 CXX = c++
104
105 # Use -O2 to stress test the compiler.
106 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
107 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
108 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
109
110 RANLIB = ranlib
111
112 DLLTOOL = dlltool
113 WINDRES = windres
114
115 NM = nm
116
117 LD = ld
118
119 BZIPPROG = bzip2
120 MD5PROG = md5sum
121
122 # These values are substituted by configure.
123 DEFAULT_YACC = yacc
124 DEFAULT_LEX = lex
125 DEFAULT_M4 = m4
126
127 BISON = `if [ -f $$r/bison/bison ] ; then \
128 echo $$r/bison/bison -L $$s/bison/ ; \
129 else \
130 echo bison ; \
131 fi`
132
133 YACC = `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
141 LEX = `if [ -f $$r/flex/flex ] ; \
142 then echo $$r/flex/flex ; \
143 else echo ${DEFAULT_LEX} ; fi`
144
145 M4 = `if [ -f $$r/m4/m4 ] ; \
146 then echo $$r/m4/m4 ; \
147 else echo ${DEFAULT_M4} ; fi`
148
149 # For an installed makeinfo, we require it to be from texinfo 4 or
150 # higher, else we use the "missing" dummy.
151 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
152 then echo $$r/texinfo/makeinfo/makeinfo ; \
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`
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.
160 MAKEINFOFLAGS =
161
162 EXPECT = `if [ -f $$r/expect/expect ] ; \
163 then echo $$r/expect/expect ; \
164 else echo expect ; fi`
165
166 RUNTEST = `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.
173 CC_FOR_BUILD = $(CC)
174 CXX_FOR_BUILD = $(CXX)
175
176 SUBDIRS = "this is set via configure, don't edit this"
177 OTHERS =
178
179 # This is set by the configure script to the list of directories which
180 # should be built using the target tools.
181 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib libio librx libstdc++ libg++ winsup opcodes bsp libstub cygmon libf2c libchill libobjc
182
183 # Target libraries are put under this directory:
184 # Changed by configure to $(target_alias) if cross.
185 TARGET_SUBDIR = .
186
187 BUILD_CONFIGDIRS = libiberty
188 BUILD_SUBDIR = .
189
190 # This is set by the configure script to the arguments to use when configuring
191 # directories built for the target.
192 TARGET_CONFIGARGS =
193
194 # This is set by the configure script to the arguments to use when configuring
195 # directories built for the build system.
196 BUILD_CONFIGARGS =
197
198 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
199 # was used.
200 SET_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.
204 RPATH_ENVVAR = LD_LIBRARY_PATH
205
206 # This is the list of directories that may be needed in RPATH_ENVVAR
207 # so that programs built for the host machine work.
208 HOST_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.
212 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libstdc++
213
214 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
215 # Some platforms don't like blank entries, so we remove duplicate,
216 # leading and trailing colons.
217 REALLY_SET_LIB_PATH = \
218 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
219
220 ALL = all.normal
221 INSTALL_TARGET = installdirs \
222 install-gcc \
223 $(INSTALL_MODULES) \
224 $(INSTALL_TARGET_MODULES) \
225 $(INSTALL_X11_MODULES) \
226 $(INSTALL_DOSREL)
227
228 INSTALL_TARGET_CROSS = installdirs \
229 install-gcc-cross \
230 $(INSTALL_MODULES) \
231 $(INSTALL_TARGET_MODULES) \
232 $(INSTALL_X11_MODULES) \
233 $(INSTALL_DOSREL)
234
235 # Should be substed by configure.in
236 FLAGS_FOR_TARGET =
237 CC_FOR_TARGET =
238 CHILL_FOR_TARGET =
239 CXX_FOR_TARGET =
240 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =
241
242 # If GCC_FOR_TARGET is not overriden on the command line, then this
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.
246 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
247
248 AS_FOR_TARGET = ` \
249 if [ -f $$r/gas/as-new ] ; then \
250 echo $$r/gas/as-new ; \
251 elif [ -f $$r/gcc/xgcc ]; then \
252 $(CC_FOR_TARGET) -print-prog-name=as ; \
253 else \
254 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
255 echo $(AS); \
256 else \
257 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
258 fi; \
259 fi`
260
261 LD_FOR_TARGET = ` \
262 if [ -f $$r/ld/ld-new ] ; then \
263 echo $$r/ld/ld-new ; \
264 elif [ -f $$r/gcc/xgcc ]; then \
265 $(CC_FOR_TARGET) -print-prog-name=ld ; \
266 else \
267 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
268 echo $(LD); \
269 else \
270 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
271 fi; \
272 fi`
273
274 DLLTOOL_FOR_TARGET = ` \
275 if [ -f $$r/binutils/dlltool ] ; then \
276 echo $$r/binutils/dlltool ; \
277 else \
278 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
279 echo $(DLLTOOL); \
280 else \
281 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
282 fi; \
283 fi`
284
285 WINDRES_FOR_TARGET = ` \
286 if [ -f $$r/binutils/windres ] ; then \
287 echo $$r/binutils/windres ; \
288 else \
289 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
290 echo $(WINDRES); \
291 else \
292 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
293 fi; \
294 fi`
295
296 AR_FOR_TARGET = ` \
297 if [ -f $$r/binutils/ar ] ; then \
298 echo $$r/binutils/ar ; \
299 else \
300 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
301 echo $(AR); \
302 else \
303 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
304 fi; \
305 fi`
306
307 RANLIB_FOR_TARGET = ` \
308 if [ -f $$r/binutils/ranlib ] ; then \
309 echo $$r/binutils/ranlib ; \
310 else \
311 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
312 if [ x'$(RANLIB)' != x ]; then \
313 echo $(RANLIB); \
314 else \
315 echo ranlib; \
316 fi; \
317 else \
318 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
319 fi; \
320 fi`
321
322 NM_FOR_TARGET = ` \
323 if [ -f $$r/binutils/nm-new ] ; then \
324 echo $$r/binutils/nm-new ; \
325 elif [ -f $$r/gcc/xgcc ]; then \
326 $(CC_FOR_TARGET) -print-prog-name=nm ; \
327 else \
328 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
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.
337 all: 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.
343 EXTRA_TARGET_HOST_ALL_MODULES =
344 EXTRA_TARGET_HOST_INSTALL_MODULES =
345 EXTRA_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.
352 BASE_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)" \
409 "build_tooldir=$(build_tooldir)" \
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
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.
421 RECURSE_FLAGS = \
422 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
423
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.
427 EXTRA_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
438 FLAGS_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 #
448 X11_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.
456 EXTRA_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
471 TARGET_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.
479 EXTRA_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
502 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
503
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.
507 ALL_BUILD_MODULES_LIST = \
508 all-build-libiberty
509 ALL_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.
513 CONFIGURE_BUILD_MODULES = \
514 configure-build-libiberty
515
516 # This is a list of the targets for all of the modules which are compiled
517 # using $(FLAGS_TO_PASS).
518 ALL_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 \
529 all-cgen \
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 \
572 all-sid \
573 all-sim \
574 all-snavigator \
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 \
585 all-zlib \
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.
594 NATIVE_CHECK_MODULES = \
595 check-bison \
596 check-byacc \
597 check-flex \
598 check-zip
599
600 CROSS_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 \
609 check-cgen \
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 \
648 check-snavigator \
649 check-sid \
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
661 CHECK_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.
670 INSTALL_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 \
682 install-cgen \
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 \
725 install-sid \
726 install-sim \
727 install-snavigator \
728 install-tar \
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).
739 ALL_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).
753 CHECK_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).
765 INSTALL_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).
779 ALL_TARGET_MODULES = \
780 all-target-libio \
781 all-target-libstdc++ \
782 all-target-libstdc++-v3 \
783 all-target-librx \
784 all-target-libg++ \
785 all-target-newlib \
786 all-target-libf2c \
787 all-target-libchill \
788 all-target-libobjc \
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 \
796 all-target-libffi \
797 all-target-libjava \
798 all-target-zlib \
799 all-target-boehm-gc \
800 all-target-qthreads \
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.
806 CONFIGURE_TARGET_MODULES = \
807 configure-target-libio \
808 configure-target-libstdc++ \
809 configure-target-libstdc++-v3 \
810 configure-target-librx \
811 configure-target-libg++ \
812 configure-target-newlib \
813 configure-target-libf2c \
814 configure-target-libchill \
815 configure-target-libobjc \
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 \
823 configure-target-libffi \
824 configure-target-libjava \
825 configure-target-zlib \
826 configure-target-boehm-gc \
827 configure-target-qthreads \
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).
833 CHECK_TARGET_MODULES = \
834 check-target-libio \
835 check-target-libstdc++ \
836 check-target-libstdc++-v3 \
837 check-target-libg++ \
838 check-target-newlib \
839 check-target-libf2c \
840 check-target-libchill \
841 check-target-libobjc \
842 check-target-winsup \
843 check-target-libiberty \
844 check-target-libffi \
845 check-target-libjava \
846 check-target-zlib \
847 check-target-boehm-gc \
848 check-target-qthreads \
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).
853 INSTALL_TARGET_MODULES = \
854 install-target-libio \
855 install-target-libstdc++ \
856 install-target-libstdc++-v3 \
857 install-target-libg++ \
858 install-target-newlib \
859 install-target-libf2c \
860 install-target-libchill \
861 install-target-libobjc \
862 install-target-libtermcap \
863 install-target-winsup \
864 install-target-libgloss \
865 install-target-libiberty \
866 install-target-bsp \
867 install-target-libjava \
868 install-target-zlib \
869 install-target-boehm-gc \
870 install-target-qthreads \
871 install-target-gperf
872
873 # This is a list of the targets for which we can do a clean-{target}.
874 CLEAN_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 \
885 clean-cgen \
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 \
928 clean-sid \
929 clean-sim \
930 clean-snavigator \
931 clean-tar \
932 clean-tcl \
933 clean-texinfo \
934 clean-textutils \
935 clean-tgas \
936 clean-time \
937 clean-uudecode \
938 clean-wdiff \
939 clean-zip \
940 clean-zlib
941
942 # All of the target modules that can be cleaned
943 CLEAN_TARGET_MODULES = \
944 clean-target-libio \
945 clean-target-libstdc++ \
946 clean-target-libstdc++-v3 \
947 clean-target-librx \
948 clean-target-libg++ \
949 clean-target-newlib \
950 clean-target-libf2c \
951 clean-target-libchill \
952 clean-target-libobjc \
953 clean-target-winsup \
954 clean-target-libgloss \
955 clean-target-libiberty \
956 clean-target-gperf \
957 clean-target-examples \
958 clean-target-libstub \
959 clean-target-libffi \
960 clean-target-libjava \
961 clean-target-zlib \
962 clean-target-boehm-gc \
963 clean-target-qthreads \
964 clean-target-bsp \
965 clean-target-cygmon
966
967 # All of the x11 modules that can be cleaned
968 CLEAN_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
981 all.normal: \
982 $(ALL_BUILD_MODULES) \
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.
995 DO_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 \
1016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1017 done; \
1018 ;; \
1019 *) \
1020 for flag in $(EXTRA_HOST_FLAGS); do \
1021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1022 done; \
1023 ;; \
1024 esac ; \
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 \
1041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1042 done; \
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
1058 info: do-info
1059 installcheck: do-installcheck
1060 dvi: do-dvi
1061
1062 # Make sure makeinfo is built before we do a `make info'.
1063 do-info: all-texinfo
1064
1065 install-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
1071 local-clean:
1072 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1073
1074 local-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
1080 local-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
1084 clean: do-clean local-clean
1085 mostlyclean: do-mostlyclean local-clean
1086 distclean: do-distclean local-clean local-distclean
1087 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1088 maintainer-clean: local-distclean
1089 realclean: 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
1117 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1118 clean-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
1123
1124 # Check target.
1125
1126 .PHONY: check
1127 check: $(CHECK_MODULES) \
1128 $(CHECK_TARGET_MODULES) \
1129 $(CHECK_X11_MODULES) \
1130 check-gcc
1131
1132 # Automated reporting of test results.
1133
1134 warning.log: build.log
1135 $(srcdir)/contrib/warn_summary build.log > $@
1136
1137 mail-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
1145 mail-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
1156 install: $(INSTALL_TARGET)
1157 install-cross: $(INSTALL_TARGET_CROSS)
1158
1159 uninstall:
1160 @echo "the uninstall target is not supported in this tree"
1161
1162 source-vault:
1163 $(MAKE) -f ./release/Build-A-Release \
1164 host=$(host_alias) source-vault
1165
1166 binary-vault:
1167 $(MAKE) -f ./release/Build-A-Release \
1168 host=$(host_alias) target=$(target_alias)
1169
1170 vault-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
1178 install.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.
1190 inet-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
1196 install-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
1207 gcc-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
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
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):
1348 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
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 \
1468 $(TARGET_CONFIGARGS) $${srcdiroption} \
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 \
1473 $(TARGET_CONFIGARGS) $${srcdiroption} \
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) \
1499 (cd $(TARGET_SUBDIR)/$${dir}; \
1500 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
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) \
1514 (cd $(TARGET_SUBDIR)/$${dir}; \
1515 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
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
1583 all-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
1604 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1605 @r=`pwd`; export r; \
1606 s=`cd $(srcdir); pwd`; export s; \
1607 $(SET_LIB_PATH) \
1608 echo "Bootstrapping the compiler"; \
1609 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
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"; \
1625 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1626 @r=`pwd`; export r; \
1627 s=`cd $(srcdir); pwd` ; export s; \
1628 $(SET_LIB_PATH) \
1629 echo "Building runtime libraries"; \
1630 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1631
1632 .PHONY: cross
1633 cross: 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"; \
1638 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1639 @r=`pwd`; export r; \
1640 s=`cd $(srcdir); pwd` ; export s; \
1641 $(SET_LIB_PATH) \
1642 echo "Building runtime libraries"; \
1643 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1644 LANGUAGES="c c++" all
1645
1646 .PHONY: check-gcc
1647 check-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
1658 install-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
1669 install-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
1682 install-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
1693 install-dosrel-fake:
1694
1695 ALL_GCC = all-gcc
1696 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1697 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++ all-target-libstdc++-v3
1698
1699 # This is a list of inter-dependencies among modules.
1700 all-apache:
1701 all-ash:
1702 all-autoconf: all-m4 all-texinfo
1703 all-automake: all-m4 all-texinfo
1704 all-bash:
1705 all-bfd: all-libiberty all-intl
1706 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1707 all-bison: all-texinfo
1708 configure-target-boehm-gc: $(ALL_GCC_CXX) configure-target-qthreads
1709 all-target-boehm-gc: configure-target-boehm-gc
1710 configure-target-bsp: $(ALL_GCC_C)
1711 all-target-bsp: configure-target-bsp
1712 all-byacc:
1713 all-bzip2:
1714 all-cgen: all-libiberty
1715 all-cvssrc:
1716 configure-target-cygmon: $(ALL_GCC_C)
1717 all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libio all-target-libstub all-target-bsp
1718 all-db:
1719 all-dejagnu: all-tcl all-expect all-tk
1720 all-diff: all-libiberty
1721 all-emacs:
1722 all-emacs19: all-bison all-byacc
1723 all-etc:
1724 configure-target-examples: $(ALL_GCC_C)
1725 all-target-examples: configure-target-examples
1726 all-expect: all-tcl all-tk
1727 all-fileutils: all-libiberty
1728 all-findutils:
1729 all-find:
1730 all-flex: all-libiberty all-bison all-byacc
1731 all-gas: all-libiberty all-opcodes all-bfd all-intl
1732 all-gash: all-tcl
1733 all-gawk:
1734 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1735 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1736 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1737 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1738 all-gettext:
1739 all-gnuserv:
1740 configure-target-gperf: $(ALL_GCC_CXX)
1741 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
1742 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1743 all-grep: all-libiberty
1744 all-grez: all-libiberty all-bfd all-opcodes
1745 all-gui: all-gdb all-libproc all-target-librx
1746 all-guile:
1747 all-gzip: all-libiberty
1748 all-hello: all-libiberty
1749 all-indent:
1750 all-inet: all-tcl all-send-pr all-perl
1751 all-intl:
1752 all-ispell: all-emacs19
1753 all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
1754 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1755 configure-target-libg++: $(ALL_GCC_CXX) configure-target-librx
1756 all-target-libg++: configure-target-libg++ all-target-libiberty all-target-librx
1757 configure-target-libgloss: $(ALL_GCC)
1758 all-target-libgloss: configure-target-libgloss configure-target-newlib
1759 configure-target-libio: $(ALL_GCC_C)
1760 all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1761 check-target-libio: all-target-libstdc++
1762 all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1763 all-libiberty:
1764
1765 all-build-libiberty: configure-build-libiberty
1766
1767 configure-target-libffi: $(ALL_GCC_C)
1768 all-target-libffi: configure-target-libffi
1769 configure-target-libjava: $(ALL_GCC_CXX) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1770 all-target-libjava: configure-target-libjava all-zip all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1771 configure-target-librx: $(ALL_GCC_C)
1772 all-target-librx: configure-target-librx
1773 configure-target-libstdc++: $(ALL_GCC_C)
1774 all-target-libstdc++: configure-target-libstdc++ all-target-libiberty all-target-libio
1775 configure-target-libstdc++-v3: $(ALL_GCC_C)
1776 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1777 configure-target-libstub: $(ALL_GCC_C)
1778 all-target-libstub: configure-target-libstub
1779 all-libtool:
1780 configure-target-libf2c: $(ALL_GCC_C)
1781 all-target-libf2c: configure-target-libf2c all-target-libiberty
1782 configure-target-libchill: $(ALL_GCC_C)
1783 all-target-libchill: configure-target-libchill all-target-libiberty
1784 configure-target-libobjc: $(ALL_GCC_C)
1785 all-target-libobjc: configure-target-libobjc all-target-libiberty
1786 all-m4: all-libiberty all-texinfo
1787 all-make: all-libiberty
1788 all-mmalloc:
1789 configure-target-newlib: $(ALL_GCC)
1790 all-target-newlib: configure-target-newlib
1791 configure-target-libtermcap: $(ALL_GCC_C)
1792 all-target-libtermcap: configure-target-libtermcap
1793 all-opcodes: all-bfd all-libiberty all-cgen
1794 all-patch: all-libiberty
1795 all-perl:
1796 all-prms: all-libiberty
1797 configure-target-qthreads: $(ALL_GCC_C)
1798 all-target-qthreads: configure-target-qthreads
1799 all-rcs:
1800 all-readline:
1801 all-recode: all-libiberty
1802 all-sed: all-libiberty
1803 all-send-pr: all-prms
1804 all-shellutils:
1805 all-sid: all-tcl all-tk
1806 all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen
1807 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1808 all-tar: all-libiberty
1809 all-tcl:
1810 all-tcl8.1:
1811 all-tclX: all-tcl all-tk
1812 all-tk: all-tcl
1813 all-tk8.1: all-tcl8.1
1814 all-texinfo: all-libiberty
1815 all-textutils:
1816 all-tgas: all-libiberty all-bfd all-opcodes
1817 all-time:
1818 all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
1819 all-wdiff:
1820 configure-target-winsup: $(ALL_GCC_C)
1821 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
1822 all-uudecode: all-libiberty
1823 all-zip:
1824 all-zlib:
1825 configure-target-zlib: $(ALL_GCC_C)
1826 all-target-zlib: configure-target-zlib
1827 configure-target-libiberty: $(ALL_GCC_C)
1828 all-target-libiberty: configure-target-libiberty
1829 all-target: $(ALL_TARGET_MODULES)
1830 install-target: $(INSTALL_TARGET_MODULES)
1831 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1832 install-sid: install-tcl install-tk
1833 ### other supporting targets
1834
1835 MAKEDIRS= \
1836 $(prefix) \
1837 $(exec_prefix)
1838 .PHONY: installdirs
1839 installdirs: mkinstalldirs
1840 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1841
1842 dir.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
1849 dist:
1850 @echo "Building a full distribution of this tree isn't done"
1851 @echo "via 'make dist'. Check out the etc/ subdirectory"
1852
1853 etags 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.
1861 TAGS: do-TAGS
1862
1863 # with the gnu make, this is done automatically.
1864
1865 Makefile: 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).
1874 DEVO_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 \
1878 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1879 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
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).
1884 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1885 make-stds.texi standards.info* configure.texi configure.info* \
1886 configbuild.* configdev.*
1887
1888
1889 # When you use `make setup-dirs' or `make taz' you should always redefine
1890 # this macro.
1891 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1892
1893 # NOTE: No double quotes in the below. It is used within shell script
1894 # as VER="$(VER)"
1895 VER = ` 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 \
1898 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
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 \
1902 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1903 else \
1904 echo VERSION; \
1905 fi`
1906 PACKAGE = $(TOOL)
1907
1908 .PHONY: taz
1909 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1910 $(MAKE) -f Makefile.in do-proto-toplev \
1911 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1912 MD5PROG="$(MD5PROG)" \
1913 SUPPORT_FILES="$(SUPPORT_FILES)"
1914 $(MAKE) -f Makefile.in do-md5sum \
1915 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1916 MD5PROG="$(MD5PROG)" \
1917 SUPPORT_FILES="$(SUPPORT_FILES)"
1918 $(MAKE) -f Makefile.in do-tar-bz2 \
1919 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1920 MD5PROG="$(MD5PROG)" \
1921 SUPPORT_FILES="$(SUPPORT_FILES)"
1922
1923 .PHONY: gdb-taz
1924 gdb-taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
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 \
1938 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1939 MD5PROG="$(MD5PROG)" \
1940 SUPPORT_FILES="$(SUPPORT_FILES)"
1941
1942 .PHONY: do-proto-toplev
1943 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1944 echo "==> Making $(PACKAGE)-$(VER)/"
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)" ] \
1953 || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1954 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
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
1974 cd etc && $(MAKE) info
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/
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`
1995 #
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 #
2001 -rm -f $(PACKAGE)-$(VER)
2002 ln -s proto-toplev $(PACKAGE)-$(VER)
2003
2004 .PHONY: do-tar-bz2
2005 do-tar-bz2:
2006 echo "==> Making $(PACKAGE)-$(VER).tar.bz2"
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
2010 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
2011
2012 .PHONY: do-md5sum
2013 do-md5sum:
2014 echo "==> Adding md5 checksum to top-level directory"
2015 cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2016 | xargs $(MD5PROG) > ../md5.sum
2017 mv md5.sum proto-toplev
2018
2019 .PHONY: do-djunpack
2020 do-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
2029 TEXINFO_SUPPORT= texinfo/texinfo.tex
2030 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2031
2032 .PHONY: gas.tar.bz2
2033 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
2034 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
2035 $(MAKE) -f Makefile.in taz TOOL=gas \
2036 MD5PROG="$(MD5PROG)" \
2037 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2038
2039 # The FSF "binutils" release includes gprof and ld.
2040 .PHONY: binutils.tar.bz2
2041 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2042 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2043 $(MAKE) -f Makefile.in taz TOOL=binutils \
2044 MD5PROG="$(MD5PROG)" \
2045 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2046
2047 .PHONY: gas+binutils.tar.bz2
2048 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2049 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2050 $(MAKE) -f Makefile.in taz TOOL=gas \
2051 MD5PROG="$(MD5PROG)" \
2052 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2053
2054 .PHONY: libg++.tar.bz2
2055 LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
2056 libg++.tar.bz2: $(DIST_SUPPORT) libg++
2057 $(MAKE) -f Makefile.in taz TOOL=libg++ \
2058 MD5PROG="$(MD5PROG)" \
2059 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
2060
2061 GNATS_SUPPORT_DIRS=include libiberty send-pr
2062 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2063 $(MAKE) -f Makefile.in taz TOOL=gnats \
2064 MD5PROG="$(MD5PROG)" \
2065 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2066
2067 .PHONY: gdb.tar.bz2
2068 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2069 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2070 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2071 MD5PROG="$(MD5PROG)" \
2072 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2073
2074 .PHONY: dejagnu.tar.bz2
2075 DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
2076 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2077 $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2078 MD5PROG="$(MD5PROG)" \
2079 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2080
2081 .PHONY: gdb+dejagnu.tar.bz2
2082 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2083 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2084 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2085 MD5PROG="$(MD5PROG)" \
2086 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2087
2088 .PHONY: insight.tar.bz2
2089 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2090 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2091 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2092 MD5PROG="$(MD5PROG)" \
2093 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2094
2095 .PHONY: insight+dejagnu.tar.bz2
2096 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2097 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2098 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2099 MD5PROG="$(MD5PROG)" \
2100 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2101
2102 .PHONY: newlib.tar.bz2
2103 NEWLIB_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).
2115 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2116 $(MAKE) -f Makefile.in taz TOOL=newlib \
2117 MD5PROG="$(MD5PROG)" \
2118 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2119 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2120
2121 .NOEXPORT:
2122 MAKEOVERRIDES=
2123
2124 # end of Makefile.in
This page took 0.072048 seconds and 5 git commands to generate.