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
114 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
115 # here so that they can be overridden by Makefile fragments.
116 BUILD_CC = $(CC_FOR_BUILD)
117 BUILD_PREFIX = @BUILD_PREFIX@
118 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
120 # These flag values are normally overridden by the configure script.
125 LIBCFLAGS = $(CFLAGS)
126 CFLAGS_FOR_BUILD = $(CFLAGS)
127 # During gcc bootstrap, if we use some random cc for stage1 then
128 # CFLAGS will be just -g. We want to ensure that TARGET libraries
129 # (which we know are built with gcc) are built with optimizations so
130 # prepend -O2 when setting CFLAGS_FOR_TARGET.
131 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
133 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
139 # Use -O2 to stress test the compiler.
140 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
141 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
142 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
151 # These values are substituted by configure.
152 DEFAULT_YACC = @DEFAULT_YACC@
153 DEFAULT_LEX = @DEFAULT_LEX@
154 DEFAULT_M4 = @DEFAULT_M4@
157 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
158 echo $$r/bison/bison -L $$s/bison/ ; \
164 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
165 echo $$r/bison/bison -y -L $$s/bison/ ; \
166 elif [ -f $$r/byacc/byacc ] ; then \
167 echo $$r/byacc/byacc ; \
169 echo ${DEFAULT_YACC} ; \
173 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
174 then echo $$r/flex/flex ; \
175 else echo ${DEFAULT_LEX} ; fi`
177 M4 = `if [ -f $$r/m4/m4 ] ; \
178 then echo $$r/m4/m4 ; \
179 else echo ${DEFAULT_M4} ; fi`
181 # For an installed makeinfo, we require it to be from texinfo 4 or
182 # higher, else we use the "missing" dummy.
184 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
185 then echo $$r/texinfo/makeinfo/makeinfo ; \
186 else if (makeinfo --version \
187 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
188 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
190 # This just becomes part of the MAKEINFO definition passed down to
191 # sub-makes. It lets flags be given on the command line while still
192 # using the makeinfo from the object tree.
195 EXPECT = `if [ -f $$r/expect/expect ] ; \
196 then echo $$r/expect/expect ; \
197 else echo expect ; fi`
199 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
200 then echo $$s/dejagnu/runtest ; \
201 else echo runtest ; fi`
204 # compilers to use to create programs which must be run in the build
206 CC_FOR_BUILD = @CC_FOR_BUILD@
207 CXX_FOR_BUILD = $(CXX)
209 SUBDIRS = @configdirs@
211 # This is set by the configure script to the list of directories which
212 # should be built using the target tools.
213 TARGET_CONFIGDIRS = @target_configdirs@
215 # Target libraries are put under this directory:
216 # Changed by configure to $(target_alias) if cross.
217 TARGET_SUBDIR = @target_subdir@
219 BUILD_CONFIGDIRS = libiberty
220 BUILD_SUBDIR = @build_subdir@
222 # This is set by the configure script to the arguments to use when configuring
223 # directories built for the target.
224 TARGET_CONFIGARGS = @target_configargs@
226 # This is set by the configure script to the arguments to use when configuring
227 # directories built for the build system.
228 BUILD_CONFIGARGS = @build_configargs@
230 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
232 SET_LIB_PATH = @SET_LIB_PATH@
234 # This is the name of the environment variable used for the path to
235 # the libraries. This may be changed by configure.in.
236 RPATH_ENVVAR = @RPATH_ENVVAR@
238 # This is the list of directories that may be needed in RPATH_ENVVAR
239 # so that programs built for the host machine work.
240 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
242 # This is the list of directories that may be needed in RPATH_ENVVAR
243 # so that prorgams built for the target machine work.
244 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
246 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
247 # Some platforms don't like blank entries, so we remove duplicate,
248 # leading and trailing colons.
249 REALLY_SET_LIB_PATH = \
250 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
252 # Should be substed by configure.in
253 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
254 CC_FOR_TARGET = @CC_FOR_TARGET@
255 CXX_FOR_TARGET = @CXX_FOR_TARGET@
256 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
257 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
259 # If GCC_FOR_TARGET is not overriden on the command line, then this
260 # variable is passed down to the gcc Makefile, where it is used to
261 # build libgcc2.a. We define it here so that it can itself be
262 # overridden on the command line.
263 GCC_FOR_TARGET=@GCC_FOR_TARGET@
264 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
266 AS_FOR_TARGET=@AS_FOR_TARGET@
267 USUAL_AS_FOR_TARGET = ` \
268 if [ -f $$r/gas/as-new ] ; then \
269 echo $$r/gas/as-new ; \
270 elif [ -f $$r/gcc/xgcc ]; then \
271 $(CC_FOR_TARGET) -print-prog-name=as ; \
273 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
276 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
280 LD_FOR_TARGET=@LD_FOR_TARGET@
281 USUAL_LD_FOR_TARGET = ` \
282 if [ -f $$r/ld/ld-new ] ; then \
283 echo $$r/ld/ld-new ; \
284 elif [ -f $$r/gcc/xgcc ]; then \
285 $(CC_FOR_TARGET) -print-prog-name=ld ; \
287 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
290 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
294 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
295 USUAL_DLLTOOL_FOR_TARGET = ` \
296 if [ -f $$r/binutils/dlltool ] ; then \
297 echo $$r/binutils/dlltool ; \
299 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
302 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
306 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
307 USUAL_WINDRES_FOR_TARGET = ` \
308 if [ -f $$r/binutils/windres ] ; then \
309 echo $$r/binutils/windres ; \
311 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
314 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
318 AR_FOR_TARGET=@AR_FOR_TARGET@
319 USUAL_AR_FOR_TARGET = ` \
320 if [ -f $$r/binutils/ar ] ; then \
321 echo $$r/binutils/ar ; \
323 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
326 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
330 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
331 USUAL_RANLIB_FOR_TARGET = ` \
332 if [ -f $$r/binutils/ranlib ] ; then \
333 echo $$r/binutils/ranlib ; \
335 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
336 if [ x'$(RANLIB)' != x ]; then \
342 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
346 NM_FOR_TARGET=@NM_FOR_TARGET@
347 USUAL_NM_FOR_TARGET = ` \
348 if [ -f $$r/binutils/nm-new ] ; then \
349 echo $$r/binutils/nm-new ; \
350 elif [ -f $$r/gcc/xgcc ]; then \
351 $(CC_FOR_TARGET) -print-prog-name=nm ; \
353 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
356 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
360 # The first rule in the file had better be this one. Don't put any above it.
361 # This lives here to allow makefile fragments to contain dependencies.
365 #### host and target specific makefile fragments come in here.
368 # Flags to pass down to all sub-makes.
369 # Please keep these in alphabetical order.
370 BASE_FLAGS_TO_PASS = \
371 "AR_FLAGS=$(AR_FLAGS)" \
372 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
373 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
375 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
376 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
378 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
379 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
380 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
381 "CXXFLAGS=$(CXXFLAGS)" \
382 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
383 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
384 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
385 "INSTALL=$(INSTALL)" \
386 "INSTALL_DATA=$(INSTALL_DATA)" \
387 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
388 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
389 "LDFLAGS=$(LDFLAGS)" \
391 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
392 "LIBCFLAGS=$(LIBCFLAGS)" \
393 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
394 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
395 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
398 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
399 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
400 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
401 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
404 "RUNTEST=$(RUNTEST)" \
405 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
406 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
407 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
410 "datadir=$(datadir)" \
411 "exec_prefix=$(exec_prefix)" \
412 "includedir=$(includedir)" \
413 "infodir=$(infodir)" \
415 "libexecdir=$(libexecdir)" \
416 "lispdir=$(lispdir)" \
417 "libstdcxx_incdir=$(libstdcxx_incdir)" \
418 "libsubdir=$(libsubdir)" \
419 "localstatedir=$(localstatedir)" \
421 "oldincludedir=$(oldincludedir)" \
423 "sbindir=$(sbindir)" \
424 "sharedstatedir=$(sharedstatedir)" \
425 "sysconfdir=$(sysconfdir)" \
426 "tooldir=$(tooldir)" \
427 "build_tooldir=$(build_tooldir)" \
428 "gxx_include_dir=$(gxx_include_dir)" \
429 "gcc_version=$(gcc_version)" \
430 "gcc_version_trigger=$(gcc_version_trigger)" \
431 "target_alias=$(target_alias)"
433 # For any flags above that may contain shell code that varies from one
434 # target library to another. When doing recursive invocations of the
435 # top-level Makefile, we don't want the outer make to evaluate them,
436 # so we pass these variables down unchanged. They must not contain
437 # single nor double quotes.
439 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
441 # Flags to pass down to most sub-makes, in which we're building with
442 # the host environment.
443 # If any variables are added here, they must be added to do-*, below.
449 'DLLTOOL=$(DLLTOOL)' \
452 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
455 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
457 # Flags that are concerned with the location of the X11 include files
460 # NOTE: until the top-level is getting the values via autoconf, it only
461 # causes problems to have this top-level Makefile overriding the autoconf-set
462 # values in child directories. Only variables that don't conflict with
463 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
465 X11_FLAGS_TO_PASS = \
466 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
467 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
469 # Flags to pass down to makes which are built with the target environment.
470 # The double $ decreases the length of the command line; the variables
471 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
472 # If any variables are added here, they must be added to do-*, below.
473 EXTRA_TARGET_FLAGS = \
474 'AR=$$(AR_FOR_TARGET)' \
475 'AS=$$(AS_FOR_TARGET)' \
476 'CC=$$(CC_FOR_TARGET)' \
477 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
478 'CXX=$$(CXX_FOR_TARGET)' \
479 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
480 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
481 'LD=$$(LD_FOR_TARGET)' \
482 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
483 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
484 'NM=$$(NM_FOR_TARGET)' \
485 'RANLIB=$$(RANLIB_FOR_TARGET)' \
486 'WINDRES=$$(WINDRES_FOR_TARGET)'
488 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
490 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
491 # unfortunately needs the native compiler and the target ar and
493 # If any variables are added here, they must be added to do-*, below.
494 # The HOST_* variables are a special case, which are used for the gcc
495 # cross-building scheme.
501 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
502 'BUILD_CC=$(CC_FOR_BUILD)' \
503 'BUILD_PREFIX=$(BUILD_PREFIX)' \
504 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
506 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
507 'WINDRES=$$(WINDRES_FOR_TARGET)' \
508 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
509 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
510 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
511 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
512 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
513 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
514 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
515 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
516 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
517 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
518 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
520 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
522 # This is a list of the targets for all of the modules which are compiled
523 # using the build machine's native compiler. Configure edits the second
524 # macro for build!=host builds.
525 ALL_BUILD_MODULES_LIST = \
527 ALL_BUILD_MODULES = @all_build_modules@
529 # This is a list of the configure targets for all of the modules which
530 # are compiled using the native tools.
531 CONFIGURE_BUILD_MODULES = \
532 configure-build-libiberty
534 # This is a list of the configure targets for all of the modules which
535 # are compiled using the target tools.
536 CONFIGURE_TARGET_MODULES = \
537 configure-target-libstdc++-v3 \
538 configure-target-newlib \
539 configure-target-libf2c \
540 configure-target-libobjc \
541 configure-target-libtermcap \
542 configure-target-winsup \
543 configure-target-libgloss \
544 configure-target-libiberty \
545 configure-target-gperf \
546 configure-target-examples \
547 configure-target-libffi \
548 configure-target-libjava \
549 configure-target-zlib \
550 configure-target-boehm-gc \
551 configure-target-qthreads \
554 configure-target: $(CONFIGURE_TARGET_MODULES)
556 # This is a list of the targets for which we can do a clean-{target}.
620 # All of the target modules that can be cleaned
621 CLEAN_TARGET_MODULES = \
622 clean-target-libstdc++-v3 \
623 clean-target-newlib \
624 clean-target-libf2c \
625 clean-target-libobjc \
626 clean-target-winsup \
627 clean-target-libgloss \
628 clean-target-libiberty \
630 clean-target-examples \
631 clean-target-libffi \
632 clean-target-libjava \
634 clean-target-boehm-gc \
635 clean-target-qthreads \
638 # All of the x11 modules that can be cleaned
639 CLEAN_X11_MODULES = \
647 # The target built for a native build.
648 # This list only includes modules actually being configured and built.
650 all.normal: @all_build_modules@ \
654 all-target: @all_target_modules@
656 # Do a target for all the subdirectories. A ``make do-X'' will do a
657 # ``make X'' in all subdirectories (because, in general, there is a
658 # dependency (below) of X upon do-X, a ``make X'' will also do this,
659 # but it may do additional work as well).
660 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
661 # because it is so large that it can easily overflow the command line
662 # length limit on some systems.
666 @r=`${PWD}`; export r; \
667 s=`cd $(srcdir); ${PWD}`; export s; \
669 for i in $(SUBDIRS) -dummy-; do \
670 if [ -f ./$$i/Makefile ]; then \
673 for flag in $(EXTRA_GCC_FLAGS); do \
674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
678 for flag in $(EXTRA_HOST_FLAGS); do \
679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
686 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
689 then true; else exit 1; fi; \
692 # Break into two pieces
693 r=`${PWD}`; export r; \
694 s=`cd $(srcdir); ${PWD}`; export s; \
696 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
697 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
698 for flag in $(EXTRA_TARGET_FLAGS); do \
699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
701 if (cd $(TARGET_SUBDIR)/$$i; \
702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
704 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
707 then true; else exit 1; fi; \
713 @r=`${PWD}`; export r; \
714 s=`cd $(srcdir); ${PWD}`; export s; \
716 for i in $(SUBDIRS) -dummy-; do \
717 if [ -f ./$$i/Makefile ]; then \
720 for flag in $(EXTRA_GCC_FLAGS); do \
721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
725 for flag in $(EXTRA_HOST_FLAGS); do \
726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
733 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
736 then true; else exit 1; fi; \
739 # Break into two pieces
740 r=`${PWD}`; export r; \
741 s=`cd $(srcdir); ${PWD}`; export s; \
743 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
744 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
745 for flag in $(EXTRA_TARGET_FLAGS); do \
746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
748 if (cd $(TARGET_SUBDIR)/$$i; \
749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
751 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
754 then true; else exit 1; fi; \
760 @r=`${PWD}`; export r; \
761 s=`cd $(srcdir); ${PWD}`; export s; \
763 for i in $(SUBDIRS) -dummy-; do \
764 if [ -f ./$$i/Makefile ]; then \
767 for flag in $(EXTRA_GCC_FLAGS); do \
768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
772 for flag in $(EXTRA_HOST_FLAGS); do \
773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
780 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
783 then true; else exit 1; fi; \
786 # Break into two pieces
787 r=`${PWD}`; export r; \
788 s=`cd $(srcdir); ${PWD}`; export s; \
790 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
791 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
792 for flag in $(EXTRA_TARGET_FLAGS); do \
793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
795 if (cd $(TARGET_SUBDIR)/$$i; \
796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
798 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
801 then true; else exit 1; fi; \
807 @r=`${PWD}`; export r; \
808 s=`cd $(srcdir); ${PWD}`; export s; \
810 for i in $(SUBDIRS) -dummy-; do \
811 if [ -f ./$$i/Makefile ]; then \
814 for flag in $(EXTRA_GCC_FLAGS); do \
815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
819 for flag in $(EXTRA_HOST_FLAGS); do \
820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
827 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
830 then true; else exit 1; fi; \
833 # Break into two pieces
834 r=`${PWD}`; export r; \
835 s=`cd $(srcdir); ${PWD}`; export s; \
837 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
838 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
839 for flag in $(EXTRA_TARGET_FLAGS); do \
840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
842 if (cd $(TARGET_SUBDIR)/$$i; \
843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
845 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
848 then true; else exit 1; fi; \
852 .PHONY: do-install-info
854 @r=`${PWD}`; export r; \
855 s=`cd $(srcdir); ${PWD}`; export s; \
857 for i in $(SUBDIRS) -dummy-; do \
858 if [ -f ./$$i/Makefile ]; then \
861 for flag in $(EXTRA_GCC_FLAGS); do \
862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
866 for flag in $(EXTRA_HOST_FLAGS); do \
867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
874 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
877 then true; else exit 1; fi; \
880 # Break into two pieces
881 r=`${PWD}`; export r; \
882 s=`cd $(srcdir); ${PWD}`; export s; \
884 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
885 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
886 for flag in $(EXTRA_TARGET_FLAGS); do \
887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
889 if (cd $(TARGET_SUBDIR)/$$i; \
890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
892 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
895 then true; else exit 1; fi; \
899 .PHONY: do-installcheck
901 @r=`${PWD}`; export r; \
902 s=`cd $(srcdir); ${PWD}`; export s; \
904 for i in $(SUBDIRS) -dummy-; do \
905 if [ -f ./$$i/Makefile ]; then \
908 for flag in $(EXTRA_GCC_FLAGS); do \
909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
913 for flag in $(EXTRA_HOST_FLAGS); do \
914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
921 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
924 then true; else exit 1; fi; \
927 # Break into two pieces
928 r=`${PWD}`; export r; \
929 s=`cd $(srcdir); ${PWD}`; export s; \
931 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
932 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
933 for flag in $(EXTRA_TARGET_FLAGS); do \
934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
936 if (cd $(TARGET_SUBDIR)/$$i; \
937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
939 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
942 then true; else exit 1; fi; \
946 .PHONY: do-mostlyclean
948 @r=`${PWD}`; export r; \
949 s=`cd $(srcdir); ${PWD}`; export s; \
951 for i in $(SUBDIRS) -dummy-; do \
952 if [ -f ./$$i/Makefile ]; then \
955 for flag in $(EXTRA_GCC_FLAGS); do \
956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
960 for flag in $(EXTRA_HOST_FLAGS); do \
961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
968 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
971 then true; else exit 1; fi; \
974 # Break into two pieces
975 r=`${PWD}`; export r; \
976 s=`cd $(srcdir); ${PWD}`; export s; \
978 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
979 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
980 for flag in $(EXTRA_TARGET_FLAGS); do \
981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
983 if (cd $(TARGET_SUBDIR)/$$i; \
984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
986 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
989 then true; else exit 1; fi; \
993 .PHONY: do-maintainer-clean
995 @r=`${PWD}`; export r; \
996 s=`cd $(srcdir); ${PWD}`; export s; \
998 for i in $(SUBDIRS) -dummy-; do \
999 if [ -f ./$$i/Makefile ]; then \
1002 for flag in $(EXTRA_GCC_FLAGS); do \
1003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1007 for flag in $(EXTRA_HOST_FLAGS); do \
1008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1015 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1017 maintainer-clean); \
1018 then true; else exit 1; fi; \
1021 # Break into two pieces
1022 r=`${PWD}`; export r; \
1023 s=`cd $(srcdir); ${PWD}`; export s; \
1025 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1026 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1027 for flag in $(EXTRA_TARGET_FLAGS); do \
1028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1030 if (cd $(TARGET_SUBDIR)/$$i; \
1031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1033 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1035 maintainer-clean); \
1036 then true; else exit 1; fi; \
1042 @r=`${PWD}`; export r; \
1043 s=`cd $(srcdir); ${PWD}`; export s; \
1045 for i in $(SUBDIRS) -dummy-; do \
1046 if [ -f ./$$i/Makefile ]; then \
1049 for flag in $(EXTRA_GCC_FLAGS); do \
1050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1054 for flag in $(EXTRA_HOST_FLAGS); do \
1055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1062 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1065 then true; else exit 1; fi; \
1068 # Break into two pieces
1069 r=`${PWD}`; export r; \
1070 s=`cd $(srcdir); ${PWD}`; export s; \
1072 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1073 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1074 for flag in $(EXTRA_TARGET_FLAGS); do \
1075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1077 if (cd $(TARGET_SUBDIR)/$$i; \
1078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1080 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1083 then true; else exit 1; fi; \
1089 # Here are the targets which correspond to the do-X targets.
1091 .PHONY: info installcheck dvi install-info
1092 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1093 .PHONY: local-clean local-distclean local-maintainer-clean
1095 installcheck: do-installcheck
1098 # Make sure makeinfo is built before we do a `make info'.
1099 do-info: all-texinfo
1101 install-info: do-install-info dir.info
1102 s=`cd $(srcdir); ${PWD}`; export s; \
1103 if [ -f dir.info ] ; then \
1104 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1108 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1111 -rm -f Makefile config.status config.cache mh-frag mt-frag
1112 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1113 rm -rf $(TARGET_SUBDIR); \
1115 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1116 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1117 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1118 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1119 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1121 local-maintainer-clean:
1122 @echo "This command is intended for maintainers to use;"
1123 @echo "it deletes files that may require special tools to rebuild."
1125 clean: do-clean local-clean
1126 mostlyclean: do-mostlyclean local-clean
1127 distclean: do-distclean local-clean local-distclean
1128 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1129 maintainer-clean: local-distclean
1130 realclean: maintainer-clean
1132 # This rule is used to clean specific modules.
1133 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1134 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1135 @dir=`echo $@ | sed -e 's/clean-//'`; \
1136 if [ -f ./$${dir}/Makefile ] ; then \
1137 r=`${PWD}`; export r; \
1138 s=`cd $(srcdir); ${PWD}`; export s; \
1140 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1145 .PHONY: $(CLEAN_TARGET_MODULES)
1146 $(CLEAN_TARGET_MODULES):
1147 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1148 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1149 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1150 r=`${PWD}`; export r; \
1151 s=`cd $(srcdir); ${PWD}`; export s; \
1153 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1158 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1159 clean-target-libgcc:
1160 test ! -d gcc/libgcc || \
1161 (cd gcc/libgcc && find . -type d -print) | \
1162 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1167 .PHONY: check do-check
1169 $(MAKE) do-check NOTPARALLEL=parallel-ok
1171 # Only include modules actually being configured and built.
1172 do-check: @check_host_modules@ \
1173 @check_target_modules@
1175 # Automated reporting of test results.
1177 warning.log: build.log
1178 $(srcdir)/contrib/warn_summary build.log > $@
1181 if test x'$(BOOT_CFLAGS)' != x''; then \
1182 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1184 $(srcdir)/contrib/test_summary -t >$@
1186 echo If you really want to send e-mail, run ./$@ now
1188 mail-report-with-warnings.log: warning.log
1189 if test x'$(BOOT_CFLAGS)' != x''; then \
1190 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1192 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1194 echo If you really want to send e-mail, run ./$@ now
1196 # Installation targets.
1198 .PHONY: install uninstall source-vault binary-vault vault-install
1199 install: installdirs @install_host_modules@ @install_target_modules@
1201 install-target: @install_target_modules@
1204 @echo "the uninstall target is not supported in this tree"
1207 $(MAKE) -f ./release/Build-A-Release \
1208 host=$(host_alias) source-vault
1211 $(MAKE) -f ./release/Build-A-Release \
1212 host=$(host_alias) target=$(target_alias)
1215 @if [ -f ./release/vault-install ] ; then \
1216 ./release/vault-install $(host_alias) $(target_alias) ; \
1222 install.all: install-no-fixedincludes
1223 @if [ -f ./gcc/Makefile ] ; then \
1224 r=`${PWD}` ; export r ; \
1227 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1232 # install-no-fixedincludes is used because Cygnus can not distribute
1233 # the fixed header files.
1234 .PHONY: install-no-fixedincludes
1235 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1236 @install_target_modules@ gcc-no-fixedincludes
1238 # Install the gcc headers files, but not the fixed include files,
1239 # which Cygnus is not allowed to distribute. This rule is very
1240 # dependent on the workings of the gcc Makefile.in.
1241 .PHONY: gcc-no-fixedincludes
1242 gcc-no-fixedincludes:
1243 @if [ -f ./gcc/Makefile ]; then \
1244 rm -rf gcc/tmp-include; \
1245 mv gcc/include gcc/tmp-include 2>/dev/null; \
1246 mkdir gcc/include; \
1247 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1248 touch gcc/stmp-fixinc gcc/include/fixed; \
1249 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1250 r=`${PWD}`; export r; \
1251 s=`cd $(srcdir); ${PWD}` ; export s; \
1254 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1255 rm -rf gcc/include; \
1256 mv gcc/tmp-include gcc/include 2>/dev/null; \
1259 # These rules are used to build the modules which are built with the
1260 # build machine's native compiler.
1262 .PHONY: all-build-libiberty
1263 all-build-libiberty:
1264 @if [ -f ./libiberty/Makefile ] ; then \
1265 r=`${PWD}`; export r; \
1266 s=`cd $(srcdir); ${PWD}`; export s; \
1267 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all); \
1272 .PHONY: configure-build-libiberty
1273 configure-build-libiberty:
1274 @if [ ! -d $(BUILD_SUBDIR) ]; then \
1276 elif [ -f $(BUILD_SUBDIR)/libiberty/Makefile ] ; then \
1278 elif echo " $(BUILD_CONFIGDIRS) " | grep " libiberty " >/dev/null 2>&1; then \
1279 if [ -d $(srcdir)/libiberty ]; then \
1280 [ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
1281 r=`${PWD}`; export r; \
1282 s=`cd $(srcdir); ${PWD}`; export s; \
1283 AR="$(AR_FOR_BUILD)"; export AR; \
1284 AS="$(AS_FOR_BUILD)"; export AS; \
1285 CC="$(CC_FOR_BUILD)"; export CC; \
1286 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1287 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1288 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1289 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1290 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1291 LD="$(LD_FOR_BUILD)"; export LD; \
1292 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1293 NM="$(NM_FOR_BUILD)"; export NM; \
1294 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1295 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1296 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1297 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1299 /* | [A-Za-z]:[\\/]*) \
1300 topdir=$(srcdir) ;; \
1302 case "$(BUILD_SUBDIR)" in \
1303 .) topdir="../$(srcdir)" ;; \
1304 *) topdir="../../$(srcdir)" ;; \
1307 if [ "$(srcdir)" = "." ] ; then \
1308 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1309 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1310 if [ -f Makefile ]; then \
1311 if $(MAKE) distclean; then \
1325 srcdiroption="--srcdir=."; \
1328 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1329 libsrcdir="$$s/libiberty"; \
1331 if [ -f $${libsrcdir}/configure ] ; then \
1332 rm -f no-such-file skip-this-dir; \
1333 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1334 $(BUILD_CONFIGARGS) $${srcdiroption} \
1335 --with-build-subdir="$(BUILD_SUBDIR)"; \
1337 rm -f no-such-file skip-this-dir; \
1338 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1339 $(BUILD_CONFIGARGS) $${srcdiroption} \
1340 --with-build-subdir="$(BUILD_SUBDIR)"; \
1342 if [ -f skip-this-dir ] ; then \
1344 rm -f skip-this-dir; \
1345 cd ..; rmdir libiberty || true; \
1357 # These rules are used to build the modules which use FLAGS_TO_PASS. To
1358 # build a target all-X means to cd to X and make all.
1363 if [ -f ./ash/Makefile ] ; then \
1364 r=`${PWD}`; export r; \
1365 s=`cd $(srcdir); ${PWD}`; export s; \
1367 (cd ash; $(MAKE) $(FLAGS_TO_PASS) all); \
1376 if [ -f ./ash/Makefile ] ; then \
1377 r=`${PWD}`; export r; \
1378 s=`cd $(srcdir); ${PWD}`; export s; \
1380 (cd ash; $(MAKE) $(FLAGS_TO_PASS) check); \
1388 install-ash: installdirs
1390 if [ -f ./ash/Makefile ] ; then \
1391 r=`${PWD}`; export r; \
1392 s=`cd $(srcdir); ${PWD}`; export s; \
1394 (cd ash; $(MAKE) $(FLAGS_TO_PASS) install); \
1400 .PHONY: all-autoconf
1403 if [ -f ./autoconf/Makefile ] ; then \
1404 r=`${PWD}`; export r; \
1405 s=`cd $(srcdir); ${PWD}`; export s; \
1407 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) all); \
1413 .PHONY: check-autoconf
1416 if [ -f ./autoconf/Makefile ] ; then \
1417 r=`${PWD}`; export r; \
1418 s=`cd $(srcdir); ${PWD}`; export s; \
1420 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) check); \
1427 .PHONY: install-autoconf
1428 install-autoconf: installdirs
1430 if [ -f ./autoconf/Makefile ] ; then \
1431 r=`${PWD}`; export r; \
1432 s=`cd $(srcdir); ${PWD}`; export s; \
1434 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) install); \
1440 .PHONY: all-automake
1443 if [ -f ./automake/Makefile ] ; then \
1444 r=`${PWD}`; export r; \
1445 s=`cd $(srcdir); ${PWD}`; export s; \
1447 (cd automake; $(MAKE) $(FLAGS_TO_PASS) all); \
1453 .PHONY: check-automake
1456 if [ -f ./automake/Makefile ] ; then \
1457 r=`${PWD}`; export r; \
1458 s=`cd $(srcdir); ${PWD}`; export s; \
1460 (cd automake; $(MAKE) $(FLAGS_TO_PASS) check); \
1467 .PHONY: install-automake
1468 install-automake: installdirs
1470 if [ -f ./automake/Makefile ] ; then \
1471 r=`${PWD}`; export r; \
1472 s=`cd $(srcdir); ${PWD}`; export s; \
1474 (cd automake; $(MAKE) $(FLAGS_TO_PASS) install); \
1483 if [ -f ./bash/Makefile ] ; then \
1484 r=`${PWD}`; export r; \
1485 s=`cd $(srcdir); ${PWD}`; export s; \
1487 (cd bash; $(MAKE) $(FLAGS_TO_PASS) all); \
1496 if [ -f ./bash/Makefile ] ; then \
1497 r=`${PWD}`; export r; \
1498 s=`cd $(srcdir); ${PWD}`; export s; \
1500 (cd bash; $(MAKE) $(FLAGS_TO_PASS) check); \
1507 .PHONY: install-bash
1508 install-bash: installdirs
1510 if [ -f ./bash/Makefile ] ; then \
1511 r=`${PWD}`; export r; \
1512 s=`cd $(srcdir); ${PWD}`; export s; \
1514 (cd bash; $(MAKE) $(FLAGS_TO_PASS) install); \
1523 if [ -f ./bfd/Makefile ] ; then \
1524 r=`${PWD}`; export r; \
1525 s=`cd $(srcdir); ${PWD}`; export s; \
1527 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) all); \
1536 if [ -f ./bfd/Makefile ] ; then \
1537 r=`${PWD}`; export r; \
1538 s=`cd $(srcdir); ${PWD}`; export s; \
1540 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) check); \
1548 install-bfd: installdirs
1550 if [ -f ./bfd/Makefile ] ; then \
1551 r=`${PWD}`; export r; \
1552 s=`cd $(srcdir); ${PWD}`; export s; \
1554 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) install); \
1563 if [ -f ./opcodes/Makefile ] ; then \
1564 r=`${PWD}`; export r; \
1565 s=`cd $(srcdir); ${PWD}`; export s; \
1567 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) all); \
1573 .PHONY: check-opcodes
1576 if [ -f ./opcodes/Makefile ] ; then \
1577 r=`${PWD}`; export r; \
1578 s=`cd $(srcdir); ${PWD}`; export s; \
1580 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) check); \
1587 .PHONY: install-opcodes
1588 install-opcodes: installdirs
1590 if [ -f ./opcodes/Makefile ] ; then \
1591 r=`${PWD}`; export r; \
1592 s=`cd $(srcdir); ${PWD}`; export s; \
1594 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) install); \
1600 .PHONY: all-binutils
1603 if [ -f ./binutils/Makefile ] ; then \
1604 r=`${PWD}`; export r; \
1605 s=`cd $(srcdir); ${PWD}`; export s; \
1607 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) all); \
1613 .PHONY: check-binutils
1616 if [ -f ./binutils/Makefile ] ; then \
1617 r=`${PWD}`; export r; \
1618 s=`cd $(srcdir); ${PWD}`; export s; \
1620 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) check); \
1627 .PHONY: install-binutils
1628 install-binutils: installdirs
1630 if [ -f ./binutils/Makefile ] ; then \
1631 r=`${PWD}`; export r; \
1632 s=`cd $(srcdir); ${PWD}`; export s; \
1634 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) install); \
1643 if [ -f ./bison/Makefile ] ; then \
1644 r=`${PWD}`; export r; \
1645 s=`cd $(srcdir); ${PWD}`; export s; \
1647 (cd bison; $(MAKE) $(FLAGS_TO_PASS) all); \
1654 # This module is only tested in a native toolchain.
1656 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1658 if [ -f ./bison/Makefile ] ; then \
1659 r=`${PWD}`; export r; \
1660 s=`cd $(srcdir); ${PWD}`; export s; \
1662 (cd bison; $(MAKE) $(FLAGS_TO_PASS) check); \
1670 .PHONY: install-bison
1671 install-bison: installdirs
1673 if [ -f ./bison/Makefile ] ; then \
1674 r=`${PWD}`; export r; \
1675 s=`cd $(srcdir); ${PWD}`; export s; \
1677 (cd bison; $(MAKE) $(FLAGS_TO_PASS) install); \
1686 if [ -f ./byacc/Makefile ] ; then \
1687 r=`${PWD}`; export r; \
1688 s=`cd $(srcdir); ${PWD}`; export s; \
1690 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) all); \
1697 # This module is only tested in a native toolchain.
1699 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1701 if [ -f ./byacc/Makefile ] ; then \
1702 r=`${PWD}`; export r; \
1703 s=`cd $(srcdir); ${PWD}`; export s; \
1705 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) check); \
1713 .PHONY: install-byacc
1714 install-byacc: installdirs
1716 if [ -f ./byacc/Makefile ] ; then \
1717 r=`${PWD}`; export r; \
1718 s=`cd $(srcdir); ${PWD}`; export s; \
1720 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) install); \
1729 if [ -f ./bzip2/Makefile ] ; then \
1730 r=`${PWD}`; export r; \
1731 s=`cd $(srcdir); ${PWD}`; export s; \
1733 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) all); \
1742 if [ -f ./bzip2/Makefile ] ; then \
1743 r=`${PWD}`; export r; \
1744 s=`cd $(srcdir); ${PWD}`; export s; \
1746 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) check); \
1753 .PHONY: install-bzip2
1754 install-bzip2: installdirs
1756 if [ -f ./bzip2/Makefile ] ; then \
1757 r=`${PWD}`; export r; \
1758 s=`cd $(srcdir); ${PWD}`; export s; \
1760 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) install); \
1769 if [ -f ./db/Makefile ] ; then \
1770 r=`${PWD}`; export r; \
1771 s=`cd $(srcdir); ${PWD}`; export s; \
1773 (cd db; $(MAKE) $(FLAGS_TO_PASS) all); \
1782 if [ -f ./db/Makefile ] ; then \
1783 r=`${PWD}`; export r; \
1784 s=`cd $(srcdir); ${PWD}`; export s; \
1786 (cd db; $(MAKE) $(FLAGS_TO_PASS) check); \
1794 install-db: installdirs
1796 if [ -f ./db/Makefile ] ; then \
1797 r=`${PWD}`; export r; \
1798 s=`cd $(srcdir); ${PWD}`; export s; \
1800 (cd db; $(MAKE) $(FLAGS_TO_PASS) install); \
1809 if [ -f ./dejagnu/Makefile ] ; then \
1810 r=`${PWD}`; export r; \
1811 s=`cd $(srcdir); ${PWD}`; export s; \
1813 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) all); \
1819 .PHONY: check-dejagnu
1822 if [ -f ./dejagnu/Makefile ] ; then \
1823 r=`${PWD}`; export r; \
1824 s=`cd $(srcdir); ${PWD}`; export s; \
1826 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) check); \
1833 .PHONY: install-dejagnu
1834 install-dejagnu: installdirs
1836 if [ -f ./dejagnu/Makefile ] ; then \
1837 r=`${PWD}`; export r; \
1838 s=`cd $(srcdir); ${PWD}`; export s; \
1840 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) install); \
1849 if [ -f ./diff/Makefile ] ; then \
1850 r=`${PWD}`; export r; \
1851 s=`cd $(srcdir); ${PWD}`; export s; \
1853 (cd diff; $(MAKE) $(FLAGS_TO_PASS) all); \
1862 if [ -f ./diff/Makefile ] ; then \
1863 r=`${PWD}`; export r; \
1864 s=`cd $(srcdir); ${PWD}`; export s; \
1866 (cd diff; $(MAKE) $(FLAGS_TO_PASS) check); \
1873 .PHONY: install-diff
1874 install-diff: installdirs
1876 if [ -f ./diff/Makefile ] ; then \
1877 r=`${PWD}`; export r; \
1878 s=`cd $(srcdir); ${PWD}`; export s; \
1880 (cd diff; $(MAKE) $(FLAGS_TO_PASS) install); \
1886 .PHONY: all-dosutils
1889 if [ -f ./dosutils/Makefile ] ; then \
1890 r=`${PWD}`; export r; \
1891 s=`cd $(srcdir); ${PWD}`; export s; \
1893 (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) all); \
1899 .PHONY: check-dosutils
1904 .PHONY: install-dosutils
1905 install-dosutils: installdirs
1907 if [ -f ./dosutils/Makefile ] ; then \
1908 r=`${PWD}`; export r; \
1909 s=`cd $(srcdir); ${PWD}`; export s; \
1911 (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) install); \
1920 if [ -f ./etc/Makefile ] ; then \
1921 r=`${PWD}`; export r; \
1922 s=`cd $(srcdir); ${PWD}`; export s; \
1924 (cd etc; $(MAKE) $(FLAGS_TO_PASS) all); \
1933 if [ -f ./etc/Makefile ] ; then \
1934 r=`${PWD}`; export r; \
1935 s=`cd $(srcdir); ${PWD}`; export s; \
1937 (cd etc; $(MAKE) $(FLAGS_TO_PASS) check); \
1945 install-etc: installdirs
1947 if [ -f ./etc/Makefile ] ; then \
1948 r=`${PWD}`; export r; \
1949 s=`cd $(srcdir); ${PWD}`; export s; \
1951 (cd etc; $(MAKE) $(FLAGS_TO_PASS) install); \
1960 if [ -f ./fastjar/Makefile ] ; then \
1961 r=`${PWD}`; export r; \
1962 s=`cd $(srcdir); ${PWD}`; export s; \
1964 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) all); \
1970 .PHONY: check-fastjar
1971 # This module is only tested in a native toolchain.
1973 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1975 if [ -f ./fastjar/Makefile ] ; then \
1976 r=`${PWD}`; export r; \
1977 s=`cd $(srcdir); ${PWD}`; export s; \
1979 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) check); \
1987 .PHONY: install-fastjar
1988 install-fastjar: installdirs
1990 if [ -f ./fastjar/Makefile ] ; then \
1991 r=`${PWD}`; export r; \
1992 s=`cd $(srcdir); ${PWD}`; export s; \
1994 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) install); \
2000 .PHONY: all-fileutils
2003 if [ -f ./fileutils/Makefile ] ; then \
2004 r=`${PWD}`; export r; \
2005 s=`cd $(srcdir); ${PWD}`; export s; \
2007 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) all); \
2013 .PHONY: check-fileutils
2016 if [ -f ./fileutils/Makefile ] ; then \
2017 r=`${PWD}`; export r; \
2018 s=`cd $(srcdir); ${PWD}`; export s; \
2020 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) check); \
2027 .PHONY: install-fileutils
2028 install-fileutils: installdirs
2030 if [ -f ./fileutils/Makefile ] ; then \
2031 r=`${PWD}`; export r; \
2032 s=`cd $(srcdir); ${PWD}`; export s; \
2034 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) install); \
2040 .PHONY: all-findutils
2043 if [ -f ./findutils/Makefile ] ; then \
2044 r=`${PWD}`; export r; \
2045 s=`cd $(srcdir); ${PWD}`; export s; \
2047 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) all); \
2053 .PHONY: check-findutils
2056 if [ -f ./findutils/Makefile ] ; then \
2057 r=`${PWD}`; export r; \
2058 s=`cd $(srcdir); ${PWD}`; export s; \
2060 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) check); \
2067 .PHONY: install-findutils
2068 install-findutils: installdirs
2070 if [ -f ./findutils/Makefile ] ; then \
2071 r=`${PWD}`; export r; \
2072 s=`cd $(srcdir); ${PWD}`; export s; \
2074 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) install); \
2083 if [ -f ./find/Makefile ] ; then \
2084 r=`${PWD}`; export r; \
2085 s=`cd $(srcdir); ${PWD}`; export s; \
2087 (cd find; $(MAKE) $(FLAGS_TO_PASS) all); \
2096 if [ -f ./find/Makefile ] ; then \
2097 r=`${PWD}`; export r; \
2098 s=`cd $(srcdir); ${PWD}`; export s; \
2100 (cd find; $(MAKE) $(FLAGS_TO_PASS) check); \
2107 .PHONY: install-find
2108 install-find: installdirs
2110 if [ -f ./find/Makefile ] ; then \
2111 r=`${PWD}`; export r; \
2112 s=`cd $(srcdir); ${PWD}`; export s; \
2114 (cd find; $(MAKE) $(FLAGS_TO_PASS) install); \
2123 if [ -f ./flex/Makefile ] ; then \
2124 r=`${PWD}`; export r; \
2125 s=`cd $(srcdir); ${PWD}`; export s; \
2127 (cd flex; $(MAKE) $(FLAGS_TO_PASS) all); \
2134 # This module is only tested in a native toolchain.
2136 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2138 if [ -f ./flex/Makefile ] ; then \
2139 r=`${PWD}`; export r; \
2140 s=`cd $(srcdir); ${PWD}`; export s; \
2142 (cd flex; $(MAKE) $(FLAGS_TO_PASS) check); \
2150 .PHONY: install-flex
2151 install-flex: installdirs
2153 if [ -f ./flex/Makefile ] ; then \
2154 r=`${PWD}`; export r; \
2155 s=`cd $(srcdir); ${PWD}`; export s; \
2157 (cd flex; $(MAKE) $(FLAGS_TO_PASS) install); \
2166 if [ -f ./gas/Makefile ] ; then \
2167 r=`${PWD}`; export r; \
2168 s=`cd $(srcdir); ${PWD}`; export s; \
2170 (cd gas; $(MAKE) $(FLAGS_TO_PASS) all); \
2179 if [ -f ./gas/Makefile ] ; then \
2180 r=`${PWD}`; export r; \
2181 s=`cd $(srcdir); ${PWD}`; export s; \
2183 (cd gas; $(MAKE) $(FLAGS_TO_PASS) check); \
2191 install-gas: installdirs
2193 if [ -f ./gas/Makefile ] ; then \
2194 r=`${PWD}`; export r; \
2195 s=`cd $(srcdir); ${PWD}`; export s; \
2197 (cd gas; $(MAKE) $(FLAGS_TO_PASS) install); \
2206 if [ -f ./gawk/Makefile ] ; then \
2207 r=`${PWD}`; export r; \
2208 s=`cd $(srcdir); ${PWD}`; export s; \
2210 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) all); \
2219 if [ -f ./gawk/Makefile ] ; then \
2220 r=`${PWD}`; export r; \
2221 s=`cd $(srcdir); ${PWD}`; export s; \
2223 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) check); \
2230 .PHONY: install-gawk
2231 install-gawk: installdirs
2233 if [ -f ./gawk/Makefile ] ; then \
2234 r=`${PWD}`; export r; \
2235 s=`cd $(srcdir); ${PWD}`; export s; \
2237 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) install); \
2246 if [ -f ./gettext/Makefile ] ; then \
2247 r=`${PWD}`; export r; \
2248 s=`cd $(srcdir); ${PWD}`; export s; \
2250 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) all); \
2256 .PHONY: check-gettext
2259 if [ -f ./gettext/Makefile ] ; then \
2260 r=`${PWD}`; export r; \
2261 s=`cd $(srcdir); ${PWD}`; export s; \
2263 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) check); \
2270 .PHONY: install-gettext
2271 install-gettext: installdirs
2273 if [ -f ./gettext/Makefile ] ; then \
2274 r=`${PWD}`; export r; \
2275 s=`cd $(srcdir); ${PWD}`; export s; \
2277 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) install); \
2286 if [ -f ./gnuserv/Makefile ] ; then \
2287 r=`${PWD}`; export r; \
2288 s=`cd $(srcdir); ${PWD}`; export s; \
2290 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) all); \
2296 .PHONY: check-gnuserv
2299 if [ -f ./gnuserv/Makefile ] ; then \
2300 r=`${PWD}`; export r; \
2301 s=`cd $(srcdir); ${PWD}`; export s; \
2303 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) check); \
2310 .PHONY: install-gnuserv
2311 install-gnuserv: installdirs
2313 if [ -f ./gnuserv/Makefile ] ; then \
2314 r=`${PWD}`; export r; \
2315 s=`cd $(srcdir); ${PWD}`; export s; \
2317 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) install); \
2326 if [ -f ./gprof/Makefile ] ; then \
2327 r=`${PWD}`; export r; \
2328 s=`cd $(srcdir); ${PWD}`; export s; \
2330 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) all); \
2339 if [ -f ./gprof/Makefile ] ; then \
2340 r=`${PWD}`; export r; \
2341 s=`cd $(srcdir); ${PWD}`; export s; \
2343 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) check); \
2350 .PHONY: install-gprof
2351 install-gprof: installdirs
2353 if [ -f ./gprof/Makefile ] ; then \
2354 r=`${PWD}`; export r; \
2355 s=`cd $(srcdir); ${PWD}`; export s; \
2357 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) install); \
2366 if [ -f ./grep/Makefile ] ; then \
2367 r=`${PWD}`; export r; \
2368 s=`cd $(srcdir); ${PWD}`; export s; \
2370 (cd grep; $(MAKE) $(FLAGS_TO_PASS) all); \
2379 if [ -f ./grep/Makefile ] ; then \
2380 r=`${PWD}`; export r; \
2381 s=`cd $(srcdir); ${PWD}`; export s; \
2383 (cd grep; $(MAKE) $(FLAGS_TO_PASS) check); \
2390 .PHONY: install-grep
2391 install-grep: installdirs
2393 if [ -f ./grep/Makefile ] ; then \
2394 r=`${PWD}`; export r; \
2395 s=`cd $(srcdir); ${PWD}`; export s; \
2397 (cd grep; $(MAKE) $(FLAGS_TO_PASS) install); \
2406 if [ -f ./gzip/Makefile ] ; then \
2407 r=`${PWD}`; export r; \
2408 s=`cd $(srcdir); ${PWD}`; export s; \
2410 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) all); \
2419 if [ -f ./gzip/Makefile ] ; then \
2420 r=`${PWD}`; export r; \
2421 s=`cd $(srcdir); ${PWD}`; export s; \
2423 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) check); \
2430 .PHONY: install-gzip
2431 install-gzip: installdirs
2433 if [ -f ./gzip/Makefile ] ; then \
2434 r=`${PWD}`; export r; \
2435 s=`cd $(srcdir); ${PWD}`; export s; \
2437 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) install); \
2446 if [ -f ./hello/Makefile ] ; then \
2447 r=`${PWD}`; export r; \
2448 s=`cd $(srcdir); ${PWD}`; export s; \
2450 (cd hello; $(MAKE) $(FLAGS_TO_PASS) all); \
2459 if [ -f ./hello/Makefile ] ; then \
2460 r=`${PWD}`; export r; \
2461 s=`cd $(srcdir); ${PWD}`; export s; \
2463 (cd hello; $(MAKE) $(FLAGS_TO_PASS) check); \
2470 .PHONY: install-hello
2471 install-hello: installdirs
2473 if [ -f ./hello/Makefile ] ; then \
2474 r=`${PWD}`; export r; \
2475 s=`cd $(srcdir); ${PWD}`; export s; \
2477 (cd hello; $(MAKE) $(FLAGS_TO_PASS) install); \
2486 if [ -f ./indent/Makefile ] ; then \
2487 r=`${PWD}`; export r; \
2488 s=`cd $(srcdir); ${PWD}`; export s; \
2490 (cd indent; $(MAKE) $(FLAGS_TO_PASS) all); \
2496 .PHONY: check-indent
2499 if [ -f ./indent/Makefile ] ; then \
2500 r=`${PWD}`; export r; \
2501 s=`cd $(srcdir); ${PWD}`; export s; \
2503 (cd indent; $(MAKE) $(FLAGS_TO_PASS) check); \
2510 .PHONY: install-indent
2511 install-indent: installdirs
2513 if [ -f ./indent/Makefile ] ; then \
2514 r=`${PWD}`; export r; \
2515 s=`cd $(srcdir); ${PWD}`; export s; \
2517 (cd indent; $(MAKE) $(FLAGS_TO_PASS) install); \
2526 if [ -f ./intl/Makefile ] ; then \
2527 r=`${PWD}`; export r; \
2528 s=`cd $(srcdir); ${PWD}`; export s; \
2530 (cd intl; $(MAKE) $(FLAGS_TO_PASS) all); \
2539 if [ -f ./intl/Makefile ] ; then \
2540 r=`${PWD}`; export r; \
2541 s=`cd $(srcdir); ${PWD}`; export s; \
2543 (cd intl; $(MAKE) $(FLAGS_TO_PASS) check); \
2550 .PHONY: install-intl
2551 install-intl: installdirs
2553 if [ -f ./intl/Makefile ] ; then \
2554 r=`${PWD}`; export r; \
2555 s=`cd $(srcdir); ${PWD}`; export s; \
2557 (cd intl; $(MAKE) $(FLAGS_TO_PASS) install); \
2566 if [ -f ./tcl/Makefile ] ; then \
2567 r=`${PWD}`; export r; \
2568 s=`cd $(srcdir); ${PWD}`; export s; \
2570 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) all); \
2579 if [ -f ./tcl/Makefile ] ; then \
2580 r=`${PWD}`; export r; \
2581 s=`cd $(srcdir); ${PWD}`; export s; \
2583 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) check); \
2591 install-tcl: installdirs
2593 if [ -f ./tcl/Makefile ] ; then \
2594 r=`${PWD}`; export r; \
2595 s=`cd $(srcdir); ${PWD}`; export s; \
2597 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) install); \
2606 if [ -f ./itcl/Makefile ] ; then \
2607 r=`${PWD}`; export r; \
2608 s=`cd $(srcdir); ${PWD}`; export s; \
2610 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) all); \
2619 if [ -f ./itcl/Makefile ] ; then \
2620 r=`${PWD}`; export r; \
2621 s=`cd $(srcdir); ${PWD}`; export s; \
2623 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) check); \
2630 .PHONY: install-itcl
2631 install-itcl: installdirs
2633 if [ -f ./itcl/Makefile ] ; then \
2634 r=`${PWD}`; export r; \
2635 s=`cd $(srcdir); ${PWD}`; export s; \
2637 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) install); \
2646 if [ -f ./ld/Makefile ] ; then \
2647 r=`${PWD}`; export r; \
2648 s=`cd $(srcdir); ${PWD}`; export s; \
2650 (cd ld; $(MAKE) $(FLAGS_TO_PASS) all); \
2659 if [ -f ./ld/Makefile ] ; then \
2660 r=`${PWD}`; export r; \
2661 s=`cd $(srcdir); ${PWD}`; export s; \
2663 (cd ld; $(MAKE) $(FLAGS_TO_PASS) check); \
2671 install-ld: installdirs
2673 if [ -f ./ld/Makefile ] ; then \
2674 r=`${PWD}`; export r; \
2675 s=`cd $(srcdir); ${PWD}`; export s; \
2677 (cd ld; $(MAKE) $(FLAGS_TO_PASS) install); \
2686 if [ -f ./libgui/Makefile ] ; then \
2687 r=`${PWD}`; export r; \
2688 s=`cd $(srcdir); ${PWD}`; export s; \
2690 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) all); \
2696 .PHONY: check-libgui
2699 if [ -f ./libgui/Makefile ] ; then \
2700 r=`${PWD}`; export r; \
2701 s=`cd $(srcdir); ${PWD}`; export s; \
2703 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) check); \
2710 .PHONY: install-libgui
2711 install-libgui: installdirs
2713 if [ -f ./libgui/Makefile ] ; then \
2714 r=`${PWD}`; export r; \
2715 s=`cd $(srcdir); ${PWD}`; export s; \
2717 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) install); \
2723 .PHONY: all-libiberty
2726 if [ -f ./libiberty/Makefile ] ; then \
2727 r=`${PWD}`; export r; \
2728 s=`cd $(srcdir); ${PWD}`; export s; \
2730 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) all); \
2736 .PHONY: check-libiberty
2739 if [ -f ./libiberty/Makefile ] ; then \
2740 r=`${PWD}`; export r; \
2741 s=`cd $(srcdir); ${PWD}`; export s; \
2743 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) check); \
2750 .PHONY: install-libiberty
2751 install-libiberty: installdirs
2753 if [ -f ./libiberty/Makefile ] ; then \
2754 r=`${PWD}`; export r; \
2755 s=`cd $(srcdir); ${PWD}`; export s; \
2757 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) install); \
2766 if [ -f ./libtool/Makefile ] ; then \
2767 r=`${PWD}`; export r; \
2768 s=`cd $(srcdir); ${PWD}`; export s; \
2770 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) all); \
2776 .PHONY: check-libtool
2779 if [ -f ./libtool/Makefile ] ; then \
2780 r=`${PWD}`; export r; \
2781 s=`cd $(srcdir); ${PWD}`; export s; \
2783 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) check); \
2790 .PHONY: install-libtool
2791 install-libtool: installdirs
2793 if [ -f ./libtool/Makefile ] ; then \
2794 r=`${PWD}`; export r; \
2795 s=`cd $(srcdir); ${PWD}`; export s; \
2797 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) install); \
2806 if [ -f ./m4/Makefile ] ; then \
2807 r=`${PWD}`; export r; \
2808 s=`cd $(srcdir); ${PWD}`; export s; \
2810 (cd m4; $(MAKE) $(FLAGS_TO_PASS) all); \
2819 if [ -f ./m4/Makefile ] ; then \
2820 r=`${PWD}`; export r; \
2821 s=`cd $(srcdir); ${PWD}`; export s; \
2823 (cd m4; $(MAKE) $(FLAGS_TO_PASS) check); \
2831 install-m4: installdirs
2833 if [ -f ./m4/Makefile ] ; then \
2834 r=`${PWD}`; export r; \
2835 s=`cd $(srcdir); ${PWD}`; export s; \
2837 (cd m4; $(MAKE) $(FLAGS_TO_PASS) install); \
2846 if [ -f ./make/Makefile ] ; then \
2847 r=`${PWD}`; export r; \
2848 s=`cd $(srcdir); ${PWD}`; export s; \
2850 (cd make; $(MAKE) $(FLAGS_TO_PASS) all); \
2859 if [ -f ./make/Makefile ] ; then \
2860 r=`${PWD}`; export r; \
2861 s=`cd $(srcdir); ${PWD}`; export s; \
2863 (cd make; $(MAKE) $(FLAGS_TO_PASS) check); \
2870 .PHONY: install-make
2871 install-make: installdirs
2873 if [ -f ./make/Makefile ] ; then \
2874 r=`${PWD}`; export r; \
2875 s=`cd $(srcdir); ${PWD}`; export s; \
2877 (cd make; $(MAKE) $(FLAGS_TO_PASS) install); \
2886 if [ -f ./mmalloc/Makefile ] ; then \
2887 r=`${PWD}`; export r; \
2888 s=`cd $(srcdir); ${PWD}`; export s; \
2890 (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) all); \
2896 .PHONY: check-mmalloc
2901 .PHONY: install-mmalloc
2902 install-mmalloc: installdirs
2904 if [ -f ./mmalloc/Makefile ] ; then \
2905 r=`${PWD}`; export r; \
2906 s=`cd $(srcdir); ${PWD}`; export s; \
2908 (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) install); \
2917 if [ -f ./patch/Makefile ] ; then \
2918 r=`${PWD}`; export r; \
2919 s=`cd $(srcdir); ${PWD}`; export s; \
2921 (cd patch; $(MAKE) $(FLAGS_TO_PASS) all); \
2930 if [ -f ./patch/Makefile ] ; then \
2931 r=`${PWD}`; export r; \
2932 s=`cd $(srcdir); ${PWD}`; export s; \
2934 (cd patch; $(MAKE) $(FLAGS_TO_PASS) check); \
2941 .PHONY: install-patch
2942 install-patch: installdirs
2944 if [ -f ./patch/Makefile ] ; then \
2945 r=`${PWD}`; export r; \
2946 s=`cd $(srcdir); ${PWD}`; export s; \
2948 (cd patch; $(MAKE) $(FLAGS_TO_PASS) install); \
2957 if [ -f ./perl/Makefile ] ; then \
2958 r=`${PWD}`; export r; \
2959 s=`cd $(srcdir); ${PWD}`; export s; \
2961 (cd perl; $(MAKE) $(FLAGS_TO_PASS) all); \
2970 if [ -f ./perl/Makefile ] ; then \
2971 r=`${PWD}`; export r; \
2972 s=`cd $(srcdir); ${PWD}`; export s; \
2974 (cd perl; $(MAKE) $(FLAGS_TO_PASS) check); \
2981 .PHONY: install-perl
2982 install-perl: installdirs
2984 if [ -f ./perl/Makefile ] ; then \
2985 r=`${PWD}`; export r; \
2986 s=`cd $(srcdir); ${PWD}`; export s; \
2988 (cd perl; $(MAKE) $(FLAGS_TO_PASS) install); \
2997 if [ -f ./prms/Makefile ] ; then \
2998 r=`${PWD}`; export r; \
2999 s=`cd $(srcdir); ${PWD}`; export s; \
3001 (cd prms; $(MAKE) $(FLAGS_TO_PASS) all); \
3010 if [ -f ./prms/Makefile ] ; then \
3011 r=`${PWD}`; export r; \
3012 s=`cd $(srcdir); ${PWD}`; export s; \
3014 (cd prms; $(MAKE) $(FLAGS_TO_PASS) check); \
3021 .PHONY: install-prms
3022 install-prms: installdirs
3024 if [ -f ./prms/Makefile ] ; then \
3025 r=`${PWD}`; export r; \
3026 s=`cd $(srcdir); ${PWD}`; export s; \
3028 (cd prms; $(MAKE) $(FLAGS_TO_PASS) install); \
3037 if [ -f ./rcs/Makefile ] ; then \
3038 r=`${PWD}`; export r; \
3039 s=`cd $(srcdir); ${PWD}`; export s; \
3041 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) all); \
3050 if [ -f ./rcs/Makefile ] ; then \
3051 r=`${PWD}`; export r; \
3052 s=`cd $(srcdir); ${PWD}`; export s; \
3054 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) check); \
3062 install-rcs: installdirs
3064 if [ -f ./rcs/Makefile ] ; then \
3065 r=`${PWD}`; export r; \
3066 s=`cd $(srcdir); ${PWD}`; export s; \
3068 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) install); \
3074 .PHONY: all-readline
3077 if [ -f ./readline/Makefile ] ; then \
3078 r=`${PWD}`; export r; \
3079 s=`cd $(srcdir); ${PWD}`; export s; \
3081 (cd readline; $(MAKE) $(FLAGS_TO_PASS) all); \
3087 .PHONY: check-readline
3090 if [ -f ./readline/Makefile ] ; then \
3091 r=`${PWD}`; export r; \
3092 s=`cd $(srcdir); ${PWD}`; export s; \
3094 (cd readline; $(MAKE) $(FLAGS_TO_PASS) check); \
3101 .PHONY: install-readline
3102 install-readline: installdirs
3104 if [ -f ./readline/Makefile ] ; then \
3105 r=`${PWD}`; export r; \
3106 s=`cd $(srcdir); ${PWD}`; export s; \
3108 (cd readline; $(MAKE) $(FLAGS_TO_PASS) install); \
3117 if [ -f ./release/Makefile ] ; then \
3118 r=`${PWD}`; export r; \
3119 s=`cd $(srcdir); ${PWD}`; export s; \
3121 (cd release; $(MAKE) $(FLAGS_TO_PASS) all); \
3127 .PHONY: check-release
3132 .PHONY: install-release
3139 if [ -f ./recode/Makefile ] ; then \
3140 r=`${PWD}`; export r; \
3141 s=`cd $(srcdir); ${PWD}`; export s; \
3143 (cd recode; $(MAKE) $(FLAGS_TO_PASS) all); \
3149 .PHONY: check-recode
3152 if [ -f ./recode/Makefile ] ; then \
3153 r=`${PWD}`; export r; \
3154 s=`cd $(srcdir); ${PWD}`; export s; \
3156 (cd recode; $(MAKE) $(FLAGS_TO_PASS) check); \
3163 .PHONY: install-recode
3164 install-recode: installdirs
3166 if [ -f ./recode/Makefile ] ; then \
3167 r=`${PWD}`; export r; \
3168 s=`cd $(srcdir); ${PWD}`; export s; \
3170 (cd recode; $(MAKE) $(FLAGS_TO_PASS) install); \
3179 if [ -f ./sed/Makefile ] ; then \
3180 r=`${PWD}`; export r; \
3181 s=`cd $(srcdir); ${PWD}`; export s; \
3183 (cd sed; $(MAKE) $(FLAGS_TO_PASS) all); \
3192 if [ -f ./sed/Makefile ] ; then \
3193 r=`${PWD}`; export r; \
3194 s=`cd $(srcdir); ${PWD}`; export s; \
3196 (cd sed; $(MAKE) $(FLAGS_TO_PASS) check); \
3204 install-sed: installdirs
3206 if [ -f ./sed/Makefile ] ; then \
3207 r=`${PWD}`; export r; \
3208 s=`cd $(srcdir); ${PWD}`; export s; \
3210 (cd sed; $(MAKE) $(FLAGS_TO_PASS) install); \
3219 if [ -f ./send-pr/Makefile ] ; then \
3220 r=`${PWD}`; export r; \
3221 s=`cd $(srcdir); ${PWD}`; export s; \
3223 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) all); \
3229 .PHONY: check-send-pr
3232 if [ -f ./send-pr/Makefile ] ; then \
3233 r=`${PWD}`; export r; \
3234 s=`cd $(srcdir); ${PWD}`; export s; \
3236 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) check); \
3243 .PHONY: install-send-pr
3244 install-send-pr: installdirs
3246 if [ -f ./send-pr/Makefile ] ; then \
3247 r=`${PWD}`; export r; \
3248 s=`cd $(srcdir); ${PWD}`; export s; \
3250 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) install); \
3256 .PHONY: all-shellutils
3259 if [ -f ./shellutils/Makefile ] ; then \
3260 r=`${PWD}`; export r; \
3261 s=`cd $(srcdir); ${PWD}`; export s; \
3263 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) all); \
3269 .PHONY: check-shellutils
3272 if [ -f ./shellutils/Makefile ] ; then \
3273 r=`${PWD}`; export r; \
3274 s=`cd $(srcdir); ${PWD}`; export s; \
3276 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) check); \
3283 .PHONY: install-shellutils
3284 install-shellutils: installdirs
3286 if [ -f ./shellutils/Makefile ] ; then \
3287 r=`${PWD}`; export r; \
3288 s=`cd $(srcdir); ${PWD}`; export s; \
3290 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) install); \
3299 if [ -f ./sid/Makefile ] ; then \
3300 r=`${PWD}`; export r; \
3301 s=`cd $(srcdir); ${PWD}`; export s; \
3303 (cd sid; $(MAKE) $(FLAGS_TO_PASS) all); \
3312 if [ -f ./sid/Makefile ] ; then \
3313 r=`${PWD}`; export r; \
3314 s=`cd $(srcdir); ${PWD}`; export s; \
3316 (cd sid; $(MAKE) $(FLAGS_TO_PASS) check); \
3324 install-sid: installdirs
3326 if [ -f ./sid/Makefile ] ; then \
3327 r=`${PWD}`; export r; \
3328 s=`cd $(srcdir); ${PWD}`; export s; \
3330 (cd sid; $(MAKE) $(FLAGS_TO_PASS) install); \
3339 if [ -f ./sim/Makefile ] ; then \
3340 r=`${PWD}`; export r; \
3341 s=`cd $(srcdir); ${PWD}`; export s; \
3343 (cd sim; $(MAKE) $(FLAGS_TO_PASS) all); \
3352 if [ -f ./sim/Makefile ] ; then \
3353 r=`${PWD}`; export r; \
3354 s=`cd $(srcdir); ${PWD}`; export s; \
3356 (cd sim; $(MAKE) $(FLAGS_TO_PASS) check); \
3364 install-sim: installdirs
3366 if [ -f ./sim/Makefile ] ; then \
3367 r=`${PWD}`; export r; \
3368 s=`cd $(srcdir); ${PWD}`; export s; \
3370 (cd sim; $(MAKE) $(FLAGS_TO_PASS) install); \
3376 .PHONY: all-snavigator
3379 if [ -f ./snavigator/Makefile ] ; then \
3380 r=`${PWD}`; export r; \
3381 s=`cd $(srcdir); ${PWD}`; export s; \
3383 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) all); \
3389 .PHONY: check-snavigator
3392 if [ -f ./snavigator/Makefile ] ; then \
3393 r=`${PWD}`; export r; \
3394 s=`cd $(srcdir); ${PWD}`; export s; \
3396 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) check); \
3403 .PHONY: install-snavigator
3404 install-snavigator: installdirs
3406 if [ -f ./snavigator/Makefile ] ; then \
3407 r=`${PWD}`; export r; \
3408 s=`cd $(srcdir); ${PWD}`; export s; \
3410 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) install); \
3419 if [ -f ./tar/Makefile ] ; then \
3420 r=`${PWD}`; export r; \
3421 s=`cd $(srcdir); ${PWD}`; export s; \
3423 (cd tar; $(MAKE) $(FLAGS_TO_PASS) all); \
3432 if [ -f ./tar/Makefile ] ; then \
3433 r=`${PWD}`; export r; \
3434 s=`cd $(srcdir); ${PWD}`; export s; \
3436 (cd tar; $(MAKE) $(FLAGS_TO_PASS) check); \
3444 install-tar: installdirs
3446 if [ -f ./tar/Makefile ] ; then \
3447 r=`${PWD}`; export r; \
3448 s=`cd $(srcdir); ${PWD}`; export s; \
3450 (cd tar; $(MAKE) $(FLAGS_TO_PASS) install); \
3459 if [ -f ./texinfo/Makefile ] ; then \
3460 r=`${PWD}`; export r; \
3461 s=`cd $(srcdir); ${PWD}`; export s; \
3463 (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) all); \
3469 .PHONY: check-texinfo
3472 if [ -f ./texinfo/Makefile ] ; then \
3473 r=`${PWD}`; export r; \
3474 s=`cd $(srcdir); ${PWD}`; export s; \
3476 (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) check); \
3483 .PHONY: install-texinfo
3487 .PHONY: all-textutils
3490 if [ -f ./textutils/Makefile ] ; then \
3491 r=`${PWD}`; export r; \
3492 s=`cd $(srcdir); ${PWD}`; export s; \
3494 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) all); \
3500 .PHONY: check-textutils
3503 if [ -f ./textutils/Makefile ] ; then \
3504 r=`${PWD}`; export r; \
3505 s=`cd $(srcdir); ${PWD}`; export s; \
3507 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) check); \
3514 .PHONY: install-textutils
3515 install-textutils: installdirs
3517 if [ -f ./textutils/Makefile ] ; then \
3518 r=`${PWD}`; export r; \
3519 s=`cd $(srcdir); ${PWD}`; export s; \
3521 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) install); \
3530 if [ -f ./time/Makefile ] ; then \
3531 r=`${PWD}`; export r; \
3532 s=`cd $(srcdir); ${PWD}`; export s; \
3534 (cd time; $(MAKE) $(FLAGS_TO_PASS) all); \
3543 if [ -f ./time/Makefile ] ; then \
3544 r=`${PWD}`; export r; \
3545 s=`cd $(srcdir); ${PWD}`; export s; \
3547 (cd time; $(MAKE) $(FLAGS_TO_PASS) check); \
3554 .PHONY: install-time
3555 install-time: installdirs
3557 if [ -f ./time/Makefile ] ; then \
3558 r=`${PWD}`; export r; \
3559 s=`cd $(srcdir); ${PWD}`; export s; \
3561 (cd time; $(MAKE) $(FLAGS_TO_PASS) install); \
3567 .PHONY: all-uudecode
3570 if [ -f ./uudecode/Makefile ] ; then \
3571 r=`${PWD}`; export r; \
3572 s=`cd $(srcdir); ${PWD}`; export s; \
3574 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) all); \
3580 .PHONY: check-uudecode
3583 if [ -f ./uudecode/Makefile ] ; then \
3584 r=`${PWD}`; export r; \
3585 s=`cd $(srcdir); ${PWD}`; export s; \
3587 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) check); \
3594 .PHONY: install-uudecode
3595 install-uudecode: installdirs
3597 if [ -f ./uudecode/Makefile ] ; then \
3598 r=`${PWD}`; export r; \
3599 s=`cd $(srcdir); ${PWD}`; export s; \
3601 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) install); \
3610 if [ -f ./wdiff/Makefile ] ; then \
3611 r=`${PWD}`; export r; \
3612 s=`cd $(srcdir); ${PWD}`; export s; \
3614 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) all); \
3623 if [ -f ./wdiff/Makefile ] ; then \
3624 r=`${PWD}`; export r; \
3625 s=`cd $(srcdir); ${PWD}`; export s; \
3627 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) check); \
3634 .PHONY: install-wdiff
3635 install-wdiff: installdirs
3637 if [ -f ./wdiff/Makefile ] ; then \
3638 r=`${PWD}`; export r; \
3639 s=`cd $(srcdir); ${PWD}`; export s; \
3641 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) install); \
3650 if [ -f ./zip/Makefile ] ; then \
3651 r=`${PWD}`; export r; \
3652 s=`cd $(srcdir); ${PWD}`; export s; \
3654 (cd zip; $(MAKE) $(FLAGS_TO_PASS) all); \
3661 # This module is only tested in a native toolchain.
3663 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
3665 if [ -f ./zip/Makefile ] ; then \
3666 r=`${PWD}`; export r; \
3667 s=`cd $(srcdir); ${PWD}`; export s; \
3669 (cd zip; $(MAKE) $(FLAGS_TO_PASS) check); \
3678 install-zip: installdirs
3680 if [ -f ./zip/Makefile ] ; then \
3681 r=`${PWD}`; export r; \
3682 s=`cd $(srcdir); ${PWD}`; export s; \
3684 (cd zip; $(MAKE) $(FLAGS_TO_PASS) install); \
3693 if [ -f ./zlib/Makefile ] ; then \
3694 r=`${PWD}`; export r; \
3695 s=`cd $(srcdir); ${PWD}`; export s; \
3697 (cd zlib; $(MAKE) $(FLAGS_TO_PASS) all); \
3708 .PHONY: install-zlib
3715 if [ -f ./gdb/Makefile ] ; then \
3716 r=`${PWD}`; export r; \
3717 s=`cd $(srcdir); ${PWD}`; export s; \
3719 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3728 if [ -f ./gdb/Makefile ] ; then \
3729 r=`${PWD}`; export r; \
3730 s=`cd $(srcdir); ${PWD}`; export s; \
3732 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3740 install-gdb: installdirs
3742 if [ -f ./gdb/Makefile ] ; then \
3743 r=`${PWD}`; export r; \
3744 s=`cd $(srcdir); ${PWD}`; export s; \
3746 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3755 if [ -f ./expect/Makefile ] ; then \
3756 r=`${PWD}`; export r; \
3757 s=`cd $(srcdir); ${PWD}`; export s; \
3759 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3765 .PHONY: check-expect
3768 if [ -f ./expect/Makefile ] ; then \
3769 r=`${PWD}`; export r; \
3770 s=`cd $(srcdir); ${PWD}`; export s; \
3772 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3779 .PHONY: install-expect
3780 install-expect: installdirs
3782 if [ -f ./expect/Makefile ] ; then \
3783 r=`${PWD}`; export r; \
3784 s=`cd $(srcdir); ${PWD}`; export s; \
3786 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3795 if [ -f ./guile/Makefile ] ; then \
3796 r=`${PWD}`; export r; \
3797 s=`cd $(srcdir); ${PWD}`; export s; \
3799 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3808 if [ -f ./guile/Makefile ] ; then \
3809 r=`${PWD}`; export r; \
3810 s=`cd $(srcdir); ${PWD}`; export s; \
3812 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3819 .PHONY: install-guile
3820 install-guile: installdirs
3822 if [ -f ./guile/Makefile ] ; then \
3823 r=`${PWD}`; export r; \
3824 s=`cd $(srcdir); ${PWD}`; export s; \
3826 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3835 if [ -f ./tclX/Makefile ] ; then \
3836 r=`${PWD}`; export r; \
3837 s=`cd $(srcdir); ${PWD}`; export s; \
3839 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3848 if [ -f ./tclX/Makefile ] ; then \
3849 r=`${PWD}`; export r; \
3850 s=`cd $(srcdir); ${PWD}`; export s; \
3852 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3859 .PHONY: install-tclX
3860 install-tclX: installdirs
3862 if [ -f ./tclX/Makefile ] ; then \
3863 r=`${PWD}`; export r; \
3864 s=`cd $(srcdir); ${PWD}`; export s; \
3866 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3875 if [ -f ./tk/Makefile ] ; then \
3876 r=`${PWD}`; export r; \
3877 s=`cd $(srcdir); ${PWD}`; export s; \
3879 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3888 if [ -f ./tk/Makefile ] ; then \
3889 r=`${PWD}`; export r; \
3890 s=`cd $(srcdir); ${PWD}`; export s; \
3892 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3900 install-tk: installdirs
3902 if [ -f ./tk/Makefile ] ; then \
3903 r=`${PWD}`; export r; \
3904 s=`cd $(srcdir); ${PWD}`; export s; \
3906 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3915 if [ -f ./tix/Makefile ] ; then \
3916 r=`${PWD}`; export r; \
3917 s=`cd $(srcdir); ${PWD}`; export s; \
3919 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
3928 if [ -f ./tix/Makefile ] ; then \
3929 r=`${PWD}`; export r; \
3930 s=`cd $(srcdir); ${PWD}`; export s; \
3932 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
3940 install-tix: installdirs
3942 if [ -f ./tix/Makefile ] ; then \
3943 r=`${PWD}`; export r; \
3944 s=`cd $(srcdir); ${PWD}`; export s; \
3946 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
3952 .PHONY: all-libtermcap
3955 if [ -f ./libtermcap/Makefile ] ; then \
3956 r=`${PWD}`; export r; \
3957 s=`cd $(srcdir); ${PWD}`; export s; \
3959 (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) all); \
3965 .PHONY: check-libtermcap
3970 .PHONY: install-libtermcap
3971 install-libtermcap: installdirs
3973 if [ -f ./libtermcap/Makefile ] ; then \
3974 r=`${PWD}`; export r; \
3975 s=`cd $(srcdir); ${PWD}`; export s; \
3977 (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) install); \
3986 if [ -f ./utils/Makefile ] ; then \
3987 r=`${PWD}`; export r; \
3988 s=`cd $(srcdir); ${PWD}`; export s; \
3990 (cd utils; $(MAKE) $(FLAGS_TO_PASS) all); \
4001 .PHONY: install-utils
4002 install-utils: installdirs
4004 if [ -f ./utils/Makefile ] ; then \
4005 r=`${PWD}`; export r; \
4006 s=`cd $(srcdir); ${PWD}`; export s; \
4008 (cd utils; $(MAKE) $(FLAGS_TO_PASS) install); \
4015 # These rules are used to build the modules which are built with the target
4016 # tools. To make foo-X means to cd to X and make foo.
4018 .PHONY: configure-target-libstdc++-v3
4019 configure-target-libstdc++-v3:
4020 @if [ -d $(TARGET_SUBDIR)/libstdc++-v3 ]; then \
4021 r=`${PWD}`; export r; \
4022 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out 2> /dev/null; \
4023 if [ -s $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out ]; then \
4024 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.out ]; then \
4025 if cmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out > /dev/null; then \
4026 rm -f $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out; \
4028 echo "Multilibs changed for libstdc++-v3, reconfiguring"; \
4029 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.out $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
4030 mv $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
4033 mv $(TARGET_SUBDIR)/libstdc++-v3/tmpmulti.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
4036 fi; exit 0 # break command into two pieces
4037 @dir=libstdc++-v3 ; \
4038 if [ ! -d $(TARGET_SUBDIR) ]; then \
4040 elif [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
4042 elif echo " $(TARGET_CONFIGDIRS) " | grep " libstdc++-v3 " >/dev/null 2>&1; then \
4043 if [ -d $(srcdir)/libstdc++-v3 ]; then \
4044 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
4045 r=`${PWD}`; export r; \
4046 s=`cd $(srcdir); ${PWD}`; export s; \
4048 AR="$(AR_FOR_TARGET)"; export AR; \
4049 AS="$(AS_FOR_TARGET)"; export AS; \
4050 CC="$(CC_FOR_TARGET)"; export CC; \
4051 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4052 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4053 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4054 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4055 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4056 LD="$(LD_FOR_TARGET)"; export LD; \
4057 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4058 NM="$(NM_FOR_TARGET)"; export NM; \
4059 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4060 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4061 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
4062 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4064 /* | [A-Za-z]:[\\/]*) \
4065 topdir=$(srcdir) ;; \
4067 case "$(TARGET_SUBDIR)" in \
4068 .) topdir="../$(srcdir)" ;; \
4069 *) topdir="../../$(srcdir)" ;; \
4072 if [ "$(srcdir)" = "." ] ; then \
4073 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4074 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
4075 if [ -f Makefile ]; then \
4076 if $(MAKE) distclean; then \
4090 srcdiroption="--srcdir=."; \
4093 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
4094 libsrcdir="$$s/libstdc++-v3"; \
4096 if [ -f $${libsrcdir}/configure ] ; then \
4097 rm -f no-such-file skip-this-dir; \
4098 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4099 $(TARGET_CONFIGARGS) $${srcdiroption} \
4100 --with-target-subdir="$(TARGET_SUBDIR)"; \
4102 rm -f no-such-file skip-this-dir; \
4103 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4104 $(TARGET_CONFIGARGS) $${srcdiroption} \
4105 --with-target-subdir="$(TARGET_SUBDIR)"; \
4107 if [ -f skip-this-dir ] ; then \
4109 rm -f skip-this-dir; \
4110 cd ..; rmdir libstdc++-v3 || true; \
4121 .PHONY: all-target-libstdc++-v3
4122 all-target-libstdc++-v3:
4123 @dir=libstdc++-v3 ; \
4124 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
4125 r=`${PWD}`; export r; \
4126 s=`cd $(srcdir); ${PWD}`; export s; \
4128 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
4129 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4134 .PHONY: check-target-libstdc++-v3
4135 check-target-libstdc++-v3:
4136 @dir=libstdc++-v3 ; \
4137 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
4138 r=`${PWD}`; export r; \
4139 s=`cd $(srcdir); ${PWD}`; export s; \
4141 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
4142 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
4148 .PHONY: install-target-libstdc++-v3
4149 install-target-libstdc++-v3: installdirs
4150 @dir=libstdc++-v3 ; \
4151 if [ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] ; then \
4152 r=`${PWD}`; export r; \
4153 s=`cd $(srcdir); ${PWD}`; export s; \
4155 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
4156 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4162 .PHONY: configure-target-newlib
4163 configure-target-newlib:
4164 @if [ -d $(TARGET_SUBDIR)/newlib ]; then \
4165 r=`${PWD}`; export r; \
4166 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/tmpmulti.out 2> /dev/null; \
4167 if [ -s $(TARGET_SUBDIR)/newlib/tmpmulti.out ]; then \
4168 if [ -f $(TARGET_SUBDIR)/newlib/multilib.out ]; then \
4169 if cmp $(TARGET_SUBDIR)/newlib/multilib.out $(TARGET_SUBDIR)/newlib/tmpmulti.out > /dev/null; then \
4170 rm -f $(TARGET_SUBDIR)/newlib/tmpmulti.out; \
4172 echo "Multilibs changed for newlib, reconfiguring"; \
4173 rm -f $(TARGET_SUBDIR)/newlib/multilib.out $(TARGET_SUBDIR)/newlib/Makefile; \
4174 mv $(TARGET_SUBDIR)/newlib/tmpmulti.out $(TARGET_SUBDIR)/newlib/multilib.out; \
4177 mv $(TARGET_SUBDIR)/newlib/tmpmulti.out $(TARGET_SUBDIR)/newlib/multilib.out; \
4180 fi; exit 0 # break command into two pieces
4182 if [ ! -d $(TARGET_SUBDIR) ]; then \
4184 elif [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
4186 elif echo " $(TARGET_CONFIGDIRS) " | grep " newlib " >/dev/null 2>&1; then \
4187 if [ -d $(srcdir)/newlib ]; then \
4188 [ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
4189 r=`${PWD}`; export r; \
4190 s=`cd $(srcdir); ${PWD}`; export s; \
4192 AR="$(AR_FOR_TARGET)"; export AR; \
4193 AS="$(AS_FOR_TARGET)"; export AS; \
4194 CC="$(CC_FOR_TARGET)"; export CC; \
4195 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4196 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4197 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4198 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4199 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4200 LD="$(LD_FOR_TARGET)"; export LD; \
4201 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4202 NM="$(NM_FOR_TARGET)"; export NM; \
4203 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4204 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4205 echo Configuring in $(TARGET_SUBDIR)/newlib; \
4206 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
4208 /* | [A-Za-z]:[\\/]*) \
4209 topdir=$(srcdir) ;; \
4211 case "$(TARGET_SUBDIR)" in \
4212 .) topdir="../$(srcdir)" ;; \
4213 *) topdir="../../$(srcdir)" ;; \
4216 if [ "$(srcdir)" = "." ] ; then \
4217 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4218 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
4219 if [ -f Makefile ]; then \
4220 if $(MAKE) distclean; then \
4234 srcdiroption="--srcdir=."; \
4237 srcdiroption="--srcdir=$${topdir}/newlib"; \
4238 libsrcdir="$$s/newlib"; \
4240 if [ -f $${libsrcdir}/configure ] ; then \
4241 rm -f no-such-file skip-this-dir; \
4242 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4243 $(TARGET_CONFIGARGS) $${srcdiroption} \
4244 --with-target-subdir="$(TARGET_SUBDIR)"; \
4246 rm -f no-such-file skip-this-dir; \
4247 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4248 $(TARGET_CONFIGARGS) $${srcdiroption} \
4249 --with-target-subdir="$(TARGET_SUBDIR)"; \
4251 if [ -f skip-this-dir ] ; then \
4253 rm -f skip-this-dir; \
4254 cd ..; rmdir newlib || true; \
4265 .PHONY: all-target-newlib
4268 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
4269 r=`${PWD}`; export r; \
4270 s=`cd $(srcdir); ${PWD}`; export s; \
4272 (cd $(TARGET_SUBDIR)/newlib; \
4273 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4278 .PHONY: check-target-newlib
4279 check-target-newlib:
4281 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
4282 r=`${PWD}`; export r; \
4283 s=`cd $(srcdir); ${PWD}`; export s; \
4285 (cd $(TARGET_SUBDIR)/newlib; \
4286 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
4292 .PHONY: install-target-newlib
4293 install-target-newlib: installdirs
4295 if [ -f $(TARGET_SUBDIR)/newlib/Makefile ] ; then \
4296 r=`${PWD}`; export r; \
4297 s=`cd $(srcdir); ${PWD}`; export s; \
4299 (cd $(TARGET_SUBDIR)/newlib; \
4300 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4306 .PHONY: configure-target-libf2c
4307 configure-target-libf2c:
4308 @if [ -d $(TARGET_SUBDIR)/libf2c ]; then \
4309 r=`${PWD}`; export r; \
4310 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libf2c/tmpmulti.out 2> /dev/null; \
4311 if [ -s $(TARGET_SUBDIR)/libf2c/tmpmulti.out ]; then \
4312 if [ -f $(TARGET_SUBDIR)/libf2c/multilib.out ]; then \
4313 if cmp $(TARGET_SUBDIR)/libf2c/multilib.out $(TARGET_SUBDIR)/libf2c/tmpmulti.out > /dev/null; then \
4314 rm -f $(TARGET_SUBDIR)/libf2c/tmpmulti.out; \
4316 echo "Multilibs changed for libf2c, reconfiguring"; \
4317 rm -f $(TARGET_SUBDIR)/libf2c/multilib.out $(TARGET_SUBDIR)/libf2c/Makefile; \
4318 mv $(TARGET_SUBDIR)/libf2c/tmpmulti.out $(TARGET_SUBDIR)/libf2c/multilib.out; \
4321 mv $(TARGET_SUBDIR)/libf2c/tmpmulti.out $(TARGET_SUBDIR)/libf2c/multilib.out; \
4324 fi; exit 0 # break command into two pieces
4326 if [ ! -d $(TARGET_SUBDIR) ]; then \
4328 elif [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
4330 elif echo " $(TARGET_CONFIGDIRS) " | grep " libf2c " >/dev/null 2>&1; then \
4331 if [ -d $(srcdir)/libf2c ]; then \
4332 [ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
4333 r=`${PWD}`; export r; \
4334 s=`cd $(srcdir); ${PWD}`; export s; \
4336 AR="$(AR_FOR_TARGET)"; export AR; \
4337 AS="$(AS_FOR_TARGET)"; export AS; \
4338 CC="$(CC_FOR_TARGET)"; export CC; \
4339 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4340 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4341 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4342 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4343 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4344 LD="$(LD_FOR_TARGET)"; export LD; \
4345 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4346 NM="$(NM_FOR_TARGET)"; export NM; \
4347 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4348 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4349 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
4350 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
4352 /* | [A-Za-z]:[\\/]*) \
4353 topdir=$(srcdir) ;; \
4355 case "$(TARGET_SUBDIR)" in \
4356 .) topdir="../$(srcdir)" ;; \
4357 *) topdir="../../$(srcdir)" ;; \
4360 if [ "$(srcdir)" = "." ] ; then \
4361 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4362 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
4363 if [ -f Makefile ]; then \
4364 if $(MAKE) distclean; then \
4378 srcdiroption="--srcdir=."; \
4381 srcdiroption="--srcdir=$${topdir}/libf2c"; \
4382 libsrcdir="$$s/libf2c"; \
4384 if [ -f $${libsrcdir}/configure ] ; then \
4385 rm -f no-such-file skip-this-dir; \
4386 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4387 $(TARGET_CONFIGARGS) $${srcdiroption} \
4388 --with-target-subdir="$(TARGET_SUBDIR)"; \
4390 rm -f no-such-file skip-this-dir; \
4391 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4392 $(TARGET_CONFIGARGS) $${srcdiroption} \
4393 --with-target-subdir="$(TARGET_SUBDIR)"; \
4395 if [ -f skip-this-dir ] ; then \
4397 rm -f skip-this-dir; \
4398 cd ..; rmdir libf2c || true; \
4409 .PHONY: all-target-libf2c
4412 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
4413 r=`${PWD}`; export r; \
4414 s=`cd $(srcdir); ${PWD}`; export s; \
4416 (cd $(TARGET_SUBDIR)/libf2c; \
4417 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4422 .PHONY: check-target-libf2c
4423 check-target-libf2c:
4425 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
4426 r=`${PWD}`; export r; \
4427 s=`cd $(srcdir); ${PWD}`; export s; \
4429 (cd $(TARGET_SUBDIR)/libf2c; \
4430 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
4436 .PHONY: install-target-libf2c
4437 install-target-libf2c: installdirs
4439 if [ -f $(TARGET_SUBDIR)/libf2c/Makefile ] ; then \
4440 r=`${PWD}`; export r; \
4441 s=`cd $(srcdir); ${PWD}`; export s; \
4443 (cd $(TARGET_SUBDIR)/libf2c; \
4444 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4450 .PHONY: configure-target-libobjc
4451 configure-target-libobjc:
4452 @if [ -d $(TARGET_SUBDIR)/libobjc ]; then \
4453 r=`${PWD}`; export r; \
4454 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/tmpmulti.out 2> /dev/null; \
4455 if [ -s $(TARGET_SUBDIR)/libobjc/tmpmulti.out ]; then \
4456 if [ -f $(TARGET_SUBDIR)/libobjc/multilib.out ]; then \
4457 if cmp $(TARGET_SUBDIR)/libobjc/multilib.out $(TARGET_SUBDIR)/libobjc/tmpmulti.out > /dev/null; then \
4458 rm -f $(TARGET_SUBDIR)/libobjc/tmpmulti.out; \
4460 echo "Multilibs changed for libobjc, reconfiguring"; \
4461 rm -f $(TARGET_SUBDIR)/libobjc/multilib.out $(TARGET_SUBDIR)/libobjc/Makefile; \
4462 mv $(TARGET_SUBDIR)/libobjc/tmpmulti.out $(TARGET_SUBDIR)/libobjc/multilib.out; \
4465 mv $(TARGET_SUBDIR)/libobjc/tmpmulti.out $(TARGET_SUBDIR)/libobjc/multilib.out; \
4468 fi; exit 0 # break command into two pieces
4470 if [ ! -d $(TARGET_SUBDIR) ]; then \
4472 elif [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
4474 elif echo " $(TARGET_CONFIGDIRS) " | grep " libobjc " >/dev/null 2>&1; then \
4475 if [ -d $(srcdir)/libobjc ]; then \
4476 [ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
4477 r=`${PWD}`; export r; \
4478 s=`cd $(srcdir); ${PWD}`; export s; \
4480 AR="$(AR_FOR_TARGET)"; export AR; \
4481 AS="$(AS_FOR_TARGET)"; export AS; \
4482 CC="$(CC_FOR_TARGET)"; export CC; \
4483 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4484 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4485 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4486 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4487 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4488 LD="$(LD_FOR_TARGET)"; export LD; \
4489 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4490 NM="$(NM_FOR_TARGET)"; export NM; \
4491 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4492 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4493 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
4494 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4496 /* | [A-Za-z]:[\\/]*) \
4497 topdir=$(srcdir) ;; \
4499 case "$(TARGET_SUBDIR)" in \
4500 .) topdir="../$(srcdir)" ;; \
4501 *) topdir="../../$(srcdir)" ;; \
4504 if [ "$(srcdir)" = "." ] ; then \
4505 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4506 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
4507 if [ -f Makefile ]; then \
4508 if $(MAKE) distclean; then \
4522 srcdiroption="--srcdir=."; \
4525 srcdiroption="--srcdir=$${topdir}/libobjc"; \
4526 libsrcdir="$$s/libobjc"; \
4528 if [ -f $${libsrcdir}/configure ] ; then \
4529 rm -f no-such-file skip-this-dir; \
4530 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4531 $(TARGET_CONFIGARGS) $${srcdiroption} \
4532 --with-target-subdir="$(TARGET_SUBDIR)"; \
4534 rm -f no-such-file skip-this-dir; \
4535 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4536 $(TARGET_CONFIGARGS) $${srcdiroption} \
4537 --with-target-subdir="$(TARGET_SUBDIR)"; \
4539 if [ -f skip-this-dir ] ; then \
4541 rm -f skip-this-dir; \
4542 cd ..; rmdir libobjc || true; \
4553 .PHONY: all-target-libobjc
4556 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
4557 r=`${PWD}`; export r; \
4558 s=`cd $(srcdir); ${PWD}`; export s; \
4560 (cd $(TARGET_SUBDIR)/libobjc; \
4561 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4566 .PHONY: check-target-libobjc
4567 check-target-libobjc:
4569 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
4570 r=`${PWD}`; export r; \
4571 s=`cd $(srcdir); ${PWD}`; export s; \
4573 (cd $(TARGET_SUBDIR)/libobjc; \
4574 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
4580 .PHONY: install-target-libobjc
4581 install-target-libobjc: installdirs
4583 if [ -f $(TARGET_SUBDIR)/libobjc/Makefile ] ; then \
4584 r=`${PWD}`; export r; \
4585 s=`cd $(srcdir); ${PWD}`; export s; \
4587 (cd $(TARGET_SUBDIR)/libobjc; \
4588 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4594 .PHONY: configure-target-libtermcap
4595 configure-target-libtermcap:
4596 @if [ -d $(TARGET_SUBDIR)/libtermcap ]; then \
4597 r=`${PWD}`; export r; \
4598 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/tmpmulti.out 2> /dev/null; \
4599 if [ -s $(TARGET_SUBDIR)/libtermcap/tmpmulti.out ]; then \
4600 if [ -f $(TARGET_SUBDIR)/libtermcap/multilib.out ]; then \
4601 if cmp $(TARGET_SUBDIR)/libtermcap/multilib.out $(TARGET_SUBDIR)/libtermcap/tmpmulti.out > /dev/null; then \
4602 rm -f $(TARGET_SUBDIR)/libtermcap/tmpmulti.out; \
4604 echo "Multilibs changed for libtermcap, reconfiguring"; \
4605 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.out $(TARGET_SUBDIR)/libtermcap/Makefile; \
4606 mv $(TARGET_SUBDIR)/libtermcap/tmpmulti.out $(TARGET_SUBDIR)/libtermcap/multilib.out; \
4609 mv $(TARGET_SUBDIR)/libtermcap/tmpmulti.out $(TARGET_SUBDIR)/libtermcap/multilib.out; \
4612 fi; exit 0 # break command into two pieces
4614 if [ ! -d $(TARGET_SUBDIR) ]; then \
4616 elif [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
4618 elif echo " $(TARGET_CONFIGDIRS) " | grep " libtermcap " >/dev/null 2>&1; then \
4619 if [ -d $(srcdir)/libtermcap ]; then \
4620 [ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
4621 r=`${PWD}`; export r; \
4622 s=`cd $(srcdir); ${PWD}`; export s; \
4624 AR="$(AR_FOR_TARGET)"; export AR; \
4625 AS="$(AS_FOR_TARGET)"; export AS; \
4626 CC="$(CC_FOR_TARGET)"; export CC; \
4627 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4628 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4629 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4630 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4631 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4632 LD="$(LD_FOR_TARGET)"; export LD; \
4633 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4634 NM="$(NM_FOR_TARGET)"; export NM; \
4635 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4636 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4637 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
4638 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4640 /* | [A-Za-z]:[\\/]*) \
4641 topdir=$(srcdir) ;; \
4643 case "$(TARGET_SUBDIR)" in \
4644 .) topdir="../$(srcdir)" ;; \
4645 *) topdir="../../$(srcdir)" ;; \
4648 if [ "$(srcdir)" = "." ] ; then \
4649 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4650 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
4651 if [ -f Makefile ]; then \
4652 if $(MAKE) distclean; then \
4666 srcdiroption="--srcdir=."; \
4669 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
4670 libsrcdir="$$s/libtermcap"; \
4672 if [ -f $${libsrcdir}/configure ] ; then \
4673 rm -f no-such-file skip-this-dir; \
4674 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4675 $(TARGET_CONFIGARGS) $${srcdiroption} \
4676 --with-target-subdir="$(TARGET_SUBDIR)"; \
4678 rm -f no-such-file skip-this-dir; \
4679 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4680 $(TARGET_CONFIGARGS) $${srcdiroption} \
4681 --with-target-subdir="$(TARGET_SUBDIR)"; \
4683 if [ -f skip-this-dir ] ; then \
4685 rm -f skip-this-dir; \
4686 cd ..; rmdir libtermcap || true; \
4697 .PHONY: all-target-libtermcap
4698 all-target-libtermcap:
4700 if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
4701 r=`${PWD}`; export r; \
4702 s=`cd $(srcdir); ${PWD}`; export s; \
4704 (cd $(TARGET_SUBDIR)/libtermcap; \
4705 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4710 # Dummy target for uncheckable module.
4711 .PHONY: check-target-libtermcap
4712 check-target-libtermcap:
4715 .PHONY: install-target-libtermcap
4716 install-target-libtermcap: installdirs
4718 if [ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] ; then \
4719 r=`${PWD}`; export r; \
4720 s=`cd $(srcdir); ${PWD}`; export s; \
4722 (cd $(TARGET_SUBDIR)/libtermcap; \
4723 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4729 .PHONY: configure-target-winsup
4730 configure-target-winsup:
4731 @if [ -d $(TARGET_SUBDIR)/winsup ]; then \
4732 r=`${PWD}`; export r; \
4733 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/tmpmulti.out 2> /dev/null; \
4734 if [ -s $(TARGET_SUBDIR)/winsup/tmpmulti.out ]; then \
4735 if [ -f $(TARGET_SUBDIR)/winsup/multilib.out ]; then \
4736 if cmp $(TARGET_SUBDIR)/winsup/multilib.out $(TARGET_SUBDIR)/winsup/tmpmulti.out > /dev/null; then \
4737 rm -f $(TARGET_SUBDIR)/winsup/tmpmulti.out; \
4739 echo "Multilibs changed for winsup, reconfiguring"; \
4740 rm -f $(TARGET_SUBDIR)/winsup/multilib.out $(TARGET_SUBDIR)/winsup/Makefile; \
4741 mv $(TARGET_SUBDIR)/winsup/tmpmulti.out $(TARGET_SUBDIR)/winsup/multilib.out; \
4744 mv $(TARGET_SUBDIR)/winsup/tmpmulti.out $(TARGET_SUBDIR)/winsup/multilib.out; \
4747 fi; exit 0 # break command into two pieces
4749 if [ ! -d $(TARGET_SUBDIR) ]; then \
4751 elif [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
4753 elif echo " $(TARGET_CONFIGDIRS) " | grep " winsup " >/dev/null 2>&1; then \
4754 if [ -d $(srcdir)/winsup ]; then \
4755 [ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
4756 r=`${PWD}`; export r; \
4757 s=`cd $(srcdir); ${PWD}`; export s; \
4759 AR="$(AR_FOR_TARGET)"; export AR; \
4760 AS="$(AS_FOR_TARGET)"; export AS; \
4761 CC="$(CC_FOR_TARGET)"; export CC; \
4762 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4763 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4764 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4765 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4766 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4767 LD="$(LD_FOR_TARGET)"; export LD; \
4768 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4769 NM="$(NM_FOR_TARGET)"; export NM; \
4770 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4771 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4772 echo Configuring in $(TARGET_SUBDIR)/winsup; \
4773 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
4775 /* | [A-Za-z]:[\\/]*) \
4776 topdir=$(srcdir) ;; \
4778 case "$(TARGET_SUBDIR)" in \
4779 .) topdir="../$(srcdir)" ;; \
4780 *) topdir="../../$(srcdir)" ;; \
4783 if [ "$(srcdir)" = "." ] ; then \
4784 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4785 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
4786 if [ -f Makefile ]; then \
4787 if $(MAKE) distclean; then \
4801 srcdiroption="--srcdir=."; \
4804 srcdiroption="--srcdir=$${topdir}/winsup"; \
4805 libsrcdir="$$s/winsup"; \
4807 if [ -f $${libsrcdir}/configure ] ; then \
4808 rm -f no-such-file skip-this-dir; \
4809 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4810 $(TARGET_CONFIGARGS) $${srcdiroption} \
4811 --with-target-subdir="$(TARGET_SUBDIR)"; \
4813 rm -f no-such-file skip-this-dir; \
4814 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4815 $(TARGET_CONFIGARGS) $${srcdiroption} \
4816 --with-target-subdir="$(TARGET_SUBDIR)"; \
4818 if [ -f skip-this-dir ] ; then \
4820 rm -f skip-this-dir; \
4821 cd ..; rmdir winsup || true; \
4832 .PHONY: all-target-winsup
4835 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
4836 r=`${PWD}`; export r; \
4837 s=`cd $(srcdir); ${PWD}`; export s; \
4839 (cd $(TARGET_SUBDIR)/winsup; \
4840 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4845 .PHONY: check-target-winsup
4846 check-target-winsup:
4848 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
4849 r=`${PWD}`; export r; \
4850 s=`cd $(srcdir); ${PWD}`; export s; \
4852 (cd $(TARGET_SUBDIR)/winsup; \
4853 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
4859 .PHONY: install-target-winsup
4860 install-target-winsup: installdirs
4862 if [ -f $(TARGET_SUBDIR)/winsup/Makefile ] ; then \
4863 r=`${PWD}`; export r; \
4864 s=`cd $(srcdir); ${PWD}`; export s; \
4866 (cd $(TARGET_SUBDIR)/winsup; \
4867 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
4873 .PHONY: configure-target-libgloss
4874 configure-target-libgloss:
4875 @if [ -d $(TARGET_SUBDIR)/libgloss ]; then \
4876 r=`${PWD}`; export r; \
4877 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/tmpmulti.out 2> /dev/null; \
4878 if [ -s $(TARGET_SUBDIR)/libgloss/tmpmulti.out ]; then \
4879 if [ -f $(TARGET_SUBDIR)/libgloss/multilib.out ]; then \
4880 if cmp $(TARGET_SUBDIR)/libgloss/multilib.out $(TARGET_SUBDIR)/libgloss/tmpmulti.out > /dev/null; then \
4881 rm -f $(TARGET_SUBDIR)/libgloss/tmpmulti.out; \
4883 echo "Multilibs changed for libgloss, reconfiguring"; \
4884 rm -f $(TARGET_SUBDIR)/libgloss/multilib.out $(TARGET_SUBDIR)/libgloss/Makefile; \
4885 mv $(TARGET_SUBDIR)/libgloss/tmpmulti.out $(TARGET_SUBDIR)/libgloss/multilib.out; \
4888 mv $(TARGET_SUBDIR)/libgloss/tmpmulti.out $(TARGET_SUBDIR)/libgloss/multilib.out; \
4891 fi; exit 0 # break command into two pieces
4893 if [ ! -d $(TARGET_SUBDIR) ]; then \
4895 elif [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
4897 elif echo " $(TARGET_CONFIGDIRS) " | grep " libgloss " >/dev/null 2>&1; then \
4898 if [ -d $(srcdir)/libgloss ]; then \
4899 [ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
4900 r=`${PWD}`; export r; \
4901 s=`cd $(srcdir); ${PWD}`; export s; \
4903 AR="$(AR_FOR_TARGET)"; export AR; \
4904 AS="$(AS_FOR_TARGET)"; export AS; \
4905 CC="$(CC_FOR_TARGET)"; export CC; \
4906 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
4907 CXX="$(CXX_FOR_TARGET)"; export CXX; \
4908 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
4909 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
4910 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
4911 LD="$(LD_FOR_TARGET)"; export LD; \
4912 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
4913 NM="$(NM_FOR_TARGET)"; export NM; \
4914 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
4915 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
4916 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
4917 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
4919 /* | [A-Za-z]:[\\/]*) \
4920 topdir=$(srcdir) ;; \
4922 case "$(TARGET_SUBDIR)" in \
4923 .) topdir="../$(srcdir)" ;; \
4924 *) topdir="../../$(srcdir)" ;; \
4927 if [ "$(srcdir)" = "." ] ; then \
4928 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
4929 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
4930 if [ -f Makefile ]; then \
4931 if $(MAKE) distclean; then \
4945 srcdiroption="--srcdir=."; \
4948 srcdiroption="--srcdir=$${topdir}/libgloss"; \
4949 libsrcdir="$$s/libgloss"; \
4951 if [ -f $${libsrcdir}/configure ] ; then \
4952 rm -f no-such-file skip-this-dir; \
4953 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4954 $(TARGET_CONFIGARGS) $${srcdiroption} \
4955 --with-target-subdir="$(TARGET_SUBDIR)"; \
4957 rm -f no-such-file skip-this-dir; \
4958 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
4959 $(TARGET_CONFIGARGS) $${srcdiroption} \
4960 --with-target-subdir="$(TARGET_SUBDIR)"; \
4962 if [ -f skip-this-dir ] ; then \
4964 rm -f skip-this-dir; \
4965 cd ..; rmdir libgloss || true; \
4976 .PHONY: all-target-libgloss
4977 all-target-libgloss:
4979 if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
4980 r=`${PWD}`; export r; \
4981 s=`cd $(srcdir); ${PWD}`; export s; \
4983 (cd $(TARGET_SUBDIR)/libgloss; \
4984 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
4989 # Dummy target for uncheckable module.
4990 .PHONY: check-target-libgloss
4991 check-target-libgloss:
4994 .PHONY: install-target-libgloss
4995 install-target-libgloss: installdirs
4997 if [ -f $(TARGET_SUBDIR)/libgloss/Makefile ] ; then \
4998 r=`${PWD}`; export r; \
4999 s=`cd $(srcdir); ${PWD}`; export s; \
5001 (cd $(TARGET_SUBDIR)/libgloss; \
5002 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5008 .PHONY: configure-target-libiberty
5009 configure-target-libiberty:
5010 @if [ -d $(TARGET_SUBDIR)/libiberty ]; then \
5011 r=`${PWD}`; export r; \
5012 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/tmpmulti.out 2> /dev/null; \
5013 if [ -s $(TARGET_SUBDIR)/libiberty/tmpmulti.out ]; then \
5014 if [ -f $(TARGET_SUBDIR)/libiberty/multilib.out ]; then \
5015 if cmp $(TARGET_SUBDIR)/libiberty/multilib.out $(TARGET_SUBDIR)/libiberty/tmpmulti.out > /dev/null; then \
5016 rm -f $(TARGET_SUBDIR)/libiberty/tmpmulti.out; \
5018 echo "Multilibs changed for libiberty, reconfiguring"; \
5019 rm -f $(TARGET_SUBDIR)/libiberty/multilib.out $(TARGET_SUBDIR)/libiberty/Makefile; \
5020 mv $(TARGET_SUBDIR)/libiberty/tmpmulti.out $(TARGET_SUBDIR)/libiberty/multilib.out; \
5023 mv $(TARGET_SUBDIR)/libiberty/tmpmulti.out $(TARGET_SUBDIR)/libiberty/multilib.out; \
5026 fi; exit 0 # break command into two pieces
5028 if [ ! -d $(TARGET_SUBDIR) ]; then \
5030 elif [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
5032 elif echo " $(TARGET_CONFIGDIRS) " | grep " libiberty " >/dev/null 2>&1; then \
5033 if [ -d $(srcdir)/libiberty ]; then \
5034 [ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
5035 r=`${PWD}`; export r; \
5036 s=`cd $(srcdir); ${PWD}`; export s; \
5038 AR="$(AR_FOR_TARGET)"; export AR; \
5039 AS="$(AS_FOR_TARGET)"; export AS; \
5040 CC="$(CC_FOR_TARGET)"; export CC; \
5041 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5042 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5043 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5044 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5045 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5046 LD="$(LD_FOR_TARGET)"; export LD; \
5047 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5048 NM="$(NM_FOR_TARGET)"; export NM; \
5049 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5050 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5051 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
5052 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
5054 /* | [A-Za-z]:[\\/]*) \
5055 topdir=$(srcdir) ;; \
5057 case "$(TARGET_SUBDIR)" in \
5058 .) topdir="../$(srcdir)" ;; \
5059 *) topdir="../../$(srcdir)" ;; \
5062 if [ "$(srcdir)" = "." ] ; then \
5063 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5064 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
5065 if [ -f Makefile ]; then \
5066 if $(MAKE) distclean; then \
5080 srcdiroption="--srcdir=."; \
5083 srcdiroption="--srcdir=$${topdir}/libiberty"; \
5084 libsrcdir="$$s/libiberty"; \
5086 if [ -f $${libsrcdir}/configure ] ; then \
5087 rm -f no-such-file skip-this-dir; \
5088 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5089 $(TARGET_CONFIGARGS) $${srcdiroption} \
5090 --with-target-subdir="$(TARGET_SUBDIR)"; \
5092 rm -f no-such-file skip-this-dir; \
5093 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5094 $(TARGET_CONFIGARGS) $${srcdiroption} \
5095 --with-target-subdir="$(TARGET_SUBDIR)"; \
5097 if [ -f skip-this-dir ] ; then \
5099 rm -f skip-this-dir; \
5100 cd ..; rmdir libiberty || true; \
5111 .PHONY: all-target-libiberty
5112 all-target-libiberty:
5114 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
5115 r=`${PWD}`; export r; \
5116 s=`cd $(srcdir); ${PWD}`; export s; \
5118 (cd $(TARGET_SUBDIR)/libiberty; \
5119 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5124 .PHONY: check-target-libiberty
5125 check-target-libiberty:
5127 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
5128 r=`${PWD}`; export r; \
5129 s=`cd $(srcdir); ${PWD}`; export s; \
5131 (cd $(TARGET_SUBDIR)/libiberty; \
5132 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5138 .PHONY: install-target-libiberty
5139 install-target-libiberty: installdirs
5141 if [ -f $(TARGET_SUBDIR)/libiberty/Makefile ] ; then \
5142 r=`${PWD}`; export r; \
5143 s=`cd $(srcdir); ${PWD}`; export s; \
5145 (cd $(TARGET_SUBDIR)/libiberty; \
5146 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5152 .PHONY: configure-target-gperf
5153 configure-target-gperf:
5154 @if [ -d $(TARGET_SUBDIR)/gperf ]; then \
5155 r=`${PWD}`; export r; \
5156 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/tmpmulti.out 2> /dev/null; \
5157 if [ -s $(TARGET_SUBDIR)/gperf/tmpmulti.out ]; then \
5158 if [ -f $(TARGET_SUBDIR)/gperf/multilib.out ]; then \
5159 if cmp $(TARGET_SUBDIR)/gperf/multilib.out $(TARGET_SUBDIR)/gperf/tmpmulti.out > /dev/null; then \
5160 rm -f $(TARGET_SUBDIR)/gperf/tmpmulti.out; \
5162 echo "Multilibs changed for gperf, reconfiguring"; \
5163 rm -f $(TARGET_SUBDIR)/gperf/multilib.out $(TARGET_SUBDIR)/gperf/Makefile; \
5164 mv $(TARGET_SUBDIR)/gperf/tmpmulti.out $(TARGET_SUBDIR)/gperf/multilib.out; \
5167 mv $(TARGET_SUBDIR)/gperf/tmpmulti.out $(TARGET_SUBDIR)/gperf/multilib.out; \
5170 fi; exit 0 # break command into two pieces
5172 if [ ! -d $(TARGET_SUBDIR) ]; then \
5174 elif [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
5176 elif echo " $(TARGET_CONFIGDIRS) " | grep " gperf " >/dev/null 2>&1; then \
5177 if [ -d $(srcdir)/gperf ]; then \
5178 [ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
5179 r=`${PWD}`; export r; \
5180 s=`cd $(srcdir); ${PWD}`; export s; \
5182 AR="$(AR_FOR_TARGET)"; export AR; \
5183 AS="$(AS_FOR_TARGET)"; export AS; \
5184 CC="$(CC_FOR_TARGET)"; export CC; \
5185 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5186 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5187 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5188 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5189 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5190 LD="$(LD_FOR_TARGET)"; export LD; \
5191 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5192 NM="$(NM_FOR_TARGET)"; export NM; \
5193 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5194 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5195 echo Configuring in $(TARGET_SUBDIR)/gperf; \
5196 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
5198 /* | [A-Za-z]:[\\/]*) \
5199 topdir=$(srcdir) ;; \
5201 case "$(TARGET_SUBDIR)" in \
5202 .) topdir="../$(srcdir)" ;; \
5203 *) topdir="../../$(srcdir)" ;; \
5206 if [ "$(srcdir)" = "." ] ; then \
5207 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5208 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
5209 if [ -f Makefile ]; then \
5210 if $(MAKE) distclean; then \
5224 srcdiroption="--srcdir=."; \
5227 srcdiroption="--srcdir=$${topdir}/gperf"; \
5228 libsrcdir="$$s/gperf"; \
5230 if [ -f $${libsrcdir}/configure ] ; then \
5231 rm -f no-such-file skip-this-dir; \
5232 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5233 $(TARGET_CONFIGARGS) $${srcdiroption} \
5234 --with-target-subdir="$(TARGET_SUBDIR)"; \
5236 rm -f no-such-file skip-this-dir; \
5237 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5238 $(TARGET_CONFIGARGS) $${srcdiroption} \
5239 --with-target-subdir="$(TARGET_SUBDIR)"; \
5241 if [ -f skip-this-dir ] ; then \
5243 rm -f skip-this-dir; \
5244 cd ..; rmdir gperf || true; \
5255 .PHONY: all-target-gperf
5258 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
5259 r=`${PWD}`; export r; \
5260 s=`cd $(srcdir); ${PWD}`; export s; \
5262 (cd $(TARGET_SUBDIR)/gperf; \
5263 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5268 .PHONY: check-target-gperf
5271 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
5272 r=`${PWD}`; export r; \
5273 s=`cd $(srcdir); ${PWD}`; export s; \
5275 (cd $(TARGET_SUBDIR)/gperf; \
5276 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5282 .PHONY: install-target-gperf
5283 install-target-gperf: installdirs
5285 if [ -f $(TARGET_SUBDIR)/gperf/Makefile ] ; then \
5286 r=`${PWD}`; export r; \
5287 s=`cd $(srcdir); ${PWD}`; export s; \
5289 (cd $(TARGET_SUBDIR)/gperf; \
5290 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5296 .PHONY: configure-target-examples
5297 configure-target-examples:
5298 @if [ -d $(TARGET_SUBDIR)/examples ]; then \
5299 r=`${PWD}`; export r; \
5300 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/tmpmulti.out 2> /dev/null; \
5301 if [ -s $(TARGET_SUBDIR)/examples/tmpmulti.out ]; then \
5302 if [ -f $(TARGET_SUBDIR)/examples/multilib.out ]; then \
5303 if cmp $(TARGET_SUBDIR)/examples/multilib.out $(TARGET_SUBDIR)/examples/tmpmulti.out > /dev/null; then \
5304 rm -f $(TARGET_SUBDIR)/examples/tmpmulti.out; \
5306 echo "Multilibs changed for examples, reconfiguring"; \
5307 rm -f $(TARGET_SUBDIR)/examples/multilib.out $(TARGET_SUBDIR)/examples/Makefile; \
5308 mv $(TARGET_SUBDIR)/examples/tmpmulti.out $(TARGET_SUBDIR)/examples/multilib.out; \
5311 mv $(TARGET_SUBDIR)/examples/tmpmulti.out $(TARGET_SUBDIR)/examples/multilib.out; \
5314 fi; exit 0 # break command into two pieces
5316 if [ ! -d $(TARGET_SUBDIR) ]; then \
5318 elif [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
5320 elif echo " $(TARGET_CONFIGDIRS) " | grep " examples " >/dev/null 2>&1; then \
5321 if [ -d $(srcdir)/examples ]; then \
5322 [ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
5323 r=`${PWD}`; export r; \
5324 s=`cd $(srcdir); ${PWD}`; export s; \
5326 AR="$(AR_FOR_TARGET)"; export AR; \
5327 AS="$(AS_FOR_TARGET)"; export AS; \
5328 CC="$(CC_FOR_TARGET)"; export CC; \
5329 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5330 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5331 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5332 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5333 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5334 LD="$(LD_FOR_TARGET)"; export LD; \
5335 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5336 NM="$(NM_FOR_TARGET)"; export NM; \
5337 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5338 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5339 echo Configuring in $(TARGET_SUBDIR)/examples; \
5340 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
5342 /* | [A-Za-z]:[\\/]*) \
5343 topdir=$(srcdir) ;; \
5345 case "$(TARGET_SUBDIR)" in \
5346 .) topdir="../$(srcdir)" ;; \
5347 *) topdir="../../$(srcdir)" ;; \
5350 if [ "$(srcdir)" = "." ] ; then \
5351 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5352 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
5353 if [ -f Makefile ]; then \
5354 if $(MAKE) distclean; then \
5368 srcdiroption="--srcdir=."; \
5371 srcdiroption="--srcdir=$${topdir}/examples"; \
5372 libsrcdir="$$s/examples"; \
5374 if [ -f $${libsrcdir}/configure ] ; then \
5375 rm -f no-such-file skip-this-dir; \
5376 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5377 $(TARGET_CONFIGARGS) $${srcdiroption} \
5378 --with-target-subdir="$(TARGET_SUBDIR)"; \
5380 rm -f no-such-file skip-this-dir; \
5381 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5382 $(TARGET_CONFIGARGS) $${srcdiroption} \
5383 --with-target-subdir="$(TARGET_SUBDIR)"; \
5385 if [ -f skip-this-dir ] ; then \
5387 rm -f skip-this-dir; \
5388 cd ..; rmdir examples || true; \
5399 .PHONY: all-target-examples
5400 all-target-examples:
5402 if [ -f $(TARGET_SUBDIR)/examples/Makefile ] ; then \
5403 r=`${PWD}`; export r; \
5404 s=`cd $(srcdir); ${PWD}`; export s; \
5406 (cd $(TARGET_SUBDIR)/examples; \
5407 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5412 # Dummy target for uncheckable module.
5413 .PHONY: check-target-examples
5414 check-target-examples:
5418 .PHONY: configure-target-libffi
5419 configure-target-libffi:
5420 @if [ -d $(TARGET_SUBDIR)/libffi ]; then \
5421 r=`${PWD}`; export r; \
5422 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/tmpmulti.out 2> /dev/null; \
5423 if [ -s $(TARGET_SUBDIR)/libffi/tmpmulti.out ]; then \
5424 if [ -f $(TARGET_SUBDIR)/libffi/multilib.out ]; then \
5425 if cmp $(TARGET_SUBDIR)/libffi/multilib.out $(TARGET_SUBDIR)/libffi/tmpmulti.out > /dev/null; then \
5426 rm -f $(TARGET_SUBDIR)/libffi/tmpmulti.out; \
5428 echo "Multilibs changed for libffi, reconfiguring"; \
5429 rm -f $(TARGET_SUBDIR)/libffi/multilib.out $(TARGET_SUBDIR)/libffi/Makefile; \
5430 mv $(TARGET_SUBDIR)/libffi/tmpmulti.out $(TARGET_SUBDIR)/libffi/multilib.out; \
5433 mv $(TARGET_SUBDIR)/libffi/tmpmulti.out $(TARGET_SUBDIR)/libffi/multilib.out; \
5436 fi; exit 0 # break command into two pieces
5438 if [ ! -d $(TARGET_SUBDIR) ]; then \
5440 elif [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
5442 elif echo " $(TARGET_CONFIGDIRS) " | grep " libffi " >/dev/null 2>&1; then \
5443 if [ -d $(srcdir)/libffi ]; then \
5444 [ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
5445 r=`${PWD}`; export r; \
5446 s=`cd $(srcdir); ${PWD}`; export s; \
5448 AR="$(AR_FOR_TARGET)"; export AR; \
5449 AS="$(AS_FOR_TARGET)"; export AS; \
5450 CC="$(CC_FOR_TARGET)"; export CC; \
5451 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5452 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5453 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5454 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5455 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5456 LD="$(LD_FOR_TARGET)"; export LD; \
5457 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5458 NM="$(NM_FOR_TARGET)"; export NM; \
5459 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5460 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5461 echo Configuring in $(TARGET_SUBDIR)/libffi; \
5462 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
5464 /* | [A-Za-z]:[\\/]*) \
5465 topdir=$(srcdir) ;; \
5467 case "$(TARGET_SUBDIR)" in \
5468 .) topdir="../$(srcdir)" ;; \
5469 *) topdir="../../$(srcdir)" ;; \
5472 if [ "$(srcdir)" = "." ] ; then \
5473 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5474 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
5475 if [ -f Makefile ]; then \
5476 if $(MAKE) distclean; then \
5490 srcdiroption="--srcdir=."; \
5493 srcdiroption="--srcdir=$${topdir}/libffi"; \
5494 libsrcdir="$$s/libffi"; \
5496 if [ -f $${libsrcdir}/configure ] ; then \
5497 rm -f no-such-file skip-this-dir; \
5498 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5499 $(TARGET_CONFIGARGS) $${srcdiroption} \
5500 --with-target-subdir="$(TARGET_SUBDIR)"; \
5502 rm -f no-such-file skip-this-dir; \
5503 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5504 $(TARGET_CONFIGARGS) $${srcdiroption} \
5505 --with-target-subdir="$(TARGET_SUBDIR)"; \
5507 if [ -f skip-this-dir ] ; then \
5509 rm -f skip-this-dir; \
5510 cd ..; rmdir libffi || true; \
5521 .PHONY: all-target-libffi
5524 if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
5525 r=`${PWD}`; export r; \
5526 s=`cd $(srcdir); ${PWD}`; export s; \
5528 (cd $(TARGET_SUBDIR)/libffi; \
5529 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5534 .PHONY: check-target-libffi
5535 check-target-libffi:
5537 if [ -f $(TARGET_SUBDIR)/libffi/Makefile ] ; then \
5538 r=`${PWD}`; export r; \
5539 s=`cd $(srcdir); ${PWD}`; export s; \
5541 (cd $(TARGET_SUBDIR)/libffi; \
5542 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5549 .PHONY: configure-target-libjava
5550 configure-target-libjava:
5551 @if [ -d $(TARGET_SUBDIR)/libjava ]; then \
5552 r=`${PWD}`; export r; \
5553 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/tmpmulti.out 2> /dev/null; \
5554 if [ -s $(TARGET_SUBDIR)/libjava/tmpmulti.out ]; then \
5555 if [ -f $(TARGET_SUBDIR)/libjava/multilib.out ]; then \
5556 if cmp $(TARGET_SUBDIR)/libjava/multilib.out $(TARGET_SUBDIR)/libjava/tmpmulti.out > /dev/null; then \
5557 rm -f $(TARGET_SUBDIR)/libjava/tmpmulti.out; \
5559 echo "Multilibs changed for libjava, reconfiguring"; \
5560 rm -f $(TARGET_SUBDIR)/libjava/multilib.out $(TARGET_SUBDIR)/libjava/Makefile; \
5561 mv $(TARGET_SUBDIR)/libjava/tmpmulti.out $(TARGET_SUBDIR)/libjava/multilib.out; \
5564 mv $(TARGET_SUBDIR)/libjava/tmpmulti.out $(TARGET_SUBDIR)/libjava/multilib.out; \
5567 fi; exit 0 # break command into two pieces
5569 if [ ! -d $(TARGET_SUBDIR) ]; then \
5571 elif [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
5573 elif echo " $(TARGET_CONFIGDIRS) " | grep " libjava " >/dev/null 2>&1; then \
5574 if [ -d $(srcdir)/libjava ]; then \
5575 [ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
5576 r=`${PWD}`; export r; \
5577 s=`cd $(srcdir); ${PWD}`; export s; \
5579 AR="$(AR_FOR_TARGET)"; export AR; \
5580 AS="$(AS_FOR_TARGET)"; export AS; \
5581 CC="$(CC_FOR_TARGET)"; export CC; \
5582 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5583 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5584 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5585 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5586 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5587 LD="$(LD_FOR_TARGET)"; export LD; \
5588 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5589 NM="$(NM_FOR_TARGET)"; export NM; \
5590 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5591 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5592 echo Configuring in $(TARGET_SUBDIR)/libjava; \
5593 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
5595 /* | [A-Za-z]:[\\/]*) \
5596 topdir=$(srcdir) ;; \
5598 case "$(TARGET_SUBDIR)" in \
5599 .) topdir="../$(srcdir)" ;; \
5600 *) topdir="../../$(srcdir)" ;; \
5603 if [ "$(srcdir)" = "." ] ; then \
5604 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5605 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
5606 if [ -f Makefile ]; then \
5607 if $(MAKE) distclean; then \
5621 srcdiroption="--srcdir=."; \
5624 srcdiroption="--srcdir=$${topdir}/libjava"; \
5625 libsrcdir="$$s/libjava"; \
5627 if [ -f $${libsrcdir}/configure ] ; then \
5628 rm -f no-such-file skip-this-dir; \
5629 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5630 $(TARGET_CONFIGARGS) $${srcdiroption} \
5631 --with-target-subdir="$(TARGET_SUBDIR)"; \
5633 rm -f no-such-file skip-this-dir; \
5634 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5635 $(TARGET_CONFIGARGS) $${srcdiroption} \
5636 --with-target-subdir="$(TARGET_SUBDIR)"; \
5638 if [ -f skip-this-dir ] ; then \
5640 rm -f skip-this-dir; \
5641 cd ..; rmdir libjava || true; \
5652 .PHONY: all-target-libjava
5655 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
5656 r=`${PWD}`; export r; \
5657 s=`cd $(srcdir); ${PWD}`; export s; \
5659 (cd $(TARGET_SUBDIR)/libjava; \
5660 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5665 .PHONY: check-target-libjava
5666 check-target-libjava:
5668 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
5669 r=`${PWD}`; export r; \
5670 s=`cd $(srcdir); ${PWD}`; export s; \
5672 (cd $(TARGET_SUBDIR)/libjava; \
5673 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5679 .PHONY: install-target-libjava
5680 install-target-libjava: installdirs
5682 if [ -f $(TARGET_SUBDIR)/libjava/Makefile ] ; then \
5683 r=`${PWD}`; export r; \
5684 s=`cd $(srcdir); ${PWD}`; export s; \
5686 (cd $(TARGET_SUBDIR)/libjava; \
5687 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5693 .PHONY: configure-target-zlib
5694 configure-target-zlib:
5695 @if [ -d $(TARGET_SUBDIR)/zlib ]; then \
5696 r=`${PWD}`; export r; \
5697 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/tmpmulti.out 2> /dev/null; \
5698 if [ -s $(TARGET_SUBDIR)/zlib/tmpmulti.out ]; then \
5699 if [ -f $(TARGET_SUBDIR)/zlib/multilib.out ]; then \
5700 if cmp $(TARGET_SUBDIR)/zlib/multilib.out $(TARGET_SUBDIR)/zlib/tmpmulti.out > /dev/null; then \
5701 rm -f $(TARGET_SUBDIR)/zlib/tmpmulti.out; \
5703 echo "Multilibs changed for zlib, reconfiguring"; \
5704 rm -f $(TARGET_SUBDIR)/zlib/multilib.out $(TARGET_SUBDIR)/zlib/Makefile; \
5705 mv $(TARGET_SUBDIR)/zlib/tmpmulti.out $(TARGET_SUBDIR)/zlib/multilib.out; \
5708 mv $(TARGET_SUBDIR)/zlib/tmpmulti.out $(TARGET_SUBDIR)/zlib/multilib.out; \
5711 fi; exit 0 # break command into two pieces
5713 if [ ! -d $(TARGET_SUBDIR) ]; then \
5715 elif [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
5717 elif echo " $(TARGET_CONFIGDIRS) " | grep " zlib " >/dev/null 2>&1; then \
5718 if [ -d $(srcdir)/zlib ]; then \
5719 [ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
5720 r=`${PWD}`; export r; \
5721 s=`cd $(srcdir); ${PWD}`; export s; \
5723 AR="$(AR_FOR_TARGET)"; export AR; \
5724 AS="$(AS_FOR_TARGET)"; export AS; \
5725 CC="$(CC_FOR_TARGET)"; export CC; \
5726 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5727 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5728 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5729 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5730 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5731 LD="$(LD_FOR_TARGET)"; export LD; \
5732 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5733 NM="$(NM_FOR_TARGET)"; export NM; \
5734 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5735 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5736 echo Configuring in $(TARGET_SUBDIR)/zlib; \
5737 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
5739 /* | [A-Za-z]:[\\/]*) \
5740 topdir=$(srcdir) ;; \
5742 case "$(TARGET_SUBDIR)" in \
5743 .) topdir="../$(srcdir)" ;; \
5744 *) topdir="../../$(srcdir)" ;; \
5747 if [ "$(srcdir)" = "." ] ; then \
5748 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5749 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
5750 if [ -f Makefile ]; then \
5751 if $(MAKE) distclean; then \
5765 srcdiroption="--srcdir=."; \
5768 srcdiroption="--srcdir=$${topdir}/zlib"; \
5769 libsrcdir="$$s/zlib"; \
5771 if [ -f $${libsrcdir}/configure ] ; then \
5772 rm -f no-such-file skip-this-dir; \
5773 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5774 $(TARGET_CONFIGARGS) $${srcdiroption} \
5775 --with-target-subdir="$(TARGET_SUBDIR)"; \
5777 rm -f no-such-file skip-this-dir; \
5778 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5779 $(TARGET_CONFIGARGS) $${srcdiroption} \
5780 --with-target-subdir="$(TARGET_SUBDIR)"; \
5782 if [ -f skip-this-dir ] ; then \
5784 rm -f skip-this-dir; \
5785 cd ..; rmdir zlib || true; \
5796 .PHONY: all-target-zlib
5799 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
5800 r=`${PWD}`; export r; \
5801 s=`cd $(srcdir); ${PWD}`; export s; \
5803 (cd $(TARGET_SUBDIR)/zlib; \
5804 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5809 .PHONY: check-target-zlib
5812 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
5813 r=`${PWD}`; export r; \
5814 s=`cd $(srcdir); ${PWD}`; export s; \
5816 (cd $(TARGET_SUBDIR)/zlib; \
5817 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5823 .PHONY: install-target-zlib
5824 install-target-zlib: installdirs
5826 if [ -f $(TARGET_SUBDIR)/zlib/Makefile ] ; then \
5827 r=`${PWD}`; export r; \
5828 s=`cd $(srcdir); ${PWD}`; export s; \
5830 (cd $(TARGET_SUBDIR)/zlib; \
5831 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5837 .PHONY: configure-target-boehm-gc
5838 configure-target-boehm-gc:
5839 @if [ -d $(TARGET_SUBDIR)/boehm-gc ]; then \
5840 r=`${PWD}`; export r; \
5841 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out 2> /dev/null; \
5842 if [ -s $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out ]; then \
5843 if [ -f $(TARGET_SUBDIR)/boehm-gc/multilib.out ]; then \
5844 if cmp $(TARGET_SUBDIR)/boehm-gc/multilib.out $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out > /dev/null; then \
5845 rm -f $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out; \
5847 echo "Multilibs changed for boehm-gc, reconfiguring"; \
5848 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.out $(TARGET_SUBDIR)/boehm-gc/Makefile; \
5849 mv $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
5852 mv $(TARGET_SUBDIR)/boehm-gc/tmpmulti.out $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
5855 fi; exit 0 # break command into two pieces
5857 if [ ! -d $(TARGET_SUBDIR) ]; then \
5859 elif [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
5861 elif echo " $(TARGET_CONFIGDIRS) " | grep " boehm-gc " >/dev/null 2>&1; then \
5862 if [ -d $(srcdir)/boehm-gc ]; then \
5863 [ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
5864 r=`${PWD}`; export r; \
5865 s=`cd $(srcdir); ${PWD}`; export s; \
5867 AR="$(AR_FOR_TARGET)"; export AR; \
5868 AS="$(AS_FOR_TARGET)"; export AS; \
5869 CC="$(CC_FOR_TARGET)"; export CC; \
5870 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5871 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5872 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5873 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5874 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5875 LD="$(LD_FOR_TARGET)"; export LD; \
5876 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5877 NM="$(NM_FOR_TARGET)"; export NM; \
5878 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5879 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5880 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
5881 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
5883 /* | [A-Za-z]:[\\/]*) \
5884 topdir=$(srcdir) ;; \
5886 case "$(TARGET_SUBDIR)" in \
5887 .) topdir="../$(srcdir)" ;; \
5888 *) topdir="../../$(srcdir)" ;; \
5891 if [ "$(srcdir)" = "." ] ; then \
5892 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5893 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
5894 if [ -f Makefile ]; then \
5895 if $(MAKE) distclean; then \
5909 srcdiroption="--srcdir=."; \
5912 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
5913 libsrcdir="$$s/boehm-gc"; \
5915 if [ -f $${libsrcdir}/configure ] ; then \
5916 rm -f no-such-file skip-this-dir; \
5917 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5918 $(TARGET_CONFIGARGS) $${srcdiroption} \
5919 --with-target-subdir="$(TARGET_SUBDIR)"; \
5921 rm -f no-such-file skip-this-dir; \
5922 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
5923 $(TARGET_CONFIGARGS) $${srcdiroption} \
5924 --with-target-subdir="$(TARGET_SUBDIR)"; \
5926 if [ -f skip-this-dir ] ; then \
5928 rm -f skip-this-dir; \
5929 cd ..; rmdir boehm-gc || true; \
5940 .PHONY: all-target-boehm-gc
5941 all-target-boehm-gc:
5943 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
5944 r=`${PWD}`; export r; \
5945 s=`cd $(srcdir); ${PWD}`; export s; \
5947 (cd $(TARGET_SUBDIR)/boehm-gc; \
5948 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
5953 .PHONY: check-target-boehm-gc
5954 check-target-boehm-gc:
5956 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
5957 r=`${PWD}`; export r; \
5958 s=`cd $(srcdir); ${PWD}`; export s; \
5960 (cd $(TARGET_SUBDIR)/boehm-gc; \
5961 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
5967 .PHONY: install-target-boehm-gc
5968 install-target-boehm-gc: installdirs
5970 if [ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] ; then \
5971 r=`${PWD}`; export r; \
5972 s=`cd $(srcdir); ${PWD}`; export s; \
5974 (cd $(TARGET_SUBDIR)/boehm-gc; \
5975 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
5981 .PHONY: configure-target-qthreads
5982 configure-target-qthreads:
5983 @if [ -d $(TARGET_SUBDIR)/qthreads ]; then \
5984 r=`${PWD}`; export r; \
5985 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/tmpmulti.out 2> /dev/null; \
5986 if [ -s $(TARGET_SUBDIR)/qthreads/tmpmulti.out ]; then \
5987 if [ -f $(TARGET_SUBDIR)/qthreads/multilib.out ]; then \
5988 if cmp $(TARGET_SUBDIR)/qthreads/multilib.out $(TARGET_SUBDIR)/qthreads/tmpmulti.out > /dev/null; then \
5989 rm -f $(TARGET_SUBDIR)/qthreads/tmpmulti.out; \
5991 echo "Multilibs changed for qthreads, reconfiguring"; \
5992 rm -f $(TARGET_SUBDIR)/qthreads/multilib.out $(TARGET_SUBDIR)/qthreads/Makefile; \
5993 mv $(TARGET_SUBDIR)/qthreads/tmpmulti.out $(TARGET_SUBDIR)/qthreads/multilib.out; \
5996 mv $(TARGET_SUBDIR)/qthreads/tmpmulti.out $(TARGET_SUBDIR)/qthreads/multilib.out; \
5999 fi; exit 0 # break command into two pieces
6001 if [ ! -d $(TARGET_SUBDIR) ]; then \
6003 elif [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
6005 elif echo " $(TARGET_CONFIGDIRS) " | grep " qthreads " >/dev/null 2>&1; then \
6006 if [ -d $(srcdir)/qthreads ]; then \
6007 [ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
6008 r=`${PWD}`; export r; \
6009 s=`cd $(srcdir); ${PWD}`; export s; \
6011 AR="$(AR_FOR_TARGET)"; export AR; \
6012 AS="$(AS_FOR_TARGET)"; export AS; \
6013 CC="$(CC_FOR_TARGET)"; export CC; \
6014 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6015 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6016 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6017 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6018 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6019 LD="$(LD_FOR_TARGET)"; export LD; \
6020 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6021 NM="$(NM_FOR_TARGET)"; export NM; \
6022 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6023 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6024 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
6025 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
6027 /* | [A-Za-z]:[\\/]*) \
6028 topdir=$(srcdir) ;; \
6030 case "$(TARGET_SUBDIR)" in \
6031 .) topdir="../$(srcdir)" ;; \
6032 *) topdir="../../$(srcdir)" ;; \
6035 if [ "$(srcdir)" = "." ] ; then \
6036 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6037 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
6038 if [ -f Makefile ]; then \
6039 if $(MAKE) distclean; then \
6053 srcdiroption="--srcdir=."; \
6056 srcdiroption="--srcdir=$${topdir}/qthreads"; \
6057 libsrcdir="$$s/qthreads"; \
6059 if [ -f $${libsrcdir}/configure ] ; then \
6060 rm -f no-such-file skip-this-dir; \
6061 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6062 $(TARGET_CONFIGARGS) $${srcdiroption} \
6063 --with-target-subdir="$(TARGET_SUBDIR)"; \
6065 rm -f no-such-file skip-this-dir; \
6066 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
6067 $(TARGET_CONFIGARGS) $${srcdiroption} \
6068 --with-target-subdir="$(TARGET_SUBDIR)"; \
6070 if [ -f skip-this-dir ] ; then \
6072 rm -f skip-this-dir; \
6073 cd ..; rmdir qthreads || true; \
6084 .PHONY: all-target-qthreads
6085 all-target-qthreads:
6087 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
6088 r=`${PWD}`; export r; \
6089 s=`cd $(srcdir); ${PWD}`; export s; \
6091 (cd $(TARGET_SUBDIR)/qthreads; \
6092 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
6097 .PHONY: check-target-qthreads
6098 check-target-qthreads:
6100 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
6101 r=`${PWD}`; export r; \
6102 s=`cd $(srcdir); ${PWD}`; export s; \
6104 (cd $(TARGET_SUBDIR)/qthreads; \
6105 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
6111 .PHONY: install-target-qthreads
6112 install-target-qthreads: installdirs
6114 if [ -f $(TARGET_SUBDIR)/qthreads/Makefile ] ; then \
6115 r=`${PWD}`; export r; \
6116 s=`cd $(srcdir); ${PWD}`; export s; \
6118 (cd $(TARGET_SUBDIR)/qthreads; \
6119 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
6125 .PHONY: configure-target-rda
6126 configure-target-rda:
6127 @if [ -d $(TARGET_SUBDIR)/rda ]; then \
6128 r=`${PWD}`; export r; \
6129 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/tmpmulti.out 2> /dev/null; \
6130 if [ -s $(TARGET_SUBDIR)/rda/tmpmulti.out ]; then \
6131 if [ -f $(TARGET_SUBDIR)/rda/multilib.out ]; then \
6132 if cmp $(TARGET_SUBDIR)/rda/multilib.out $(TARGET_SUBDIR)/rda/tmpmulti.out > /dev/null; then \
6133 rm -f $(TARGET_SUBDIR)/rda/tmpmulti.out; \
6135 echo "Multilibs changed for rda, reconfiguring"; \
6136 rm -f $(TARGET_SUBDIR)/rda/multilib.out $(TARGET_SUBDIR)/rda/Makefile; \
6137 mv $(TARGET_SUBDIR)/rda/tmpmulti.out $(TARGET_SUBDIR)/rda/multilib.out; \
6140 mv $(TARGET_SUBDIR)/rda/tmpmulti.out $(TARGET_SUBDIR)/rda/multilib.out; \
6143 fi; exit 0 # break command into two pieces
6145 if [ ! -d $(TARGET_SUBDIR) ]; then \
6147 elif [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
6149 elif echo " $(TARGET_CONFIGDIRS) " | grep " rda " >/dev/null 2>&1; then \
6150 if [ -d $(srcdir)/rda ]; then \
6151 [ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
6152 r=`${PWD}`; export r; \
6153 s=`cd $(srcdir); ${PWD}`; export s; \
6155 AR="$(AR_FOR_TARGET)"; export AR; \
6156 AS="$(AS_FOR_TARGET)"; export AS; \
6157 CC="$(CC_FOR_TARGET)"; export CC; \
6158 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6159 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6160 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6161 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6162 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6163 LD="$(LD_FOR_TARGET)"; export LD; \
6164 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6165 NM="$(NM_FOR_TARGET)"; export NM; \
6166 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6167 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6168 echo Configuring in $(TARGET_SUBDIR)/rda; \
6169 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
6171 /* | [A-Za-z]:[\\/]*) \
6172 topdir=$(srcdir) ;; \
6174 case "$(TARGET_SUBDIR)" in \
6175 .) topdir="../$(srcdir)" ;; \
6176 *) topdir="../../$(srcdir)" ;; \
6179 if [ "$(srcdir)" = "." ] ; then \
6180 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6181 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
6182 if [ -f Makefile ]; then \
6183 if $(MAKE) distclean; then \
6197 srcdiroption="--srcdir=."; \
6200 srcdiroption="--srcdir=$${topdir}/rda"; \
6201 libsrcdir="$$s/rda"; \
6203 if [ -f $${libsrcdir}/configure ] ; then \
6204 rm -f no-such-file skip-this-dir; \
6205 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6206 $(TARGET_CONFIGARGS) $${srcdiroption} \
6207 --with-target-subdir="$(TARGET_SUBDIR)"; \
6209 rm -f no-such-file skip-this-dir; \
6210 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
6211 $(TARGET_CONFIGARGS) $${srcdiroption} \
6212 --with-target-subdir="$(TARGET_SUBDIR)"; \
6214 if [ -f skip-this-dir ] ; then \
6216 rm -f skip-this-dir; \
6217 cd ..; rmdir rda || true; \
6228 .PHONY: all-target-rda
6231 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
6232 r=`${PWD}`; export r; \
6233 s=`cd $(srcdir); ${PWD}`; export s; \
6235 (cd $(TARGET_SUBDIR)/rda; \
6236 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
6241 .PHONY: check-target-rda
6244 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
6245 r=`${PWD}`; export r; \
6246 s=`cd $(srcdir); ${PWD}`; export s; \
6248 (cd $(TARGET_SUBDIR)/rda; \
6249 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
6255 .PHONY: install-target-rda
6256 install-target-rda: installdirs
6258 if [ -f $(TARGET_SUBDIR)/rda/Makefile ] ; then \
6259 r=`${PWD}`; export r; \
6260 s=`cd $(srcdir); ${PWD}`; export s; \
6262 (cd $(TARGET_SUBDIR)/rda; \
6263 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
6270 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
6273 @if [ -f ./gcc/Makefile ] ; then \
6274 r=`${PWD}`; export r; \
6275 s=`cd $(srcdir); ${PWD}`; export s; \
6277 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
6282 # Building GCC uses some tools for rebuilding "source" files
6283 # like texinfo, bison/byacc, etc. So we must depend on those.
6285 # While building GCC, it may be necessary to run various target
6286 # programs like the assembler, linker, etc. So we depend on
6289 # In theory, on an SMP all those dependencies can be resolved
6292 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
6293 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap
6294 @r=`${PWD}`; export r; \
6295 s=`cd $(srcdir); ${PWD}`; export s; \
6297 echo "Bootstrapping the compiler"; \
6298 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
6299 @r=`${PWD}`; export r; \
6300 s=`cd $(srcdir); ${PWD}`; export s; \
6302 *bootstrap4-lean ) \
6303 msg="Comparing stage3 and stage4 of the compiler"; \
6304 compare=compare3-lean ;; \
6305 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
6306 compare=compare3 ;; \
6307 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
6308 compare=compare-lean ;; \
6309 * ) msg="Comparing stage2 and stage3 of the compiler"; \
6310 compare=compare ;; \
6314 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
6315 @r=`${PWD}`; export r; \
6316 s=`cd $(srcdir); ${PWD}` ; export s; \
6318 echo "Building runtime libraries"; \
6319 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
6322 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
6323 @r=`${PWD}`; export r; \
6324 s=`cd $(srcdir); ${PWD}`; export s; \
6326 echo "Building the C and C++ compiler"; \
6327 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
6328 @r=`${PWD}`; export r; \
6329 s=`cd $(srcdir); ${PWD}` ; export s; \
6331 echo "Building runtime libraries"; \
6332 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
6333 LANGUAGES="c c++" all
6337 @if [ -f ./gcc/Makefile ] ; then \
6338 r=`${PWD}`; export r; \
6339 s=`cd $(srcdir); ${PWD}`; export s; \
6341 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
6348 @if [ -f ./gcc/Makefile ] ; then \
6349 r=`${PWD}`; export r; \
6350 s=`cd $(srcdir); ${PWD}`; export s; \
6352 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
6353 $(MAKE) check-target-libstdc++-v3; \
6360 @if [ -f ./gcc/Makefile ] ; then \
6361 r=`${PWD}`; export r; \
6362 s=`cd $(srcdir); ${PWD}`; export s; \
6364 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
6370 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
6371 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
6373 # This is a list of inter-dependencies among modules.
6374 all-autoconf: all-m4 all-texinfo
6375 all-automake: all-m4 all-texinfo
6376 all-bfd: all-libiberty all-intl
6377 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
6378 all-bison: all-texinfo
6379 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
6380 all-dejagnu: all-tcl all-expect all-tk
6381 all-diff: all-libiberty
6382 configure-target-examples: $(ALL_GCC_C)
6383 all-expect: all-tcl all-tk
6384 all-fileutils: all-libiberty
6385 all-flex: all-libiberty all-bison all-byacc
6386 all-gas: all-libiberty all-opcodes all-bfd all-intl
6387 all-gcc: all-libiberty all-bison all-byacc all-binutils all-gas all-ld all-zlib
6388 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
6390 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
6391 configure-target-gperf: $(ALL_GCC_CXX)
6392 all-target-gperf: all-target-libiberty all-target-libstdc++-v3
6393 all-gprof: all-libiberty all-bfd all-opcodes all-intl
6394 all-grep: all-libiberty
6395 all-gzip: all-libiberty
6396 all-hello: all-libiberty
6397 all-itcl: all-tcl all-tk
6398 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
6399 configure-target-libgloss: $(ALL_GCC)
6400 all-target-libgloss: configure-target-newlib
6401 all-libgui: all-tcl all-tk all-itcl
6402 configure-target-libffi: $(ALL_GCC_C)
6403 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
6404 all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
6405 configure-target-libstdc++-v3: $(ALL_GCC_C)
6406 all-target-libstdc++-v3: all-target-libiberty
6407 configure-target-libf2c: $(ALL_GCC_C)
6408 all-target-libf2c: all-target-libiberty
6409 configure-target-libobjc: $(ALL_GCC_C)
6410 all-target-libobjc: all-target-libiberty
6411 all-m4: all-libiberty all-texinfo
6412 all-make: all-libiberty
6413 configure-target-newlib: $(ALL_GCC)
6414 configure-target-libtermcap: $(ALL_GCC_C)
6415 all-opcodes: all-bfd all-libiberty
6416 all-patch: all-libiberty
6417 all-prms: all-libiberty
6418 configure-target-qthreads: $(ALL_GCC_C)
6419 all-recode: all-libiberty
6420 all-sed: all-libiberty
6421 all-send-pr: all-prms
6422 all-sid: all-tcl all-tk
6423 all-sim: all-libiberty all-bfd all-opcodes all-readline
6424 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
6425 all-tar: all-libiberty
6426 all-tclX: all-tcl all-tk
6428 all-texinfo: all-libiberty
6429 all-tix: all-tcl all-tk
6430 configure-target-winsup: $(ALL_GCC_C)
6431 all-target-winsup: all-target-libiberty all-target-libtermcap
6432 all-uudecode: all-libiberty
6433 configure-target-zlib: $(ALL_GCC_C)
6434 all-fastjar: all-zlib all-libiberty
6435 configure-target-fastjar: configure-target-zlib
6436 all-target-fastjar: all-target-zlib all-target-libiberty
6437 configure-target-libiberty: $(ALL_GCC_C)
6438 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
6439 install-sid: install-tcl install-tk
6441 # We put install-opcodes before install-binutils because the installed
6442 # binutils might be on PATH, and they might need the shared opcodes
6444 install-binutils: install-opcodes
6446 # We put install-tcl before install-itcl because itcl wants to run a
6447 # program on installation which uses the Tcl libraries.
6448 install-itcl: install-tcl
6450 # This is a slightly kludgy method of getting dependencies on
6451 # all-build-libiberty correct; it would be better to build it every time.
6452 all-gcc: @all_build_modules@
6454 # Dependencies of all-build-foo on configure-build-foo.
6455 all-build-libiberty: configure-build-libiberty
6457 # Dependencies of all-target-foo on configure-target-foo.
6458 all-target-libstdc++-v3: configure-target-libstdc++-v3
6459 all-target-newlib: configure-target-newlib
6460 all-target-libf2c: configure-target-libf2c
6461 all-target-libobjc: configure-target-libobjc
6462 all-target-libtermcap: configure-target-libtermcap
6463 all-target-winsup: configure-target-winsup
6464 all-target-libgloss: configure-target-libgloss
6465 all-target-libiberty: configure-target-libiberty
6466 all-target-gperf: configure-target-gperf
6467 all-target-examples: configure-target-examples
6468 all-target-libffi: configure-target-libffi
6469 all-target-libjava: configure-target-libjava
6470 all-target-zlib: configure-target-zlib
6471 all-target-boehm-gc: configure-target-boehm-gc
6472 all-target-qthreads: configure-target-qthreads
6473 all-target-rda: configure-target-rda
6476 ### other supporting targets
6479 $(DESTDIR)$(prefix) \
6480 $(DESTDIR)$(exec_prefix)
6482 installdirs: mkinstalldirs
6483 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
6485 dir.info: do-install-info
6486 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
6487 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
6488 mv -f dir.info.new dir.info ; \
6493 @echo "Building a full distribution of this tree isn't done"
6494 @echo "via 'make dist'. Check out the etc/ subdirectory"
6498 # Right now this just builds TAGS in each subdirectory. emacs19 has the
6499 # ability to use several tags files at once, so there is probably no need
6500 # to combine them into one big TAGS file (like CVS 1.3 does). We could
6501 # (if we felt like it) have this Makefile write a piece of elisp which
6502 # the user could load to tell emacs19 where all the TAGS files we just
6506 # Rebuilding Makefile.in, using autogen.
6507 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
6508 cd $(srcdir) && autogen Makefile.def
6510 # with the gnu make, this is done automatically.
6512 host_makefile_frag=@host_makefile_frag@
6513 target_makefile_frag=@target_makefile_frag@
6515 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
6516 $(SHELL) ./config.status
6523 # end of Makefile.in