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.
968 @r=`${PWD}`; export r; \
969 s=`cd $(srcdir); ${PWD}`; export s; \
971 for i in $(SUBDIRS) -dummy-; do \
972 if [ -f ./$$i/Makefile ]; then \
975 for flag in $(EXTRA_GCC_FLAGS); do \
976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
980 for flag in $(EXTRA_HOST_FLAGS); do \
981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
988 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
991 then true; else exit 1; fi; \
994 # Break into two pieces
995 r=`${PWD}`; export r; \
996 s=`cd $(srcdir); ${PWD}`; export s; \
998 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
999 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1000 for flag in $(EXTRA_TARGET_FLAGS); do \
1001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1003 if (cd $(TARGET_SUBDIR)/$$i; \
1004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1006 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1009 then true; else exit 1; fi; \
1013 .PHONY: do-distclean
1015 @r=`${PWD}`; export r; \
1016 s=`cd $(srcdir); ${PWD}`; export s; \
1018 for i in $(SUBDIRS) -dummy-; do \
1019 if [ -f ./$$i/Makefile ]; then \
1022 for flag in $(EXTRA_GCC_FLAGS); do \
1023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 for flag in $(EXTRA_HOST_FLAGS); do \
1028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1035 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1038 then true; else exit 1; fi; \
1041 # Break into two pieces
1042 r=`${PWD}`; export r; \
1043 s=`cd $(srcdir); ${PWD}`; export s; \
1045 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1046 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1047 for flag in $(EXTRA_TARGET_FLAGS); do \
1048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1050 if (cd $(TARGET_SUBDIR)/$$i; \
1051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1053 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1056 then true; else exit 1; fi; \
1062 @r=`${PWD}`; export r; \
1063 s=`cd $(srcdir); ${PWD}`; export s; \
1065 for i in $(SUBDIRS) -dummy-; do \
1066 if [ -f ./$$i/Makefile ]; then \
1069 for flag in $(EXTRA_GCC_FLAGS); do \
1070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1074 for flag in $(EXTRA_HOST_FLAGS); do \
1075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1082 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1085 then true; else exit 1; fi; \
1088 # Break into two pieces
1089 r=`${PWD}`; export r; \
1090 s=`cd $(srcdir); ${PWD}`; export s; \
1092 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1093 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1094 for flag in $(EXTRA_TARGET_FLAGS); do \
1095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1097 if (cd $(TARGET_SUBDIR)/$$i; \
1098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1100 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1103 then true; else exit 1; fi; \
1109 @r=`${PWD}`; export r; \
1110 s=`cd $(srcdir); ${PWD}`; export s; \
1112 for i in $(SUBDIRS) -dummy-; do \
1113 if [ -f ./$$i/Makefile ]; then \
1116 for flag in $(EXTRA_GCC_FLAGS); do \
1117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1121 for flag in $(EXTRA_HOST_FLAGS); do \
1122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1129 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1132 then true; else exit 1; fi; \
1135 # Break into two pieces
1136 r=`${PWD}`; export r; \
1137 s=`cd $(srcdir); ${PWD}`; export s; \
1139 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1140 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1141 for flag in $(EXTRA_TARGET_FLAGS); do \
1142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1144 if (cd $(TARGET_SUBDIR)/$$i; \
1145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1147 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1150 then true; else exit 1; fi; \
1154 .PHONY: do-install-info
1156 @r=`${PWD}`; export r; \
1157 s=`cd $(srcdir); ${PWD}`; export s; \
1159 for i in $(SUBDIRS) -dummy-; do \
1160 if [ -f ./$$i/Makefile ]; then \
1163 for flag in $(EXTRA_GCC_FLAGS); do \
1164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1168 for flag in $(EXTRA_HOST_FLAGS); do \
1169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1176 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1179 then true; else exit 1; fi; \
1182 # Break into two pieces
1183 r=`${PWD}`; export r; \
1184 s=`cd $(srcdir); ${PWD}`; export s; \
1186 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1187 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1188 for flag in $(EXTRA_TARGET_FLAGS); do \
1189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1191 if (cd $(TARGET_SUBDIR)/$$i; \
1192 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1193 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1194 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1195 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1197 then true; else exit 1; fi; \
1201 .PHONY: do-installcheck
1203 @r=`${PWD}`; export r; \
1204 s=`cd $(srcdir); ${PWD}`; export s; \
1206 for i in $(SUBDIRS) -dummy-; do \
1207 if [ -f ./$$i/Makefile ]; then \
1210 for flag in $(EXTRA_GCC_FLAGS); do \
1211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1215 for flag in $(EXTRA_HOST_FLAGS); do \
1216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1223 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1226 then true; else exit 1; fi; \
1229 # Break into two pieces
1230 r=`${PWD}`; export r; \
1231 s=`cd $(srcdir); ${PWD}`; export s; \
1233 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1234 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1235 for flag in $(EXTRA_TARGET_FLAGS); do \
1236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1238 if (cd $(TARGET_SUBDIR)/$$i; \
1239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1241 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1244 then true; else exit 1; fi; \
1248 .PHONY: do-mostlyclean
1250 @r=`${PWD}`; export r; \
1251 s=`cd $(srcdir); ${PWD}`; export s; \
1253 for i in $(SUBDIRS) -dummy-; do \
1254 if [ -f ./$$i/Makefile ]; then \
1257 for flag in $(EXTRA_GCC_FLAGS); do \
1258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1262 for flag in $(EXTRA_HOST_FLAGS); do \
1263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1270 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1273 then true; else exit 1; fi; \
1276 # Break into two pieces
1277 r=`${PWD}`; export r; \
1278 s=`cd $(srcdir); ${PWD}`; export s; \
1280 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1281 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1282 for flag in $(EXTRA_TARGET_FLAGS); do \
1283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1285 if (cd $(TARGET_SUBDIR)/$$i; \
1286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1288 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1291 then true; else exit 1; fi; \
1295 .PHONY: do-maintainer-clean
1296 do-maintainer-clean:
1297 @r=`${PWD}`; export r; \
1298 s=`cd $(srcdir); ${PWD}`; export s; \
1300 for i in $(SUBDIRS) -dummy-; do \
1301 if [ -f ./$$i/Makefile ]; then \
1304 for flag in $(EXTRA_GCC_FLAGS); do \
1305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1309 for flag in $(EXTRA_HOST_FLAGS); do \
1310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1317 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1319 maintainer-clean); \
1320 then true; else exit 1; fi; \
1323 # Break into two pieces
1324 r=`${PWD}`; export r; \
1325 s=`cd $(srcdir); ${PWD}`; export s; \
1327 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1328 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1329 for flag in $(EXTRA_TARGET_FLAGS); do \
1330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1332 if (cd $(TARGET_SUBDIR)/$$i; \
1333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1335 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1337 maintainer-clean); \
1338 then true; else exit 1; fi; \
1344 @r=`${PWD}`; export r; \
1345 s=`cd $(srcdir); ${PWD}`; export s; \
1347 for i in $(SUBDIRS) -dummy-; do \
1348 if [ -f ./$$i/Makefile ]; then \
1351 for flag in $(EXTRA_GCC_FLAGS); do \
1352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1356 for flag in $(EXTRA_HOST_FLAGS); do \
1357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1364 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1367 then true; else exit 1; fi; \
1370 # Break into two pieces
1371 r=`${PWD}`; export r; \
1372 s=`cd $(srcdir); ${PWD}`; export s; \
1374 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1375 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1376 for flag in $(EXTRA_TARGET_FLAGS); do \
1377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1379 if (cd $(TARGET_SUBDIR)/$$i; \
1380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1382 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1385 then true; else exit 1; fi; \
1391 # Here are the targets which correspond to the do-X targets.
1393 .PHONY: info installcheck dvi install-info
1394 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1395 .PHONY: local-clean local-distclean local-maintainer-clean
1397 installcheck: do-installcheck
1400 # Make sure makeinfo is built before we do a `make info'.
1401 do-info: all-texinfo
1403 install-info: do-install-info dir.info
1404 s=`cd $(srcdir); ${PWD}`; export s; \
1405 if [ -f dir.info ] ; then \
1406 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1410 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1413 -rm -f Makefile config.status config.cache mh-frag mt-frag
1414 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1415 rm -rf $(TARGET_SUBDIR); \
1417 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1418 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1419 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1420 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1421 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1423 local-maintainer-clean:
1424 @echo "This command is intended for maintainers to use;"
1425 @echo "it deletes files that may require special tools to rebuild."
1427 clean: do-clean local-clean
1428 mostlyclean: do-mostlyclean local-clean
1429 distclean: do-distclean local-clean local-distclean
1430 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1431 maintainer-clean: local-distclean
1432 realclean: maintainer-clean
1434 # This rule is used to clean specific modules.
1435 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1436 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1437 @dir=`echo $@ | sed -e 's/clean-//'`; \
1438 if [ -f ./$${dir}/Makefile ] ; then \
1439 r=`${PWD}`; export r; \
1440 s=`cd $(srcdir); ${PWD}`; export s; \
1442 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1447 .PHONY: $(CLEAN_TARGET_MODULES)
1448 $(CLEAN_TARGET_MODULES):
1449 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1450 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1451 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1452 r=`${PWD}`; export r; \
1453 s=`cd $(srcdir); ${PWD}`; export s; \
1455 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1460 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1461 clean-target-libgcc:
1462 test ! -d gcc/libgcc || \
1463 (cd gcc/libgcc && find . -type d -print) | \
1464 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1469 .PHONY: check do-check
1471 $(MAKE) do-check NOTPARALLEL=parallel-ok
1473 do-check: $(CHECK_MODULES) \
1474 $(CHECK_TARGET_MODULES) \
1475 $(CHECK_X11_MODULES) \
1478 # Automated reporting of test results.
1480 warning.log: build.log
1481 $(srcdir)/contrib/warn_summary build.log > $@
1484 if test x'$(BOOT_CFLAGS)' != x''; then \
1485 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1487 $(srcdir)/contrib/test_summary -t >$@
1489 echo If you really want to send e-mail, run ./$@ now
1491 mail-report-with-warnings.log: warning.log
1492 if test x'$(BOOT_CFLAGS)' != x''; then \
1493 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1495 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1497 echo If you really want to send e-mail, run ./$@ now
1499 # Installation targets.
1501 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1502 install: $(INSTALL_TARGET)
1503 install-cross: $(INSTALL_TARGET_CROSS)
1506 @echo "the uninstall target is not supported in this tree"
1509 $(MAKE) -f ./release/Build-A-Release \
1510 host=$(host_alias) source-vault
1513 $(MAKE) -f ./release/Build-A-Release \
1514 host=$(host_alias) target=$(target_alias)
1517 @if [ -f ./release/vault-install ] ; then \
1518 ./release/vault-install $(host_alias) $(target_alias) ; \
1524 install.all: install-no-fixedincludes
1525 @if [ -f ./gcc/Makefile ] ; then \
1526 r=`${PWD}` ; export r ; \
1529 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1534 # install-no-fixedincludes is used because Cygnus can not distribute
1535 # the fixed header files.
1536 .PHONY: install-no-fixedincludes
1537 install-no-fixedincludes: \
1539 $(INSTALL_MODULES) \
1540 $(INSTALL_TARGET_MODULES) \
1541 $(INSTALL_X11_MODULES) \
1542 gcc-no-fixedincludes
1544 # Install the gcc headers files, but not the fixed include files,
1545 # which Cygnus is not allowed to distribute. This rule is very
1546 # dependent on the workings of the gcc Makefile.in.
1547 .PHONY: gcc-no-fixedincludes
1548 gcc-no-fixedincludes:
1549 @if [ -f ./gcc/Makefile ]; then \
1550 rm -rf gcc/tmp-include; \
1551 mv gcc/include gcc/tmp-include 2>/dev/null; \
1552 mkdir gcc/include; \
1553 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1554 touch gcc/stmp-fixinc gcc/include/fixed; \
1555 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1556 r=`${PWD}`; export r; \
1557 s=`cd $(srcdir); ${PWD}` ; export s; \
1560 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1561 rm -rf gcc/include; \
1562 mv gcc/tmp-include gcc/include 2>/dev/null; \
1565 # These rules are used to build the modules which are built with the
1566 # build machine's native compiler.
1568 .PHONY: all-build-libiberty
1569 all-build-libiberty:
1570 @if [ -f ./libiberty/Makefile ] ; then \
1571 r=`${PWD}`; export r; \
1572 s=`cd $(srcdir); ${PWD}`; export s; \
1573 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all); \
1578 .PHONY: configure-build-libiberty
1579 configure-build-libiberty:
1580 @if [ ! -d $(BUILD_SUBDIR) ]; then \
1582 elif [ -f $(BUILD_SUBDIR)/libiberty/Makefile ] ; then \
1584 elif echo " $(BUILD_CONFIGDIRS) " | grep " libiberty " >/dev/null 2>&1; then \
1585 if [ -d $(srcdir)/libiberty ]; then \
1586 [ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
1587 r=`${PWD}`; export r; \
1588 s=`cd $(srcdir); ${PWD}`; export s; \
1589 AR="$(AR_FOR_BUILD)"; export AR; \
1590 AS="$(AS_FOR_BUILD)"; export AS; \
1591 CC="$(CC_FOR_BUILD)"; export CC; \
1592 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1593 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1594 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1595 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1596 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1597 LD="$(LD_FOR_BUILD)"; export LD; \
1598 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1599 NM="$(NM_FOR_BUILD)"; export NM; \
1600 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1601 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1602 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1603 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1605 /* | [A-Za-z]:[\\/]*) \
1606 topdir=$(srcdir) ;; \
1608 case "$(BUILD_SUBDIR)" in \
1609 .) topdir="../$(srcdir)" ;; \
1610 *) topdir="../../$(srcdir)" ;; \
1613 if [ "$(srcdir)" = "." ] ; then \
1614 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1615 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1616 if [ -f Makefile ]; then \
1617 if $(MAKE) distclean; then \
1631 srcdiroption="--srcdir=."; \
1634 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1635 libsrcdir="$$s/libiberty"; \
1637 if [ -f $${libsrcdir}/configure ] ; then \
1638 rm -f no-such-file skip-this-dir; \
1639 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1640 $(BUILD_CONFIGARGS) $${srcdiroption} \
1641 --with-build-subdir="$(BUILD_SUBDIR)"; \
1643 rm -f no-such-file skip-this-dir; \
1644 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1645 $(BUILD_CONFIGARGS) $${srcdiroption} \
1646 --with-build-subdir="$(BUILD_SUBDIR)"; \
1648 if [ -f skip-this-dir ] ; then \
1650 rm -f skip-this-dir; \
1651 cd ..; rmdir libiberty || true; \
1663 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1664 # build a target all-X means to cd to X and make all.
1665 .PHONY: $(ALL_MODULES)
1667 @dir=`echo $@ | sed -e 's/all-//'`; \
1668 if [ -f ./$${dir}/Makefile ] ; then \
1669 r=`${PWD}`; export r; \
1670 s=`cd $(srcdir); ${PWD}`; export s; \
1672 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1677 # These rules are used to check the modules which use FLAGS_TO_PASS.
1678 # To build a target check-X means to cd to X and make check. Some
1679 # modules are only tested in a native toolchain.
1681 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1682 $(NATIVE_CHECK_MODULES):
1683 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1684 dir=`echo $@ | sed -e 's/check-//'`; \
1685 if [ -f ./$${dir}/Makefile ] ; then \
1686 r=`${PWD}`; export r; \
1687 s=`cd $(srcdir); ${PWD}`; export s; \
1689 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1695 $(CROSS_CHECK_MODULES):
1696 @dir=`echo $@ | sed -e 's/check-//'`; \
1697 if [ -f ./$${dir}/Makefile ] ; then \
1698 r=`${PWD}`; export r; \
1699 s=`cd $(srcdir); ${PWD}`; export s; \
1701 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1706 # This rule is used to install the modules which use FLAGS_TO_PASS.
1707 # To build a target install-X means to cd to X and make install.
1708 .PHONY: $(INSTALL_MODULES)
1709 $(INSTALL_MODULES): installdirs
1710 @dir=`echo $@ | sed -e 's/install-//'`; \
1711 if [ -f ./$${dir}/Makefile ] ; then \
1712 r=`${PWD}`; export r; \
1713 s=`cd $(srcdir); ${PWD}`; export s; \
1715 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1720 # These rules are used to build the modules which are built with the target
1721 # tools. To make foo-X means to cd to X and make foo.
1723 .PHONY: configure-target-libstdc++-v3
1724 configure-target-libstdc++-v3:
1725 @if [ -d $(TARGET_SUBDIR)/libstdc++-v3 ]; then \
1726 r=`${PWD}`; export r; \
1727 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out 2> /dev/null; \
1728 if [ -s $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out ]; then \
1729 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.out ]; then \
1730 if cmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out > /dev/null; then \
1731 rm -f $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out; \
1733 echo "Multilibs changed for libstdc++-v3, reconfiguring"; \
1734 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.out $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
1735 mv $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
1738 mv $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
1741 fi; exit 0 # break command into two pieces
1742 @dir=libstdc++-v3 ; \
1743 if [ ! -d $(TARGET_SUBDIR) ]; then \
1745 elif [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
1747 elif echo " $(TARGET_CONFIGDIRS) " | grep " libstdc++-v3 " >/dev/null 2>&1; then \
1748 if [ -d $(srcdir)/libstdc++-v3 ]; then \
1749 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
1750 r=`${PWD}`; export r; \
1751 s=`cd $(srcdir); ${PWD}`; export s; \
1753 AR="$(AR_FOR_TARGET)"; export AR; \
1754 AS="$(AS_FOR_TARGET)"; export AS; \
1755 CC="$(CC_FOR_TARGET)"; export CC; \
1756 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1757 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1758 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1759 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1760 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1761 LD="$(LD_FOR_TARGET)"; export LD; \
1762 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1763 NM="$(NM_FOR_TARGET)"; export NM; \
1764 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1765 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1766 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
1767 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
1769 /* | [A-Za-z]:[\\/]*) \
1770 topdir=$(srcdir) ;; \
1772 case "$(TARGET_SUBDIR)" in \
1773 .) topdir="../$(srcdir)" ;; \
1774 *) topdir="../../$(srcdir)" ;; \
1777 if [ "$(srcdir)" = "." ] ; then \
1778 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1779 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
1780 if [ -f Makefile ]; then \
1781 if $(MAKE) distclean; then \
1795 srcdiroption="--srcdir=."; \
1798 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
1799 libsrcdir="$$s/libstdc++-v3"; \
1801 if [ -f $${libsrcdir}/configure ] ; then \
1802 rm -f no-such-file skip-this-dir; \
1803 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1804 $(TARGET_CONFIGARGS) $${srcdiroption} \
1805 --with-target-subdir="$(TARGET_SUBDIR)"; \
1807 rm -f no-such-file skip-this-dir; \
1808 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1809 $(TARGET_CONFIGARGS) $${srcdiroption} \
1810 --with-target-subdir="$(TARGET_SUBDIR)"; \
1812 if [ -f skip-this-dir ] ; then \
1814 rm -f skip-this-dir; \
1815 cd ..; rmdir libstdc++-v3 || true; \
1826 .PHONY: all-target-libstdc++-v3
1827 all-target-libstdc++-v3:
1828 @dir=libstdc++-v3 ; \
1829 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
1830 r=`${PWD}`; export r; \
1831 s=`cd $(srcdir); ${PWD}`; export s; \
1833 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
1834 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1839 .PHONY: check-target-libstdc++-v3
1840 check-target-libstdc++-v3:
1841 @dir=libstdc++-v3 ; \
1842 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
1843 r=`${PWD}`; export r; \
1844 s=`cd $(srcdir); ${PWD}`; export s; \
1846 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
1847 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1853 .PHONY: install-target-libstdc++-v3
1854 install-target-libstdc++-v3: installdirs
1855 @dir=libstdc++-v3 ; \
1856 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
1857 r=`${PWD}`; export r; \
1858 s=`cd $(srcdir); ${PWD}`; export s; \
1860 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
1861 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1867 .PHONY: configure-target-newlib
1868 configure-target-newlib:
1869 @if [ -d $(TARGET_SUBDIR)/newlib ]; then \
1870 r=`${PWD}`; export r; \
1871 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/tmpmulti.out 2> /dev/null; \
1872 if [ -s $(TARGET_SUBDIR)/newlib/tmpmulti.out ]; then \
1873 if [ -f $(TARGET_SUBDIR)/newlib/multilib.out ]; then \
1874 if cmp $(TARGET_SUBDIR)/newlib/multilib.out $(TARGET_SUBDIR)/newlib/tmpmulti.out > /dev/null; then \
1875 rm -f $(TARGET_SUBDIR)/newlib/tmpmulti.out; \
1877 echo "Multilibs changed for newlib, reconfiguring"; \
1878 rm -f $(TARGET_SUBDIR)/newlib/multilib.out $(TARGET_SUBDIR)/newlib/Makefile; \
1879 mv $(TARGET_SUBDIR)/newlib/tmpmulti.out $(TARGET_SUBDIR)/newlib/multilib.out; \
1882 mv $(TARGET_SUBDIR)/newlib/tmpmulti.out $(TARGET_SUBDIR)/newlib/multilib.out; \
1885 fi; exit 0 # break command into two pieces
1887 if [ ! -d $(TARGET_SUBDIR) ]; then \
1889 elif [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
1891 elif echo " $(TARGET_CONFIGDIRS) " | grep " newlib " >/dev/null 2>&1; then \
1892 if [ -d $(srcdir)/newlib ]; then \
1893 [ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
1894 r=`${PWD}`; export r; \
1895 s=`cd $(srcdir); ${PWD}`; export s; \
1897 AR="$(AR_FOR_TARGET)"; export AR; \
1898 AS="$(AS_FOR_TARGET)"; export AS; \
1899 CC="$(CC_FOR_TARGET)"; export CC; \
1900 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1901 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1902 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1903 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1904 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1905 LD="$(LD_FOR_TARGET)"; export LD; \
1906 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1907 NM="$(NM_FOR_TARGET)"; export NM; \
1908 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1909 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1910 echo Configuring in $(TARGET_SUBDIR)/newlib; \
1911 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
1913 /* | [A-Za-z]:[\\/]*) \
1914 topdir=$(srcdir) ;; \
1916 case "$(TARGET_SUBDIR)" in \
1917 .) topdir="../$(srcdir)" ;; \
1918 *) topdir="../../$(srcdir)" ;; \
1921 if [ "$(srcdir)" = "." ] ; then \
1922 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1923 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
1924 if [ -f Makefile ]; then \
1925 if $(MAKE) distclean; then \
1939 srcdiroption="--srcdir=."; \
1942 srcdiroption="--srcdir=$${topdir}/newlib"; \
1943 libsrcdir="$$s/newlib"; \
1945 if [ -f $${libsrcdir}/configure ] ; then \
1946 rm -f no-such-file skip-this-dir; \
1947 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1948 $(TARGET_CONFIGARGS) $${srcdiroption} \
1949 --with-target-subdir="$(TARGET_SUBDIR)"; \
1951 rm -f no-such-file skip-this-dir; \
1952 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1953 $(TARGET_CONFIGARGS) $${srcdiroption} \
1954 --with-target-subdir="$(TARGET_SUBDIR)"; \
1956 if [ -f skip-this-dir ] ; then \
1958 rm -f skip-this-dir; \
1959 cd ..; rmdir newlib || true; \
1970 .PHONY: all-target-newlib
1973 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
1974 r=`${PWD}`; export r; \
1975 s=`cd $(srcdir); ${PWD}`; export s; \
1977 (cd $(TARGET_SUBDIR)/newlib; \
1978 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1983 .PHONY: check-target-newlib
1984 check-target-newlib:
1986 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
1987 r=`${PWD}`; export r; \
1988 s=`cd $(srcdir); ${PWD}`; export s; \
1990 (cd $(TARGET_SUBDIR)/newlib; \
1991 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1997 .PHONY: install-target-newlib
1998 install-target-newlib: installdirs
2000 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
2001 r=`${PWD}`; export r; \
2002 s=`cd $(srcdir); ${PWD}`; export s; \
2004 (cd $(TARGET_SUBDIR)/newlib; \
2005 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2011 .PHONY: configure-target-libf2c
2012 configure-target-libf2c:
2013 @if [ -d $(TARGET_SUBDIR)/libf2c ]; then \
2014 r=`${PWD}`; export r; \
2015 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libf2c/tmpmulti.out 2> /dev/null; \
2016 if [ -s $(TARGET_SUBDIR)/libf2c/tmpmulti.out ]; then \
2017 if [ -f $(TARGET_SUBDIR)/libf2c/multilib.out ]; then \
2018 if cmp $(TARGET_SUBDIR)/libf2c/multilib.out $(TARGET_SUBDIR)/libf2c/tmpmulti.out > /dev/null; then \
2019 rm -f $(TARGET_SUBDIR)/libf2c/tmpmulti.out; \
2021 echo "Multilibs changed for libf2c, reconfiguring"; \
2022 rm -f $(TARGET_SUBDIR)/libf2c/multilib.out $(TARGET_SUBDIR)/libf2c/Makefile; \
2023 mv $(TARGET_SUBDIR)/libf2c/tmpmulti.out $(TARGET_SUBDIR)/libf2c/multilib.out; \
2026 mv $(TARGET_SUBDIR)/libf2c/tmpmulti.out $(TARGET_SUBDIR)/libf2c/multilib.out; \
2029 fi; exit 0 # break command into two pieces
2031 if [ ! -d $(TARGET_SUBDIR) ]; then \
2033 elif [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
2035 elif echo " $(TARGET_CONFIGDIRS) " | grep " libf2c " >/dev/null 2>&1; then \
2036 if [ -d $(srcdir)/libf2c ]; then \
2037 [ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
2038 r=`${PWD}`; export r; \
2039 s=`cd $(srcdir); ${PWD}`; export s; \
2041 AR="$(AR_FOR_TARGET)"; export AR; \
2042 AS="$(AS_FOR_TARGET)"; export AS; \
2043 CC="$(CC_FOR_TARGET)"; export CC; \
2044 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2045 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2046 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2047 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2048 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2049 LD="$(LD_FOR_TARGET)"; export LD; \
2050 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2051 NM="$(NM_FOR_TARGET)"; export NM; \
2052 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2053 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2054 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
2055 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
2057 /* | [A-Za-z]:[\\/]*) \
2058 topdir=$(srcdir) ;; \
2060 case "$(TARGET_SUBDIR)" in \
2061 .) topdir="../$(srcdir)" ;; \
2062 *) topdir="../../$(srcdir)" ;; \
2065 if [ "$(srcdir)" = "." ] ; then \
2066 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2067 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
2068 if [ -f Makefile ]; then \
2069 if $(MAKE) distclean; then \
2083 srcdiroption="--srcdir=."; \
2086 srcdiroption="--srcdir=$${topdir}/libf2c"; \
2087 libsrcdir="$$s/libf2c"; \
2089 if [ -f $${libsrcdir}/configure ] ; then \
2090 rm -f no-such-file skip-this-dir; \
2091 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2092 $(TARGET_CONFIGARGS) $${srcdiroption} \
2093 --with-target-subdir="$(TARGET_SUBDIR)"; \
2095 rm -f no-such-file skip-this-dir; \
2096 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2097 $(TARGET_CONFIGARGS) $${srcdiroption} \
2098 --with-target-subdir="$(TARGET_SUBDIR)"; \
2100 if [ -f skip-this-dir ] ; then \
2102 rm -f skip-this-dir; \
2103 cd ..; rmdir libf2c || true; \
2114 .PHONY: all-target-libf2c
2117 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
2118 r=`${PWD}`; export r; \
2119 s=`cd $(srcdir); ${PWD}`; export s; \
2121 (cd $(TARGET_SUBDIR)/libf2c; \
2122 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2127 .PHONY: check-target-libf2c
2128 check-target-libf2c:
2130 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
2131 r=`${PWD}`; export r; \
2132 s=`cd $(srcdir); ${PWD}`; export s; \
2134 (cd $(TARGET_SUBDIR)/libf2c; \
2135 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
2141 .PHONY: install-target-libf2c
2142 install-target-libf2c: installdirs
2144 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
2145 r=`${PWD}`; export r; \
2146 s=`cd $(srcdir); ${PWD}`; export s; \
2148 (cd $(TARGET_SUBDIR)/libf2c; \
2149 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2155 .PHONY: configure-target-libobjc
2156 configure-target-libobjc:
2157 @if [ -d $(TARGET_SUBDIR)/libobjc ]; then \
2158 r=`${PWD}`; export r; \
2159 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/tmpmulti.out 2> /dev/null; \
2160 if [ -s $(TARGET_SUBDIR)/libobjc/tmpmulti.out ]; then \
2161 if [ -f $(TARGET_SUBDIR)/libobjc/multilib.out ]; then \
2162 if cmp $(TARGET_SUBDIR)/libobjc/multilib.out $(TARGET_SUBDIR)/libobjc/tmpmulti.out > /dev/null; then \
2163 rm -f $(TARGET_SUBDIR)/libobjc/tmpmulti.out; \
2165 echo "Multilibs changed for libobjc, reconfiguring"; \
2166 rm -f $(TARGET_SUBDIR)/libobjc/multilib.out $(TARGET_SUBDIR)/libobjc/Makefile; \
2167 mv $(TARGET_SUBDIR)/libobjc/tmpmulti.out $(TARGET_SUBDIR)/libobjc/multilib.out; \
2170 mv $(TARGET_SUBDIR)/libobjc/tmpmulti.out $(TARGET_SUBDIR)/libobjc/multilib.out; \
2173 fi; exit 0 # break command into two pieces
2175 if [ ! -d $(TARGET_SUBDIR) ]; then \
2177 elif [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
2179 elif echo " $(TARGET_CONFIGDIRS) " | grep " libobjc " >/dev/null 2>&1; then \
2180 if [ -d $(srcdir)/libobjc ]; then \
2181 [ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
2182 r=`${PWD}`; export r; \
2183 s=`cd $(srcdir); ${PWD}`; export s; \
2185 AR="$(AR_FOR_TARGET)"; export AR; \
2186 AS="$(AS_FOR_TARGET)"; export AS; \
2187 CC="$(CC_FOR_TARGET)"; export CC; \
2188 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2189 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2190 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2191 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2192 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2193 LD="$(LD_FOR_TARGET)"; export LD; \
2194 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2195 NM="$(NM_FOR_TARGET)"; export NM; \
2196 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2197 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2198 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
2199 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
2201 /* | [A-Za-z]:[\\/]*) \
2202 topdir=$(srcdir) ;; \
2204 case "$(TARGET_SUBDIR)" in \
2205 .) topdir="../$(srcdir)" ;; \
2206 *) topdir="../../$(srcdir)" ;; \
2209 if [ "$(srcdir)" = "." ] ; then \
2210 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2211 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
2212 if [ -f Makefile ]; then \
2213 if $(MAKE) distclean; then \
2227 srcdiroption="--srcdir=."; \
2230 srcdiroption="--srcdir=$${topdir}/libobjc"; \
2231 libsrcdir="$$s/libobjc"; \
2233 if [ -f $${libsrcdir}/configure ] ; then \
2234 rm -f no-such-file skip-this-dir; \
2235 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2236 $(TARGET_CONFIGARGS) $${srcdiroption} \
2237 --with-target-subdir="$(TARGET_SUBDIR)"; \
2239 rm -f no-such-file skip-this-dir; \
2240 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2241 $(TARGET_CONFIGARGS) $${srcdiroption} \
2242 --with-target-subdir="$(TARGET_SUBDIR)"; \
2244 if [ -f skip-this-dir ] ; then \
2246 rm -f skip-this-dir; \
2247 cd ..; rmdir libobjc || true; \
2258 .PHONY: all-target-libobjc
2261 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
2262 r=`${PWD}`; export r; \
2263 s=`cd $(srcdir); ${PWD}`; export s; \
2265 (cd $(TARGET_SUBDIR)/libobjc; \
2266 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2271 .PHONY: check-target-libobjc
2272 check-target-libobjc:
2274 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
2275 r=`${PWD}`; export r; \
2276 s=`cd $(srcdir); ${PWD}`; export s; \
2278 (cd $(TARGET_SUBDIR)/libobjc; \
2279 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
2285 .PHONY: install-target-libobjc
2286 install-target-libobjc: installdirs
2288 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
2289 r=`${PWD}`; export r; \
2290 s=`cd $(srcdir); ${PWD}`; export s; \
2292 (cd $(TARGET_SUBDIR)/libobjc; \
2293 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2299 .PHONY: configure-target-libtermcap
2300 configure-target-libtermcap:
2301 @if [ -d $(TARGET_SUBDIR)/libtermcap ]; then \
2302 r=`${PWD}`; export r; \
2303 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/tmpmulti.out 2> /dev/null; \
2304 if [ -s $(TARGET_SUBDIR)/libtermcap/tmpmulti.out ]; then \
2305 if [ -f $(TARGET_SUBDIR)/libtermcap/multilib.out ]; then \
2306 if cmp $(TARGET_SUBDIR)/libtermcap/multilib.out $(TARGET_SUBDIR)/libtermcap/tmpmulti.out > /dev/null; then \
2307 rm -f $(TARGET_SUBDIR)/libtermcap/tmpmulti.out; \
2309 echo "Multilibs changed for libtermcap, reconfiguring"; \
2310 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.out $(TARGET_SUBDIR)/libtermcap/Makefile; \
2311 mv $(TARGET_SUBDIR)/libtermcap/tmpmulti.out $(TARGET_SUBDIR)/libtermcap/multilib.out; \
2314 mv $(TARGET_SUBDIR)/libtermcap/tmpmulti.out $(TARGET_SUBDIR)/libtermcap/multilib.out; \
2317 fi; exit 0 # break command into two pieces
2319 if [ ! -d $(TARGET_SUBDIR) ]; then \
2321 elif [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
2323 elif echo " $(TARGET_CONFIGDIRS) " | grep " libtermcap " >/dev/null 2>&1; then \
2324 if [ -d $(srcdir)/libtermcap ]; then \
2325 [ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
2326 r=`${PWD}`; export r; \
2327 s=`cd $(srcdir); ${PWD}`; export s; \
2329 AR="$(AR_FOR_TARGET)"; export AR; \
2330 AS="$(AS_FOR_TARGET)"; export AS; \
2331 CC="$(CC_FOR_TARGET)"; export CC; \
2332 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2333 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2334 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2335 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2336 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2337 LD="$(LD_FOR_TARGET)"; export LD; \
2338 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2339 NM="$(NM_FOR_TARGET)"; export NM; \
2340 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2341 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2342 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
2343 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
2345 /* | [A-Za-z]:[\\/]*) \
2346 topdir=$(srcdir) ;; \
2348 case "$(TARGET_SUBDIR)" in \
2349 .) topdir="../$(srcdir)" ;; \
2350 *) topdir="../../$(srcdir)" ;; \
2353 if [ "$(srcdir)" = "." ] ; then \
2354 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2355 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
2356 if [ -f Makefile ]; then \
2357 if $(MAKE) distclean; then \
2371 srcdiroption="--srcdir=."; \
2374 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
2375 libsrcdir="$$s/libtermcap"; \
2377 if [ -f $${libsrcdir}/configure ] ; then \
2378 rm -f no-such-file skip-this-dir; \
2379 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2380 $(TARGET_CONFIGARGS) $${srcdiroption} \
2381 --with-target-subdir="$(TARGET_SUBDIR)"; \
2383 rm -f no-such-file skip-this-dir; \
2384 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2385 $(TARGET_CONFIGARGS) $${srcdiroption} \
2386 --with-target-subdir="$(TARGET_SUBDIR)"; \
2388 if [ -f skip-this-dir ] ; then \
2390 rm -f skip-this-dir; \
2391 cd ..; rmdir libtermcap || true; \
2402 .PHONY: all-target-libtermcap
2403 all-target-libtermcap:
2405 if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
2406 r=`${PWD}`; export r; \
2407 s=`cd $(srcdir); ${PWD}`; export s; \
2409 (cd $(TARGET_SUBDIR)/libtermcap; \
2410 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2416 .PHONY: install-target-libtermcap
2417 install-target-libtermcap: installdirs
2419 if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
2420 r=`${PWD}`; export r; \
2421 s=`cd $(srcdir); ${PWD}`; export s; \
2423 (cd $(TARGET_SUBDIR)/libtermcap; \
2424 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2430 .PHONY: configure-target-winsup
2431 configure-target-winsup:
2432 @if [ -d $(TARGET_SUBDIR)/winsup ]; then \
2433 r=`${PWD}`; export r; \
2434 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/tmpmulti.out 2> /dev/null; \
2435 if [ -s $(TARGET_SUBDIR)/winsup/tmpmulti.out ]; then \
2436 if [ -f $(TARGET_SUBDIR)/winsup/multilib.out ]; then \
2437 if cmp $(TARGET_SUBDIR)/winsup/multilib.out $(TARGET_SUBDIR)/winsup/tmpmulti.out > /dev/null; then \
2438 rm -f $(TARGET_SUBDIR)/winsup/tmpmulti.out; \
2440 echo "Multilibs changed for winsup, reconfiguring"; \
2441 rm -f $(TARGET_SUBDIR)/winsup/multilib.out $(TARGET_SUBDIR)/winsup/Makefile; \
2442 mv $(TARGET_SUBDIR)/winsup/tmpmulti.out $(TARGET_SUBDIR)/winsup/multilib.out; \
2445 mv $(TARGET_SUBDIR)/winsup/tmpmulti.out $(TARGET_SUBDIR)/winsup/multilib.out; \
2448 fi; exit 0 # break command into two pieces
2450 if [ ! -d $(TARGET_SUBDIR) ]; then \
2452 elif [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
2454 elif echo " $(TARGET_CONFIGDIRS) " | grep " winsup " >/dev/null 2>&1; then \
2455 if [ -d $(srcdir)/winsup ]; then \
2456 [ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
2457 r=`${PWD}`; export r; \
2458 s=`cd $(srcdir); ${PWD}`; export s; \
2460 AR="$(AR_FOR_TARGET)"; export AR; \
2461 AS="$(AS_FOR_TARGET)"; export AS; \
2462 CC="$(CC_FOR_TARGET)"; export CC; \
2463 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2464 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2465 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2466 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2467 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2468 LD="$(LD_FOR_TARGET)"; export LD; \
2469 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2470 NM="$(NM_FOR_TARGET)"; export NM; \
2471 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2472 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2473 echo Configuring in $(TARGET_SUBDIR)/winsup; \
2474 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
2476 /* | [A-Za-z]:[\\/]*) \
2477 topdir=$(srcdir) ;; \
2479 case "$(TARGET_SUBDIR)" in \
2480 .) topdir="../$(srcdir)" ;; \
2481 *) topdir="../../$(srcdir)" ;; \
2484 if [ "$(srcdir)" = "." ] ; then \
2485 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2486 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
2487 if [ -f Makefile ]; then \
2488 if $(MAKE) distclean; then \
2502 srcdiroption="--srcdir=."; \
2505 srcdiroption="--srcdir=$${topdir}/winsup"; \
2506 libsrcdir="$$s/winsup"; \
2508 if [ -f $${libsrcdir}/configure ] ; then \
2509 rm -f no-such-file skip-this-dir; \
2510 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2511 $(TARGET_CONFIGARGS) $${srcdiroption} \
2512 --with-target-subdir="$(TARGET_SUBDIR)"; \
2514 rm -f no-such-file skip-this-dir; \
2515 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2516 $(TARGET_CONFIGARGS) $${srcdiroption} \
2517 --with-target-subdir="$(TARGET_SUBDIR)"; \
2519 if [ -f skip-this-dir ] ; then \
2521 rm -f skip-this-dir; \
2522 cd ..; rmdir winsup || true; \
2533 .PHONY: all-target-winsup
2536 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
2537 r=`${PWD}`; export r; \
2538 s=`cd $(srcdir); ${PWD}`; export s; \
2540 (cd $(TARGET_SUBDIR)/winsup; \
2541 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2546 .PHONY: check-target-winsup
2547 check-target-winsup:
2549 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
2550 r=`${PWD}`; export r; \
2551 s=`cd $(srcdir); ${PWD}`; export s; \
2553 (cd $(TARGET_SUBDIR)/winsup; \
2554 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
2560 .PHONY: install-target-winsup
2561 install-target-winsup: installdirs
2563 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
2564 r=`${PWD}`; export r; \
2565 s=`cd $(srcdir); ${PWD}`; export s; \
2567 (cd $(TARGET_SUBDIR)/winsup; \
2568 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2574 .PHONY: configure-target-libgloss
2575 configure-target-libgloss:
2576 @if [ -d $(TARGET_SUBDIR)/libgloss ]; then \
2577 r=`${PWD}`; export r; \
2578 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/tmpmulti.out 2> /dev/null; \
2579 if [ -s $(TARGET_SUBDIR)/libgloss/tmpmulti.out ]; then \
2580 if [ -f $(TARGET_SUBDIR)/libgloss/multilib.out ]; then \
2581 if cmp $(TARGET_SUBDIR)/libgloss/multilib.out $(TARGET_SUBDIR)/libgloss/tmpmulti.out > /dev/null; then \
2582 rm -f $(TARGET_SUBDIR)/libgloss/tmpmulti.out; \
2584 echo "Multilibs changed for libgloss, reconfiguring"; \
2585 rm -f $(TARGET_SUBDIR)/libgloss/multilib.out $(TARGET_SUBDIR)/libgloss/Makefile; \
2586 mv $(TARGET_SUBDIR)/libgloss/tmpmulti.out $(TARGET_SUBDIR)/libgloss/multilib.out; \
2589 mv $(TARGET_SUBDIR)/libgloss/tmpmulti.out $(TARGET_SUBDIR)/libgloss/multilib.out; \
2592 fi; exit 0 # break command into two pieces
2594 if [ ! -d $(TARGET_SUBDIR) ]; then \
2596 elif [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
2598 elif echo " $(TARGET_CONFIGDIRS) " | grep " libgloss " >/dev/null 2>&1; then \
2599 if [ -d $(srcdir)/libgloss ]; then \
2600 [ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
2601 r=`${PWD}`; export r; \
2602 s=`cd $(srcdir); ${PWD}`; export s; \
2604 AR="$(AR_FOR_TARGET)"; export AR; \
2605 AS="$(AS_FOR_TARGET)"; export AS; \
2606 CC="$(CC_FOR_TARGET)"; export CC; \
2607 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2608 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2609 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2610 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2611 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2612 LD="$(LD_FOR_TARGET)"; export LD; \
2613 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2614 NM="$(NM_FOR_TARGET)"; export NM; \
2615 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2616 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2617 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
2618 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
2620 /* | [A-Za-z]:[\\/]*) \
2621 topdir=$(srcdir) ;; \
2623 case "$(TARGET_SUBDIR)" in \
2624 .) topdir="../$(srcdir)" ;; \
2625 *) topdir="../../$(srcdir)" ;; \
2628 if [ "$(srcdir)" = "." ] ; then \
2629 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2630 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
2631 if [ -f Makefile ]; then \
2632 if $(MAKE) distclean; then \
2646 srcdiroption="--srcdir=."; \
2649 srcdiroption="--srcdir=$${topdir}/libgloss"; \
2650 libsrcdir="$$s/libgloss"; \
2652 if [ -f $${libsrcdir}/configure ] ; then \
2653 rm -f no-such-file skip-this-dir; \
2654 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2655 $(TARGET_CONFIGARGS) $${srcdiroption} \
2656 --with-target-subdir="$(TARGET_SUBDIR)"; \
2658 rm -f no-such-file skip-this-dir; \
2659 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2660 $(TARGET_CONFIGARGS) $${srcdiroption} \
2661 --with-target-subdir="$(TARGET_SUBDIR)"; \
2663 if [ -f skip-this-dir ] ; then \
2665 rm -f skip-this-dir; \
2666 cd ..; rmdir libgloss || true; \
2677 .PHONY: all-target-libgloss
2678 all-target-libgloss:
2680 if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
2681 r=`${PWD}`; export r; \
2682 s=`cd $(srcdir); ${PWD}`; export s; \
2684 (cd $(TARGET_SUBDIR)/libgloss; \
2685 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2691 .PHONY: install-target-libgloss
2692 install-target-libgloss: installdirs
2694 if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
2695 r=`${PWD}`; export r; \
2696 s=`cd $(srcdir); ${PWD}`; export s; \
2698 (cd $(TARGET_SUBDIR)/libgloss; \
2699 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2705 .PHONY: configure-target-libiberty
2706 configure-target-libiberty:
2707 @if [ -d $(TARGET_SUBDIR)/libiberty ]; then \
2708 r=`${PWD}`; export r; \
2709 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/tmpmulti.out 2> /dev/null; \
2710 if [ -s $(TARGET_SUBDIR)/libiberty/tmpmulti.out ]; then \
2711 if [ -f $(TARGET_SUBDIR)/libiberty/multilib.out ]; then \
2712 if cmp $(TARGET_SUBDIR)/libiberty/multilib.out $(TARGET_SUBDIR)/libiberty/tmpmulti.out > /dev/null; then \
2713 rm -f $(TARGET_SUBDIR)/libiberty/tmpmulti.out; \
2715 echo "Multilibs changed for libiberty, reconfiguring"; \
2716 rm -f $(TARGET_SUBDIR)/libiberty/multilib.out $(TARGET_SUBDIR)/libiberty/Makefile; \
2717 mv $(TARGET_SUBDIR)/libiberty/tmpmulti.out $(TARGET_SUBDIR)/libiberty/multilib.out; \
2720 mv $(TARGET_SUBDIR)/libiberty/tmpmulti.out $(TARGET_SUBDIR)/libiberty/multilib.out; \
2723 fi; exit 0 # break command into two pieces
2725 if [ ! -d $(TARGET_SUBDIR) ]; then \
2727 elif [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
2729 elif echo " $(TARGET_CONFIGDIRS) " | grep " libiberty " >/dev/null 2>&1; then \
2730 if [ -d $(srcdir)/libiberty ]; then \
2731 [ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
2732 r=`${PWD}`; export r; \
2733 s=`cd $(srcdir); ${PWD}`; export s; \
2735 AR="$(AR_FOR_TARGET)"; export AR; \
2736 AS="$(AS_FOR_TARGET)"; export AS; \
2737 CC="$(CC_FOR_TARGET)"; export CC; \
2738 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2739 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2740 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2741 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2742 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2743 LD="$(LD_FOR_TARGET)"; export LD; \
2744 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2745 NM="$(NM_FOR_TARGET)"; export NM; \
2746 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2747 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2748 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
2749 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
2751 /* | [A-Za-z]:[\\/]*) \
2752 topdir=$(srcdir) ;; \
2754 case "$(TARGET_SUBDIR)" in \
2755 .) topdir="../$(srcdir)" ;; \
2756 *) topdir="../../$(srcdir)" ;; \
2759 if [ "$(srcdir)" = "." ] ; then \
2760 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2761 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2762 if [ -f Makefile ]; then \
2763 if $(MAKE) distclean; then \
2777 srcdiroption="--srcdir=."; \
2780 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2781 libsrcdir="$$s/libiberty"; \
2783 if [ -f $${libsrcdir}/configure ] ; then \
2784 rm -f no-such-file skip-this-dir; \
2785 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2786 $(TARGET_CONFIGARGS) $${srcdiroption} \
2787 --with-target-subdir="$(TARGET_SUBDIR)"; \
2789 rm -f no-such-file skip-this-dir; \
2790 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2791 $(TARGET_CONFIGARGS) $${srcdiroption} \
2792 --with-target-subdir="$(TARGET_SUBDIR)"; \
2794 if [ -f skip-this-dir ] ; then \
2796 rm -f skip-this-dir; \
2797 cd ..; rmdir libiberty || true; \
2808 .PHONY: all-target-libiberty
2809 all-target-libiberty:
2811 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
2812 r=`${PWD}`; export r; \
2813 s=`cd $(srcdir); ${PWD}`; export s; \
2815 (cd $(TARGET_SUBDIR)/libiberty; \
2816 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2821 .PHONY: check-target-libiberty
2822 check-target-libiberty:
2824 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
2825 r=`${PWD}`; export r; \
2826 s=`cd $(srcdir); ${PWD}`; export s; \
2828 (cd $(TARGET_SUBDIR)/libiberty; \
2829 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
2835 .PHONY: install-target-libiberty
2836 install-target-libiberty: installdirs
2838 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
2839 r=`${PWD}`; export r; \
2840 s=`cd $(srcdir); ${PWD}`; export s; \
2842 (cd $(TARGET_SUBDIR)/libiberty; \
2843 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2849 .PHONY: configure-target-gperf
2850 configure-target-gperf:
2851 @if [ -d $(TARGET_SUBDIR)/gperf ]; then \
2852 r=`${PWD}`; export r; \
2853 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/tmpmulti.out 2> /dev/null; \
2854 if [ -s $(TARGET_SUBDIR)/gperf/tmpmulti.out ]; then \
2855 if [ -f $(TARGET_SUBDIR)/gperf/multilib.out ]; then \
2856 if cmp $(TARGET_SUBDIR)/gperf/multilib.out $(TARGET_SUBDIR)/gperf/tmpmulti.out > /dev/null; then \
2857 rm -f $(TARGET_SUBDIR)/gperf/tmpmulti.out; \
2859 echo "Multilibs changed for gperf, reconfiguring"; \
2860 rm -f $(TARGET_SUBDIR)/gperf/multilib.out $(TARGET_SUBDIR)/gperf/Makefile; \
2861 mv $(TARGET_SUBDIR)/gperf/tmpmulti.out $(TARGET_SUBDIR)/gperf/multilib.out; \
2864 mv $(TARGET_SUBDIR)/gperf/tmpmulti.out $(TARGET_SUBDIR)/gperf/multilib.out; \
2867 fi; exit 0 # break command into two pieces
2869 if [ ! -d $(TARGET_SUBDIR) ]; then \
2871 elif [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
2873 elif echo " $(TARGET_CONFIGDIRS) " | grep " gperf " >/dev/null 2>&1; then \
2874 if [ -d $(srcdir)/gperf ]; then \
2875 [ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
2876 r=`${PWD}`; export r; \
2877 s=`cd $(srcdir); ${PWD}`; export s; \
2879 AR="$(AR_FOR_TARGET)"; export AR; \
2880 AS="$(AS_FOR_TARGET)"; export AS; \
2881 CC="$(CC_FOR_TARGET)"; export CC; \
2882 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
2883 CXX="$(CXX_FOR_TARGET)"; export CXX; \
2884 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
2885 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
2886 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2887 LD="$(LD_FOR_TARGET)"; export LD; \
2888 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
2889 NM="$(NM_FOR_TARGET)"; export NM; \
2890 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
2891 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
2892 echo Configuring in $(TARGET_SUBDIR)/gperf; \
2893 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
2895 /* | [A-Za-z]:[\\/]*) \
2896 topdir=$(srcdir) ;; \
2898 case "$(TARGET_SUBDIR)" in \
2899 .) topdir="../$(srcdir)" ;; \
2900 *) topdir="../../$(srcdir)" ;; \
2903 if [ "$(srcdir)" = "." ] ; then \
2904 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
2905 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
2906 if [ -f Makefile ]; then \
2907 if $(MAKE) distclean; then \
2921 srcdiroption="--srcdir=."; \
2924 srcdiroption="--srcdir=$${topdir}/gperf"; \
2925 libsrcdir="$$s/gperf"; \
2927 if [ -f $${libsrcdir}/configure ] ; then \
2928 rm -f no-such-file skip-this-dir; \
2929 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2930 $(TARGET_CONFIGARGS) $${srcdiroption} \
2931 --with-target-subdir="$(TARGET_SUBDIR)"; \
2933 rm -f no-such-file skip-this-dir; \
2934 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
2935 $(TARGET_CONFIGARGS) $${srcdiroption} \
2936 --with-target-subdir="$(TARGET_SUBDIR)"; \
2938 if [ -f skip-this-dir ] ; then \
2940 rm -f skip-this-dir; \
2941 cd ..; rmdir gperf || true; \
2952 .PHONY: all-target-gperf
2955 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
2956 r=`${PWD}`; export r; \
2957 s=`cd $(srcdir); ${PWD}`; export s; \
2959 (cd $(TARGET_SUBDIR)/gperf; \
2960 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
2965 .PHONY: check-target-gperf
2968 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
2969 r=`${PWD}`; export r; \
2970 s=`cd $(srcdir); ${PWD}`; export s; \
2972 (cd $(TARGET_SUBDIR)/gperf; \
2973 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
2979 .PHONY: install-target-gperf
2980 install-target-gperf: installdirs
2982 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
2983 r=`${PWD}`; export r; \
2984 s=`cd $(srcdir); ${PWD}`; export s; \
2986 (cd $(TARGET_SUBDIR)/gperf; \
2987 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
2993 .PHONY: configure-target-examples
2994 configure-target-examples:
2995 @if [ -d $(TARGET_SUBDIR)/examples ]; then \
2996 r=`${PWD}`; export r; \
2997 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/tmpmulti.out 2> /dev/null; \
2998 if [ -s $(TARGET_SUBDIR)/examples/tmpmulti.out ]; then \
2999 if [ -f $(TARGET_SUBDIR)/examples/multilib.out ]; then \
3000 if cmp $(TARGET_SUBDIR)/examples/multilib.out $(TARGET_SUBDIR)/examples/tmpmulti.out > /dev/null; then \
3001 rm -f $(TARGET_SUBDIR)/examples/tmpmulti.out; \
3003 echo "Multilibs changed for examples, reconfiguring"; \
3004 rm -f $(TARGET_SUBDIR)/examples/multilib.out $(TARGET_SUBDIR)/examples/Makefile; \
3005 mv $(TARGET_SUBDIR)/examples/tmpmulti.out $(TARGET_SUBDIR)/examples/multilib.out; \
3008 mv $(TARGET_SUBDIR)/examples/tmpmulti.out $(TARGET_SUBDIR)/examples/multilib.out; \
3011 fi; exit 0 # break command into two pieces
3013 if [ ! -d $(TARGET_SUBDIR) ]; then \
3015 elif [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
3017 elif echo " $(TARGET_CONFIGDIRS) " | grep " examples " >/dev/null 2>&1; then \
3018 if [ -d $(srcdir)/examples ]; then \
3019 [ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
3020 r=`${PWD}`; export r; \
3021 s=`cd $(srcdir); ${PWD}`; export s; \
3023 AR="$(AR_FOR_TARGET)"; export AR; \
3024 AS="$(AS_FOR_TARGET)"; export AS; \
3025 CC="$(CC_FOR_TARGET)"; export CC; \
3026 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3027 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3028 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3029 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3030 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3031 LD="$(LD_FOR_TARGET)"; export LD; \
3032 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3033 NM="$(NM_FOR_TARGET)"; export NM; \
3034 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3035 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3036 echo Configuring in $(TARGET_SUBDIR)/examples; \
3037 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
3039 /* | [A-Za-z]:[\\/]*) \
3040 topdir=$(srcdir) ;; \
3042 case "$(TARGET_SUBDIR)" in \
3043 .) topdir="../$(srcdir)" ;; \
3044 *) topdir="../../$(srcdir)" ;; \
3047 if [ "$(srcdir)" = "." ] ; then \
3048 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3049 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
3050 if [ -f Makefile ]; then \
3051 if $(MAKE) distclean; then \
3065 srcdiroption="--srcdir=."; \
3068 srcdiroption="--srcdir=$${topdir}/examples"; \
3069 libsrcdir="$$s/examples"; \
3071 if [ -f $${libsrcdir}/configure ] ; then \
3072 rm -f no-such-file skip-this-dir; \
3073 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3074 $(TARGET_CONFIGARGS) $${srcdiroption} \
3075 --with-target-subdir="$(TARGET_SUBDIR)"; \
3077 rm -f no-such-file skip-this-dir; \
3078 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3079 $(TARGET_CONFIGARGS) $${srcdiroption} \
3080 --with-target-subdir="$(TARGET_SUBDIR)"; \
3082 if [ -f skip-this-dir ] ; then \
3084 rm -f skip-this-dir; \
3085 cd ..; rmdir examples || true; \
3096 .PHONY: all-target-examples
3097 all-target-examples:
3099 if [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
3100 r=`${PWD}`; export r; \
3101 s=`cd $(srcdir); ${PWD}`; export s; \
3103 (cd $(TARGET_SUBDIR)/examples; \
3104 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3111 .PHONY: configure-target-libffi
3112 configure-target-libffi:
3113 @if [ -d $(TARGET_SUBDIR)/libffi ]; then \
3114 r=`${PWD}`; export r; \
3115 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/tmpmulti.out 2> /dev/null; \
3116 if [ -s $(TARGET_SUBDIR)/libffi/tmpmulti.out ]; then \
3117 if [ -f $(TARGET_SUBDIR)/libffi/multilib.out ]; then \
3118 if cmp $(TARGET_SUBDIR)/libffi/multilib.out $(TARGET_SUBDIR)/libffi/tmpmulti.out > /dev/null; then \
3119 rm -f $(TARGET_SUBDIR)/libffi/tmpmulti.out; \
3121 echo "Multilibs changed for libffi, reconfiguring"; \
3122 rm -f $(TARGET_SUBDIR)/libffi/multilib.out $(TARGET_SUBDIR)/libffi/Makefile; \
3123 mv $(TARGET_SUBDIR)/libffi/tmpmulti.out $(TARGET_SUBDIR)/libffi/multilib.out; \
3126 mv $(TARGET_SUBDIR)/libffi/tmpmulti.out $(TARGET_SUBDIR)/libffi/multilib.out; \
3129 fi; exit 0 # break command into two pieces
3131 if [ ! -d $(TARGET_SUBDIR) ]; then \
3133 elif [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
3135 elif echo " $(TARGET_CONFIGDIRS) " | grep " libffi " >/dev/null 2>&1; then \
3136 if [ -d $(srcdir)/libffi ]; then \
3137 [ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
3138 r=`${PWD}`; export r; \
3139 s=`cd $(srcdir); ${PWD}`; export s; \
3141 AR="$(AR_FOR_TARGET)"; export AR; \
3142 AS="$(AS_FOR_TARGET)"; export AS; \
3143 CC="$(CC_FOR_TARGET)"; export CC; \
3144 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3145 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3146 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3147 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3148 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3149 LD="$(LD_FOR_TARGET)"; export LD; \
3150 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3151 NM="$(NM_FOR_TARGET)"; export NM; \
3152 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3153 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3154 echo Configuring in $(TARGET_SUBDIR)/libffi; \
3155 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3157 /* | [A-Za-z]:[\\/]*) \
3158 topdir=$(srcdir) ;; \
3160 case "$(TARGET_SUBDIR)" in \
3161 .) topdir="../$(srcdir)" ;; \
3162 *) topdir="../../$(srcdir)" ;; \
3165 if [ "$(srcdir)" = "." ] ; then \
3166 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3167 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
3168 if [ -f Makefile ]; then \
3169 if $(MAKE) distclean; then \
3183 srcdiroption="--srcdir=."; \
3186 srcdiroption="--srcdir=$${topdir}/libffi"; \
3187 libsrcdir="$$s/libffi"; \
3189 if [ -f $${libsrcdir}/configure ] ; then \
3190 rm -f no-such-file skip-this-dir; \
3191 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3192 $(TARGET_CONFIGARGS) $${srcdiroption} \
3193 --with-target-subdir="$(TARGET_SUBDIR)"; \
3195 rm -f no-such-file skip-this-dir; \
3196 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3197 $(TARGET_CONFIGARGS) $${srcdiroption} \
3198 --with-target-subdir="$(TARGET_SUBDIR)"; \
3200 if [ -f skip-this-dir ] ; then \
3202 rm -f skip-this-dir; \
3203 cd ..; rmdir libffi || true; \
3214 .PHONY: all-target-libffi
3217 if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
3218 r=`${PWD}`; export r; \
3219 s=`cd $(srcdir); ${PWD}`; export s; \
3221 (cd $(TARGET_SUBDIR)/libffi; \
3222 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3227 .PHONY: check-target-libffi
3228 check-target-libffi:
3230 if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
3231 r=`${PWD}`; export r; \
3232 s=`cd $(srcdir); ${PWD}`; export s; \
3234 (cd $(TARGET_SUBDIR)/libffi; \
3235 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3242 .PHONY: configure-target-libjava
3243 configure-target-libjava:
3244 @if [ -d $(TARGET_SUBDIR)/libjava ]; then \
3245 r=`${PWD}`; export r; \
3246 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/tmpmulti.out 2> /dev/null; \
3247 if [ -s $(TARGET_SUBDIR)/libjava/tmpmulti.out ]; then \
3248 if [ -f $(TARGET_SUBDIR)/libjava/multilib.out ]; then \
3249 if cmp $(TARGET_SUBDIR)/libjava/multilib.out $(TARGET_SUBDIR)/libjava/tmpmulti.out > /dev/null; then \
3250 rm -f $(TARGET_SUBDIR)/libjava/tmpmulti.out; \
3252 echo "Multilibs changed for libjava, reconfiguring"; \
3253 rm -f $(TARGET_SUBDIR)/libjava/multilib.out $(TARGET_SUBDIR)/libjava/Makefile; \
3254 mv $(TARGET_SUBDIR)/libjava/tmpmulti.out $(TARGET_SUBDIR)/libjava/multilib.out; \
3257 mv $(TARGET_SUBDIR)/libjava/tmpmulti.out $(TARGET_SUBDIR)/libjava/multilib.out; \
3260 fi; exit 0 # break command into two pieces
3262 if [ ! -d $(TARGET_SUBDIR) ]; then \
3264 elif [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
3266 elif echo " $(TARGET_CONFIGDIRS) " | grep " libjava " >/dev/null 2>&1; then \
3267 if [ -d $(srcdir)/libjava ]; then \
3268 [ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
3269 r=`${PWD}`; export r; \
3270 s=`cd $(srcdir); ${PWD}`; export s; \
3272 AR="$(AR_FOR_TARGET)"; export AR; \
3273 AS="$(AS_FOR_TARGET)"; export AS; \
3274 CC="$(CC_FOR_TARGET)"; export CC; \
3275 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3276 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3277 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3278 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3279 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3280 LD="$(LD_FOR_TARGET)"; export LD; \
3281 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3282 NM="$(NM_FOR_TARGET)"; export NM; \
3283 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3284 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3285 echo Configuring in $(TARGET_SUBDIR)/libjava; \
3286 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3288 /* | [A-Za-z]:[\\/]*) \
3289 topdir=$(srcdir) ;; \
3291 case "$(TARGET_SUBDIR)" in \
3292 .) topdir="../$(srcdir)" ;; \
3293 *) topdir="../../$(srcdir)" ;; \
3296 if [ "$(srcdir)" = "." ] ; then \
3297 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3298 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
3299 if [ -f Makefile ]; then \
3300 if $(MAKE) distclean; then \
3314 srcdiroption="--srcdir=."; \
3317 srcdiroption="--srcdir=$${topdir}/libjava"; \
3318 libsrcdir="$$s/libjava"; \
3320 if [ -f $${libsrcdir}/configure ] ; then \
3321 rm -f no-such-file skip-this-dir; \
3322 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3323 $(TARGET_CONFIGARGS) $${srcdiroption} \
3324 --with-target-subdir="$(TARGET_SUBDIR)"; \
3326 rm -f no-such-file skip-this-dir; \
3327 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3328 $(TARGET_CONFIGARGS) $${srcdiroption} \
3329 --with-target-subdir="$(TARGET_SUBDIR)"; \
3331 if [ -f skip-this-dir ] ; then \
3333 rm -f skip-this-dir; \
3334 cd ..; rmdir libjava || true; \
3345 .PHONY: all-target-libjava
3348 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
3349 r=`${PWD}`; export r; \
3350 s=`cd $(srcdir); ${PWD}`; export s; \
3352 (cd $(TARGET_SUBDIR)/libjava; \
3353 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3358 .PHONY: check-target-libjava
3359 check-target-libjava:
3361 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
3362 r=`${PWD}`; export r; \
3363 s=`cd $(srcdir); ${PWD}`; export s; \
3365 (cd $(TARGET_SUBDIR)/libjava; \
3366 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3372 .PHONY: install-target-libjava
3373 install-target-libjava: installdirs
3375 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
3376 r=`${PWD}`; export r; \
3377 s=`cd $(srcdir); ${PWD}`; export s; \
3379 (cd $(TARGET_SUBDIR)/libjava; \
3380 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
3386 .PHONY: configure-target-zlib
3387 configure-target-zlib:
3388 @if [ -d $(TARGET_SUBDIR)/zlib ]; then \
3389 r=`${PWD}`; export r; \
3390 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/tmpmulti.out 2> /dev/null; \
3391 if [ -s $(TARGET_SUBDIR)/zlib/tmpmulti.out ]; then \
3392 if [ -f $(TARGET_SUBDIR)/zlib/multilib.out ]; then \
3393 if cmp $(TARGET_SUBDIR)/zlib/multilib.out $(TARGET_SUBDIR)/zlib/tmpmulti.out > /dev/null; then \
3394 rm -f $(TARGET_SUBDIR)/zlib/tmpmulti.out; \
3396 echo "Multilibs changed for zlib, reconfiguring"; \
3397 rm -f $(TARGET_SUBDIR)/zlib/multilib.out $(TARGET_SUBDIR)/zlib/Makefile; \
3398 mv $(TARGET_SUBDIR)/zlib/tmpmulti.out $(TARGET_SUBDIR)/zlib/multilib.out; \
3401 mv $(TARGET_SUBDIR)/zlib/tmpmulti.out $(TARGET_SUBDIR)/zlib/multilib.out; \
3404 fi; exit 0 # break command into two pieces
3406 if [ ! -d $(TARGET_SUBDIR) ]; then \
3408 elif [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
3410 elif echo " $(TARGET_CONFIGDIRS) " | grep " zlib " >/dev/null 2>&1; then \
3411 if [ -d $(srcdir)/zlib ]; then \
3412 [ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
3413 r=`${PWD}`; export r; \
3414 s=`cd $(srcdir); ${PWD}`; export s; \
3416 AR="$(AR_FOR_TARGET)"; export AR; \
3417 AS="$(AS_FOR_TARGET)"; export AS; \
3418 CC="$(CC_FOR_TARGET)"; export CC; \
3419 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3420 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3421 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3422 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3423 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3424 LD="$(LD_FOR_TARGET)"; export LD; \
3425 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3426 NM="$(NM_FOR_TARGET)"; export NM; \
3427 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3428 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3429 echo Configuring in $(TARGET_SUBDIR)/zlib; \
3430 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3432 /* | [A-Za-z]:[\\/]*) \
3433 topdir=$(srcdir) ;; \
3435 case "$(TARGET_SUBDIR)" in \
3436 .) topdir="../$(srcdir)" ;; \
3437 *) topdir="../../$(srcdir)" ;; \
3440 if [ "$(srcdir)" = "." ] ; then \
3441 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3442 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
3443 if [ -f Makefile ]; then \
3444 if $(MAKE) distclean; then \
3458 srcdiroption="--srcdir=."; \
3461 srcdiroption="--srcdir=$${topdir}/zlib"; \
3462 libsrcdir="$$s/zlib"; \
3464 if [ -f $${libsrcdir}/configure ] ; then \
3465 rm -f no-such-file skip-this-dir; \
3466 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3467 $(TARGET_CONFIGARGS) $${srcdiroption} \
3468 --with-target-subdir="$(TARGET_SUBDIR)"; \
3470 rm -f no-such-file skip-this-dir; \
3471 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3472 $(TARGET_CONFIGARGS) $${srcdiroption} \
3473 --with-target-subdir="$(TARGET_SUBDIR)"; \
3475 if [ -f skip-this-dir ] ; then \
3477 rm -f skip-this-dir; \
3478 cd ..; rmdir zlib || true; \
3489 .PHONY: all-target-zlib
3492 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
3493 r=`${PWD}`; export r; \
3494 s=`cd $(srcdir); ${PWD}`; export s; \
3496 (cd $(TARGET_SUBDIR)/zlib; \
3497 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3502 .PHONY: check-target-zlib
3505 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
3506 r=`${PWD}`; export r; \
3507 s=`cd $(srcdir); ${PWD}`; export s; \
3509 (cd $(TARGET_SUBDIR)/zlib; \
3510 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3516 .PHONY: install-target-zlib
3517 install-target-zlib: installdirs
3519 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
3520 r=`${PWD}`; export r; \
3521 s=`cd $(srcdir); ${PWD}`; export s; \
3523 (cd $(TARGET_SUBDIR)/zlib; \
3524 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
3530 .PHONY: configure-target-boehm-gc
3531 configure-target-boehm-gc:
3532 @if [ -d $(TARGET_SUBDIR)/boehm-gc ]; then \
3533 r=`${PWD}`; export r; \
3534 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out 2> /dev/null; \
3535 if [ -s $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out ]; then \
3536 if [ -f $(TARGET_SUBDIR)/boehm-gc/multilib.out ]; then \
3537 if cmp $(TARGET_SUBDIR)/boehm-gc/multilib.out $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out > /dev/null; then \
3538 rm -f $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out; \
3540 echo "Multilibs changed for boehm-gc, reconfiguring"; \
3541 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.out $(TARGET_SUBDIR)/boehm-gc/Makefile; \
3542 mv $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
3545 mv $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
3548 fi; exit 0 # break command into two pieces
3550 if [ ! -d $(TARGET_SUBDIR) ]; then \
3552 elif [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
3554 elif echo " $(TARGET_CONFIGDIRS) " | grep " boehm-gc " >/dev/null 2>&1; then \
3555 if [ -d $(srcdir)/boehm-gc ]; then \
3556 [ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
3557 r=`${PWD}`; export r; \
3558 s=`cd $(srcdir); ${PWD}`; export s; \
3560 AR="$(AR_FOR_TARGET)"; export AR; \
3561 AS="$(AS_FOR_TARGET)"; export AS; \
3562 CC="$(CC_FOR_TARGET)"; export CC; \
3563 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3564 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3565 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3566 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3567 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3568 LD="$(LD_FOR_TARGET)"; export LD; \
3569 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3570 NM="$(NM_FOR_TARGET)"; export NM; \
3571 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3572 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3573 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
3574 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3576 /* | [A-Za-z]:[\\/]*) \
3577 topdir=$(srcdir) ;; \
3579 case "$(TARGET_SUBDIR)" in \
3580 .) topdir="../$(srcdir)" ;; \
3581 *) topdir="../../$(srcdir)" ;; \
3584 if [ "$(srcdir)" = "." ] ; then \
3585 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3586 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
3587 if [ -f Makefile ]; then \
3588 if $(MAKE) distclean; then \
3602 srcdiroption="--srcdir=."; \
3605 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
3606 libsrcdir="$$s/boehm-gc"; \
3608 if [ -f $${libsrcdir}/configure ] ; then \
3609 rm -f no-such-file skip-this-dir; \
3610 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3611 $(TARGET_CONFIGARGS) $${srcdiroption} \
3612 --with-target-subdir="$(TARGET_SUBDIR)"; \
3614 rm -f no-such-file skip-this-dir; \
3615 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3616 $(TARGET_CONFIGARGS) $${srcdiroption} \
3617 --with-target-subdir="$(TARGET_SUBDIR)"; \
3619 if [ -f skip-this-dir ] ; then \
3621 rm -f skip-this-dir; \
3622 cd ..; rmdir boehm-gc || true; \
3633 .PHONY: all-target-boehm-gc
3634 all-target-boehm-gc:
3636 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
3637 r=`${PWD}`; export r; \
3638 s=`cd $(srcdir); ${PWD}`; export s; \
3640 (cd $(TARGET_SUBDIR)/boehm-gc; \
3641 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3646 .PHONY: check-target-boehm-gc
3647 check-target-boehm-gc:
3649 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
3650 r=`${PWD}`; export r; \
3651 s=`cd $(srcdir); ${PWD}`; export s; \
3653 (cd $(TARGET_SUBDIR)/boehm-gc; \
3654 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3660 .PHONY: install-target-boehm-gc
3661 install-target-boehm-gc: installdirs
3663 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
3664 r=`${PWD}`; export r; \
3665 s=`cd $(srcdir); ${PWD}`; export s; \
3667 (cd $(TARGET_SUBDIR)/boehm-gc; \
3668 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
3674 .PHONY: configure-target-qthreads
3675 configure-target-qthreads:
3676 @if [ -d $(TARGET_SUBDIR)/qthreads ]; then \
3677 r=`${PWD}`; export r; \
3678 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/tmpmulti.out 2> /dev/null; \
3679 if [ -s $(TARGET_SUBDIR)/qthreads/tmpmulti.out ]; then \
3680 if [ -f $(TARGET_SUBDIR)/qthreads/multilib.out ]; then \
3681 if cmp $(TARGET_SUBDIR)/qthreads/multilib.out $(TARGET_SUBDIR)/qthreads/tmpmulti.out > /dev/null; then \
3682 rm -f $(TARGET_SUBDIR)/qthreads/tmpmulti.out; \
3684 echo "Multilibs changed for qthreads, reconfiguring"; \
3685 rm -f $(TARGET_SUBDIR)/qthreads/multilib.out $(TARGET_SUBDIR)/qthreads/Makefile; \
3686 mv $(TARGET_SUBDIR)/qthreads/tmpmulti.out $(TARGET_SUBDIR)/qthreads/multilib.out; \
3689 mv $(TARGET_SUBDIR)/qthreads/tmpmulti.out $(TARGET_SUBDIR)/qthreads/multilib.out; \
3692 fi; exit 0 # break command into two pieces
3694 if [ ! -d $(TARGET_SUBDIR) ]; then \
3696 elif [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
3698 elif echo " $(TARGET_CONFIGDIRS) " | grep " qthreads " >/dev/null 2>&1; then \
3699 if [ -d $(srcdir)/qthreads ]; then \
3700 [ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
3701 r=`${PWD}`; export r; \
3702 s=`cd $(srcdir); ${PWD}`; export s; \
3704 AR="$(AR_FOR_TARGET)"; export AR; \
3705 AS="$(AS_FOR_TARGET)"; export AS; \
3706 CC="$(CC_FOR_TARGET)"; export CC; \
3707 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3708 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3709 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3710 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3711 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3712 LD="$(LD_FOR_TARGET)"; export LD; \
3713 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3714 NM="$(NM_FOR_TARGET)"; export NM; \
3715 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3716 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3717 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
3718 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
3720 /* | [A-Za-z]:[\\/]*) \
3721 topdir=$(srcdir) ;; \
3723 case "$(TARGET_SUBDIR)" in \
3724 .) topdir="../$(srcdir)" ;; \
3725 *) topdir="../../$(srcdir)" ;; \
3728 if [ "$(srcdir)" = "." ] ; then \
3729 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3730 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
3731 if [ -f Makefile ]; then \
3732 if $(MAKE) distclean; then \
3746 srcdiroption="--srcdir=."; \
3749 srcdiroption="--srcdir=$${topdir}/qthreads"; \
3750 libsrcdir="$$s/qthreads"; \
3752 if [ -f $${libsrcdir}/configure ] ; then \
3753 rm -f no-such-file skip-this-dir; \
3754 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3755 $(TARGET_CONFIGARGS) $${srcdiroption} \
3756 --with-target-subdir="$(TARGET_SUBDIR)"; \
3758 rm -f no-such-file skip-this-dir; \
3759 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3760 $(TARGET_CONFIGARGS) $${srcdiroption} \
3761 --with-target-subdir="$(TARGET_SUBDIR)"; \
3763 if [ -f skip-this-dir ] ; then \
3765 rm -f skip-this-dir; \
3766 cd ..; rmdir qthreads || true; \
3777 .PHONY: all-target-qthreads
3778 all-target-qthreads:
3780 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
3781 r=`${PWD}`; export r; \
3782 s=`cd $(srcdir); ${PWD}`; export s; \
3784 (cd $(TARGET_SUBDIR)/qthreads; \
3785 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3790 .PHONY: check-target-qthreads
3791 check-target-qthreads:
3793 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
3794 r=`${PWD}`; export r; \
3795 s=`cd $(srcdir); ${PWD}`; export s; \
3797 (cd $(TARGET_SUBDIR)/qthreads; \
3798 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3804 .PHONY: install-target-qthreads
3805 install-target-qthreads: installdirs
3807 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
3808 r=`${PWD}`; export r; \
3809 s=`cd $(srcdir); ${PWD}`; export s; \
3811 (cd $(TARGET_SUBDIR)/qthreads; \
3812 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
3818 .PHONY: configure-target-rda
3819 configure-target-rda:
3820 @if [ -d $(TARGET_SUBDIR)/rda ]; then \
3821 r=`${PWD}`; export r; \
3822 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/tmpmulti.out 2> /dev/null; \
3823 if [ -s $(TARGET_SUBDIR)/rda/tmpmulti.out ]; then \
3824 if [ -f $(TARGET_SUBDIR)/rda/multilib.out ]; then \
3825 if cmp $(TARGET_SUBDIR)/rda/multilib.out $(TARGET_SUBDIR)/rda/tmpmulti.out > /dev/null; then \
3826 rm -f $(TARGET_SUBDIR)/rda/tmpmulti.out; \
3828 echo "Multilibs changed for rda, reconfiguring"; \
3829 rm -f $(TARGET_SUBDIR)/rda/multilib.out $(TARGET_SUBDIR)/rda/Makefile; \
3830 mv $(TARGET_SUBDIR)/rda/tmpmulti.out $(TARGET_SUBDIR)/rda/multilib.out; \
3833 mv $(TARGET_SUBDIR)/rda/tmpmulti.out $(TARGET_SUBDIR)/rda/multilib.out; \
3836 fi; exit 0 # break command into two pieces
3838 if [ ! -d $(TARGET_SUBDIR) ]; then \
3840 elif [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
3842 elif echo " $(TARGET_CONFIGDIRS) " | grep " rda " >/dev/null 2>&1; then \
3843 if [ -d $(srcdir)/rda ]; then \
3844 [ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
3845 r=`${PWD}`; export r; \
3846 s=`cd $(srcdir); ${PWD}`; export s; \
3848 AR="$(AR_FOR_TARGET)"; export AR; \
3849 AS="$(AS_FOR_TARGET)"; export AS; \
3850 CC="$(CC_FOR_TARGET)"; export CC; \
3851 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
3852 CXX="$(CXX_FOR_TARGET)"; export CXX; \
3853 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
3854 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
3855 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
3856 LD="$(LD_FOR_TARGET)"; export LD; \
3857 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
3858 NM="$(NM_FOR_TARGET)"; export NM; \
3859 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
3860 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
3861 echo Configuring in $(TARGET_SUBDIR)/rda; \
3862 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3864 /* | [A-Za-z]:[\\/]*) \
3865 topdir=$(srcdir) ;; \
3867 case "$(TARGET_SUBDIR)" in \
3868 .) topdir="../$(srcdir)" ;; \
3869 *) topdir="../../$(srcdir)" ;; \
3872 if [ "$(srcdir)" = "." ] ; then \
3873 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
3874 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
3875 if [ -f Makefile ]; then \
3876 if $(MAKE) distclean; then \
3890 srcdiroption="--srcdir=."; \
3893 srcdiroption="--srcdir=$${topdir}/rda"; \
3894 libsrcdir="$$s/rda"; \
3896 if [ -f $${libsrcdir}/configure ] ; then \
3897 rm -f no-such-file skip-this-dir; \
3898 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
3899 $(TARGET_CONFIGARGS) $${srcdiroption} \
3900 --with-target-subdir="$(TARGET_SUBDIR)"; \
3902 rm -f no-such-file skip-this-dir; \
3903 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
3904 $(TARGET_CONFIGARGS) $${srcdiroption} \
3905 --with-target-subdir="$(TARGET_SUBDIR)"; \
3907 if [ -f skip-this-dir ] ; then \
3909 rm -f skip-this-dir; \
3910 cd ..; rmdir rda || true; \
3921 .PHONY: all-target-rda
3924 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
3925 r=`${PWD}`; export r; \
3926 s=`cd $(srcdir); ${PWD}`; export s; \
3928 (cd $(TARGET_SUBDIR)/rda; \
3929 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
3934 .PHONY: check-target-rda
3937 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
3938 r=`${PWD}`; export r; \
3939 s=`cd $(srcdir); ${PWD}`; export s; \
3941 (cd $(TARGET_SUBDIR)/rda; \
3942 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
3948 .PHONY: install-target-rda
3949 install-target-rda: installdirs
3951 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
3952 r=`${PWD}`; export r; \
3953 s=`cd $(srcdir); ${PWD}`; export s; \
3955 (cd $(TARGET_SUBDIR)/rda; \
3956 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
3963 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
3964 # To build a target all-X means to cd to X and make all.
3965 .PHONY: $(ALL_X11_MODULES)
3967 @dir=`echo $@ | sed -e 's/all-//'`; \
3968 if [ -f ./$${dir}/Makefile ] ; then \
3969 r=`${PWD}`; export r; \
3970 s=`cd $(srcdir); ${PWD}`; export s; \
3973 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3978 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
3979 # To build a target check-X means to cd to X and make all.
3980 .PHONY: $(CHECK_X11_MODULES)
3981 $(CHECK_X11_MODULES):
3982 @dir=`echo $@ | sed -e 's/check-//'`; \
3983 if [ -f ./$${dir}/Makefile ] ; then \
3984 r=`${PWD}`; export r; \
3985 s=`cd $(srcdir); ${PWD}`; export s; \
3988 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3993 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
3994 # To build a target install-X means to cd to X and make install.
3995 .PHONY: $(INSTALL_X11_MODULES)
3996 $(INSTALL_X11_MODULES): installdirs
3997 @dir=`echo $@ | sed -e 's/install-//'`; \
3998 if [ -f ./$${dir}/Makefile ] ; then \
3999 r=`${PWD}`; export r; \
4000 s=`cd $(srcdir); ${PWD}`; export s; \
4003 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
4008 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
4011 @if [ -f ./gcc/Makefile ] ; then \
4012 r=`${PWD}`; export r; \
4013 s=`cd $(srcdir); ${PWD}`; export s; \
4015 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
4020 # Building GCC uses some tools for rebuilding "source" files
4021 # like texinfo, bison/byacc, etc. So we must depend on those.
4023 # While building GCC, it may be necessary to run various target
4024 # programs like the assembler, linker, etc. So we depend on
4027 # In theory, on an SMP all those dependencies can be resolved
4030 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
4031 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
4032 @r=`${PWD}`; export r; \
4033 s=`cd $(srcdir); ${PWD}`; export s; \
4035 echo "Bootstrapping the compiler"; \
4036 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
4037 @r=`${PWD}`; export r; \
4038 s=`cd $(srcdir); ${PWD}`; export s; \
4040 *bootstrap4-lean ) \
4041 msg="Comparing stage3 and stage4 of the compiler"; \
4042 compare=compare3-lean ;; \
4043 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
4044 compare=compare3 ;; \
4045 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
4046 compare=compare-lean ;; \
4047 * ) msg="Comparing stage2 and stage3 of the compiler"; \
4048 compare=compare ;; \
4052 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
4053 @r=`${PWD}`; export r; \
4054 s=`cd $(srcdir); ${PWD}` ; export s; \
4056 echo "Building runtime libraries"; \
4057 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
4060 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
4061 @r=`${PWD}`; export r; \
4062 s=`cd $(srcdir); ${PWD}`; export s; \
4064 echo "Building the C and C++ compiler"; \
4065 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
4066 @r=`${PWD}`; export r; \
4067 s=`cd $(srcdir); ${PWD}` ; export s; \
4069 echo "Building runtime libraries"; \
4070 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
4071 LANGUAGES="c c++" all
4075 @if [ -f ./gcc/Makefile ] ; then \
4076 r=`${PWD}`; export r; \
4077 s=`cd $(srcdir); ${PWD}`; export s; \
4079 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
4086 @if [ -f ./gcc/Makefile ] ; then \
4087 r=`${PWD}`; export r; \
4088 s=`cd $(srcdir); ${PWD}`; export s; \
4090 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
4091 $(MAKE) check-target-libstdc++-v3; \
4098 @if [ -f ./gcc/Makefile ] ; then \
4099 r=`${PWD}`; export r; \
4100 s=`cd $(srcdir); ${PWD}`; export s; \
4102 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
4107 .PHONY: install-gcc-cross
4109 @if [ -f ./gcc/Makefile ] ; then \
4110 r=`${PWD}`; export r; \
4111 s=`cd $(srcdir); ${PWD}`; export s; \
4113 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
4117 # EXPERIMENTAL STUFF
4118 # This rule is used to install the modules which use FLAGS_TO_PASS.
4119 # To build a target install-X means to cd to X and make install.
4120 .PHONY: install-dosrel
4121 install-dosrel: installdirs info
4122 @dir=`echo $@ | sed -e 's/install-//'`; \
4123 if [ -f ./$${dir}/Makefile ] ; then \
4124 r=`${PWD}`; export r; \
4125 s=`cd $(srcdir); ${PWD}`; export s; \
4127 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
4132 install-dosrel-fake:
4135 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
4136 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
4138 # This is a list of inter-dependencies among modules.
4140 all-autoconf: all-m4 all-texinfo
4141 all-automake: all-m4 all-texinfo
4143 all-bfd: all-libiberty all-intl
4144 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
4145 all-bison: all-texinfo
4146 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
4150 all-dejagnu: all-tcl all-expect all-tk
4151 all-diff: all-libiberty
4153 configure-target-examples: $(ALL_GCC_C)
4154 all-expect: all-tcl all-tk
4155 all-fileutils: all-libiberty
4158 all-flex: all-libiberty all-bison all-byacc
4159 all-gas: all-libiberty all-opcodes all-bfd all-intl
4161 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
4162 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
4164 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
4167 configure-target-gperf: $(ALL_GCC_CXX)
4168 all-target-gperf: all-target-libiberty all-target-libstdc++-v3
4169 all-gprof: all-libiberty all-bfd all-opcodes all-intl
4170 all-grep: all-libiberty
4172 all-gzip: all-libiberty
4173 all-hello: all-libiberty
4176 all-itcl: all-tcl all-tk
4177 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
4178 configure-target-libgloss: $(ALL_GCC)
4179 all-target-libgloss: configure-target-newlib
4180 all-libgui: all-tcl all-tk all-itcl
4183 all-build-libiberty: configure-build-libiberty
4185 configure-target-libffi: $(ALL_GCC_C)
4186 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
4187 all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
4188 configure-target-libstdc++-v3: $(ALL_GCC_C)
4189 all-target-libstdc++-v3: all-target-libiberty
4191 configure-target-libf2c: $(ALL_GCC_C)
4192 all-target-libf2c: all-target-libiberty
4193 configure-target-libobjc: $(ALL_GCC_C)
4194 all-target-libobjc: all-target-libiberty
4195 all-m4: all-libiberty all-texinfo
4196 all-make: all-libiberty
4198 configure-target-newlib: $(ALL_GCC)
4199 configure-target-libtermcap: $(ALL_GCC_C)
4200 all-opcodes: all-bfd all-libiberty
4201 all-patch: all-libiberty
4203 all-prms: all-libiberty
4204 configure-target-qthreads: $(ALL_GCC_C)
4207 all-recode: all-libiberty
4208 all-sed: all-libiberty
4209 all-send-pr: all-prms
4211 all-sid: all-tcl all-tk
4212 all-sim: all-libiberty all-bfd all-opcodes all-readline
4213 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
4214 all-tar: all-libiberty
4216 all-tclX: all-tcl all-tk
4218 all-texinfo: all-libiberty
4221 all-tix: all-tcl all-tk
4223 configure-target-winsup: $(ALL_GCC_C)
4224 all-target-winsup: all-target-libiberty all-target-libtermcap
4225 all-uudecode: all-libiberty
4228 configure-target-zlib: $(ALL_GCC_C)
4229 all-fastjar: all-zlib all-libiberty
4230 configure-target-fastjar: configure-target-zlib
4231 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
4232 configure-target-libiberty: $(ALL_GCC_C)
4233 configure-target: $(CONFIGURE_TARGET_MODULES)
4234 all-target: $(ALL_TARGET_MODULES)
4235 install-target: $(INSTALL_TARGET_MODULES)
4236 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
4237 install-sid: install-tcl install-tk
4239 # We put install-opcodes before install-binutils because the installed
4240 # binutils might be on PATH, and they might need the shared opcodes
4242 install-binutils: install-opcodes
4244 # We put install-tcl before install-itcl because itcl wants to run a
4245 # program on installation which uses the Tcl libraries.
4246 install-itcl: install-tcl
4249 # Dependencies of all-target-foo on configure-target-foo.
4250 all-target-libstdc++-v3: configure-target-libstdc++-v3
4251 all-target-newlib: configure-target-newlib
4252 all-target-libf2c: configure-target-libf2c
4253 all-target-libobjc: configure-target-libobjc
4254 all-target-libtermcap: configure-target-libtermcap
4255 all-target-winsup: configure-target-winsup
4256 all-target-libgloss: configure-target-libgloss
4257 all-target-libiberty: configure-target-libiberty
4258 all-target-gperf: configure-target-gperf
4259 all-target-examples: configure-target-examples
4260 all-target-libffi: configure-target-libffi
4261 all-target-libjava: configure-target-libjava
4262 all-target-zlib: configure-target-zlib
4263 all-target-boehm-gc: configure-target-boehm-gc
4264 all-target-qthreads: configure-target-qthreads
4265 all-target-rda: configure-target-rda
4268 ### other supporting targets
4271 $(DESTDIR)$(prefix) \
4272 $(DESTDIR)$(exec_prefix)
4274 installdirs: mkinstalldirs
4275 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
4277 dir.info: do-install-info
4278 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
4279 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
4280 mv -f dir.info.new dir.info ; \
4285 @echo "Building a full distribution of this tree isn't done"
4286 @echo "via 'make dist'. Check out the etc/ subdirectory"
4290 # Right now this just builds TAGS in each subdirectory. emacs19 has the
4291 # ability to use several tags files at once, so there is probably no need
4292 # to combine them into one big TAGS file (like CVS 1.3 does). We could
4293 # (if we felt like it) have this Makefile write a piece of elisp which
4294 # the user could load to tell emacs19 where all the TAGS files we just
4298 # Rebuilding Makefile.in, using autogen.
4299 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
4300 cd $(srcdir) && autogen Makefile.def
4302 # with the gnu make, this is done automatically.
4304 host_makefile_frag=@host_makefile_frag@
4305 target_makefile_frag=@target_makefile_frag@
4307 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
4308 $(SHELL) ./config.status
4315 # end of Makefile.in