2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
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
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.
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.
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.
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
32 build_alias
=@build_alias@
34 build_vendor
=@build_vendor@
36 build_canonical
=@build_cpu@
-@build_vendor@
-@build_os@
37 host_alias
=@host_alias@
39 host_vendor
=@host_vendor@
41 host_canonical
=@host_cpu@
-@host_vendor@
-@host_os@
42 target_alias
=@target_alias@
43 target_cpu
=@target_cpu@
44 target_vendor
=@target_vendor@
46 target_canonical
=@target_cpu@
-@target_vendor@
-@target_os@
48 enable_shared
= @enable_shared@
49 enable_threads
= @enable_threads@
50 enable_version_specific_runtime_libs
= @enable_version_specific_runtime_libs@
51 # The file containing GCC's version number.
52 gcc_version_trigger
= @gcc_version_trigger@
53 gcc_version
= @gcc_version@
58 exec_prefix = @
exec_prefix@
62 libexecdir
= @libexecdir@
64 sysconfdir
= @sysconfdir@
65 sharedstatedir
= @sharedstatedir@
66 localstatedir
= @localstatedir@
68 includedir = @
includedir@
69 oldincludedir = @
oldincludedir@
72 gxx_include_dir
=@gxx_include_dir@
75 build_tooldir
= @build_tooldir@
77 program_transform_name
= @program_transform_name@
79 man1dir = $(mandir)/man1
80 man2dir = $(mandir)/man2
81 man3dir = $(mandir)/man3
82 man4dir = $(mandir)/man4
83 man5dir = $(mandir)/man5
84 man6dir = $(mandir)/man6
85 man7dir = $(mandir)/man7
86 man8dir = $(mandir)/man8
87 man9dir = $(mandir)/man9
88 # Directory in which the compiler finds executables, libraries, etc.
89 libsubdir
= $(libdir)/gcc-lib
/$(target_alias
)/$(gcc_version
)
92 SHELL
= @config_shell@
94 # pwd command to use. Allow user to override default by setting PWDCMD in
95 # the environment to account for automounters. The make variable must not
96 # be called PWDCMD, otherwise the value set here is passed to make
97 # subprocesses and overrides the setting from the user's environment.
100 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
102 INSTALL_PROGRAM_ARGS
=
104 INSTALL
= $(SHELL
) $$s/install-sh
-c
105 INSTALL_PROGRAM
= $(INSTALL
) $(INSTALL_PROGRAM_ARGS
)
106 INSTALL_SCRIPT
= $(INSTALL
)
107 INSTALL_DATA
= $(INSTALL
) -m
644
109 INSTALL_DOSREL
= install-dosrel-fake
116 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
117 # here so that they can be overridden by Makefile fragments.
118 HOST_CC
= $(CC_FOR_BUILD
)
119 BUILD_PREFIX
= @BUILD_PREFIX@
120 BUILD_PREFIX_1
= @BUILD_PREFIX_1@
122 # These flag values are normally overridden by the configure script.
127 LIBCFLAGS
= $(CFLAGS
)
128 CFLAGS_FOR_BUILD
= $(CFLAGS
)
129 # During gcc bootstrap, if we use some random cc for stage1 then
130 # CFLAGS will be just -g. We want to ensure that TARGET libraries
131 # (which we know are built with gcc) are built with optimizations so
132 # prepend -O2 when setting CFLAGS_FOR_TARGET.
133 CFLAGS_FOR_TARGET
= -O2
$(CFLAGS
)
135 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
141 # Use -O2 to stress test the compiler.
142 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
143 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
144 LIBCXXFLAGS_FOR_TARGET
= $(CXXFLAGS_FOR_TARGET
) -fno-implicit-templates
153 # These values are substituted by configure.
154 DEFAULT_YACC
= @DEFAULT_YACC@
155 DEFAULT_LEX
= @DEFAULT_LEX@
156 DEFAULT_M4
= @DEFAULT_M4@
159 USUAL_BISON
= `if [ -f $$r/bison/bison ] ; then \
160 echo $$r/bison/bison -L $$s/bison/ ; \
166 USUAL_YACC
= `if [ -f $$r/bison/bison ] ; then \
167 echo $$r/bison/bison -y -L $$s/bison/ ; \
168 elif [ -f $$r/byacc/byacc ] ; then \
169 echo $$r/byacc/byacc ; \
171 echo ${DEFAULT_YACC} ; \
175 USUAL_LEX
= `if [ -f $$r/flex/flex ] ; \
176 then echo $$r/flex/flex ; \
177 else echo ${DEFAULT_LEX} ; fi`
179 M4
= `if [ -f $$r/m4/m4 ] ; \
180 then echo $$r/m4/m4 ; \
181 else echo ${DEFAULT_M4} ; fi`
183 # For an installed makeinfo, we require it to be from texinfo 4 or
184 # higher, else we use the "missing" dummy.
186 USUAL_MAKEINFO
= `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
187 then echo $$r/texinfo/makeinfo/makeinfo ; \
188 else if (makeinfo --version \
189 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
190 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
192 # This just becomes part of the MAKEINFO definition passed down to
193 # sub-makes. It lets flags be given on the command line while still
194 # using the makeinfo from the object tree.
197 EXPECT
= `if [ -f $$r/expect/expect ] ; \
198 then echo $$r/expect/expect ; \
199 else echo expect ; fi`
201 RUNTEST
= `if [ -f $$s/dejagnu/runtest ] ; \
202 then echo $$s/dejagnu/runtest ; \
203 else echo runtest ; fi`
206 # compilers to use to create programs which must be run in the build
208 CC_FOR_BUILD
= @CC_FOR_BUILD@
209 CXX_FOR_BUILD
= $(CXX
)
211 SUBDIRS
= @configdirs@
213 # This is set by the configure script to the list of directories which
214 # should be built using the target tools.
215 TARGET_CONFIGDIRS
= @target_configdirs@
217 # Target libraries are put under this directory:
218 # Changed by configure to $(target_alias) if cross.
219 TARGET_SUBDIR
= @target_subdir@
221 BUILD_CONFIGDIRS
= libiberty
222 BUILD_SUBDIR
= @build_subdir@
224 # This is set by the configure script to the arguments to use when configuring
225 # directories built for the target.
226 TARGET_CONFIGARGS
= @target_configargs@
228 # This is set by the configure script to the arguments to use when configuring
229 # directories built for the build system.
230 BUILD_CONFIGARGS
= @build_configargs@
232 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
234 SET_LIB_PATH
= @SET_LIB_PATH@
236 # This is the name of the environment variable used for the path to
237 # the libraries. This may be changed by configure.in.
238 RPATH_ENVVAR
= @RPATH_ENVVAR@
240 # This is the list of directories that may be needed in RPATH_ENVVAR
241 # so that programs built for the host machine work.
242 HOST_LIB_PATH
= $$r/bfd
:$$r/opcodes
244 # This is the list of directories that may be needed in RPATH_ENVVAR
245 # so that prorgams built for the target machine work.
246 TARGET_LIB_PATH
= $$r/$(TARGET_SUBDIR
)/libstdc
++-v3
/src
/.libs
:
248 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
249 # Some platforms don't like blank entries, so we remove duplicate,
250 # leading and trailing colons.
251 REALLY_SET_LIB_PATH
= \
252 $(RPATH_ENVVAR
)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR
);
255 INSTALL_TARGET
= installdirs \
258 $(INSTALL_TARGET_MODULES
) \
259 $(INSTALL_X11_MODULES
) \
262 INSTALL_TARGET_CROSS
= installdirs \
265 $(INSTALL_TARGET_MODULES
) \
266 $(INSTALL_X11_MODULES
) \
269 # Should be substed by configure.in
270 FLAGS_FOR_TARGET
= @FLAGS_FOR_TARGET@
271 CC_FOR_TARGET
= @CC_FOR_TARGET@
272 CXX_FOR_TARGET
= @CXX_FOR_TARGET@
273 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE
= @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
274 GCJ_FOR_TARGET
= @GCJ_FOR_TARGET@
276 # If GCC_FOR_TARGET is not overriden on the command line, then this
277 # variable is passed down to the gcc Makefile, where it is used to
278 # build libgcc2.a. We define it here so that it can itself be
279 # overridden on the command line.
280 GCC_FOR_TARGET
=@GCC_FOR_TARGET@
281 USUAL_GCC_FOR_TARGET
= $(STAGE_CC_WRAPPER
) $$r/gcc
/xgcc
-B
$$r/gcc
/ $(FLAGS_FOR_TARGET
)
283 AS_FOR_TARGET
=@AS_FOR_TARGET@
284 USUAL_AS_FOR_TARGET
= ` \
285 if [ -f $$r/gas/as-new ] ; then \
286 echo $$r/gas/as-new ; \
287 elif [ -f $$r/gcc/xgcc ]; then \
288 $(CC_FOR_TARGET) -print-prog-name=as ; \
290 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
293 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
297 LD_FOR_TARGET
=@LD_FOR_TARGET@
298 USUAL_LD_FOR_TARGET
= ` \
299 if [ -f $$r/ld/ld-new ] ; then \
300 echo $$r/ld/ld-new ; \
301 elif [ -f $$r/gcc/xgcc ]; then \
302 $(CC_FOR_TARGET) -print-prog-name=ld ; \
304 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
307 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
311 DLLTOOL_FOR_TARGET
=@DLLTOOL_FOR_TARGET@
312 USUAL_DLLTOOL_FOR_TARGET
= ` \
313 if [ -f $$r/binutils/dlltool ] ; then \
314 echo $$r/binutils/dlltool ; \
316 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
319 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
323 WINDRES_FOR_TARGET
=@WINDRES_FOR_TARGET@
324 USUAL_WINDRES_FOR_TARGET
= ` \
325 if [ -f $$r/binutils/windres ] ; then \
326 echo $$r/binutils/windres ; \
328 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
331 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
335 AR_FOR_TARGET
=@AR_FOR_TARGET@
336 USUAL_AR_FOR_TARGET
= ` \
337 if [ -f $$r/binutils/ar ] ; then \
338 echo $$r/binutils/ar ; \
340 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
343 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
347 RANLIB_FOR_TARGET
=@RANLIB_FOR_TARGET@
348 USUAL_RANLIB_FOR_TARGET
= ` \
349 if [ -f $$r/binutils/ranlib ] ; then \
350 echo $$r/binutils/ranlib ; \
352 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
353 if [ x'$(RANLIB)' != x ]; then \
359 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
363 NM_FOR_TARGET
=@NM_FOR_TARGET@
364 USUAL_NM_FOR_TARGET
= ` \
365 if [ -f $$r/binutils/nm-new ] ; then \
366 echo $$r/binutils/nm-new ; \
367 elif [ -f $$r/gcc/xgcc ]; then \
368 $(CC_FOR_TARGET) -print-prog-name=nm ; \
370 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
373 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
377 # The first rule in the file had better be this one. Don't put any above it.
378 # This lives here to allow makefile fragments to contain dependencies.
382 # These can be overridden by config/mt-*.
383 # The _TARGET_ is because they're specified in mt-foo.
384 # The _HOST_ is because they're programs that run on the host.
385 EXTRA_TARGET_HOST_ALL_MODULES
=
386 EXTRA_TARGET_HOST_INSTALL_MODULES
=
387 EXTRA_TARGET_HOST_CHECK_MODULES
=
389 #### host and target specific makefile fragments come in here.
392 # Flags to pass down to all sub-makes.
393 # Please keep these in alphabetical order.
394 BASE_FLAGS_TO_PASS
= \
395 "AR_FLAGS=$(AR_FLAGS)" \
396 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
397 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
399 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
400 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
402 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
403 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
404 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
405 "CXXFLAGS=$(CXXFLAGS)" \
406 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
407 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
408 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
409 "INSTALL=$(INSTALL)" \
410 "INSTALL_DATA=$(INSTALL_DATA)" \
411 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
412 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
413 "LDFLAGS=$(LDFLAGS)" \
415 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
416 "LIBCFLAGS=$(LIBCFLAGS)" \
417 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
418 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
419 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
422 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
423 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
424 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
425 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
428 "RUNTEST=$(RUNTEST)" \
429 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
430 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
431 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
434 "datadir=$(datadir)" \
435 "exec_prefix=$(exec_prefix)" \
436 "includedir=$(includedir)" \
437 "infodir=$(infodir)" \
439 "libexecdir=$(libexecdir)" \
440 "lispdir=$(lispdir)" \
441 "libstdcxx_incdir=$(libstdcxx_incdir)" \
442 "libsubdir=$(libsubdir)" \
443 "localstatedir=$(localstatedir)" \
445 "oldincludedir=$(oldincludedir)" \
447 "sbindir=$(sbindir)" \
448 "sharedstatedir=$(sharedstatedir)" \
449 "sysconfdir=$(sysconfdir)" \
450 "tooldir=$(tooldir)" \
451 "build_tooldir=$(build_tooldir)" \
452 "gxx_include_dir=$(gxx_include_dir)" \
453 "gcc_version=$(gcc_version)" \
454 "gcc_version_trigger=$(gcc_version_trigger)" \
455 "target_alias=$(target_alias)"
457 # For any flags above that may contain shell code that varies from one
458 # target library to another. When doing recursive invocations of the
459 # top-level Makefile, we don't want the outer make to evaluate them,
460 # so we pass these variables down unchanged. They must not contain
461 # single nor double quotes.
463 CXX_FOR_TARGET
='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
465 # Flags to pass down to most sub-makes, in which we're building with
466 # the host environment.
467 # If any variables are added here, they must be added to do-*, below.
473 'DLLTOOL=$(DLLTOOL)' \
476 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
479 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
481 # Flags that are concerned with the location of the X11 include files
484 # NOTE: until the top-level is getting the values via autoconf, it only
485 # causes problems to have this top-level Makefile overriding the autoconf-set
486 # values in child directories. Only variables that don't conflict with
487 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
489 X11_FLAGS_TO_PASS
= \
490 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
491 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
493 # Flags to pass down to makes which are built with the target environment.
494 # The double $ decreases the length of the command line; the variables
495 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
496 # If any variables are added here, they must be added to do-*, below.
497 EXTRA_TARGET_FLAGS
= \
498 'AR=$$(AR_FOR_TARGET)' \
499 'AS=$$(AS_FOR_TARGET)' \
500 'CC=$$(CC_FOR_TARGET)' \
501 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
502 'CXX=$$(CXX_FOR_TARGET)' \
503 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
504 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
505 'LD=$$(LD_FOR_TARGET)' \
506 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
507 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
508 'NM=$$(NM_FOR_TARGET)' \
509 'RANLIB=$$(RANLIB_FOR_TARGET)' \
510 'WINDRES=$$(WINDRES_FOR_TARGET)'
512 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
514 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
515 # unfortunately needs the native compiler and the target ar and
517 # If any variables are added here, they must be added to do-*, below.
518 # The HOST_* variables are a special case, which are used for the gcc
519 # cross-building scheme.
525 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
526 'HOST_CC=$(CC_FOR_BUILD)' \
527 'BUILD_PREFIX=$(BUILD_PREFIX)' \
528 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
530 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
531 'WINDRES=$$(WINDRES_FOR_TARGET)' \
532 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
533 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
534 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
535 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
536 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
537 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
538 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
539 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
540 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
541 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
542 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
544 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
546 # This is a list of the targets for all of the modules which are compiled
547 # using the build machine's native compiler. Configure edits the second
548 # macro for build!=host builds.
549 ALL_BUILD_MODULES_LIST
= \
551 ALL_BUILD_MODULES
= @all_build_modules@
553 # This is a list of the configure targets for all of the modules which
554 # are compiled using the native tools.
555 CONFIGURE_BUILD_MODULES
= \
556 configure-build-libiberty
558 # This is a list of the targets for all of the modules which are compiled
559 # using $(FLAGS_TO_PASS).
621 $(EXTRA_TARGET_HOST_ALL_MODULES
)
623 # This is a list of the check targets for all of the modules which are
624 # compiled using $(FLAGS_TO_PASS).
626 # The list is in two parts. The first lists those tools which
627 # are tested as part of the host's native tool-chain, and not
628 # tested in a cross configuration.
629 NATIVE_CHECK_MODULES
= \
636 CROSS_CHECK_MODULES
= \
688 $(EXTRA_TARGET_HOST_CHECK_MODULES
)
690 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
692 # This is a list of the install targets for all of the modules which are
693 # compiled using $(FLAGS_TO_PASS).
752 $(EXTRA_TARGET_HOST_INSTALL_MODULES
)
754 # This is a list of the targets for all of the modules which are compiled
755 # using $(X11_FLAGS_TO_PASS).
764 # This is a list of the check targets for all of the modules which are
765 # compiled using $(X11_FLAGS_TO_PASS).
766 CHECK_X11_MODULES
= \
774 # This is a list of the install targets for all the modules which are
775 # compiled using $(X11_FLAGS_TO_PASS).
776 INSTALL_X11_MODULES
= \
784 # This is a list of the targets for all of the modules which are compiled
785 # using $(TARGET_FLAGS_TO_PASS).
786 ALL_TARGET_MODULES
= \
787 all-target-libstdc
++-v3 \
791 all-target-libtermcap \
793 all-target-libgloss \
794 all-target-libiberty \
796 all-target-examples \
800 all-target-boehm-gc \
801 all-target-qthreads \
804 # This is a list of the configure targets for all of the modules which
805 # are compiled using the target tools.
806 CONFIGURE_TARGET_MODULES
= \
807 configure-target-libstdc
++-v3 \
808 configure-target-newlib \
809 configure-target-libf2c \
810 configure-target-libobjc \
811 configure-target-libtermcap \
812 configure-target-winsup \
813 configure-target-libgloss \
814 configure-target-libiberty \
815 configure-target-gperf \
816 configure-target-examples \
817 configure-target-libffi \
818 configure-target-libjava \
819 configure-target-zlib \
820 configure-target-boehm-gc \
821 configure-target-qthreads \
824 # This is a list of the check targets for all of the modules which are
825 # compiled using $(TARGET_FLAGS_TO_PASS).
826 CHECK_TARGET_MODULES
= \
827 check-target-libstdc
++-v3 \
828 check-target-newlib \
829 check-target-libf2c \
830 check-target-libobjc \
831 check-target-winsup \
832 check-target-libiberty \
834 check-target-libffi \
835 check-target-libjava \
837 check-target-boehm-gc \
838 check-target-qthreads \
841 # This is a list of the install targets for all of the modules which are
842 # compiled using $(TARGET_FLAGS_TO_PASS).
843 INSTALL_TARGET_MODULES
= \
844 install-target-libstdc
++-v3 \
845 install-target-newlib \
846 install-target-libf2c \
847 install-target-libobjc \
848 install-target-libtermcap \
849 install-target-winsup \
850 install-target-libgloss \
851 install-target-libiberty \
852 install-target-gperf \
853 install-target-libjava \
854 install-target-zlib \
855 install-target-boehm-gc \
856 install-target-qthreads \
859 # This is a list of the targets for which we can do a clean-{target}.
922 # All of the target modules that can be cleaned
923 CLEAN_TARGET_MODULES
= \
924 clean-target-libstdc
++-v3 \
925 clean-target-newlib \
926 clean-target-libf2c \
927 clean-target-libobjc \
928 clean-target-winsup \
929 clean-target-libgloss \
930 clean-target-libiberty \
932 clean-target-examples \
933 clean-target-libffi \
934 clean-target-libjava \
936 clean-target-boehm-gc \
937 clean-target-qthreads \
940 # All of the x11 modules that can be cleaned
941 CLEAN_X11_MODULES
= \
949 # The target built for a native build.
952 $(ALL_BUILD_MODULES
) \
955 $(ALL_TARGET_MODULES
) \
958 # Do a target for all the subdirectories. A ``make do-X'' will do a
959 # ``make X'' in all subdirectories (because, in general, there is a
960 # dependency (below) of X upon do-X, a ``make X'' will also do this,
961 # but it may do additional work as well).
962 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
963 # because it is so large that it can easily overflow the command line
964 # length limit on some systems.
973 do-maintainer-clean \
977 @target
=`echo $@ | sed -e 's/^do-//'`; \
978 r
=`${PWD}`; export r
; \
979 s
=`cd $(srcdir); ${PWD}`; export s
; \
981 for i in
$(SUBDIRS
) -dummy-
; do \
982 if
[ -f .
/$$i/Makefile
]; then \
985 for flag in
$(EXTRA_GCC_FLAGS
); do \
986 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
990 for flag in
$(EXTRA_HOST_FLAGS
); do \
991 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
996 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
998 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1001 then true
; else exit
1; fi
; \
1004 @target
=`echo $@ | sed -e 's/^do-//'`; \
1005 r
=`${PWD}`; export r
; \
1006 s
=`cd $(srcdir); ${PWD}`; export s
; \
1008 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
1009 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
1010 for flag in
$(EXTRA_TARGET_FLAGS
); do \
1011 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1013 if
(cd
$(TARGET_SUBDIR
)/$$i; \
1014 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1016 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1019 then true
; else exit
1; fi
; \
1023 # Here are the targets which correspond to the do-X targets.
1025 .PHONY
: info installcheck dvi install-info
1026 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
1027 .PHONY
: local-clean local-distclean local-maintainer-clean
1029 installcheck: do-installcheck
1032 # Make sure makeinfo is built before we do a `make info'.
1033 do-info
: all-texinfo
1035 install-info
: do-install-info
dir.
info
1036 s
=`cd $(srcdir); ${PWD}`; export s
; \
1037 if
[ -f
dir.
info ] ; then \
1038 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
1042 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E *.log
1045 -rm -f Makefile config.status config.cache mh-frag mt-frag
1046 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
1047 rm -rf
$(TARGET_SUBDIR
); \
1049 -rm -f texinfo
/po
/Makefile texinfo
/po
/Makefile.in texinfo
/info/Makefile
1050 -rm -f texinfo
/doc
/Makefile texinfo
/po
/POTFILES
1051 -rmdir texinfo
/doc texinfo
/info texinfo
/intl texinfo
/lib
2>/dev
/null
1052 -rmdir texinfo
/makeinfo texinfo
/po texinfo
/util
2>/dev
/null
1053 -rmdir fastjar gcc libiberty texinfo zlib
2>/dev
/null
1055 local-maintainer-clean
:
1056 @echo
"This command is intended for maintainers to use;"
1057 @echo
"it deletes files that may require special tools to rebuild."
1059 clean: do-clean local-clean
1060 mostlyclean: do-mostlyclean local-clean
1061 distclean: do-distclean local-clean local-distclean
1062 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
1063 maintainer-clean
: local-distclean
1064 realclean: maintainer-clean
1066 # This rule is used to clean specific modules.
1067 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
1068 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
1069 @
dir=`echo $@ | sed -e 's/clean-//'`; \
1070 if
[ -f .
/$${dir}/Makefile
] ; then \
1071 r
=`${PWD}`; export r
; \
1072 s
=`cd $(srcdir); ${PWD}`; export s
; \
1074 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
1079 .PHONY
: $(CLEAN_TARGET_MODULES
)
1080 $(CLEAN_TARGET_MODULES
):
1081 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
1082 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1083 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1084 r
=`${PWD}`; export r
; \
1085 s
=`cd $(srcdir); ${PWD}`; export s
; \
1087 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
1092 clean-target
: $(CLEAN_TARGET_MODULES
) clean-target-libgcc
1093 clean-target-libgcc
:
1094 test ! -d gcc
/libgcc || \
1095 (cd gcc
/libgcc
&& find .
-type d
-print) | \
1096 while read d
; do
rm -f gcc
/$$d/libgcc.a ||
: ; done
1101 .PHONY
: check do-check
1103 $(MAKE
) do-check NOTPARALLEL
=parallel-ok
1105 do-check
: $(CHECK_MODULES
) \
1106 $(CHECK_TARGET_MODULES
) \
1107 $(CHECK_X11_MODULES
) \
1110 # Automated reporting of test results.
1112 warning.log
: build.log
1113 $(srcdir)/contrib
/warn_summary build.log
> $@
1116 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1117 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1119 $(srcdir)/contrib
/test_summary
-t
>$@
1121 echo If you really want to send e-mail
, run .
/$@ now
1123 mail-report-with-warnings.log
: warning.log
1124 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1125 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1127 $(srcdir)/contrib
/test_summary
-t
-i warning.log
>$@
1129 echo If you really want to send e-mail
, run .
/$@ now
1131 # Installation targets.
1133 .PHONY
: install install-cross
uninstall source-vault binary-vault vault-install
1134 install: $(INSTALL_TARGET
)
1135 install-cross
: $(INSTALL_TARGET_CROSS
)
1138 @echo
"the uninstall target is not supported in this tree"
1141 $(MAKE
) -f .
/release
/Build-A-Release \
1142 host
=$(host_alias
) source-vault
1145 $(MAKE
) -f .
/release
/Build-A-Release \
1146 host
=$(host_alias
) target
=$(target_alias
)
1149 @if
[ -f .
/release
/vault-install
] ; then \
1150 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
1156 install.
all: install-no-fixedincludes
1157 @if
[ -f .
/gcc
/Makefile
] ; then \
1158 r
=`${PWD}` ; export r
; \
1161 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
1166 # install-no-fixedincludes is used because Cygnus can not distribute
1167 # the fixed header files.
1168 .PHONY
: install-no-fixedincludes
1169 install-no-fixedincludes
: \
1171 $(INSTALL_MODULES
) \
1172 $(INSTALL_TARGET_MODULES
) \
1173 $(INSTALL_X11_MODULES
) \
1174 gcc-no-fixedincludes
1176 # Install the gcc headers files, but not the fixed include files,
1177 # which Cygnus is not allowed to distribute. This rule is very
1178 # dependent on the workings of the gcc Makefile.in.
1179 .PHONY
: gcc-no-fixedincludes
1180 gcc-no-fixedincludes
:
1181 @if
[ -f .
/gcc
/Makefile
]; then \
1182 rm -rf gcc
/tmp-include
; \
1183 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
1184 mkdir gcc
/include; \
1185 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
1186 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
1187 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
1188 r
=`${PWD}`; export r
; \
1189 s
=`cd $(srcdir); ${PWD}` ; export s
; \
1192 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1193 rm -rf gcc
/include; \
1194 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
1197 # This rule is used to build the modules which are built with the
1198 # build machine's native compiler.
1199 .PHONY
: $(ALL_BUILD_MODULES
)
1200 $(ALL_BUILD_MODULES
):
1201 dir=`echo $@ | sed -e 's/all-build-//'`; \
1202 if
[ -f .
/$${dir}/Makefile
] ; then \
1203 r
=`${PWD}`; export r
; \
1204 s
=`cd $(srcdir); ${PWD}`; export s
; \
1205 (cd
$(BUILD_SUBDIR
)/$${dir} && $(MAKE
) all); \
1210 # This rule is used to configure the modules which are built with the
1212 .PHONY
: $(CONFIGURE_BUILD_MODULES
)
1213 $(CONFIGURE_BUILD_MODULES
):
1214 @
dir=`echo $@ | sed -e 's/configure-build-//'`; \
1215 if
[ ! -d
$(BUILD_SUBDIR
) ]; then \
1217 elif
[ -f
$(BUILD_SUBDIR
)/$${dir}/Makefile
] ; then \
1219 elif echo
" $(BUILD_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1220 if
[ -d
$(srcdir)/$${dir} ]; then \
1221 [ -d
$(BUILD_SUBDIR
)/$${dir} ] || mkdir
$(BUILD_SUBDIR
)/$${dir};\
1222 r
=`${PWD}`; export r
; \
1223 s
=`cd $(srcdir); ${PWD}`; export s
; \
1224 AR
="$(AR_FOR_BUILD)"; export AR
; \
1225 AS
="$(AS_FOR_BUILD)"; export AS
; \
1226 CC
="$(CC_FOR_BUILD)"; export CC
; \
1227 CFLAGS
="$(CFLAGS_FOR_BUILD)"; export CFLAGS
; \
1228 CXX
="$(CXX_FOR_BUILD)"; export CXX
; \
1229 CXXFLAGS
="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS
; \
1230 GCJ
="$(GCJ_FOR_BUILD)"; export GCJ
; \
1231 DLLTOOL
="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL
; \
1232 LD
="$(LD_FOR_BUILD)"; export LD
; \
1233 LDFLAGS
="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS
; \
1234 NM
="$(NM_FOR_BUILD)"; export NM
; \
1235 RANLIB
="$(RANLIB_FOR_BUILD)"; export RANLIB
; \
1236 WINDRES
="$(WINDRES_FOR_BUILD)"; export WINDRES
; \
1237 echo Configuring in
$(BUILD_SUBDIR
)/$${dir}; \
1238 cd
"$(BUILD_SUBDIR)/$${dir}" || exit
1; \
1240 /* |
[A-Za-z
]:[\\/]*) \
1241 topdir
=$(srcdir) ;; \
1243 case
"$(BUILD_SUBDIR)" in \
1244 .
) topdir
="../$(srcdir)" ;; \
1245 *) topdir
="../../$(srcdir)" ;; \
1248 if
[ "$(srcdir)" = "." ] ; then \
1249 if
[ "$(BUILD_SUBDIR)" != "." ] ; then \
1250 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1251 if
[ -f Makefile
]; then \
1252 if
$(MAKE
) distclean; then \
1266 srcdiroption
="--srcdir=."; \
1269 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1270 libsrcdir
="$$s/$${dir}"; \
1272 if
[ -f
$${libsrcdir}/configure
] ; then \
1273 rm -f no-such-file skip-this-dir
; \
1274 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1275 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1276 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1278 rm -f no-such-file skip-this-dir
; \
1279 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1280 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1281 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1283 if
[ -f skip-this-dir
] ; then \
1285 rm -f skip-this-dir
; \
1286 cd ..
; rmdir
$${dir} || true
; \
1297 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1298 # build a target all-X means to cd to X and make all.
1299 .PHONY
: $(ALL_MODULES
)
1301 @
dir=`echo $@ | sed -e 's/all-//'`; \
1302 if
[ -f .
/$${dir}/Makefile
] ; then \
1303 r
=`${PWD}`; export r
; \
1304 s
=`cd $(srcdir); ${PWD}`; export s
; \
1306 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
1311 # These rules are used to check the modules which use FLAGS_TO_PASS.
1312 # To build a target check-X means to cd to X and make check. Some
1313 # modules are only tested in a native toolchain.
1315 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1316 $(NATIVE_CHECK_MODULES
):
1317 @if
[ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1318 dir=`echo $@ | sed -e 's/check-//'`; \
1319 if
[ -f .
/$${dir}/Makefile
] ; then \
1320 r
=`${PWD}`; export r
; \
1321 s
=`cd $(srcdir); ${PWD}`; export s
; \
1323 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1329 $(CROSS_CHECK_MODULES
):
1330 @
dir=`echo $@ | sed -e 's/check-//'`; \
1331 if
[ -f .
/$${dir}/Makefile
] ; then \
1332 r
=`${PWD}`; export r
; \
1333 s
=`cd $(srcdir); ${PWD}`; export s
; \
1335 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1340 # This rule is used to install the modules which use FLAGS_TO_PASS.
1341 # To build a target install-X means to cd to X and make install.
1342 .PHONY
: $(INSTALL_MODULES
)
1343 $(INSTALL_MODULES
): installdirs
1344 @
dir=`echo $@ | sed -e 's/install-//'`; \
1345 if
[ -f .
/$${dir}/Makefile
] ; then \
1346 r
=`${PWD}`; export r
; \
1347 s
=`cd $(srcdir); ${PWD}`; export s
; \
1349 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1354 # This rule is used to configure the modules which are built with the
1356 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1357 $(CONFIGURE_TARGET_MODULES
):
1358 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1359 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1360 r
=`${PWD}`; export r
; \
1361 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1362 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1363 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1364 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1365 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1367 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1368 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1369 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1372 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1375 fi
; exit
0 # break command into two pieces
1376 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1377 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1379 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1381 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1382 if
[ -d
$(srcdir)/$${dir} ]; then \
1383 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1384 r
=`${PWD}`; export r
; \
1385 s
=`cd $(srcdir); ${PWD}`; export s
; \
1387 AR
="$(AR_FOR_TARGET)"; export AR
; \
1388 AS
="$(AS_FOR_TARGET)"; export AS
; \
1389 CC
="$(CC_FOR_TARGET)"; export CC
; \
1390 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1391 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1392 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1393 GCJ
="$(GCJ_FOR_TARGET)"; export GCJ
; \
1394 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1395 LD
="$(LD_FOR_TARGET)"; export LD
; \
1396 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1397 NM
="$(NM_FOR_TARGET)"; export NM
; \
1398 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1399 WINDRES
="$(WINDRES_FOR_TARGET)"; export WINDRES
; \
1400 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1401 cd
"$(TARGET_SUBDIR)/$${dir}" || exit
1; \
1403 /* |
[A-Za-z
]:[\\/]*) \
1404 topdir
=$(srcdir) ;; \
1406 case
"$(TARGET_SUBDIR)" in \
1407 .
) topdir
="../$(srcdir)" ;; \
1408 *) topdir
="../../$(srcdir)" ;; \
1411 if
[ "$(srcdir)" = "." ] ; then \
1412 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1413 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1414 if
[ -f Makefile
]; then \
1415 if
$(MAKE
) distclean; then \
1429 srcdiroption
="--srcdir=."; \
1432 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1433 libsrcdir
="$$s/$${dir}"; \
1435 if
[ -f
$${libsrcdir}/configure
] ; then \
1436 rm -f no-such-file skip-this-dir
; \
1437 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1438 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1439 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1441 rm -f no-such-file skip-this-dir
; \
1442 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1443 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1444 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1446 if
[ -f skip-this-dir
] ; then \
1448 rm -f skip-this-dir
; \
1449 cd ..
; rmdir
$${dir} || true
; \
1460 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1461 # To build a target all-X means to cd to X and make all.
1462 .PHONY
: $(ALL_TARGET_MODULES
)
1463 $(ALL_TARGET_MODULES
):
1464 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1465 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1466 r
=`${PWD}`; export r
; \
1467 s
=`cd $(srcdir); ${PWD}`; export s
; \
1469 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1470 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1475 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1476 # To build a target install-X means to cd to X and make install.
1477 .PHONY
: $(CHECK_TARGET_MODULES
)
1478 $(CHECK_TARGET_MODULES
):
1479 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1480 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1481 r
=`${PWD}`; export r
; \
1482 s
=`cd $(srcdir); ${PWD}`; export s
; \
1484 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1485 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1490 # This rule is used to install the modules which use
1491 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1493 .PHONY
: $(INSTALL_TARGET_MODULES
)
1494 $(INSTALL_TARGET_MODULES
): installdirs
1495 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1496 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1497 r
=`${PWD}`; export r
; \
1498 s
=`cd $(srcdir); ${PWD}`; export s
; \
1500 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1501 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1506 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1507 # To build a target all-X means to cd to X and make all.
1508 .PHONY
: $(ALL_X11_MODULES
)
1510 @
dir=`echo $@ | sed -e 's/all-//'`; \
1511 if
[ -f .
/$${dir}/Makefile
] ; then \
1512 r
=`${PWD}`; export r
; \
1513 s
=`cd $(srcdir); ${PWD}`; export s
; \
1516 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1521 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1522 # To build a target check-X means to cd to X and make all.
1523 .PHONY
: $(CHECK_X11_MODULES
)
1524 $(CHECK_X11_MODULES
):
1525 @
dir=`echo $@ | sed -e 's/check-//'`; \
1526 if
[ -f .
/$${dir}/Makefile
] ; then \
1527 r
=`${PWD}`; export r
; \
1528 s
=`cd $(srcdir); ${PWD}`; export s
; \
1531 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1536 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1537 # To build a target install-X means to cd to X and make install.
1538 .PHONY
: $(INSTALL_X11_MODULES
)
1539 $(INSTALL_X11_MODULES
): installdirs
1540 @
dir=`echo $@ | sed -e 's/install-//'`; \
1541 if
[ -f .
/$${dir}/Makefile
] ; then \
1542 r
=`${PWD}`; export r
; \
1543 s
=`cd $(srcdir); ${PWD}`; export s
; \
1546 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1551 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1554 @if
[ -f .
/gcc
/Makefile
] ; then \
1555 r
=`${PWD}`; export r
; \
1556 s
=`cd $(srcdir); ${PWD}`; export s
; \
1558 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1563 # Building GCC uses some tools for rebuilding "source" files
1564 # like texinfo, bison/byacc, etc. So we must depend on those.
1566 # While building GCC, it may be necessary to run various target
1567 # programs like the assembler, linker, etc. So we depend on
1570 # In theory, on an SMP all those dependencies can be resolved
1573 .PHONY
: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
1574 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
: all-bootstrap
1575 @r
=`${PWD}`; export r
; \
1576 s
=`cd $(srcdir); ${PWD}`; export s
; \
1578 echo
"Bootstrapping the compiler"; \
1579 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $@
1580 @r
=`${PWD}`; export r
; \
1581 s
=`cd $(srcdir); ${PWD}`; export s
; \
1583 *bootstrap4-lean
) \
1584 msg
="Comparing stage3 and stage4 of the compiler"; \
1585 compare
=compare3-lean
;; \
1586 *bootstrap4
) msg
="Comparing stage3 and stage4 of the compiler"; \
1587 compare
=compare3
;; \
1588 *-lean
) msg
="Comparing stage2 and stage3 of the compiler"; \
1589 compare
=compare-lean
;; \
1590 * ) msg
="Comparing stage2 and stage3 of the compiler"; \
1591 compare
=compare
;; \
1595 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $$compare
1596 @r
=`${PWD}`; export r
; \
1597 s
=`cd $(srcdir); ${PWD}` ; export s
; \
1599 echo
"Building runtime libraries"; \
1600 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) all
1603 cross
: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1604 @r
=`${PWD}`; export r
; \
1605 s
=`cd $(srcdir); ${PWD}`; export s
; \
1607 echo
"Building the C and C++ compiler"; \
1608 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++"
1609 @r
=`${PWD}`; export r
; \
1610 s
=`cd $(srcdir); ${PWD}` ; export s
; \
1612 echo
"Building runtime libraries"; \
1613 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) \
1614 LANGUAGES
="c c++" all
1618 @if
[ -f .
/gcc
/Makefile
] ; then \
1619 r
=`${PWD}`; export r
; \
1620 s
=`cd $(srcdir); ${PWD}`; export s
; \
1622 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1629 @if
[ -f .
/gcc
/Makefile
] ; then \
1630 r
=`${PWD}`; export r
; \
1631 s
=`cd $(srcdir); ${PWD}`; export s
; \
1633 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check-c
++); \
1634 $(MAKE
) check-target-libstdc
++-v3
; \
1641 @if
[ -f .
/gcc
/Makefile
] ; then \
1642 r
=`${PWD}`; export r
; \
1643 s
=`cd $(srcdir); ${PWD}`; export s
; \
1645 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1650 .PHONY
: install-gcc-cross
1652 @if
[ -f .
/gcc
/Makefile
] ; then \
1653 r
=`${PWD}`; export r
; \
1654 s
=`cd $(srcdir); ${PWD}`; export s
; \
1656 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++" install); \
1660 # EXPERIMENTAL STUFF
1661 # This rule is used to install the modules which use FLAGS_TO_PASS.
1662 # To build a target install-X means to cd to X and make install.
1663 .PHONY
: install-dosrel
1664 install-dosrel
: installdirs info
1665 @
dir=`echo $@ | sed -e 's/install-//'`; \
1666 if
[ -f .
/$${dir}/Makefile
] ; then \
1667 r
=`${PWD}`; export r
; \
1668 s
=`cd $(srcdir); ${PWD}`; export s
; \
1670 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1675 install-dosrel-fake
:
1678 ALL_GCC_C
= $(ALL_GCC
) all-target-newlib all-target-libgloss
1679 ALL_GCC_CXX
= $(ALL_GCC_C
) all-target-libstdc
++-v3
1681 # This is a list of inter-dependencies among modules.
1683 all-autoconf
: all-m4 all-texinfo
1684 all-automake
: all-m4 all-texinfo
1686 all-bfd
: all-libiberty all-intl
1687 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1688 all-bison
: all-texinfo
1689 configure-target-boehm-gc
: $(ALL_GCC_C
) configure-target-qthreads
1693 all-dejagnu
: all-tcl all-expect all-tk
1694 all-diff
: all-libiberty
1696 configure-target-examples
: $(ALL_GCC_C
)
1697 all-expect
: all-tcl all-tk
1698 all-fileutils
: all-libiberty
1701 all-flex
: all-libiberty all-bison all-byacc
1702 all-gas
: all-libiberty all-opcodes all-bfd all-intl
1704 all-gcc
: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1705 all-bootstrap
: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1707 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1710 configure-target-gperf
: $(ALL_GCC_CXX
)
1711 all-target-gperf
: all-target-libiberty all-target-libstdc
++-v3
1712 all-gprof
: all-libiberty all-bfd all-opcodes all-intl
1713 all-grep
: all-libiberty
1715 all-gzip
: all-libiberty
1716 all-hello
: all-libiberty
1719 all-itcl
: all-tcl all-tk
1720 all-ld
: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1721 configure-target-libgloss
: $(ALL_GCC
)
1722 all-target-libgloss
: configure-target-newlib
1723 all-libgui
: all-tcl all-tk all-itcl
1726 all-build-libiberty
: configure-build-libiberty
1728 configure-target-libffi
: $(ALL_GCC_C
)
1729 configure-target-libjava
: $(ALL_GCC_C
) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1730 all-target-libjava
: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1731 configure-target-libstdc
++-v3
: $(ALL_GCC_C
)
1732 all-target-libstdc
++-v3
: all-target-libiberty
1734 configure-target-libf2c
: $(ALL_GCC_C
)
1735 all-target-libf2c
: all-target-libiberty
1736 configure-target-libobjc
: $(ALL_GCC_C
)
1737 all-target-libobjc
: all-target-libiberty
1738 all-m4
: all-libiberty all-texinfo
1739 all-make
: all-libiberty
1741 configure-target-newlib
: $(ALL_GCC
)
1742 configure-target-libtermcap
: $(ALL_GCC_C
)
1743 all-opcodes
: all-bfd all-libiberty
1744 all-patch
: all-libiberty
1746 all-prms
: all-libiberty
1747 configure-target-qthreads
: $(ALL_GCC_C
)
1750 all-recode
: all-libiberty
1751 all-sed
: all-libiberty
1752 all-send-pr
: all-prms
1754 all-sid
: all-tcl all-tk
1755 all-sim
: all-libiberty all-bfd all-opcodes all-readline
1756 all-snavigator
: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1757 all-tar
: all-libiberty
1759 all-tclX
: all-tcl all-tk
1761 all-texinfo
: all-libiberty
1764 all-tix
: all-tcl all-tk
1766 configure-target-winsup
: $(ALL_GCC_C
)
1767 all-target-winsup
: all-target-libiberty all-target-libtermcap
1768 all-uudecode
: all-libiberty
1771 configure-target-zlib
: $(ALL_GCC_C
)
1772 all-fastjar
: all-zlib all-libiberty
1773 configure-target-fastjar
: configure-target-zlib
1774 all-target-fastjar
: configure-target-fastjar all-target-zlib all-target-libiberty
1775 configure-target-libiberty
: $(ALL_GCC_C
)
1776 configure-target
: $(CONFIGURE_TARGET_MODULES
)
1777 all-target
: $(ALL_TARGET_MODULES
)
1778 install-target
: $(INSTALL_TARGET_MODULES
)
1779 install-gdb
: install-tcl install-tk install-itcl install-tix install-libgui
1780 install-sid
: install-tcl install-tk
1782 # We put install-opcodes before install-binutils because the installed
1783 # binutils might be on PATH, and they might need the shared opcodes
1785 install-binutils
: install-opcodes
1787 # We put install-tcl before install-itcl because itcl wants to run a
1788 # program on installation which uses the Tcl libraries.
1789 install-itcl
: install-tcl
1792 # Dependencies of all-target-foo on configure-target-foo.
1793 all-target-libstdc
++-v3
: configure-target-libstdc
++-v3
1794 all-target-newlib
: configure-target-newlib
1795 all-target-libf2c
: configure-target-libf2c
1796 all-target-libobjc
: configure-target-libobjc
1797 all-target-libtermcap
: configure-target-libtermcap
1798 all-target-winsup
: configure-target-winsup
1799 all-target-libgloss
: configure-target-libgloss
1800 all-target-libiberty
: configure-target-libiberty
1801 all-target-gperf
: configure-target-gperf
1802 all-target-examples
: configure-target-examples
1803 all-target-libffi
: configure-target-libffi
1804 all-target-libjava
: configure-target-libjava
1805 all-target-zlib
: configure-target-zlib
1806 all-target-boehm-gc
: configure-target-boehm-gc
1807 all-target-qthreads
: configure-target-qthreads
1808 all-target-rda
: configure-target-rda
1811 ### other supporting targets
1814 $(DESTDIR
)$(prefix) \
1815 $(DESTDIR
)$(exec_prefix)
1817 installdirs: mkinstalldirs
1818 $(SHELL
) $(srcdir)/mkinstalldirs
$(MAKEDIRS
)
1820 dir.
info: do-install-info
1821 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1822 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1823 mv
-f
dir.
info.new
dir.
info ; \
1828 @echo
"Building a full distribution of this tree isn't done"
1829 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1833 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1834 # ability to use several tags files at once, so there is probably no need
1835 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1836 # (if we felt like it) have this Makefile write a piece of elisp which
1837 # the user could load to tell emacs19 where all the TAGS files we just
1841 # Rebuilding Makefile.in, using autogen.
1842 $(srcdir)/Makefile.in
: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
1843 cd
$(srcdir) && autogen Makefile.def
1845 # with the gnu make, this is done automatically.
1847 host_makefile_frag
=@host_makefile_frag@
1848 target_makefile_frag
=@target_makefile_frag@
1850 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
) $(gcc_version_trigger
)
1851 $(SHELL
) .
/config.status
1858 # end of Makefile.in