2002-10-02 Nathanael Nerode <neroden@gcc.gnu.org>
[deliverable/binutils-gdb.git] / Makefile.in
1
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
3 #
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002 Free Software Foundation
7 #
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #
22
23 # Tell GNU make 3.79 not to run the top level in parallel. This
24 # prevents contention for $builddir/$target/config.cache, as well
25 # as minimizing scatter in file system caches.
26 NOTPARALLEL = .NOTPARALLEL
27 $(NOTPARALLEL):
28
29 srcdir = @srcdir@
30
31 prefix = @prefix@
32 exec_prefix = @exec_prefix@
33
34 bindir = @bindir@
35 sbindir = @sbindir@
36 libexecdir = @libexecdir@
37 datadir = @datadir@
38 sysconfdir = @sysconfdir@
39 sharedstatedir = @sharedstatedir@
40 localstatedir = @localstatedir@
41 libdir = @libdir@
42 includedir = @includedir@
43 oldincludedir = @oldincludedir@
44 infodir = @infodir@
45 mandir = @mandir@
46 gxx_include_dir=@gxx_include_dir@
47
48 tooldir = @tooldir@
49 build_tooldir = @build_tooldir@
50
51 program_transform_name = @program_transform_name@
52
53 man1dir = $(mandir)/man1
54 man2dir = $(mandir)/man2
55 man3dir = $(mandir)/man3
56 man4dir = $(mandir)/man4
57 man5dir = $(mandir)/man5
58 man6dir = $(mandir)/man6
59 man7dir = $(mandir)/man7
60 man8dir = $(mandir)/man8
61 man9dir = $(mandir)/man9
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
64 GDB_NLM_DEPS =
65
66 SHELL = @config_shell@
67
68 # pwd command to use. Allow user to override default by setting PWDCMD in
69 # the environment to account for automounters. The make variable must not
70 # be called PWDCMD, otherwise the value set here is passed to make
71 # subprocesses and overrides the setting from the user's environment.
72 PWD = $${PWDCMD-pwd}
73
74 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
75 # cygwin host.
76 INSTALL_PROGRAM_ARGS =
77
78 INSTALL = $(SHELL) $$s/install-sh -c
79 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
80 INSTALL_SCRIPT = $(INSTALL)
81 INSTALL_DATA = $(INSTALL) -m 644
82
83 INSTALL_DOSREL = install-dosrel-fake
84
85 AS = as
86 AR = ar
87 AR_FLAGS = rc
88 CC = cc
89
90 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
91 # here so that they can be overridden by Makefile fragments.
92 HOST_CC = $(CC_FOR_BUILD)
93 BUILD_PREFIX =
94 BUILD_PREFIX_1 = loser-
95
96 # These flag values are normally overridden by the configure script.
97 CFLAGS = -g
98 CXXFLAGS = -g -O2
99
100 LDFLAGS =
101 LIBCFLAGS = $(CFLAGS)
102 CFLAGS_FOR_BUILD = $(CFLAGS)
103 # During gcc bootstrap, if we use some random cc for stage1 then
104 # CFLAGS will be just -g. We want to ensure that TARGET libraries
105 # (which we know are built with gcc) are built with optimizations so
106 # prepend -O2 when setting CFLAGS_FOR_TARGET.
107 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
108 LDFLAGS_FOR_TARGET =
109 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
110 PICFLAG =
111 PICFLAG_FOR_TARGET =
112
113 CXX = c++
114
115 # Use -O2 to stress test the compiler.
116 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
117 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
118 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
119
120 DLLTOOL = dlltool
121 WINDRES = windres
122
123 NM = nm
124
125 LD = ld
126
127 # These values are substituted by configure.
128 DEFAULT_YACC = @DEFAULT_YACC@
129 DEFAULT_LEX = @DEFAULT_LEX@
130 DEFAULT_M4 = @DEFAULT_M4@
131
132 BISON = `if [ -f $$r/bison/bison ] ; then \
133 echo $$r/bison/bison -L $$s/bison/ ; \
134 else \
135 echo bison ; \
136 fi`
137
138 YACC = `if [ -f $$r/bison/bison ] ; then \
139 echo $$r/bison/bison -y -L $$s/bison/ ; \
140 elif [ -f $$r/byacc/byacc ] ; then \
141 echo $$r/byacc/byacc ; \
142 else \
143 echo ${DEFAULT_YACC} ; \
144 fi`
145
146 LEX = `if [ -f $$r/flex/flex ] ; \
147 then echo $$r/flex/flex ; \
148 else echo ${DEFAULT_LEX} ; fi`
149
150 M4 = `if [ -f $$r/m4/m4 ] ; \
151 then echo $$r/m4/m4 ; \
152 else echo ${DEFAULT_M4} ; fi`
153
154 # For an installed makeinfo, we require it to be from texinfo 4 or
155 # higher, else we use the "missing" dummy.
156 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
157 then echo $$r/texinfo/makeinfo/makeinfo ; \
158 else if (makeinfo --version \
159 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
160 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
161
162 # This just becomes part of the MAKEINFO definition passed down to
163 # sub-makes. It lets flags be given on the command line while still
164 # using the makeinfo from the object tree.
165 MAKEINFOFLAGS =
166
167 EXPECT = `if [ -f $$r/expect/expect ] ; \
168 then echo $$r/expect/expect ; \
169 else echo expect ; fi`
170
171 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
172 then echo $$s/dejagnu/runtest ; \
173 else echo runtest ; fi`
174
175
176 # compilers to use to create programs which must be run in the build
177 # environment.
178 CC_FOR_BUILD = $(CC)
179 CXX_FOR_BUILD = $(CXX)
180
181 SUBDIRS = @configdirs@
182
183 # This is set by the configure script to the list of directories which
184 # should be built using the target tools.
185 TARGET_CONFIGDIRS = @target_configdirs@
186
187 # Target libraries are put under this directory:
188 # Changed by configure to $(target_alias) if cross.
189 TARGET_SUBDIR = @target_subdir@
190
191 BUILD_CONFIGDIRS = libiberty
192 BUILD_SUBDIR = @build_subdir@
193
194 # This is set by the configure script to the arguments to use when configuring
195 # directories built for the target.
196 TARGET_CONFIGARGS = @target_configargs@
197
198 # This is set by the configure script to the arguments to use when configuring
199 # directories built for the build system.
200 BUILD_CONFIGARGS = @build_configargs@
201
202 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
203 # was used.
204 SET_LIB_PATH =
205
206 # This is the name of the environment variable used for the path to
207 # the libraries. This may be changed by configure.in.
208 RPATH_ENVVAR = LD_LIBRARY_PATH
209
210 # This is the list of directories that may be needed in RPATH_ENVVAR
211 # so that programs built for the host machine work.
212 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
213
214 # This is the list of directories that may be needed in RPATH_ENVVAR
215 # so that prorgams built for the target machine work.
216 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
217
218 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
219 # Some platforms don't like blank entries, so we remove duplicate,
220 # leading and trailing colons.
221 REALLY_SET_LIB_PATH = \
222 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
223
224 ALL = all.normal
225 INSTALL_TARGET = installdirs \
226 install-gcc \
227 $(INSTALL_MODULES) \
228 $(INSTALL_TARGET_MODULES) \
229 $(INSTALL_X11_MODULES) \
230 $(INSTALL_DOSREL)
231
232 INSTALL_TARGET_CROSS = installdirs \
233 install-gcc-cross \
234 $(INSTALL_MODULES) \
235 $(INSTALL_TARGET_MODULES) \
236 $(INSTALL_X11_MODULES) \
237 $(INSTALL_DOSREL)
238
239 # Should be substed by configure.in
240 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
241 CC_FOR_TARGET = @CC_FOR_TARGET@
242 CXX_FOR_TARGET = @CXX_FOR_TARGET@
243 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
244 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
245
246 # If GCC_FOR_TARGET is not overriden on the command line, then this
247 # variable is passed down to the gcc Makefile, where it is used to
248 # build libgcc2.a. We define it here so that it can itself be
249 # overridden on the command line.
250 GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
251
252 AS_FOR_TARGET = ` \
253 if [ -f $$r/gas/as-new ] ; then \
254 echo $$r/gas/as-new ; \
255 elif [ -f $$r/gcc/xgcc ]; then \
256 $(CC_FOR_TARGET) -print-prog-name=as ; \
257 else \
258 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
259 echo $(AS); \
260 else \
261 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
262 fi; \
263 fi`
264
265 LD_FOR_TARGET = ` \
266 if [ -f $$r/ld/ld-new ] ; then \
267 echo $$r/ld/ld-new ; \
268 elif [ -f $$r/gcc/xgcc ]; then \
269 $(CC_FOR_TARGET) -print-prog-name=ld ; \
270 else \
271 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
272 echo $(LD); \
273 else \
274 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
275 fi; \
276 fi`
277
278 DLLTOOL_FOR_TARGET = ` \
279 if [ -f $$r/binutils/dlltool ] ; then \
280 echo $$r/binutils/dlltool ; \
281 else \
282 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
283 echo $(DLLTOOL); \
284 else \
285 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
286 fi; \
287 fi`
288
289 WINDRES_FOR_TARGET = ` \
290 if [ -f $$r/binutils/windres ] ; then \
291 echo $$r/binutils/windres ; \
292 else \
293 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
294 echo $(WINDRES); \
295 else \
296 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
297 fi; \
298 fi`
299
300 AR_FOR_TARGET = ` \
301 if [ -f $$r/binutils/ar ] ; then \
302 echo $$r/binutils/ar ; \
303 else \
304 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
305 echo $(AR); \
306 else \
307 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
308 fi; \
309 fi`
310
311 RANLIB_FOR_TARGET = ` \
312 if [ -f $$r/binutils/ranlib ] ; then \
313 echo $$r/binutils/ranlib ; \
314 else \
315 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
316 if [ x'$(RANLIB)' != x ]; then \
317 echo $(RANLIB); \
318 else \
319 echo ranlib; \
320 fi; \
321 else \
322 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
323 fi; \
324 fi`
325
326 NM_FOR_TARGET = ` \
327 if [ -f $$r/binutils/nm-new ] ; then \
328 echo $$r/binutils/nm-new ; \
329 elif [ -f $$r/gcc/xgcc ]; then \
330 $(CC_FOR_TARGET) -print-prog-name=nm ; \
331 else \
332 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
333 echo $(NM); \
334 else \
335 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
336 fi; \
337 fi`
338
339 # The first rule in the file had better be this one. Don't put any above it.
340 # This lives here to allow makefile fragments to contain dependencies.
341 all: all.normal
342 .PHONY: all
343
344 # These can be overridden by config/mt-*.
345 # The _TARGET_ is because they're specified in mt-foo.
346 # The _HOST_ is because they're programs that run on the host.
347 EXTRA_TARGET_HOST_ALL_MODULES =
348 EXTRA_TARGET_HOST_INSTALL_MODULES =
349 EXTRA_TARGET_HOST_CHECK_MODULES =
350
351 #### host and target specific makefile fragments come in here.
352 ###
353
354 # Flags to pass down to all sub-makes.
355 # Please keep these in alphabetical order.
356 BASE_FLAGS_TO_PASS = \
357 "AR_FLAGS=$(AR_FLAGS)" \
358 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
359 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
360 "BISON=$(BISON)" \
361 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
362 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
363 "CFLAGS=$(CFLAGS)" \
364 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
365 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
366 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
367 "CXXFLAGS=$(CXXFLAGS)" \
368 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
369 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
370 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
371 "INSTALL=$(INSTALL)" \
372 "INSTALL_DATA=$(INSTALL_DATA)" \
373 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
374 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
375 "LDFLAGS=$(LDFLAGS)" \
376 "LEX=$(LEX)" \
377 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
378 "LIBCFLAGS=$(LIBCFLAGS)" \
379 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
380 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
381 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
382 "M4=$(M4)" \
383 "MAKE=$(MAKE)" \
384 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
385 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
386 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
387 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
388 "SHELL=$(SHELL)" \
389 "EXPECT=$(EXPECT)" \
390 "RUNTEST=$(RUNTEST)" \
391 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
392 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
393 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
394 "YACC=$(YACC)" \
395 "bindir=$(bindir)" \
396 "datadir=$(datadir)" \
397 "exec_prefix=$(exec_prefix)" \
398 "includedir=$(includedir)" \
399 "infodir=$(infodir)" \
400 "libdir=$(libdir)" \
401 "libexecdir=$(libexecdir)" \
402 "lispdir=$(lispdir)" \
403 "libstdcxx_incdir=$(libstdcxx_incdir)" \
404 "libsubdir=$(libsubdir)" \
405 "localstatedir=$(localstatedir)" \
406 "mandir=$(mandir)" \
407 "oldincludedir=$(oldincludedir)" \
408 "prefix=$(prefix)" \
409 "sbindir=$(sbindir)" \
410 "sharedstatedir=$(sharedstatedir)" \
411 "sysconfdir=$(sysconfdir)" \
412 "tooldir=$(tooldir)" \
413 "build_tooldir=$(build_tooldir)" \
414 "gxx_include_dir=$(gxx_include_dir)" \
415 "gcc_version=$(gcc_version)" \
416 "gcc_version_trigger=$(gcc_version_trigger)" \
417 "target_alias=$(target_alias)"
418
419 # For any flags above that may contain shell code that varies from one
420 # target library to another. When doing recursive invocations of the
421 # top-level Makefile, we don't want the outer make to evaluate them,
422 # so we pass these variables down unchanged. They must not contain
423 # single nor double quotes.
424 RECURSE_FLAGS = \
425 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
426
427 # Flags to pass down to most sub-makes, in which we're building with
428 # the host environment.
429 # If any variables are added here, they must be added to do-*, below.
430 EXTRA_HOST_FLAGS = \
431 'AR=$(AR)' \
432 'AS=$(AS)' \
433 'CC=$(CC)' \
434 'CXX=$(CXX)' \
435 'DLLTOOL=$(DLLTOOL)' \
436 'LD=$(LD)' \
437 'NM=$(NM)' \
438 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
439 'WINDRES=$(WINDRES)'
440
441 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
442
443 # Flags that are concerned with the location of the X11 include files
444 # and library files
445 #
446 # NOTE: until the top-level is getting the values via autoconf, it only
447 # causes problems to have this top-level Makefile overriding the autoconf-set
448 # values in child directories. Only variables that don't conflict with
449 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
450 #
451 X11_FLAGS_TO_PASS = \
452 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
453 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
454
455 # Flags to pass down to makes which are built with the target environment.
456 # The double $ decreases the length of the command line; the variables
457 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
458 # If any variables are added here, they must be added to do-*, below.
459 EXTRA_TARGET_FLAGS = \
460 'AR=$$(AR_FOR_TARGET)' \
461 'AS=$$(AS_FOR_TARGET)' \
462 'CC=$$(CC_FOR_TARGET)' \
463 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
464 'CXX=$$(CXX_FOR_TARGET)' \
465 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
466 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
467 'LD=$$(LD_FOR_TARGET)' \
468 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
469 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
470 'NM=$$(NM_FOR_TARGET)' \
471 'RANLIB=$$(RANLIB_FOR_TARGET)' \
472 'WINDRES=$$(WINDRES_FOR_TARGET)'
473
474 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
475
476 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
477 # unfortunately needs the native compiler and the target ar and
478 # ranlib.
479 # If any variables are added here, they must be added to do-*, below.
480 # The HOST_* variables are a special case, which are used for the gcc
481 # cross-building scheme.
482 EXTRA_GCC_FLAGS = \
483 'AR=$(AR)' \
484 'AS=$(AS)' \
485 'CC=$(CC)' \
486 'CXX=$(CXX)' \
487 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488 'HOST_CC=$(CC_FOR_BUILD)' \
489 'BUILD_PREFIX=$(BUILD_PREFIX)' \
490 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
491 'NM=$(NM)' \
492 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
493 'WINDRES=$$(WINDRES_FOR_TARGET)' \
494 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
495 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
496 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
501 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
502 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
503 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
504 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
505
506 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
507
508 # This is a list of the targets for all of the modules which are compiled
509 # using the build machine's native compiler. Configure edits the second
510 # macro for build!=host builds.
511 ALL_BUILD_MODULES_LIST = \
512 all-build-libiberty
513 ALL_BUILD_MODULES = @all_build_modules@
514
515 # This is a list of the configure targets for all of the modules which
516 # are compiled using the native tools.
517 CONFIGURE_BUILD_MODULES = \
518 configure-build-libiberty
519
520 # This is a list of the targets for all of the modules which are compiled
521 # using $(FLAGS_TO_PASS).
522 ALL_MODULES = \
523 all-ash \
524 all-autoconf \
525 all-automake \
526 all-bash \
527 all-bfd \
528 all-opcodes \
529 all-binutils \
530 all-bison \
531 all-byacc \
532 all-bzip2 \
533 all-db \
534 all-dejagnu \
535 all-diff \
536 all-dosutils \
537 all-etc \
538 all-fastjar \
539 all-fileutils \
540 all-findutils \
541 all-find \
542 all-flex \
543 all-gas \
544 all-gawk \
545 all-gettext \
546 all-gnuserv \
547 all-gprof \
548 all-grep \
549 all-gzip \
550 all-hello \
551 all-indent \
552 all-intl \
553 all-tcl \
554 all-itcl \
555 all-ld \
556 all-libgui \
557 all-libiberty \
558 all-libtool \
559 all-m4 \
560 all-make \
561 all-mmalloc \
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-texinfo \
577 all-textutils \
578 all-time \
579 all-uudecode \
580 all-wdiff \
581 all-zip \
582 all-zlib \
583 $(EXTRA_TARGET_HOST_ALL_MODULES)
584
585 # This is a list of the check targets for all of the modules which are
586 # compiled using $(FLAGS_TO_PASS).
587 #
588 # The list is in two parts. The first lists those tools which
589 # are tested as part of the host's native tool-chain, and not
590 # tested in a cross configuration.
591 NATIVE_CHECK_MODULES = \
592 check-bison \
593 check-byacc \
594 check-fastjar \
595 check-flex \
596 check-zip
597
598 CROSS_CHECK_MODULES = \
599 check-ash \
600 check-autoconf \
601 check-automake \
602 check-bash \
603 check-bfd \
604 check-opcodes \
605 check-binutils \
606 check-bzip2 \
607 check-db \
608 check-dejagnu \
609 check-diff \
610 check-etc \
611 check-fileutils \
612 check-findutils \
613 check-find \
614 check-gas \
615 check-gawk \
616 check-gettext \
617 check-gnuserv \
618 check-gprof \
619 check-grep \
620 check-gzip \
621 check-hello \
622 check-indent \
623 check-intl \
624 check-tcl \
625 check-itcl \
626 check-ld \
627 check-libgui \
628 check-libiberty \
629 check-libtool \
630 check-m4 \
631 check-make \
632 check-patch \
633 check-perl \
634 check-prms \
635 check-rcs \
636 check-readline \
637 check-recode \
638 check-sed \
639 check-send-pr \
640 check-shellutils \
641 check-sid \
642 check-sim \
643 check-snavigator \
644 check-tar \
645 check-texinfo \
646 check-textutils \
647 check-time \
648 check-uudecode \
649 check-wdiff \
650 $(EXTRA_TARGET_HOST_CHECK_MODULES)
651
652 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
653
654 # This is a list of the install targets for all of the modules which are
655 # compiled using $(FLAGS_TO_PASS).
656 INSTALL_MODULES = \
657 install-ash \
658 install-autoconf \
659 install-automake \
660 install-bash \
661 install-bfd \
662 install-opcodes \
663 install-binutils \
664 install-bison \
665 install-byacc \
666 install-bzip2 \
667 install-db \
668 install-dejagnu \
669 install-diff \
670 install-dosutils \
671 install-etc \
672 install-fastjar \
673 install-fileutils \
674 install-findutils \
675 install-find \
676 install-flex \
677 install-gas \
678 install-gawk \
679 install-gettext \
680 install-gnuserv \
681 install-gprof \
682 install-grep \
683 install-gzip \
684 install-hello \
685 install-indent \
686 install-intl \
687 install-tcl \
688 install-itcl \
689 install-ld \
690 install-libgui \
691 install-libiberty \
692 install-libtool \
693 install-m4 \
694 install-make \
695 install-mmalloc \
696 install-patch \
697 install-perl \
698 install-prms \
699 install-rcs \
700 install-readline \
701 install-recode \
702 install-sed \
703 install-send-pr \
704 install-shellutils \
705 install-sid \
706 install-sim \
707 install-snavigator \
708 install-tar \
709 install-textutils \
710 install-time \
711 install-uudecode \
712 install-wdiff \
713 install-zip \
714 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
715
716 # This is a list of the targets for all of the modules which are compiled
717 # using $(X11_FLAGS_TO_PASS).
718 ALL_X11_MODULES = \
719 all-gdb \
720 all-expect \
721 all-guile \
722 all-tclX \
723 all-tk \
724 all-tix
725
726 # This is a list of the check targets for all of the modules which are
727 # compiled using $(X11_FLAGS_TO_PASS).
728 CHECK_X11_MODULES = \
729 check-gdb \
730 check-guile \
731 check-expect \
732 check-tclX \
733 check-tk \
734 check-tix
735
736 # This is a list of the install targets for all the modules which are
737 # compiled using $(X11_FLAGS_TO_PASS).
738 INSTALL_X11_MODULES = \
739 install-gdb \
740 install-guile \
741 install-expect \
742 install-tclX \
743 install-tk \
744 install-tix
745
746 # This is a list of the targets for all of the modules which are compiled
747 # using $(TARGET_FLAGS_TO_PASS).
748 ALL_TARGET_MODULES = \
749 all-target-libstdc++-v3 \
750 all-target-newlib \
751 all-target-libf2c \
752 all-target-libobjc \
753 all-target-libtermcap \
754 all-target-winsup \
755 all-target-libgloss \
756 all-target-libiberty \
757 all-target-gperf \
758 all-target-examples \
759 all-target-libffi \
760 all-target-libjava \
761 all-target-zlib \
762 all-target-boehm-gc \
763 all-target-qthreads
764
765 # This is a list of the configure targets for all of the modules which
766 # are compiled using the target tools.
767 CONFIGURE_TARGET_MODULES = \
768 configure-target-libstdc++-v3 \
769 configure-target-newlib \
770 configure-target-libf2c \
771 configure-target-libobjc \
772 configure-target-libtermcap \
773 configure-target-winsup \
774 configure-target-libgloss \
775 configure-target-libiberty \
776 configure-target-gperf \
777 configure-target-examples \
778 configure-target-libffi \
779 configure-target-libjava \
780 configure-target-zlib \
781 configure-target-boehm-gc \
782 configure-target-qthreads
783
784 # This is a list of the check targets for all of the modules which are
785 # compiled using $(TARGET_FLAGS_TO_PASS).
786 CHECK_TARGET_MODULES = \
787 check-target-libstdc++-v3 \
788 check-target-newlib \
789 check-target-libf2c \
790 check-target-libobjc \
791 check-target-winsup \
792 check-target-libiberty \
793 check-target-gperf \
794 check-target-libffi \
795 check-target-libjava \
796 check-target-zlib \
797 check-target-boehm-gc \
798 check-target-qthreads
799
800 # This is a list of the install targets for all of the modules which are
801 # compiled using $(TARGET_FLAGS_TO_PASS).
802 INSTALL_TARGET_MODULES = \
803 install-target-libstdc++-v3 \
804 install-target-newlib \
805 install-target-libf2c \
806 install-target-libobjc \
807 install-target-libtermcap \
808 install-target-winsup \
809 install-target-libgloss \
810 install-target-libiberty \
811 install-target-gperf \
812 install-target-libjava \
813 install-target-zlib \
814 install-target-boehm-gc \
815 install-target-qthreads
816
817 # This is a list of the targets for which we can do a clean-{target}.
818 CLEAN_MODULES = \
819 clean-ash \
820 clean-autoconf \
821 clean-automake \
822 clean-bash \
823 clean-bfd \
824 clean-opcodes \
825 clean-binutils \
826 clean-bison \
827 clean-byacc \
828 clean-bzip2 \
829 clean-db \
830 clean-dejagnu \
831 clean-diff \
832 clean-dosutils \
833 clean-etc \
834 clean-fastjar \
835 clean-fileutils \
836 clean-findutils \
837 clean-find \
838 clean-flex \
839 clean-gas \
840 clean-gawk \
841 clean-gettext \
842 clean-gnuserv \
843 clean-gprof \
844 clean-grep \
845 clean-gzip \
846 clean-hello \
847 clean-indent \
848 clean-intl \
849 clean-tcl \
850 clean-itcl \
851 clean-ld \
852 clean-libgui \
853 clean-libiberty \
854 clean-libtool \
855 clean-m4 \
856 clean-make \
857 clean-mmalloc \
858 clean-patch \
859 clean-perl \
860 clean-prms \
861 clean-rcs \
862 clean-readline \
863 clean-release \
864 clean-recode \
865 clean-sed \
866 clean-send-pr \
867 clean-shellutils \
868 clean-sid \
869 clean-sim \
870 clean-snavigator \
871 clean-tar \
872 clean-texinfo \
873 clean-textutils \
874 clean-time \
875 clean-uudecode \
876 clean-wdiff \
877 clean-zip \
878 clean-zlib
879
880 # All of the target modules that can be cleaned
881 CLEAN_TARGET_MODULES = \
882 clean-target-libstdc++-v3 \
883 clean-target-newlib \
884 clean-target-libf2c \
885 clean-target-libobjc \
886 clean-target-winsup \
887 clean-target-libgloss \
888 clean-target-libiberty \
889 clean-target-gperf \
890 clean-target-examples \
891 clean-target-libffi \
892 clean-target-libjava \
893 clean-target-zlib \
894 clean-target-boehm-gc \
895 clean-target-qthreads
896
897 # All of the x11 modules that can be cleaned
898 CLEAN_X11_MODULES = \
899 clean-gdb \
900 clean-expect \
901 clean-guile \
902 clean-tclX \
903 clean-tk \
904 clean-tix
905
906 # The target built for a native build.
907 .PHONY: all.normal
908 all.normal: \
909 $(ALL_BUILD_MODULES) \
910 $(ALL_MODULES) \
911 $(ALL_X11_MODULES) \
912 $(ALL_TARGET_MODULES) \
913 all-gcc
914
915 # Do a target for all the subdirectories. A ``make do-X'' will do a
916 # ``make X'' in all subdirectories (because, in general, there is a
917 # dependency (below) of X upon do-X, a ``make X'' will also do this,
918 # but it may do additional work as well).
919 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
920 # because it is so large that it can easily overflow the command line
921 # length limit on some systems.
922 DO_X = \
923 do-clean \
924 do-distclean \
925 do-dvi \
926 do-info \
927 do-install-info \
928 do-installcheck \
929 do-mostlyclean \
930 do-maintainer-clean \
931 do-TAGS
932 .PHONY: $(DO_X)
933 $(DO_X):
934 @target=`echo $@ | sed -e 's/^do-//'`; \
935 r=`${PWD}`; export r; \
936 s=`cd $(srcdir); ${PWD}`; export s; \
937 $(SET_LIB_PATH) \
938 for i in $(SUBDIRS) -dummy-; do \
939 if [ -f ./$$i/Makefile ]; then \
940 case $$i in \
941 gcc) \
942 for flag in $(EXTRA_GCC_FLAGS); do \
943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
944 done; \
945 ;; \
946 *) \
947 for flag in $(EXTRA_HOST_FLAGS); do \
948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
949 done; \
950 ;; \
951 esac ; \
952 if (cd ./$$i; \
953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
955 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
957 $${target}); \
958 then true; else exit 1; fi; \
959 else true; fi; \
960 done
961 @target=`echo $@ | sed -e 's/^do-//'`; \
962 r=`${PWD}`; export r; \
963 s=`cd $(srcdir); ${PWD}`; export s; \
964 $(SET_LIB_PATH) \
965 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
966 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
967 for flag in $(EXTRA_TARGET_FLAGS); do \
968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
969 done; \
970 if (cd $(TARGET_SUBDIR)/$$i; \
971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
973 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
975 $${target}); \
976 then true; else exit 1; fi; \
977 else true; fi; \
978 done
979
980 # Here are the targets which correspond to the do-X targets.
981
982 .PHONY: info installcheck dvi install-info
983 .PHONY: clean distclean mostlyclean maintainer-clean realclean
984 .PHONY: local-clean local-distclean local-maintainer-clean
985 info: do-info
986 installcheck: do-installcheck
987 dvi: do-dvi
988
989 # Make sure makeinfo is built before we do a `make info'.
990 do-info: all-texinfo
991
992 install-info: do-install-info dir.info
993 s=`cd $(srcdir); ${PWD}`; export s; \
994 if [ -f dir.info ] ; then \
995 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
996 else true ; fi
997
998 local-clean:
999 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1000
1001 local-distclean:
1002 -rm -f Makefile config.status config.cache mh-frag mt-frag
1003 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1004 rm -rf $(TARGET_SUBDIR); \
1005 else true; fi
1006 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1007 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1008 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1009 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1010 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1011
1012 local-maintainer-clean:
1013 @echo "This command is intended for maintainers to use;"
1014 @echo "it deletes files that may require special tools to rebuild."
1015
1016 clean: do-clean local-clean
1017 mostlyclean: do-mostlyclean local-clean
1018 distclean: do-distclean local-clean local-distclean
1019 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1020 maintainer-clean: local-distclean
1021 realclean: maintainer-clean
1022
1023 # This rule is used to clean specific modules.
1024 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1025 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1026 @dir=`echo $@ | sed -e 's/clean-//'`; \
1027 if [ -f ./$${dir}/Makefile ] ; then \
1028 r=`${PWD}`; export r; \
1029 s=`cd $(srcdir); ${PWD}`; export s; \
1030 $(SET_LIB_PATH) \
1031 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1032 else \
1033 true; \
1034 fi
1035
1036 .PHONY: $(CLEAN_TARGET_MODULES)
1037 $(CLEAN_TARGET_MODULES):
1038 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1039 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1040 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1041 r=`${PWD}`; export r; \
1042 s=`cd $(srcdir); ${PWD}`; export s; \
1043 $(SET_LIB_PATH) \
1044 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1045 else \
1046 true; \
1047 fi
1048
1049 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1050 clean-target-libgcc:
1051 test ! -d gcc/libgcc || \
1052 (cd gcc/libgcc && find . -type d -print) | \
1053 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1054 -rm -rf gcc/libgcc
1055
1056 # Check target.
1057
1058 .PHONY: check do-check
1059 check:
1060 $(MAKE) do-check NOTPARALLEL=parallel-ok
1061
1062 do-check: $(CHECK_MODULES) \
1063 $(CHECK_TARGET_MODULES) \
1064 $(CHECK_X11_MODULES) \
1065 check-gcc
1066
1067 # Automated reporting of test results.
1068
1069 warning.log: build.log
1070 $(srcdir)/contrib/warn_summary build.log > $@
1071
1072 mail-report.log:
1073 if test x'$(BOOT_CFLAGS)' != x''; then \
1074 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1075 fi; \
1076 $(srcdir)/contrib/test_summary -t >$@
1077 chmod +x $@
1078 echo If you really want to send e-mail, run ./$@ now
1079
1080 mail-report-with-warnings.log: warning.log
1081 if test x'$(BOOT_CFLAGS)' != x''; then \
1082 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1083 fi; \
1084 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1085 chmod +x $@
1086 echo If you really want to send e-mail, run ./$@ now
1087
1088 # Installation targets.
1089
1090 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1091 install: $(INSTALL_TARGET)
1092 install-cross: $(INSTALL_TARGET_CROSS)
1093
1094 uninstall:
1095 @echo "the uninstall target is not supported in this tree"
1096
1097 source-vault:
1098 $(MAKE) -f ./release/Build-A-Release \
1099 host=$(host_alias) source-vault
1100
1101 binary-vault:
1102 $(MAKE) -f ./release/Build-A-Release \
1103 host=$(host_alias) target=$(target_alias)
1104
1105 vault-install:
1106 @if [ -f ./release/vault-install ] ; then \
1107 ./release/vault-install $(host_alias) $(target_alias) ; \
1108 else \
1109 true ; \
1110 fi
1111
1112 .PHONY: install.all
1113 install.all: install-no-fixedincludes
1114 @if [ -f ./gcc/Makefile ] ; then \
1115 r=`${PWD}` ; export r ; \
1116 $(SET_LIB_PATH) \
1117 (cd ./gcc; \
1118 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1119 else \
1120 true ; \
1121 fi
1122
1123 # install-no-fixedincludes is used because Cygnus can not distribute
1124 # the fixed header files.
1125 .PHONY: install-no-fixedincludes
1126 install-no-fixedincludes: \
1127 installdirs \
1128 $(INSTALL_MODULES) \
1129 $(INSTALL_TARGET_MODULES) \
1130 $(INSTALL_X11_MODULES) \
1131 gcc-no-fixedincludes
1132
1133 # Install the gcc headers files, but not the fixed include files,
1134 # which Cygnus is not allowed to distribute. This rule is very
1135 # dependent on the workings of the gcc Makefile.in.
1136 .PHONY: gcc-no-fixedincludes
1137 gcc-no-fixedincludes:
1138 @if [ -f ./gcc/Makefile ]; then \
1139 rm -rf gcc/tmp-include; \
1140 mv gcc/include gcc/tmp-include 2>/dev/null; \
1141 mkdir gcc/include; \
1142 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1143 touch gcc/stmp-fixinc gcc/include/fixed; \
1144 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1145 r=`${PWD}`; export r; \
1146 s=`cd $(srcdir); ${PWD}` ; export s; \
1147 $(SET_LIB_PATH) \
1148 (cd ./gcc; \
1149 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1150 rm -rf gcc/include; \
1151 mv gcc/tmp-include gcc/include 2>/dev/null; \
1152 else true; fi
1153
1154 # This rule is used to build the modules which are built with the
1155 # build machine's native compiler.
1156 .PHONY: $(ALL_BUILD_MODULES)
1157 $(ALL_BUILD_MODULES):
1158 dir=`echo $@ | sed -e 's/all-build-//'`; \
1159 if [ -f ./$${dir}/Makefile ] ; then \
1160 r=`${PWD}`; export r; \
1161 s=`cd $(srcdir); ${PWD}`; export s; \
1162 (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1163 else \
1164 true; \
1165 fi
1166
1167 # This rule is used to configure the modules which are built with the
1168 # native tools.
1169 .PHONY: $(CONFIGURE_BUILD_MODULES)
1170 $(CONFIGURE_BUILD_MODULES):
1171 @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1172 if [ ! -d $(BUILD_SUBDIR) ]; then \
1173 true; \
1174 elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1175 true; \
1176 elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1177 if [ -d $(srcdir)/$${dir} ]; then \
1178 [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1179 r=`${PWD}`; export r; \
1180 s=`cd $(srcdir); ${PWD}`; export s; \
1181 AR="$(AR_FOR_BUILD)"; export AR; \
1182 AS="$(AS_FOR_BUILD)"; export AS; \
1183 CC="$(CC_FOR_BUILD)"; export CC; \
1184 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1185 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1186 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1187 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1188 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1189 LD="$(LD_FOR_BUILD)"; export LD; \
1190 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1191 NM="$(NM_FOR_BUILD)"; export NM; \
1192 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1193 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1194 echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1195 cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1196 case $(srcdir) in \
1197 /* | [A-Za-z]:[\\/]*) \
1198 topdir=$(srcdir) ;; \
1199 *) \
1200 case "$(BUILD_SUBDIR)" in \
1201 .) topdir="../$(srcdir)" ;; \
1202 *) topdir="../../$(srcdir)" ;; \
1203 esac ;; \
1204 esac; \
1205 if [ "$(srcdir)" = "." ] ; then \
1206 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1207 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1208 if [ -f Makefile ]; then \
1209 if $(MAKE) distclean; then \
1210 true; \
1211 else \
1212 exit 1; \
1213 fi; \
1214 else \
1215 true; \
1216 fi; \
1217 else \
1218 exit 1; \
1219 fi; \
1220 else \
1221 true; \
1222 fi; \
1223 srcdiroption="--srcdir=."; \
1224 libsrcdir="."; \
1225 else \
1226 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1227 libsrcdir="$$s/$${dir}"; \
1228 fi; \
1229 if [ -f $${libsrcdir}/configure ] ; then \
1230 rm -f no-such-file skip-this-dir; \
1231 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1232 $(BUILD_CONFIGARGS) $${srcdiroption} \
1233 --with-build-subdir="$(BUILD_SUBDIR)"; \
1234 else \
1235 rm -f no-such-file skip-this-dir; \
1236 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1237 $(BUILD_CONFIGARGS) $${srcdiroption} \
1238 --with-build-subdir="$(BUILD_SUBDIR)"; \
1239 fi || exit 1; \
1240 if [ -f skip-this-dir ] ; then \
1241 sh skip-this-dir; \
1242 rm -f skip-this-dir; \
1243 cd ..; rmdir $${dir} || true; \
1244 else \
1245 true; \
1246 fi; \
1247 else \
1248 true; \
1249 fi; \
1250 else \
1251 true; \
1252 fi
1253
1254 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1255 # build a target all-X means to cd to X and make all.
1256 #
1257 # all-gui, and all-libproc are handled specially because
1258 # they are still experimental, and if they fail to build, that
1259 # shouldn't stop "make all".
1260 .PHONY: $(ALL_MODULES) all-gui all-libproc
1261 $(ALL_MODULES) all-gui all-libproc:
1262 @dir=`echo $@ | sed -e 's/all-//'`; \
1263 if [ -f ./$${dir}/Makefile ] ; then \
1264 r=`${PWD}`; export r; \
1265 s=`cd $(srcdir); ${PWD}`; export s; \
1266 $(SET_LIB_PATH) \
1267 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1268 else \
1269 true; \
1270 fi
1271
1272 # These rules are used to check the modules which use FLAGS_TO_PASS.
1273 # To build a target check-X means to cd to X and make check. Some
1274 # modules are only tested in a native toolchain.
1275
1276 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1277 $(NATIVE_CHECK_MODULES):
1278 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1279 dir=`echo $@ | sed -e 's/check-//'`; \
1280 if [ -f ./$${dir}/Makefile ] ; then \
1281 r=`${PWD}`; export r; \
1282 s=`cd $(srcdir); ${PWD}`; export s; \
1283 $(SET_LIB_PATH) \
1284 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1285 else \
1286 true; \
1287 fi; \
1288 fi
1289
1290 $(CROSS_CHECK_MODULES):
1291 @dir=`echo $@ | sed -e 's/check-//'`; \
1292 if [ -f ./$${dir}/Makefile ] ; then \
1293 r=`${PWD}`; export r; \
1294 s=`cd $(srcdir); ${PWD}`; export s; \
1295 $(SET_LIB_PATH) \
1296 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1297 else \
1298 true; \
1299 fi
1300
1301 # This rule is used to install the modules which use FLAGS_TO_PASS.
1302 # To build a target install-X means to cd to X and make install.
1303 .PHONY: $(INSTALL_MODULES)
1304 $(INSTALL_MODULES): installdirs
1305 @dir=`echo $@ | sed -e 's/install-//'`; \
1306 if [ -f ./$${dir}/Makefile ] ; then \
1307 r=`${PWD}`; export r; \
1308 s=`cd $(srcdir); ${PWD}`; export s; \
1309 $(SET_LIB_PATH) \
1310 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1311 else \
1312 true; \
1313 fi
1314
1315 # This rule is used to configure the modules which are built with the
1316 # target tools.
1317 .PHONY: $(CONFIGURE_TARGET_MODULES)
1318 $(CONFIGURE_TARGET_MODULES):
1319 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1320 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1321 r=`${PWD}`; export r; \
1322 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1323 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1324 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1325 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1326 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1327 else \
1328 echo "Multilibs changed for $${dir}, reconfiguring"; \
1329 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1330 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1331 fi; \
1332 else \
1333 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1334 fi; \
1335 fi; \
1336 fi; exit 0 # break command into two pieces
1337 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1338 if [ ! -d $(TARGET_SUBDIR) ]; then \
1339 true; \
1340 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1341 true; \
1342 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1343 if [ -d $(srcdir)/$${dir} ]; then \
1344 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1345 r=`${PWD}`; export r; \
1346 s=`cd $(srcdir); ${PWD}`; export s; \
1347 $(SET_LIB_PATH) \
1348 AR="$(AR_FOR_TARGET)"; export AR; \
1349 AS="$(AS_FOR_TARGET)"; export AS; \
1350 CC="$(CC_FOR_TARGET)"; export CC; \
1351 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1352 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1353 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1354 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1355 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1356 LD="$(LD_FOR_TARGET)"; export LD; \
1357 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1358 NM="$(NM_FOR_TARGET)"; export NM; \
1359 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1360 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1361 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1362 cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
1363 case $(srcdir) in \
1364 /* | [A-Za-z]:[\\/]*) \
1365 topdir=$(srcdir) ;; \
1366 *) \
1367 case "$(TARGET_SUBDIR)" in \
1368 .) topdir="../$(srcdir)" ;; \
1369 *) topdir="../../$(srcdir)" ;; \
1370 esac ;; \
1371 esac; \
1372 if [ "$(srcdir)" = "." ] ; then \
1373 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1374 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1375 if [ -f Makefile ]; then \
1376 if $(MAKE) distclean; then \
1377 true; \
1378 else \
1379 exit 1; \
1380 fi; \
1381 else \
1382 true; \
1383 fi; \
1384 else \
1385 exit 1; \
1386 fi; \
1387 else \
1388 true; \
1389 fi; \
1390 srcdiroption="--srcdir=."; \
1391 libsrcdir="."; \
1392 else \
1393 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1394 libsrcdir="$$s/$${dir}"; \
1395 fi; \
1396 if [ -f $${libsrcdir}/configure ] ; then \
1397 rm -f no-such-file skip-this-dir; \
1398 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1399 $(TARGET_CONFIGARGS) $${srcdiroption} \
1400 --with-target-subdir="$(TARGET_SUBDIR)"; \
1401 else \
1402 rm -f no-such-file skip-this-dir; \
1403 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1404 $(TARGET_CONFIGARGS) $${srcdiroption} \
1405 --with-target-subdir="$(TARGET_SUBDIR)"; \
1406 fi || exit 1; \
1407 if [ -f skip-this-dir ] ; then \
1408 sh skip-this-dir; \
1409 rm -f skip-this-dir; \
1410 cd ..; rmdir $${dir} || true; \
1411 else \
1412 true; \
1413 fi; \
1414 else \
1415 true; \
1416 fi; \
1417 else \
1418 true; \
1419 fi
1420
1421 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1422 # To build a target all-X means to cd to X and make all.
1423 .PHONY: $(ALL_TARGET_MODULES)
1424 $(ALL_TARGET_MODULES):
1425 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1426 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1427 r=`${PWD}`; export r; \
1428 s=`cd $(srcdir); ${PWD}`; export s; \
1429 $(SET_LIB_PATH) \
1430 (cd $(TARGET_SUBDIR)/$${dir}; \
1431 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1432 else \
1433 true; \
1434 fi
1435
1436 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1437 # To build a target install-X means to cd to X and make install.
1438 .PHONY: $(CHECK_TARGET_MODULES)
1439 $(CHECK_TARGET_MODULES):
1440 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1441 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1442 r=`${PWD}`; export r; \
1443 s=`cd $(srcdir); ${PWD}`; export s; \
1444 $(SET_LIB_PATH) \
1445 (cd $(TARGET_SUBDIR)/$${dir}; \
1446 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1447 else \
1448 true; \
1449 fi
1450
1451 # This rule is used to install the modules which use
1452 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1453 # and make install.
1454 .PHONY: $(INSTALL_TARGET_MODULES)
1455 $(INSTALL_TARGET_MODULES): installdirs
1456 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1457 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1458 r=`${PWD}`; export r; \
1459 s=`cd $(srcdir); ${PWD}`; export s; \
1460 $(SET_LIB_PATH) \
1461 (cd $(TARGET_SUBDIR)/$${dir}; \
1462 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1463 else \
1464 true; \
1465 fi
1466
1467 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1468 # To build a target all-X means to cd to X and make all.
1469 .PHONY: $(ALL_X11_MODULES)
1470 $(ALL_X11_MODULES):
1471 @dir=`echo $@ | sed -e 's/all-//'`; \
1472 if [ -f ./$${dir}/Makefile ] ; then \
1473 r=`${PWD}`; export r; \
1474 s=`cd $(srcdir); ${PWD}`; export s; \
1475 $(SET_LIB_PATH) \
1476 (cd $${dir}; \
1477 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1478 else \
1479 true; \
1480 fi
1481
1482 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1483 # To build a target check-X means to cd to X and make all.
1484 .PHONY: $(CHECK_X11_MODULES)
1485 $(CHECK_X11_MODULES):
1486 @dir=`echo $@ | sed -e 's/check-//'`; \
1487 if [ -f ./$${dir}/Makefile ] ; then \
1488 r=`${PWD}`; export r; \
1489 s=`cd $(srcdir); ${PWD}`; export s; \
1490 $(SET_LIB_PATH) \
1491 (cd $${dir}; \
1492 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1493 else \
1494 true; \
1495 fi
1496
1497 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1498 # To build a target install-X means to cd to X and make install.
1499 .PHONY: $(INSTALL_X11_MODULES)
1500 $(INSTALL_X11_MODULES): installdirs
1501 @dir=`echo $@ | sed -e 's/install-//'`; \
1502 if [ -f ./$${dir}/Makefile ] ; then \
1503 r=`${PWD}`; export r; \
1504 s=`cd $(srcdir); ${PWD}`; export s; \
1505 $(SET_LIB_PATH) \
1506 (cd $${dir}; \
1507 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1508 else \
1509 true; \
1510 fi
1511
1512 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1513 .PHONY: all-gcc
1514 all-gcc:
1515 @if [ -f ./gcc/Makefile ] ; then \
1516 r=`${PWD}`; export r; \
1517 s=`cd $(srcdir); ${PWD}`; export s; \
1518 $(SET_LIB_PATH) \
1519 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1520 else \
1521 true; \
1522 fi
1523
1524 # Building GCC uses some tools for rebuilding "source" files
1525 # like texinfo, bison/byacc, etc. So we must depend on those.
1526 #
1527 # While building GCC, it may be necessary to run various target
1528 # programs like the assembler, linker, etc. So we depend on
1529 # those too.
1530 #
1531 # In theory, on an SMP all those dependencies can be resolved
1532 # in parallel.
1533 #
1534 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1535 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1536 @r=`${PWD}`; export r; \
1537 s=`cd $(srcdir); ${PWD}`; export s; \
1538 $(SET_LIB_PATH) \
1539 echo "Bootstrapping the compiler"; \
1540 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1541 @r=`${PWD}`; export r; \
1542 s=`cd $(srcdir); ${PWD}`; export s; \
1543 case "$@" in \
1544 *bootstrap4-lean ) \
1545 msg="Comparing stage3 and stage4 of the compiler"; \
1546 compare=compare3-lean ;; \
1547 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1548 compare=compare3 ;; \
1549 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1550 compare=compare-lean ;; \
1551 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1552 compare=compare ;; \
1553 esac; \
1554 $(SET_LIB_PATH) \
1555 echo "$$msg"; \
1556 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1557 @r=`${PWD}`; export r; \
1558 s=`cd $(srcdir); ${PWD}` ; export s; \
1559 $(SET_LIB_PATH) \
1560 echo "Building runtime libraries"; \
1561 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1562
1563 .PHONY: cross
1564 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1565 @r=`${PWD}`; export r; \
1566 s=`cd $(srcdir); ${PWD}`; export s; \
1567 $(SET_LIB_PATH) \
1568 echo "Building the C and C++ compiler"; \
1569 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1570 @r=`${PWD}`; export r; \
1571 s=`cd $(srcdir); ${PWD}` ; export s; \
1572 $(SET_LIB_PATH) \
1573 echo "Building runtime libraries"; \
1574 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1575 LANGUAGES="c c++" all
1576
1577 .PHONY: check-gcc
1578 check-gcc:
1579 @if [ -f ./gcc/Makefile ] ; then \
1580 r=`${PWD}`; export r; \
1581 s=`cd $(srcdir); ${PWD}`; export s; \
1582 $(SET_LIB_PATH) \
1583 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1584 else \
1585 true; \
1586 fi
1587
1588 .PHONY: check-c++
1589 check-c++:
1590 @if [ -f ./gcc/Makefile ] ; then \
1591 r=`${PWD}`; export r; \
1592 s=`cd $(srcdir); ${PWD}`; export s; \
1593 $(SET_LIB_PATH) \
1594 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1595 $(MAKE) check-target-libstdc++-v3; \
1596 else \
1597 true; \
1598 fi
1599
1600 .PHONY: install-gcc
1601 install-gcc:
1602 @if [ -f ./gcc/Makefile ] ; then \
1603 r=`${PWD}`; export r; \
1604 s=`cd $(srcdir); ${PWD}`; export s; \
1605 $(SET_LIB_PATH) \
1606 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1607 else \
1608 true; \
1609 fi
1610
1611 .PHONY: install-gcc-cross
1612 install-gcc-cross:
1613 @if [ -f ./gcc/Makefile ] ; then \
1614 r=`${PWD}`; export r; \
1615 s=`cd $(srcdir); ${PWD}`; export s; \
1616 $(SET_LIB_PATH) \
1617 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1618 else \
1619 true; \
1620 fi
1621 # EXPERIMENTAL STUFF
1622 # This rule is used to install the modules which use FLAGS_TO_PASS.
1623 # To build a target install-X means to cd to X and make install.
1624 .PHONY: install-dosrel
1625 install-dosrel: installdirs info
1626 @dir=`echo $@ | sed -e 's/install-//'`; \
1627 if [ -f ./$${dir}/Makefile ] ; then \
1628 r=`${PWD}`; export r; \
1629 s=`cd $(srcdir); ${PWD}`; export s; \
1630 $(SET_LIB_PATH) \
1631 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1632 else \
1633 true; \
1634 fi
1635
1636 install-dosrel-fake:
1637
1638 ALL_GCC = all-gcc
1639 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1640 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
1641
1642 # This is a list of inter-dependencies among modules.
1643 all-ash:
1644 all-autoconf: all-m4 all-texinfo
1645 all-automake: all-m4 all-texinfo
1646 all-bash:
1647 all-bfd: all-libiberty all-intl
1648 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1649 all-bison: all-texinfo
1650 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
1651 all-byacc:
1652 all-bzip2:
1653 all-db:
1654 all-dejagnu: all-tcl all-expect all-tk
1655 all-diff: all-libiberty
1656 all-etc:
1657 configure-target-examples: $(ALL_GCC_C)
1658 all-expect: all-tcl all-tk
1659 all-fileutils: all-libiberty
1660 all-findutils:
1661 all-find:
1662 all-flex: all-libiberty all-bison all-byacc
1663 all-gas: all-libiberty all-opcodes all-bfd all-intl
1664 all-gawk:
1665 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1666 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1667 GDB_TK = @GDB_TK@
1668 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1669 all-gettext:
1670 all-gnuserv:
1671 configure-target-gperf: $(ALL_GCC_CXX)
1672 all-target-gperf: all-target-libiberty all-target-libstdc++-v3
1673 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1674 all-grep: all-libiberty
1675 all-gui: all-gdb all-libproc
1676 all-guile:
1677 all-gzip: all-libiberty
1678 all-hello: all-libiberty
1679 all-indent:
1680 all-intl:
1681 all-itcl: all-tcl all-tk
1682 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1683 configure-target-libgloss: $(ALL_GCC)
1684 all-target-libgloss: configure-target-newlib
1685 all-libgui: all-tcl all-tk all-itcl
1686 all-libiberty:
1687
1688 all-build-libiberty: configure-build-libiberty
1689
1690 configure-target-libffi: $(ALL_GCC_C)
1691 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1692 all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1693 configure-target-libstdc++-v3: $(ALL_GCC_C)
1694 all-target-libstdc++-v3: all-target-libiberty
1695 all-libtool:
1696 configure-target-libf2c: $(ALL_GCC_C)
1697 all-target-libf2c: all-target-libiberty
1698 configure-target-libobjc: $(ALL_GCC_C)
1699 all-target-libobjc: all-target-libiberty
1700 all-m4: all-libiberty all-texinfo
1701 all-make: all-libiberty
1702 all-mmalloc:
1703 configure-target-newlib: $(ALL_GCC)
1704 configure-target-libtermcap: $(ALL_GCC_C)
1705 all-opcodes: all-bfd all-libiberty
1706 all-patch: all-libiberty
1707 all-perl:
1708 all-prms: all-libiberty
1709 configure-target-qthreads: $(ALL_GCC_C)
1710 all-rcs:
1711 all-readline:
1712 all-recode: all-libiberty
1713 all-sed: all-libiberty
1714 all-send-pr: all-prms
1715 all-shellutils:
1716 all-sid: all-tcl all-tk
1717 all-sim: all-libiberty all-bfd all-opcodes all-readline
1718 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1719 all-tar: all-libiberty
1720 all-tcl:
1721 all-tclX: all-tcl all-tk
1722 all-tk: all-tcl
1723 all-texinfo: all-libiberty
1724 all-textutils:
1725 all-time:
1726 all-tix: all-tcl all-tk
1727 all-wdiff:
1728 configure-target-winsup: $(ALL_GCC_C)
1729 all-target-winsup: all-target-libiberty all-target-libtermcap
1730 all-uudecode: all-libiberty
1731 all-zip:
1732 all-zlib:
1733 configure-target-zlib: $(ALL_GCC_C)
1734 all-fastjar: all-zlib all-libiberty
1735 configure-target-fastjar: configure-target-zlib
1736 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
1737 configure-target-libiberty: $(ALL_GCC_C)
1738 configure-target: $(CONFIGURE_TARGET_MODULES)
1739 all-target: $(ALL_TARGET_MODULES)
1740 install-target: $(INSTALL_TARGET_MODULES)
1741 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1742 install-sid: install-tcl install-tk
1743
1744 # We put install-opcodes before install-binutils because the installed
1745 # binutils might be on PATH, and they might need the shared opcodes
1746 # library.
1747 install-binutils: install-opcodes
1748
1749 # We put install-tcl before install-itcl because itcl wants to run a
1750 # program on installation which uses the Tcl libraries.
1751 install-itcl: install-tcl
1752
1753
1754 # Dependencies of all-target-foo on configure-target-foo.
1755 all-target-libstdc++-v3: configure-target-libstdc++-v3
1756 all-target-newlib: configure-target-newlib
1757 all-target-libf2c: configure-target-libf2c
1758 all-target-libobjc: configure-target-libobjc
1759 all-target-libtermcap: configure-target-libtermcap
1760 all-target-winsup: configure-target-winsup
1761 all-target-libgloss: configure-target-libgloss
1762 all-target-libiberty: configure-target-libiberty
1763 all-target-gperf: configure-target-gperf
1764 all-target-examples: configure-target-examples
1765 all-target-libffi: configure-target-libffi
1766 all-target-libjava: configure-target-libjava
1767 all-target-zlib: configure-target-zlib
1768 all-target-boehm-gc: configure-target-boehm-gc
1769 all-target-qthreads: configure-target-qthreads
1770
1771
1772 ### other supporting targets
1773
1774 MAKEDIRS= \
1775 $(DESTDIR)$(prefix) \
1776 $(DESTDIR)$(exec_prefix)
1777 .PHONY: installdirs
1778 installdirs: mkinstalldirs
1779 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1780
1781 dir.info: do-install-info
1782 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1783 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1784 mv -f dir.info.new dir.info ; \
1785 else true ; \
1786 fi
1787
1788 dist:
1789 @echo "Building a full distribution of this tree isn't done"
1790 @echo "via 'make dist'. Check out the etc/ subdirectory"
1791
1792 etags tags: TAGS
1793
1794 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1795 # ability to use several tags files at once, so there is probably no need
1796 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1797 # (if we felt like it) have this Makefile write a piece of elisp which
1798 # the user could load to tell emacs19 where all the TAGS files we just
1799 # built are.
1800 TAGS: do-TAGS
1801
1802 # Rebuilding Makefile.in, using autogen.
1803 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
1804 cd $(srcdir) && autogen Makefile.def
1805
1806 # with the gnu make, this is done automatically.
1807
1808 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1809 $(SHELL) ./config.status
1810
1811 #
1812
1813 .NOEXPORT:
1814 MAKEOVERRIDES=
1815
1816 # end of Makefile.in
This page took 0.078742 seconds and 5 git commands to generate.