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, 2003 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 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
28 build_alias=@build_alias@
30 build_vendor=@build_vendor@
32 build_canonical=@build_cpu@-@build_vendor@-@build_os@
33 host_alias=@host_alias@
35 host_vendor=@host_vendor@
37 host_canonical=@host_cpu@-@host_vendor@-@host_os@
38 target_alias=@target_alias@
39 target_cpu=@target_cpu@
40 target_vendor=@target_vendor@
42 target_canonical=@target_cpu@-@target_vendor@-@target_os@
44 program_transform_name = @program_transform_name@
47 exec_prefix = @exec_prefix@
53 libexecdir = @libexecdir@
55 sysconfdir = @sysconfdir@
56 sharedstatedir = @sharedstatedir@
57 localstatedir = @localstatedir@
59 includedir = @includedir@
60 oldincludedir = @oldincludedir@
63 man1dir = $(mandir)/man1
64 man2dir = $(mandir)/man2
65 man3dir = $(mandir)/man3
66 man4dir = $(mandir)/man4
67 man5dir = $(mandir)/man5
68 man6dir = $(mandir)/man6
69 man7dir = $(mandir)/man7
70 man8dir = $(mandir)/man8
71 man9dir = $(mandir)/man9
73 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
75 INSTALL_PROGRAM_ARGS =
77 INSTALL = $(SHELL) $$s/install-sh -c
78 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
79 INSTALL_SCRIPT = $(INSTALL)
80 INSTALL_DATA = $(INSTALL) -m 644
82 # -------------------------------------------------
83 # Miscellaneous non-standard autoconf-set variables
84 # -------------------------------------------------
87 # The file containing GCC's version number.
88 gcc_version_trigger = @gcc_version_trigger@
89 gcc_version = @gcc_version@
91 # The gcc driver likes to know the arguments it was configured with.
92 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
94 gxx_include_dir = @gxx_include_dir@
95 libstdcxx_incdir = @libstdcxx_incdir@
98 build_tooldir = @build_tooldir@
100 # Directory in which the compiler finds executables, libraries, etc.
101 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
104 # This is the name of the environment variable used for the path to
106 RPATH_ENVVAR = @RPATH_ENVVAR@
108 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
110 SET_LIB_PATH = @SET_LIB_PATH@
112 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
113 # Some platforms don't like blank entries, so we remove duplicate,
114 # leading and trailing colons.
115 REALLY_SET_LIB_PATH = \
116 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
118 # This is the list of directories to be built for the build system.
119 BUILD_CONFIGDIRS = libiberty
120 # Build programs are put under this directory.
121 BUILD_SUBDIR = @build_subdir@
122 # This is set by the configure script to the arguments to use when configuring
123 # directories built for the build system.
124 BUILD_CONFIGARGS = @build_configargs@
126 # This is the list of directories to built for the host system.
127 SUBDIRS = @configdirs@
128 # This is set by the configure script to the arguments to use when configuring
129 # directories built for the host system.
130 HOST_CONFIGARGS = @host_configargs@
132 # This is set by the configure script to the list of directories which
133 # should be built using the target tools.
134 TARGET_CONFIGDIRS = @target_configdirs@
135 # Target libraries are put under this directory:
136 TARGET_SUBDIR = @target_subdir@
137 # This is set by the configure script to the arguments to use when configuring
138 # directories built for the target.
139 TARGET_CONFIGARGS = @target_configargs@
141 # ----------------------------------------------
142 # Programs producing files for the BUILD machine
143 # ----------------------------------------------
145 SHELL = @config_shell@
147 # pwd command to use. Allow user to override default by setting PWDCMD in
148 # the environment to account for automounters. The make variable must not
149 # be called PWDCMD, otherwise the value set here is passed to make
150 # subprocesses and overrides the setting from the user's environment.
153 # compilers to use to create programs which must be run in the build
155 CC_FOR_BUILD = @CC_FOR_BUILD@
156 CFLAGS_FOR_BUILD = $(CFLAGS)
158 CXX_FOR_BUILD = $(CXX)
160 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
161 # here so that they can be overridden by Makefile fragments.
162 BUILD_CC = $(CC_FOR_BUILD)
163 BUILD_PREFIX = @BUILD_PREFIX@
164 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
167 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
168 echo $$r/bison/bison -L $$s/bison/ ; \
173 DEFAULT_YACC = @DEFAULT_YACC@
175 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
176 echo $$r/bison/bison -y -L $$s/bison/ ; \
177 elif [ -f $$r/byacc/byacc ] ; then \
178 echo $$r/byacc/byacc ; \
180 echo ${DEFAULT_YACC} ; \
183 DEFAULT_LEX = @DEFAULT_LEX@
185 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
186 then echo $$r/flex/flex ; \
187 else echo ${DEFAULT_LEX} ; fi`
189 DEFAULT_M4 = @DEFAULT_M4@
190 M4 = `if [ -f $$r/m4/m4 ] ; \
191 then echo $$r/m4/m4 ; \
192 else echo ${DEFAULT_M4} ; fi`
194 # For an installed makeinfo, we require it to be from texinfo 4 or
195 # higher, else we use the "missing" dummy.
197 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
198 then echo $$r/texinfo/makeinfo/makeinfo ; \
199 else if (makeinfo --version \
200 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
201 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
203 # This just becomes part of the MAKEINFO definition passed down to
204 # sub-makes. It lets flags be given on the command line while still
205 # using the makeinfo from the object tree.
208 EXPECT = `if [ -f $$r/expect/expect ] ; \
209 then echo $$r/expect/expect ; \
210 else echo expect ; fi`
212 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
213 then echo $$s/dejagnu/runtest ; \
214 else echo runtest ; fi`
216 # ---------------------------------------------
217 # Programs producing files for the HOST machine
218 # ---------------------------------------------
220 # This is the list of directories that may be needed in RPATH_ENVVAR
221 # so that programs built for the host machine work.
222 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
231 LIBCFLAGS = $(CFLAGS)
234 CXXFLAGS = @CXXFLAGS@
235 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
250 # -----------------------------------------------
251 # Programs producing files for the TARGET machine
252 # -----------------------------------------------
254 # This is the list of directories that may be needed in RPATH_ENVVAR
255 # so that prorgams built for the target machine work.
256 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
258 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
260 AR_FOR_TARGET=@AR_FOR_TARGET@
261 USUAL_AR_FOR_TARGET = ` \
262 if [ -f $$r/binutils/ar ] ; then \
263 echo $$r/binutils/ar ; \
265 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
268 echo ar | sed '$(program_transform_name)' ; \
272 AS_FOR_TARGET=@AS_FOR_TARGET@
273 USUAL_AS_FOR_TARGET = ` \
274 if [ -f $$r/gas/as-new ] ; then \
275 echo $$r/gas/as-new ; \
276 elif [ -f $$r/gcc/xgcc ]; then \
277 $(CC_FOR_TARGET) -print-prog-name=as ; \
279 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
282 echo as | sed '$(program_transform_name)' ; \
286 CC_FOR_TARGET = @CC_FOR_TARGET@
287 # During gcc bootstrap, if we use some random cc for stage1 then
288 # CFLAGS will be just -g. We want to ensure that TARGET libraries
289 # (which we know are built with gcc) are built with optimizations so
290 # prepend -O2 when setting CFLAGS_FOR_TARGET.
291 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
292 # If GCC_FOR_TARGET is not overriden on the command line, then this
293 # variable is passed down to the gcc Makefile, where it is used to
294 # build libgcc2.a. We define it here so that it can itself be
295 # overridden on the command line.
296 GCC_FOR_TARGET=@GCC_FOR_TARGET@
297 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
298 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
300 CXX_FOR_TARGET = @CXX_FOR_TARGET@
301 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
302 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
303 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
304 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
305 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
307 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
308 USUAL_DLLTOOL_FOR_TARGET = ` \
309 if [ -f $$r/binutils/dlltool ] ; then \
310 echo $$r/binutils/dlltool ; \
312 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
315 echo dlltool | sed '$(program_transform_name)' ; \
319 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
321 LD_FOR_TARGET=@LD_FOR_TARGET@
322 USUAL_LD_FOR_TARGET = ` \
323 if [ -f $$r/ld/ld-new ] ; then \
324 echo $$r/ld/ld-new ; \
325 elif [ -f $$r/gcc/xgcc ]; then \
326 $(CC_FOR_TARGET) -print-prog-name=ld ; \
328 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
331 echo ld | sed '$(program_transform_name)' ; \
337 NM_FOR_TARGET=@NM_FOR_TARGET@
338 USUAL_NM_FOR_TARGET = ` \
339 if [ -f $$r/binutils/nm-new ] ; then \
340 echo $$r/binutils/nm-new ; \
341 elif [ -f $$r/gcc/xgcc ]; then \
342 $(CC_FOR_TARGET) -print-prog-name=nm ; \
344 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
347 echo nm | sed '$(program_transform_name)' ; \
351 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
352 USUAL_RANLIB_FOR_TARGET = ` \
353 if [ -f $$r/binutils/ranlib ] ; then \
354 echo $$r/binutils/ranlib ; \
356 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
357 if [ x'$(RANLIB)' != x ]; then \
363 echo ranlib | sed '$(program_transform_name)' ; \
367 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
368 USUAL_WINDRES_FOR_TARGET = ` \
369 if [ -f $$r/binutils/windres ] ; then \
370 echo $$r/binutils/windres ; \
372 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
375 echo windres | sed '$(program_transform_name)' ; \
381 # ------------------------------------
382 # Miscellaneous targets and flag lists
383 # ------------------------------------
385 # The first rule in the file had better be this one. Don't put any above it.
386 # This lives here to allow makefile fragments to contain dependencies.
390 #### host and target specific makefile fragments come in here.
391 @target_makefile_frag@
397 # Flags to pass down to all sub-makes.
398 # Please keep these in alphabetical order.
399 BASE_FLAGS_TO_PASS = \
400 "AR_FLAGS=$(AR_FLAGS)" \
401 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
402 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
404 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
405 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
407 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
408 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
409 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
410 "CXXFLAGS=$(CXXFLAGS)" \
411 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
412 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
413 "DESTDIR=$(DESTDIR)" \
414 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
415 "INSTALL=$(INSTALL)" \
416 "INSTALL_DATA=$(INSTALL_DATA)" \
417 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
418 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
419 "LDFLAGS=$(LDFLAGS)" \
421 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
422 "LIBCFLAGS=$(LIBCFLAGS)" \
423 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
424 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
425 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
428 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
429 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
430 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
431 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
434 "RUNTEST=$(RUNTEST)" \
435 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
436 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
437 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
440 "datadir=$(datadir)" \
441 "exec_prefix=$(exec_prefix)" \
442 "includedir=$(includedir)" \
443 "infodir=$(infodir)" \
445 "libexecdir=$(libexecdir)" \
446 "lispdir=$(lispdir)" \
447 "libstdcxx_incdir=$(libstdcxx_incdir)" \
448 "libsubdir=$(libsubdir)" \
449 "localstatedir=$(localstatedir)" \
451 "oldincludedir=$(oldincludedir)" \
453 "sbindir=$(sbindir)" \
454 "sharedstatedir=$(sharedstatedir)" \
455 "sysconfdir=$(sysconfdir)" \
456 "tooldir=$(tooldir)" \
457 "build_tooldir=$(build_tooldir)" \
458 "gxx_include_dir=$(gxx_include_dir)" \
459 "gcc_version=$(gcc_version)" \
460 "gcc_version_trigger=$(gcc_version_trigger)" \
461 "target_alias=$(target_alias)"
463 # For any flags above that may contain shell code that varies from one
464 # target library to another. When doing recursive invocations of the
465 # top-level Makefile, we don't want the outer make to evaluate them,
466 # so we pass these variables down unchanged. They must not contain
467 # single nor double quotes.
469 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
470 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
472 # Flags to pass down to most sub-makes, in which we're building with
473 # the host environment.
474 # If any variables are added here, they must be added to do-*, below.
480 'DLLTOOL=$(DLLTOOL)' \
486 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
488 # Flags that are concerned with the location of the X11 include files
491 # NOTE: until the top-level is getting the values via autoconf, it only
492 # causes problems to have this top-level Makefile overriding the autoconf-set
493 # values in child directories. Only variables that don't conflict with
494 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
496 X11_FLAGS_TO_PASS = \
497 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
498 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
500 # Flags to pass down to makes which are built with the target environment.
501 # The double $ decreases the length of the command line; the variables
502 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
503 # If any variables are added here, they must be added to do-*, below.
504 EXTRA_TARGET_FLAGS = \
505 'AR=$$(AR_FOR_TARGET)' \
506 'AS=$$(AS_FOR_TARGET)' \
507 'CC=$$(CC_FOR_TARGET)' \
508 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
509 'CXX=$$(CXX_FOR_TARGET)' \
510 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
511 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
512 'LD=$$(LD_FOR_TARGET)' \
513 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
514 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
515 'NM=$$(NM_FOR_TARGET)' \
516 'RANLIB=$$(RANLIB_FOR_TARGET)' \
517 'WINDRES=$$(WINDRES_FOR_TARGET)'
519 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
521 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
522 # unfortunately needs the native compiler and the target ar and
524 # If any variables are added here, they must be added to do-*, below.
525 # The HOST_* variables are a special case, which are used for the gcc
526 # cross-building scheme.
532 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
533 'BUILD_CC=$(CC_FOR_BUILD)' \
534 'BUILD_PREFIX=$(BUILD_PREFIX)' \
535 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
538 'WINDRES=$$(WINDRES_FOR_TARGET)' \
539 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
540 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
541 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
542 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
543 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
544 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
545 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
546 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
547 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
548 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
549 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
551 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
553 configure-host: @configure_host_modules@
554 configure-target: @configure_target_modules@
556 # This is a list of the targets for which we can do a clean-{target}.
617 # All of the target modules that can be cleaned
618 CLEAN_TARGET_MODULES = \
619 clean-target-libstdc++-v3 \
620 clean-target-newlib \
621 clean-target-libf2c \
622 clean-target-libobjc \
623 clean-target-winsup \
624 clean-target-libgloss \
625 clean-target-libiberty \
627 clean-target-examples \
628 clean-target-libffi \
629 clean-target-libjava \
631 clean-target-boehm-gc \
632 clean-target-qthreads \
635 # All of the x11 modules that can be cleaned
636 CLEAN_X11_MODULES = \
643 # The target built for a native build.
644 # This list only includes modules actually being configured and built.
646 all.normal: @all_build_modules@ \
650 all-host: @all_host_modules@
651 all-target: @all_target_modules@
653 # Do a target for all the subdirectories. A ``make do-X'' will do a
654 # ``make X'' in all subdirectories (because, in general, there is a
655 # dependency (below) of X upon do-X, a ``make X'' will also do this,
656 # but it may do additional work as well).
657 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
658 # because it is so large that it can easily overflow the command line
659 # length limit on some systems.
663 @r=`${PWD}`; export r; \
664 s=`cd $(srcdir); ${PWD}`; export s; \
666 for i in $(SUBDIRS) -dummy-; do \
667 if [ -f ./$$i/Makefile ]; then \
670 for flag in $(EXTRA_GCC_FLAGS); do \
671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
675 for flag in $(EXTRA_HOST_FLAGS); do \
676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
683 "RANLIB=$${RANLIB}" \
684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
689 # Break into two pieces
690 r=`${PWD}`; export r; \
691 s=`cd $(srcdir); ${PWD}`; export s; \
693 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
694 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
695 for flag in $(EXTRA_TARGET_FLAGS); do \
696 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
698 (cd $(TARGET_SUBDIR)/$$i && \
699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
701 "RANLIB=$${RANLIB}" \
702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
710 @r=`${PWD}`; export r; \
711 s=`cd $(srcdir); ${PWD}`; export s; \
713 for i in $(SUBDIRS) -dummy-; do \
714 if [ -f ./$$i/Makefile ]; then \
717 for flag in $(EXTRA_GCC_FLAGS); do \
718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
722 for flag in $(EXTRA_HOST_FLAGS); do \
723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
730 "RANLIB=$${RANLIB}" \
731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
736 # Break into two pieces
737 r=`${PWD}`; export r; \
738 s=`cd $(srcdir); ${PWD}`; export s; \
740 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
741 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
742 for flag in $(EXTRA_TARGET_FLAGS); do \
743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
745 (cd $(TARGET_SUBDIR)/$$i && \
746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
748 "RANLIB=$${RANLIB}" \
749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
757 @r=`${PWD}`; export r; \
758 s=`cd $(srcdir); ${PWD}`; export s; \
760 for i in $(SUBDIRS) -dummy-; do \
761 if [ -f ./$$i/Makefile ]; then \
764 for flag in $(EXTRA_GCC_FLAGS); do \
765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
769 for flag in $(EXTRA_HOST_FLAGS); do \
770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
777 "RANLIB=$${RANLIB}" \
778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
783 # Break into two pieces
784 r=`${PWD}`; export r; \
785 s=`cd $(srcdir); ${PWD}`; export s; \
787 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
788 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
789 for flag in $(EXTRA_TARGET_FLAGS); do \
790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
792 (cd $(TARGET_SUBDIR)/$$i && \
793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
795 "RANLIB=$${RANLIB}" \
796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
804 @r=`${PWD}`; export r; \
805 s=`cd $(srcdir); ${PWD}`; export s; \
807 for i in $(SUBDIRS) -dummy-; do \
808 if [ -f ./$$i/Makefile ]; then \
811 for flag in $(EXTRA_GCC_FLAGS); do \
812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
816 for flag in $(EXTRA_HOST_FLAGS); do \
817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
824 "RANLIB=$${RANLIB}" \
825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
830 # Break into two pieces
831 r=`${PWD}`; export r; \
832 s=`cd $(srcdir); ${PWD}`; export s; \
834 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
835 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
836 for flag in $(EXTRA_TARGET_FLAGS); do \
837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
839 (cd $(TARGET_SUBDIR)/$$i && \
840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
842 "RANLIB=$${RANLIB}" \
843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
849 .PHONY: do-install-info
851 @r=`${PWD}`; export r; \
852 s=`cd $(srcdir); ${PWD}`; export s; \
854 for i in $(SUBDIRS) -dummy-; do \
855 if [ -f ./$$i/Makefile ]; then \
858 for flag in $(EXTRA_GCC_FLAGS); do \
859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
863 for flag in $(EXTRA_HOST_FLAGS); do \
864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
871 "RANLIB=$${RANLIB}" \
872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
877 # Break into two pieces
878 r=`${PWD}`; export r; \
879 s=`cd $(srcdir); ${PWD}`; export s; \
881 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
882 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
883 for flag in $(EXTRA_TARGET_FLAGS); do \
884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
886 (cd $(TARGET_SUBDIR)/$$i && \
887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
889 "RANLIB=$${RANLIB}" \
890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
896 .PHONY: do-installcheck
898 @r=`${PWD}`; export r; \
899 s=`cd $(srcdir); ${PWD}`; export s; \
901 for i in $(SUBDIRS) -dummy-; do \
902 if [ -f ./$$i/Makefile ]; then \
905 for flag in $(EXTRA_GCC_FLAGS); do \
906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
910 for flag in $(EXTRA_HOST_FLAGS); do \
911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
918 "RANLIB=$${RANLIB}" \
919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
924 # Break into two pieces
925 r=`${PWD}`; export r; \
926 s=`cd $(srcdir); ${PWD}`; export s; \
928 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
929 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
930 for flag in $(EXTRA_TARGET_FLAGS); do \
931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
933 (cd $(TARGET_SUBDIR)/$$i && \
934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
936 "RANLIB=$${RANLIB}" \
937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
943 .PHONY: do-mostlyclean
945 @r=`${PWD}`; export r; \
946 s=`cd $(srcdir); ${PWD}`; export s; \
948 for i in $(SUBDIRS) -dummy-; do \
949 if [ -f ./$$i/Makefile ]; then \
952 for flag in $(EXTRA_GCC_FLAGS); do \
953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
957 for flag in $(EXTRA_HOST_FLAGS); do \
958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
965 "RANLIB=$${RANLIB}" \
966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
971 # Break into two pieces
972 r=`${PWD}`; export r; \
973 s=`cd $(srcdir); ${PWD}`; export s; \
975 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
976 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
977 for flag in $(EXTRA_TARGET_FLAGS); do \
978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
980 (cd $(TARGET_SUBDIR)/$$i && \
981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
983 "RANLIB=$${RANLIB}" \
984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
990 .PHONY: do-maintainer-clean
992 @r=`${PWD}`; export r; \
993 s=`cd $(srcdir); ${PWD}`; export s; \
995 for i in $(SUBDIRS) -dummy-; do \
996 if [ -f ./$$i/Makefile ]; then \
999 for flag in $(EXTRA_GCC_FLAGS); do \
1000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1004 for flag in $(EXTRA_HOST_FLAGS); do \
1005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1012 "RANLIB=$${RANLIB}" \
1013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1018 # Break into two pieces
1019 r=`${PWD}`; export r; \
1020 s=`cd $(srcdir); ${PWD}`; export s; \
1022 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1023 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1024 for flag in $(EXTRA_TARGET_FLAGS); do \
1025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 (cd $(TARGET_SUBDIR)/$$i && \
1028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1030 "RANLIB=$${RANLIB}" \
1031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1039 @r=`${PWD}`; export r; \
1040 s=`cd $(srcdir); ${PWD}`; export s; \
1042 for i in $(SUBDIRS) -dummy-; do \
1043 if [ -f ./$$i/Makefile ]; then \
1046 for flag in $(EXTRA_GCC_FLAGS); do \
1047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1051 for flag in $(EXTRA_HOST_FLAGS); do \
1052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1059 "RANLIB=$${RANLIB}" \
1060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1065 # Break into two pieces
1066 r=`${PWD}`; export r; \
1067 s=`cd $(srcdir); ${PWD}`; export s; \
1069 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1070 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1071 for flag in $(EXTRA_TARGET_FLAGS); do \
1072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1074 (cd $(TARGET_SUBDIR)/$$i && \
1075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1077 "RANLIB=$${RANLIB}" \
1078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1086 # Here are the targets which correspond to the do-X targets.
1088 .PHONY: info installcheck dvi install-info
1089 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1090 .PHONY: local-clean local-distclean local-maintainer-clean
1092 installcheck: do-installcheck
1095 # Make sure makeinfo is built before we do a `make info', if we're
1096 # in fact building texinfo.
1097 do-info: maybe-all-texinfo
1099 install-info: do-install-info dir.info
1100 s=`cd $(srcdir); ${PWD}`; export s; \
1101 if [ -f dir.info ] ; then \
1102 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1106 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1109 -rm -f Makefile config.status config.cache mh-frag mt-frag
1110 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1111 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1112 rm -rf $(TARGET_SUBDIR); \
1114 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1115 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1116 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1117 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1118 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1120 local-maintainer-clean:
1121 @echo "This command is intended for maintainers to use;"
1122 @echo "it deletes files that may require special tools to rebuild."
1124 clean: do-clean local-clean
1125 mostlyclean: do-mostlyclean local-clean
1126 distclean: do-distclean local-clean local-distclean
1127 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1128 maintainer-clean: local-distclean
1129 realclean: maintainer-clean
1131 # This rule is used to clean specific modules.
1132 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1133 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1134 @dir=`echo $@ | sed -e 's/clean-//'`; \
1135 if [ -f ./$${dir}/Makefile ] ; then \
1136 r=`${PWD}`; export r; \
1137 s=`cd $(srcdir); ${PWD}`; export s; \
1139 (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
1144 .PHONY: $(CLEAN_TARGET_MODULES)
1145 $(CLEAN_TARGET_MODULES):
1146 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1147 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1148 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1149 r=`${PWD}`; export r; \
1150 s=`cd $(srcdir); ${PWD}`; export s; \
1152 (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1157 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1158 clean-target-libgcc:
1159 test ! -d gcc/libgcc || \
1160 (cd gcc/libgcc && find . -type d -print) | \
1161 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1166 .PHONY: check do-check
1168 $(MAKE) do-check NOTPARALLEL=parallel-ok
1170 # Only include modules actually being configured and built.
1171 do-check: @check_host_modules@ \
1172 @check_target_modules@
1174 # Automated reporting of test results.
1176 warning.log: build.log
1177 $(srcdir)/contrib/warn_summary build.log > $@
1180 if test x'$(BOOT_CFLAGS)' != x''; then \
1181 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1183 $(srcdir)/contrib/test_summary -t >$@
1185 echo If you really want to send e-mail, run ./$@ now
1187 mail-report-with-warnings.log: warning.log
1188 if test x'$(BOOT_CFLAGS)' != x''; then \
1189 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1191 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1193 echo If you really want to send e-mail, run ./$@ now
1195 # Installation targets.
1197 .PHONY: install uninstall
1198 install: installdirs @install_host_modules@ @install_target_modules@
1200 install-target: @install_target_modules@
1203 @echo "the uninstall target is not supported in this tree"
1206 install.all: install-no-fixedincludes
1207 @if [ -f ./gcc/Makefile ] ; then \
1208 r=`${PWD}` ; export r ; \
1211 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1216 # install-no-fixedincludes is used because Cygnus can not distribute
1217 # the fixed header files.
1218 .PHONY: install-no-fixedincludes
1219 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1220 @install_target_modules@ gcc-no-fixedincludes
1222 ### other supporting targets
1225 $(DESTDIR)$(prefix) \
1226 $(DESTDIR)$(exec_prefix)
1228 installdirs: mkinstalldirs
1229 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1231 dir.info: do-install-info
1232 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1233 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1234 mv -f dir.info.new dir.info ; \
1239 @echo "Building a full distribution of this tree isn't done"
1240 @echo "via 'make dist'. Check out the etc/ subdirectory"
1244 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1245 # ability to use several tags files at once, so there is probably no need
1246 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1247 # (if we felt like it) have this Makefile write a piece of elisp which
1248 # the user could load to tell emacs19 where all the TAGS files we just
1252 # --------------------------------------
1253 # Modules which run on the build machine
1254 # --------------------------------------
1256 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1257 maybe-configure-build-libiberty:
1258 configure-build-libiberty:
1259 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1260 [ -d $(BUILD_SUBDIR)/libiberty ] || \
1261 mkdir $(BUILD_SUBDIR)/libiberty;\
1262 r=`${PWD}`; export r; \
1263 s=`cd $(srcdir); ${PWD}`; export s; \
1264 AR="$(AR_FOR_BUILD)"; export AR; \
1265 AS="$(AS_FOR_BUILD)"; export AS; \
1266 CC="$(CC_FOR_BUILD)"; export CC; \
1267 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1268 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1269 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1270 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1271 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1272 LD="$(LD_FOR_BUILD)"; export LD; \
1273 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1274 NM="$(NM_FOR_BUILD)"; export NM; \
1275 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1276 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1277 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1278 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1280 /* | [A-Za-z]:[\\/]*) \
1281 topdir=$(srcdir) ;; \
1283 case "$(BUILD_SUBDIR)" in \
1284 .) topdir="../$(srcdir)" ;; \
1285 *) topdir="../../$(srcdir)" ;; \
1288 if [ "$(srcdir)" = "." ] ; then \
1289 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1290 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1291 if [ -f Makefile ]; then \
1292 if $(MAKE) distclean; then \
1306 srcdiroption="--srcdir=."; \
1309 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1310 libsrcdir="$$s/libiberty"; \
1312 rm -f no-such-file || : ; \
1313 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1314 $(BUILD_CONFIGARGS) $${srcdiroption} \
1315 --with-build-subdir="$(BUILD_SUBDIR)" \
1318 .PHONY: all-build-libiberty maybe-all-build-libiberty
1319 maybe-all-build-libiberty:
1320 all-build-libiberty: configure-build-libiberty
1321 @r=`${PWD}`; export r; \
1322 s=`cd $(srcdir); ${PWD}`; export s; \
1323 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1326 # --------------------------------------
1327 # Modules which run on the host machine
1328 # --------------------------------------
1330 .PHONY: configure-ash maybe-configure-ash
1331 maybe-configure-ash:
1333 @test ! -f ash/Makefile || exit 0; \
1334 [ -d ash ] || mkdir ash; \
1335 r=`${PWD}`; export r; \
1336 s=`cd $(srcdir); ${PWD}`; export s; \
1337 CC="$(CC)"; export CC; \
1338 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1339 CXX="$(CXX)"; export CXX; \
1340 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1341 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1342 AR="$(AR)"; export AR; \
1343 AS="$(AS)"; export AS; \
1344 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1345 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1346 LD="$(LD)"; export LD; \
1347 NM="$(NM)"; export NM; \
1348 RANLIB="$(RANLIB)"; export RANLIB; \
1349 WINDRES="$(WINDRES)"; export WINDRES; \
1350 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1351 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1353 echo Configuring in ash; \
1357 srcdiroption="--srcdir=."; \
1359 /* | [A-Za-z]:[\\/]*) \
1360 srcdiroption="--srcdir=$(srcdir)/ash"; \
1361 libsrcdir="$$s/ash";; \
1363 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1364 libsrcdir="$$s/ash";; \
1366 $(SHELL) $${libsrcdir}/configure \
1367 $(HOST_CONFIGARGS) $${srcdiroption} \
1370 .PHONY: all-ash maybe-all-ash
1372 all-ash: configure-ash
1373 @r=`${PWD}`; export r; \
1374 s=`cd $(srcdir); ${PWD}`; export s; \
1376 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
1381 @r=`${PWD}`; export r; \
1382 s=`cd $(srcdir); ${PWD}`; export s; \
1384 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1388 .PHONY: install-ash maybe-install-ash
1390 install-ash: installdirs
1391 @r=`${PWD}`; export r; \
1392 s=`cd $(srcdir); ${PWD}`; export s; \
1394 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1397 .PHONY: configure-autoconf maybe-configure-autoconf
1398 maybe-configure-autoconf:
1400 @test ! -f autoconf/Makefile || exit 0; \
1401 [ -d autoconf ] || mkdir autoconf; \
1402 r=`${PWD}`; export r; \
1403 s=`cd $(srcdir); ${PWD}`; export s; \
1404 CC="$(CC)"; export CC; \
1405 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1406 CXX="$(CXX)"; export CXX; \
1407 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1408 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1409 AR="$(AR)"; export AR; \
1410 AS="$(AS)"; export AS; \
1411 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1412 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1413 LD="$(LD)"; export LD; \
1414 NM="$(NM)"; export NM; \
1415 RANLIB="$(RANLIB)"; export RANLIB; \
1416 WINDRES="$(WINDRES)"; export WINDRES; \
1417 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1418 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1420 echo Configuring in autoconf; \
1421 cd autoconf || exit 1; \
1424 srcdiroption="--srcdir=."; \
1426 /* | [A-Za-z]:[\\/]*) \
1427 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1428 libsrcdir="$$s/autoconf";; \
1430 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1431 libsrcdir="$$s/autoconf";; \
1433 $(SHELL) $${libsrcdir}/configure \
1434 $(HOST_CONFIGARGS) $${srcdiroption} \
1437 .PHONY: all-autoconf maybe-all-autoconf
1439 all-autoconf: configure-autoconf
1440 @r=`${PWD}`; export r; \
1441 s=`cd $(srcdir); ${PWD}`; export s; \
1443 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
1446 .PHONY: check-autoconf
1448 @r=`${PWD}`; export r; \
1449 s=`cd $(srcdir); ${PWD}`; export s; \
1451 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1455 .PHONY: install-autoconf maybe-install-autoconf
1456 maybe-install-autoconf:
1457 install-autoconf: installdirs
1458 @r=`${PWD}`; export r; \
1459 s=`cd $(srcdir); ${PWD}`; export s; \
1461 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1464 .PHONY: configure-automake maybe-configure-automake
1465 maybe-configure-automake:
1467 @test ! -f automake/Makefile || exit 0; \
1468 [ -d automake ] || mkdir automake; \
1469 r=`${PWD}`; export r; \
1470 s=`cd $(srcdir); ${PWD}`; export s; \
1471 CC="$(CC)"; export CC; \
1472 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1473 CXX="$(CXX)"; export CXX; \
1474 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1475 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1476 AR="$(AR)"; export AR; \
1477 AS="$(AS)"; export AS; \
1478 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1479 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1480 LD="$(LD)"; export LD; \
1481 NM="$(NM)"; export NM; \
1482 RANLIB="$(RANLIB)"; export RANLIB; \
1483 WINDRES="$(WINDRES)"; export WINDRES; \
1484 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1485 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1487 echo Configuring in automake; \
1488 cd automake || exit 1; \
1491 srcdiroption="--srcdir=."; \
1493 /* | [A-Za-z]:[\\/]*) \
1494 srcdiroption="--srcdir=$(srcdir)/automake"; \
1495 libsrcdir="$$s/automake";; \
1497 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1498 libsrcdir="$$s/automake";; \
1500 $(SHELL) $${libsrcdir}/configure \
1501 $(HOST_CONFIGARGS) $${srcdiroption} \
1504 .PHONY: all-automake maybe-all-automake
1506 all-automake: configure-automake
1507 @r=`${PWD}`; export r; \
1508 s=`cd $(srcdir); ${PWD}`; export s; \
1510 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
1513 .PHONY: check-automake
1515 @r=`${PWD}`; export r; \
1516 s=`cd $(srcdir); ${PWD}`; export s; \
1518 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1522 .PHONY: install-automake maybe-install-automake
1523 maybe-install-automake:
1524 install-automake: installdirs
1525 @r=`${PWD}`; export r; \
1526 s=`cd $(srcdir); ${PWD}`; export s; \
1528 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1531 .PHONY: configure-bash maybe-configure-bash
1532 maybe-configure-bash:
1534 @test ! -f bash/Makefile || exit 0; \
1535 [ -d bash ] || mkdir bash; \
1536 r=`${PWD}`; export r; \
1537 s=`cd $(srcdir); ${PWD}`; export s; \
1538 CC="$(CC)"; export CC; \
1539 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1540 CXX="$(CXX)"; export CXX; \
1541 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1542 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1543 AR="$(AR)"; export AR; \
1544 AS="$(AS)"; export AS; \
1545 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1546 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1547 LD="$(LD)"; export LD; \
1548 NM="$(NM)"; export NM; \
1549 RANLIB="$(RANLIB)"; export RANLIB; \
1550 WINDRES="$(WINDRES)"; export WINDRES; \
1551 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1552 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1554 echo Configuring in bash; \
1555 cd bash || exit 1; \
1558 srcdiroption="--srcdir=."; \
1560 /* | [A-Za-z]:[\\/]*) \
1561 srcdiroption="--srcdir=$(srcdir)/bash"; \
1562 libsrcdir="$$s/bash";; \
1564 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1565 libsrcdir="$$s/bash";; \
1567 $(SHELL) $${libsrcdir}/configure \
1568 $(HOST_CONFIGARGS) $${srcdiroption} \
1571 .PHONY: all-bash maybe-all-bash
1573 all-bash: configure-bash
1574 @r=`${PWD}`; export r; \
1575 s=`cd $(srcdir); ${PWD}`; export s; \
1577 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
1582 @r=`${PWD}`; export r; \
1583 s=`cd $(srcdir); ${PWD}`; export s; \
1585 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
1589 .PHONY: install-bash maybe-install-bash
1591 install-bash: installdirs
1592 @r=`${PWD}`; export r; \
1593 s=`cd $(srcdir); ${PWD}`; export s; \
1595 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1598 .PHONY: configure-bfd maybe-configure-bfd
1599 maybe-configure-bfd:
1601 @test ! -f bfd/Makefile || exit 0; \
1602 [ -d bfd ] || mkdir bfd; \
1603 r=`${PWD}`; export r; \
1604 s=`cd $(srcdir); ${PWD}`; export s; \
1605 CC="$(CC)"; export CC; \
1606 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1607 CXX="$(CXX)"; export CXX; \
1608 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1609 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1610 AR="$(AR)"; export AR; \
1611 AS="$(AS)"; export AS; \
1612 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1613 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1614 LD="$(LD)"; export LD; \
1615 NM="$(NM)"; export NM; \
1616 RANLIB="$(RANLIB)"; export RANLIB; \
1617 WINDRES="$(WINDRES)"; export WINDRES; \
1618 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1619 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1621 echo Configuring in bfd; \
1625 srcdiroption="--srcdir=."; \
1627 /* | [A-Za-z]:[\\/]*) \
1628 srcdiroption="--srcdir=$(srcdir)/bfd"; \
1629 libsrcdir="$$s/bfd";; \
1631 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1632 libsrcdir="$$s/bfd";; \
1634 $(SHELL) $${libsrcdir}/configure \
1635 $(HOST_CONFIGARGS) $${srcdiroption} \
1638 .PHONY: all-bfd maybe-all-bfd
1640 all-bfd: configure-bfd
1641 @r=`${PWD}`; export r; \
1642 s=`cd $(srcdir); ${PWD}`; export s; \
1644 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
1649 @r=`${PWD}`; export r; \
1650 s=`cd $(srcdir); ${PWD}`; export s; \
1652 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
1656 .PHONY: install-bfd maybe-install-bfd
1658 install-bfd: installdirs
1659 @r=`${PWD}`; export r; \
1660 s=`cd $(srcdir); ${PWD}`; export s; \
1662 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
1665 .PHONY: configure-opcodes maybe-configure-opcodes
1666 maybe-configure-opcodes:
1668 @test ! -f opcodes/Makefile || exit 0; \
1669 [ -d opcodes ] || mkdir opcodes; \
1670 r=`${PWD}`; export r; \
1671 s=`cd $(srcdir); ${PWD}`; export s; \
1672 CC="$(CC)"; export CC; \
1673 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1674 CXX="$(CXX)"; export CXX; \
1675 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1676 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1677 AR="$(AR)"; export AR; \
1678 AS="$(AS)"; export AS; \
1679 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1680 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1681 LD="$(LD)"; export LD; \
1682 NM="$(NM)"; export NM; \
1683 RANLIB="$(RANLIB)"; export RANLIB; \
1684 WINDRES="$(WINDRES)"; export WINDRES; \
1685 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1686 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1688 echo Configuring in opcodes; \
1689 cd opcodes || exit 1; \
1692 srcdiroption="--srcdir=."; \
1694 /* | [A-Za-z]:[\\/]*) \
1695 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1696 libsrcdir="$$s/opcodes";; \
1698 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1699 libsrcdir="$$s/opcodes";; \
1701 $(SHELL) $${libsrcdir}/configure \
1702 $(HOST_CONFIGARGS) $${srcdiroption} \
1705 .PHONY: all-opcodes maybe-all-opcodes
1707 all-opcodes: configure-opcodes
1708 @r=`${PWD}`; export r; \
1709 s=`cd $(srcdir); ${PWD}`; export s; \
1711 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
1714 .PHONY: check-opcodes
1716 @r=`${PWD}`; export r; \
1717 s=`cd $(srcdir); ${PWD}`; export s; \
1719 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
1723 .PHONY: install-opcodes maybe-install-opcodes
1724 maybe-install-opcodes:
1725 install-opcodes: installdirs
1726 @r=`${PWD}`; export r; \
1727 s=`cd $(srcdir); ${PWD}`; export s; \
1729 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
1732 .PHONY: configure-binutils maybe-configure-binutils
1733 maybe-configure-binutils:
1735 @test ! -f binutils/Makefile || exit 0; \
1736 [ -d binutils ] || mkdir binutils; \
1737 r=`${PWD}`; export r; \
1738 s=`cd $(srcdir); ${PWD}`; export s; \
1739 CC="$(CC)"; export CC; \
1740 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1741 CXX="$(CXX)"; export CXX; \
1742 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1743 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1744 AR="$(AR)"; export AR; \
1745 AS="$(AS)"; export AS; \
1746 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1747 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1748 LD="$(LD)"; export LD; \
1749 NM="$(NM)"; export NM; \
1750 RANLIB="$(RANLIB)"; export RANLIB; \
1751 WINDRES="$(WINDRES)"; export WINDRES; \
1752 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1753 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1755 echo Configuring in binutils; \
1756 cd binutils || exit 1; \
1759 srcdiroption="--srcdir=."; \
1761 /* | [A-Za-z]:[\\/]*) \
1762 srcdiroption="--srcdir=$(srcdir)/binutils"; \
1763 libsrcdir="$$s/binutils";; \
1765 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1766 libsrcdir="$$s/binutils";; \
1768 $(SHELL) $${libsrcdir}/configure \
1769 $(HOST_CONFIGARGS) $${srcdiroption} \
1772 .PHONY: all-binutils maybe-all-binutils
1774 all-binutils: configure-binutils
1775 @r=`${PWD}`; export r; \
1776 s=`cd $(srcdir); ${PWD}`; export s; \
1778 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
1781 .PHONY: check-binutils
1783 @r=`${PWD}`; export r; \
1784 s=`cd $(srcdir); ${PWD}`; export s; \
1786 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
1790 .PHONY: install-binutils maybe-install-binutils
1791 maybe-install-binutils:
1792 install-binutils: installdirs
1793 @r=`${PWD}`; export r; \
1794 s=`cd $(srcdir); ${PWD}`; export s; \
1796 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
1799 .PHONY: configure-bison maybe-configure-bison
1800 maybe-configure-bison:
1802 @test ! -f bison/Makefile || exit 0; \
1803 [ -d bison ] || mkdir bison; \
1804 r=`${PWD}`; export r; \
1805 s=`cd $(srcdir); ${PWD}`; export s; \
1806 CC="$(CC)"; export CC; \
1807 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1808 CXX="$(CXX)"; export CXX; \
1809 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1810 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1811 AR="$(AR)"; export AR; \
1812 AS="$(AS)"; export AS; \
1813 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1814 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1815 LD="$(LD)"; export LD; \
1816 NM="$(NM)"; export NM; \
1817 RANLIB="$(RANLIB)"; export RANLIB; \
1818 WINDRES="$(WINDRES)"; export WINDRES; \
1819 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1820 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1822 echo Configuring in bison; \
1823 cd bison || exit 1; \
1826 srcdiroption="--srcdir=."; \
1828 /* | [A-Za-z]:[\\/]*) \
1829 srcdiroption="--srcdir=$(srcdir)/bison"; \
1830 libsrcdir="$$s/bison";; \
1832 srcdiroption="--srcdir=../$(srcdir)/bison"; \
1833 libsrcdir="$$s/bison";; \
1835 $(SHELL) $${libsrcdir}/configure \
1836 $(HOST_CONFIGARGS) $${srcdiroption} \
1839 .PHONY: all-bison maybe-all-bison
1841 all-bison: configure-bison
1842 @r=`${PWD}`; export r; \
1843 s=`cd $(srcdir); ${PWD}`; export s; \
1845 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
1849 # This module is only tested in a native toolchain.
1851 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1852 r=`${PWD}`; export r; \
1853 s=`cd $(srcdir); ${PWD}`; export s; \
1855 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
1860 .PHONY: install-bison maybe-install-bison
1861 maybe-install-bison:
1862 install-bison: installdirs
1863 @r=`${PWD}`; export r; \
1864 s=`cd $(srcdir); ${PWD}`; export s; \
1866 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
1869 .PHONY: configure-byacc maybe-configure-byacc
1870 maybe-configure-byacc:
1872 @test ! -f byacc/Makefile || exit 0; \
1873 [ -d byacc ] || mkdir byacc; \
1874 r=`${PWD}`; export r; \
1875 s=`cd $(srcdir); ${PWD}`; export s; \
1876 CC="$(CC)"; export CC; \
1877 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1878 CXX="$(CXX)"; export CXX; \
1879 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1880 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1881 AR="$(AR)"; export AR; \
1882 AS="$(AS)"; export AS; \
1883 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1884 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1885 LD="$(LD)"; export LD; \
1886 NM="$(NM)"; export NM; \
1887 RANLIB="$(RANLIB)"; export RANLIB; \
1888 WINDRES="$(WINDRES)"; export WINDRES; \
1889 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1890 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1892 echo Configuring in byacc; \
1893 cd byacc || exit 1; \
1896 srcdiroption="--srcdir=."; \
1898 /* | [A-Za-z]:[\\/]*) \
1899 srcdiroption="--srcdir=$(srcdir)/byacc"; \
1900 libsrcdir="$$s/byacc";; \
1902 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1903 libsrcdir="$$s/byacc";; \
1905 $(SHELL) $${libsrcdir}/configure \
1906 $(HOST_CONFIGARGS) $${srcdiroption} \
1909 .PHONY: all-byacc maybe-all-byacc
1911 all-byacc: configure-byacc
1912 @r=`${PWD}`; export r; \
1913 s=`cd $(srcdir); ${PWD}`; export s; \
1915 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
1919 # This module is only tested in a native toolchain.
1921 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1922 r=`${PWD}`; export r; \
1923 s=`cd $(srcdir); ${PWD}`; export s; \
1925 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
1930 .PHONY: install-byacc maybe-install-byacc
1931 maybe-install-byacc:
1932 install-byacc: installdirs
1933 @r=`${PWD}`; export r; \
1934 s=`cd $(srcdir); ${PWD}`; export s; \
1936 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
1939 .PHONY: configure-bzip2 maybe-configure-bzip2
1940 maybe-configure-bzip2:
1942 @test ! -f bzip2/Makefile || exit 0; \
1943 [ -d bzip2 ] || mkdir bzip2; \
1944 r=`${PWD}`; export r; \
1945 s=`cd $(srcdir); ${PWD}`; export s; \
1946 CC="$(CC)"; export CC; \
1947 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1948 CXX="$(CXX)"; export CXX; \
1949 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1950 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1951 AR="$(AR)"; export AR; \
1952 AS="$(AS)"; export AS; \
1953 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1954 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1955 LD="$(LD)"; export LD; \
1956 NM="$(NM)"; export NM; \
1957 RANLIB="$(RANLIB)"; export RANLIB; \
1958 WINDRES="$(WINDRES)"; export WINDRES; \
1959 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1960 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1962 echo Configuring in bzip2; \
1963 cd bzip2 || exit 1; \
1966 srcdiroption="--srcdir=."; \
1968 /* | [A-Za-z]:[\\/]*) \
1969 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1970 libsrcdir="$$s/bzip2";; \
1972 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1973 libsrcdir="$$s/bzip2";; \
1975 $(SHELL) $${libsrcdir}/configure \
1976 $(HOST_CONFIGARGS) $${srcdiroption} \
1979 .PHONY: all-bzip2 maybe-all-bzip2
1981 all-bzip2: configure-bzip2
1982 @r=`${PWD}`; export r; \
1983 s=`cd $(srcdir); ${PWD}`; export s; \
1985 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
1990 @r=`${PWD}`; export r; \
1991 s=`cd $(srcdir); ${PWD}`; export s; \
1993 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
1997 .PHONY: install-bzip2 maybe-install-bzip2
1998 maybe-install-bzip2:
1999 install-bzip2: installdirs
2000 @r=`${PWD}`; export r; \
2001 s=`cd $(srcdir); ${PWD}`; export s; \
2003 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
2006 .PHONY: configure-dejagnu maybe-configure-dejagnu
2007 maybe-configure-dejagnu:
2009 @test ! -f dejagnu/Makefile || exit 0; \
2010 [ -d dejagnu ] || mkdir dejagnu; \
2011 r=`${PWD}`; export r; \
2012 s=`cd $(srcdir); ${PWD}`; export s; \
2013 CC="$(CC)"; export CC; \
2014 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2015 CXX="$(CXX)"; export CXX; \
2016 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2017 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2018 AR="$(AR)"; export AR; \
2019 AS="$(AS)"; export AS; \
2020 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2021 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2022 LD="$(LD)"; export LD; \
2023 NM="$(NM)"; export NM; \
2024 RANLIB="$(RANLIB)"; export RANLIB; \
2025 WINDRES="$(WINDRES)"; export WINDRES; \
2026 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2027 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2029 echo Configuring in dejagnu; \
2030 cd dejagnu || exit 1; \
2033 srcdiroption="--srcdir=."; \
2035 /* | [A-Za-z]:[\\/]*) \
2036 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2037 libsrcdir="$$s/dejagnu";; \
2039 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2040 libsrcdir="$$s/dejagnu";; \
2042 $(SHELL) $${libsrcdir}/configure \
2043 $(HOST_CONFIGARGS) $${srcdiroption} \
2046 .PHONY: all-dejagnu maybe-all-dejagnu
2048 all-dejagnu: configure-dejagnu
2049 @r=`${PWD}`; export r; \
2050 s=`cd $(srcdir); ${PWD}`; export s; \
2052 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
2055 .PHONY: check-dejagnu
2057 @r=`${PWD}`; export r; \
2058 s=`cd $(srcdir); ${PWD}`; export s; \
2060 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
2064 .PHONY: install-dejagnu maybe-install-dejagnu
2065 maybe-install-dejagnu:
2066 install-dejagnu: installdirs
2067 @r=`${PWD}`; export r; \
2068 s=`cd $(srcdir); ${PWD}`; export s; \
2070 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
2073 .PHONY: configure-diff maybe-configure-diff
2074 maybe-configure-diff:
2076 @test ! -f diff/Makefile || exit 0; \
2077 [ -d diff ] || mkdir diff; \
2078 r=`${PWD}`; export r; \
2079 s=`cd $(srcdir); ${PWD}`; export s; \
2080 CC="$(CC)"; export CC; \
2081 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2082 CXX="$(CXX)"; export CXX; \
2083 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2084 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2085 AR="$(AR)"; export AR; \
2086 AS="$(AS)"; export AS; \
2087 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2088 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2089 LD="$(LD)"; export LD; \
2090 NM="$(NM)"; export NM; \
2091 RANLIB="$(RANLIB)"; export RANLIB; \
2092 WINDRES="$(WINDRES)"; export WINDRES; \
2093 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2094 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2096 echo Configuring in diff; \
2097 cd diff || exit 1; \
2100 srcdiroption="--srcdir=."; \
2102 /* | [A-Za-z]:[\\/]*) \
2103 srcdiroption="--srcdir=$(srcdir)/diff"; \
2104 libsrcdir="$$s/diff";; \
2106 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2107 libsrcdir="$$s/diff";; \
2109 $(SHELL) $${libsrcdir}/configure \
2110 $(HOST_CONFIGARGS) $${srcdiroption} \
2113 .PHONY: all-diff maybe-all-diff
2115 all-diff: configure-diff
2116 @r=`${PWD}`; export r; \
2117 s=`cd $(srcdir); ${PWD}`; export s; \
2119 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
2124 @r=`${PWD}`; export r; \
2125 s=`cd $(srcdir); ${PWD}`; export s; \
2127 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2131 .PHONY: install-diff maybe-install-diff
2133 install-diff: installdirs
2134 @r=`${PWD}`; export r; \
2135 s=`cd $(srcdir); ${PWD}`; export s; \
2137 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2140 .PHONY: configure-dosutils maybe-configure-dosutils
2141 maybe-configure-dosutils:
2143 @test ! -f dosutils/Makefile || exit 0; \
2144 [ -d dosutils ] || mkdir dosutils; \
2145 r=`${PWD}`; export r; \
2146 s=`cd $(srcdir); ${PWD}`; export s; \
2147 CC="$(CC)"; export CC; \
2148 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2149 CXX="$(CXX)"; export CXX; \
2150 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2151 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2152 AR="$(AR)"; export AR; \
2153 AS="$(AS)"; export AS; \
2154 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2155 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2156 LD="$(LD)"; export LD; \
2157 NM="$(NM)"; export NM; \
2158 RANLIB="$(RANLIB)"; export RANLIB; \
2159 WINDRES="$(WINDRES)"; export WINDRES; \
2160 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2161 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2163 echo Configuring in dosutils; \
2164 cd dosutils || exit 1; \
2167 srcdiroption="--srcdir=."; \
2169 /* | [A-Za-z]:[\\/]*) \
2170 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2171 libsrcdir="$$s/dosutils";; \
2173 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2174 libsrcdir="$$s/dosutils";; \
2176 $(SHELL) $${libsrcdir}/configure \
2177 $(HOST_CONFIGARGS) $${srcdiroption} \
2180 .PHONY: all-dosutils maybe-all-dosutils
2182 all-dosutils: configure-dosutils
2183 @r=`${PWD}`; export r; \
2184 s=`cd $(srcdir); ${PWD}`; export s; \
2186 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
2189 .PHONY: check-dosutils
2194 .PHONY: install-dosutils maybe-install-dosutils
2195 maybe-install-dosutils:
2196 install-dosutils: installdirs
2197 @r=`${PWD}`; export r; \
2198 s=`cd $(srcdir); ${PWD}`; export s; \
2200 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2203 .PHONY: configure-etc maybe-configure-etc
2204 maybe-configure-etc:
2206 @test ! -f etc/Makefile || exit 0; \
2207 [ -d etc ] || mkdir etc; \
2208 r=`${PWD}`; export r; \
2209 s=`cd $(srcdir); ${PWD}`; export s; \
2210 CC="$(CC)"; export CC; \
2211 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2212 CXX="$(CXX)"; export CXX; \
2213 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2214 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2215 AR="$(AR)"; export AR; \
2216 AS="$(AS)"; export AS; \
2217 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2218 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2219 LD="$(LD)"; export LD; \
2220 NM="$(NM)"; export NM; \
2221 RANLIB="$(RANLIB)"; export RANLIB; \
2222 WINDRES="$(WINDRES)"; export WINDRES; \
2223 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2224 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2226 echo Configuring in etc; \
2230 srcdiroption="--srcdir=."; \
2232 /* | [A-Za-z]:[\\/]*) \
2233 srcdiroption="--srcdir=$(srcdir)/etc"; \
2234 libsrcdir="$$s/etc";; \
2236 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2237 libsrcdir="$$s/etc";; \
2239 $(SHELL) $${libsrcdir}/configure \
2240 $(HOST_CONFIGARGS) $${srcdiroption} \
2243 .PHONY: all-etc maybe-all-etc
2245 all-etc: configure-etc
2246 @r=`${PWD}`; export r; \
2247 s=`cd $(srcdir); ${PWD}`; export s; \
2249 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
2254 @r=`${PWD}`; export r; \
2255 s=`cd $(srcdir); ${PWD}`; export s; \
2257 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
2261 .PHONY: install-etc maybe-install-etc
2263 install-etc: installdirs
2264 @r=`${PWD}`; export r; \
2265 s=`cd $(srcdir); ${PWD}`; export s; \
2267 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
2270 .PHONY: configure-fastjar maybe-configure-fastjar
2271 maybe-configure-fastjar:
2273 @test ! -f fastjar/Makefile || exit 0; \
2274 [ -d fastjar ] || mkdir fastjar; \
2275 r=`${PWD}`; export r; \
2276 s=`cd $(srcdir); ${PWD}`; export s; \
2277 CC="$(CC)"; export CC; \
2278 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2279 CXX="$(CXX)"; export CXX; \
2280 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2281 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2282 AR="$(AR)"; export AR; \
2283 AS="$(AS)"; export AS; \
2284 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2285 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2286 LD="$(LD)"; export LD; \
2287 NM="$(NM)"; export NM; \
2288 RANLIB="$(RANLIB)"; export RANLIB; \
2289 WINDRES="$(WINDRES)"; export WINDRES; \
2290 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2291 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2293 echo Configuring in fastjar; \
2294 cd fastjar || exit 1; \
2297 srcdiroption="--srcdir=."; \
2299 /* | [A-Za-z]:[\\/]*) \
2300 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2301 libsrcdir="$$s/fastjar";; \
2303 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2304 libsrcdir="$$s/fastjar";; \
2306 $(SHELL) $${libsrcdir}/configure \
2307 $(HOST_CONFIGARGS) $${srcdiroption} \
2310 .PHONY: all-fastjar maybe-all-fastjar
2312 all-fastjar: configure-fastjar
2313 @r=`${PWD}`; export r; \
2314 s=`cd $(srcdir); ${PWD}`; export s; \
2316 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
2319 .PHONY: check-fastjar
2320 # This module is only tested in a native toolchain.
2322 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2323 r=`${PWD}`; export r; \
2324 s=`cd $(srcdir); ${PWD}`; export s; \
2326 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
2331 .PHONY: install-fastjar maybe-install-fastjar
2332 maybe-install-fastjar:
2333 install-fastjar: installdirs
2334 @r=`${PWD}`; export r; \
2335 s=`cd $(srcdir); ${PWD}`; export s; \
2337 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2340 .PHONY: configure-fileutils maybe-configure-fileutils
2341 maybe-configure-fileutils:
2342 configure-fileutils:
2343 @test ! -f fileutils/Makefile || exit 0; \
2344 [ -d fileutils ] || mkdir fileutils; \
2345 r=`${PWD}`; export r; \
2346 s=`cd $(srcdir); ${PWD}`; export s; \
2347 CC="$(CC)"; export CC; \
2348 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2349 CXX="$(CXX)"; export CXX; \
2350 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2351 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2352 AR="$(AR)"; export AR; \
2353 AS="$(AS)"; export AS; \
2354 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2355 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2356 LD="$(LD)"; export LD; \
2357 NM="$(NM)"; export NM; \
2358 RANLIB="$(RANLIB)"; export RANLIB; \
2359 WINDRES="$(WINDRES)"; export WINDRES; \
2360 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2361 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2363 echo Configuring in fileutils; \
2364 cd fileutils || exit 1; \
2367 srcdiroption="--srcdir=."; \
2369 /* | [A-Za-z]:[\\/]*) \
2370 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2371 libsrcdir="$$s/fileutils";; \
2373 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2374 libsrcdir="$$s/fileutils";; \
2376 $(SHELL) $${libsrcdir}/configure \
2377 $(HOST_CONFIGARGS) $${srcdiroption} \
2380 .PHONY: all-fileutils maybe-all-fileutils
2381 maybe-all-fileutils:
2382 all-fileutils: configure-fileutils
2383 @r=`${PWD}`; export r; \
2384 s=`cd $(srcdir); ${PWD}`; export s; \
2386 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
2389 .PHONY: check-fileutils
2391 @r=`${PWD}`; export r; \
2392 s=`cd $(srcdir); ${PWD}`; export s; \
2394 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2398 .PHONY: install-fileutils maybe-install-fileutils
2399 maybe-install-fileutils:
2400 install-fileutils: installdirs
2401 @r=`${PWD}`; export r; \
2402 s=`cd $(srcdir); ${PWD}`; export s; \
2404 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2407 .PHONY: configure-findutils maybe-configure-findutils
2408 maybe-configure-findutils:
2409 configure-findutils:
2410 @test ! -f findutils/Makefile || exit 0; \
2411 [ -d findutils ] || mkdir findutils; \
2412 r=`${PWD}`; export r; \
2413 s=`cd $(srcdir); ${PWD}`; export s; \
2414 CC="$(CC)"; export CC; \
2415 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2416 CXX="$(CXX)"; export CXX; \
2417 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2418 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2419 AR="$(AR)"; export AR; \
2420 AS="$(AS)"; export AS; \
2421 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2422 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2423 LD="$(LD)"; export LD; \
2424 NM="$(NM)"; export NM; \
2425 RANLIB="$(RANLIB)"; export RANLIB; \
2426 WINDRES="$(WINDRES)"; export WINDRES; \
2427 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2428 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2430 echo Configuring in findutils; \
2431 cd findutils || exit 1; \
2434 srcdiroption="--srcdir=."; \
2436 /* | [A-Za-z]:[\\/]*) \
2437 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2438 libsrcdir="$$s/findutils";; \
2440 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2441 libsrcdir="$$s/findutils";; \
2443 $(SHELL) $${libsrcdir}/configure \
2444 $(HOST_CONFIGARGS) $${srcdiroption} \
2447 .PHONY: all-findutils maybe-all-findutils
2448 maybe-all-findutils:
2449 all-findutils: configure-findutils
2450 @r=`${PWD}`; export r; \
2451 s=`cd $(srcdir); ${PWD}`; export s; \
2453 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
2456 .PHONY: check-findutils
2458 @r=`${PWD}`; export r; \
2459 s=`cd $(srcdir); ${PWD}`; export s; \
2461 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2465 .PHONY: install-findutils maybe-install-findutils
2466 maybe-install-findutils:
2467 install-findutils: installdirs
2468 @r=`${PWD}`; export r; \
2469 s=`cd $(srcdir); ${PWD}`; export s; \
2471 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
2474 .PHONY: configure-find maybe-configure-find
2475 maybe-configure-find:
2477 @test ! -f find/Makefile || exit 0; \
2478 [ -d find ] || mkdir find; \
2479 r=`${PWD}`; export r; \
2480 s=`cd $(srcdir); ${PWD}`; export s; \
2481 CC="$(CC)"; export CC; \
2482 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2483 CXX="$(CXX)"; export CXX; \
2484 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2485 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2486 AR="$(AR)"; export AR; \
2487 AS="$(AS)"; export AS; \
2488 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2489 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2490 LD="$(LD)"; export LD; \
2491 NM="$(NM)"; export NM; \
2492 RANLIB="$(RANLIB)"; export RANLIB; \
2493 WINDRES="$(WINDRES)"; export WINDRES; \
2494 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2495 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2497 echo Configuring in find; \
2498 cd find || exit 1; \
2501 srcdiroption="--srcdir=."; \
2503 /* | [A-Za-z]:[\\/]*) \
2504 srcdiroption="--srcdir=$(srcdir)/find"; \
2505 libsrcdir="$$s/find";; \
2507 srcdiroption="--srcdir=../$(srcdir)/find"; \
2508 libsrcdir="$$s/find";; \
2510 $(SHELL) $${libsrcdir}/configure \
2511 $(HOST_CONFIGARGS) $${srcdiroption} \
2514 .PHONY: all-find maybe-all-find
2516 all-find: configure-find
2517 @r=`${PWD}`; export r; \
2518 s=`cd $(srcdir); ${PWD}`; export s; \
2520 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
2525 @r=`${PWD}`; export r; \
2526 s=`cd $(srcdir); ${PWD}`; export s; \
2528 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2532 .PHONY: install-find maybe-install-find
2534 install-find: installdirs
2535 @r=`${PWD}`; export r; \
2536 s=`cd $(srcdir); ${PWD}`; export s; \
2538 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
2541 .PHONY: configure-flex maybe-configure-flex
2542 maybe-configure-flex:
2544 @test ! -f flex/Makefile || exit 0; \
2545 [ -d flex ] || mkdir flex; \
2546 r=`${PWD}`; export r; \
2547 s=`cd $(srcdir); ${PWD}`; export s; \
2548 CC="$(CC)"; export CC; \
2549 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2550 CXX="$(CXX)"; export CXX; \
2551 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2552 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2553 AR="$(AR)"; export AR; \
2554 AS="$(AS)"; export AS; \
2555 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2556 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2557 LD="$(LD)"; export LD; \
2558 NM="$(NM)"; export NM; \
2559 RANLIB="$(RANLIB)"; export RANLIB; \
2560 WINDRES="$(WINDRES)"; export WINDRES; \
2561 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2562 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2564 echo Configuring in flex; \
2565 cd flex || exit 1; \
2568 srcdiroption="--srcdir=."; \
2570 /* | [A-Za-z]:[\\/]*) \
2571 srcdiroption="--srcdir=$(srcdir)/flex"; \
2572 libsrcdir="$$s/flex";; \
2574 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2575 libsrcdir="$$s/flex";; \
2577 $(SHELL) $${libsrcdir}/configure \
2578 $(HOST_CONFIGARGS) $${srcdiroption} \
2581 .PHONY: all-flex maybe-all-flex
2583 all-flex: configure-flex
2584 @r=`${PWD}`; export r; \
2585 s=`cd $(srcdir); ${PWD}`; export s; \
2587 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
2591 # This module is only tested in a native toolchain.
2593 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2594 r=`${PWD}`; export r; \
2595 s=`cd $(srcdir); ${PWD}`; export s; \
2597 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
2602 .PHONY: install-flex maybe-install-flex
2604 install-flex: installdirs
2605 @r=`${PWD}`; export r; \
2606 s=`cd $(srcdir); ${PWD}`; export s; \
2608 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
2611 .PHONY: configure-gas maybe-configure-gas
2612 maybe-configure-gas:
2614 @test ! -f gas/Makefile || exit 0; \
2615 [ -d gas ] || mkdir gas; \
2616 r=`${PWD}`; export r; \
2617 s=`cd $(srcdir); ${PWD}`; export s; \
2618 CC="$(CC)"; export CC; \
2619 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2620 CXX="$(CXX)"; export CXX; \
2621 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2622 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2623 AR="$(AR)"; export AR; \
2624 AS="$(AS)"; export AS; \
2625 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2626 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2627 LD="$(LD)"; export LD; \
2628 NM="$(NM)"; export NM; \
2629 RANLIB="$(RANLIB)"; export RANLIB; \
2630 WINDRES="$(WINDRES)"; export WINDRES; \
2631 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2632 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2634 echo Configuring in gas; \
2638 srcdiroption="--srcdir=."; \
2640 /* | [A-Za-z]:[\\/]*) \
2641 srcdiroption="--srcdir=$(srcdir)/gas"; \
2642 libsrcdir="$$s/gas";; \
2644 srcdiroption="--srcdir=../$(srcdir)/gas"; \
2645 libsrcdir="$$s/gas";; \
2647 $(SHELL) $${libsrcdir}/configure \
2648 $(HOST_CONFIGARGS) $${srcdiroption} \
2651 .PHONY: all-gas maybe-all-gas
2653 all-gas: configure-gas
2654 @r=`${PWD}`; export r; \
2655 s=`cd $(srcdir); ${PWD}`; export s; \
2657 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
2662 @r=`${PWD}`; export r; \
2663 s=`cd $(srcdir); ${PWD}`; export s; \
2665 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
2669 .PHONY: install-gas maybe-install-gas
2671 install-gas: installdirs
2672 @r=`${PWD}`; export r; \
2673 s=`cd $(srcdir); ${PWD}`; export s; \
2675 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
2678 .PHONY: configure-gawk maybe-configure-gawk
2679 maybe-configure-gawk:
2681 @test ! -f gawk/Makefile || exit 0; \
2682 [ -d gawk ] || mkdir gawk; \
2683 r=`${PWD}`; export r; \
2684 s=`cd $(srcdir); ${PWD}`; export s; \
2685 CC="$(CC)"; export CC; \
2686 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2687 CXX="$(CXX)"; export CXX; \
2688 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2689 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2690 AR="$(AR)"; export AR; \
2691 AS="$(AS)"; export AS; \
2692 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2693 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2694 LD="$(LD)"; export LD; \
2695 NM="$(NM)"; export NM; \
2696 RANLIB="$(RANLIB)"; export RANLIB; \
2697 WINDRES="$(WINDRES)"; export WINDRES; \
2698 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2699 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2701 echo Configuring in gawk; \
2702 cd gawk || exit 1; \
2705 srcdiroption="--srcdir=."; \
2707 /* | [A-Za-z]:[\\/]*) \
2708 srcdiroption="--srcdir=$(srcdir)/gawk"; \
2709 libsrcdir="$$s/gawk";; \
2711 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2712 libsrcdir="$$s/gawk";; \
2714 $(SHELL) $${libsrcdir}/configure \
2715 $(HOST_CONFIGARGS) $${srcdiroption} \
2718 .PHONY: all-gawk maybe-all-gawk
2720 all-gawk: configure-gawk
2721 @r=`${PWD}`; export r; \
2722 s=`cd $(srcdir); ${PWD}`; export s; \
2724 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
2729 @r=`${PWD}`; export r; \
2730 s=`cd $(srcdir); ${PWD}`; export s; \
2732 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
2736 .PHONY: install-gawk maybe-install-gawk
2738 install-gawk: installdirs
2739 @r=`${PWD}`; export r; \
2740 s=`cd $(srcdir); ${PWD}`; export s; \
2742 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
2745 .PHONY: configure-gettext maybe-configure-gettext
2746 maybe-configure-gettext:
2748 @test ! -f gettext/Makefile || exit 0; \
2749 [ -d gettext ] || mkdir gettext; \
2750 r=`${PWD}`; export r; \
2751 s=`cd $(srcdir); ${PWD}`; export s; \
2752 CC="$(CC)"; export CC; \
2753 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2754 CXX="$(CXX)"; export CXX; \
2755 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2756 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2757 AR="$(AR)"; export AR; \
2758 AS="$(AS)"; export AS; \
2759 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2760 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2761 LD="$(LD)"; export LD; \
2762 NM="$(NM)"; export NM; \
2763 RANLIB="$(RANLIB)"; export RANLIB; \
2764 WINDRES="$(WINDRES)"; export WINDRES; \
2765 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2766 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2768 echo Configuring in gettext; \
2769 cd gettext || exit 1; \
2772 srcdiroption="--srcdir=."; \
2774 /* | [A-Za-z]:[\\/]*) \
2775 srcdiroption="--srcdir=$(srcdir)/gettext"; \
2776 libsrcdir="$$s/gettext";; \
2778 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2779 libsrcdir="$$s/gettext";; \
2781 $(SHELL) $${libsrcdir}/configure \
2782 $(HOST_CONFIGARGS) $${srcdiroption} \
2785 .PHONY: all-gettext maybe-all-gettext
2787 all-gettext: configure-gettext
2788 @r=`${PWD}`; export r; \
2789 s=`cd $(srcdir); ${PWD}`; export s; \
2791 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
2794 .PHONY: check-gettext
2796 @r=`${PWD}`; export r; \
2797 s=`cd $(srcdir); ${PWD}`; export s; \
2799 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
2803 .PHONY: install-gettext maybe-install-gettext
2804 maybe-install-gettext:
2805 install-gettext: installdirs
2806 @r=`${PWD}`; export r; \
2807 s=`cd $(srcdir); ${PWD}`; export s; \
2809 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
2812 .PHONY: configure-gnuserv maybe-configure-gnuserv
2813 maybe-configure-gnuserv:
2815 @test ! -f gnuserv/Makefile || exit 0; \
2816 [ -d gnuserv ] || mkdir gnuserv; \
2817 r=`${PWD}`; export r; \
2818 s=`cd $(srcdir); ${PWD}`; export s; \
2819 CC="$(CC)"; export CC; \
2820 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2821 CXX="$(CXX)"; export CXX; \
2822 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2823 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2824 AR="$(AR)"; export AR; \
2825 AS="$(AS)"; export AS; \
2826 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2827 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2828 LD="$(LD)"; export LD; \
2829 NM="$(NM)"; export NM; \
2830 RANLIB="$(RANLIB)"; export RANLIB; \
2831 WINDRES="$(WINDRES)"; export WINDRES; \
2832 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2833 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2835 echo Configuring in gnuserv; \
2836 cd gnuserv || exit 1; \
2839 srcdiroption="--srcdir=."; \
2841 /* | [A-Za-z]:[\\/]*) \
2842 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2843 libsrcdir="$$s/gnuserv";; \
2845 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2846 libsrcdir="$$s/gnuserv";; \
2848 $(SHELL) $${libsrcdir}/configure \
2849 $(HOST_CONFIGARGS) $${srcdiroption} \
2852 .PHONY: all-gnuserv maybe-all-gnuserv
2854 all-gnuserv: configure-gnuserv
2855 @r=`${PWD}`; export r; \
2856 s=`cd $(srcdir); ${PWD}`; export s; \
2858 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
2861 .PHONY: check-gnuserv
2863 @r=`${PWD}`; export r; \
2864 s=`cd $(srcdir); ${PWD}`; export s; \
2866 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
2870 .PHONY: install-gnuserv maybe-install-gnuserv
2871 maybe-install-gnuserv:
2872 install-gnuserv: installdirs
2873 @r=`${PWD}`; export r; \
2874 s=`cd $(srcdir); ${PWD}`; export s; \
2876 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
2879 .PHONY: configure-gprof maybe-configure-gprof
2880 maybe-configure-gprof:
2882 @test ! -f gprof/Makefile || exit 0; \
2883 [ -d gprof ] || mkdir gprof; \
2884 r=`${PWD}`; export r; \
2885 s=`cd $(srcdir); ${PWD}`; export s; \
2886 CC="$(CC)"; export CC; \
2887 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2888 CXX="$(CXX)"; export CXX; \
2889 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2890 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2891 AR="$(AR)"; export AR; \
2892 AS="$(AS)"; export AS; \
2893 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2894 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2895 LD="$(LD)"; export LD; \
2896 NM="$(NM)"; export NM; \
2897 RANLIB="$(RANLIB)"; export RANLIB; \
2898 WINDRES="$(WINDRES)"; export WINDRES; \
2899 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2900 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2902 echo Configuring in gprof; \
2903 cd gprof || exit 1; \
2906 srcdiroption="--srcdir=."; \
2908 /* | [A-Za-z]:[\\/]*) \
2909 srcdiroption="--srcdir=$(srcdir)/gprof"; \
2910 libsrcdir="$$s/gprof";; \
2912 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2913 libsrcdir="$$s/gprof";; \
2915 $(SHELL) $${libsrcdir}/configure \
2916 $(HOST_CONFIGARGS) $${srcdiroption} \
2919 .PHONY: all-gprof maybe-all-gprof
2921 all-gprof: configure-gprof
2922 @r=`${PWD}`; export r; \
2923 s=`cd $(srcdir); ${PWD}`; export s; \
2925 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
2930 @r=`${PWD}`; export r; \
2931 s=`cd $(srcdir); ${PWD}`; export s; \
2933 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
2937 .PHONY: install-gprof maybe-install-gprof
2938 maybe-install-gprof:
2939 install-gprof: installdirs
2940 @r=`${PWD}`; export r; \
2941 s=`cd $(srcdir); ${PWD}`; export s; \
2943 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
2946 .PHONY: configure-gzip maybe-configure-gzip
2947 maybe-configure-gzip:
2949 @test ! -f gzip/Makefile || exit 0; \
2950 [ -d gzip ] || mkdir gzip; \
2951 r=`${PWD}`; export r; \
2952 s=`cd $(srcdir); ${PWD}`; export s; \
2953 CC="$(CC)"; export CC; \
2954 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2955 CXX="$(CXX)"; export CXX; \
2956 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2957 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2958 AR="$(AR)"; export AR; \
2959 AS="$(AS)"; export AS; \
2960 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2961 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2962 LD="$(LD)"; export LD; \
2963 NM="$(NM)"; export NM; \
2964 RANLIB="$(RANLIB)"; export RANLIB; \
2965 WINDRES="$(WINDRES)"; export WINDRES; \
2966 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2967 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2969 echo Configuring in gzip; \
2970 cd gzip || exit 1; \
2973 srcdiroption="--srcdir=."; \
2975 /* | [A-Za-z]:[\\/]*) \
2976 srcdiroption="--srcdir=$(srcdir)/gzip"; \
2977 libsrcdir="$$s/gzip";; \
2979 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
2980 libsrcdir="$$s/gzip";; \
2982 $(SHELL) $${libsrcdir}/configure \
2983 $(HOST_CONFIGARGS) $${srcdiroption} \
2986 .PHONY: all-gzip maybe-all-gzip
2988 all-gzip: configure-gzip
2989 @r=`${PWD}`; export r; \
2990 s=`cd $(srcdir); ${PWD}`; export s; \
2992 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
2997 @r=`${PWD}`; export r; \
2998 s=`cd $(srcdir); ${PWD}`; export s; \
3000 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
3004 .PHONY: install-gzip maybe-install-gzip
3006 install-gzip: installdirs
3007 @r=`${PWD}`; export r; \
3008 s=`cd $(srcdir); ${PWD}`; export s; \
3010 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
3013 .PHONY: configure-hello maybe-configure-hello
3014 maybe-configure-hello:
3016 @test ! -f hello/Makefile || exit 0; \
3017 [ -d hello ] || mkdir hello; \
3018 r=`${PWD}`; export r; \
3019 s=`cd $(srcdir); ${PWD}`; export s; \
3020 CC="$(CC)"; export CC; \
3021 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3022 CXX="$(CXX)"; export CXX; \
3023 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3024 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3025 AR="$(AR)"; export AR; \
3026 AS="$(AS)"; export AS; \
3027 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3028 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3029 LD="$(LD)"; export LD; \
3030 NM="$(NM)"; export NM; \
3031 RANLIB="$(RANLIB)"; export RANLIB; \
3032 WINDRES="$(WINDRES)"; export WINDRES; \
3033 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3034 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3036 echo Configuring in hello; \
3037 cd hello || exit 1; \
3040 srcdiroption="--srcdir=."; \
3042 /* | [A-Za-z]:[\\/]*) \
3043 srcdiroption="--srcdir=$(srcdir)/hello"; \
3044 libsrcdir="$$s/hello";; \
3046 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3047 libsrcdir="$$s/hello";; \
3049 $(SHELL) $${libsrcdir}/configure \
3050 $(HOST_CONFIGARGS) $${srcdiroption} \
3053 .PHONY: all-hello maybe-all-hello
3055 all-hello: configure-hello
3056 @r=`${PWD}`; export r; \
3057 s=`cd $(srcdir); ${PWD}`; export s; \
3059 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
3064 @r=`${PWD}`; export r; \
3065 s=`cd $(srcdir); ${PWD}`; export s; \
3067 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
3071 .PHONY: install-hello maybe-install-hello
3072 maybe-install-hello:
3073 install-hello: installdirs
3074 @r=`${PWD}`; export r; \
3075 s=`cd $(srcdir); ${PWD}`; export s; \
3077 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
3080 .PHONY: configure-indent maybe-configure-indent
3081 maybe-configure-indent:
3083 @test ! -f indent/Makefile || exit 0; \
3084 [ -d indent ] || mkdir indent; \
3085 r=`${PWD}`; export r; \
3086 s=`cd $(srcdir); ${PWD}`; export s; \
3087 CC="$(CC)"; export CC; \
3088 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3089 CXX="$(CXX)"; export CXX; \
3090 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3091 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3092 AR="$(AR)"; export AR; \
3093 AS="$(AS)"; export AS; \
3094 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3095 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3096 LD="$(LD)"; export LD; \
3097 NM="$(NM)"; export NM; \
3098 RANLIB="$(RANLIB)"; export RANLIB; \
3099 WINDRES="$(WINDRES)"; export WINDRES; \
3100 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3101 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3103 echo Configuring in indent; \
3104 cd indent || exit 1; \
3107 srcdiroption="--srcdir=."; \
3109 /* | [A-Za-z]:[\\/]*) \
3110 srcdiroption="--srcdir=$(srcdir)/indent"; \
3111 libsrcdir="$$s/indent";; \
3113 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3114 libsrcdir="$$s/indent";; \
3116 $(SHELL) $${libsrcdir}/configure \
3117 $(HOST_CONFIGARGS) $${srcdiroption} \
3120 .PHONY: all-indent maybe-all-indent
3122 all-indent: configure-indent
3123 @r=`${PWD}`; export r; \
3124 s=`cd $(srcdir); ${PWD}`; export s; \
3126 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
3129 .PHONY: check-indent
3131 @r=`${PWD}`; export r; \
3132 s=`cd $(srcdir); ${PWD}`; export s; \
3134 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
3138 .PHONY: install-indent maybe-install-indent
3139 maybe-install-indent:
3140 install-indent: installdirs
3141 @r=`${PWD}`; export r; \
3142 s=`cd $(srcdir); ${PWD}`; export s; \
3144 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
3147 .PHONY: configure-intl maybe-configure-intl
3148 maybe-configure-intl:
3150 @test ! -f intl/Makefile || exit 0; \
3151 [ -d intl ] || mkdir intl; \
3152 r=`${PWD}`; export r; \
3153 s=`cd $(srcdir); ${PWD}`; export s; \
3154 CC="$(CC)"; export CC; \
3155 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3156 CXX="$(CXX)"; export CXX; \
3157 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3158 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3159 AR="$(AR)"; export AR; \
3160 AS="$(AS)"; export AS; \
3161 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3162 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3163 LD="$(LD)"; export LD; \
3164 NM="$(NM)"; export NM; \
3165 RANLIB="$(RANLIB)"; export RANLIB; \
3166 WINDRES="$(WINDRES)"; export WINDRES; \
3167 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3168 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3170 echo Configuring in intl; \
3171 cd intl || exit 1; \
3174 srcdiroption="--srcdir=."; \
3176 /* | [A-Za-z]:[\\/]*) \
3177 srcdiroption="--srcdir=$(srcdir)/intl"; \
3178 libsrcdir="$$s/intl";; \
3180 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3181 libsrcdir="$$s/intl";; \
3183 $(SHELL) $${libsrcdir}/configure \
3184 $(HOST_CONFIGARGS) $${srcdiroption} \
3187 .PHONY: all-intl maybe-all-intl
3189 all-intl: configure-intl
3190 @r=`${PWD}`; export r; \
3191 s=`cd $(srcdir); ${PWD}`; export s; \
3193 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
3198 @r=`${PWD}`; export r; \
3199 s=`cd $(srcdir); ${PWD}`; export s; \
3201 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
3205 .PHONY: install-intl maybe-install-intl
3207 install-intl: installdirs
3208 @r=`${PWD}`; export r; \
3209 s=`cd $(srcdir); ${PWD}`; export s; \
3211 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
3214 .PHONY: configure-tcl maybe-configure-tcl
3215 maybe-configure-tcl:
3217 @test ! -f tcl/Makefile || exit 0; \
3218 [ -d tcl ] || mkdir tcl; \
3219 r=`${PWD}`; export r; \
3220 s=`cd $(srcdir); ${PWD}`; export s; \
3221 CC="$(CC)"; export CC; \
3222 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3223 CXX="$(CXX)"; export CXX; \
3224 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3225 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3226 AR="$(AR)"; export AR; \
3227 AS="$(AS)"; export AS; \
3228 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3229 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3230 LD="$(LD)"; export LD; \
3231 NM="$(NM)"; export NM; \
3232 RANLIB="$(RANLIB)"; export RANLIB; \
3233 WINDRES="$(WINDRES)"; export WINDRES; \
3234 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3235 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3237 echo Configuring in tcl; \
3241 srcdiroption="--srcdir=."; \
3243 /* | [A-Za-z]:[\\/]*) \
3244 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3245 libsrcdir="$$s/tcl";; \
3247 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3248 libsrcdir="$$s/tcl";; \
3250 $(SHELL) $${libsrcdir}/configure \
3251 $(HOST_CONFIGARGS) $${srcdiroption} \
3254 .PHONY: all-tcl maybe-all-tcl
3256 all-tcl: configure-tcl
3257 @r=`${PWD}`; export r; \
3258 s=`cd $(srcdir); ${PWD}`; export s; \
3260 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
3265 @r=`${PWD}`; export r; \
3266 s=`cd $(srcdir); ${PWD}`; export s; \
3268 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
3272 .PHONY: install-tcl maybe-install-tcl
3274 install-tcl: installdirs
3275 @r=`${PWD}`; export r; \
3276 s=`cd $(srcdir); ${PWD}`; export s; \
3278 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
3281 .PHONY: configure-itcl maybe-configure-itcl
3282 maybe-configure-itcl:
3284 @test ! -f itcl/Makefile || exit 0; \
3285 [ -d itcl ] || mkdir itcl; \
3286 r=`${PWD}`; export r; \
3287 s=`cd $(srcdir); ${PWD}`; export s; \
3288 CC="$(CC)"; export CC; \
3289 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3290 CXX="$(CXX)"; export CXX; \
3291 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3292 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3293 AR="$(AR)"; export AR; \
3294 AS="$(AS)"; export AS; \
3295 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3296 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3297 LD="$(LD)"; export LD; \
3298 NM="$(NM)"; export NM; \
3299 RANLIB="$(RANLIB)"; export RANLIB; \
3300 WINDRES="$(WINDRES)"; export WINDRES; \
3301 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3302 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3304 echo Configuring in itcl; \
3305 cd itcl || exit 1; \
3308 srcdiroption="--srcdir=."; \
3310 /* | [A-Za-z]:[\\/]*) \
3311 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3312 libsrcdir="$$s/itcl";; \
3314 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3315 libsrcdir="$$s/itcl";; \
3317 $(SHELL) $${libsrcdir}/configure \
3318 $(HOST_CONFIGARGS) $${srcdiroption} \
3321 .PHONY: all-itcl maybe-all-itcl
3323 all-itcl: configure-itcl
3324 @r=`${PWD}`; export r; \
3325 s=`cd $(srcdir); ${PWD}`; export s; \
3327 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
3332 @r=`${PWD}`; export r; \
3333 s=`cd $(srcdir); ${PWD}`; export s; \
3335 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
3339 .PHONY: install-itcl maybe-install-itcl
3341 install-itcl: installdirs
3342 @r=`${PWD}`; export r; \
3343 s=`cd $(srcdir); ${PWD}`; export s; \
3345 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
3348 .PHONY: configure-ld maybe-configure-ld
3351 @test ! -f ld/Makefile || exit 0; \
3352 [ -d ld ] || mkdir ld; \
3353 r=`${PWD}`; export r; \
3354 s=`cd $(srcdir); ${PWD}`; export s; \
3355 CC="$(CC)"; export CC; \
3356 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3357 CXX="$(CXX)"; export CXX; \
3358 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3359 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3360 AR="$(AR)"; export AR; \
3361 AS="$(AS)"; export AS; \
3362 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3363 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3364 LD="$(LD)"; export LD; \
3365 NM="$(NM)"; export NM; \
3366 RANLIB="$(RANLIB)"; export RANLIB; \
3367 WINDRES="$(WINDRES)"; export WINDRES; \
3368 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3369 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3371 echo Configuring in ld; \
3375 srcdiroption="--srcdir=."; \
3377 /* | [A-Za-z]:[\\/]*) \
3378 srcdiroption="--srcdir=$(srcdir)/ld"; \
3379 libsrcdir="$$s/ld";; \
3381 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3382 libsrcdir="$$s/ld";; \
3384 $(SHELL) $${libsrcdir}/configure \
3385 $(HOST_CONFIGARGS) $${srcdiroption} \
3388 .PHONY: all-ld maybe-all-ld
3390 all-ld: configure-ld
3391 @r=`${PWD}`; export r; \
3392 s=`cd $(srcdir); ${PWD}`; export s; \
3394 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
3399 @r=`${PWD}`; export r; \
3400 s=`cd $(srcdir); ${PWD}`; export s; \
3402 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
3406 .PHONY: install-ld maybe-install-ld
3408 install-ld: installdirs
3409 @r=`${PWD}`; export r; \
3410 s=`cd $(srcdir); ${PWD}`; export s; \
3412 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
3415 .PHONY: configure-libgui maybe-configure-libgui
3416 maybe-configure-libgui:
3418 @test ! -f libgui/Makefile || exit 0; \
3419 [ -d libgui ] || mkdir libgui; \
3420 r=`${PWD}`; export r; \
3421 s=`cd $(srcdir); ${PWD}`; export s; \
3422 CC="$(CC)"; export CC; \
3423 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3424 CXX="$(CXX)"; export CXX; \
3425 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3426 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3427 AR="$(AR)"; export AR; \
3428 AS="$(AS)"; export AS; \
3429 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3430 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3431 LD="$(LD)"; export LD; \
3432 NM="$(NM)"; export NM; \
3433 RANLIB="$(RANLIB)"; export RANLIB; \
3434 WINDRES="$(WINDRES)"; export WINDRES; \
3435 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3436 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3438 echo Configuring in libgui; \
3439 cd libgui || exit 1; \
3442 srcdiroption="--srcdir=."; \
3444 /* | [A-Za-z]:[\\/]*) \
3445 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3446 libsrcdir="$$s/libgui";; \
3448 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3449 libsrcdir="$$s/libgui";; \
3451 $(SHELL) $${libsrcdir}/configure \
3452 $(HOST_CONFIGARGS) $${srcdiroption} \
3455 .PHONY: all-libgui maybe-all-libgui
3457 all-libgui: configure-libgui
3458 @r=`${PWD}`; export r; \
3459 s=`cd $(srcdir); ${PWD}`; export s; \
3461 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
3464 .PHONY: check-libgui
3466 @r=`${PWD}`; export r; \
3467 s=`cd $(srcdir); ${PWD}`; export s; \
3469 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
3473 .PHONY: install-libgui maybe-install-libgui
3474 maybe-install-libgui:
3475 install-libgui: installdirs
3476 @r=`${PWD}`; export r; \
3477 s=`cd $(srcdir); ${PWD}`; export s; \
3479 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
3482 .PHONY: configure-libiberty maybe-configure-libiberty
3483 maybe-configure-libiberty:
3484 configure-libiberty:
3485 @test ! -f libiberty/Makefile || exit 0; \
3486 [ -d libiberty ] || mkdir libiberty; \
3487 r=`${PWD}`; export r; \
3488 s=`cd $(srcdir); ${PWD}`; export s; \
3489 CC="$(CC)"; export CC; \
3490 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3491 CXX="$(CXX)"; export CXX; \
3492 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3493 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3494 AR="$(AR)"; export AR; \
3495 AS="$(AS)"; export AS; \
3496 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3497 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3498 LD="$(LD)"; export LD; \
3499 NM="$(NM)"; export NM; \
3500 RANLIB="$(RANLIB)"; export RANLIB; \
3501 WINDRES="$(WINDRES)"; export WINDRES; \
3502 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3503 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3505 echo Configuring in libiberty; \
3506 cd libiberty || exit 1; \
3509 srcdiroption="--srcdir=."; \
3511 /* | [A-Za-z]:[\\/]*) \
3512 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3513 libsrcdir="$$s/libiberty";; \
3515 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3516 libsrcdir="$$s/libiberty";; \
3518 $(SHELL) $${libsrcdir}/configure \
3519 $(HOST_CONFIGARGS) $${srcdiroption} \
3522 .PHONY: all-libiberty maybe-all-libiberty
3523 maybe-all-libiberty:
3524 all-libiberty: configure-libiberty
3525 @r=`${PWD}`; export r; \
3526 s=`cd $(srcdir); ${PWD}`; export s; \
3528 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
3531 .PHONY: check-libiberty
3533 @r=`${PWD}`; export r; \
3534 s=`cd $(srcdir); ${PWD}`; export s; \
3536 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
3540 .PHONY: install-libiberty maybe-install-libiberty
3541 maybe-install-libiberty:
3542 install-libiberty: installdirs
3543 @r=`${PWD}`; export r; \
3544 s=`cd $(srcdir); ${PWD}`; export s; \
3546 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
3549 .PHONY: configure-libtool maybe-configure-libtool
3550 maybe-configure-libtool:
3552 @test ! -f libtool/Makefile || exit 0; \
3553 [ -d libtool ] || mkdir libtool; \
3554 r=`${PWD}`; export r; \
3555 s=`cd $(srcdir); ${PWD}`; export s; \
3556 CC="$(CC)"; export CC; \
3557 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3558 CXX="$(CXX)"; export CXX; \
3559 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3560 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3561 AR="$(AR)"; export AR; \
3562 AS="$(AS)"; export AS; \
3563 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3564 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3565 LD="$(LD)"; export LD; \
3566 NM="$(NM)"; export NM; \
3567 RANLIB="$(RANLIB)"; export RANLIB; \
3568 WINDRES="$(WINDRES)"; export WINDRES; \
3569 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3570 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3572 echo Configuring in libtool; \
3573 cd libtool || exit 1; \
3576 srcdiroption="--srcdir=."; \
3578 /* | [A-Za-z]:[\\/]*) \
3579 srcdiroption="--srcdir=$(srcdir)/libtool"; \
3580 libsrcdir="$$s/libtool";; \
3582 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
3583 libsrcdir="$$s/libtool";; \
3585 $(SHELL) $${libsrcdir}/configure \
3586 $(HOST_CONFIGARGS) $${srcdiroption} \
3589 .PHONY: all-libtool maybe-all-libtool
3591 all-libtool: configure-libtool
3592 @r=`${PWD}`; export r; \
3593 s=`cd $(srcdir); ${PWD}`; export s; \
3595 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
3598 .PHONY: check-libtool
3600 @r=`${PWD}`; export r; \
3601 s=`cd $(srcdir); ${PWD}`; export s; \
3603 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
3607 .PHONY: install-libtool maybe-install-libtool
3608 maybe-install-libtool:
3609 install-libtool: installdirs
3610 @r=`${PWD}`; export r; \
3611 s=`cd $(srcdir); ${PWD}`; export s; \
3613 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
3616 .PHONY: configure-m4 maybe-configure-m4
3619 @test ! -f m4/Makefile || exit 0; \
3620 [ -d m4 ] || mkdir m4; \
3621 r=`${PWD}`; export r; \
3622 s=`cd $(srcdir); ${PWD}`; export s; \
3623 CC="$(CC)"; export CC; \
3624 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3625 CXX="$(CXX)"; export CXX; \
3626 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3627 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3628 AR="$(AR)"; export AR; \
3629 AS="$(AS)"; export AS; \
3630 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3631 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3632 LD="$(LD)"; export LD; \
3633 NM="$(NM)"; export NM; \
3634 RANLIB="$(RANLIB)"; export RANLIB; \
3635 WINDRES="$(WINDRES)"; export WINDRES; \
3636 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3637 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3639 echo Configuring in m4; \
3643 srcdiroption="--srcdir=."; \
3645 /* | [A-Za-z]:[\\/]*) \
3646 srcdiroption="--srcdir=$(srcdir)/m4"; \
3647 libsrcdir="$$s/m4";; \
3649 srcdiroption="--srcdir=../$(srcdir)/m4"; \
3650 libsrcdir="$$s/m4";; \
3652 $(SHELL) $${libsrcdir}/configure \
3653 $(HOST_CONFIGARGS) $${srcdiroption} \
3656 .PHONY: all-m4 maybe-all-m4
3658 all-m4: configure-m4
3659 @r=`${PWD}`; export r; \
3660 s=`cd $(srcdir); ${PWD}`; export s; \
3662 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
3667 @r=`${PWD}`; export r; \
3668 s=`cd $(srcdir); ${PWD}`; export s; \
3670 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
3674 .PHONY: install-m4 maybe-install-m4
3676 install-m4: installdirs
3677 @r=`${PWD}`; export r; \
3678 s=`cd $(srcdir); ${PWD}`; export s; \
3680 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
3683 .PHONY: configure-make maybe-configure-make
3684 maybe-configure-make:
3686 @test ! -f make/Makefile || exit 0; \
3687 [ -d make ] || mkdir make; \
3688 r=`${PWD}`; export r; \
3689 s=`cd $(srcdir); ${PWD}`; export s; \
3690 CC="$(CC)"; export CC; \
3691 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3692 CXX="$(CXX)"; export CXX; \
3693 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3694 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3695 AR="$(AR)"; export AR; \
3696 AS="$(AS)"; export AS; \
3697 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3698 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3699 LD="$(LD)"; export LD; \
3700 NM="$(NM)"; export NM; \
3701 RANLIB="$(RANLIB)"; export RANLIB; \
3702 WINDRES="$(WINDRES)"; export WINDRES; \
3703 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3704 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3706 echo Configuring in make; \
3707 cd make || exit 1; \
3710 srcdiroption="--srcdir=."; \
3712 /* | [A-Za-z]:[\\/]*) \
3713 srcdiroption="--srcdir=$(srcdir)/make"; \
3714 libsrcdir="$$s/make";; \
3716 srcdiroption="--srcdir=../$(srcdir)/make"; \
3717 libsrcdir="$$s/make";; \
3719 $(SHELL) $${libsrcdir}/configure \
3720 $(HOST_CONFIGARGS) $${srcdiroption} \
3723 .PHONY: all-make maybe-all-make
3725 all-make: configure-make
3726 @r=`${PWD}`; export r; \
3727 s=`cd $(srcdir); ${PWD}`; export s; \
3729 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
3734 @r=`${PWD}`; export r; \
3735 s=`cd $(srcdir); ${PWD}`; export s; \
3737 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
3741 .PHONY: install-make maybe-install-make
3743 install-make: installdirs
3744 @r=`${PWD}`; export r; \
3745 s=`cd $(srcdir); ${PWD}`; export s; \
3747 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
3750 .PHONY: configure-mmalloc maybe-configure-mmalloc
3751 maybe-configure-mmalloc:
3753 @test ! -f mmalloc/Makefile || exit 0; \
3754 [ -d mmalloc ] || mkdir mmalloc; \
3755 r=`${PWD}`; export r; \
3756 s=`cd $(srcdir); ${PWD}`; export s; \
3757 CC="$(CC)"; export CC; \
3758 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3759 CXX="$(CXX)"; export CXX; \
3760 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3761 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3762 AR="$(AR)"; export AR; \
3763 AS="$(AS)"; export AS; \
3764 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3765 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3766 LD="$(LD)"; export LD; \
3767 NM="$(NM)"; export NM; \
3768 RANLIB="$(RANLIB)"; export RANLIB; \
3769 WINDRES="$(WINDRES)"; export WINDRES; \
3770 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3771 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3773 echo Configuring in mmalloc; \
3774 cd mmalloc || exit 1; \
3777 srcdiroption="--srcdir=."; \
3779 /* | [A-Za-z]:[\\/]*) \
3780 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
3781 libsrcdir="$$s/mmalloc";; \
3783 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
3784 libsrcdir="$$s/mmalloc";; \
3786 $(SHELL) $${libsrcdir}/configure \
3787 $(HOST_CONFIGARGS) $${srcdiroption} \
3790 .PHONY: all-mmalloc maybe-all-mmalloc
3792 all-mmalloc: configure-mmalloc
3793 @r=`${PWD}`; export r; \
3794 s=`cd $(srcdir); ${PWD}`; export s; \
3796 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
3799 .PHONY: check-mmalloc
3804 .PHONY: install-mmalloc maybe-install-mmalloc
3805 maybe-install-mmalloc:
3806 install-mmalloc: installdirs
3807 @r=`${PWD}`; export r; \
3808 s=`cd $(srcdir); ${PWD}`; export s; \
3810 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
3813 .PHONY: configure-patch maybe-configure-patch
3814 maybe-configure-patch:
3816 @test ! -f patch/Makefile || exit 0; \
3817 [ -d patch ] || mkdir patch; \
3818 r=`${PWD}`; export r; \
3819 s=`cd $(srcdir); ${PWD}`; export s; \
3820 CC="$(CC)"; export CC; \
3821 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3822 CXX="$(CXX)"; export CXX; \
3823 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3824 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3825 AR="$(AR)"; export AR; \
3826 AS="$(AS)"; export AS; \
3827 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3828 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3829 LD="$(LD)"; export LD; \
3830 NM="$(NM)"; export NM; \
3831 RANLIB="$(RANLIB)"; export RANLIB; \
3832 WINDRES="$(WINDRES)"; export WINDRES; \
3833 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3834 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3836 echo Configuring in patch; \
3837 cd patch || exit 1; \
3840 srcdiroption="--srcdir=."; \
3842 /* | [A-Za-z]:[\\/]*) \
3843 srcdiroption="--srcdir=$(srcdir)/patch"; \
3844 libsrcdir="$$s/patch";; \
3846 srcdiroption="--srcdir=../$(srcdir)/patch"; \
3847 libsrcdir="$$s/patch";; \
3849 $(SHELL) $${libsrcdir}/configure \
3850 $(HOST_CONFIGARGS) $${srcdiroption} \
3853 .PHONY: all-patch maybe-all-patch
3855 all-patch: configure-patch
3856 @r=`${PWD}`; export r; \
3857 s=`cd $(srcdir); ${PWD}`; export s; \
3859 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
3864 @r=`${PWD}`; export r; \
3865 s=`cd $(srcdir); ${PWD}`; export s; \
3867 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
3871 .PHONY: install-patch maybe-install-patch
3872 maybe-install-patch:
3873 install-patch: installdirs
3874 @r=`${PWD}`; export r; \
3875 s=`cd $(srcdir); ${PWD}`; export s; \
3877 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
3880 .PHONY: configure-perl maybe-configure-perl
3881 maybe-configure-perl:
3883 @test ! -f perl/Makefile || exit 0; \
3884 [ -d perl ] || mkdir perl; \
3885 r=`${PWD}`; export r; \
3886 s=`cd $(srcdir); ${PWD}`; export s; \
3887 CC="$(CC)"; export CC; \
3888 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3889 CXX="$(CXX)"; export CXX; \
3890 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3891 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3892 AR="$(AR)"; export AR; \
3893 AS="$(AS)"; export AS; \
3894 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3895 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3896 LD="$(LD)"; export LD; \
3897 NM="$(NM)"; export NM; \
3898 RANLIB="$(RANLIB)"; export RANLIB; \
3899 WINDRES="$(WINDRES)"; export WINDRES; \
3900 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3901 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3903 echo Configuring in perl; \
3904 cd perl || exit 1; \
3907 srcdiroption="--srcdir=."; \
3909 /* | [A-Za-z]:[\\/]*) \
3910 srcdiroption="--srcdir=$(srcdir)/perl"; \
3911 libsrcdir="$$s/perl";; \
3913 srcdiroption="--srcdir=../$(srcdir)/perl"; \
3914 libsrcdir="$$s/perl";; \
3916 $(SHELL) $${libsrcdir}/configure \
3917 $(HOST_CONFIGARGS) $${srcdiroption} \
3920 .PHONY: all-perl maybe-all-perl
3922 all-perl: configure-perl
3923 @r=`${PWD}`; export r; \
3924 s=`cd $(srcdir); ${PWD}`; export s; \
3926 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
3931 @r=`${PWD}`; export r; \
3932 s=`cd $(srcdir); ${PWD}`; export s; \
3934 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
3938 .PHONY: install-perl maybe-install-perl
3940 install-perl: installdirs
3941 @r=`${PWD}`; export r; \
3942 s=`cd $(srcdir); ${PWD}`; export s; \
3944 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
3947 .PHONY: configure-prms maybe-configure-prms
3948 maybe-configure-prms:
3950 @test ! -f prms/Makefile || exit 0; \
3951 [ -d prms ] || mkdir prms; \
3952 r=`${PWD}`; export r; \
3953 s=`cd $(srcdir); ${PWD}`; export s; \
3954 CC="$(CC)"; export CC; \
3955 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3956 CXX="$(CXX)"; export CXX; \
3957 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3958 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3959 AR="$(AR)"; export AR; \
3960 AS="$(AS)"; export AS; \
3961 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3962 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3963 LD="$(LD)"; export LD; \
3964 NM="$(NM)"; export NM; \
3965 RANLIB="$(RANLIB)"; export RANLIB; \
3966 WINDRES="$(WINDRES)"; export WINDRES; \
3967 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3968 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3970 echo Configuring in prms; \
3971 cd prms || exit 1; \
3974 srcdiroption="--srcdir=."; \
3976 /* | [A-Za-z]:[\\/]*) \
3977 srcdiroption="--srcdir=$(srcdir)/prms"; \
3978 libsrcdir="$$s/prms";; \
3980 srcdiroption="--srcdir=../$(srcdir)/prms"; \
3981 libsrcdir="$$s/prms";; \
3983 $(SHELL) $${libsrcdir}/configure \
3984 $(HOST_CONFIGARGS) $${srcdiroption} \
3987 .PHONY: all-prms maybe-all-prms
3989 all-prms: configure-prms
3990 @r=`${PWD}`; export r; \
3991 s=`cd $(srcdir); ${PWD}`; export s; \
3993 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
3998 @r=`${PWD}`; export r; \
3999 s=`cd $(srcdir); ${PWD}`; export s; \
4001 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4005 .PHONY: install-prms maybe-install-prms
4007 install-prms: installdirs
4008 @r=`${PWD}`; export r; \
4009 s=`cd $(srcdir); ${PWD}`; export s; \
4011 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4014 .PHONY: configure-rcs maybe-configure-rcs
4015 maybe-configure-rcs:
4017 @test ! -f rcs/Makefile || exit 0; \
4018 [ -d rcs ] || mkdir rcs; \
4019 r=`${PWD}`; export r; \
4020 s=`cd $(srcdir); ${PWD}`; export s; \
4021 CC="$(CC)"; export CC; \
4022 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4023 CXX="$(CXX)"; export CXX; \
4024 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4025 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4026 AR="$(AR)"; export AR; \
4027 AS="$(AS)"; export AS; \
4028 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4029 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4030 LD="$(LD)"; export LD; \
4031 NM="$(NM)"; export NM; \
4032 RANLIB="$(RANLIB)"; export RANLIB; \
4033 WINDRES="$(WINDRES)"; export WINDRES; \
4034 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4035 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4037 echo Configuring in rcs; \
4041 srcdiroption="--srcdir=."; \
4043 /* | [A-Za-z]:[\\/]*) \
4044 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4045 libsrcdir="$$s/rcs";; \
4047 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4048 libsrcdir="$$s/rcs";; \
4050 $(SHELL) $${libsrcdir}/configure \
4051 $(HOST_CONFIGARGS) $${srcdiroption} \
4054 .PHONY: all-rcs maybe-all-rcs
4056 all-rcs: configure-rcs
4057 @r=`${PWD}`; export r; \
4058 s=`cd $(srcdir); ${PWD}`; export s; \
4060 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
4065 @r=`${PWD}`; export r; \
4066 s=`cd $(srcdir); ${PWD}`; export s; \
4068 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4072 .PHONY: install-rcs maybe-install-rcs
4074 install-rcs: installdirs
4075 @r=`${PWD}`; export r; \
4076 s=`cd $(srcdir); ${PWD}`; export s; \
4078 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
4081 .PHONY: configure-readline maybe-configure-readline
4082 maybe-configure-readline:
4084 @test ! -f readline/Makefile || exit 0; \
4085 [ -d readline ] || mkdir readline; \
4086 r=`${PWD}`; export r; \
4087 s=`cd $(srcdir); ${PWD}`; export s; \
4088 CC="$(CC)"; export CC; \
4089 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4090 CXX="$(CXX)"; export CXX; \
4091 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4092 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4093 AR="$(AR)"; export AR; \
4094 AS="$(AS)"; export AS; \
4095 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4096 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4097 LD="$(LD)"; export LD; \
4098 NM="$(NM)"; export NM; \
4099 RANLIB="$(RANLIB)"; export RANLIB; \
4100 WINDRES="$(WINDRES)"; export WINDRES; \
4101 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4102 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4104 echo Configuring in readline; \
4105 cd readline || exit 1; \
4108 srcdiroption="--srcdir=."; \
4110 /* | [A-Za-z]:[\\/]*) \
4111 srcdiroption="--srcdir=$(srcdir)/readline"; \
4112 libsrcdir="$$s/readline";; \
4114 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4115 libsrcdir="$$s/readline";; \
4117 $(SHELL) $${libsrcdir}/configure \
4118 $(HOST_CONFIGARGS) $${srcdiroption} \
4121 .PHONY: all-readline maybe-all-readline
4123 all-readline: configure-readline
4124 @r=`${PWD}`; export r; \
4125 s=`cd $(srcdir); ${PWD}`; export s; \
4127 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
4130 .PHONY: check-readline
4132 @r=`${PWD}`; export r; \
4133 s=`cd $(srcdir); ${PWD}`; export s; \
4135 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4139 .PHONY: install-readline maybe-install-readline
4140 maybe-install-readline:
4141 install-readline: installdirs
4142 @r=`${PWD}`; export r; \
4143 s=`cd $(srcdir); ${PWD}`; export s; \
4145 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4148 .PHONY: configure-release maybe-configure-release
4149 maybe-configure-release:
4151 @test ! -f release/Makefile || exit 0; \
4152 [ -d release ] || mkdir release; \
4153 r=`${PWD}`; export r; \
4154 s=`cd $(srcdir); ${PWD}`; export s; \
4155 CC="$(CC)"; export CC; \
4156 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4157 CXX="$(CXX)"; export CXX; \
4158 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4159 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4160 AR="$(AR)"; export AR; \
4161 AS="$(AS)"; export AS; \
4162 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4163 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4164 LD="$(LD)"; export LD; \
4165 NM="$(NM)"; export NM; \
4166 RANLIB="$(RANLIB)"; export RANLIB; \
4167 WINDRES="$(WINDRES)"; export WINDRES; \
4168 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4169 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4171 echo Configuring in release; \
4172 cd release || exit 1; \
4175 srcdiroption="--srcdir=."; \
4177 /* | [A-Za-z]:[\\/]*) \
4178 srcdiroption="--srcdir=$(srcdir)/release"; \
4179 libsrcdir="$$s/release";; \
4181 srcdiroption="--srcdir=../$(srcdir)/release"; \
4182 libsrcdir="$$s/release";; \
4184 $(SHELL) $${libsrcdir}/configure \
4185 $(HOST_CONFIGARGS) $${srcdiroption} \
4188 .PHONY: all-release maybe-all-release
4190 all-release: configure-release
4191 @r=`${PWD}`; export r; \
4192 s=`cd $(srcdir); ${PWD}`; export s; \
4194 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
4197 .PHONY: check-release
4202 .PHONY: install-release maybe-install-release
4203 maybe-install-release:
4207 .PHONY: configure-recode maybe-configure-recode
4208 maybe-configure-recode:
4210 @test ! -f recode/Makefile || exit 0; \
4211 [ -d recode ] || mkdir recode; \
4212 r=`${PWD}`; export r; \
4213 s=`cd $(srcdir); ${PWD}`; export s; \
4214 CC="$(CC)"; export CC; \
4215 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4216 CXX="$(CXX)"; export CXX; \
4217 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4218 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4219 AR="$(AR)"; export AR; \
4220 AS="$(AS)"; export AS; \
4221 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4222 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4223 LD="$(LD)"; export LD; \
4224 NM="$(NM)"; export NM; \
4225 RANLIB="$(RANLIB)"; export RANLIB; \
4226 WINDRES="$(WINDRES)"; export WINDRES; \
4227 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4228 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4230 echo Configuring in recode; \
4231 cd recode || exit 1; \
4234 srcdiroption="--srcdir=."; \
4236 /* | [A-Za-z]:[\\/]*) \
4237 srcdiroption="--srcdir=$(srcdir)/recode"; \
4238 libsrcdir="$$s/recode";; \
4240 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4241 libsrcdir="$$s/recode";; \
4243 $(SHELL) $${libsrcdir}/configure \
4244 $(HOST_CONFIGARGS) $${srcdiroption} \
4247 .PHONY: all-recode maybe-all-recode
4249 all-recode: configure-recode
4250 @r=`${PWD}`; export r; \
4251 s=`cd $(srcdir); ${PWD}`; export s; \
4253 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
4256 .PHONY: check-recode
4258 @r=`${PWD}`; export r; \
4259 s=`cd $(srcdir); ${PWD}`; export s; \
4261 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4265 .PHONY: install-recode maybe-install-recode
4266 maybe-install-recode:
4267 install-recode: installdirs
4268 @r=`${PWD}`; export r; \
4269 s=`cd $(srcdir); ${PWD}`; export s; \
4271 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4274 .PHONY: configure-sed maybe-configure-sed
4275 maybe-configure-sed:
4277 @test ! -f sed/Makefile || exit 0; \
4278 [ -d sed ] || mkdir sed; \
4279 r=`${PWD}`; export r; \
4280 s=`cd $(srcdir); ${PWD}`; export s; \
4281 CC="$(CC)"; export CC; \
4282 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4283 CXX="$(CXX)"; export CXX; \
4284 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4285 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4286 AR="$(AR)"; export AR; \
4287 AS="$(AS)"; export AS; \
4288 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4289 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4290 LD="$(LD)"; export LD; \
4291 NM="$(NM)"; export NM; \
4292 RANLIB="$(RANLIB)"; export RANLIB; \
4293 WINDRES="$(WINDRES)"; export WINDRES; \
4294 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4295 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4297 echo Configuring in sed; \
4301 srcdiroption="--srcdir=."; \
4303 /* | [A-Za-z]:[\\/]*) \
4304 srcdiroption="--srcdir=$(srcdir)/sed"; \
4305 libsrcdir="$$s/sed";; \
4307 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4308 libsrcdir="$$s/sed";; \
4310 $(SHELL) $${libsrcdir}/configure \
4311 $(HOST_CONFIGARGS) $${srcdiroption} \
4314 .PHONY: all-sed maybe-all-sed
4316 all-sed: configure-sed
4317 @r=`${PWD}`; export r; \
4318 s=`cd $(srcdir); ${PWD}`; export s; \
4320 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
4325 @r=`${PWD}`; export r; \
4326 s=`cd $(srcdir); ${PWD}`; export s; \
4328 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4332 .PHONY: install-sed maybe-install-sed
4334 install-sed: installdirs
4335 @r=`${PWD}`; export r; \
4336 s=`cd $(srcdir); ${PWD}`; export s; \
4338 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
4341 .PHONY: configure-send-pr maybe-configure-send-pr
4342 maybe-configure-send-pr:
4344 @test ! -f send-pr/Makefile || exit 0; \
4345 [ -d send-pr ] || mkdir send-pr; \
4346 r=`${PWD}`; export r; \
4347 s=`cd $(srcdir); ${PWD}`; export s; \
4348 CC="$(CC)"; export CC; \
4349 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4350 CXX="$(CXX)"; export CXX; \
4351 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4352 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4353 AR="$(AR)"; export AR; \
4354 AS="$(AS)"; export AS; \
4355 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4356 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4357 LD="$(LD)"; export LD; \
4358 NM="$(NM)"; export NM; \
4359 RANLIB="$(RANLIB)"; export RANLIB; \
4360 WINDRES="$(WINDRES)"; export WINDRES; \
4361 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4362 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4364 echo Configuring in send-pr; \
4365 cd send-pr || exit 1; \
4368 srcdiroption="--srcdir=."; \
4370 /* | [A-Za-z]:[\\/]*) \
4371 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4372 libsrcdir="$$s/send-pr";; \
4374 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4375 libsrcdir="$$s/send-pr";; \
4377 $(SHELL) $${libsrcdir}/configure \
4378 $(HOST_CONFIGARGS) $${srcdiroption} \
4381 .PHONY: all-send-pr maybe-all-send-pr
4383 all-send-pr: configure-send-pr
4384 @r=`${PWD}`; export r; \
4385 s=`cd $(srcdir); ${PWD}`; export s; \
4387 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
4390 .PHONY: check-send-pr
4392 @r=`${PWD}`; export r; \
4393 s=`cd $(srcdir); ${PWD}`; export s; \
4395 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4399 .PHONY: install-send-pr maybe-install-send-pr
4400 maybe-install-send-pr:
4401 install-send-pr: installdirs
4402 @r=`${PWD}`; export r; \
4403 s=`cd $(srcdir); ${PWD}`; export s; \
4405 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4408 .PHONY: configure-shellutils maybe-configure-shellutils
4409 maybe-configure-shellutils:
4410 configure-shellutils:
4411 @test ! -f shellutils/Makefile || exit 0; \
4412 [ -d shellutils ] || mkdir shellutils; \
4413 r=`${PWD}`; export r; \
4414 s=`cd $(srcdir); ${PWD}`; export s; \
4415 CC="$(CC)"; export CC; \
4416 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4417 CXX="$(CXX)"; export CXX; \
4418 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4419 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4420 AR="$(AR)"; export AR; \
4421 AS="$(AS)"; export AS; \
4422 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4423 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4424 LD="$(LD)"; export LD; \
4425 NM="$(NM)"; export NM; \
4426 RANLIB="$(RANLIB)"; export RANLIB; \
4427 WINDRES="$(WINDRES)"; export WINDRES; \
4428 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4429 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4431 echo Configuring in shellutils; \
4432 cd shellutils || exit 1; \
4435 srcdiroption="--srcdir=."; \
4437 /* | [A-Za-z]:[\\/]*) \
4438 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4439 libsrcdir="$$s/shellutils";; \
4441 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4442 libsrcdir="$$s/shellutils";; \
4444 $(SHELL) $${libsrcdir}/configure \
4445 $(HOST_CONFIGARGS) $${srcdiroption} \
4448 .PHONY: all-shellutils maybe-all-shellutils
4449 maybe-all-shellutils:
4450 all-shellutils: configure-shellutils
4451 @r=`${PWD}`; export r; \
4452 s=`cd $(srcdir); ${PWD}`; export s; \
4454 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
4457 .PHONY: check-shellutils
4459 @r=`${PWD}`; export r; \
4460 s=`cd $(srcdir); ${PWD}`; export s; \
4462 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4466 .PHONY: install-shellutils maybe-install-shellutils
4467 maybe-install-shellutils:
4468 install-shellutils: installdirs
4469 @r=`${PWD}`; export r; \
4470 s=`cd $(srcdir); ${PWD}`; export s; \
4472 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4475 .PHONY: configure-sid maybe-configure-sid
4476 maybe-configure-sid:
4478 @test ! -f sid/Makefile || exit 0; \
4479 [ -d sid ] || mkdir sid; \
4480 r=`${PWD}`; export r; \
4481 s=`cd $(srcdir); ${PWD}`; export s; \
4482 CC="$(CC)"; export CC; \
4483 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4484 CXX="$(CXX)"; export CXX; \
4485 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4486 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4487 AR="$(AR)"; export AR; \
4488 AS="$(AS)"; export AS; \
4489 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4490 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4491 LD="$(LD)"; export LD; \
4492 NM="$(NM)"; export NM; \
4493 RANLIB="$(RANLIB)"; export RANLIB; \
4494 WINDRES="$(WINDRES)"; export WINDRES; \
4495 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4496 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4498 echo Configuring in sid; \
4502 srcdiroption="--srcdir=."; \
4504 /* | [A-Za-z]:[\\/]*) \
4505 srcdiroption="--srcdir=$(srcdir)/sid"; \
4506 libsrcdir="$$s/sid";; \
4508 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4509 libsrcdir="$$s/sid";; \
4511 $(SHELL) $${libsrcdir}/configure \
4512 $(HOST_CONFIGARGS) $${srcdiroption} \
4515 .PHONY: all-sid maybe-all-sid
4517 all-sid: configure-sid
4518 @r=`${PWD}`; export r; \
4519 s=`cd $(srcdir); ${PWD}`; export s; \
4521 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
4526 @r=`${PWD}`; export r; \
4527 s=`cd $(srcdir); ${PWD}`; export s; \
4529 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4533 .PHONY: install-sid maybe-install-sid
4535 install-sid: installdirs
4536 @r=`${PWD}`; export r; \
4537 s=`cd $(srcdir); ${PWD}`; export s; \
4539 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
4542 .PHONY: configure-sim maybe-configure-sim
4543 maybe-configure-sim:
4545 @test ! -f sim/Makefile || exit 0; \
4546 [ -d sim ] || mkdir sim; \
4547 r=`${PWD}`; export r; \
4548 s=`cd $(srcdir); ${PWD}`; export s; \
4549 CC="$(CC)"; export CC; \
4550 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4551 CXX="$(CXX)"; export CXX; \
4552 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4553 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4554 AR="$(AR)"; export AR; \
4555 AS="$(AS)"; export AS; \
4556 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4557 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4558 LD="$(LD)"; export LD; \
4559 NM="$(NM)"; export NM; \
4560 RANLIB="$(RANLIB)"; export RANLIB; \
4561 WINDRES="$(WINDRES)"; export WINDRES; \
4562 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4563 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4565 echo Configuring in sim; \
4569 srcdiroption="--srcdir=."; \
4571 /* | [A-Za-z]:[\\/]*) \
4572 srcdiroption="--srcdir=$(srcdir)/sim"; \
4573 libsrcdir="$$s/sim";; \
4575 srcdiroption="--srcdir=../$(srcdir)/sim"; \
4576 libsrcdir="$$s/sim";; \
4578 $(SHELL) $${libsrcdir}/configure \
4579 $(HOST_CONFIGARGS) $${srcdiroption} \
4582 .PHONY: all-sim maybe-all-sim
4584 all-sim: configure-sim
4585 @r=`${PWD}`; export r; \
4586 s=`cd $(srcdir); ${PWD}`; export s; \
4588 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
4593 @r=`${PWD}`; export r; \
4594 s=`cd $(srcdir); ${PWD}`; export s; \
4596 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
4600 .PHONY: install-sim maybe-install-sim
4602 install-sim: installdirs
4603 @r=`${PWD}`; export r; \
4604 s=`cd $(srcdir); ${PWD}`; export s; \
4606 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
4609 .PHONY: configure-tar maybe-configure-tar
4610 maybe-configure-tar:
4612 @test ! -f tar/Makefile || exit 0; \
4613 [ -d tar ] || mkdir tar; \
4614 r=`${PWD}`; export r; \
4615 s=`cd $(srcdir); ${PWD}`; export s; \
4616 CC="$(CC)"; export CC; \
4617 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4618 CXX="$(CXX)"; export CXX; \
4619 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4620 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4621 AR="$(AR)"; export AR; \
4622 AS="$(AS)"; export AS; \
4623 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4624 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4625 LD="$(LD)"; export LD; \
4626 NM="$(NM)"; export NM; \
4627 RANLIB="$(RANLIB)"; export RANLIB; \
4628 WINDRES="$(WINDRES)"; export WINDRES; \
4629 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4630 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4632 echo Configuring in tar; \
4636 srcdiroption="--srcdir=."; \
4638 /* | [A-Za-z]:[\\/]*) \
4639 srcdiroption="--srcdir=$(srcdir)/tar"; \
4640 libsrcdir="$$s/tar";; \
4642 srcdiroption="--srcdir=../$(srcdir)/tar"; \
4643 libsrcdir="$$s/tar";; \
4645 $(SHELL) $${libsrcdir}/configure \
4646 $(HOST_CONFIGARGS) $${srcdiroption} \
4649 .PHONY: all-tar maybe-all-tar
4651 all-tar: configure-tar
4652 @r=`${PWD}`; export r; \
4653 s=`cd $(srcdir); ${PWD}`; export s; \
4655 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
4660 @r=`${PWD}`; export r; \
4661 s=`cd $(srcdir); ${PWD}`; export s; \
4663 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
4667 .PHONY: install-tar maybe-install-tar
4669 install-tar: installdirs
4670 @r=`${PWD}`; export r; \
4671 s=`cd $(srcdir); ${PWD}`; export s; \
4673 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
4676 .PHONY: configure-texinfo maybe-configure-texinfo
4677 maybe-configure-texinfo:
4679 @test ! -f texinfo/Makefile || exit 0; \
4680 [ -d texinfo ] || mkdir texinfo; \
4681 r=`${PWD}`; export r; \
4682 s=`cd $(srcdir); ${PWD}`; export s; \
4683 CC="$(CC)"; export CC; \
4684 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4685 CXX="$(CXX)"; export CXX; \
4686 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4687 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4688 AR="$(AR)"; export AR; \
4689 AS="$(AS)"; export AS; \
4690 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4691 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4692 LD="$(LD)"; export LD; \
4693 NM="$(NM)"; export NM; \
4694 RANLIB="$(RANLIB)"; export RANLIB; \
4695 WINDRES="$(WINDRES)"; export WINDRES; \
4696 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4697 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4699 echo Configuring in texinfo; \
4700 cd texinfo || exit 1; \
4703 srcdiroption="--srcdir=."; \
4705 /* | [A-Za-z]:[\\/]*) \
4706 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
4707 libsrcdir="$$s/texinfo";; \
4709 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
4710 libsrcdir="$$s/texinfo";; \
4712 $(SHELL) $${libsrcdir}/configure \
4713 $(HOST_CONFIGARGS) $${srcdiroption} \
4716 .PHONY: all-texinfo maybe-all-texinfo
4718 all-texinfo: configure-texinfo
4719 @r=`${PWD}`; export r; \
4720 s=`cd $(srcdir); ${PWD}`; export s; \
4722 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
4725 .PHONY: check-texinfo
4727 @r=`${PWD}`; export r; \
4728 s=`cd $(srcdir); ${PWD}`; export s; \
4730 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
4734 .PHONY: install-texinfo maybe-install-texinfo
4735 maybe-install-texinfo:
4739 .PHONY: configure-textutils maybe-configure-textutils
4740 maybe-configure-textutils:
4741 configure-textutils:
4742 @test ! -f textutils/Makefile || exit 0; \
4743 [ -d textutils ] || mkdir textutils; \
4744 r=`${PWD}`; export r; \
4745 s=`cd $(srcdir); ${PWD}`; export s; \
4746 CC="$(CC)"; export CC; \
4747 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4748 CXX="$(CXX)"; export CXX; \
4749 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4750 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4751 AR="$(AR)"; export AR; \
4752 AS="$(AS)"; export AS; \
4753 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4754 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4755 LD="$(LD)"; export LD; \
4756 NM="$(NM)"; export NM; \
4757 RANLIB="$(RANLIB)"; export RANLIB; \
4758 WINDRES="$(WINDRES)"; export WINDRES; \
4759 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4760 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4762 echo Configuring in textutils; \
4763 cd textutils || exit 1; \
4766 srcdiroption="--srcdir=."; \
4768 /* | [A-Za-z]:[\\/]*) \
4769 srcdiroption="--srcdir=$(srcdir)/textutils"; \
4770 libsrcdir="$$s/textutils";; \
4772 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
4773 libsrcdir="$$s/textutils";; \
4775 $(SHELL) $${libsrcdir}/configure \
4776 $(HOST_CONFIGARGS) $${srcdiroption} \
4779 .PHONY: all-textutils maybe-all-textutils
4780 maybe-all-textutils:
4781 all-textutils: configure-textutils
4782 @r=`${PWD}`; export r; \
4783 s=`cd $(srcdir); ${PWD}`; export s; \
4785 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
4788 .PHONY: check-textutils
4790 @r=`${PWD}`; export r; \
4791 s=`cd $(srcdir); ${PWD}`; export s; \
4793 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
4797 .PHONY: install-textutils maybe-install-textutils
4798 maybe-install-textutils:
4799 install-textutils: installdirs
4800 @r=`${PWD}`; export r; \
4801 s=`cd $(srcdir); ${PWD}`; export s; \
4803 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
4806 .PHONY: configure-time maybe-configure-time
4807 maybe-configure-time:
4809 @test ! -f time/Makefile || exit 0; \
4810 [ -d time ] || mkdir time; \
4811 r=`${PWD}`; export r; \
4812 s=`cd $(srcdir); ${PWD}`; export s; \
4813 CC="$(CC)"; export CC; \
4814 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4815 CXX="$(CXX)"; export CXX; \
4816 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4817 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4818 AR="$(AR)"; export AR; \
4819 AS="$(AS)"; export AS; \
4820 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4821 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4822 LD="$(LD)"; export LD; \
4823 NM="$(NM)"; export NM; \
4824 RANLIB="$(RANLIB)"; export RANLIB; \
4825 WINDRES="$(WINDRES)"; export WINDRES; \
4826 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4827 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4829 echo Configuring in time; \
4830 cd time || exit 1; \
4833 srcdiroption="--srcdir=."; \
4835 /* | [A-Za-z]:[\\/]*) \
4836 srcdiroption="--srcdir=$(srcdir)/time"; \
4837 libsrcdir="$$s/time";; \
4839 srcdiroption="--srcdir=../$(srcdir)/time"; \
4840 libsrcdir="$$s/time";; \
4842 $(SHELL) $${libsrcdir}/configure \
4843 $(HOST_CONFIGARGS) $${srcdiroption} \
4846 .PHONY: all-time maybe-all-time
4848 all-time: configure-time
4849 @r=`${PWD}`; export r; \
4850 s=`cd $(srcdir); ${PWD}`; export s; \
4852 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
4857 @r=`${PWD}`; export r; \
4858 s=`cd $(srcdir); ${PWD}`; export s; \
4860 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
4864 .PHONY: install-time maybe-install-time
4866 install-time: installdirs
4867 @r=`${PWD}`; export r; \
4868 s=`cd $(srcdir); ${PWD}`; export s; \
4870 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
4873 .PHONY: configure-uudecode maybe-configure-uudecode
4874 maybe-configure-uudecode:
4876 @test ! -f uudecode/Makefile || exit 0; \
4877 [ -d uudecode ] || mkdir uudecode; \
4878 r=`${PWD}`; export r; \
4879 s=`cd $(srcdir); ${PWD}`; export s; \
4880 CC="$(CC)"; export CC; \
4881 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4882 CXX="$(CXX)"; export CXX; \
4883 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4884 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4885 AR="$(AR)"; export AR; \
4886 AS="$(AS)"; export AS; \
4887 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4888 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4889 LD="$(LD)"; export LD; \
4890 NM="$(NM)"; export NM; \
4891 RANLIB="$(RANLIB)"; export RANLIB; \
4892 WINDRES="$(WINDRES)"; export WINDRES; \
4893 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4894 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4896 echo Configuring in uudecode; \
4897 cd uudecode || exit 1; \
4900 srcdiroption="--srcdir=."; \
4902 /* | [A-Za-z]:[\\/]*) \
4903 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
4904 libsrcdir="$$s/uudecode";; \
4906 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
4907 libsrcdir="$$s/uudecode";; \
4909 $(SHELL) $${libsrcdir}/configure \
4910 $(HOST_CONFIGARGS) $${srcdiroption} \
4913 .PHONY: all-uudecode maybe-all-uudecode
4915 all-uudecode: configure-uudecode
4916 @r=`${PWD}`; export r; \
4917 s=`cd $(srcdir); ${PWD}`; export s; \
4919 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
4922 .PHONY: check-uudecode
4924 @r=`${PWD}`; export r; \
4925 s=`cd $(srcdir); ${PWD}`; export s; \
4927 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
4931 .PHONY: install-uudecode maybe-install-uudecode
4932 maybe-install-uudecode:
4933 install-uudecode: installdirs
4934 @r=`${PWD}`; export r; \
4935 s=`cd $(srcdir); ${PWD}`; export s; \
4937 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
4940 .PHONY: configure-wdiff maybe-configure-wdiff
4941 maybe-configure-wdiff:
4943 @test ! -f wdiff/Makefile || exit 0; \
4944 [ -d wdiff ] || mkdir wdiff; \
4945 r=`${PWD}`; export r; \
4946 s=`cd $(srcdir); ${PWD}`; export s; \
4947 CC="$(CC)"; export CC; \
4948 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4949 CXX="$(CXX)"; export CXX; \
4950 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4951 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4952 AR="$(AR)"; export AR; \
4953 AS="$(AS)"; export AS; \
4954 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4955 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4956 LD="$(LD)"; export LD; \
4957 NM="$(NM)"; export NM; \
4958 RANLIB="$(RANLIB)"; export RANLIB; \
4959 WINDRES="$(WINDRES)"; export WINDRES; \
4960 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4961 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4963 echo Configuring in wdiff; \
4964 cd wdiff || exit 1; \
4967 srcdiroption="--srcdir=."; \
4969 /* | [A-Za-z]:[\\/]*) \
4970 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
4971 libsrcdir="$$s/wdiff";; \
4973 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
4974 libsrcdir="$$s/wdiff";; \
4976 $(SHELL) $${libsrcdir}/configure \
4977 $(HOST_CONFIGARGS) $${srcdiroption} \
4980 .PHONY: all-wdiff maybe-all-wdiff
4982 all-wdiff: configure-wdiff
4983 @r=`${PWD}`; export r; \
4984 s=`cd $(srcdir); ${PWD}`; export s; \
4986 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
4991 @r=`${PWD}`; export r; \
4992 s=`cd $(srcdir); ${PWD}`; export s; \
4994 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
4998 .PHONY: install-wdiff maybe-install-wdiff
4999 maybe-install-wdiff:
5000 install-wdiff: installdirs
5001 @r=`${PWD}`; export r; \
5002 s=`cd $(srcdir); ${PWD}`; export s; \
5004 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
5007 .PHONY: configure-zip maybe-configure-zip
5008 maybe-configure-zip:
5010 @test ! -f zip/Makefile || exit 0; \
5011 [ -d zip ] || mkdir zip; \
5012 r=`${PWD}`; export r; \
5013 s=`cd $(srcdir); ${PWD}`; export s; \
5014 CC="$(CC)"; export CC; \
5015 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5016 CXX="$(CXX)"; export CXX; \
5017 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5018 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5019 AR="$(AR)"; export AR; \
5020 AS="$(AS)"; export AS; \
5021 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5022 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5023 LD="$(LD)"; export LD; \
5024 NM="$(NM)"; export NM; \
5025 RANLIB="$(RANLIB)"; export RANLIB; \
5026 WINDRES="$(WINDRES)"; export WINDRES; \
5027 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5028 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5030 echo Configuring in zip; \
5034 srcdiroption="--srcdir=."; \
5036 /* | [A-Za-z]:[\\/]*) \
5037 srcdiroption="--srcdir=$(srcdir)/zip"; \
5038 libsrcdir="$$s/zip";; \
5040 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5041 libsrcdir="$$s/zip";; \
5043 $(SHELL) $${libsrcdir}/configure \
5044 $(HOST_CONFIGARGS) $${srcdiroption} \
5047 .PHONY: all-zip maybe-all-zip
5049 all-zip: configure-zip
5050 @r=`${PWD}`; export r; \
5051 s=`cd $(srcdir); ${PWD}`; export s; \
5053 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
5057 # This module is only tested in a native toolchain.
5059 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5060 r=`${PWD}`; export r; \
5061 s=`cd $(srcdir); ${PWD}`; export s; \
5063 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
5068 .PHONY: install-zip maybe-install-zip
5070 install-zip: installdirs
5071 @r=`${PWD}`; export r; \
5072 s=`cd $(srcdir); ${PWD}`; export s; \
5074 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
5077 .PHONY: configure-zlib maybe-configure-zlib
5078 maybe-configure-zlib:
5080 @test ! -f zlib/Makefile || exit 0; \
5081 [ -d zlib ] || mkdir zlib; \
5082 r=`${PWD}`; export r; \
5083 s=`cd $(srcdir); ${PWD}`; export s; \
5084 CC="$(CC)"; export CC; \
5085 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5086 CXX="$(CXX)"; export CXX; \
5087 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5088 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5089 AR="$(AR)"; export AR; \
5090 AS="$(AS)"; export AS; \
5091 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5092 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5093 LD="$(LD)"; export LD; \
5094 NM="$(NM)"; export NM; \
5095 RANLIB="$(RANLIB)"; export RANLIB; \
5096 WINDRES="$(WINDRES)"; export WINDRES; \
5097 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5098 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5100 echo Configuring in zlib; \
5101 cd zlib || exit 1; \
5104 srcdiroption="--srcdir=."; \
5106 /* | [A-Za-z]:[\\/]*) \
5107 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5108 libsrcdir="$$s/zlib";; \
5110 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5111 libsrcdir="$$s/zlib";; \
5113 $(SHELL) $${libsrcdir}/configure \
5114 $(HOST_CONFIGARGS) $${srcdiroption} \
5117 .PHONY: all-zlib maybe-all-zlib
5119 all-zlib: configure-zlib
5120 @r=`${PWD}`; export r; \
5121 s=`cd $(srcdir); ${PWD}`; export s; \
5123 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
5131 .PHONY: install-zlib maybe-install-zlib
5136 .PHONY: configure-gdb maybe-configure-gdb
5137 maybe-configure-gdb:
5139 @test ! -f gdb/Makefile || exit 0; \
5140 [ -d gdb ] || mkdir gdb; \
5141 r=`${PWD}`; export r; \
5142 s=`cd $(srcdir); ${PWD}`; export s; \
5143 CC="$(CC)"; export CC; \
5144 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5145 CXX="$(CXX)"; export CXX; \
5146 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5147 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5148 AR="$(AR)"; export AR; \
5149 AS="$(AS)"; export AS; \
5150 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5151 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5152 LD="$(LD)"; export LD; \
5153 NM="$(NM)"; export NM; \
5154 RANLIB="$(RANLIB)"; export RANLIB; \
5155 WINDRES="$(WINDRES)"; export WINDRES; \
5156 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5157 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5159 echo Configuring in gdb; \
5163 srcdiroption="--srcdir=."; \
5165 /* | [A-Za-z]:[\\/]*) \
5166 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5167 libsrcdir="$$s/gdb";; \
5169 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5170 libsrcdir="$$s/gdb";; \
5172 $(SHELL) $${libsrcdir}/configure \
5173 $(HOST_CONFIGARGS) $${srcdiroption} \
5176 .PHONY: all-gdb maybe-all-gdb
5178 all-gdb: configure-gdb
5179 @r=`${PWD}`; export r; \
5180 s=`cd $(srcdir); ${PWD}`; export s; \
5182 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5187 @r=`${PWD}`; export r; \
5188 s=`cd $(srcdir); ${PWD}`; export s; \
5190 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5194 .PHONY: install-gdb maybe-install-gdb
5196 install-gdb: installdirs
5197 @r=`${PWD}`; export r; \
5198 s=`cd $(srcdir); ${PWD}`; export s; \
5200 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5203 .PHONY: configure-expect maybe-configure-expect
5204 maybe-configure-expect:
5206 @test ! -f expect/Makefile || exit 0; \
5207 [ -d expect ] || mkdir expect; \
5208 r=`${PWD}`; export r; \
5209 s=`cd $(srcdir); ${PWD}`; export s; \
5210 CC="$(CC)"; export CC; \
5211 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5212 CXX="$(CXX)"; export CXX; \
5213 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5214 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5215 AR="$(AR)"; export AR; \
5216 AS="$(AS)"; export AS; \
5217 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5218 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5219 LD="$(LD)"; export LD; \
5220 NM="$(NM)"; export NM; \
5221 RANLIB="$(RANLIB)"; export RANLIB; \
5222 WINDRES="$(WINDRES)"; export WINDRES; \
5223 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5224 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5226 echo Configuring in expect; \
5227 cd expect || exit 1; \
5230 srcdiroption="--srcdir=."; \
5232 /* | [A-Za-z]:[\\/]*) \
5233 srcdiroption="--srcdir=$(srcdir)/expect"; \
5234 libsrcdir="$$s/expect";; \
5236 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5237 libsrcdir="$$s/expect";; \
5239 $(SHELL) $${libsrcdir}/configure \
5240 $(HOST_CONFIGARGS) $${srcdiroption} \
5243 .PHONY: all-expect maybe-all-expect
5245 all-expect: configure-expect
5246 @r=`${PWD}`; export r; \
5247 s=`cd $(srcdir); ${PWD}`; export s; \
5249 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5252 .PHONY: check-expect
5254 @r=`${PWD}`; export r; \
5255 s=`cd $(srcdir); ${PWD}`; export s; \
5257 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5261 .PHONY: install-expect maybe-install-expect
5262 maybe-install-expect:
5263 install-expect: installdirs
5264 @r=`${PWD}`; export r; \
5265 s=`cd $(srcdir); ${PWD}`; export s; \
5267 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5270 .PHONY: configure-guile maybe-configure-guile
5271 maybe-configure-guile:
5273 @test ! -f guile/Makefile || exit 0; \
5274 [ -d guile ] || mkdir guile; \
5275 r=`${PWD}`; export r; \
5276 s=`cd $(srcdir); ${PWD}`; export s; \
5277 CC="$(CC)"; export CC; \
5278 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5279 CXX="$(CXX)"; export CXX; \
5280 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5281 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5282 AR="$(AR)"; export AR; \
5283 AS="$(AS)"; export AS; \
5284 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5285 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5286 LD="$(LD)"; export LD; \
5287 NM="$(NM)"; export NM; \
5288 RANLIB="$(RANLIB)"; export RANLIB; \
5289 WINDRES="$(WINDRES)"; export WINDRES; \
5290 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5291 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5293 echo Configuring in guile; \
5294 cd guile || exit 1; \
5297 srcdiroption="--srcdir=."; \
5299 /* | [A-Za-z]:[\\/]*) \
5300 srcdiroption="--srcdir=$(srcdir)/guile"; \
5301 libsrcdir="$$s/guile";; \
5303 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5304 libsrcdir="$$s/guile";; \
5306 $(SHELL) $${libsrcdir}/configure \
5307 $(HOST_CONFIGARGS) $${srcdiroption} \
5310 .PHONY: all-guile maybe-all-guile
5312 all-guile: configure-guile
5313 @r=`${PWD}`; export r; \
5314 s=`cd $(srcdir); ${PWD}`; export s; \
5316 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5321 @r=`${PWD}`; export r; \
5322 s=`cd $(srcdir); ${PWD}`; export s; \
5324 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5328 .PHONY: install-guile maybe-install-guile
5329 maybe-install-guile:
5330 install-guile: installdirs
5331 @r=`${PWD}`; export r; \
5332 s=`cd $(srcdir); ${PWD}`; export s; \
5334 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5337 .PHONY: configure-tk maybe-configure-tk
5340 @test ! -f tk/Makefile || exit 0; \
5341 [ -d tk ] || mkdir tk; \
5342 r=`${PWD}`; export r; \
5343 s=`cd $(srcdir); ${PWD}`; export s; \
5344 CC="$(CC)"; export CC; \
5345 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5346 CXX="$(CXX)"; export CXX; \
5347 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5348 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5349 AR="$(AR)"; export AR; \
5350 AS="$(AS)"; export AS; \
5351 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5352 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5353 LD="$(LD)"; export LD; \
5354 NM="$(NM)"; export NM; \
5355 RANLIB="$(RANLIB)"; export RANLIB; \
5356 WINDRES="$(WINDRES)"; export WINDRES; \
5357 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5358 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5360 echo Configuring in tk; \
5364 srcdiroption="--srcdir=."; \
5366 /* | [A-Za-z]:[\\/]*) \
5367 srcdiroption="--srcdir=$(srcdir)/tk"; \
5368 libsrcdir="$$s/tk";; \
5370 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5371 libsrcdir="$$s/tk";; \
5373 $(SHELL) $${libsrcdir}/configure \
5374 $(HOST_CONFIGARGS) $${srcdiroption} \
5377 .PHONY: all-tk maybe-all-tk
5379 all-tk: configure-tk
5380 @r=`${PWD}`; export r; \
5381 s=`cd $(srcdir); ${PWD}`; export s; \
5383 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5388 @r=`${PWD}`; export r; \
5389 s=`cd $(srcdir); ${PWD}`; export s; \
5391 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5395 .PHONY: install-tk maybe-install-tk
5397 install-tk: installdirs
5398 @r=`${PWD}`; export r; \
5399 s=`cd $(srcdir); ${PWD}`; export s; \
5401 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5404 .PHONY: configure-tix maybe-configure-tix
5405 maybe-configure-tix:
5407 @test ! -f tix/Makefile || exit 0; \
5408 [ -d tix ] || mkdir tix; \
5409 r=`${PWD}`; export r; \
5410 s=`cd $(srcdir); ${PWD}`; export s; \
5411 CC="$(CC)"; export CC; \
5412 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5413 CXX="$(CXX)"; export CXX; \
5414 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5415 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5416 AR="$(AR)"; export AR; \
5417 AS="$(AS)"; export AS; \
5418 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5419 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5420 LD="$(LD)"; export LD; \
5421 NM="$(NM)"; export NM; \
5422 RANLIB="$(RANLIB)"; export RANLIB; \
5423 WINDRES="$(WINDRES)"; export WINDRES; \
5424 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5425 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5427 echo Configuring in tix; \
5431 srcdiroption="--srcdir=."; \
5433 /* | [A-Za-z]:[\\/]*) \
5434 srcdiroption="--srcdir=$(srcdir)/tix"; \
5435 libsrcdir="$$s/tix";; \
5437 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5438 libsrcdir="$$s/tix";; \
5440 $(SHELL) $${libsrcdir}/configure \
5441 $(HOST_CONFIGARGS) $${srcdiroption} \
5444 .PHONY: all-tix maybe-all-tix
5446 all-tix: configure-tix
5447 @r=`${PWD}`; export r; \
5448 s=`cd $(srcdir); ${PWD}`; export s; \
5450 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5455 @r=`${PWD}`; export r; \
5456 s=`cd $(srcdir); ${PWD}`; export s; \
5458 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5462 .PHONY: install-tix maybe-install-tix
5464 install-tix: installdirs
5465 @r=`${PWD}`; export r; \
5466 s=`cd $(srcdir); ${PWD}`; export s; \
5468 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5471 .PHONY: configure-libtermcap maybe-configure-libtermcap
5472 maybe-configure-libtermcap:
5473 configure-libtermcap:
5474 @test ! -f libtermcap/Makefile || exit 0; \
5475 [ -d libtermcap ] || mkdir libtermcap; \
5476 r=`${PWD}`; export r; \
5477 s=`cd $(srcdir); ${PWD}`; export s; \
5478 CC="$(CC)"; export CC; \
5479 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5480 CXX="$(CXX)"; export CXX; \
5481 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5482 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5483 AR="$(AR)"; export AR; \
5484 AS="$(AS)"; export AS; \
5485 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5486 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5487 LD="$(LD)"; export LD; \
5488 NM="$(NM)"; export NM; \
5489 RANLIB="$(RANLIB)"; export RANLIB; \
5490 WINDRES="$(WINDRES)"; export WINDRES; \
5491 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5492 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5494 echo Configuring in libtermcap; \
5495 cd libtermcap || exit 1; \
5498 srcdiroption="--srcdir=."; \
5500 /* | [A-Za-z]:[\\/]*) \
5501 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5502 libsrcdir="$$s/libtermcap";; \
5504 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5505 libsrcdir="$$s/libtermcap";; \
5507 $(SHELL) $${libsrcdir}/configure \
5508 $(HOST_CONFIGARGS) $${srcdiroption} \
5511 .PHONY: all-libtermcap maybe-all-libtermcap
5512 maybe-all-libtermcap:
5513 all-libtermcap: configure-libtermcap
5514 @r=`${PWD}`; export r; \
5515 s=`cd $(srcdir); ${PWD}`; export s; \
5517 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
5520 .PHONY: check-libtermcap
5525 .PHONY: install-libtermcap maybe-install-libtermcap
5526 maybe-install-libtermcap:
5527 install-libtermcap: installdirs
5528 @r=`${PWD}`; export r; \
5529 s=`cd $(srcdir); ${PWD}`; export s; \
5531 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
5534 .PHONY: configure-utils maybe-configure-utils
5535 maybe-configure-utils:
5537 @test ! -f utils/Makefile || exit 0; \
5538 [ -d utils ] || mkdir utils; \
5539 r=`${PWD}`; export r; \
5540 s=`cd $(srcdir); ${PWD}`; export s; \
5541 CC="$(CC)"; export CC; \
5542 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5543 CXX="$(CXX)"; export CXX; \
5544 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5545 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5546 AR="$(AR)"; export AR; \
5547 AS="$(AS)"; export AS; \
5548 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5549 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5550 LD="$(LD)"; export LD; \
5551 NM="$(NM)"; export NM; \
5552 RANLIB="$(RANLIB)"; export RANLIB; \
5553 WINDRES="$(WINDRES)"; export WINDRES; \
5554 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5555 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5557 echo Configuring in utils; \
5558 cd utils || exit 1; \
5561 srcdiroption="--srcdir=."; \
5563 /* | [A-Za-z]:[\\/]*) \
5564 srcdiroption="--srcdir=$(srcdir)/utils"; \
5565 libsrcdir="$$s/utils";; \
5567 srcdiroption="--srcdir=../$(srcdir)/utils"; \
5568 libsrcdir="$$s/utils";; \
5570 $(SHELL) $${libsrcdir}/configure \
5571 $(HOST_CONFIGARGS) $${srcdiroption} \
5574 .PHONY: all-utils maybe-all-utils
5576 all-utils: configure-utils
5577 @r=`${PWD}`; export r; \
5578 s=`cd $(srcdir); ${PWD}`; export s; \
5580 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
5588 .PHONY: install-utils maybe-install-utils
5589 maybe-install-utils:
5590 install-utils: installdirs
5591 @r=`${PWD}`; export r; \
5592 s=`cd $(srcdir); ${PWD}`; export s; \
5594 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
5598 # ---------------------------------------
5599 # Modules which run on the target machine
5600 # ---------------------------------------
5602 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
5603 maybe-configure-target-libstdc++-v3:
5605 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5606 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
5607 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5608 mkdir $(TARGET_SUBDIR)/libstdc++-v3; \
5609 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
5610 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5612 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5613 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
5614 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5615 mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5616 r=`${PWD}`; export r; \
5617 s=`cd $(srcdir); ${PWD}`; export s; \
5619 AR="$(AR_FOR_TARGET)"; export AR; \
5620 AS="$(AS_FOR_TARGET)"; export AS; \
5621 CC="$(CC_FOR_TARGET)"; export CC; \
5622 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5623 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5624 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
5625 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
5626 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5627 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5628 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5629 LD="$(LD_FOR_TARGET)"; export LD; \
5630 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5631 NM="$(NM_FOR_TARGET)"; export NM; \
5632 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5633 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5634 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
5635 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
5637 /* | [A-Za-z]:[\\/]*) \
5638 topdir=$(srcdir) ;; \
5640 case "$(TARGET_SUBDIR)" in \
5641 .) topdir="../$(srcdir)" ;; \
5642 *) topdir="../../$(srcdir)" ;; \
5645 if [ "$(srcdir)" = "." ] ; then \
5646 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5647 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
5648 if [ -f Makefile ]; then \
5649 if $(MAKE) distclean; then \
5663 srcdiroption="--srcdir=."; \
5666 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
5667 libsrcdir="$$s/libstdc++-v3"; \
5669 rm -f no-such-file || : ; \
5670 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5671 $(TARGET_CONFIGARGS) $${srcdiroption} \
5672 --with-target-subdir="$(TARGET_SUBDIR)" \
5675 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
5676 maybe-all-target-libstdc++-v3:
5677 all-target-libstdc++-v3: configure-target-libstdc++-v3
5678 @r=`${PWD}`; export r; \
5679 s=`cd $(srcdir); ${PWD}`; export s; \
5681 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5682 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
5684 .PHONY: check-target-libstdc++-v3
5685 check-target-libstdc++-v3:
5686 @r=`${PWD}`; export r; \
5687 s=`cd $(srcdir); ${PWD}`; export s; \
5689 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5690 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
5693 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
5694 maybe-install-target-libstdc++-v3:
5695 install-target-libstdc++-v3: installdirs
5696 @r=`${PWD}`; export r; \
5697 s=`cd $(srcdir); ${PWD}`; export s; \
5699 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5700 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5703 .PHONY: configure-target-newlib maybe-configure-target-newlib
5704 maybe-configure-target-newlib:
5706 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5707 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
5708 @[ -d $(TARGET_SUBDIR)/newlib ] || \
5709 mkdir $(TARGET_SUBDIR)/newlib; \
5710 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
5711 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
5713 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
5714 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
5715 [ -d $(TARGET_SUBDIR)/newlib ] || \
5716 mkdir $(TARGET_SUBDIR)/newlib;\
5717 r=`${PWD}`; export r; \
5718 s=`cd $(srcdir); ${PWD}`; export s; \
5720 AR="$(AR_FOR_TARGET)"; export AR; \
5721 AS="$(AS_FOR_TARGET)"; export AS; \
5722 CC="$(CC_FOR_TARGET)"; export CC; \
5723 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5724 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5725 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5726 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5727 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5728 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5729 LD="$(LD_FOR_TARGET)"; export LD; \
5730 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5731 NM="$(NM_FOR_TARGET)"; export NM; \
5732 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5733 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5734 echo Configuring in $(TARGET_SUBDIR)/newlib; \
5735 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
5737 /* | [A-Za-z]:[\\/]*) \
5738 topdir=$(srcdir) ;; \
5740 case "$(TARGET_SUBDIR)" in \
5741 .) topdir="../$(srcdir)" ;; \
5742 *) topdir="../../$(srcdir)" ;; \
5745 if [ "$(srcdir)" = "." ] ; then \
5746 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5747 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
5748 if [ -f Makefile ]; then \
5749 if $(MAKE) distclean; then \
5763 srcdiroption="--srcdir=."; \
5766 srcdiroption="--srcdir=$${topdir}/newlib"; \
5767 libsrcdir="$$s/newlib"; \
5769 rm -f no-such-file || : ; \
5770 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5771 $(TARGET_CONFIGARGS) $${srcdiroption} \
5772 --with-target-subdir="$(TARGET_SUBDIR)" \
5775 .PHONY: all-target-newlib maybe-all-target-newlib
5776 maybe-all-target-newlib:
5777 all-target-newlib: configure-target-newlib
5778 @r=`${PWD}`; export r; \
5779 s=`cd $(srcdir); ${PWD}`; export s; \
5781 (cd $(TARGET_SUBDIR)/newlib && \
5782 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5784 .PHONY: check-target-newlib
5785 check-target-newlib:
5786 @r=`${PWD}`; export r; \
5787 s=`cd $(srcdir); ${PWD}`; export s; \
5789 (cd $(TARGET_SUBDIR)/newlib && \
5790 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5793 .PHONY: install-target-newlib maybe-install-target-newlib
5794 maybe-install-target-newlib:
5795 install-target-newlib: installdirs
5796 @r=`${PWD}`; export r; \
5797 s=`cd $(srcdir); ${PWD}`; export s; \
5799 (cd $(TARGET_SUBDIR)/newlib && \
5800 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5803 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
5804 maybe-configure-target-libf2c:
5806 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5807 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
5808 @[ -d $(TARGET_SUBDIR)/libf2c ] || \
5809 mkdir $(TARGET_SUBDIR)/libf2c; \
5810 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
5811 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
5813 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
5814 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
5815 [ -d $(TARGET_SUBDIR)/libf2c ] || \
5816 mkdir $(TARGET_SUBDIR)/libf2c;\
5817 r=`${PWD}`; export r; \
5818 s=`cd $(srcdir); ${PWD}`; export s; \
5820 AR="$(AR_FOR_TARGET)"; export AR; \
5821 AS="$(AS_FOR_TARGET)"; export AS; \
5822 CC="$(CC_FOR_TARGET)"; export CC; \
5823 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5824 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5825 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5826 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5827 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5828 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5829 LD="$(LD_FOR_TARGET)"; export LD; \
5830 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5831 NM="$(NM_FOR_TARGET)"; export NM; \
5832 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5833 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5834 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
5835 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
5837 /* | [A-Za-z]:[\\/]*) \
5838 topdir=$(srcdir) ;; \
5840 case "$(TARGET_SUBDIR)" in \
5841 .) topdir="../$(srcdir)" ;; \
5842 *) topdir="../../$(srcdir)" ;; \
5845 if [ "$(srcdir)" = "." ] ; then \
5846 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5847 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
5848 if [ -f Makefile ]; then \
5849 if $(MAKE) distclean; then \
5863 srcdiroption="--srcdir=."; \
5866 srcdiroption="--srcdir=$${topdir}/libf2c"; \
5867 libsrcdir="$$s/libf2c"; \
5869 rm -f no-such-file || : ; \
5870 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5871 $(TARGET_CONFIGARGS) $${srcdiroption} \
5872 --with-target-subdir="$(TARGET_SUBDIR)" \
5875 .PHONY: all-target-libf2c maybe-all-target-libf2c
5876 maybe-all-target-libf2c:
5877 all-target-libf2c: configure-target-libf2c
5878 @r=`${PWD}`; export r; \
5879 s=`cd $(srcdir); ${PWD}`; export s; \
5881 (cd $(TARGET_SUBDIR)/libf2c && \
5882 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5884 .PHONY: check-target-libf2c
5885 check-target-libf2c:
5886 @r=`${PWD}`; export r; \
5887 s=`cd $(srcdir); ${PWD}`; export s; \
5889 (cd $(TARGET_SUBDIR)/libf2c && \
5890 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5893 .PHONY: install-target-libf2c maybe-install-target-libf2c
5894 maybe-install-target-libf2c:
5895 install-target-libf2c: installdirs
5896 @r=`${PWD}`; export r; \
5897 s=`cd $(srcdir); ${PWD}`; export s; \
5899 (cd $(TARGET_SUBDIR)/libf2c && \
5900 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5903 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
5904 maybe-configure-target-libobjc:
5906 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5907 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
5908 @[ -d $(TARGET_SUBDIR)/libobjc ] || \
5909 mkdir $(TARGET_SUBDIR)/libobjc; \
5910 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
5911 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
5913 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
5914 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
5915 [ -d $(TARGET_SUBDIR)/libobjc ] || \
5916 mkdir $(TARGET_SUBDIR)/libobjc;\
5917 r=`${PWD}`; export r; \
5918 s=`cd $(srcdir); ${PWD}`; export s; \
5920 AR="$(AR_FOR_TARGET)"; export AR; \
5921 AS="$(AS_FOR_TARGET)"; export AS; \
5922 CC="$(CC_FOR_TARGET)"; export CC; \
5923 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5924 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5925 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5926 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5927 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5928 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5929 LD="$(LD_FOR_TARGET)"; export LD; \
5930 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5931 NM="$(NM_FOR_TARGET)"; export NM; \
5932 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5933 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5934 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
5935 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
5937 /* | [A-Za-z]:[\\/]*) \
5938 topdir=$(srcdir) ;; \
5940 case "$(TARGET_SUBDIR)" in \
5941 .) topdir="../$(srcdir)" ;; \
5942 *) topdir="../../$(srcdir)" ;; \
5945 if [ "$(srcdir)" = "." ] ; then \
5946 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5947 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
5948 if [ -f Makefile ]; then \
5949 if $(MAKE) distclean; then \
5963 srcdiroption="--srcdir=."; \
5966 srcdiroption="--srcdir=$${topdir}/libobjc"; \
5967 libsrcdir="$$s/libobjc"; \
5969 rm -f no-such-file || : ; \
5970 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5971 $(TARGET_CONFIGARGS) $${srcdiroption} \
5972 --with-target-subdir="$(TARGET_SUBDIR)" \
5975 .PHONY: all-target-libobjc maybe-all-target-libobjc
5976 maybe-all-target-libobjc:
5977 all-target-libobjc: configure-target-libobjc
5978 @r=`${PWD}`; export r; \
5979 s=`cd $(srcdir); ${PWD}`; export s; \
5981 (cd $(TARGET_SUBDIR)/libobjc && \
5982 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5984 .PHONY: check-target-libobjc
5985 check-target-libobjc:
5986 @r=`${PWD}`; export r; \
5987 s=`cd $(srcdir); ${PWD}`; export s; \
5989 (cd $(TARGET_SUBDIR)/libobjc && \
5990 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5993 .PHONY: install-target-libobjc maybe-install-target-libobjc
5994 maybe-install-target-libobjc:
5995 install-target-libobjc: installdirs
5996 @r=`${PWD}`; export r; \
5997 s=`cd $(srcdir); ${PWD}`; export s; \
5999 (cd $(TARGET_SUBDIR)/libobjc && \
6000 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6003 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6004 maybe-configure-target-libtermcap:
6006 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6007 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
6008 @[ -d $(TARGET_SUBDIR)/libtermcap ] || \
6009 mkdir $(TARGET_SUBDIR)/libtermcap; \
6010 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
6011 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
6013 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
6014 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
6015 [ -d $(TARGET_SUBDIR)/libtermcap ] || \
6016 mkdir $(TARGET_SUBDIR)/libtermcap;\
6017 r=`${PWD}`; export r; \
6018 s=`cd $(srcdir); ${PWD}`; export s; \
6020 AR="$(AR_FOR_TARGET)"; export AR; \
6021 AS="$(AS_FOR_TARGET)"; export AS; \
6022 CC="$(CC_FOR_TARGET)"; export CC; \
6023 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6024 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6025 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6026 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6027 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6028 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6029 LD="$(LD_FOR_TARGET)"; export LD; \
6030 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6031 NM="$(NM_FOR_TARGET)"; export NM; \
6032 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6033 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6034 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6035 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6037 /* | [A-Za-z]:[\\/]*) \
6038 topdir=$(srcdir) ;; \
6040 case "$(TARGET_SUBDIR)" in \
6041 .) topdir="../$(srcdir)" ;; \
6042 *) topdir="../../$(srcdir)" ;; \
6045 if [ "$(srcdir)" = "." ] ; then \
6046 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6047 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6048 if [ -f Makefile ]; then \
6049 if $(MAKE) distclean; then \
6063 srcdiroption="--srcdir=."; \
6066 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6067 libsrcdir="$$s/libtermcap"; \
6069 rm -f no-such-file || : ; \
6070 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6071 $(TARGET_CONFIGARGS) $${srcdiroption} \
6072 --with-target-subdir="$(TARGET_SUBDIR)" \
6075 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
6076 maybe-all-target-libtermcap:
6077 all-target-libtermcap: configure-target-libtermcap
6078 @r=`${PWD}`; export r; \
6079 s=`cd $(srcdir); ${PWD}`; export s; \
6081 (cd $(TARGET_SUBDIR)/libtermcap && \
6082 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6084 # Dummy target for uncheckable module.
6085 .PHONY: check-target-libtermcap
6086 check-target-libtermcap:
6089 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
6090 maybe-install-target-libtermcap:
6091 install-target-libtermcap: installdirs
6092 @r=`${PWD}`; export r; \
6093 s=`cd $(srcdir); ${PWD}`; export s; \
6095 (cd $(TARGET_SUBDIR)/libtermcap && \
6096 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6099 .PHONY: configure-target-winsup maybe-configure-target-winsup
6100 maybe-configure-target-winsup:
6102 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6103 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
6104 @[ -d $(TARGET_SUBDIR)/winsup ] || \
6105 mkdir $(TARGET_SUBDIR)/winsup; \
6106 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
6107 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
6109 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
6110 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
6111 [ -d $(TARGET_SUBDIR)/winsup ] || \
6112 mkdir $(TARGET_SUBDIR)/winsup;\
6113 r=`${PWD}`; export r; \
6114 s=`cd $(srcdir); ${PWD}`; export s; \
6116 AR="$(AR_FOR_TARGET)"; export AR; \
6117 AS="$(AS_FOR_TARGET)"; export AS; \
6118 CC="$(CC_FOR_TARGET)"; export CC; \
6119 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6120 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6121 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6122 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6123 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6124 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6125 LD="$(LD_FOR_TARGET)"; export LD; \
6126 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6127 NM="$(NM_FOR_TARGET)"; export NM; \
6128 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6129 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6130 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6131 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6133 /* | [A-Za-z]:[\\/]*) \
6134 topdir=$(srcdir) ;; \
6136 case "$(TARGET_SUBDIR)" in \
6137 .) topdir="../$(srcdir)" ;; \
6138 *) topdir="../../$(srcdir)" ;; \
6141 if [ "$(srcdir)" = "." ] ; then \
6142 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6143 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6144 if [ -f Makefile ]; then \
6145 if $(MAKE) distclean; then \
6159 srcdiroption="--srcdir=."; \
6162 srcdiroption="--srcdir=$${topdir}/winsup"; \
6163 libsrcdir="$$s/winsup"; \
6165 rm -f no-such-file || : ; \
6166 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6167 $(TARGET_CONFIGARGS) $${srcdiroption} \
6168 --with-target-subdir="$(TARGET_SUBDIR)" \
6171 .PHONY: all-target-winsup maybe-all-target-winsup
6172 maybe-all-target-winsup:
6173 all-target-winsup: configure-target-winsup
6174 @r=`${PWD}`; export r; \
6175 s=`cd $(srcdir); ${PWD}`; export s; \
6177 (cd $(TARGET_SUBDIR)/winsup && \
6178 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6180 .PHONY: check-target-winsup
6181 check-target-winsup:
6182 @r=`${PWD}`; export r; \
6183 s=`cd $(srcdir); ${PWD}`; export s; \
6185 (cd $(TARGET_SUBDIR)/winsup && \
6186 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6189 .PHONY: install-target-winsup maybe-install-target-winsup
6190 maybe-install-target-winsup:
6191 install-target-winsup: installdirs
6192 @r=`${PWD}`; export r; \
6193 s=`cd $(srcdir); ${PWD}`; export s; \
6195 (cd $(TARGET_SUBDIR)/winsup && \
6196 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6199 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
6200 maybe-configure-target-libgloss:
6202 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6203 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
6204 @[ -d $(TARGET_SUBDIR)/libgloss ] || \
6205 mkdir $(TARGET_SUBDIR)/libgloss; \
6206 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
6207 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
6209 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
6210 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
6211 [ -d $(TARGET_SUBDIR)/libgloss ] || \
6212 mkdir $(TARGET_SUBDIR)/libgloss;\
6213 r=`${PWD}`; export r; \
6214 s=`cd $(srcdir); ${PWD}`; export s; \
6216 AR="$(AR_FOR_TARGET)"; export AR; \
6217 AS="$(AS_FOR_TARGET)"; export AS; \
6218 CC="$(CC_FOR_TARGET)"; export CC; \
6219 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6220 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6221 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6222 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6223 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6224 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6225 LD="$(LD_FOR_TARGET)"; export LD; \
6226 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6227 NM="$(NM_FOR_TARGET)"; export NM; \
6228 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6229 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6230 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6231 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6233 /* | [A-Za-z]:[\\/]*) \
6234 topdir=$(srcdir) ;; \
6236 case "$(TARGET_SUBDIR)" in \
6237 .) topdir="../$(srcdir)" ;; \
6238 *) topdir="../../$(srcdir)" ;; \
6241 if [ "$(srcdir)" = "." ] ; then \
6242 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6243 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6244 if [ -f Makefile ]; then \
6245 if $(MAKE) distclean; then \
6259 srcdiroption="--srcdir=."; \
6262 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6263 libsrcdir="$$s/libgloss"; \
6265 rm -f no-such-file || : ; \
6266 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6267 $(TARGET_CONFIGARGS) $${srcdiroption} \
6268 --with-target-subdir="$(TARGET_SUBDIR)" \
6271 .PHONY: all-target-libgloss maybe-all-target-libgloss
6272 maybe-all-target-libgloss:
6273 all-target-libgloss: configure-target-libgloss
6274 @r=`${PWD}`; export r; \
6275 s=`cd $(srcdir); ${PWD}`; export s; \
6277 (cd $(TARGET_SUBDIR)/libgloss && \
6278 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6280 # Dummy target for uncheckable module.
6281 .PHONY: check-target-libgloss
6282 check-target-libgloss:
6285 .PHONY: install-target-libgloss maybe-install-target-libgloss
6286 maybe-install-target-libgloss:
6287 install-target-libgloss: installdirs
6288 @r=`${PWD}`; export r; \
6289 s=`cd $(srcdir); ${PWD}`; export s; \
6291 (cd $(TARGET_SUBDIR)/libgloss && \
6292 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6295 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
6296 maybe-configure-target-libiberty:
6298 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6299 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
6300 @[ -d $(TARGET_SUBDIR)/libiberty ] || \
6301 mkdir $(TARGET_SUBDIR)/libiberty; \
6302 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
6303 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
6305 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
6306 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
6307 [ -d $(TARGET_SUBDIR)/libiberty ] || \
6308 mkdir $(TARGET_SUBDIR)/libiberty;\
6309 r=`${PWD}`; export r; \
6310 s=`cd $(srcdir); ${PWD}`; export s; \
6312 AR="$(AR_FOR_TARGET)"; export AR; \
6313 AS="$(AS_FOR_TARGET)"; export AS; \
6314 CC="$(CC_FOR_TARGET)"; export CC; \
6315 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6316 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6317 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6318 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6319 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6320 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6321 LD="$(LD_FOR_TARGET)"; export LD; \
6322 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6323 NM="$(NM_FOR_TARGET)"; export NM; \
6324 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6325 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6326 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6327 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6329 /* | [A-Za-z]:[\\/]*) \
6330 topdir=$(srcdir) ;; \
6332 case "$(TARGET_SUBDIR)" in \
6333 .) topdir="../$(srcdir)" ;; \
6334 *) topdir="../../$(srcdir)" ;; \
6337 if [ "$(srcdir)" = "." ] ; then \
6338 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6339 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6340 if [ -f Makefile ]; then \
6341 if $(MAKE) distclean; then \
6355 srcdiroption="--srcdir=."; \
6358 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6359 libsrcdir="$$s/libiberty"; \
6361 rm -f no-such-file || : ; \
6362 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6363 $(TARGET_CONFIGARGS) $${srcdiroption} \
6364 --with-target-subdir="$(TARGET_SUBDIR)" \
6367 .PHONY: all-target-libiberty maybe-all-target-libiberty
6368 maybe-all-target-libiberty:
6369 all-target-libiberty: configure-target-libiberty
6370 @r=`${PWD}`; export r; \
6371 s=`cd $(srcdir); ${PWD}`; export s; \
6373 (cd $(TARGET_SUBDIR)/libiberty && \
6374 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6376 .PHONY: check-target-libiberty
6377 check-target-libiberty:
6378 @r=`${PWD}`; export r; \
6379 s=`cd $(srcdir); ${PWD}`; export s; \
6381 (cd $(TARGET_SUBDIR)/libiberty && \
6382 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6385 .PHONY: install-target-libiberty maybe-install-target-libiberty
6386 maybe-install-target-libiberty:
6387 install-target-libiberty: installdirs
6388 @r=`${PWD}`; export r; \
6389 s=`cd $(srcdir); ${PWD}`; export s; \
6391 (cd $(TARGET_SUBDIR)/libiberty && \
6392 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6395 .PHONY: configure-target-gperf maybe-configure-target-gperf
6396 maybe-configure-target-gperf:
6398 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6399 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
6400 @[ -d $(TARGET_SUBDIR)/gperf ] || \
6401 mkdir $(TARGET_SUBDIR)/gperf; \
6402 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
6403 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
6405 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
6406 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
6407 [ -d $(TARGET_SUBDIR)/gperf ] || \
6408 mkdir $(TARGET_SUBDIR)/gperf;\
6409 r=`${PWD}`; export r; \
6410 s=`cd $(srcdir); ${PWD}`; export s; \
6412 AR="$(AR_FOR_TARGET)"; export AR; \
6413 AS="$(AS_FOR_TARGET)"; export AS; \
6414 CC="$(CC_FOR_TARGET)"; export CC; \
6415 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6416 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6417 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6418 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6419 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6420 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6421 LD="$(LD_FOR_TARGET)"; export LD; \
6422 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6423 NM="$(NM_FOR_TARGET)"; export NM; \
6424 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6425 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6426 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6427 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6429 /* | [A-Za-z]:[\\/]*) \
6430 topdir=$(srcdir) ;; \
6432 case "$(TARGET_SUBDIR)" in \
6433 .) topdir="../$(srcdir)" ;; \
6434 *) topdir="../../$(srcdir)" ;; \
6437 if [ "$(srcdir)" = "." ] ; then \
6438 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6439 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6440 if [ -f Makefile ]; then \
6441 if $(MAKE) distclean; then \
6455 srcdiroption="--srcdir=."; \
6458 srcdiroption="--srcdir=$${topdir}/gperf"; \
6459 libsrcdir="$$s/gperf"; \
6461 rm -f no-such-file || : ; \
6462 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6463 $(TARGET_CONFIGARGS) $${srcdiroption} \
6464 --with-target-subdir="$(TARGET_SUBDIR)" \
6467 .PHONY: all-target-gperf maybe-all-target-gperf
6468 maybe-all-target-gperf:
6469 all-target-gperf: configure-target-gperf
6470 @r=`${PWD}`; export r; \
6471 s=`cd $(srcdir); ${PWD}`; export s; \
6473 (cd $(TARGET_SUBDIR)/gperf && \
6474 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6476 .PHONY: check-target-gperf
6478 @r=`${PWD}`; export r; \
6479 s=`cd $(srcdir); ${PWD}`; export s; \
6481 (cd $(TARGET_SUBDIR)/gperf && \
6482 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6485 .PHONY: install-target-gperf maybe-install-target-gperf
6486 maybe-install-target-gperf:
6487 install-target-gperf: installdirs
6488 @r=`${PWD}`; export r; \
6489 s=`cd $(srcdir); ${PWD}`; export s; \
6491 (cd $(TARGET_SUBDIR)/gperf && \
6492 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6495 .PHONY: configure-target-examples maybe-configure-target-examples
6496 maybe-configure-target-examples:
6498 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6499 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
6500 @[ -d $(TARGET_SUBDIR)/examples ] || \
6501 mkdir $(TARGET_SUBDIR)/examples; \
6502 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
6503 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
6505 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
6506 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
6507 [ -d $(TARGET_SUBDIR)/examples ] || \
6508 mkdir $(TARGET_SUBDIR)/examples;\
6509 r=`${PWD}`; export r; \
6510 s=`cd $(srcdir); ${PWD}`; export s; \
6512 AR="$(AR_FOR_TARGET)"; export AR; \
6513 AS="$(AS_FOR_TARGET)"; export AS; \
6514 CC="$(CC_FOR_TARGET)"; export CC; \
6515 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6516 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6517 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6518 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6519 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6520 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6521 LD="$(LD_FOR_TARGET)"; export LD; \
6522 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6523 NM="$(NM_FOR_TARGET)"; export NM; \
6524 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6525 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6526 echo Configuring in $(TARGET_SUBDIR)/examples; \
6527 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
6529 /* | [A-Za-z]:[\\/]*) \
6530 topdir=$(srcdir) ;; \
6532 case "$(TARGET_SUBDIR)" in \
6533 .) topdir="../$(srcdir)" ;; \
6534 *) topdir="../../$(srcdir)" ;; \
6537 if [ "$(srcdir)" = "." ] ; then \
6538 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6539 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
6540 if [ -f Makefile ]; then \
6541 if $(MAKE) distclean; then \
6555 srcdiroption="--srcdir=."; \
6558 srcdiroption="--srcdir=$${topdir}/examples"; \
6559 libsrcdir="$$s/examples"; \
6561 rm -f no-such-file || : ; \
6562 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6563 $(TARGET_CONFIGARGS) $${srcdiroption} \
6564 --with-target-subdir="$(TARGET_SUBDIR)" \
6567 .PHONY: all-target-examples maybe-all-target-examples
6568 maybe-all-target-examples:
6569 all-target-examples: configure-target-examples
6570 @r=`${PWD}`; export r; \
6571 s=`cd $(srcdir); ${PWD}`; export s; \
6573 (cd $(TARGET_SUBDIR)/examples && \
6574 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6576 # Dummy target for uncheckable module.
6577 .PHONY: check-target-examples
6578 check-target-examples:
6581 .PHONY: install-target-examples maybe-install-target-examples
6582 maybe-install-target-examples:
6583 # Dummy target for uninstallable.
6584 install-target-examples:
6587 .PHONY: configure-target-libffi maybe-configure-target-libffi
6588 maybe-configure-target-libffi:
6590 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6591 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
6592 @[ -d $(TARGET_SUBDIR)/libffi ] || \
6593 mkdir $(TARGET_SUBDIR)/libffi; \
6594 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
6595 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
6597 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
6598 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
6599 [ -d $(TARGET_SUBDIR)/libffi ] || \
6600 mkdir $(TARGET_SUBDIR)/libffi;\
6601 r=`${PWD}`; export r; \
6602 s=`cd $(srcdir); ${PWD}`; export s; \
6604 AR="$(AR_FOR_TARGET)"; export AR; \
6605 AS="$(AS_FOR_TARGET)"; export AS; \
6606 CC="$(CC_FOR_TARGET)"; export CC; \
6607 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6608 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6609 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6610 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6611 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6612 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6613 LD="$(LD_FOR_TARGET)"; export LD; \
6614 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6615 NM="$(NM_FOR_TARGET)"; export NM; \
6616 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6617 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6618 echo Configuring in $(TARGET_SUBDIR)/libffi; \
6619 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
6621 /* | [A-Za-z]:[\\/]*) \
6622 topdir=$(srcdir) ;; \
6624 case "$(TARGET_SUBDIR)" in \
6625 .) topdir="../$(srcdir)" ;; \
6626 *) topdir="../../$(srcdir)" ;; \
6629 if [ "$(srcdir)" = "." ] ; then \
6630 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6631 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
6632 if [ -f Makefile ]; then \
6633 if $(MAKE) distclean; then \
6647 srcdiroption="--srcdir=."; \
6650 srcdiroption="--srcdir=$${topdir}/libffi"; \
6651 libsrcdir="$$s/libffi"; \
6653 rm -f no-such-file || : ; \
6654 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6655 $(TARGET_CONFIGARGS) $${srcdiroption} \
6656 --with-target-subdir="$(TARGET_SUBDIR)" \
6659 .PHONY: all-target-libffi maybe-all-target-libffi
6660 maybe-all-target-libffi:
6661 all-target-libffi: configure-target-libffi
6662 @r=`${PWD}`; export r; \
6663 s=`cd $(srcdir); ${PWD}`; export s; \
6665 (cd $(TARGET_SUBDIR)/libffi && \
6666 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6668 .PHONY: check-target-libffi
6669 check-target-libffi:
6670 @r=`${PWD}`; export r; \
6671 s=`cd $(srcdir); ${PWD}`; export s; \
6673 (cd $(TARGET_SUBDIR)/libffi && \
6674 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6677 .PHONY: install-target-libffi maybe-install-target-libffi
6678 maybe-install-target-libffi:
6679 install-target-libffi: installdirs
6680 @r=`${PWD}`; export r; \
6681 s=`cd $(srcdir); ${PWD}`; export s; \
6683 (cd $(TARGET_SUBDIR)/libffi && \
6684 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6687 .PHONY: configure-target-libjava maybe-configure-target-libjava
6688 maybe-configure-target-libjava:
6690 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6691 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
6692 @[ -d $(TARGET_SUBDIR)/libjava ] || \
6693 mkdir $(TARGET_SUBDIR)/libjava; \
6694 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
6695 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
6697 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
6698 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
6699 [ -d $(TARGET_SUBDIR)/libjava ] || \
6700 mkdir $(TARGET_SUBDIR)/libjava;\
6701 r=`${PWD}`; export r; \
6702 s=`cd $(srcdir); ${PWD}`; export s; \
6704 AR="$(AR_FOR_TARGET)"; export AR; \
6705 AS="$(AS_FOR_TARGET)"; export AS; \
6706 CC="$(CC_FOR_TARGET)"; export CC; \
6707 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6708 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6709 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
6710 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
6711 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6712 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6713 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6714 LD="$(LD_FOR_TARGET)"; export LD; \
6715 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6716 NM="$(NM_FOR_TARGET)"; export NM; \
6717 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6718 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6719 echo Configuring in $(TARGET_SUBDIR)/libjava; \
6720 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
6722 /* | [A-Za-z]:[\\/]*) \
6723 topdir=$(srcdir) ;; \
6725 case "$(TARGET_SUBDIR)" in \
6726 .) topdir="../$(srcdir)" ;; \
6727 *) topdir="../../$(srcdir)" ;; \
6730 if [ "$(srcdir)" = "." ] ; then \
6731 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6732 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
6733 if [ -f Makefile ]; then \
6734 if $(MAKE) distclean; then \
6748 srcdiroption="--srcdir=."; \
6751 srcdiroption="--srcdir=$${topdir}/libjava"; \
6752 libsrcdir="$$s/libjava"; \
6754 rm -f no-such-file || : ; \
6755 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6756 $(TARGET_CONFIGARGS) $${srcdiroption} \
6757 --with-target-subdir="$(TARGET_SUBDIR)" \
6760 .PHONY: all-target-libjava maybe-all-target-libjava
6761 maybe-all-target-libjava:
6762 all-target-libjava: configure-target-libjava
6763 @r=`${PWD}`; export r; \
6764 s=`cd $(srcdir); ${PWD}`; export s; \
6766 (cd $(TARGET_SUBDIR)/libjava && \
6767 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
6769 .PHONY: check-target-libjava
6770 check-target-libjava:
6771 @r=`${PWD}`; export r; \
6772 s=`cd $(srcdir); ${PWD}`; export s; \
6774 (cd $(TARGET_SUBDIR)/libjava && \
6775 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6778 .PHONY: install-target-libjava maybe-install-target-libjava
6779 maybe-install-target-libjava:
6780 install-target-libjava: installdirs
6781 @r=`${PWD}`; export r; \
6782 s=`cd $(srcdir); ${PWD}`; export s; \
6784 (cd $(TARGET_SUBDIR)/libjava && \
6785 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6788 .PHONY: configure-target-zlib maybe-configure-target-zlib
6789 maybe-configure-target-zlib:
6791 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6792 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
6793 @[ -d $(TARGET_SUBDIR)/zlib ] || \
6794 mkdir $(TARGET_SUBDIR)/zlib; \
6795 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
6796 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
6798 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
6799 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
6800 [ -d $(TARGET_SUBDIR)/zlib ] || \
6801 mkdir $(TARGET_SUBDIR)/zlib;\
6802 r=`${PWD}`; export r; \
6803 s=`cd $(srcdir); ${PWD}`; export s; \
6805 AR="$(AR_FOR_TARGET)"; export AR; \
6806 AS="$(AS_FOR_TARGET)"; export AS; \
6807 CC="$(CC_FOR_TARGET)"; export CC; \
6808 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6809 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6810 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6811 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6812 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6813 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6814 LD="$(LD_FOR_TARGET)"; export LD; \
6815 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6816 NM="$(NM_FOR_TARGET)"; export NM; \
6817 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6818 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6819 echo Configuring in $(TARGET_SUBDIR)/zlib; \
6820 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
6822 /* | [A-Za-z]:[\\/]*) \
6823 topdir=$(srcdir) ;; \
6825 case "$(TARGET_SUBDIR)" in \
6826 .) topdir="../$(srcdir)" ;; \
6827 *) topdir="../../$(srcdir)" ;; \
6830 if [ "$(srcdir)" = "." ] ; then \
6831 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6832 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
6833 if [ -f Makefile ]; then \
6834 if $(MAKE) distclean; then \
6848 srcdiroption="--srcdir=."; \
6851 srcdiroption="--srcdir=$${topdir}/zlib"; \
6852 libsrcdir="$$s/zlib"; \
6854 rm -f no-such-file || : ; \
6855 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6856 $(TARGET_CONFIGARGS) $${srcdiroption} \
6857 --with-target-subdir="$(TARGET_SUBDIR)" \
6860 .PHONY: all-target-zlib maybe-all-target-zlib
6861 maybe-all-target-zlib:
6862 all-target-zlib: configure-target-zlib
6863 @r=`${PWD}`; export r; \
6864 s=`cd $(srcdir); ${PWD}`; export s; \
6866 (cd $(TARGET_SUBDIR)/zlib && \
6867 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6869 .PHONY: check-target-zlib
6871 @r=`${PWD}`; export r; \
6872 s=`cd $(srcdir); ${PWD}`; export s; \
6874 (cd $(TARGET_SUBDIR)/zlib && \
6875 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6878 .PHONY: install-target-zlib maybe-install-target-zlib
6879 maybe-install-target-zlib:
6880 install-target-zlib: installdirs
6881 @r=`${PWD}`; export r; \
6882 s=`cd $(srcdir); ${PWD}`; export s; \
6884 (cd $(TARGET_SUBDIR)/zlib && \
6885 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6888 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
6889 maybe-configure-target-boehm-gc:
6891 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6892 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
6893 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || \
6894 mkdir $(TARGET_SUBDIR)/boehm-gc; \
6895 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
6896 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
6898 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
6899 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
6900 [ -d $(TARGET_SUBDIR)/boehm-gc ] || \
6901 mkdir $(TARGET_SUBDIR)/boehm-gc;\
6902 r=`${PWD}`; export r; \
6903 s=`cd $(srcdir); ${PWD}`; export s; \
6905 AR="$(AR_FOR_TARGET)"; export AR; \
6906 AS="$(AS_FOR_TARGET)"; export AS; \
6907 CC="$(CC_FOR_TARGET)"; export CC; \
6908 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6909 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6910 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6911 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6912 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6913 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6914 LD="$(LD_FOR_TARGET)"; export LD; \
6915 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6916 NM="$(NM_FOR_TARGET)"; export NM; \
6917 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6918 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6919 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
6920 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
6922 /* | [A-Za-z]:[\\/]*) \
6923 topdir=$(srcdir) ;; \
6925 case "$(TARGET_SUBDIR)" in \
6926 .) topdir="../$(srcdir)" ;; \
6927 *) topdir="../../$(srcdir)" ;; \
6930 if [ "$(srcdir)" = "." ] ; then \
6931 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6932 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
6933 if [ -f Makefile ]; then \
6934 if $(MAKE) distclean; then \
6948 srcdiroption="--srcdir=."; \
6951 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
6952 libsrcdir="$$s/boehm-gc"; \
6954 rm -f no-such-file || : ; \
6955 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6956 $(TARGET_CONFIGARGS) $${srcdiroption} \
6957 --with-target-subdir="$(TARGET_SUBDIR)" \
6960 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
6961 maybe-all-target-boehm-gc:
6962 all-target-boehm-gc: configure-target-boehm-gc
6963 @r=`${PWD}`; export r; \
6964 s=`cd $(srcdir); ${PWD}`; export s; \
6966 (cd $(TARGET_SUBDIR)/boehm-gc && \
6967 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6969 .PHONY: check-target-boehm-gc
6970 check-target-boehm-gc:
6971 @r=`${PWD}`; export r; \
6972 s=`cd $(srcdir); ${PWD}`; export s; \
6974 (cd $(TARGET_SUBDIR)/boehm-gc && \
6975 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6978 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
6979 maybe-install-target-boehm-gc:
6980 install-target-boehm-gc: installdirs
6981 @r=`${PWD}`; export r; \
6982 s=`cd $(srcdir); ${PWD}`; export s; \
6984 (cd $(TARGET_SUBDIR)/boehm-gc && \
6985 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6988 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
6989 maybe-configure-target-qthreads:
6991 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6992 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
6993 @[ -d $(TARGET_SUBDIR)/qthreads ] || \
6994 mkdir $(TARGET_SUBDIR)/qthreads; \
6995 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
6996 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
6998 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
6999 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
7000 [ -d $(TARGET_SUBDIR)/qthreads ] || \
7001 mkdir $(TARGET_SUBDIR)/qthreads;\
7002 r=`${PWD}`; export r; \
7003 s=`cd $(srcdir); ${PWD}`; export s; \
7005 AR="$(AR_FOR_TARGET)"; export AR; \
7006 AS="$(AS_FOR_TARGET)"; export AS; \
7007 CC="$(CC_FOR_TARGET)"; export CC; \
7008 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7009 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7010 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7011 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7012 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7013 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7014 LD="$(LD_FOR_TARGET)"; export LD; \
7015 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7016 NM="$(NM_FOR_TARGET)"; export NM; \
7017 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7018 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7019 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7020 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
7022 /* | [A-Za-z]:[\\/]*) \
7023 topdir=$(srcdir) ;; \
7025 case "$(TARGET_SUBDIR)" in \
7026 .) topdir="../$(srcdir)" ;; \
7027 *) topdir="../../$(srcdir)" ;; \
7030 if [ "$(srcdir)" = "." ] ; then \
7031 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7032 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
7033 if [ -f Makefile ]; then \
7034 if $(MAKE) distclean; then \
7048 srcdiroption="--srcdir=."; \
7051 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7052 libsrcdir="$$s/qthreads"; \
7054 rm -f no-such-file || : ; \
7055 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7056 $(TARGET_CONFIGARGS) $${srcdiroption} \
7057 --with-target-subdir="$(TARGET_SUBDIR)" \
7060 .PHONY: all-target-qthreads maybe-all-target-qthreads
7061 maybe-all-target-qthreads:
7062 all-target-qthreads: configure-target-qthreads
7063 @r=`${PWD}`; export r; \
7064 s=`cd $(srcdir); ${PWD}`; export s; \
7066 (cd $(TARGET_SUBDIR)/qthreads && \
7067 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7069 .PHONY: check-target-qthreads
7070 check-target-qthreads:
7071 @r=`${PWD}`; export r; \
7072 s=`cd $(srcdir); ${PWD}`; export s; \
7074 (cd $(TARGET_SUBDIR)/qthreads && \
7075 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7078 .PHONY: install-target-qthreads maybe-install-target-qthreads
7079 maybe-install-target-qthreads:
7080 install-target-qthreads: installdirs
7081 @r=`${PWD}`; export r; \
7082 s=`cd $(srcdir); ${PWD}`; export s; \
7084 (cd $(TARGET_SUBDIR)/qthreads && \
7085 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7088 .PHONY: configure-target-rda maybe-configure-target-rda
7089 maybe-configure-target-rda:
7091 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7092 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
7093 @[ -d $(TARGET_SUBDIR)/rda ] || \
7094 mkdir $(TARGET_SUBDIR)/rda; \
7095 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
7096 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
7098 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
7099 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
7100 [ -d $(TARGET_SUBDIR)/rda ] || \
7101 mkdir $(TARGET_SUBDIR)/rda;\
7102 r=`${PWD}`; export r; \
7103 s=`cd $(srcdir); ${PWD}`; export s; \
7105 AR="$(AR_FOR_TARGET)"; export AR; \
7106 AS="$(AS_FOR_TARGET)"; export AS; \
7107 CC="$(CC_FOR_TARGET)"; export CC; \
7108 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7109 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7110 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7111 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7112 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7113 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7114 LD="$(LD_FOR_TARGET)"; export LD; \
7115 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7116 NM="$(NM_FOR_TARGET)"; export NM; \
7117 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7118 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7119 echo Configuring in $(TARGET_SUBDIR)/rda; \
7120 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
7122 /* | [A-Za-z]:[\\/]*) \
7123 topdir=$(srcdir) ;; \
7125 case "$(TARGET_SUBDIR)" in \
7126 .) topdir="../$(srcdir)" ;; \
7127 *) topdir="../../$(srcdir)" ;; \
7130 if [ "$(srcdir)" = "." ] ; then \
7131 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7132 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
7133 if [ -f Makefile ]; then \
7134 if $(MAKE) distclean; then \
7148 srcdiroption="--srcdir=."; \
7151 srcdiroption="--srcdir=$${topdir}/rda"; \
7152 libsrcdir="$$s/rda"; \
7154 rm -f no-such-file || : ; \
7155 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7156 $(TARGET_CONFIGARGS) $${srcdiroption} \
7157 --with-target-subdir="$(TARGET_SUBDIR)" \
7160 .PHONY: all-target-rda maybe-all-target-rda
7161 maybe-all-target-rda:
7162 all-target-rda: configure-target-rda
7163 @r=`${PWD}`; export r; \
7164 s=`cd $(srcdir); ${PWD}`; export s; \
7166 (cd $(TARGET_SUBDIR)/rda && \
7167 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7169 .PHONY: check-target-rda
7171 @r=`${PWD}`; export r; \
7172 s=`cd $(srcdir); ${PWD}`; export s; \
7174 (cd $(TARGET_SUBDIR)/rda && \
7175 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7178 .PHONY: install-target-rda maybe-install-target-rda
7179 maybe-install-target-rda:
7180 install-target-rda: installdirs
7181 @r=`${PWD}`; export r; \
7182 s=`cd $(srcdir); ${PWD}`; export s; \
7184 (cd $(TARGET_SUBDIR)/rda && \
7185 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7193 # Unfortunately, while gcc _should_ be a host module,
7194 # libgcc is a target module, and gen* programs are
7195 # build modules. So GCC is a sort of hybrid.
7197 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
7198 .PHONY: configure-gcc maybe-configure-gcc
7199 maybe-configure-gcc:
7201 @test ! -f gcc/Makefile || exit 0; \
7202 [ -d gcc ] || mkdir gcc; \
7203 r=`${PWD}`; export r; \
7204 s=`cd $(srcdir); ${PWD}`; export s; \
7205 CC="$(CC)"; export CC; \
7206 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7207 CXX="$(CXX)"; export CXX; \
7208 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7209 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
7210 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7211 AR="$(AR)"; export AR; \
7212 AS="$(AS)"; export AS; \
7213 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7214 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7215 LD="$(LD)"; export LD; \
7216 NM="$(NM)"; export NM; \
7217 RANLIB="$(RANLIB)"; export RANLIB; \
7218 WINDRES="$(WINDRES)"; export WINDRES; \
7219 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7220 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7222 echo Configuring in gcc; \
7226 srcdiroption="--srcdir=."; \
7228 /* | [A-Za-z]:[\\/]*) \
7229 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7230 libsrcdir="$$s/gcc";; \
7232 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7233 libsrcdir="$$s/gcc";; \
7235 $(SHELL) $${libsrcdir}/configure \
7236 $(HOST_CONFIGARGS) $${srcdiroption} \
7239 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
7240 # causes trouble. This wart will be fixed eventually by moving
7241 # the bootstrap behavior to this file.
7242 .PHONY: all-gcc maybe-all-gcc
7244 all-gcc: configure-gcc
7245 @if [ -f gcc/stage_last ] ; then \
7246 r=`${PWD}`; export r; \
7247 s=`cd $(srcdir); ${PWD}`; export s; \
7249 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
7251 r=`${PWD}`; export r; \
7252 s=`cd $(srcdir); ${PWD}`; export s; \
7254 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
7257 # Building GCC uses some tools for rebuilding "source" files
7258 # like texinfo, bison/byacc, etc. So we must depend on those.
7260 # While building GCC, it may be necessary to run various target
7261 # programs like the assembler, linker, etc. So we depend on
7264 # In theory, on an SMP all those dependencies can be resolved
7267 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
7268 .PHONY: $(GCC_STRAP_TARGETS)
7269 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
7270 @r=`${PWD}`; export r; \
7271 s=`cd $(srcdir); ${PWD}`; export s; \
7273 echo "Bootstrapping the compiler"; \
7274 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
7275 @r=`${PWD}`; export r; \
7276 s=`cd $(srcdir); ${PWD}`; export s; \
7278 *bootstrap4-lean ) \
7279 msg="Comparing stage3 and stage4 of the compiler"; \
7280 compare=compare3-lean ;; \
7282 msg="Comparing stage3 and stage4 of the compiler"; \
7283 compare=compare3 ;; \
7285 msg="Comparing stage2 and stage3 of the compiler"; \
7286 compare=compare-lean ;; \
7288 msg="Comparing stage2 and stage3 of the compiler"; \
7289 compare=compare ;; \
7293 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
7294 @r=`${PWD}`; export r; \
7295 s=`cd $(srcdir); ${PWD}` ; export s; \
7297 echo "Building runtime libraries"; \
7298 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
7301 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
7302 @r=`${PWD}`; export r; \
7303 s=`cd $(srcdir); ${PWD}`; export s; \
7305 echo "Building the C and C++ compiler"; \
7306 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
7307 @r=`${PWD}`; export r; \
7308 s=`cd $(srcdir); ${PWD}` ; export s; \
7310 echo "Building runtime libraries"; \
7311 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7312 LANGUAGES="c c++" all
7316 @if [ -f ./gcc/Makefile ] ; then \
7317 r=`${PWD}`; export r; \
7318 s=`cd $(srcdir); ${PWD}`; export s; \
7320 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
7325 .PHONY: check-gcc-c++
7327 @if [ -f ./gcc/Makefile ] ; then \
7328 r=`${PWD}`; export r; \
7329 s=`cd $(srcdir); ${PWD}`; export s; \
7331 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
7338 $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
7340 .PHONY: install-gcc maybe-install-gcc
7343 @if [ -f ./gcc/Makefile ] ; then \
7344 r=`${PWD}`; export r; \
7345 s=`cd $(srcdir); ${PWD}`; export s; \
7347 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7352 # Install the gcc headers files, but not the fixed include files,
7353 # which Cygnus is not allowed to distribute. This rule is very
7354 # dependent on the workings of the gcc Makefile.in.
7355 .PHONY: gcc-no-fixedincludes
7356 gcc-no-fixedincludes:
7357 @if [ -f ./gcc/Makefile ]; then \
7358 rm -rf gcc/tmp-include; \
7359 mv gcc/include gcc/tmp-include 2>/dev/null; \
7360 mkdir gcc/include; \
7361 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7362 touch gcc/stmp-fixinc gcc/include/fixed; \
7363 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
7364 r=`${PWD}`; export r; \
7365 s=`cd $(srcdir); ${PWD}` ; export s; \
7368 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7369 rm -rf gcc/include; \
7370 mv gcc/tmp-include gcc/include 2>/dev/null; \
7373 # --------------------------------------
7374 # Dependencies between different modules
7375 # --------------------------------------
7377 # There are two types of dependencies here: 'hard' dependencies, where one
7378 # module simply won't build without the other; and 'soft' dependencies, where
7379 # if the depended-on module is missing, the depending module will do without
7380 # or find a substitute somewhere (perhaps installed). Soft dependencies
7381 # are specified by depending on a 'maybe-' target. If you're not sure,
7382 # it's safer to use a soft dependency.
7384 # Host modules specific to gcc.
7385 # GCC needs to identify certain tools.
7386 configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7387 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7388 # This is a slightly kludgy method of getting dependencies on
7389 # all-build-libiberty correct; it would be better to build it every time.
7390 all-gcc: maybe-all-build-libiberty
7391 all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7393 # Host modules specific to gdb.
7394 # GDB needs to know that the simulator is being built.
7395 configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
7397 all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK)
7398 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
7399 configure-libgui: maybe-configure-tcl maybe-configure-tk
7400 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7402 # Host modules specific to binutils.
7403 configure-bfd: configure-libiberty
7404 all-bfd: maybe-all-libiberty maybe-all-intl
7405 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
7406 # We put install-opcodes before install-binutils because the installed
7407 # binutils might be on PATH, and they might need the shared opcodes
7409 install-binutils: maybe-install-opcodes
7410 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7411 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7412 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7413 all-opcodes: maybe-all-bfd maybe-all-libiberty
7415 # Other host modules in the 'src' repository.
7416 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7417 configure-expect: maybe-configure-tcl maybe-configure-tk
7418 all-expect: maybe-all-tcl maybe-all-tk
7419 configure-itcl: maybe-configure-tcl maybe-configure-tk
7420 all-itcl: maybe-all-tcl maybe-all-tk
7421 # We put install-tcl before install-itcl because itcl wants to run a
7422 # program on installation which uses the Tcl libraries.
7423 install-itcl: maybe-install-tcl
7424 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
7425 install-sid: maybe-install-tcl maybe-install-tk
7426 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
7427 configure-tk: maybe-configure-tcl
7428 all-tk: maybe-all-tcl
7429 configure-tix: maybe-configure-tcl maybe-configure-tk
7430 all-tix: maybe-all-tcl maybe-all-tk
7431 all-texinfo: maybe-all-libiberty
7433 # Other host modules. Warning, these are not well tested.
7434 all-autoconf: maybe-all-m4 maybe-all-texinfo
7435 all-automake: maybe-all-m4 maybe-all-texinfo
7436 all-bison: maybe-all-texinfo
7437 all-diff: maybe-all-libiberty
7438 all-fastjar: maybe-all-zlib maybe-all-libiberty
7439 all-fileutils: maybe-all-libiberty
7440 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7441 all-gzip: maybe-all-libiberty
7442 all-hello: maybe-all-libiberty
7443 all-m4: maybe-all-libiberty maybe-all-texinfo
7444 all-make: maybe-all-libiberty
7445 all-patch: maybe-all-libiberty
7446 all-prms: maybe-all-libiberty
7447 all-recode: maybe-all-libiberty
7448 all-sed: maybe-all-libiberty
7449 all-send-pr: maybe-all-prms
7450 all-tar: maybe-all-libiberty
7451 all-uudecode: maybe-all-libiberty
7453 ALL_GCC = maybe-all-gcc
7454 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7455 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7457 # Target modules specific to gcc.
7458 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
7459 configure-target-fastjar: maybe-configure-target-zlib
7460 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7461 configure-target-libf2c: $(ALL_GCC_C)
7462 all-target-libf2c: maybe-all-target-libiberty
7463 configure-target-libffi: $(ALL_GCC_C)
7464 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7465 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7466 configure-target-libobjc: $(ALL_GCC_C)
7467 all-target-libobjc: maybe-all-target-libiberty
7468 configure-target-libstdc++-v3: $(ALL_GCC_C)
7469 all-target-libstdc++-v3: maybe-all-target-libiberty
7470 configure-target-zlib: $(ALL_GCC_C)
7472 # Target modules in the 'src' repository.
7473 configure-target-examples: $(ALL_GCC_C)
7474 configure-target-libgloss: $(ALL_GCC)
7475 all-target-libgloss: maybe-configure-target-newlib
7476 configure-target-libiberty: $(ALL_GCC_C)
7477 configure-target-libtermcap: $(ALL_GCC_C)
7478 configure-target-newlib: $(ALL_GCC)
7479 configure-target-rda: $(ALL_GCC_C)
7480 configure-target-winsup: $(ALL_GCC_C)
7481 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
7483 # Other target modules. Warning, these are not well tested.
7484 configure-target-gperf: $(ALL_GCC_CXX)
7485 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7486 configure-target-qthreads: $(ALL_GCC_C)
7488 # Dependencies of maybe-foo on foo. These are used because, for example,
7489 # all-gcc only depends on all-gas if gas is present and being configured.
7490 @maybe_dependencies@
7492 # Serialization dependencies. Host configures don't work well in parallel to
7493 # each other, due to contention over config.cache. Target configures and
7494 # build configures are similar.
7495 @serialization_dependencies@
7497 # --------------------------------
7498 # Regenerating top level configury
7499 # --------------------------------
7501 # Multilib.out tells target dirs what multilibs they should build.
7502 # There is really only one copy. We use the 'timestamp' method to
7503 # work around various timestamp bugs on some systems.
7504 # We use move-if-change so that it's only considered updated when it
7505 # actually changes, because it has to depend on a phony target.
7506 multilib.out: maybe-all-gcc
7507 @r=`${PWD}`; export r; \
7508 echo "Checking multilib configuration..."; \
7509 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
7510 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
7512 # Rebuilding Makefile.in, using autogen.
7514 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
7515 cd $(srcdir) && $(AUTOGEN) Makefile.def
7517 # Rebuilding Makefile.
7518 Makefile: $(srcdir)/Makefile.in config.status
7519 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
7521 config.status: configure $(gcc_version_trigger)
7522 $(SHELL) ./config.status --recheck
7524 # Rebuilding configure.
7526 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
7527 cd $(srcdir) && $(AUTOCONF)
7529 # ------------------------------
7530 # Special directives to GNU Make
7531 # ------------------------------
7533 # Tell GNU make 3.79 not to run the top level in parallel. This
7534 # prevents contention for $builddir/$target/config.cache, as well
7535 # as minimizing scatter in file system caches.
7536 NOTPARALLEL = .NOTPARALLEL
7539 # Don't pass command-line variables to submakes.
7543 # end of Makefile.in