5 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
7 # Makefile for directory with subdirs to build.
8 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
9 # 1999, 2000, 2001, 2002 Free Software Foundation
11 # This file is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 # Tell GNU make 3.79 not to run the top level in parallel. This
27 # prevents contention for $builddir/$target/config.cache, as well
28 # as minimizing scatter in file system caches.
29 NOTPARALLEL = .NOTPARALLEL
35 build_alias=@build_alias@
37 build_vendor=@build_vendor@
39 build_canonical=@build_cpu@-@build_vendor@-@build_os@
40 host_alias=@host_alias@
42 host_vendor=@host_vendor@
44 host_canonical=@host_cpu@-@host_vendor@-@host_os@
45 target_alias=@target_alias@
46 target_cpu=@target_cpu@
47 target_vendor=@target_vendor@
49 target_canonical=@target_cpu@-@target_vendor@-@target_os@
51 enable_shared = @enable_shared@
52 enable_threads = @enable_threads@
53 enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
54 # The file containing GCC's version number.
55 gcc_version_trigger = @gcc_version_trigger@
56 gcc_version = @gcc_version@
61 exec_prefix = @exec_prefix@
65 libexecdir = @libexecdir@
67 sysconfdir = @sysconfdir@
68 sharedstatedir = @sharedstatedir@
69 localstatedir = @localstatedir@
71 includedir = @includedir@
72 oldincludedir = @oldincludedir@
75 gxx_include_dir=@gxx_include_dir@
78 build_tooldir = @build_tooldir@
80 program_transform_name = @program_transform_name@
82 man1dir = $(mandir)/man1
83 man2dir = $(mandir)/man2
84 man3dir = $(mandir)/man3
85 man4dir = $(mandir)/man4
86 man5dir = $(mandir)/man5
87 man6dir = $(mandir)/man6
88 man7dir = $(mandir)/man7
89 man8dir = $(mandir)/man8
90 man9dir = $(mandir)/man9
91 # Directory in which the compiler finds executables, libraries, etc.
92 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
95 SHELL = @config_shell@
97 # pwd command to use. Allow user to override default by setting PWDCMD in
98 # the environment to account for automounters. The make variable must not
99 # be called PWDCMD, otherwise the value set here is passed to make
100 # subprocesses and overrides the setting from the user's environment.
103 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
105 INSTALL_PROGRAM_ARGS =
107 INSTALL = $(SHELL) $$s/install-sh -c
108 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
109 INSTALL_SCRIPT = $(INSTALL)
110 INSTALL_DATA = $(INSTALL) -m 644
117 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
118 # here so that they can be overridden by Makefile fragments.
119 BUILD_CC = $(CC_FOR_BUILD)
120 BUILD_PREFIX = @BUILD_PREFIX@
121 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
123 # These flag values are normally overridden by the configure script.
128 LIBCFLAGS = $(CFLAGS)
129 CFLAGS_FOR_BUILD = $(CFLAGS)
130 # During gcc bootstrap, if we use some random cc for stage1 then
131 # CFLAGS will be just -g. We want to ensure that TARGET libraries
132 # (which we know are built with gcc) are built with optimizations so
133 # prepend -O2 when setting CFLAGS_FOR_TARGET.
134 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
136 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
142 # Use -O2 to stress test the compiler.
143 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
144 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
145 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
154 # These values are substituted by configure.
155 DEFAULT_YACC = @DEFAULT_YACC@
156 DEFAULT_LEX = @DEFAULT_LEX@
157 DEFAULT_M4 = @DEFAULT_M4@
160 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
161 echo $$r/bison/bison -L $$s/bison/ ; \
167 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
168 echo $$r/bison/bison -y -L $$s/bison/ ; \
169 elif [ -f $$r/byacc/byacc ] ; then \
170 echo $$r/byacc/byacc ; \
172 echo ${DEFAULT_YACC} ; \
176 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
177 then echo $$r/flex/flex ; \
178 else echo ${DEFAULT_LEX} ; fi`
180 M4 = `if [ -f $$r/m4/m4 ] ; \
181 then echo $$r/m4/m4 ; \
182 else echo ${DEFAULT_M4} ; fi`
184 # For an installed makeinfo, we require it to be from texinfo 4 or
185 # higher, else we use the "missing" dummy.
187 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
188 then echo $$r/texinfo/makeinfo/makeinfo ; \
189 else if (makeinfo --version \
190 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
191 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
193 # This just becomes part of the MAKEINFO definition passed down to
194 # sub-makes. It lets flags be given on the command line while still
195 # using the makeinfo from the object tree.
198 EXPECT = `if [ -f $$r/expect/expect ] ; \
199 then echo $$r/expect/expect ; \
200 else echo expect ; fi`
202 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
203 then echo $$s/dejagnu/runtest ; \
204 else echo runtest ; fi`
207 # compilers to use to create programs which must be run in the build
209 CC_FOR_BUILD = @CC_FOR_BUILD@
210 CXX_FOR_BUILD = $(CXX)
212 SUBDIRS = @configdirs@
214 # This is set by the configure script to the list of directories which
215 # should be built using the target tools.
216 TARGET_CONFIGDIRS = @target_configdirs@
218 # Target libraries are put under this directory:
219 # Changed by configure to $(target_alias) if cross.
220 TARGET_SUBDIR = @target_subdir@
222 BUILD_CONFIGDIRS = libiberty
223 BUILD_SUBDIR = @build_subdir@
225 # This is set by the configure script to the arguments to use when configuring
226 # directories built for the target.
227 TARGET_CONFIGARGS = @target_configargs@
229 # This is set by the configure script to the arguments to use when configuring
230 # directories built for the build system.
231 BUILD_CONFIGARGS = @build_configargs@
233 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
235 SET_LIB_PATH = @SET_LIB_PATH@
237 # This is the name of the environment variable used for the path to
238 # the libraries. This may be changed by configure.in.
239 RPATH_ENVVAR = @RPATH_ENVVAR@
241 # This is the list of directories that may be needed in RPATH_ENVVAR
242 # so that programs built for the host machine work.
243 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
245 # This is the list of directories that may be needed in RPATH_ENVVAR
246 # so that prorgams built for the target machine work.
247 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
249 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
250 # Some platforms don't like blank entries, so we remove duplicate,
251 # leading and trailing colons.
252 REALLY_SET_LIB_PATH = \
253 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
255 # Should be substed by configure.in
256 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
257 CC_FOR_TARGET = @CC_FOR_TARGET@
258 CXX_FOR_TARGET = @CXX_FOR_TARGET@
259 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
260 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
261 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
262 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
264 # If GCC_FOR_TARGET is not overriden on the command line, then this
265 # variable is passed down to the gcc Makefile, where it is used to
266 # build libgcc2.a. We define it here so that it can itself be
267 # overridden on the command line.
268 GCC_FOR_TARGET=@GCC_FOR_TARGET@
269 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
271 AS_FOR_TARGET=@AS_FOR_TARGET@
272 USUAL_AS_FOR_TARGET = ` \
273 if [ -f $$r/gas/as-new ] ; then \
274 echo $$r/gas/as-new ; \
275 elif [ -f $$r/gcc/xgcc ]; then \
276 $(CC_FOR_TARGET) -print-prog-name=as ; \
278 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
281 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
285 LD_FOR_TARGET=@LD_FOR_TARGET@
286 USUAL_LD_FOR_TARGET = ` \
287 if [ -f $$r/ld/ld-new ] ; then \
288 echo $$r/ld/ld-new ; \
289 elif [ -f $$r/gcc/xgcc ]; then \
290 $(CC_FOR_TARGET) -print-prog-name=ld ; \
292 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
295 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
299 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
300 USUAL_DLLTOOL_FOR_TARGET = ` \
301 if [ -f $$r/binutils/dlltool ] ; then \
302 echo $$r/binutils/dlltool ; \
304 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
307 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
311 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
312 USUAL_WINDRES_FOR_TARGET = ` \
313 if [ -f $$r/binutils/windres ] ; then \
314 echo $$r/binutils/windres ; \
316 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
319 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
323 AR_FOR_TARGET=@AR_FOR_TARGET@
324 USUAL_AR_FOR_TARGET = ` \
325 if [ -f $$r/binutils/ar ] ; then \
326 echo $$r/binutils/ar ; \
328 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
331 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
335 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
336 USUAL_RANLIB_FOR_TARGET = ` \
337 if [ -f $$r/binutils/ranlib ] ; then \
338 echo $$r/binutils/ranlib ; \
340 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
341 if [ x'$(RANLIB)' != x ]; then \
347 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
351 NM_FOR_TARGET=@NM_FOR_TARGET@
352 USUAL_NM_FOR_TARGET = ` \
353 if [ -f $$r/binutils/nm-new ] ; then \
354 echo $$r/binutils/nm-new ; \
355 elif [ -f $$r/gcc/xgcc ]; then \
356 $(CC_FOR_TARGET) -print-prog-name=nm ; \
358 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
361 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
365 # The first rule in the file had better be this one. Don't put any above it.
366 # This lives here to allow makefile fragments to contain dependencies.
370 #### host and target specific makefile fragments come in here.
373 # Flags to pass down to all sub-makes.
374 # Please keep these in alphabetical order.
375 BASE_FLAGS_TO_PASS = \
376 "AR_FLAGS=$(AR_FLAGS)" \
377 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
378 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
380 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
381 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
383 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
384 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
385 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
386 "CXXFLAGS=$(CXXFLAGS)" \
387 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
388 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
389 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
390 "INSTALL=$(INSTALL)" \
391 "INSTALL_DATA=$(INSTALL_DATA)" \
392 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
393 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
394 "LDFLAGS=$(LDFLAGS)" \
396 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
397 "LIBCFLAGS=$(LIBCFLAGS)" \
398 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
399 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
400 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
403 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
404 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
405 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
406 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
409 "RUNTEST=$(RUNTEST)" \
410 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
411 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
412 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
415 "datadir=$(datadir)" \
416 "exec_prefix=$(exec_prefix)" \
417 "includedir=$(includedir)" \
418 "infodir=$(infodir)" \
420 "libexecdir=$(libexecdir)" \
421 "lispdir=$(lispdir)" \
422 "libstdcxx_incdir=$(libstdcxx_incdir)" \
423 "libsubdir=$(libsubdir)" \
424 "localstatedir=$(localstatedir)" \
426 "oldincludedir=$(oldincludedir)" \
428 "sbindir=$(sbindir)" \
429 "sharedstatedir=$(sharedstatedir)" \
430 "sysconfdir=$(sysconfdir)" \
431 "tooldir=$(tooldir)" \
432 "build_tooldir=$(build_tooldir)" \
433 "gxx_include_dir=$(gxx_include_dir)" \
434 "gcc_version=$(gcc_version)" \
435 "gcc_version_trigger=$(gcc_version_trigger)" \
436 "target_alias=$(target_alias)"
438 # For any flags above that may contain shell code that varies from one
439 # target library to another. When doing recursive invocations of the
440 # top-level Makefile, we don't want the outer make to evaluate them,
441 # so we pass these variables down unchanged. They must not contain
442 # single nor double quotes.
444 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
445 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
447 # Flags to pass down to most sub-makes, in which we're building with
448 # the host environment.
449 # If any variables are added here, they must be added to do-*, below.
455 'DLLTOOL=$(DLLTOOL)' \
458 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
461 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
463 # Flags that are concerned with the location of the X11 include files
466 # NOTE: until the top-level is getting the values via autoconf, it only
467 # causes problems to have this top-level Makefile overriding the autoconf-set
468 # values in child directories. Only variables that don't conflict with
469 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
471 X11_FLAGS_TO_PASS = \
472 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
473 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
475 # Flags to pass down to makes which are built with the target environment.
476 # The double $ decreases the length of the command line; the variables
477 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
478 # If any variables are added here, they must be added to do-*, below.
479 EXTRA_TARGET_FLAGS = \
480 'AR=$$(AR_FOR_TARGET)' \
481 'AS=$$(AS_FOR_TARGET)' \
482 'CC=$$(CC_FOR_TARGET)' \
483 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
484 'CXX=$$(CXX_FOR_TARGET)' \
485 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
486 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
487 'LD=$$(LD_FOR_TARGET)' \
488 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
489 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
490 'NM=$$(NM_FOR_TARGET)' \
491 'RANLIB=$$(RANLIB_FOR_TARGET)' \
492 'WINDRES=$$(WINDRES_FOR_TARGET)'
494 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
496 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
497 # unfortunately needs the native compiler and the target ar and
499 # If any variables are added here, they must be added to do-*, below.
500 # The HOST_* variables are a special case, which are used for the gcc
501 # cross-building scheme.
507 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
508 'BUILD_CC=$(CC_FOR_BUILD)' \
509 'BUILD_PREFIX=$(BUILD_PREFIX)' \
510 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
512 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
513 'WINDRES=$$(WINDRES_FOR_TARGET)' \
514 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
515 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
516 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
517 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
518 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
519 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
520 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
521 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
522 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
526 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
528 # This is a list of the configure targets for all of the modules which
529 # are compiled using the target tools.
530 CONFIGURE_TARGET_MODULES = [+ FOR target_modules +]\
531 configure-target-[+module+] [+ ENDFOR target_modules +]
533 configure-target: $(CONFIGURE_TARGET_MODULES)
535 # This is a list of the targets for which we can do a clean-{target}.
536 CLEAN_MODULES = [+ FOR host_modules +][+ IF no_clean +][+ ELIF with_x +][+ ELSE clean +]\
537 clean-[+module+] [+ ENDIF no_clean +][+ ENDFOR host_modules +]
539 # All of the target modules that can be cleaned
540 CLEAN_TARGET_MODULES = [+ FOR target_modules +][+ IF no_clean +][+ ELSE clean +]\
541 clean-target-[+module+] [+ ENDIF no_clean +][+ ENDFOR target_modules +]
543 # All of the x11 modules that can be cleaned
544 CLEAN_X11_MODULES = [+ FOR host_modules +][+ IF with_x +]\
545 clean-[+module+] [+ ENDIF with_x +][+ ENDFOR host_modules +]
547 # The target built for a native build.
548 # This list only includes modules actually being configured and built.
550 all.normal: @all_build_modules@ \
554 all-target: @all_target_modules@
556 # Do a target for all the subdirectories. A ``make do-X'' will do a
557 # ``make X'' in all subdirectories (because, in general, there is a
558 # dependency (below) of X upon do-X, a ``make X'' will also do this,
559 # but it may do additional work as well).
560 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
561 # because it is so large that it can easily overflow the command line
562 # length limit on some systems.
563 [+ FOR recursive_targets +]
564 .PHONY: do-[+target+]
566 @r=`${PWD}`; export r; \
567 s=`cd $(srcdir); ${PWD}`; export s; \
569 for i in $(SUBDIRS) -dummy-; do \
570 if [ -f ./$$i/Makefile ]; then \
573 for flag in $(EXTRA_GCC_FLAGS); do \
574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
578 for flag in $(EXTRA_HOST_FLAGS); do \
579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
586 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
589 then true; else exit 1; fi; \
592 # Break into two pieces
593 r=`${PWD}`; export r; \
594 s=`cd $(srcdir); ${PWD}`; export s; \
596 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
597 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
598 for flag in $(EXTRA_TARGET_FLAGS); do \
599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
601 if (cd $(TARGET_SUBDIR)/$$i; \
602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
604 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
607 then true; else exit 1; fi; \
610 [+ ENDFOR recursive_targets +]
613 # Here are the targets which correspond to the do-X targets.
615 .PHONY: info installcheck dvi install-info
616 .PHONY: clean distclean mostlyclean maintainer-clean realclean
617 .PHONY: local-clean local-distclean local-maintainer-clean
619 installcheck: do-installcheck
622 # Make sure makeinfo is built before we do a `make info'.
625 install-info: do-install-info dir.info
626 s=`cd $(srcdir); ${PWD}`; export s; \
627 if [ -f dir.info ] ; then \
628 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
632 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
635 -rm -f Makefile config.status config.cache mh-frag mt-frag
636 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
637 rm -rf $(TARGET_SUBDIR); \
639 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
640 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
641 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
642 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
643 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
645 local-maintainer-clean:
646 @echo "This command is intended for maintainers to use;"
647 @echo "it deletes files that may require special tools to rebuild."
649 clean: do-clean local-clean
650 mostlyclean: do-mostlyclean local-clean
651 distclean: do-distclean local-clean local-distclean
652 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
653 maintainer-clean: local-distclean
654 realclean: maintainer-clean
656 # This rule is used to clean specific modules.
657 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
658 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
659 @dir=`echo $@ | sed -e 's/clean-//'`; \
660 if [ -f ./$${dir}/Makefile ] ; then \
661 r=`${PWD}`; export r; \
662 s=`cd $(srcdir); ${PWD}`; export s; \
664 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
669 .PHONY: $(CLEAN_TARGET_MODULES)
670 $(CLEAN_TARGET_MODULES):
671 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
672 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
673 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
674 r=`${PWD}`; export r; \
675 s=`cd $(srcdir); ${PWD}`; export s; \
677 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
682 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
684 test ! -d gcc/libgcc || \
685 (cd gcc/libgcc && find . -type d -print) | \
686 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
691 .PHONY: check do-check
693 $(MAKE) do-check NOTPARALLEL=parallel-ok
695 # Only include modules actually being configured and built.
696 do-check: @check_host_modules@ \
697 @check_target_modules@
699 # Automated reporting of test results.
701 warning.log: build.log
702 $(srcdir)/contrib/warn_summary build.log > $@
705 if test x'$(BOOT_CFLAGS)' != x''; then \
706 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
708 $(srcdir)/contrib/test_summary -t >$@
710 echo If you really want to send e-mail, run ./$@ now
712 mail-report-with-warnings.log: warning.log
713 if test x'$(BOOT_CFLAGS)' != x''; then \
714 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
716 $(srcdir)/contrib/test_summary -t -i warning.log >$@
718 echo If you really want to send e-mail, run ./$@ now
720 # Installation targets.
722 .PHONY: install uninstall source-vault binary-vault vault-install
723 install: installdirs @install_host_modules@ @install_target_modules@
725 install-target: @install_target_modules@
728 @echo "the uninstall target is not supported in this tree"
731 $(MAKE) -f ./release/Build-A-Release \
732 host=$(host_alias) source-vault
735 $(MAKE) -f ./release/Build-A-Release \
736 host=$(host_alias) target=$(target_alias)
739 @if [ -f ./release/vault-install ] ; then \
740 ./release/vault-install $(host_alias) $(target_alias) ; \
746 install.all: install-no-fixedincludes
747 @if [ -f ./gcc/Makefile ] ; then \
748 r=`${PWD}` ; export r ; \
751 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
756 # install-no-fixedincludes is used because Cygnus can not distribute
757 # the fixed header files.
758 .PHONY: install-no-fixedincludes
759 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
760 @install_target_modules@ gcc-no-fixedincludes
762 # Install the gcc headers files, but not the fixed include files,
763 # which Cygnus is not allowed to distribute. This rule is very
764 # dependent on the workings of the gcc Makefile.in.
765 .PHONY: gcc-no-fixedincludes
766 gcc-no-fixedincludes:
767 @if [ -f ./gcc/Makefile ]; then \
768 rm -rf gcc/tmp-include; \
769 mv gcc/include gcc/tmp-include 2>/dev/null; \
771 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
772 touch gcc/stmp-fixinc gcc/include/fixed; \
773 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
774 r=`${PWD}`; export r; \
775 s=`cd $(srcdir); ${PWD}` ; export s; \
778 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
779 rm -rf gcc/include; \
780 mv gcc/tmp-include gcc/include 2>/dev/null; \
783 # These rules are used to build the modules which are built with the
784 # build machine's native compiler.
785 [+ FOR build_modules +]
786 .PHONY: all-build-[+module+] maybe-all-build-[+module+]
787 maybe-all-build-[+module+]:
788 all-build-[+module+]:
789 @if [ -f ./[+module+]/Makefile ] ; then \
790 r=`${PWD}`; export r; \
791 s=`cd $(srcdir); ${PWD}`; export s; \
792 (cd $(BUILD_SUBDIR)/[+module+] && $(MAKE) all); \
797 .PHONY: configure-build-[+module+] maybe-configure-build-[+module+]
798 maybe-configure-build-[+module+]:
799 configure-build-[+module+]:
800 @if [ ! -d $(BUILD_SUBDIR) ]; then \
802 elif [ -f $(BUILD_SUBDIR)/[+module+]/Makefile ] ; then \
804 elif echo " $(BUILD_CONFIGDIRS) " | grep " [+module+] " >/dev/null 2>&1; then \
805 if [ -d $(srcdir)/[+module+] ]; then \
806 [ -d $(BUILD_SUBDIR)/[+module+] ] || mkdir $(BUILD_SUBDIR)/[+module+];\
807 r=`${PWD}`; export r; \
808 s=`cd $(srcdir); ${PWD}`; export s; \
809 AR="$(AR_FOR_BUILD)"; export AR; \
810 AS="$(AS_FOR_BUILD)"; export AS; \
811 CC="$(CC_FOR_BUILD)"; export CC; \
812 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
813 CXX="$(CXX_FOR_BUILD)"; export CXX; \
814 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
815 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
816 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
817 LD="$(LD_FOR_BUILD)"; export LD; \
818 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
819 NM="$(NM_FOR_BUILD)"; export NM; \
820 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
821 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
822 echo Configuring in $(BUILD_SUBDIR)/[+module+]; \
823 cd "$(BUILD_SUBDIR)/[+module+]" || exit 1; \
825 /* | [A-Za-z]:[\\/]*) \
826 topdir=$(srcdir) ;; \
828 case "$(BUILD_SUBDIR)" in \
829 .) topdir="../$(srcdir)" ;; \
830 *) topdir="../../$(srcdir)" ;; \
833 if [ "$(srcdir)" = "." ] ; then \
834 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
835 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
836 if [ -f Makefile ]; then \
837 if $(MAKE) distclean; then \
851 srcdiroption="--srcdir=."; \
854 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
855 libsrcdir="$$s/[+module+]"; \
857 rm -f no-such-file || : ; \
858 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
859 $(BUILD_CONFIGARGS) $${srcdiroption} \
860 --with-build-subdir="$(BUILD_SUBDIR)" \
868 [+ ENDFOR build_modules +]
870 # These rules are used to build the modules which use FLAGS_TO_PASS. To
871 # build a target all-X means to cd to X and make all.
872 [+ FOR host_modules +]
873 .PHONY: all-[+module+] maybe-all-[+module+]
874 maybe-all-[+module+]:
876 @r=`${PWD}`; export r; \
877 s=`cd $(srcdir); ${PWD}`; export s; \
879 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
881 +] $(X11_FLAGS_TO_PASS)[+
885 .PHONY: check-[+module+]
887 [+ ELIF no_check_cross +]
888 .PHONY: check-[+module+]
889 # This module is only tested in a native toolchain.
891 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
892 r=`${PWD}`; export r; \
893 s=`cd $(srcdir); ${PWD}`; export s; \
895 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
897 +] $(X11_FLAGS_TO_PASS)[+
898 ENDIF with_x +] check); \
901 .PHONY: check-[+module+]
903 @r=`${PWD}`; export r; \
904 s=`cd $(srcdir); ${PWD}`; export s; \
906 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
908 +] $(X11_FLAGS_TO_PASS)[+
909 ENDIF with_x +] check)
913 .PHONY: install-[+module+] maybe-install-[+module+]
914 maybe-install-[+module+]:
917 .PHONY: install-[+module+] maybe-install-[+module+]
918 maybe-install-[+module+]:
919 install-[+module+]: installdirs
920 @r=`${PWD}`; export r; \
921 s=`cd $(srcdir); ${PWD}`; export s; \
923 (cd [+module+]; $(MAKE) $(FLAGS_TO_PASS)[+
925 +] $(X11_FLAGS_TO_PASS)[+
926 ENDIF with_x +] install)
927 [+ ENDIF no_install +]
928 [+ ENDFOR host_modules +]
930 # These rules are used to build the modules which are built with the target
931 # tools. To make foo-X means to cd to X and make foo.
932 [+ FOR target_modules +]
933 .PHONY: configure-target-[+module+] maybe-configure-target-[+module+]
934 maybe-configure-target-[+module+]:
935 configure-target-[+module+]:
936 @r=`${PWD}`; export r; \
937 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/[+module+]/tmpmulti.out 2> /dev/null; \
938 if [ -s $(TARGET_SUBDIR)/[+module+]/tmpmulti.out ]; then \
939 if [ -f $(TARGET_SUBDIR)/[+module+]/multilib.out ]; then \
940 if cmp $(TARGET_SUBDIR)/[+module+]/multilib.out $(TARGET_SUBDIR)/[+module+]/tmpmulti.out > /dev/null; then \
941 rm -f $(TARGET_SUBDIR)/[+module+]/tmpmulti.out; \
943 echo "Multilibs changed for [+module+], reconfiguring"; \
944 rm -f $(TARGET_SUBDIR)/[+module+]/multilib.out $(TARGET_SUBDIR)/[+module+]/Makefile; \
945 mv $(TARGET_SUBDIR)/[+module+]/tmpmulti.out $(TARGET_SUBDIR)/[+module+]/multilib.out; \
948 mv $(TARGET_SUBDIR)/[+module+]/tmpmulti.out $(TARGET_SUBDIR)/[+module+]/multilib.out; \
950 fi; exit 0 # break command into two pieces
951 @if [ -d $(srcdir)/[+module+] ]; then \
952 [ -d $(TARGET_SUBDIR)/[+module+] ] || mkdir $(TARGET_SUBDIR)/[+module+];\
953 r=`${PWD}`; export r; \
954 s=`cd $(srcdir); ${PWD}`; export s; \
956 AR="$(AR_FOR_TARGET)"; export AR; \
957 AS="$(AS_FOR_TARGET)"; export AS; \
958 CC="$(CC_FOR_TARGET)"; export CC; \
959 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \[+
961 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
962 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \[+
964 CXX="$(CXX_FOR_TARGET)"; export CXX; \[+
966 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
967 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
968 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
969 LD="$(LD_FOR_TARGET)"; export LD; \
970 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
971 NM="$(NM_FOR_TARGET)"; export NM; \
972 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
973 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
974 echo Configuring in $(TARGET_SUBDIR)/[+module+]; \
975 cd "$(TARGET_SUBDIR)/[+module+]" || exit 1; \
977 /* | [A-Za-z]:[\\/]*) \
978 topdir=$(srcdir) ;; \
980 case "$(TARGET_SUBDIR)" in \
981 .) topdir="../$(srcdir)" ;; \
982 *) topdir="../../$(srcdir)" ;; \
985 if [ "$(srcdir)" = "." ] ; then \
986 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
987 if $(SHELL) $$s/symlink-tree $${topdir}/[+module+] "no-such-file" ; then \
988 if [ -f Makefile ]; then \
989 if $(MAKE) distclean; then \
1003 srcdiroption="--srcdir=."; \
1006 srcdiroption="--srcdir=$${topdir}/[+module+]"; \
1007 libsrcdir="$$s/[+module+]"; \
1009 rm -f no-such-file || : ; \
1010 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1011 $(TARGET_CONFIGARGS) $${srcdiroption} \
1012 --with-target-subdir="$(TARGET_SUBDIR)" \
1018 .PHONY: all-target-[+module+] maybe-all-target-[+module+]
1019 maybe-all-target-[+module+]:
1020 all-target-[+module+]:
1021 @r=`${PWD}`; export r; \
1022 s=`cd $(srcdir); ${PWD}`; export s; \
1024 (cd $(TARGET_SUBDIR)/[+module+]; \
1025 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1027 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1031 # Dummy target for uncheckable module.
1032 .PHONY: check-target-[+module+]
1033 check-target-[+module+]:
1035 .PHONY: check-target-[+module+]
1036 check-target-[+module+]:
1037 @r=`${PWD}`; export r; \
1038 s=`cd $(srcdir); ${PWD}`; export s; \
1040 (cd $(TARGET_SUBDIR)/[+module+]; \
1041 $(MAKE) $(TARGET_FLAGS_TO_PASS) [+
1043 +] 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' [+
1046 [+ ENDIF no_check +]
1048 .PHONY: install-target-[+module+] maybe-install-target-[+module+]
1049 maybe-install-target-[+module+]:
1050 # Dummy target for uninstallable.
1051 install-target-[+module+]:
1053 .PHONY: install-target-[+module+] maybe-install-target-[+module+]
1054 maybe-install-target-[+module+]:
1055 install-target-[+module+]: installdirs
1056 @r=`${PWD}`; export r; \
1057 s=`cd $(srcdir); ${PWD}`; export s; \
1059 (cd $(TARGET_SUBDIR)/[+module+]; \
1060 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
1061 [+ ENDIF no_install +]
1062 [+ ENDFOR target_modules +]
1064 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1065 .PHONY: all-gcc maybe-all-gcc
1068 @if [ -f ./gcc/Makefile ] ; then \
1069 r=`${PWD}`; export r; \
1070 s=`cd $(srcdir); ${PWD}`; export s; \
1072 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1077 # Building GCC uses some tools for rebuilding "source" files
1078 # like texinfo, bison/byacc, etc. So we must depend on those.
1080 # While building GCC, it may be necessary to run various target
1081 # programs like the assembler, linker, etc. So we depend on
1084 # In theory, on an SMP all those dependencies can be resolved
1087 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
1088 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
1089 @r=`${PWD}`; export r; \
1090 s=`cd $(srcdir); ${PWD}`; export s; \
1092 echo "Bootstrapping the compiler"; \
1093 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1094 @r=`${PWD}`; export r; \
1095 s=`cd $(srcdir); ${PWD}`; export s; \
1097 *bootstrap4-lean ) \
1098 msg="Comparing stage3 and stage4 of the compiler"; \
1099 compare=compare3-lean ;; \
1100 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1101 compare=compare3 ;; \
1102 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1103 compare=compare-lean ;; \
1104 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1105 compare=compare ;; \
1109 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1110 @r=`${PWD}`; export r; \
1111 s=`cd $(srcdir); ${PWD}` ; export s; \
1113 echo "Building runtime libraries"; \
1114 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1117 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1118 @r=`${PWD}`; export r; \
1119 s=`cd $(srcdir); ${PWD}`; export s; \
1121 echo "Building the C and C++ compiler"; \
1122 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1123 @r=`${PWD}`; export r; \
1124 s=`cd $(srcdir); ${PWD}` ; export s; \
1126 echo "Building runtime libraries"; \
1127 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1128 LANGUAGES="c c++" all
1132 @if [ -f ./gcc/Makefile ] ; then \
1133 r=`${PWD}`; export r; \
1134 s=`cd $(srcdir); ${PWD}`; export s; \
1136 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1143 @if [ -f ./gcc/Makefile ] ; then \
1144 r=`${PWD}`; export r; \
1145 s=`cd $(srcdir); ${PWD}`; export s; \
1147 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1148 $(MAKE) check-target-libstdc++-v3; \
1153 .PHONY: install-gcc maybe-install-gcc
1156 @if [ -f ./gcc/Makefile ] ; then \
1157 r=`${PWD}`; export r; \
1158 s=`cd $(srcdir); ${PWD}`; export s; \
1160 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1165 ALL_GCC = maybe-all-gcc
1166 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
1167 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
1169 # This is a list of inter-dependencies among modules.
1170 all-autoconf: maybe-all-m4 maybe-all-texinfo
1171 all-automake: maybe-all-m4 maybe-all-texinfo
1172 all-bfd: maybe-all-libiberty maybe-all-intl
1173 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
1174 all-bison: maybe-all-texinfo
1175 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
1176 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
1177 all-diff: maybe-all-libiberty
1178 configure-target-examples: $(ALL_GCC_C)
1179 all-expect: maybe-all-tcl maybe-all-tk
1180 all-fileutils: maybe-all-libiberty
1181 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
1182 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
1183 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
1184 all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
1186 all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
1187 configure-target-gperf: $(ALL_GCC_CXX)
1188 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
1189 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
1190 all-grep: maybe-all-libiberty
1191 all-gzip: maybe-all-libiberty
1192 all-hello: maybe-all-libiberty
1193 all-itcl: maybe-all-tcl maybe-all-tk
1194 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
1195 configure-target-libgloss: $(ALL_GCC)
1196 all-target-libgloss: maybe-configure-target-newlib
1197 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
1198 configure-target-libffi: $(ALL_GCC_C)
1199 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
1200 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
1201 configure-target-libstdc++-v3: $(ALL_GCC_C)
1202 all-target-libstdc++-v3: maybe-all-target-libiberty
1203 configure-target-libf2c: $(ALL_GCC_C)
1204 all-target-libf2c: maybe-all-target-libiberty
1205 configure-target-libobjc: $(ALL_GCC_C)
1206 all-target-libobjc: maybe-all-target-libiberty
1207 all-m4: maybe-all-libiberty maybe-all-texinfo
1208 all-make: maybe-all-libiberty
1209 configure-target-newlib: $(ALL_GCC)
1210 configure-target-libtermcap: $(ALL_GCC_C)
1211 all-opcodes: maybe-all-bfd maybe-all-libiberty
1212 all-patch: maybe-all-libiberty
1213 all-prms: maybe-all-libiberty
1214 configure-target-qthreads: $(ALL_GCC_C)
1215 all-recode: maybe-all-libiberty
1216 all-sed: maybe-all-libiberty
1217 all-send-pr: maybe-all-prms
1218 all-sid: maybe-all-tcl maybe-all-tk
1219 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline
1220 all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
1221 all-tar: maybe-all-libiberty
1222 all-tclX: maybe-all-tcl maybe-all-tk
1223 all-tk: maybe-all-tcl
1224 all-texinfo: maybe-all-libiberty
1225 all-tix: maybe-all-tcl maybe-all-tk
1226 configure-target-winsup: $(ALL_GCC_C)
1227 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
1228 all-uudecode: maybe-all-libiberty
1229 configure-target-zlib: $(ALL_GCC_C)
1230 all-fastjar: maybe-all-zlib maybe-all-libiberty
1231 configure-target-fastjar: maybe-configure-target-zlib
1232 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
1233 configure-target-libiberty: $(ALL_GCC_C)
1234 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
1235 install-sid: maybe-install-tcl maybe-install-tk
1237 # We put install-opcodes before install-binutils because the installed
1238 # binutils might be on PATH, and they might need the shared opcodes
1240 install-binutils: maybe-install-opcodes
1242 # We put install-tcl before install-itcl because itcl wants to run a
1243 # program on installation which uses the Tcl libraries.
1244 install-itcl: maybe-install-tcl
1246 # This is a slightly kludgy method of getting dependencies on
1247 # all-build-libiberty correct; it would be better to build it every time.
1248 all-gcc: maybe-all-build-libiberty
1250 # Dependencies of all-build-foo on configure-build-foo.
1251 [+ FOR build_modules +]all-build-[+module+]: configure-build-[+module+]
1252 [+ ENDFOR build_modules +]
1254 # Dependencies of all-target-foo on configure-target-foo.
1255 [+ FOR target_modules +]all-target-[+module+]: configure-target-[+module+]
1256 [+ ENDFOR target_modules +]
1258 # Dependencies of maybe-foo on foo. These are used because, for example,
1259 # all-gcc only depends on all-gas if gas is present and being configured.
1260 @maybe_dependencies@
1262 ### other supporting targets
1265 $(DESTDIR)$(prefix) \
1266 $(DESTDIR)$(exec_prefix)
1268 installdirs: mkinstalldirs
1269 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1271 dir.info: do-install-info
1272 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1273 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1274 mv -f dir.info.new dir.info ; \
1279 @echo "Building a full distribution of this tree isn't done"
1280 @echo "via 'make dist'. Check out the etc/ subdirectory"
1284 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1285 # ability to use several tags files at once, so there is probably no need
1286 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1287 # (if we felt like it) have this Makefile write a piece of elisp which
1288 # the user could load to tell emacs19 where all the TAGS files we just
1292 # Rebuilding Makefile.in, using autogen.
1293 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
1294 cd $(srcdir) && autogen Makefile.def
1296 # with the gnu make, this is done automatically.
1298 host_makefile_frag=@host_makefile_frag@
1299 target_makefile_frag=@target_makefile_frag@
1301 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1302 $(SHELL) ./config.status
1309 # end of Makefile.in