2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # Tell GNU make 3.79 not to run the top level in parallel. This
24 # prevents contention for $builddir/$target/config.cache, as well
25 # as minimizing scatter in file system caches.
26 NOTPARALLEL = .NOTPARALLEL
32 build_alias=@build_alias@
34 build_vendor=@build_vendor@
36 build_canonical=@build_cpu@-@build_vendor@-@build_os@
37 host_alias=@host_alias@
39 host_vendor=@host_vendor@
41 host_canonical=@host_cpu@-@host_vendor@-@host_os@
42 target_alias=@target_alias@
43 target_cpu=@target_cpu@
44 target_vendor=@target_vendor@
46 target_canonical=@target_cpu@-@target_vendor@-@target_os@
48 enable_shared = @enable_shared@
49 enable_threads = @enable_threads@
50 enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
51 # The file containing GCC's version number.
52 gcc_version_trigger = @gcc_version_trigger@
53 gcc_version = @gcc_version@
58 exec_prefix = @exec_prefix@
62 libexecdir = @libexecdir@
64 sysconfdir = @sysconfdir@
65 sharedstatedir = @sharedstatedir@
66 localstatedir = @localstatedir@
68 includedir = @includedir@
69 oldincludedir = @oldincludedir@
72 gxx_include_dir=@gxx_include_dir@
75 build_tooldir = @build_tooldir@
77 program_transform_name = @program_transform_name@
79 man1dir = $(mandir)/man1
80 man2dir = $(mandir)/man2
81 man3dir = $(mandir)/man3
82 man4dir = $(mandir)/man4
83 man5dir = $(mandir)/man5
84 man6dir = $(mandir)/man6
85 man7dir = $(mandir)/man7
86 man8dir = $(mandir)/man8
87 man9dir = $(mandir)/man9
88 # Directory in which the compiler finds executables, libraries, etc.
89 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
92 SHELL = @config_shell@
94 # pwd command to use. Allow user to override default by setting PWDCMD in
95 # the environment to account for automounters. The make variable must not
96 # be called PWDCMD, otherwise the value set here is passed to make
97 # subprocesses and overrides the setting from the user's environment.
100 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
102 INSTALL_PROGRAM_ARGS =
104 INSTALL = $(SHELL) $$s/install-sh -c
105 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
106 INSTALL_SCRIPT = $(INSTALL)
107 INSTALL_DATA = $(INSTALL) -m 644
114 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
115 # here so that they can be overridden by Makefile fragments.
116 BUILD_CC = $(CC_FOR_BUILD)
117 BUILD_PREFIX = @BUILD_PREFIX@
118 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
120 # These flag values are normally overridden by the configure script.
125 LIBCFLAGS = $(CFLAGS)
126 CFLAGS_FOR_BUILD = $(CFLAGS)
127 # During gcc bootstrap, if we use some random cc for stage1 then
128 # CFLAGS will be just -g. We want to ensure that TARGET libraries
129 # (which we know are built with gcc) are built with optimizations so
130 # prepend -O2 when setting CFLAGS_FOR_TARGET.
131 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
133 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
139 # Use -O2 to stress test the compiler.
140 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
141 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
142 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
151 # These values are substituted by configure.
152 DEFAULT_YACC = @DEFAULT_YACC@
153 DEFAULT_LEX = @DEFAULT_LEX@
154 DEFAULT_M4 = @DEFAULT_M4@
157 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
158 echo $$r/bison/bison -L $$s/bison/ ; \
164 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
165 echo $$r/bison/bison -y -L $$s/bison/ ; \
166 elif [ -f $$r/byacc/byacc ] ; then \
167 echo $$r/byacc/byacc ; \
169 echo ${DEFAULT_YACC} ; \
173 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
174 then echo $$r/flex/flex ; \
175 else echo ${DEFAULT_LEX} ; fi`
177 M4 = `if [ -f $$r/m4/m4 ] ; \
178 then echo $$r/m4/m4 ; \
179 else echo ${DEFAULT_M4} ; fi`
181 # For an installed makeinfo, we require it to be from texinfo 4 or
182 # higher, else we use the "missing" dummy.
184 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
185 then echo $$r/texinfo/makeinfo/makeinfo ; \
186 else if (makeinfo --version \
187 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
188 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
190 # This just becomes part of the MAKEINFO definition passed down to
191 # sub-makes. It lets flags be given on the command line while still
192 # using the makeinfo from the object tree.
195 EXPECT = `if [ -f $$r/expect/expect ] ; \
196 then echo $$r/expect/expect ; \
197 else echo expect ; fi`
199 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
200 then echo $$s/dejagnu/runtest ; \
201 else echo runtest ; fi`
204 # compilers to use to create programs which must be run in the build
206 CC_FOR_BUILD = @CC_FOR_BUILD@
207 CXX_FOR_BUILD = $(CXX)
209 SUBDIRS = @configdirs@
211 # This is set by the configure script to the list of directories which
212 # should be built using the target tools.
213 TARGET_CONFIGDIRS = @target_configdirs@
215 # Target libraries are put under this directory:
216 # Changed by configure to $(target_alias) if cross.
217 TARGET_SUBDIR = @target_subdir@
219 BUILD_CONFIGDIRS = libiberty
220 BUILD_SUBDIR = @build_subdir@
222 # This is set by the configure script to the arguments to use when configuring
223 # directories built for the build system.
224 BUILD_CONFIGARGS = @build_configargs@
226 # This is set by the configure script to the arguments to use when configuring
227 # directories built for the host system.
228 HOST_CONFIGARGS = @host_configargs@
230 # This is set by the configure script to the arguments to use when configuring
231 # directories built for the target.
232 TARGET_CONFIGARGS = @target_configargs@
234 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
236 SET_LIB_PATH = @SET_LIB_PATH@
238 # This is the name of the environment variable used for the path to
239 # the libraries. This may be changed by configure.in.
240 RPATH_ENVVAR = @RPATH_ENVVAR@
242 # This is the list of directories that may be needed in RPATH_ENVVAR
243 # so that programs built for the host machine work.
244 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
246 # This is the list of directories that may be needed in RPATH_ENVVAR
247 # so that prorgams built for the target machine work.
248 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
250 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
251 # Some platforms don't like blank entries, so we remove duplicate,
252 # leading and trailing colons.
253 REALLY_SET_LIB_PATH = \
254 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
256 # Should be substed by configure.in
257 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
258 CC_FOR_TARGET = @CC_FOR_TARGET@
259 CXX_FOR_TARGET = @CXX_FOR_TARGET@
260 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
261 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
262 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
263 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
265 # If GCC_FOR_TARGET is not overriden on the command line, then this
266 # variable is passed down to the gcc Makefile, where it is used to
267 # build libgcc2.a. We define it here so that it can itself be
268 # overridden on the command line.
269 GCC_FOR_TARGET=@GCC_FOR_TARGET@
270 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
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 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
286 LD_FOR_TARGET=@LD_FOR_TARGET@
287 USUAL_LD_FOR_TARGET = ` \
288 if [ -f $$r/ld/ld-new ] ; then \
289 echo $$r/ld/ld-new ; \
290 elif [ -f $$r/gcc/xgcc ]; then \
291 $(CC_FOR_TARGET) -print-prog-name=ld ; \
293 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
296 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
300 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
301 USUAL_DLLTOOL_FOR_TARGET = ` \
302 if [ -f $$r/binutils/dlltool ] ; then \
303 echo $$r/binutils/dlltool ; \
305 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
308 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
312 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
313 USUAL_WINDRES_FOR_TARGET = ` \
314 if [ -f $$r/binutils/windres ] ; then \
315 echo $$r/binutils/windres ; \
317 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
320 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
324 AR_FOR_TARGET=@AR_FOR_TARGET@
325 USUAL_AR_FOR_TARGET = ` \
326 if [ -f $$r/binutils/ar ] ; then \
327 echo $$r/binutils/ar ; \
329 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
332 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
336 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
337 USUAL_RANLIB_FOR_TARGET = ` \
338 if [ -f $$r/binutils/ranlib ] ; then \
339 echo $$r/binutils/ranlib ; \
341 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
342 if [ x'$(RANLIB)' != x ]; then \
348 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
352 NM_FOR_TARGET=@NM_FOR_TARGET@
353 USUAL_NM_FOR_TARGET = ` \
354 if [ -f $$r/binutils/nm-new ] ; then \
355 echo $$r/binutils/nm-new ; \
356 elif [ -f $$r/gcc/xgcc ]; then \
357 $(CC_FOR_TARGET) -print-prog-name=nm ; \
359 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
362 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
366 # The first rule in the file had better be this one. Don't put any above it.
367 # This lives here to allow makefile fragments to contain dependencies.
371 #### host and target specific makefile fragments come in here.
374 # Flags to pass down to all sub-makes.
375 # Please keep these in alphabetical order.
376 BASE_FLAGS_TO_PASS = \
377 "AR_FLAGS=$(AR_FLAGS)" \
378 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
379 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
381 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
382 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
384 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
385 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
386 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
387 "CXXFLAGS=$(CXXFLAGS)" \
388 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
389 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
390 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
391 "INSTALL=$(INSTALL)" \
392 "INSTALL_DATA=$(INSTALL_DATA)" \
393 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
394 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
395 "LDFLAGS=$(LDFLAGS)" \
397 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
398 "LIBCFLAGS=$(LIBCFLAGS)" \
399 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
400 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
401 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
404 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
405 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
406 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
407 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
410 "RUNTEST=$(RUNTEST)" \
411 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
412 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
413 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
416 "datadir=$(datadir)" \
417 "exec_prefix=$(exec_prefix)" \
418 "includedir=$(includedir)" \
419 "infodir=$(infodir)" \
421 "libexecdir=$(libexecdir)" \
422 "lispdir=$(lispdir)" \
423 "libstdcxx_incdir=$(libstdcxx_incdir)" \
424 "libsubdir=$(libsubdir)" \
425 "localstatedir=$(localstatedir)" \
427 "oldincludedir=$(oldincludedir)" \
429 "sbindir=$(sbindir)" \
430 "sharedstatedir=$(sharedstatedir)" \
431 "sysconfdir=$(sysconfdir)" \
432 "tooldir=$(tooldir)" \
433 "build_tooldir=$(build_tooldir)" \
434 "gxx_include_dir=$(gxx_include_dir)" \
435 "gcc_version=$(gcc_version)" \
436 "gcc_version_trigger=$(gcc_version_trigger)" \
437 "target_alias=$(target_alias)"
439 # For any flags above that may contain shell code that varies from one
440 # target library to another. When doing recursive invocations of the
441 # top-level Makefile, we don't want the outer make to evaluate them,
442 # so we pass these variables down unchanged. They must not contain
443 # single nor double quotes.
445 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
446 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
448 # Flags to pass down to most sub-makes, in which we're building with
449 # the host environment.
450 # If any variables are added here, they must be added to do-*, below.
456 'DLLTOOL=$(DLLTOOL)' \
459 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
462 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
464 # Flags that are concerned with the location of the X11 include files
467 # NOTE: until the top-level is getting the values via autoconf, it only
468 # causes problems to have this top-level Makefile overriding the autoconf-set
469 # values in child directories. Only variables that don't conflict with
470 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
472 X11_FLAGS_TO_PASS = \
473 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
474 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
476 # Flags to pass down to makes which are built with the target environment.
477 # The double $ decreases the length of the command line; the variables
478 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
479 # If any variables are added here, they must be added to do-*, below.
480 EXTRA_TARGET_FLAGS = \
481 'AR=$$(AR_FOR_TARGET)' \
482 'AS=$$(AS_FOR_TARGET)' \
483 'CC=$$(CC_FOR_TARGET)' \
484 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
485 'CXX=$$(CXX_FOR_TARGET)' \
486 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
487 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488 'LD=$$(LD_FOR_TARGET)' \
489 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
490 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
491 'NM=$$(NM_FOR_TARGET)' \
492 'RANLIB=$$(RANLIB_FOR_TARGET)' \
493 'WINDRES=$$(WINDRES_FOR_TARGET)'
495 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
497 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
498 # unfortunately needs the native compiler and the target ar and
500 # If any variables are added here, they must be added to do-*, below.
501 # The HOST_* variables are a special case, which are used for the gcc
502 # cross-building scheme.
508 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
509 'BUILD_CC=$(CC_FOR_BUILD)' \
510 'BUILD_PREFIX=$(BUILD_PREFIX)' \
511 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
513 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
514 'WINDRES=$$(WINDRES_FOR_TARGET)' \
515 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
516 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
517 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
518 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
519 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
520 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
521 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
522 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
525 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
527 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
529 configure-host: @configure_host_modules@
530 configure-target: @configure_target_modules@
532 # This is a list of the targets for which we can do a clean-{target}.
596 # All of the target modules that can be cleaned
597 CLEAN_TARGET_MODULES = \
598 clean-target-libstdc++-v3 \
599 clean-target-newlib \
600 clean-target-libf2c \
601 clean-target-libobjc \
602 clean-target-winsup \
603 clean-target-libgloss \
604 clean-target-libiberty \
606 clean-target-examples \
607 clean-target-libffi \
608 clean-target-libjava \
610 clean-target-boehm-gc \
611 clean-target-qthreads \
614 # All of the x11 modules that can be cleaned
615 CLEAN_X11_MODULES = \
623 # The target built for a native build.
624 # This list only includes modules actually being configured and built.
626 all.normal: @all_build_modules@ \
630 all-host: @all_host_modules@
631 all-target: @all_target_modules@
633 # Do a target for all the subdirectories. A ``make do-X'' will do a
634 # ``make X'' in all subdirectories (because, in general, there is a
635 # dependency (below) of X upon do-X, a ``make X'' will also do this,
636 # but it may do additional work as well).
637 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
638 # because it is so large that it can easily overflow the command line
639 # length limit on some systems.
643 @r=`${PWD}`; export r; \
644 s=`cd $(srcdir); ${PWD}`; export s; \
646 for i in $(SUBDIRS) -dummy-; do \
647 if [ -f ./$$i/Makefile ]; then \
650 for flag in $(EXTRA_GCC_FLAGS); do \
651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
655 for flag in $(EXTRA_HOST_FLAGS); do \
656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
663 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
666 then true; else exit 1; fi; \
669 # Break into two pieces
670 r=`${PWD}`; export r; \
671 s=`cd $(srcdir); ${PWD}`; export s; \
673 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
674 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
675 for flag in $(EXTRA_TARGET_FLAGS); do \
676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
678 if (cd $(TARGET_SUBDIR)/$$i; \
679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
681 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
684 then true; else exit 1; fi; \
690 @r=`${PWD}`; export r; \
691 s=`cd $(srcdir); ${PWD}`; export s; \
693 for i in $(SUBDIRS) -dummy-; do \
694 if [ -f ./$$i/Makefile ]; then \
697 for flag in $(EXTRA_GCC_FLAGS); do \
698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
702 for flag in $(EXTRA_HOST_FLAGS); do \
703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
710 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
713 then true; else exit 1; fi; \
716 # Break into two pieces
717 r=`${PWD}`; export r; \
718 s=`cd $(srcdir); ${PWD}`; export s; \
720 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
721 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
722 for flag in $(EXTRA_TARGET_FLAGS); do \
723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
725 if (cd $(TARGET_SUBDIR)/$$i; \
726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
728 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
731 then true; else exit 1; fi; \
737 @r=`${PWD}`; export r; \
738 s=`cd $(srcdir); ${PWD}`; export s; \
740 for i in $(SUBDIRS) -dummy-; do \
741 if [ -f ./$$i/Makefile ]; then \
744 for flag in $(EXTRA_GCC_FLAGS); do \
745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
749 for flag in $(EXTRA_HOST_FLAGS); do \
750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
757 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
760 then true; else exit 1; fi; \
763 # Break into two pieces
764 r=`${PWD}`; export r; \
765 s=`cd $(srcdir); ${PWD}`; export s; \
767 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
768 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
769 for flag in $(EXTRA_TARGET_FLAGS); do \
770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
772 if (cd $(TARGET_SUBDIR)/$$i; \
773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
775 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
778 then true; else exit 1; fi; \
784 @r=`${PWD}`; export r; \
785 s=`cd $(srcdir); ${PWD}`; export s; \
787 for i in $(SUBDIRS) -dummy-; do \
788 if [ -f ./$$i/Makefile ]; then \
791 for flag in $(EXTRA_GCC_FLAGS); do \
792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
796 for flag in $(EXTRA_HOST_FLAGS); do \
797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
804 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
807 then true; else exit 1; fi; \
810 # Break into two pieces
811 r=`${PWD}`; export r; \
812 s=`cd $(srcdir); ${PWD}`; export s; \
814 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
815 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
816 for flag in $(EXTRA_TARGET_FLAGS); do \
817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
819 if (cd $(TARGET_SUBDIR)/$$i; \
820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
822 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
825 then true; else exit 1; fi; \
829 .PHONY: do-install-info
831 @r=`${PWD}`; export r; \
832 s=`cd $(srcdir); ${PWD}`; export s; \
834 for i in $(SUBDIRS) -dummy-; do \
835 if [ -f ./$$i/Makefile ]; then \
838 for flag in $(EXTRA_GCC_FLAGS); do \
839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
843 for flag in $(EXTRA_HOST_FLAGS); do \
844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
851 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
854 then true; else exit 1; fi; \
857 # Break into two pieces
858 r=`${PWD}`; export r; \
859 s=`cd $(srcdir); ${PWD}`; export s; \
861 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
862 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
863 for flag in $(EXTRA_TARGET_FLAGS); do \
864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
866 if (cd $(TARGET_SUBDIR)/$$i; \
867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
869 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
872 then true; else exit 1; fi; \
876 .PHONY: do-installcheck
878 @r=`${PWD}`; export r; \
879 s=`cd $(srcdir); ${PWD}`; export s; \
881 for i in $(SUBDIRS) -dummy-; do \
882 if [ -f ./$$i/Makefile ]; then \
885 for flag in $(EXTRA_GCC_FLAGS); do \
886 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
890 for flag in $(EXTRA_HOST_FLAGS); do \
891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
898 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
901 then true; else exit 1; fi; \
904 # Break into two pieces
905 r=`${PWD}`; export r; \
906 s=`cd $(srcdir); ${PWD}`; export s; \
908 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
909 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
910 for flag in $(EXTRA_TARGET_FLAGS); do \
911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
913 if (cd $(TARGET_SUBDIR)/$$i; \
914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
916 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
919 then true; else exit 1; fi; \
923 .PHONY: do-mostlyclean
925 @r=`${PWD}`; export r; \
926 s=`cd $(srcdir); ${PWD}`; export s; \
928 for i in $(SUBDIRS) -dummy-; do \
929 if [ -f ./$$i/Makefile ]; then \
932 for flag in $(EXTRA_GCC_FLAGS); do \
933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
937 for flag in $(EXTRA_HOST_FLAGS); do \
938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
945 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
948 then true; else exit 1; fi; \
951 # Break into two pieces
952 r=`${PWD}`; export r; \
953 s=`cd $(srcdir); ${PWD}`; export s; \
955 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
956 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
957 for flag in $(EXTRA_TARGET_FLAGS); do \
958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
960 if (cd $(TARGET_SUBDIR)/$$i; \
961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
963 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
966 then true; else exit 1; fi; \
970 .PHONY: do-maintainer-clean
972 @r=`${PWD}`; export r; \
973 s=`cd $(srcdir); ${PWD}`; export s; \
975 for i in $(SUBDIRS) -dummy-; do \
976 if [ -f ./$$i/Makefile ]; then \
979 for flag in $(EXTRA_GCC_FLAGS); do \
980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
984 for flag in $(EXTRA_HOST_FLAGS); do \
985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
992 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
995 then true; else exit 1; fi; \
998 # Break into two pieces
999 r=`${PWD}`; export r; \
1000 s=`cd $(srcdir); ${PWD}`; export s; \
1002 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1003 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1004 for flag in $(EXTRA_TARGET_FLAGS); do \
1005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1007 if (cd $(TARGET_SUBDIR)/$$i; \
1008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1010 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1012 maintainer-clean); \
1013 then true; else exit 1; fi; \
1019 @r=`${PWD}`; export r; \
1020 s=`cd $(srcdir); ${PWD}`; export s; \
1022 for i in $(SUBDIRS) -dummy-; do \
1023 if [ -f ./$$i/Makefile ]; then \
1026 for flag in $(EXTRA_GCC_FLAGS); do \
1027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1031 for flag in $(EXTRA_HOST_FLAGS); do \
1032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1039 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1042 then true; else exit 1; fi; \
1045 # Break into two pieces
1046 r=`${PWD}`; export r; \
1047 s=`cd $(srcdir); ${PWD}`; export s; \
1049 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1050 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1051 for flag in $(EXTRA_TARGET_FLAGS); do \
1052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1054 if (cd $(TARGET_SUBDIR)/$$i; \
1055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1057 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1060 then true; else exit 1; fi; \
1066 # Here are the targets which correspond to the do-X targets.
1068 .PHONY: info installcheck dvi install-info
1069 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1070 .PHONY: local-clean local-distclean local-maintainer-clean
1072 installcheck: do-installcheck
1075 # Make sure makeinfo is built before we do a `make info'.
1076 do-info: all-texinfo
1078 install-info: do-install-info dir.info
1079 s=`cd $(srcdir); ${PWD}`; export s; \
1080 if [ -f dir.info ] ; then \
1081 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1085 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1088 -rm -f Makefile config.status config.cache mh-frag mt-frag
1089 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1090 rm -rf $(TARGET_SUBDIR); \
1092 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1093 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1094 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1095 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1096 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1098 local-maintainer-clean:
1099 @echo "This command is intended for maintainers to use;"
1100 @echo "it deletes files that may require special tools to rebuild."
1102 clean: do-clean local-clean
1103 mostlyclean: do-mostlyclean local-clean
1104 distclean: do-distclean local-clean local-distclean
1105 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1106 maintainer-clean: local-distclean
1107 realclean: maintainer-clean
1109 # This rule is used to clean specific modules.
1110 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1111 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1112 @dir=`echo $@ | sed -e 's/clean-//'`; \
1113 if [ -f ./$${dir}/Makefile ] ; then \
1114 r=`${PWD}`; export r; \
1115 s=`cd $(srcdir); ${PWD}`; export s; \
1117 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1122 .PHONY: $(CLEAN_TARGET_MODULES)
1123 $(CLEAN_TARGET_MODULES):
1124 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1125 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1126 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1127 r=`${PWD}`; export r; \
1128 s=`cd $(srcdir); ${PWD}`; export s; \
1130 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1135 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1136 clean-target-libgcc:
1137 test ! -d gcc/libgcc || \
1138 (cd gcc/libgcc && find . -type d -print) | \
1139 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1144 .PHONY: check do-check
1146 $(MAKE) do-check NOTPARALLEL=parallel-ok
1148 # Only include modules actually being configured and built.
1149 do-check: @check_host_modules@ \
1150 @check_target_modules@
1152 # Automated reporting of test results.
1154 warning.log: build.log
1155 $(srcdir)/contrib/warn_summary build.log > $@
1158 if test x'$(BOOT_CFLAGS)' != x''; then \
1159 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1161 $(srcdir)/contrib/test_summary -t >$@
1163 echo If you really want to send e-mail, run ./$@ now
1165 mail-report-with-warnings.log: warning.log
1166 if test x'$(BOOT_CFLAGS)' != x''; then \
1167 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1169 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1171 echo If you really want to send e-mail, run ./$@ now
1173 # Installation targets.
1175 .PHONY: install uninstall
1176 install: installdirs @install_host_modules@ @install_target_modules@
1178 install-target: @install_target_modules@
1181 @echo "the uninstall target is not supported in this tree"
1184 install.all: install-no-fixedincludes
1185 @if [ -f ./gcc/Makefile ] ; then \
1186 r=`${PWD}` ; export r ; \
1189 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1194 # install-no-fixedincludes is used because Cygnus can not distribute
1195 # the fixed header files.
1196 .PHONY: install-no-fixedincludes
1197 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1198 @install_target_modules@ gcc-no-fixedincludes
1200 ### other supporting targets
1203 $(DESTDIR)$(prefix) \
1204 $(DESTDIR)$(exec_prefix)
1206 installdirs: mkinstalldirs
1207 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1209 dir.info: do-install-info
1210 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1211 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1212 mv -f dir.info.new dir.info ; \
1217 @echo "Building a full distribution of this tree isn't done"
1218 @echo "via 'make dist'. Check out the etc/ subdirectory"
1222 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1223 # ability to use several tags files at once, so there is probably no need
1224 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1225 # (if we felt like it) have this Makefile write a piece of elisp which
1226 # the user could load to tell emacs19 where all the TAGS files we just
1231 # --------------------------------------
1232 # Modules which run on the build machine
1233 # --------------------------------------
1235 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1236 maybe-configure-build-libiberty:
1237 configure-build-libiberty: $(BUILD_SUBDIR)/libiberty/Makefile
1238 $(BUILD_SUBDIR)/libiberty/Makefile: config.status
1239 @[ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
1240 r=`${PWD}`; export r; \
1241 s=`cd $(srcdir); ${PWD}`; export s; \
1242 AR="$(AR_FOR_BUILD)"; export AR; \
1243 AS="$(AS_FOR_BUILD)"; export AS; \
1244 CC="$(CC_FOR_BUILD)"; export CC; \
1245 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1246 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1247 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1248 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1249 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1250 LD="$(LD_FOR_BUILD)"; export LD; \
1251 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1252 NM="$(NM_FOR_BUILD)"; export NM; \
1253 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1254 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1255 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1256 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1258 /* | [A-Za-z]:[\\/]*) \
1259 topdir=$(srcdir) ;; \
1261 case "$(BUILD_SUBDIR)" in \
1262 .) topdir="../$(srcdir)" ;; \
1263 *) topdir="../../$(srcdir)" ;; \
1266 if [ "$(srcdir)" = "." ] ; then \
1267 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1268 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1269 if [ -f Makefile ]; then \
1270 if $(MAKE) distclean; then \
1284 srcdiroption="--srcdir=."; \
1287 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1288 libsrcdir="$$s/libiberty"; \
1290 rm -f no-such-file || : ; \
1291 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1292 $(BUILD_CONFIGARGS) $${srcdiroption} \
1293 --with-build-subdir="$(BUILD_SUBDIR)" \
1296 .PHONY: all-build-libiberty maybe-all-build-libiberty
1297 maybe-all-build-libiberty:
1298 all-build-libiberty: configure-build-libiberty
1299 @r=`${PWD}`; export r; \
1300 s=`cd $(srcdir); ${PWD}`; export s; \
1301 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1304 # --------------------------------------
1305 # Modules which run on the host machine
1306 # --------------------------------------
1308 .PHONY: configure-ash maybe-configure-ash
1309 maybe-configure-ash:
1310 configure-ash: ash/Makefile
1312 ash/Makefile: config.status
1313 @[ -d ash ] || mkdir ash; \
1314 r=`${PWD}`; export r; \
1315 s=`cd $(srcdir); ${PWD}`; export s; \
1316 CC="$(CC)"; export CC; \
1317 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1318 CXX="$(CXX)"; export CXX; \
1319 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1320 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1321 AR="$(AR)"; export AR; \
1322 AS="$(AS)"; export AS; \
1323 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1324 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1325 LD="$(LD)"; export LD; \
1326 NM="$(NM)"; export NM; \
1327 RANLIB="$(RANLIB)"; export RANLIB; \
1328 WINDRES="$(WINDRES)"; export WINDRES; \
1329 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1330 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1332 echo Configuring in ash; \
1336 srcdiroption="--srcdir=."; \
1338 /* | [A-Za-z]:[\\/]*) \
1339 srcdiroption="--srcdir=$(srcdir)/ash"; \
1340 libsrcdir="$$s/ash";; \
1342 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1343 libsrcdir="$$s/ash";; \
1345 $(SHELL) $${libsrcdir}/configure \
1346 $(HOST_CONFIGARGS) $${srcdiroption} \
1349 .PHONY: all-ash maybe-all-ash
1351 all-ash: configure-ash
1352 @r=`${PWD}`; export r; \
1353 s=`cd $(srcdir); ${PWD}`; export s; \
1355 (cd ash; $(MAKE) $(FLAGS_TO_PASS) all)
1360 @r=`${PWD}`; export r; \
1361 s=`cd $(srcdir); ${PWD}`; export s; \
1363 (cd ash; $(MAKE) $(FLAGS_TO_PASS) check)
1367 .PHONY: install-ash maybe-install-ash
1369 install-ash: installdirs
1370 @r=`${PWD}`; export r; \
1371 s=`cd $(srcdir); ${PWD}`; export s; \
1373 (cd ash; $(MAKE) $(FLAGS_TO_PASS) install)
1376 .PHONY: configure-autoconf maybe-configure-autoconf
1377 maybe-configure-autoconf:
1378 configure-autoconf: autoconf/Makefile
1380 autoconf/Makefile: config.status
1381 @[ -d autoconf ] || mkdir autoconf; \
1382 r=`${PWD}`; export r; \
1383 s=`cd $(srcdir); ${PWD}`; export s; \
1384 CC="$(CC)"; export CC; \
1385 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1386 CXX="$(CXX)"; export CXX; \
1387 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1388 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1389 AR="$(AR)"; export AR; \
1390 AS="$(AS)"; export AS; \
1391 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1392 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1393 LD="$(LD)"; export LD; \
1394 NM="$(NM)"; export NM; \
1395 RANLIB="$(RANLIB)"; export RANLIB; \
1396 WINDRES="$(WINDRES)"; export WINDRES; \
1397 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1398 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1400 echo Configuring in autoconf; \
1401 cd autoconf || exit 1; \
1404 srcdiroption="--srcdir=."; \
1406 /* | [A-Za-z]:[\\/]*) \
1407 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1408 libsrcdir="$$s/autoconf";; \
1410 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1411 libsrcdir="$$s/autoconf";; \
1413 $(SHELL) $${libsrcdir}/configure \
1414 $(HOST_CONFIGARGS) $${srcdiroption} \
1417 .PHONY: all-autoconf maybe-all-autoconf
1419 all-autoconf: configure-autoconf
1420 @r=`${PWD}`; export r; \
1421 s=`cd $(srcdir); ${PWD}`; export s; \
1423 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) all)
1426 .PHONY: check-autoconf
1428 @r=`${PWD}`; export r; \
1429 s=`cd $(srcdir); ${PWD}`; export s; \
1431 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) check)
1435 .PHONY: install-autoconf maybe-install-autoconf
1436 maybe-install-autoconf:
1437 install-autoconf: installdirs
1438 @r=`${PWD}`; export r; \
1439 s=`cd $(srcdir); ${PWD}`; export s; \
1441 (cd autoconf; $(MAKE) $(FLAGS_TO_PASS) install)
1444 .PHONY: configure-automake maybe-configure-automake
1445 maybe-configure-automake:
1446 configure-automake: automake/Makefile
1448 automake/Makefile: config.status
1449 @[ -d automake ] || mkdir automake; \
1450 r=`${PWD}`; export r; \
1451 s=`cd $(srcdir); ${PWD}`; export s; \
1452 CC="$(CC)"; export CC; \
1453 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1454 CXX="$(CXX)"; export CXX; \
1455 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1456 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1457 AR="$(AR)"; export AR; \
1458 AS="$(AS)"; export AS; \
1459 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1460 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1461 LD="$(LD)"; export LD; \
1462 NM="$(NM)"; export NM; \
1463 RANLIB="$(RANLIB)"; export RANLIB; \
1464 WINDRES="$(WINDRES)"; export WINDRES; \
1465 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1466 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1468 echo Configuring in automake; \
1469 cd automake || exit 1; \
1472 srcdiroption="--srcdir=."; \
1474 /* | [A-Za-z]:[\\/]*) \
1475 srcdiroption="--srcdir=$(srcdir)/automake"; \
1476 libsrcdir="$$s/automake";; \
1478 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1479 libsrcdir="$$s/automake";; \
1481 $(SHELL) $${libsrcdir}/configure \
1482 $(HOST_CONFIGARGS) $${srcdiroption} \
1485 .PHONY: all-automake maybe-all-automake
1487 all-automake: configure-automake
1488 @r=`${PWD}`; export r; \
1489 s=`cd $(srcdir); ${PWD}`; export s; \
1491 (cd automake; $(MAKE) $(FLAGS_TO_PASS) all)
1494 .PHONY: check-automake
1496 @r=`${PWD}`; export r; \
1497 s=`cd $(srcdir); ${PWD}`; export s; \
1499 (cd automake; $(MAKE) $(FLAGS_TO_PASS) check)
1503 .PHONY: install-automake maybe-install-automake
1504 maybe-install-automake:
1505 install-automake: installdirs
1506 @r=`${PWD}`; export r; \
1507 s=`cd $(srcdir); ${PWD}`; export s; \
1509 (cd automake; $(MAKE) $(FLAGS_TO_PASS) install)
1512 .PHONY: configure-bash maybe-configure-bash
1513 maybe-configure-bash:
1514 configure-bash: bash/Makefile
1516 bash/Makefile: config.status
1517 @[ -d bash ] || mkdir bash; \
1518 r=`${PWD}`; export r; \
1519 s=`cd $(srcdir); ${PWD}`; export s; \
1520 CC="$(CC)"; export CC; \
1521 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1522 CXX="$(CXX)"; export CXX; \
1523 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1524 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1525 AR="$(AR)"; export AR; \
1526 AS="$(AS)"; export AS; \
1527 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1528 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1529 LD="$(LD)"; export LD; \
1530 NM="$(NM)"; export NM; \
1531 RANLIB="$(RANLIB)"; export RANLIB; \
1532 WINDRES="$(WINDRES)"; export WINDRES; \
1533 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1534 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1536 echo Configuring in bash; \
1537 cd bash || exit 1; \
1540 srcdiroption="--srcdir=."; \
1542 /* | [A-Za-z]:[\\/]*) \
1543 srcdiroption="--srcdir=$(srcdir)/bash"; \
1544 libsrcdir="$$s/bash";; \
1546 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1547 libsrcdir="$$s/bash";; \
1549 $(SHELL) $${libsrcdir}/configure \
1550 $(HOST_CONFIGARGS) $${srcdiroption} \
1553 .PHONY: all-bash maybe-all-bash
1555 all-bash: configure-bash
1556 @r=`${PWD}`; export r; \
1557 s=`cd $(srcdir); ${PWD}`; export s; \
1559 (cd bash; $(MAKE) $(FLAGS_TO_PASS) all)
1564 @r=`${PWD}`; export r; \
1565 s=`cd $(srcdir); ${PWD}`; export s; \
1567 (cd bash; $(MAKE) $(FLAGS_TO_PASS) check)
1571 .PHONY: install-bash maybe-install-bash
1573 install-bash: installdirs
1574 @r=`${PWD}`; export r; \
1575 s=`cd $(srcdir); ${PWD}`; export s; \
1577 (cd bash; $(MAKE) $(FLAGS_TO_PASS) install)
1580 .PHONY: configure-bfd maybe-configure-bfd
1581 maybe-configure-bfd:
1582 configure-bfd: bfd/Makefile
1584 bfd/Makefile: config.status
1585 @[ -d bfd ] || mkdir bfd; \
1586 r=`${PWD}`; export r; \
1587 s=`cd $(srcdir); ${PWD}`; export s; \
1588 CC="$(CC)"; export CC; \
1589 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1590 CXX="$(CXX)"; export CXX; \
1591 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1592 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1593 AR="$(AR)"; export AR; \
1594 AS="$(AS)"; export AS; \
1595 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1596 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1597 LD="$(LD)"; export LD; \
1598 NM="$(NM)"; export NM; \
1599 RANLIB="$(RANLIB)"; export RANLIB; \
1600 WINDRES="$(WINDRES)"; export WINDRES; \
1601 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1602 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1604 echo Configuring in bfd; \
1608 srcdiroption="--srcdir=."; \
1610 /* | [A-Za-z]:[\\/]*) \
1611 srcdiroption="--srcdir=$(srcdir)/bfd"; \
1612 libsrcdir="$$s/bfd";; \
1614 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1615 libsrcdir="$$s/bfd";; \
1617 $(SHELL) $${libsrcdir}/configure \
1618 $(HOST_CONFIGARGS) $${srcdiroption} \
1621 .PHONY: all-bfd maybe-all-bfd
1623 all-bfd: configure-bfd
1624 @r=`${PWD}`; export r; \
1625 s=`cd $(srcdir); ${PWD}`; export s; \
1627 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) all)
1632 @r=`${PWD}`; export r; \
1633 s=`cd $(srcdir); ${PWD}`; export s; \
1635 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) check)
1639 .PHONY: install-bfd maybe-install-bfd
1641 install-bfd: installdirs
1642 @r=`${PWD}`; export r; \
1643 s=`cd $(srcdir); ${PWD}`; export s; \
1645 (cd bfd; $(MAKE) $(FLAGS_TO_PASS) install)
1648 .PHONY: configure-opcodes maybe-configure-opcodes
1649 maybe-configure-opcodes:
1650 configure-opcodes: opcodes/Makefile
1652 opcodes/Makefile: config.status
1653 @[ -d opcodes ] || mkdir opcodes; \
1654 r=`${PWD}`; export r; \
1655 s=`cd $(srcdir); ${PWD}`; export s; \
1656 CC="$(CC)"; export CC; \
1657 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1658 CXX="$(CXX)"; export CXX; \
1659 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1660 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1661 AR="$(AR)"; export AR; \
1662 AS="$(AS)"; export AS; \
1663 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1664 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1665 LD="$(LD)"; export LD; \
1666 NM="$(NM)"; export NM; \
1667 RANLIB="$(RANLIB)"; export RANLIB; \
1668 WINDRES="$(WINDRES)"; export WINDRES; \
1669 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1670 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1672 echo Configuring in opcodes; \
1673 cd opcodes || exit 1; \
1676 srcdiroption="--srcdir=."; \
1678 /* | [A-Za-z]:[\\/]*) \
1679 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1680 libsrcdir="$$s/opcodes";; \
1682 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1683 libsrcdir="$$s/opcodes";; \
1685 $(SHELL) $${libsrcdir}/configure \
1686 $(HOST_CONFIGARGS) $${srcdiroption} \
1689 .PHONY: all-opcodes maybe-all-opcodes
1691 all-opcodes: configure-opcodes
1692 @r=`${PWD}`; export r; \
1693 s=`cd $(srcdir); ${PWD}`; export s; \
1695 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) all)
1698 .PHONY: check-opcodes
1700 @r=`${PWD}`; export r; \
1701 s=`cd $(srcdir); ${PWD}`; export s; \
1703 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) check)
1707 .PHONY: install-opcodes maybe-install-opcodes
1708 maybe-install-opcodes:
1709 install-opcodes: installdirs
1710 @r=`${PWD}`; export r; \
1711 s=`cd $(srcdir); ${PWD}`; export s; \
1713 (cd opcodes; $(MAKE) $(FLAGS_TO_PASS) install)
1716 .PHONY: configure-binutils maybe-configure-binutils
1717 maybe-configure-binutils:
1718 configure-binutils: binutils/Makefile
1720 binutils/Makefile: config.status
1721 @[ -d binutils ] || mkdir binutils; \
1722 r=`${PWD}`; export r; \
1723 s=`cd $(srcdir); ${PWD}`; export s; \
1724 CC="$(CC)"; export CC; \
1725 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1726 CXX="$(CXX)"; export CXX; \
1727 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1728 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1729 AR="$(AR)"; export AR; \
1730 AS="$(AS)"; export AS; \
1731 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1732 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1733 LD="$(LD)"; export LD; \
1734 NM="$(NM)"; export NM; \
1735 RANLIB="$(RANLIB)"; export RANLIB; \
1736 WINDRES="$(WINDRES)"; export WINDRES; \
1737 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1738 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1740 echo Configuring in binutils; \
1741 cd binutils || exit 1; \
1744 srcdiroption="--srcdir=."; \
1746 /* | [A-Za-z]:[\\/]*) \
1747 srcdiroption="--srcdir=$(srcdir)/binutils"; \
1748 libsrcdir="$$s/binutils";; \
1750 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1751 libsrcdir="$$s/binutils";; \
1753 $(SHELL) $${libsrcdir}/configure \
1754 $(HOST_CONFIGARGS) $${srcdiroption} \
1757 .PHONY: all-binutils maybe-all-binutils
1759 all-binutils: configure-binutils
1760 @r=`${PWD}`; export r; \
1761 s=`cd $(srcdir); ${PWD}`; export s; \
1763 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) all)
1766 .PHONY: check-binutils
1768 @r=`${PWD}`; export r; \
1769 s=`cd $(srcdir); ${PWD}`; export s; \
1771 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) check)
1775 .PHONY: install-binutils maybe-install-binutils
1776 maybe-install-binutils:
1777 install-binutils: installdirs
1778 @r=`${PWD}`; export r; \
1779 s=`cd $(srcdir); ${PWD}`; export s; \
1781 (cd binutils; $(MAKE) $(FLAGS_TO_PASS) install)
1784 .PHONY: configure-bison maybe-configure-bison
1785 maybe-configure-bison:
1786 configure-bison: bison/Makefile
1788 bison/Makefile: config.status
1789 @[ -d bison ] || mkdir bison; \
1790 r=`${PWD}`; export r; \
1791 s=`cd $(srcdir); ${PWD}`; export s; \
1792 CC="$(CC)"; export CC; \
1793 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1794 CXX="$(CXX)"; export CXX; \
1795 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1796 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1797 AR="$(AR)"; export AR; \
1798 AS="$(AS)"; export AS; \
1799 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1800 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1801 LD="$(LD)"; export LD; \
1802 NM="$(NM)"; export NM; \
1803 RANLIB="$(RANLIB)"; export RANLIB; \
1804 WINDRES="$(WINDRES)"; export WINDRES; \
1805 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1806 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1808 echo Configuring in bison; \
1809 cd bison || exit 1; \
1812 srcdiroption="--srcdir=."; \
1814 /* | [A-Za-z]:[\\/]*) \
1815 srcdiroption="--srcdir=$(srcdir)/bison"; \
1816 libsrcdir="$$s/bison";; \
1818 srcdiroption="--srcdir=../$(srcdir)/bison"; \
1819 libsrcdir="$$s/bison";; \
1821 $(SHELL) $${libsrcdir}/configure \
1822 $(HOST_CONFIGARGS) $${srcdiroption} \
1825 .PHONY: all-bison maybe-all-bison
1827 all-bison: configure-bison
1828 @r=`${PWD}`; export r; \
1829 s=`cd $(srcdir); ${PWD}`; export s; \
1831 (cd bison; $(MAKE) $(FLAGS_TO_PASS) all)
1835 # This module is only tested in a native toolchain.
1837 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1838 r=`${PWD}`; export r; \
1839 s=`cd $(srcdir); ${PWD}`; export s; \
1841 (cd bison; $(MAKE) $(FLAGS_TO_PASS) check); \
1846 .PHONY: install-bison maybe-install-bison
1847 maybe-install-bison:
1848 install-bison: installdirs
1849 @r=`${PWD}`; export r; \
1850 s=`cd $(srcdir); ${PWD}`; export s; \
1852 (cd bison; $(MAKE) $(FLAGS_TO_PASS) install)
1855 .PHONY: configure-byacc maybe-configure-byacc
1856 maybe-configure-byacc:
1857 configure-byacc: byacc/Makefile
1859 byacc/Makefile: config.status
1860 @[ -d byacc ] || mkdir byacc; \
1861 r=`${PWD}`; export r; \
1862 s=`cd $(srcdir); ${PWD}`; export s; \
1863 CC="$(CC)"; export CC; \
1864 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1865 CXX="$(CXX)"; export CXX; \
1866 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1867 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1868 AR="$(AR)"; export AR; \
1869 AS="$(AS)"; export AS; \
1870 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1871 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1872 LD="$(LD)"; export LD; \
1873 NM="$(NM)"; export NM; \
1874 RANLIB="$(RANLIB)"; export RANLIB; \
1875 WINDRES="$(WINDRES)"; export WINDRES; \
1876 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1877 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1879 echo Configuring in byacc; \
1880 cd byacc || exit 1; \
1883 srcdiroption="--srcdir=."; \
1885 /* | [A-Za-z]:[\\/]*) \
1886 srcdiroption="--srcdir=$(srcdir)/byacc"; \
1887 libsrcdir="$$s/byacc";; \
1889 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1890 libsrcdir="$$s/byacc";; \
1892 $(SHELL) $${libsrcdir}/configure \
1893 $(HOST_CONFIGARGS) $${srcdiroption} \
1896 .PHONY: all-byacc maybe-all-byacc
1898 all-byacc: configure-byacc
1899 @r=`${PWD}`; export r; \
1900 s=`cd $(srcdir); ${PWD}`; export s; \
1902 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) all)
1906 # This module is only tested in a native toolchain.
1908 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1909 r=`${PWD}`; export r; \
1910 s=`cd $(srcdir); ${PWD}`; export s; \
1912 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) check); \
1917 .PHONY: install-byacc maybe-install-byacc
1918 maybe-install-byacc:
1919 install-byacc: installdirs
1920 @r=`${PWD}`; export r; \
1921 s=`cd $(srcdir); ${PWD}`; export s; \
1923 (cd byacc; $(MAKE) $(FLAGS_TO_PASS) install)
1926 .PHONY: configure-bzip2 maybe-configure-bzip2
1927 maybe-configure-bzip2:
1928 configure-bzip2: bzip2/Makefile
1930 bzip2/Makefile: config.status
1931 @[ -d bzip2 ] || mkdir bzip2; \
1932 r=`${PWD}`; export r; \
1933 s=`cd $(srcdir); ${PWD}`; export s; \
1934 CC="$(CC)"; export CC; \
1935 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1936 CXX="$(CXX)"; export CXX; \
1937 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1938 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1939 AR="$(AR)"; export AR; \
1940 AS="$(AS)"; export AS; \
1941 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1942 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1943 LD="$(LD)"; export LD; \
1944 NM="$(NM)"; export NM; \
1945 RANLIB="$(RANLIB)"; export RANLIB; \
1946 WINDRES="$(WINDRES)"; export WINDRES; \
1947 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1948 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1950 echo Configuring in bzip2; \
1951 cd bzip2 || exit 1; \
1954 srcdiroption="--srcdir=."; \
1956 /* | [A-Za-z]:[\\/]*) \
1957 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1958 libsrcdir="$$s/bzip2";; \
1960 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1961 libsrcdir="$$s/bzip2";; \
1963 $(SHELL) $${libsrcdir}/configure \
1964 $(HOST_CONFIGARGS) $${srcdiroption} \
1967 .PHONY: all-bzip2 maybe-all-bzip2
1969 all-bzip2: configure-bzip2
1970 @r=`${PWD}`; export r; \
1971 s=`cd $(srcdir); ${PWD}`; export s; \
1973 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) all)
1978 @r=`${PWD}`; export r; \
1979 s=`cd $(srcdir); ${PWD}`; export s; \
1981 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) check)
1985 .PHONY: install-bzip2 maybe-install-bzip2
1986 maybe-install-bzip2:
1987 install-bzip2: installdirs
1988 @r=`${PWD}`; export r; \
1989 s=`cd $(srcdir); ${PWD}`; export s; \
1991 (cd bzip2; $(MAKE) $(FLAGS_TO_PASS) install)
1994 .PHONY: configure-db maybe-configure-db
1996 configure-db: db/Makefile
1998 db/Makefile: config.status
1999 @[ -d db ] || mkdir db; \
2000 r=`${PWD}`; export r; \
2001 s=`cd $(srcdir); ${PWD}`; export s; \
2002 CC="$(CC)"; export CC; \
2003 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2004 CXX="$(CXX)"; export CXX; \
2005 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2006 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2007 AR="$(AR)"; export AR; \
2008 AS="$(AS)"; export AS; \
2009 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2010 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2011 LD="$(LD)"; export LD; \
2012 NM="$(NM)"; export NM; \
2013 RANLIB="$(RANLIB)"; export RANLIB; \
2014 WINDRES="$(WINDRES)"; export WINDRES; \
2015 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2016 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2018 echo Configuring in db; \
2022 srcdiroption="--srcdir=."; \
2024 /* | [A-Za-z]:[\\/]*) \
2025 srcdiroption="--srcdir=$(srcdir)/db"; \
2026 libsrcdir="$$s/db";; \
2028 srcdiroption="--srcdir=../$(srcdir)/db"; \
2029 libsrcdir="$$s/db";; \
2031 $(SHELL) $${libsrcdir}/configure \
2032 $(HOST_CONFIGARGS) $${srcdiroption} \
2035 .PHONY: all-db maybe-all-db
2037 all-db: configure-db
2038 @r=`${PWD}`; export r; \
2039 s=`cd $(srcdir); ${PWD}`; export s; \
2041 (cd db; $(MAKE) $(FLAGS_TO_PASS) all)
2046 @r=`${PWD}`; export r; \
2047 s=`cd $(srcdir); ${PWD}`; export s; \
2049 (cd db; $(MAKE) $(FLAGS_TO_PASS) check)
2053 .PHONY: install-db maybe-install-db
2055 install-db: installdirs
2056 @r=`${PWD}`; export r; \
2057 s=`cd $(srcdir); ${PWD}`; export s; \
2059 (cd db; $(MAKE) $(FLAGS_TO_PASS) install)
2062 .PHONY: configure-dejagnu maybe-configure-dejagnu
2063 maybe-configure-dejagnu:
2064 configure-dejagnu: dejagnu/Makefile
2066 dejagnu/Makefile: config.status
2067 @[ -d dejagnu ] || mkdir dejagnu; \
2068 r=`${PWD}`; export r; \
2069 s=`cd $(srcdir); ${PWD}`; export s; \
2070 CC="$(CC)"; export CC; \
2071 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2072 CXX="$(CXX)"; export CXX; \
2073 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2074 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2075 AR="$(AR)"; export AR; \
2076 AS="$(AS)"; export AS; \
2077 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2078 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2079 LD="$(LD)"; export LD; \
2080 NM="$(NM)"; export NM; \
2081 RANLIB="$(RANLIB)"; export RANLIB; \
2082 WINDRES="$(WINDRES)"; export WINDRES; \
2083 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2084 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2086 echo Configuring in dejagnu; \
2087 cd dejagnu || exit 1; \
2090 srcdiroption="--srcdir=."; \
2092 /* | [A-Za-z]:[\\/]*) \
2093 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2094 libsrcdir="$$s/dejagnu";; \
2096 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2097 libsrcdir="$$s/dejagnu";; \
2099 $(SHELL) $${libsrcdir}/configure \
2100 $(HOST_CONFIGARGS) $${srcdiroption} \
2103 .PHONY: all-dejagnu maybe-all-dejagnu
2105 all-dejagnu: configure-dejagnu
2106 @r=`${PWD}`; export r; \
2107 s=`cd $(srcdir); ${PWD}`; export s; \
2109 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) all)
2112 .PHONY: check-dejagnu
2114 @r=`${PWD}`; export r; \
2115 s=`cd $(srcdir); ${PWD}`; export s; \
2117 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) check)
2121 .PHONY: install-dejagnu maybe-install-dejagnu
2122 maybe-install-dejagnu:
2123 install-dejagnu: installdirs
2124 @r=`${PWD}`; export r; \
2125 s=`cd $(srcdir); ${PWD}`; export s; \
2127 (cd dejagnu; $(MAKE) $(FLAGS_TO_PASS) install)
2130 .PHONY: configure-diff maybe-configure-diff
2131 maybe-configure-diff:
2132 configure-diff: diff/Makefile
2134 diff/Makefile: config.status
2135 @[ -d diff ] || mkdir diff; \
2136 r=`${PWD}`; export r; \
2137 s=`cd $(srcdir); ${PWD}`; export s; \
2138 CC="$(CC)"; export CC; \
2139 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2140 CXX="$(CXX)"; export CXX; \
2141 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2142 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2143 AR="$(AR)"; export AR; \
2144 AS="$(AS)"; export AS; \
2145 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2146 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2147 LD="$(LD)"; export LD; \
2148 NM="$(NM)"; export NM; \
2149 RANLIB="$(RANLIB)"; export RANLIB; \
2150 WINDRES="$(WINDRES)"; export WINDRES; \
2151 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2152 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2154 echo Configuring in diff; \
2155 cd diff || exit 1; \
2158 srcdiroption="--srcdir=."; \
2160 /* | [A-Za-z]:[\\/]*) \
2161 srcdiroption="--srcdir=$(srcdir)/diff"; \
2162 libsrcdir="$$s/diff";; \
2164 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2165 libsrcdir="$$s/diff";; \
2167 $(SHELL) $${libsrcdir}/configure \
2168 $(HOST_CONFIGARGS) $${srcdiroption} \
2171 .PHONY: all-diff maybe-all-diff
2173 all-diff: configure-diff
2174 @r=`${PWD}`; export r; \
2175 s=`cd $(srcdir); ${PWD}`; export s; \
2177 (cd diff; $(MAKE) $(FLAGS_TO_PASS) all)
2182 @r=`${PWD}`; export r; \
2183 s=`cd $(srcdir); ${PWD}`; export s; \
2185 (cd diff; $(MAKE) $(FLAGS_TO_PASS) check)
2189 .PHONY: install-diff maybe-install-diff
2191 install-diff: installdirs
2192 @r=`${PWD}`; export r; \
2193 s=`cd $(srcdir); ${PWD}`; export s; \
2195 (cd diff; $(MAKE) $(FLAGS_TO_PASS) install)
2198 .PHONY: configure-dosutils maybe-configure-dosutils
2199 maybe-configure-dosutils:
2200 configure-dosutils: dosutils/Makefile
2202 dosutils/Makefile: config.status
2203 @[ -d dosutils ] || mkdir dosutils; \
2204 r=`${PWD}`; export r; \
2205 s=`cd $(srcdir); ${PWD}`; export s; \
2206 CC="$(CC)"; export CC; \
2207 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2208 CXX="$(CXX)"; export CXX; \
2209 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2210 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2211 AR="$(AR)"; export AR; \
2212 AS="$(AS)"; export AS; \
2213 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2214 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2215 LD="$(LD)"; export LD; \
2216 NM="$(NM)"; export NM; \
2217 RANLIB="$(RANLIB)"; export RANLIB; \
2218 WINDRES="$(WINDRES)"; export WINDRES; \
2219 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2220 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2222 echo Configuring in dosutils; \
2223 cd dosutils || exit 1; \
2226 srcdiroption="--srcdir=."; \
2228 /* | [A-Za-z]:[\\/]*) \
2229 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2230 libsrcdir="$$s/dosutils";; \
2232 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2233 libsrcdir="$$s/dosutils";; \
2235 $(SHELL) $${libsrcdir}/configure \
2236 $(HOST_CONFIGARGS) $${srcdiroption} \
2239 .PHONY: all-dosutils maybe-all-dosutils
2241 all-dosutils: configure-dosutils
2242 @r=`${PWD}`; export r; \
2243 s=`cd $(srcdir); ${PWD}`; export s; \
2245 (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) all)
2248 .PHONY: check-dosutils
2253 .PHONY: install-dosutils maybe-install-dosutils
2254 maybe-install-dosutils:
2255 install-dosutils: installdirs
2256 @r=`${PWD}`; export r; \
2257 s=`cd $(srcdir); ${PWD}`; export s; \
2259 (cd dosutils; $(MAKE) $(FLAGS_TO_PASS) install)
2262 .PHONY: configure-etc maybe-configure-etc
2263 maybe-configure-etc:
2264 configure-etc: etc/Makefile
2266 etc/Makefile: config.status
2267 @[ -d etc ] || mkdir etc; \
2268 r=`${PWD}`; export r; \
2269 s=`cd $(srcdir); ${PWD}`; export s; \
2270 CC="$(CC)"; export CC; \
2271 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2272 CXX="$(CXX)"; export CXX; \
2273 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2274 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2275 AR="$(AR)"; export AR; \
2276 AS="$(AS)"; export AS; \
2277 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2278 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2279 LD="$(LD)"; export LD; \
2280 NM="$(NM)"; export NM; \
2281 RANLIB="$(RANLIB)"; export RANLIB; \
2282 WINDRES="$(WINDRES)"; export WINDRES; \
2283 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2284 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2286 echo Configuring in etc; \
2290 srcdiroption="--srcdir=."; \
2292 /* | [A-Za-z]:[\\/]*) \
2293 srcdiroption="--srcdir=$(srcdir)/etc"; \
2294 libsrcdir="$$s/etc";; \
2296 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2297 libsrcdir="$$s/etc";; \
2299 $(SHELL) $${libsrcdir}/configure \
2300 $(HOST_CONFIGARGS) $${srcdiroption} \
2303 .PHONY: all-etc maybe-all-etc
2305 all-etc: configure-etc
2306 @r=`${PWD}`; export r; \
2307 s=`cd $(srcdir); ${PWD}`; export s; \
2309 (cd etc; $(MAKE) $(FLAGS_TO_PASS) all)
2314 @r=`${PWD}`; export r; \
2315 s=`cd $(srcdir); ${PWD}`; export s; \
2317 (cd etc; $(MAKE) $(FLAGS_TO_PASS) check)
2321 .PHONY: install-etc maybe-install-etc
2323 install-etc: installdirs
2324 @r=`${PWD}`; export r; \
2325 s=`cd $(srcdir); ${PWD}`; export s; \
2327 (cd etc; $(MAKE) $(FLAGS_TO_PASS) install)
2330 .PHONY: configure-fastjar maybe-configure-fastjar
2331 maybe-configure-fastjar:
2332 configure-fastjar: fastjar/Makefile
2334 fastjar/Makefile: config.status
2335 @[ -d fastjar ] || mkdir fastjar; \
2336 r=`${PWD}`; export r; \
2337 s=`cd $(srcdir); ${PWD}`; export s; \
2338 CC="$(CC)"; export CC; \
2339 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2340 CXX="$(CXX)"; export CXX; \
2341 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2342 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2343 AR="$(AR)"; export AR; \
2344 AS="$(AS)"; export AS; \
2345 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2346 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2347 LD="$(LD)"; export LD; \
2348 NM="$(NM)"; export NM; \
2349 RANLIB="$(RANLIB)"; export RANLIB; \
2350 WINDRES="$(WINDRES)"; export WINDRES; \
2351 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2352 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2354 echo Configuring in fastjar; \
2355 cd fastjar || exit 1; \
2358 srcdiroption="--srcdir=."; \
2360 /* | [A-Za-z]:[\\/]*) \
2361 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2362 libsrcdir="$$s/fastjar";; \
2364 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2365 libsrcdir="$$s/fastjar";; \
2367 $(SHELL) $${libsrcdir}/configure \
2368 $(HOST_CONFIGARGS) $${srcdiroption} \
2371 .PHONY: all-fastjar maybe-all-fastjar
2373 all-fastjar: configure-fastjar
2374 @r=`${PWD}`; export r; \
2375 s=`cd $(srcdir); ${PWD}`; export s; \
2377 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) all)
2380 .PHONY: check-fastjar
2381 # This module is only tested in a native toolchain.
2383 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2384 r=`${PWD}`; export r; \
2385 s=`cd $(srcdir); ${PWD}`; export s; \
2387 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) check); \
2392 .PHONY: install-fastjar maybe-install-fastjar
2393 maybe-install-fastjar:
2394 install-fastjar: installdirs
2395 @r=`${PWD}`; export r; \
2396 s=`cd $(srcdir); ${PWD}`; export s; \
2398 (cd fastjar; $(MAKE) $(FLAGS_TO_PASS) install)
2401 .PHONY: configure-fileutils maybe-configure-fileutils
2402 maybe-configure-fileutils:
2403 configure-fileutils: fileutils/Makefile
2405 fileutils/Makefile: config.status
2406 @[ -d fileutils ] || mkdir fileutils; \
2407 r=`${PWD}`; export r; \
2408 s=`cd $(srcdir); ${PWD}`; export s; \
2409 CC="$(CC)"; export CC; \
2410 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2411 CXX="$(CXX)"; export CXX; \
2412 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2413 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2414 AR="$(AR)"; export AR; \
2415 AS="$(AS)"; export AS; \
2416 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2417 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2418 LD="$(LD)"; export LD; \
2419 NM="$(NM)"; export NM; \
2420 RANLIB="$(RANLIB)"; export RANLIB; \
2421 WINDRES="$(WINDRES)"; export WINDRES; \
2422 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2423 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2425 echo Configuring in fileutils; \
2426 cd fileutils || exit 1; \
2429 srcdiroption="--srcdir=."; \
2431 /* | [A-Za-z]:[\\/]*) \
2432 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2433 libsrcdir="$$s/fileutils";; \
2435 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2436 libsrcdir="$$s/fileutils";; \
2438 $(SHELL) $${libsrcdir}/configure \
2439 $(HOST_CONFIGARGS) $${srcdiroption} \
2442 .PHONY: all-fileutils maybe-all-fileutils
2443 maybe-all-fileutils:
2444 all-fileutils: configure-fileutils
2445 @r=`${PWD}`; export r; \
2446 s=`cd $(srcdir); ${PWD}`; export s; \
2448 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) all)
2451 .PHONY: check-fileutils
2453 @r=`${PWD}`; export r; \
2454 s=`cd $(srcdir); ${PWD}`; export s; \
2456 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) check)
2460 .PHONY: install-fileutils maybe-install-fileutils
2461 maybe-install-fileutils:
2462 install-fileutils: installdirs
2463 @r=`${PWD}`; export r; \
2464 s=`cd $(srcdir); ${PWD}`; export s; \
2466 (cd fileutils; $(MAKE) $(FLAGS_TO_PASS) install)
2469 .PHONY: configure-findutils maybe-configure-findutils
2470 maybe-configure-findutils:
2471 configure-findutils: findutils/Makefile
2473 findutils/Makefile: config.status
2474 @[ -d findutils ] || mkdir findutils; \
2475 r=`${PWD}`; export r; \
2476 s=`cd $(srcdir); ${PWD}`; export s; \
2477 CC="$(CC)"; export CC; \
2478 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2479 CXX="$(CXX)"; export CXX; \
2480 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2481 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2482 AR="$(AR)"; export AR; \
2483 AS="$(AS)"; export AS; \
2484 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2485 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2486 LD="$(LD)"; export LD; \
2487 NM="$(NM)"; export NM; \
2488 RANLIB="$(RANLIB)"; export RANLIB; \
2489 WINDRES="$(WINDRES)"; export WINDRES; \
2490 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2491 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2493 echo Configuring in findutils; \
2494 cd findutils || exit 1; \
2497 srcdiroption="--srcdir=."; \
2499 /* | [A-Za-z]:[\\/]*) \
2500 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2501 libsrcdir="$$s/findutils";; \
2503 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2504 libsrcdir="$$s/findutils";; \
2506 $(SHELL) $${libsrcdir}/configure \
2507 $(HOST_CONFIGARGS) $${srcdiroption} \
2510 .PHONY: all-findutils maybe-all-findutils
2511 maybe-all-findutils:
2512 all-findutils: configure-findutils
2513 @r=`${PWD}`; export r; \
2514 s=`cd $(srcdir); ${PWD}`; export s; \
2516 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) all)
2519 .PHONY: check-findutils
2521 @r=`${PWD}`; export r; \
2522 s=`cd $(srcdir); ${PWD}`; export s; \
2524 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) check)
2528 .PHONY: install-findutils maybe-install-findutils
2529 maybe-install-findutils:
2530 install-findutils: installdirs
2531 @r=`${PWD}`; export r; \
2532 s=`cd $(srcdir); ${PWD}`; export s; \
2534 (cd findutils; $(MAKE) $(FLAGS_TO_PASS) install)
2537 .PHONY: configure-find maybe-configure-find
2538 maybe-configure-find:
2539 configure-find: find/Makefile
2541 find/Makefile: config.status
2542 @[ -d find ] || mkdir find; \
2543 r=`${PWD}`; export r; \
2544 s=`cd $(srcdir); ${PWD}`; export s; \
2545 CC="$(CC)"; export CC; \
2546 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2547 CXX="$(CXX)"; export CXX; \
2548 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2549 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2550 AR="$(AR)"; export AR; \
2551 AS="$(AS)"; export AS; \
2552 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2553 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2554 LD="$(LD)"; export LD; \
2555 NM="$(NM)"; export NM; \
2556 RANLIB="$(RANLIB)"; export RANLIB; \
2557 WINDRES="$(WINDRES)"; export WINDRES; \
2558 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2559 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2561 echo Configuring in find; \
2562 cd find || exit 1; \
2565 srcdiroption="--srcdir=."; \
2567 /* | [A-Za-z]:[\\/]*) \
2568 srcdiroption="--srcdir=$(srcdir)/find"; \
2569 libsrcdir="$$s/find";; \
2571 srcdiroption="--srcdir=../$(srcdir)/find"; \
2572 libsrcdir="$$s/find";; \
2574 $(SHELL) $${libsrcdir}/configure \
2575 $(HOST_CONFIGARGS) $${srcdiroption} \
2578 .PHONY: all-find maybe-all-find
2580 all-find: configure-find
2581 @r=`${PWD}`; export r; \
2582 s=`cd $(srcdir); ${PWD}`; export s; \
2584 (cd find; $(MAKE) $(FLAGS_TO_PASS) all)
2589 @r=`${PWD}`; export r; \
2590 s=`cd $(srcdir); ${PWD}`; export s; \
2592 (cd find; $(MAKE) $(FLAGS_TO_PASS) check)
2596 .PHONY: install-find maybe-install-find
2598 install-find: installdirs
2599 @r=`${PWD}`; export r; \
2600 s=`cd $(srcdir); ${PWD}`; export s; \
2602 (cd find; $(MAKE) $(FLAGS_TO_PASS) install)
2605 .PHONY: configure-flex maybe-configure-flex
2606 maybe-configure-flex:
2607 configure-flex: flex/Makefile
2609 flex/Makefile: config.status
2610 @[ -d flex ] || mkdir flex; \
2611 r=`${PWD}`; export r; \
2612 s=`cd $(srcdir); ${PWD}`; export s; \
2613 CC="$(CC)"; export CC; \
2614 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2615 CXX="$(CXX)"; export CXX; \
2616 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2617 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2618 AR="$(AR)"; export AR; \
2619 AS="$(AS)"; export AS; \
2620 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2621 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2622 LD="$(LD)"; export LD; \
2623 NM="$(NM)"; export NM; \
2624 RANLIB="$(RANLIB)"; export RANLIB; \
2625 WINDRES="$(WINDRES)"; export WINDRES; \
2626 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2627 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2629 echo Configuring in flex; \
2630 cd flex || exit 1; \
2633 srcdiroption="--srcdir=."; \
2635 /* | [A-Za-z]:[\\/]*) \
2636 srcdiroption="--srcdir=$(srcdir)/flex"; \
2637 libsrcdir="$$s/flex";; \
2639 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2640 libsrcdir="$$s/flex";; \
2642 $(SHELL) $${libsrcdir}/configure \
2643 $(HOST_CONFIGARGS) $${srcdiroption} \
2646 .PHONY: all-flex maybe-all-flex
2648 all-flex: configure-flex
2649 @r=`${PWD}`; export r; \
2650 s=`cd $(srcdir); ${PWD}`; export s; \
2652 (cd flex; $(MAKE) $(FLAGS_TO_PASS) all)
2656 # This module is only tested in a native toolchain.
2658 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2659 r=`${PWD}`; export r; \
2660 s=`cd $(srcdir); ${PWD}`; export s; \
2662 (cd flex; $(MAKE) $(FLAGS_TO_PASS) check); \
2667 .PHONY: install-flex maybe-install-flex
2669 install-flex: installdirs
2670 @r=`${PWD}`; export r; \
2671 s=`cd $(srcdir); ${PWD}`; export s; \
2673 (cd flex; $(MAKE) $(FLAGS_TO_PASS) install)
2676 .PHONY: configure-gas maybe-configure-gas
2677 maybe-configure-gas:
2678 configure-gas: gas/Makefile
2680 gas/Makefile: config.status
2681 @[ -d gas ] || mkdir gas; \
2682 r=`${PWD}`; export r; \
2683 s=`cd $(srcdir); ${PWD}`; export s; \
2684 CC="$(CC)"; export CC; \
2685 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2686 CXX="$(CXX)"; export CXX; \
2687 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2688 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2689 AR="$(AR)"; export AR; \
2690 AS="$(AS)"; export AS; \
2691 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2692 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2693 LD="$(LD)"; export LD; \
2694 NM="$(NM)"; export NM; \
2695 RANLIB="$(RANLIB)"; export RANLIB; \
2696 WINDRES="$(WINDRES)"; export WINDRES; \
2697 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2698 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2700 echo Configuring in gas; \
2704 srcdiroption="--srcdir=."; \
2706 /* | [A-Za-z]:[\\/]*) \
2707 srcdiroption="--srcdir=$(srcdir)/gas"; \
2708 libsrcdir="$$s/gas";; \
2710 srcdiroption="--srcdir=../$(srcdir)/gas"; \
2711 libsrcdir="$$s/gas";; \
2713 $(SHELL) $${libsrcdir}/configure \
2714 $(HOST_CONFIGARGS) $${srcdiroption} \
2717 .PHONY: all-gas maybe-all-gas
2719 all-gas: configure-gas
2720 @r=`${PWD}`; export r; \
2721 s=`cd $(srcdir); ${PWD}`; export s; \
2723 (cd gas; $(MAKE) $(FLAGS_TO_PASS) all)
2728 @r=`${PWD}`; export r; \
2729 s=`cd $(srcdir); ${PWD}`; export s; \
2731 (cd gas; $(MAKE) $(FLAGS_TO_PASS) check)
2735 .PHONY: install-gas maybe-install-gas
2737 install-gas: installdirs
2738 @r=`${PWD}`; export r; \
2739 s=`cd $(srcdir); ${PWD}`; export s; \
2741 (cd gas; $(MAKE) $(FLAGS_TO_PASS) install)
2744 .PHONY: configure-gawk maybe-configure-gawk
2745 maybe-configure-gawk:
2746 configure-gawk: gawk/Makefile
2748 gawk/Makefile: config.status
2749 @[ -d gawk ] || mkdir gawk; \
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 gawk; \
2769 cd gawk || exit 1; \
2772 srcdiroption="--srcdir=."; \
2774 /* | [A-Za-z]:[\\/]*) \
2775 srcdiroption="--srcdir=$(srcdir)/gawk"; \
2776 libsrcdir="$$s/gawk";; \
2778 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2779 libsrcdir="$$s/gawk";; \
2781 $(SHELL) $${libsrcdir}/configure \
2782 $(HOST_CONFIGARGS) $${srcdiroption} \
2785 .PHONY: all-gawk maybe-all-gawk
2787 all-gawk: configure-gawk
2788 @r=`${PWD}`; export r; \
2789 s=`cd $(srcdir); ${PWD}`; export s; \
2791 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) all)
2796 @r=`${PWD}`; export r; \
2797 s=`cd $(srcdir); ${PWD}`; export s; \
2799 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) check)
2803 .PHONY: install-gawk maybe-install-gawk
2805 install-gawk: installdirs
2806 @r=`${PWD}`; export r; \
2807 s=`cd $(srcdir); ${PWD}`; export s; \
2809 (cd gawk; $(MAKE) $(FLAGS_TO_PASS) install)
2812 .PHONY: configure-gettext maybe-configure-gettext
2813 maybe-configure-gettext:
2814 configure-gettext: gettext/Makefile
2816 gettext/Makefile: config.status
2817 @[ -d gettext ] || mkdir gettext; \
2818 r=`${PWD}`; export r; \
2819 s=`cd $(srcdir); ${PWD}`; export s; \
2820 CC="$(CC)"; export CC; \
2821 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2822 CXX="$(CXX)"; export CXX; \
2823 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2824 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2825 AR="$(AR)"; export AR; \
2826 AS="$(AS)"; export AS; \
2827 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2828 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2829 LD="$(LD)"; export LD; \
2830 NM="$(NM)"; export NM; \
2831 RANLIB="$(RANLIB)"; export RANLIB; \
2832 WINDRES="$(WINDRES)"; export WINDRES; \
2833 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2834 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2836 echo Configuring in gettext; \
2837 cd gettext || exit 1; \
2840 srcdiroption="--srcdir=."; \
2842 /* | [A-Za-z]:[\\/]*) \
2843 srcdiroption="--srcdir=$(srcdir)/gettext"; \
2844 libsrcdir="$$s/gettext";; \
2846 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2847 libsrcdir="$$s/gettext";; \
2849 $(SHELL) $${libsrcdir}/configure \
2850 $(HOST_CONFIGARGS) $${srcdiroption} \
2853 .PHONY: all-gettext maybe-all-gettext
2855 all-gettext: configure-gettext
2856 @r=`${PWD}`; export r; \
2857 s=`cd $(srcdir); ${PWD}`; export s; \
2859 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) all)
2862 .PHONY: check-gettext
2864 @r=`${PWD}`; export r; \
2865 s=`cd $(srcdir); ${PWD}`; export s; \
2867 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) check)
2871 .PHONY: install-gettext maybe-install-gettext
2872 maybe-install-gettext:
2873 install-gettext: installdirs
2874 @r=`${PWD}`; export r; \
2875 s=`cd $(srcdir); ${PWD}`; export s; \
2877 (cd gettext; $(MAKE) $(FLAGS_TO_PASS) install)
2880 .PHONY: configure-gnuserv maybe-configure-gnuserv
2881 maybe-configure-gnuserv:
2882 configure-gnuserv: gnuserv/Makefile
2884 gnuserv/Makefile: config.status
2885 @[ -d gnuserv ] || mkdir gnuserv; \
2886 r=`${PWD}`; export r; \
2887 s=`cd $(srcdir); ${PWD}`; export s; \
2888 CC="$(CC)"; export CC; \
2889 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2890 CXX="$(CXX)"; export CXX; \
2891 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2892 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2893 AR="$(AR)"; export AR; \
2894 AS="$(AS)"; export AS; \
2895 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2896 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2897 LD="$(LD)"; export LD; \
2898 NM="$(NM)"; export NM; \
2899 RANLIB="$(RANLIB)"; export RANLIB; \
2900 WINDRES="$(WINDRES)"; export WINDRES; \
2901 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2902 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2904 echo Configuring in gnuserv; \
2905 cd gnuserv || exit 1; \
2908 srcdiroption="--srcdir=."; \
2910 /* | [A-Za-z]:[\\/]*) \
2911 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2912 libsrcdir="$$s/gnuserv";; \
2914 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2915 libsrcdir="$$s/gnuserv";; \
2917 $(SHELL) $${libsrcdir}/configure \
2918 $(HOST_CONFIGARGS) $${srcdiroption} \
2921 .PHONY: all-gnuserv maybe-all-gnuserv
2923 all-gnuserv: configure-gnuserv
2924 @r=`${PWD}`; export r; \
2925 s=`cd $(srcdir); ${PWD}`; export s; \
2927 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) all)
2930 .PHONY: check-gnuserv
2932 @r=`${PWD}`; export r; \
2933 s=`cd $(srcdir); ${PWD}`; export s; \
2935 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) check)
2939 .PHONY: install-gnuserv maybe-install-gnuserv
2940 maybe-install-gnuserv:
2941 install-gnuserv: installdirs
2942 @r=`${PWD}`; export r; \
2943 s=`cd $(srcdir); ${PWD}`; export s; \
2945 (cd gnuserv; $(MAKE) $(FLAGS_TO_PASS) install)
2948 .PHONY: configure-gprof maybe-configure-gprof
2949 maybe-configure-gprof:
2950 configure-gprof: gprof/Makefile
2952 gprof/Makefile: config.status
2953 @[ -d gprof ] || mkdir gprof; \
2954 r=`${PWD}`; export r; \
2955 s=`cd $(srcdir); ${PWD}`; export s; \
2956 CC="$(CC)"; export CC; \
2957 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2958 CXX="$(CXX)"; export CXX; \
2959 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2960 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2961 AR="$(AR)"; export AR; \
2962 AS="$(AS)"; export AS; \
2963 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2964 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2965 LD="$(LD)"; export LD; \
2966 NM="$(NM)"; export NM; \
2967 RANLIB="$(RANLIB)"; export RANLIB; \
2968 WINDRES="$(WINDRES)"; export WINDRES; \
2969 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2970 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2972 echo Configuring in gprof; \
2973 cd gprof || exit 1; \
2976 srcdiroption="--srcdir=."; \
2978 /* | [A-Za-z]:[\\/]*) \
2979 srcdiroption="--srcdir=$(srcdir)/gprof"; \
2980 libsrcdir="$$s/gprof";; \
2982 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2983 libsrcdir="$$s/gprof";; \
2985 $(SHELL) $${libsrcdir}/configure \
2986 $(HOST_CONFIGARGS) $${srcdiroption} \
2989 .PHONY: all-gprof maybe-all-gprof
2991 all-gprof: configure-gprof
2992 @r=`${PWD}`; export r; \
2993 s=`cd $(srcdir); ${PWD}`; export s; \
2995 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) all)
3000 @r=`${PWD}`; export r; \
3001 s=`cd $(srcdir); ${PWD}`; export s; \
3003 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) check)
3007 .PHONY: install-gprof maybe-install-gprof
3008 maybe-install-gprof:
3009 install-gprof: installdirs
3010 @r=`${PWD}`; export r; \
3011 s=`cd $(srcdir); ${PWD}`; export s; \
3013 (cd gprof; $(MAKE) $(FLAGS_TO_PASS) install)
3016 .PHONY: configure-grep maybe-configure-grep
3017 maybe-configure-grep:
3018 configure-grep: grep/Makefile
3020 grep/Makefile: config.status
3021 @[ -d grep ] || mkdir grep; \
3022 r=`${PWD}`; export r; \
3023 s=`cd $(srcdir); ${PWD}`; export s; \
3024 CC="$(CC)"; export CC; \
3025 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3026 CXX="$(CXX)"; export CXX; \
3027 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3028 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3029 AR="$(AR)"; export AR; \
3030 AS="$(AS)"; export AS; \
3031 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3032 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3033 LD="$(LD)"; export LD; \
3034 NM="$(NM)"; export NM; \
3035 RANLIB="$(RANLIB)"; export RANLIB; \
3036 WINDRES="$(WINDRES)"; export WINDRES; \
3037 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3038 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3040 echo Configuring in grep; \
3041 cd grep || exit 1; \
3044 srcdiroption="--srcdir=."; \
3046 /* | [A-Za-z]:[\\/]*) \
3047 srcdiroption="--srcdir=$(srcdir)/grep"; \
3048 libsrcdir="$$s/grep";; \
3050 srcdiroption="--srcdir=../$(srcdir)/grep"; \
3051 libsrcdir="$$s/grep";; \
3053 $(SHELL) $${libsrcdir}/configure \
3054 $(HOST_CONFIGARGS) $${srcdiroption} \
3057 .PHONY: all-grep maybe-all-grep
3059 all-grep: configure-grep
3060 @r=`${PWD}`; export r; \
3061 s=`cd $(srcdir); ${PWD}`; export s; \
3063 (cd grep; $(MAKE) $(FLAGS_TO_PASS) all)
3068 @r=`${PWD}`; export r; \
3069 s=`cd $(srcdir); ${PWD}`; export s; \
3071 (cd grep; $(MAKE) $(FLAGS_TO_PASS) check)
3075 .PHONY: install-grep maybe-install-grep
3077 install-grep: installdirs
3078 @r=`${PWD}`; export r; \
3079 s=`cd $(srcdir); ${PWD}`; export s; \
3081 (cd grep; $(MAKE) $(FLAGS_TO_PASS) install)
3084 .PHONY: configure-gzip maybe-configure-gzip
3085 maybe-configure-gzip:
3086 configure-gzip: gzip/Makefile
3088 gzip/Makefile: config.status
3089 @[ -d gzip ] || mkdir gzip; \
3090 r=`${PWD}`; export r; \
3091 s=`cd $(srcdir); ${PWD}`; export s; \
3092 CC="$(CC)"; export CC; \
3093 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3094 CXX="$(CXX)"; export CXX; \
3095 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3096 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3097 AR="$(AR)"; export AR; \
3098 AS="$(AS)"; export AS; \
3099 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3100 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3101 LD="$(LD)"; export LD; \
3102 NM="$(NM)"; export NM; \
3103 RANLIB="$(RANLIB)"; export RANLIB; \
3104 WINDRES="$(WINDRES)"; export WINDRES; \
3105 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3106 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3108 echo Configuring in gzip; \
3109 cd gzip || exit 1; \
3112 srcdiroption="--srcdir=."; \
3114 /* | [A-Za-z]:[\\/]*) \
3115 srcdiroption="--srcdir=$(srcdir)/gzip"; \
3116 libsrcdir="$$s/gzip";; \
3118 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
3119 libsrcdir="$$s/gzip";; \
3121 $(SHELL) $${libsrcdir}/configure \
3122 $(HOST_CONFIGARGS) $${srcdiroption} \
3125 .PHONY: all-gzip maybe-all-gzip
3127 all-gzip: configure-gzip
3128 @r=`${PWD}`; export r; \
3129 s=`cd $(srcdir); ${PWD}`; export s; \
3131 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) all)
3136 @r=`${PWD}`; export r; \
3137 s=`cd $(srcdir); ${PWD}`; export s; \
3139 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) check)
3143 .PHONY: install-gzip maybe-install-gzip
3145 install-gzip: installdirs
3146 @r=`${PWD}`; export r; \
3147 s=`cd $(srcdir); ${PWD}`; export s; \
3149 (cd gzip; $(MAKE) $(FLAGS_TO_PASS) install)
3152 .PHONY: configure-hello maybe-configure-hello
3153 maybe-configure-hello:
3154 configure-hello: hello/Makefile
3156 hello/Makefile: config.status
3157 @[ -d hello ] || mkdir hello; \
3158 r=`${PWD}`; export r; \
3159 s=`cd $(srcdir); ${PWD}`; export s; \
3160 CC="$(CC)"; export CC; \
3161 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3162 CXX="$(CXX)"; export CXX; \
3163 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3164 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3165 AR="$(AR)"; export AR; \
3166 AS="$(AS)"; export AS; \
3167 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3168 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3169 LD="$(LD)"; export LD; \
3170 NM="$(NM)"; export NM; \
3171 RANLIB="$(RANLIB)"; export RANLIB; \
3172 WINDRES="$(WINDRES)"; export WINDRES; \
3173 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3174 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3176 echo Configuring in hello; \
3177 cd hello || exit 1; \
3180 srcdiroption="--srcdir=."; \
3182 /* | [A-Za-z]:[\\/]*) \
3183 srcdiroption="--srcdir=$(srcdir)/hello"; \
3184 libsrcdir="$$s/hello";; \
3186 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3187 libsrcdir="$$s/hello";; \
3189 $(SHELL) $${libsrcdir}/configure \
3190 $(HOST_CONFIGARGS) $${srcdiroption} \
3193 .PHONY: all-hello maybe-all-hello
3195 all-hello: configure-hello
3196 @r=`${PWD}`; export r; \
3197 s=`cd $(srcdir); ${PWD}`; export s; \
3199 (cd hello; $(MAKE) $(FLAGS_TO_PASS) all)
3204 @r=`${PWD}`; export r; \
3205 s=`cd $(srcdir); ${PWD}`; export s; \
3207 (cd hello; $(MAKE) $(FLAGS_TO_PASS) check)
3211 .PHONY: install-hello maybe-install-hello
3212 maybe-install-hello:
3213 install-hello: installdirs
3214 @r=`${PWD}`; export r; \
3215 s=`cd $(srcdir); ${PWD}`; export s; \
3217 (cd hello; $(MAKE) $(FLAGS_TO_PASS) install)
3220 .PHONY: configure-indent maybe-configure-indent
3221 maybe-configure-indent:
3222 configure-indent: indent/Makefile
3224 indent/Makefile: config.status
3225 @[ -d indent ] || mkdir indent; \
3226 r=`${PWD}`; export r; \
3227 s=`cd $(srcdir); ${PWD}`; export s; \
3228 CC="$(CC)"; export CC; \
3229 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3230 CXX="$(CXX)"; export CXX; \
3231 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3232 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3233 AR="$(AR)"; export AR; \
3234 AS="$(AS)"; export AS; \
3235 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3236 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3237 LD="$(LD)"; export LD; \
3238 NM="$(NM)"; export NM; \
3239 RANLIB="$(RANLIB)"; export RANLIB; \
3240 WINDRES="$(WINDRES)"; export WINDRES; \
3241 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3242 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3244 echo Configuring in indent; \
3245 cd indent || exit 1; \
3248 srcdiroption="--srcdir=."; \
3250 /* | [A-Za-z]:[\\/]*) \
3251 srcdiroption="--srcdir=$(srcdir)/indent"; \
3252 libsrcdir="$$s/indent";; \
3254 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3255 libsrcdir="$$s/indent";; \
3257 $(SHELL) $${libsrcdir}/configure \
3258 $(HOST_CONFIGARGS) $${srcdiroption} \
3261 .PHONY: all-indent maybe-all-indent
3263 all-indent: configure-indent
3264 @r=`${PWD}`; export r; \
3265 s=`cd $(srcdir); ${PWD}`; export s; \
3267 (cd indent; $(MAKE) $(FLAGS_TO_PASS) all)
3270 .PHONY: check-indent
3272 @r=`${PWD}`; export r; \
3273 s=`cd $(srcdir); ${PWD}`; export s; \
3275 (cd indent; $(MAKE) $(FLAGS_TO_PASS) check)
3279 .PHONY: install-indent maybe-install-indent
3280 maybe-install-indent:
3281 install-indent: installdirs
3282 @r=`${PWD}`; export r; \
3283 s=`cd $(srcdir); ${PWD}`; export s; \
3285 (cd indent; $(MAKE) $(FLAGS_TO_PASS) install)
3288 .PHONY: configure-intl maybe-configure-intl
3289 maybe-configure-intl:
3290 configure-intl: intl/Makefile
3292 intl/Makefile: config.status
3293 @[ -d intl ] || mkdir intl; \
3294 r=`${PWD}`; export r; \
3295 s=`cd $(srcdir); ${PWD}`; export s; \
3296 CC="$(CC)"; export CC; \
3297 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3298 CXX="$(CXX)"; export CXX; \
3299 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3300 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3301 AR="$(AR)"; export AR; \
3302 AS="$(AS)"; export AS; \
3303 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3304 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3305 LD="$(LD)"; export LD; \
3306 NM="$(NM)"; export NM; \
3307 RANLIB="$(RANLIB)"; export RANLIB; \
3308 WINDRES="$(WINDRES)"; export WINDRES; \
3309 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3310 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3312 echo Configuring in intl; \
3313 cd intl || exit 1; \
3316 srcdiroption="--srcdir=."; \
3318 /* | [A-Za-z]:[\\/]*) \
3319 srcdiroption="--srcdir=$(srcdir)/intl"; \
3320 libsrcdir="$$s/intl";; \
3322 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3323 libsrcdir="$$s/intl";; \
3325 $(SHELL) $${libsrcdir}/configure \
3326 $(HOST_CONFIGARGS) $${srcdiroption} \
3329 .PHONY: all-intl maybe-all-intl
3331 all-intl: configure-intl
3332 @r=`${PWD}`; export r; \
3333 s=`cd $(srcdir); ${PWD}`; export s; \
3335 (cd intl; $(MAKE) $(FLAGS_TO_PASS) all)
3340 @r=`${PWD}`; export r; \
3341 s=`cd $(srcdir); ${PWD}`; export s; \
3343 (cd intl; $(MAKE) $(FLAGS_TO_PASS) check)
3347 .PHONY: install-intl maybe-install-intl
3349 install-intl: installdirs
3350 @r=`${PWD}`; export r; \
3351 s=`cd $(srcdir); ${PWD}`; export s; \
3353 (cd intl; $(MAKE) $(FLAGS_TO_PASS) install)
3356 .PHONY: configure-tcl maybe-configure-tcl
3357 maybe-configure-tcl:
3358 configure-tcl: tcl/Makefile
3360 tcl/Makefile: config.status
3361 @[ -d tcl ] || mkdir tcl; \
3362 r=`${PWD}`; export r; \
3363 s=`cd $(srcdir); ${PWD}`; export s; \
3364 CC="$(CC)"; export CC; \
3365 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3366 CXX="$(CXX)"; export CXX; \
3367 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3368 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3369 AR="$(AR)"; export AR; \
3370 AS="$(AS)"; export AS; \
3371 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3372 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3373 LD="$(LD)"; export LD; \
3374 NM="$(NM)"; export NM; \
3375 RANLIB="$(RANLIB)"; export RANLIB; \
3376 WINDRES="$(WINDRES)"; export WINDRES; \
3377 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3378 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3380 echo Configuring in tcl; \
3384 srcdiroption="--srcdir=."; \
3386 /* | [A-Za-z]:[\\/]*) \
3387 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3388 libsrcdir="$$s/tcl";; \
3390 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3391 libsrcdir="$$s/tcl";; \
3393 $(SHELL) $${libsrcdir}/configure \
3394 $(HOST_CONFIGARGS) $${srcdiroption} \
3397 .PHONY: all-tcl maybe-all-tcl
3399 all-tcl: configure-tcl
3400 @r=`${PWD}`; export r; \
3401 s=`cd $(srcdir); ${PWD}`; export s; \
3403 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) all)
3408 @r=`${PWD}`; export r; \
3409 s=`cd $(srcdir); ${PWD}`; export s; \
3411 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) check)
3415 .PHONY: install-tcl maybe-install-tcl
3417 install-tcl: installdirs
3418 @r=`${PWD}`; export r; \
3419 s=`cd $(srcdir); ${PWD}`; export s; \
3421 (cd tcl; $(MAKE) $(FLAGS_TO_PASS) install)
3424 .PHONY: configure-itcl maybe-configure-itcl
3425 maybe-configure-itcl:
3426 configure-itcl: itcl/Makefile
3428 itcl/Makefile: config.status
3429 @[ -d itcl ] || mkdir itcl; \
3430 r=`${PWD}`; export r; \
3431 s=`cd $(srcdir); ${PWD}`; export s; \
3432 CC="$(CC)"; export CC; \
3433 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3434 CXX="$(CXX)"; export CXX; \
3435 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3436 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3437 AR="$(AR)"; export AR; \
3438 AS="$(AS)"; export AS; \
3439 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3440 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3441 LD="$(LD)"; export LD; \
3442 NM="$(NM)"; export NM; \
3443 RANLIB="$(RANLIB)"; export RANLIB; \
3444 WINDRES="$(WINDRES)"; export WINDRES; \
3445 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3446 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3448 echo Configuring in itcl; \
3449 cd itcl || exit 1; \
3452 srcdiroption="--srcdir=."; \
3454 /* | [A-Za-z]:[\\/]*) \
3455 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3456 libsrcdir="$$s/itcl";; \
3458 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3459 libsrcdir="$$s/itcl";; \
3461 $(SHELL) $${libsrcdir}/configure \
3462 $(HOST_CONFIGARGS) $${srcdiroption} \
3465 .PHONY: all-itcl maybe-all-itcl
3467 all-itcl: configure-itcl
3468 @r=`${PWD}`; export r; \
3469 s=`cd $(srcdir); ${PWD}`; export s; \
3471 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) all)
3476 @r=`${PWD}`; export r; \
3477 s=`cd $(srcdir); ${PWD}`; export s; \
3479 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) check)
3483 .PHONY: install-itcl maybe-install-itcl
3485 install-itcl: installdirs
3486 @r=`${PWD}`; export r; \
3487 s=`cd $(srcdir); ${PWD}`; export s; \
3489 (cd itcl; $(MAKE) $(FLAGS_TO_PASS) install)
3492 .PHONY: configure-ld maybe-configure-ld
3494 configure-ld: ld/Makefile
3496 ld/Makefile: config.status
3497 @[ -d ld ] || mkdir ld; \
3498 r=`${PWD}`; export r; \
3499 s=`cd $(srcdir); ${PWD}`; export s; \
3500 CC="$(CC)"; export CC; \
3501 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3502 CXX="$(CXX)"; export CXX; \
3503 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3504 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3505 AR="$(AR)"; export AR; \
3506 AS="$(AS)"; export AS; \
3507 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3508 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3509 LD="$(LD)"; export LD; \
3510 NM="$(NM)"; export NM; \
3511 RANLIB="$(RANLIB)"; export RANLIB; \
3512 WINDRES="$(WINDRES)"; export WINDRES; \
3513 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3514 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3516 echo Configuring in ld; \
3520 srcdiroption="--srcdir=."; \
3522 /* | [A-Za-z]:[\\/]*) \
3523 srcdiroption="--srcdir=$(srcdir)/ld"; \
3524 libsrcdir="$$s/ld";; \
3526 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3527 libsrcdir="$$s/ld";; \
3529 $(SHELL) $${libsrcdir}/configure \
3530 $(HOST_CONFIGARGS) $${srcdiroption} \
3533 .PHONY: all-ld maybe-all-ld
3535 all-ld: configure-ld
3536 @r=`${PWD}`; export r; \
3537 s=`cd $(srcdir); ${PWD}`; export s; \
3539 (cd ld; $(MAKE) $(FLAGS_TO_PASS) all)
3544 @r=`${PWD}`; export r; \
3545 s=`cd $(srcdir); ${PWD}`; export s; \
3547 (cd ld; $(MAKE) $(FLAGS_TO_PASS) check)
3551 .PHONY: install-ld maybe-install-ld
3553 install-ld: installdirs
3554 @r=`${PWD}`; export r; \
3555 s=`cd $(srcdir); ${PWD}`; export s; \
3557 (cd ld; $(MAKE) $(FLAGS_TO_PASS) install)
3560 .PHONY: configure-libgui maybe-configure-libgui
3561 maybe-configure-libgui:
3562 configure-libgui: libgui/Makefile
3564 libgui/Makefile: config.status
3565 @[ -d libgui ] || mkdir libgui; \
3566 r=`${PWD}`; export r; \
3567 s=`cd $(srcdir); ${PWD}`; export s; \
3568 CC="$(CC)"; export CC; \
3569 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3570 CXX="$(CXX)"; export CXX; \
3571 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3572 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3573 AR="$(AR)"; export AR; \
3574 AS="$(AS)"; export AS; \
3575 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3576 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3577 LD="$(LD)"; export LD; \
3578 NM="$(NM)"; export NM; \
3579 RANLIB="$(RANLIB)"; export RANLIB; \
3580 WINDRES="$(WINDRES)"; export WINDRES; \
3581 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3582 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3584 echo Configuring in libgui; \
3585 cd libgui || exit 1; \
3588 srcdiroption="--srcdir=."; \
3590 /* | [A-Za-z]:[\\/]*) \
3591 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3592 libsrcdir="$$s/libgui";; \
3594 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3595 libsrcdir="$$s/libgui";; \
3597 $(SHELL) $${libsrcdir}/configure \
3598 $(HOST_CONFIGARGS) $${srcdiroption} \
3601 .PHONY: all-libgui maybe-all-libgui
3603 all-libgui: configure-libgui
3604 @r=`${PWD}`; export r; \
3605 s=`cd $(srcdir); ${PWD}`; export s; \
3607 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) all)
3610 .PHONY: check-libgui
3612 @r=`${PWD}`; export r; \
3613 s=`cd $(srcdir); ${PWD}`; export s; \
3615 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) check)
3619 .PHONY: install-libgui maybe-install-libgui
3620 maybe-install-libgui:
3621 install-libgui: installdirs
3622 @r=`${PWD}`; export r; \
3623 s=`cd $(srcdir); ${PWD}`; export s; \
3625 (cd libgui; $(MAKE) $(FLAGS_TO_PASS) install)
3628 .PHONY: configure-libiberty maybe-configure-libiberty
3629 maybe-configure-libiberty:
3630 configure-libiberty: libiberty/Makefile
3632 libiberty/Makefile: config.status
3633 @[ -d libiberty ] || mkdir libiberty; \
3634 r=`${PWD}`; export r; \
3635 s=`cd $(srcdir); ${PWD}`; export s; \
3636 CC="$(CC)"; export CC; \
3637 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3638 CXX="$(CXX)"; export CXX; \
3639 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3640 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3641 AR="$(AR)"; export AR; \
3642 AS="$(AS)"; export AS; \
3643 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3644 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3645 LD="$(LD)"; export LD; \
3646 NM="$(NM)"; export NM; \
3647 RANLIB="$(RANLIB)"; export RANLIB; \
3648 WINDRES="$(WINDRES)"; export WINDRES; \
3649 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3650 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3652 echo Configuring in libiberty; \
3653 cd libiberty || exit 1; \
3656 srcdiroption="--srcdir=."; \
3658 /* | [A-Za-z]:[\\/]*) \
3659 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3660 libsrcdir="$$s/libiberty";; \
3662 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3663 libsrcdir="$$s/libiberty";; \
3665 $(SHELL) $${libsrcdir}/configure \
3666 $(HOST_CONFIGARGS) $${srcdiroption} \
3669 .PHONY: all-libiberty maybe-all-libiberty
3670 maybe-all-libiberty:
3671 all-libiberty: configure-libiberty
3672 @r=`${PWD}`; export r; \
3673 s=`cd $(srcdir); ${PWD}`; export s; \
3675 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) all)
3678 .PHONY: check-libiberty
3680 @r=`${PWD}`; export r; \
3681 s=`cd $(srcdir); ${PWD}`; export s; \
3683 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) check)
3687 .PHONY: install-libiberty maybe-install-libiberty
3688 maybe-install-libiberty:
3689 install-libiberty: installdirs
3690 @r=`${PWD}`; export r; \
3691 s=`cd $(srcdir); ${PWD}`; export s; \
3693 (cd libiberty; $(MAKE) $(FLAGS_TO_PASS) install)
3696 .PHONY: configure-libtool maybe-configure-libtool
3697 maybe-configure-libtool:
3698 configure-libtool: libtool/Makefile
3700 libtool/Makefile: config.status
3701 @[ -d libtool ] || mkdir libtool; \
3702 r=`${PWD}`; export r; \
3703 s=`cd $(srcdir); ${PWD}`; export s; \
3704 CC="$(CC)"; export CC; \
3705 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3706 CXX="$(CXX)"; export CXX; \
3707 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3708 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3709 AR="$(AR)"; export AR; \
3710 AS="$(AS)"; export AS; \
3711 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3712 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3713 LD="$(LD)"; export LD; \
3714 NM="$(NM)"; export NM; \
3715 RANLIB="$(RANLIB)"; export RANLIB; \
3716 WINDRES="$(WINDRES)"; export WINDRES; \
3717 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3718 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3720 echo Configuring in libtool; \
3721 cd libtool || exit 1; \
3724 srcdiroption="--srcdir=."; \
3726 /* | [A-Za-z]:[\\/]*) \
3727 srcdiroption="--srcdir=$(srcdir)/libtool"; \
3728 libsrcdir="$$s/libtool";; \
3730 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
3731 libsrcdir="$$s/libtool";; \
3733 $(SHELL) $${libsrcdir}/configure \
3734 $(HOST_CONFIGARGS) $${srcdiroption} \
3737 .PHONY: all-libtool maybe-all-libtool
3739 all-libtool: configure-libtool
3740 @r=`${PWD}`; export r; \
3741 s=`cd $(srcdir); ${PWD}`; export s; \
3743 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) all)
3746 .PHONY: check-libtool
3748 @r=`${PWD}`; export r; \
3749 s=`cd $(srcdir); ${PWD}`; export s; \
3751 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) check)
3755 .PHONY: install-libtool maybe-install-libtool
3756 maybe-install-libtool:
3757 install-libtool: installdirs
3758 @r=`${PWD}`; export r; \
3759 s=`cd $(srcdir); ${PWD}`; export s; \
3761 (cd libtool; $(MAKE) $(FLAGS_TO_PASS) install)
3764 .PHONY: configure-m4 maybe-configure-m4
3766 configure-m4: m4/Makefile
3768 m4/Makefile: config.status
3769 @[ -d m4 ] || mkdir m4; \
3770 r=`${PWD}`; export r; \
3771 s=`cd $(srcdir); ${PWD}`; export s; \
3772 CC="$(CC)"; export CC; \
3773 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3774 CXX="$(CXX)"; export CXX; \
3775 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3776 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3777 AR="$(AR)"; export AR; \
3778 AS="$(AS)"; export AS; \
3779 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3780 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3781 LD="$(LD)"; export LD; \
3782 NM="$(NM)"; export NM; \
3783 RANLIB="$(RANLIB)"; export RANLIB; \
3784 WINDRES="$(WINDRES)"; export WINDRES; \
3785 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3786 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3788 echo Configuring in m4; \
3792 srcdiroption="--srcdir=."; \
3794 /* | [A-Za-z]:[\\/]*) \
3795 srcdiroption="--srcdir=$(srcdir)/m4"; \
3796 libsrcdir="$$s/m4";; \
3798 srcdiroption="--srcdir=../$(srcdir)/m4"; \
3799 libsrcdir="$$s/m4";; \
3801 $(SHELL) $${libsrcdir}/configure \
3802 $(HOST_CONFIGARGS) $${srcdiroption} \
3805 .PHONY: all-m4 maybe-all-m4
3807 all-m4: configure-m4
3808 @r=`${PWD}`; export r; \
3809 s=`cd $(srcdir); ${PWD}`; export s; \
3811 (cd m4; $(MAKE) $(FLAGS_TO_PASS) all)
3816 @r=`${PWD}`; export r; \
3817 s=`cd $(srcdir); ${PWD}`; export s; \
3819 (cd m4; $(MAKE) $(FLAGS_TO_PASS) check)
3823 .PHONY: install-m4 maybe-install-m4
3825 install-m4: installdirs
3826 @r=`${PWD}`; export r; \
3827 s=`cd $(srcdir); ${PWD}`; export s; \
3829 (cd m4; $(MAKE) $(FLAGS_TO_PASS) install)
3832 .PHONY: configure-make maybe-configure-make
3833 maybe-configure-make:
3834 configure-make: make/Makefile
3836 make/Makefile: config.status
3837 @[ -d make ] || mkdir make; \
3838 r=`${PWD}`; export r; \
3839 s=`cd $(srcdir); ${PWD}`; export s; \
3840 CC="$(CC)"; export CC; \
3841 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3842 CXX="$(CXX)"; export CXX; \
3843 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3844 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3845 AR="$(AR)"; export AR; \
3846 AS="$(AS)"; export AS; \
3847 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3848 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3849 LD="$(LD)"; export LD; \
3850 NM="$(NM)"; export NM; \
3851 RANLIB="$(RANLIB)"; export RANLIB; \
3852 WINDRES="$(WINDRES)"; export WINDRES; \
3853 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3854 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3856 echo Configuring in make; \
3857 cd make || exit 1; \
3860 srcdiroption="--srcdir=."; \
3862 /* | [A-Za-z]:[\\/]*) \
3863 srcdiroption="--srcdir=$(srcdir)/make"; \
3864 libsrcdir="$$s/make";; \
3866 srcdiroption="--srcdir=../$(srcdir)/make"; \
3867 libsrcdir="$$s/make";; \
3869 $(SHELL) $${libsrcdir}/configure \
3870 $(HOST_CONFIGARGS) $${srcdiroption} \
3873 .PHONY: all-make maybe-all-make
3875 all-make: configure-make
3876 @r=`${PWD}`; export r; \
3877 s=`cd $(srcdir); ${PWD}`; export s; \
3879 (cd make; $(MAKE) $(FLAGS_TO_PASS) all)
3884 @r=`${PWD}`; export r; \
3885 s=`cd $(srcdir); ${PWD}`; export s; \
3887 (cd make; $(MAKE) $(FLAGS_TO_PASS) check)
3891 .PHONY: install-make maybe-install-make
3893 install-make: installdirs
3894 @r=`${PWD}`; export r; \
3895 s=`cd $(srcdir); ${PWD}`; export s; \
3897 (cd make; $(MAKE) $(FLAGS_TO_PASS) install)
3900 .PHONY: configure-mmalloc maybe-configure-mmalloc
3901 maybe-configure-mmalloc:
3902 configure-mmalloc: mmalloc/Makefile
3904 mmalloc/Makefile: config.status
3905 @[ -d mmalloc ] || mkdir mmalloc; \
3906 r=`${PWD}`; export r; \
3907 s=`cd $(srcdir); ${PWD}`; export s; \
3908 CC="$(CC)"; export CC; \
3909 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3910 CXX="$(CXX)"; export CXX; \
3911 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3912 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3913 AR="$(AR)"; export AR; \
3914 AS="$(AS)"; export AS; \
3915 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3916 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3917 LD="$(LD)"; export LD; \
3918 NM="$(NM)"; export NM; \
3919 RANLIB="$(RANLIB)"; export RANLIB; \
3920 WINDRES="$(WINDRES)"; export WINDRES; \
3921 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3922 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3924 echo Configuring in mmalloc; \
3925 cd mmalloc || exit 1; \
3928 srcdiroption="--srcdir=."; \
3930 /* | [A-Za-z]:[\\/]*) \
3931 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
3932 libsrcdir="$$s/mmalloc";; \
3934 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
3935 libsrcdir="$$s/mmalloc";; \
3937 $(SHELL) $${libsrcdir}/configure \
3938 $(HOST_CONFIGARGS) $${srcdiroption} \
3941 .PHONY: all-mmalloc maybe-all-mmalloc
3943 all-mmalloc: configure-mmalloc
3944 @r=`${PWD}`; export r; \
3945 s=`cd $(srcdir); ${PWD}`; export s; \
3947 (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) all)
3950 .PHONY: check-mmalloc
3955 .PHONY: install-mmalloc maybe-install-mmalloc
3956 maybe-install-mmalloc:
3957 install-mmalloc: installdirs
3958 @r=`${PWD}`; export r; \
3959 s=`cd $(srcdir); ${PWD}`; export s; \
3961 (cd mmalloc; $(MAKE) $(FLAGS_TO_PASS) install)
3964 .PHONY: configure-patch maybe-configure-patch
3965 maybe-configure-patch:
3966 configure-patch: patch/Makefile
3968 patch/Makefile: config.status
3969 @[ -d patch ] || mkdir patch; \
3970 r=`${PWD}`; export r; \
3971 s=`cd $(srcdir); ${PWD}`; export s; \
3972 CC="$(CC)"; export CC; \
3973 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3974 CXX="$(CXX)"; export CXX; \
3975 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3976 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3977 AR="$(AR)"; export AR; \
3978 AS="$(AS)"; export AS; \
3979 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3980 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3981 LD="$(LD)"; export LD; \
3982 NM="$(NM)"; export NM; \
3983 RANLIB="$(RANLIB)"; export RANLIB; \
3984 WINDRES="$(WINDRES)"; export WINDRES; \
3985 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3986 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3988 echo Configuring in patch; \
3989 cd patch || exit 1; \
3992 srcdiroption="--srcdir=."; \
3994 /* | [A-Za-z]:[\\/]*) \
3995 srcdiroption="--srcdir=$(srcdir)/patch"; \
3996 libsrcdir="$$s/patch";; \
3998 srcdiroption="--srcdir=../$(srcdir)/patch"; \
3999 libsrcdir="$$s/patch";; \
4001 $(SHELL) $${libsrcdir}/configure \
4002 $(HOST_CONFIGARGS) $${srcdiroption} \
4005 .PHONY: all-patch maybe-all-patch
4007 all-patch: configure-patch
4008 @r=`${PWD}`; export r; \
4009 s=`cd $(srcdir); ${PWD}`; export s; \
4011 (cd patch; $(MAKE) $(FLAGS_TO_PASS) all)
4016 @r=`${PWD}`; export r; \
4017 s=`cd $(srcdir); ${PWD}`; export s; \
4019 (cd patch; $(MAKE) $(FLAGS_TO_PASS) check)
4023 .PHONY: install-patch maybe-install-patch
4024 maybe-install-patch:
4025 install-patch: installdirs
4026 @r=`${PWD}`; export r; \
4027 s=`cd $(srcdir); ${PWD}`; export s; \
4029 (cd patch; $(MAKE) $(FLAGS_TO_PASS) install)
4032 .PHONY: configure-perl maybe-configure-perl
4033 maybe-configure-perl:
4034 configure-perl: perl/Makefile
4036 perl/Makefile: config.status
4037 @[ -d perl ] || mkdir perl; \
4038 r=`${PWD}`; export r; \
4039 s=`cd $(srcdir); ${PWD}`; export s; \
4040 CC="$(CC)"; export CC; \
4041 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4042 CXX="$(CXX)"; export CXX; \
4043 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4044 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4045 AR="$(AR)"; export AR; \
4046 AS="$(AS)"; export AS; \
4047 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4048 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4049 LD="$(LD)"; export LD; \
4050 NM="$(NM)"; export NM; \
4051 RANLIB="$(RANLIB)"; export RANLIB; \
4052 WINDRES="$(WINDRES)"; export WINDRES; \
4053 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4054 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4056 echo Configuring in perl; \
4057 cd perl || exit 1; \
4060 srcdiroption="--srcdir=."; \
4062 /* | [A-Za-z]:[\\/]*) \
4063 srcdiroption="--srcdir=$(srcdir)/perl"; \
4064 libsrcdir="$$s/perl";; \
4066 srcdiroption="--srcdir=../$(srcdir)/perl"; \
4067 libsrcdir="$$s/perl";; \
4069 $(SHELL) $${libsrcdir}/configure \
4070 $(HOST_CONFIGARGS) $${srcdiroption} \
4073 .PHONY: all-perl maybe-all-perl
4075 all-perl: configure-perl
4076 @r=`${PWD}`; export r; \
4077 s=`cd $(srcdir); ${PWD}`; export s; \
4079 (cd perl; $(MAKE) $(FLAGS_TO_PASS) all)
4084 @r=`${PWD}`; export r; \
4085 s=`cd $(srcdir); ${PWD}`; export s; \
4087 (cd perl; $(MAKE) $(FLAGS_TO_PASS) check)
4091 .PHONY: install-perl maybe-install-perl
4093 install-perl: installdirs
4094 @r=`${PWD}`; export r; \
4095 s=`cd $(srcdir); ${PWD}`; export s; \
4097 (cd perl; $(MAKE) $(FLAGS_TO_PASS) install)
4100 .PHONY: configure-prms maybe-configure-prms
4101 maybe-configure-prms:
4102 configure-prms: prms/Makefile
4104 prms/Makefile: config.status
4105 @[ -d prms ] || mkdir prms; \
4106 r=`${PWD}`; export r; \
4107 s=`cd $(srcdir); ${PWD}`; export s; \
4108 CC="$(CC)"; export CC; \
4109 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4110 CXX="$(CXX)"; export CXX; \
4111 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4112 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4113 AR="$(AR)"; export AR; \
4114 AS="$(AS)"; export AS; \
4115 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4116 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4117 LD="$(LD)"; export LD; \
4118 NM="$(NM)"; export NM; \
4119 RANLIB="$(RANLIB)"; export RANLIB; \
4120 WINDRES="$(WINDRES)"; export WINDRES; \
4121 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4122 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4124 echo Configuring in prms; \
4125 cd prms || exit 1; \
4128 srcdiroption="--srcdir=."; \
4130 /* | [A-Za-z]:[\\/]*) \
4131 srcdiroption="--srcdir=$(srcdir)/prms"; \
4132 libsrcdir="$$s/prms";; \
4134 srcdiroption="--srcdir=../$(srcdir)/prms"; \
4135 libsrcdir="$$s/prms";; \
4137 $(SHELL) $${libsrcdir}/configure \
4138 $(HOST_CONFIGARGS) $${srcdiroption} \
4141 .PHONY: all-prms maybe-all-prms
4143 all-prms: configure-prms
4144 @r=`${PWD}`; export r; \
4145 s=`cd $(srcdir); ${PWD}`; export s; \
4147 (cd prms; $(MAKE) $(FLAGS_TO_PASS) all)
4152 @r=`${PWD}`; export r; \
4153 s=`cd $(srcdir); ${PWD}`; export s; \
4155 (cd prms; $(MAKE) $(FLAGS_TO_PASS) check)
4159 .PHONY: install-prms maybe-install-prms
4161 install-prms: installdirs
4162 @r=`${PWD}`; export r; \
4163 s=`cd $(srcdir); ${PWD}`; export s; \
4165 (cd prms; $(MAKE) $(FLAGS_TO_PASS) install)
4168 .PHONY: configure-rcs maybe-configure-rcs
4169 maybe-configure-rcs:
4170 configure-rcs: rcs/Makefile
4172 rcs/Makefile: config.status
4173 @[ -d rcs ] || mkdir rcs; \
4174 r=`${PWD}`; export r; \
4175 s=`cd $(srcdir); ${PWD}`; export s; \
4176 CC="$(CC)"; export CC; \
4177 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4178 CXX="$(CXX)"; export CXX; \
4179 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4180 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4181 AR="$(AR)"; export AR; \
4182 AS="$(AS)"; export AS; \
4183 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4184 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4185 LD="$(LD)"; export LD; \
4186 NM="$(NM)"; export NM; \
4187 RANLIB="$(RANLIB)"; export RANLIB; \
4188 WINDRES="$(WINDRES)"; export WINDRES; \
4189 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4190 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4192 echo Configuring in rcs; \
4196 srcdiroption="--srcdir=."; \
4198 /* | [A-Za-z]:[\\/]*) \
4199 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4200 libsrcdir="$$s/rcs";; \
4202 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4203 libsrcdir="$$s/rcs";; \
4205 $(SHELL) $${libsrcdir}/configure \
4206 $(HOST_CONFIGARGS) $${srcdiroption} \
4209 .PHONY: all-rcs maybe-all-rcs
4211 all-rcs: configure-rcs
4212 @r=`${PWD}`; export r; \
4213 s=`cd $(srcdir); ${PWD}`; export s; \
4215 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) all)
4220 @r=`${PWD}`; export r; \
4221 s=`cd $(srcdir); ${PWD}`; export s; \
4223 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) check)
4227 .PHONY: install-rcs maybe-install-rcs
4229 install-rcs: installdirs
4230 @r=`${PWD}`; export r; \
4231 s=`cd $(srcdir); ${PWD}`; export s; \
4233 (cd rcs; $(MAKE) $(FLAGS_TO_PASS) install)
4236 .PHONY: configure-readline maybe-configure-readline
4237 maybe-configure-readline:
4238 configure-readline: readline/Makefile
4240 readline/Makefile: config.status
4241 @[ -d readline ] || mkdir readline; \
4242 r=`${PWD}`; export r; \
4243 s=`cd $(srcdir); ${PWD}`; export s; \
4244 CC="$(CC)"; export CC; \
4245 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4246 CXX="$(CXX)"; export CXX; \
4247 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4248 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4249 AR="$(AR)"; export AR; \
4250 AS="$(AS)"; export AS; \
4251 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4252 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4253 LD="$(LD)"; export LD; \
4254 NM="$(NM)"; export NM; \
4255 RANLIB="$(RANLIB)"; export RANLIB; \
4256 WINDRES="$(WINDRES)"; export WINDRES; \
4257 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4258 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4260 echo Configuring in readline; \
4261 cd readline || exit 1; \
4264 srcdiroption="--srcdir=."; \
4266 /* | [A-Za-z]:[\\/]*) \
4267 srcdiroption="--srcdir=$(srcdir)/readline"; \
4268 libsrcdir="$$s/readline";; \
4270 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4271 libsrcdir="$$s/readline";; \
4273 $(SHELL) $${libsrcdir}/configure \
4274 $(HOST_CONFIGARGS) $${srcdiroption} \
4277 .PHONY: all-readline maybe-all-readline
4279 all-readline: configure-readline
4280 @r=`${PWD}`; export r; \
4281 s=`cd $(srcdir); ${PWD}`; export s; \
4283 (cd readline; $(MAKE) $(FLAGS_TO_PASS) all)
4286 .PHONY: check-readline
4288 @r=`${PWD}`; export r; \
4289 s=`cd $(srcdir); ${PWD}`; export s; \
4291 (cd readline; $(MAKE) $(FLAGS_TO_PASS) check)
4295 .PHONY: install-readline maybe-install-readline
4296 maybe-install-readline:
4297 install-readline: installdirs
4298 @r=`${PWD}`; export r; \
4299 s=`cd $(srcdir); ${PWD}`; export s; \
4301 (cd readline; $(MAKE) $(FLAGS_TO_PASS) install)
4304 .PHONY: configure-release maybe-configure-release
4305 maybe-configure-release:
4306 configure-release: release/Makefile
4308 release/Makefile: config.status
4309 @[ -d release ] || mkdir release; \
4310 r=`${PWD}`; export r; \
4311 s=`cd $(srcdir); ${PWD}`; export s; \
4312 CC="$(CC)"; export CC; \
4313 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4314 CXX="$(CXX)"; export CXX; \
4315 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4316 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4317 AR="$(AR)"; export AR; \
4318 AS="$(AS)"; export AS; \
4319 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4320 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4321 LD="$(LD)"; export LD; \
4322 NM="$(NM)"; export NM; \
4323 RANLIB="$(RANLIB)"; export RANLIB; \
4324 WINDRES="$(WINDRES)"; export WINDRES; \
4325 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4326 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4328 echo Configuring in release; \
4329 cd release || exit 1; \
4332 srcdiroption="--srcdir=."; \
4334 /* | [A-Za-z]:[\\/]*) \
4335 srcdiroption="--srcdir=$(srcdir)/release"; \
4336 libsrcdir="$$s/release";; \
4338 srcdiroption="--srcdir=../$(srcdir)/release"; \
4339 libsrcdir="$$s/release";; \
4341 $(SHELL) $${libsrcdir}/configure \
4342 $(HOST_CONFIGARGS) $${srcdiroption} \
4345 .PHONY: all-release maybe-all-release
4347 all-release: configure-release
4348 @r=`${PWD}`; export r; \
4349 s=`cd $(srcdir); ${PWD}`; export s; \
4351 (cd release; $(MAKE) $(FLAGS_TO_PASS) all)
4354 .PHONY: check-release
4359 .PHONY: install-release maybe-install-release
4360 maybe-install-release:
4364 .PHONY: configure-recode maybe-configure-recode
4365 maybe-configure-recode:
4366 configure-recode: recode/Makefile
4368 recode/Makefile: config.status
4369 @[ -d recode ] || mkdir recode; \
4370 r=`${PWD}`; export r; \
4371 s=`cd $(srcdir); ${PWD}`; export s; \
4372 CC="$(CC)"; export CC; \
4373 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4374 CXX="$(CXX)"; export CXX; \
4375 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4376 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4377 AR="$(AR)"; export AR; \
4378 AS="$(AS)"; export AS; \
4379 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4380 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4381 LD="$(LD)"; export LD; \
4382 NM="$(NM)"; export NM; \
4383 RANLIB="$(RANLIB)"; export RANLIB; \
4384 WINDRES="$(WINDRES)"; export WINDRES; \
4385 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4386 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4388 echo Configuring in recode; \
4389 cd recode || exit 1; \
4392 srcdiroption="--srcdir=."; \
4394 /* | [A-Za-z]:[\\/]*) \
4395 srcdiroption="--srcdir=$(srcdir)/recode"; \
4396 libsrcdir="$$s/recode";; \
4398 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4399 libsrcdir="$$s/recode";; \
4401 $(SHELL) $${libsrcdir}/configure \
4402 $(HOST_CONFIGARGS) $${srcdiroption} \
4405 .PHONY: all-recode maybe-all-recode
4407 all-recode: configure-recode
4408 @r=`${PWD}`; export r; \
4409 s=`cd $(srcdir); ${PWD}`; export s; \
4411 (cd recode; $(MAKE) $(FLAGS_TO_PASS) all)
4414 .PHONY: check-recode
4416 @r=`${PWD}`; export r; \
4417 s=`cd $(srcdir); ${PWD}`; export s; \
4419 (cd recode; $(MAKE) $(FLAGS_TO_PASS) check)
4423 .PHONY: install-recode maybe-install-recode
4424 maybe-install-recode:
4425 install-recode: installdirs
4426 @r=`${PWD}`; export r; \
4427 s=`cd $(srcdir); ${PWD}`; export s; \
4429 (cd recode; $(MAKE) $(FLAGS_TO_PASS) install)
4432 .PHONY: configure-sed maybe-configure-sed
4433 maybe-configure-sed:
4434 configure-sed: sed/Makefile
4436 sed/Makefile: config.status
4437 @[ -d sed ] || mkdir sed; \
4438 r=`${PWD}`; export r; \
4439 s=`cd $(srcdir); ${PWD}`; export s; \
4440 CC="$(CC)"; export CC; \
4441 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4442 CXX="$(CXX)"; export CXX; \
4443 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4444 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4445 AR="$(AR)"; export AR; \
4446 AS="$(AS)"; export AS; \
4447 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4448 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4449 LD="$(LD)"; export LD; \
4450 NM="$(NM)"; export NM; \
4451 RANLIB="$(RANLIB)"; export RANLIB; \
4452 WINDRES="$(WINDRES)"; export WINDRES; \
4453 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4454 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4456 echo Configuring in sed; \
4460 srcdiroption="--srcdir=."; \
4462 /* | [A-Za-z]:[\\/]*) \
4463 srcdiroption="--srcdir=$(srcdir)/sed"; \
4464 libsrcdir="$$s/sed";; \
4466 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4467 libsrcdir="$$s/sed";; \
4469 $(SHELL) $${libsrcdir}/configure \
4470 $(HOST_CONFIGARGS) $${srcdiroption} \
4473 .PHONY: all-sed maybe-all-sed
4475 all-sed: configure-sed
4476 @r=`${PWD}`; export r; \
4477 s=`cd $(srcdir); ${PWD}`; export s; \
4479 (cd sed; $(MAKE) $(FLAGS_TO_PASS) all)
4484 @r=`${PWD}`; export r; \
4485 s=`cd $(srcdir); ${PWD}`; export s; \
4487 (cd sed; $(MAKE) $(FLAGS_TO_PASS) check)
4491 .PHONY: install-sed maybe-install-sed
4493 install-sed: installdirs
4494 @r=`${PWD}`; export r; \
4495 s=`cd $(srcdir); ${PWD}`; export s; \
4497 (cd sed; $(MAKE) $(FLAGS_TO_PASS) install)
4500 .PHONY: configure-send-pr maybe-configure-send-pr
4501 maybe-configure-send-pr:
4502 configure-send-pr: send-pr/Makefile
4504 send-pr/Makefile: config.status
4505 @[ -d send-pr ] || mkdir send-pr; \
4506 r=`${PWD}`; export r; \
4507 s=`cd $(srcdir); ${PWD}`; export s; \
4508 CC="$(CC)"; export CC; \
4509 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4510 CXX="$(CXX)"; export CXX; \
4511 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4512 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4513 AR="$(AR)"; export AR; \
4514 AS="$(AS)"; export AS; \
4515 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4516 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4517 LD="$(LD)"; export LD; \
4518 NM="$(NM)"; export NM; \
4519 RANLIB="$(RANLIB)"; export RANLIB; \
4520 WINDRES="$(WINDRES)"; export WINDRES; \
4521 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4522 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4524 echo Configuring in send-pr; \
4525 cd send-pr || exit 1; \
4528 srcdiroption="--srcdir=."; \
4530 /* | [A-Za-z]:[\\/]*) \
4531 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4532 libsrcdir="$$s/send-pr";; \
4534 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4535 libsrcdir="$$s/send-pr";; \
4537 $(SHELL) $${libsrcdir}/configure \
4538 $(HOST_CONFIGARGS) $${srcdiroption} \
4541 .PHONY: all-send-pr maybe-all-send-pr
4543 all-send-pr: configure-send-pr
4544 @r=`${PWD}`; export r; \
4545 s=`cd $(srcdir); ${PWD}`; export s; \
4547 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) all)
4550 .PHONY: check-send-pr
4552 @r=`${PWD}`; export r; \
4553 s=`cd $(srcdir); ${PWD}`; export s; \
4555 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) check)
4559 .PHONY: install-send-pr maybe-install-send-pr
4560 maybe-install-send-pr:
4561 install-send-pr: installdirs
4562 @r=`${PWD}`; export r; \
4563 s=`cd $(srcdir); ${PWD}`; export s; \
4565 (cd send-pr; $(MAKE) $(FLAGS_TO_PASS) install)
4568 .PHONY: configure-shellutils maybe-configure-shellutils
4569 maybe-configure-shellutils:
4570 configure-shellutils: shellutils/Makefile
4572 shellutils/Makefile: config.status
4573 @[ -d shellutils ] || mkdir shellutils; \
4574 r=`${PWD}`; export r; \
4575 s=`cd $(srcdir); ${PWD}`; export s; \
4576 CC="$(CC)"; export CC; \
4577 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4578 CXX="$(CXX)"; export CXX; \
4579 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4580 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4581 AR="$(AR)"; export AR; \
4582 AS="$(AS)"; export AS; \
4583 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4584 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4585 LD="$(LD)"; export LD; \
4586 NM="$(NM)"; export NM; \
4587 RANLIB="$(RANLIB)"; export RANLIB; \
4588 WINDRES="$(WINDRES)"; export WINDRES; \
4589 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4590 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4592 echo Configuring in shellutils; \
4593 cd shellutils || exit 1; \
4596 srcdiroption="--srcdir=."; \
4598 /* | [A-Za-z]:[\\/]*) \
4599 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4600 libsrcdir="$$s/shellutils";; \
4602 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4603 libsrcdir="$$s/shellutils";; \
4605 $(SHELL) $${libsrcdir}/configure \
4606 $(HOST_CONFIGARGS) $${srcdiroption} \
4609 .PHONY: all-shellutils maybe-all-shellutils
4610 maybe-all-shellutils:
4611 all-shellutils: configure-shellutils
4612 @r=`${PWD}`; export r; \
4613 s=`cd $(srcdir); ${PWD}`; export s; \
4615 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) all)
4618 .PHONY: check-shellutils
4620 @r=`${PWD}`; export r; \
4621 s=`cd $(srcdir); ${PWD}`; export s; \
4623 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) check)
4627 .PHONY: install-shellutils maybe-install-shellutils
4628 maybe-install-shellutils:
4629 install-shellutils: installdirs
4630 @r=`${PWD}`; export r; \
4631 s=`cd $(srcdir); ${PWD}`; export s; \
4633 (cd shellutils; $(MAKE) $(FLAGS_TO_PASS) install)
4636 .PHONY: configure-sid maybe-configure-sid
4637 maybe-configure-sid:
4638 configure-sid: sid/Makefile
4640 sid/Makefile: config.status
4641 @[ -d sid ] || mkdir sid; \
4642 r=`${PWD}`; export r; \
4643 s=`cd $(srcdir); ${PWD}`; export s; \
4644 CC="$(CC)"; export CC; \
4645 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4646 CXX="$(CXX)"; export CXX; \
4647 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4648 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4649 AR="$(AR)"; export AR; \
4650 AS="$(AS)"; export AS; \
4651 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4652 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4653 LD="$(LD)"; export LD; \
4654 NM="$(NM)"; export NM; \
4655 RANLIB="$(RANLIB)"; export RANLIB; \
4656 WINDRES="$(WINDRES)"; export WINDRES; \
4657 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4658 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4660 echo Configuring in sid; \
4664 srcdiroption="--srcdir=."; \
4666 /* | [A-Za-z]:[\\/]*) \
4667 srcdiroption="--srcdir=$(srcdir)/sid"; \
4668 libsrcdir="$$s/sid";; \
4670 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4671 libsrcdir="$$s/sid";; \
4673 $(SHELL) $${libsrcdir}/configure \
4674 $(HOST_CONFIGARGS) $${srcdiroption} \
4677 .PHONY: all-sid maybe-all-sid
4679 all-sid: configure-sid
4680 @r=`${PWD}`; export r; \
4681 s=`cd $(srcdir); ${PWD}`; export s; \
4683 (cd sid; $(MAKE) $(FLAGS_TO_PASS) all)
4688 @r=`${PWD}`; export r; \
4689 s=`cd $(srcdir); ${PWD}`; export s; \
4691 (cd sid; $(MAKE) $(FLAGS_TO_PASS) check)
4695 .PHONY: install-sid maybe-install-sid
4697 install-sid: installdirs
4698 @r=`${PWD}`; export r; \
4699 s=`cd $(srcdir); ${PWD}`; export s; \
4701 (cd sid; $(MAKE) $(FLAGS_TO_PASS) install)
4704 .PHONY: configure-sim maybe-configure-sim
4705 maybe-configure-sim:
4706 configure-sim: sim/Makefile
4708 sim/Makefile: config.status
4709 @[ -d sim ] || mkdir sim; \
4710 r=`${PWD}`; export r; \
4711 s=`cd $(srcdir); ${PWD}`; export s; \
4712 CC="$(CC)"; export CC; \
4713 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4714 CXX="$(CXX)"; export CXX; \
4715 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4716 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4717 AR="$(AR)"; export AR; \
4718 AS="$(AS)"; export AS; \
4719 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4720 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4721 LD="$(LD)"; export LD; \
4722 NM="$(NM)"; export NM; \
4723 RANLIB="$(RANLIB)"; export RANLIB; \
4724 WINDRES="$(WINDRES)"; export WINDRES; \
4725 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4726 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4728 echo Configuring in sim; \
4732 srcdiroption="--srcdir=."; \
4734 /* | [A-Za-z]:[\\/]*) \
4735 srcdiroption="--srcdir=$(srcdir)/sim"; \
4736 libsrcdir="$$s/sim";; \
4738 srcdiroption="--srcdir=../$(srcdir)/sim"; \
4739 libsrcdir="$$s/sim";; \
4741 $(SHELL) $${libsrcdir}/configure \
4742 $(HOST_CONFIGARGS) $${srcdiroption} \
4745 .PHONY: all-sim maybe-all-sim
4747 all-sim: configure-sim
4748 @r=`${PWD}`; export r; \
4749 s=`cd $(srcdir); ${PWD}`; export s; \
4751 (cd sim; $(MAKE) $(FLAGS_TO_PASS) all)
4756 @r=`${PWD}`; export r; \
4757 s=`cd $(srcdir); ${PWD}`; export s; \
4759 (cd sim; $(MAKE) $(FLAGS_TO_PASS) check)
4763 .PHONY: install-sim maybe-install-sim
4765 install-sim: installdirs
4766 @r=`${PWD}`; export r; \
4767 s=`cd $(srcdir); ${PWD}`; export s; \
4769 (cd sim; $(MAKE) $(FLAGS_TO_PASS) install)
4772 .PHONY: configure-snavigator maybe-configure-snavigator
4773 maybe-configure-snavigator:
4774 configure-snavigator: snavigator/Makefile
4776 snavigator/Makefile: config.status
4777 @[ -d snavigator ] || mkdir snavigator; \
4778 r=`${PWD}`; export r; \
4779 s=`cd $(srcdir); ${PWD}`; export s; \
4780 CC="$(CC)"; export CC; \
4781 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4782 CXX="$(CXX)"; export CXX; \
4783 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4784 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4785 AR="$(AR)"; export AR; \
4786 AS="$(AS)"; export AS; \
4787 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4788 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4789 LD="$(LD)"; export LD; \
4790 NM="$(NM)"; export NM; \
4791 RANLIB="$(RANLIB)"; export RANLIB; \
4792 WINDRES="$(WINDRES)"; export WINDRES; \
4793 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4794 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4796 echo Configuring in snavigator; \
4797 cd snavigator || exit 1; \
4800 srcdiroption="--srcdir=."; \
4802 /* | [A-Za-z]:[\\/]*) \
4803 srcdiroption="--srcdir=$(srcdir)/snavigator"; \
4804 libsrcdir="$$s/snavigator";; \
4806 srcdiroption="--srcdir=../$(srcdir)/snavigator"; \
4807 libsrcdir="$$s/snavigator";; \
4809 $(SHELL) $${libsrcdir}/configure \
4810 $(HOST_CONFIGARGS) $${srcdiroption} \
4813 .PHONY: all-snavigator maybe-all-snavigator
4814 maybe-all-snavigator:
4815 all-snavigator: configure-snavigator
4816 @r=`${PWD}`; export r; \
4817 s=`cd $(srcdir); ${PWD}`; export s; \
4819 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) all)
4822 .PHONY: check-snavigator
4824 @r=`${PWD}`; export r; \
4825 s=`cd $(srcdir); ${PWD}`; export s; \
4827 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) check)
4831 .PHONY: install-snavigator maybe-install-snavigator
4832 maybe-install-snavigator:
4833 install-snavigator: installdirs
4834 @r=`${PWD}`; export r; \
4835 s=`cd $(srcdir); ${PWD}`; export s; \
4837 (cd snavigator; $(MAKE) $(FLAGS_TO_PASS) install)
4840 .PHONY: configure-tar maybe-configure-tar
4841 maybe-configure-tar:
4842 configure-tar: tar/Makefile
4844 tar/Makefile: config.status
4845 @[ -d tar ] || mkdir tar; \
4846 r=`${PWD}`; export r; \
4847 s=`cd $(srcdir); ${PWD}`; export s; \
4848 CC="$(CC)"; export CC; \
4849 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4850 CXX="$(CXX)"; export CXX; \
4851 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4852 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4853 AR="$(AR)"; export AR; \
4854 AS="$(AS)"; export AS; \
4855 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4856 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4857 LD="$(LD)"; export LD; \
4858 NM="$(NM)"; export NM; \
4859 RANLIB="$(RANLIB)"; export RANLIB; \
4860 WINDRES="$(WINDRES)"; export WINDRES; \
4861 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4862 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4864 echo Configuring in tar; \
4868 srcdiroption="--srcdir=."; \
4870 /* | [A-Za-z]:[\\/]*) \
4871 srcdiroption="--srcdir=$(srcdir)/tar"; \
4872 libsrcdir="$$s/tar";; \
4874 srcdiroption="--srcdir=../$(srcdir)/tar"; \
4875 libsrcdir="$$s/tar";; \
4877 $(SHELL) $${libsrcdir}/configure \
4878 $(HOST_CONFIGARGS) $${srcdiroption} \
4881 .PHONY: all-tar maybe-all-tar
4883 all-tar: configure-tar
4884 @r=`${PWD}`; export r; \
4885 s=`cd $(srcdir); ${PWD}`; export s; \
4887 (cd tar; $(MAKE) $(FLAGS_TO_PASS) all)
4892 @r=`${PWD}`; export r; \
4893 s=`cd $(srcdir); ${PWD}`; export s; \
4895 (cd tar; $(MAKE) $(FLAGS_TO_PASS) check)
4899 .PHONY: install-tar maybe-install-tar
4901 install-tar: installdirs
4902 @r=`${PWD}`; export r; \
4903 s=`cd $(srcdir); ${PWD}`; export s; \
4905 (cd tar; $(MAKE) $(FLAGS_TO_PASS) install)
4908 .PHONY: configure-texinfo maybe-configure-texinfo
4909 maybe-configure-texinfo:
4910 configure-texinfo: texinfo/Makefile
4912 texinfo/Makefile: config.status
4913 @[ -d texinfo ] || mkdir texinfo; \
4914 r=`${PWD}`; export r; \
4915 s=`cd $(srcdir); ${PWD}`; export s; \
4916 CC="$(CC)"; export CC; \
4917 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4918 CXX="$(CXX)"; export CXX; \
4919 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4920 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4921 AR="$(AR)"; export AR; \
4922 AS="$(AS)"; export AS; \
4923 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4924 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4925 LD="$(LD)"; export LD; \
4926 NM="$(NM)"; export NM; \
4927 RANLIB="$(RANLIB)"; export RANLIB; \
4928 WINDRES="$(WINDRES)"; export WINDRES; \
4929 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4930 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4932 echo Configuring in texinfo; \
4933 cd texinfo || exit 1; \
4936 srcdiroption="--srcdir=."; \
4938 /* | [A-Za-z]:[\\/]*) \
4939 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
4940 libsrcdir="$$s/texinfo";; \
4942 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
4943 libsrcdir="$$s/texinfo";; \
4945 $(SHELL) $${libsrcdir}/configure \
4946 $(HOST_CONFIGARGS) $${srcdiroption} \
4949 .PHONY: all-texinfo maybe-all-texinfo
4951 all-texinfo: configure-texinfo
4952 @r=`${PWD}`; export r; \
4953 s=`cd $(srcdir); ${PWD}`; export s; \
4955 (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) all)
4958 .PHONY: check-texinfo
4960 @r=`${PWD}`; export r; \
4961 s=`cd $(srcdir); ${PWD}`; export s; \
4963 (cd texinfo; $(MAKE) $(FLAGS_TO_PASS) check)
4967 .PHONY: install-texinfo maybe-install-texinfo
4968 maybe-install-texinfo:
4972 .PHONY: configure-textutils maybe-configure-textutils
4973 maybe-configure-textutils:
4974 configure-textutils: textutils/Makefile
4976 textutils/Makefile: config.status
4977 @[ -d textutils ] || mkdir textutils; \
4978 r=`${PWD}`; export r; \
4979 s=`cd $(srcdir); ${PWD}`; export s; \
4980 CC="$(CC)"; export CC; \
4981 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4982 CXX="$(CXX)"; export CXX; \
4983 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4984 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4985 AR="$(AR)"; export AR; \
4986 AS="$(AS)"; export AS; \
4987 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4988 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4989 LD="$(LD)"; export LD; \
4990 NM="$(NM)"; export NM; \
4991 RANLIB="$(RANLIB)"; export RANLIB; \
4992 WINDRES="$(WINDRES)"; export WINDRES; \
4993 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4994 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4996 echo Configuring in textutils; \
4997 cd textutils || exit 1; \
5000 srcdiroption="--srcdir=."; \
5002 /* | [A-Za-z]:[\\/]*) \
5003 srcdiroption="--srcdir=$(srcdir)/textutils"; \
5004 libsrcdir="$$s/textutils";; \
5006 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
5007 libsrcdir="$$s/textutils";; \
5009 $(SHELL) $${libsrcdir}/configure \
5010 $(HOST_CONFIGARGS) $${srcdiroption} \
5013 .PHONY: all-textutils maybe-all-textutils
5014 maybe-all-textutils:
5015 all-textutils: configure-textutils
5016 @r=`${PWD}`; export r; \
5017 s=`cd $(srcdir); ${PWD}`; export s; \
5019 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) all)
5022 .PHONY: check-textutils
5024 @r=`${PWD}`; export r; \
5025 s=`cd $(srcdir); ${PWD}`; export s; \
5027 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) check)
5031 .PHONY: install-textutils maybe-install-textutils
5032 maybe-install-textutils:
5033 install-textutils: installdirs
5034 @r=`${PWD}`; export r; \
5035 s=`cd $(srcdir); ${PWD}`; export s; \
5037 (cd textutils; $(MAKE) $(FLAGS_TO_PASS) install)
5040 .PHONY: configure-time maybe-configure-time
5041 maybe-configure-time:
5042 configure-time: time/Makefile
5044 time/Makefile: config.status
5045 @[ -d time ] || mkdir time; \
5046 r=`${PWD}`; export r; \
5047 s=`cd $(srcdir); ${PWD}`; export s; \
5048 CC="$(CC)"; export CC; \
5049 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5050 CXX="$(CXX)"; export CXX; \
5051 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5052 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5053 AR="$(AR)"; export AR; \
5054 AS="$(AS)"; export AS; \
5055 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5056 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5057 LD="$(LD)"; export LD; \
5058 NM="$(NM)"; export NM; \
5059 RANLIB="$(RANLIB)"; export RANLIB; \
5060 WINDRES="$(WINDRES)"; export WINDRES; \
5061 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5062 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5064 echo Configuring in time; \
5065 cd time || exit 1; \
5068 srcdiroption="--srcdir=."; \
5070 /* | [A-Za-z]:[\\/]*) \
5071 srcdiroption="--srcdir=$(srcdir)/time"; \
5072 libsrcdir="$$s/time";; \
5074 srcdiroption="--srcdir=../$(srcdir)/time"; \
5075 libsrcdir="$$s/time";; \
5077 $(SHELL) $${libsrcdir}/configure \
5078 $(HOST_CONFIGARGS) $${srcdiroption} \
5081 .PHONY: all-time maybe-all-time
5083 all-time: configure-time
5084 @r=`${PWD}`; export r; \
5085 s=`cd $(srcdir); ${PWD}`; export s; \
5087 (cd time; $(MAKE) $(FLAGS_TO_PASS) all)
5092 @r=`${PWD}`; export r; \
5093 s=`cd $(srcdir); ${PWD}`; export s; \
5095 (cd time; $(MAKE) $(FLAGS_TO_PASS) check)
5099 .PHONY: install-time maybe-install-time
5101 install-time: installdirs
5102 @r=`${PWD}`; export r; \
5103 s=`cd $(srcdir); ${PWD}`; export s; \
5105 (cd time; $(MAKE) $(FLAGS_TO_PASS) install)
5108 .PHONY: configure-uudecode maybe-configure-uudecode
5109 maybe-configure-uudecode:
5110 configure-uudecode: uudecode/Makefile
5112 uudecode/Makefile: config.status
5113 @[ -d uudecode ] || mkdir uudecode; \
5114 r=`${PWD}`; export r; \
5115 s=`cd $(srcdir); ${PWD}`; export s; \
5116 CC="$(CC)"; export CC; \
5117 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5118 CXX="$(CXX)"; export CXX; \
5119 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5120 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5121 AR="$(AR)"; export AR; \
5122 AS="$(AS)"; export AS; \
5123 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5124 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5125 LD="$(LD)"; export LD; \
5126 NM="$(NM)"; export NM; \
5127 RANLIB="$(RANLIB)"; export RANLIB; \
5128 WINDRES="$(WINDRES)"; export WINDRES; \
5129 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5130 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5132 echo Configuring in uudecode; \
5133 cd uudecode || exit 1; \
5136 srcdiroption="--srcdir=."; \
5138 /* | [A-Za-z]:[\\/]*) \
5139 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
5140 libsrcdir="$$s/uudecode";; \
5142 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
5143 libsrcdir="$$s/uudecode";; \
5145 $(SHELL) $${libsrcdir}/configure \
5146 $(HOST_CONFIGARGS) $${srcdiroption} \
5149 .PHONY: all-uudecode maybe-all-uudecode
5151 all-uudecode: configure-uudecode
5152 @r=`${PWD}`; export r; \
5153 s=`cd $(srcdir); ${PWD}`; export s; \
5155 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) all)
5158 .PHONY: check-uudecode
5160 @r=`${PWD}`; export r; \
5161 s=`cd $(srcdir); ${PWD}`; export s; \
5163 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) check)
5167 .PHONY: install-uudecode maybe-install-uudecode
5168 maybe-install-uudecode:
5169 install-uudecode: installdirs
5170 @r=`${PWD}`; export r; \
5171 s=`cd $(srcdir); ${PWD}`; export s; \
5173 (cd uudecode; $(MAKE) $(FLAGS_TO_PASS) install)
5176 .PHONY: configure-wdiff maybe-configure-wdiff
5177 maybe-configure-wdiff:
5178 configure-wdiff: wdiff/Makefile
5180 wdiff/Makefile: config.status
5181 @[ -d wdiff ] || mkdir wdiff; \
5182 r=`${PWD}`; export r; \
5183 s=`cd $(srcdir); ${PWD}`; export s; \
5184 CC="$(CC)"; export CC; \
5185 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5186 CXX="$(CXX)"; export CXX; \
5187 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5188 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5189 AR="$(AR)"; export AR; \
5190 AS="$(AS)"; export AS; \
5191 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5192 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5193 LD="$(LD)"; export LD; \
5194 NM="$(NM)"; export NM; \
5195 RANLIB="$(RANLIB)"; export RANLIB; \
5196 WINDRES="$(WINDRES)"; export WINDRES; \
5197 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5198 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5200 echo Configuring in wdiff; \
5201 cd wdiff || exit 1; \
5204 srcdiroption="--srcdir=."; \
5206 /* | [A-Za-z]:[\\/]*) \
5207 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
5208 libsrcdir="$$s/wdiff";; \
5210 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
5211 libsrcdir="$$s/wdiff";; \
5213 $(SHELL) $${libsrcdir}/configure \
5214 $(HOST_CONFIGARGS) $${srcdiroption} \
5217 .PHONY: all-wdiff maybe-all-wdiff
5219 all-wdiff: configure-wdiff
5220 @r=`${PWD}`; export r; \
5221 s=`cd $(srcdir); ${PWD}`; export s; \
5223 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) all)
5228 @r=`${PWD}`; export r; \
5229 s=`cd $(srcdir); ${PWD}`; export s; \
5231 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) check)
5235 .PHONY: install-wdiff maybe-install-wdiff
5236 maybe-install-wdiff:
5237 install-wdiff: installdirs
5238 @r=`${PWD}`; export r; \
5239 s=`cd $(srcdir); ${PWD}`; export s; \
5241 (cd wdiff; $(MAKE) $(FLAGS_TO_PASS) install)
5244 .PHONY: configure-zip maybe-configure-zip
5245 maybe-configure-zip:
5246 configure-zip: zip/Makefile
5248 zip/Makefile: config.status
5249 @[ -d zip ] || mkdir zip; \
5250 r=`${PWD}`; export r; \
5251 s=`cd $(srcdir); ${PWD}`; export s; \
5252 CC="$(CC)"; export CC; \
5253 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5254 CXX="$(CXX)"; export CXX; \
5255 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5256 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5257 AR="$(AR)"; export AR; \
5258 AS="$(AS)"; export AS; \
5259 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5260 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5261 LD="$(LD)"; export LD; \
5262 NM="$(NM)"; export NM; \
5263 RANLIB="$(RANLIB)"; export RANLIB; \
5264 WINDRES="$(WINDRES)"; export WINDRES; \
5265 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5266 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5268 echo Configuring in zip; \
5272 srcdiroption="--srcdir=."; \
5274 /* | [A-Za-z]:[\\/]*) \
5275 srcdiroption="--srcdir=$(srcdir)/zip"; \
5276 libsrcdir="$$s/zip";; \
5278 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5279 libsrcdir="$$s/zip";; \
5281 $(SHELL) $${libsrcdir}/configure \
5282 $(HOST_CONFIGARGS) $${srcdiroption} \
5285 .PHONY: all-zip maybe-all-zip
5287 all-zip: configure-zip
5288 @r=`${PWD}`; export r; \
5289 s=`cd $(srcdir); ${PWD}`; export s; \
5291 (cd zip; $(MAKE) $(FLAGS_TO_PASS) all)
5295 # This module is only tested in a native toolchain.
5297 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5298 r=`${PWD}`; export r; \
5299 s=`cd $(srcdir); ${PWD}`; export s; \
5301 (cd zip; $(MAKE) $(FLAGS_TO_PASS) check); \
5306 .PHONY: install-zip maybe-install-zip
5308 install-zip: installdirs
5309 @r=`${PWD}`; export r; \
5310 s=`cd $(srcdir); ${PWD}`; export s; \
5312 (cd zip; $(MAKE) $(FLAGS_TO_PASS) install)
5315 .PHONY: configure-zlib maybe-configure-zlib
5316 maybe-configure-zlib:
5317 configure-zlib: zlib/Makefile
5319 zlib/Makefile: config.status
5320 @[ -d zlib ] || mkdir zlib; \
5321 r=`${PWD}`; export r; \
5322 s=`cd $(srcdir); ${PWD}`; export s; \
5323 CC="$(CC)"; export CC; \
5324 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5325 CXX="$(CXX)"; export CXX; \
5326 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5327 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5328 AR="$(AR)"; export AR; \
5329 AS="$(AS)"; export AS; \
5330 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5331 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5332 LD="$(LD)"; export LD; \
5333 NM="$(NM)"; export NM; \
5334 RANLIB="$(RANLIB)"; export RANLIB; \
5335 WINDRES="$(WINDRES)"; export WINDRES; \
5336 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5337 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5339 echo Configuring in zlib; \
5340 cd zlib || exit 1; \
5343 srcdiroption="--srcdir=."; \
5345 /* | [A-Za-z]:[\\/]*) \
5346 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5347 libsrcdir="$$s/zlib";; \
5349 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5350 libsrcdir="$$s/zlib";; \
5352 $(SHELL) $${libsrcdir}/configure \
5353 $(HOST_CONFIGARGS) $${srcdiroption} \
5356 .PHONY: all-zlib maybe-all-zlib
5358 all-zlib: configure-zlib
5359 @r=`${PWD}`; export r; \
5360 s=`cd $(srcdir); ${PWD}`; export s; \
5362 (cd zlib; $(MAKE) $(FLAGS_TO_PASS) all)
5370 .PHONY: install-zlib maybe-install-zlib
5375 .PHONY: configure-gdb maybe-configure-gdb
5376 maybe-configure-gdb:
5377 configure-gdb: gdb/Makefile
5379 gdb/Makefile: config.status
5380 @[ -d gdb ] || mkdir gdb; \
5381 r=`${PWD}`; export r; \
5382 s=`cd $(srcdir); ${PWD}`; export s; \
5383 CC="$(CC)"; export CC; \
5384 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5385 CXX="$(CXX)"; export CXX; \
5386 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5387 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5388 AR="$(AR)"; export AR; \
5389 AS="$(AS)"; export AS; \
5390 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5391 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5392 LD="$(LD)"; export LD; \
5393 NM="$(NM)"; export NM; \
5394 RANLIB="$(RANLIB)"; export RANLIB; \
5395 WINDRES="$(WINDRES)"; export WINDRES; \
5396 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5397 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5399 echo Configuring in gdb; \
5403 srcdiroption="--srcdir=."; \
5405 /* | [A-Za-z]:[\\/]*) \
5406 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5407 libsrcdir="$$s/gdb";; \
5409 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5410 libsrcdir="$$s/gdb";; \
5412 $(SHELL) $${libsrcdir}/configure \
5413 $(HOST_CONFIGARGS) $${srcdiroption} \
5416 .PHONY: all-gdb maybe-all-gdb
5418 all-gdb: configure-gdb
5419 @r=`${PWD}`; export r; \
5420 s=`cd $(srcdir); ${PWD}`; export s; \
5422 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5427 @r=`${PWD}`; export r; \
5428 s=`cd $(srcdir); ${PWD}`; export s; \
5430 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5434 .PHONY: install-gdb maybe-install-gdb
5436 install-gdb: installdirs
5437 @r=`${PWD}`; export r; \
5438 s=`cd $(srcdir); ${PWD}`; export s; \
5440 (cd gdb; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5443 .PHONY: configure-expect maybe-configure-expect
5444 maybe-configure-expect:
5445 configure-expect: expect/Makefile
5447 expect/Makefile: config.status
5448 @[ -d expect ] || mkdir expect; \
5449 r=`${PWD}`; export r; \
5450 s=`cd $(srcdir); ${PWD}`; export s; \
5451 CC="$(CC)"; export CC; \
5452 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5453 CXX="$(CXX)"; export CXX; \
5454 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5455 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5456 AR="$(AR)"; export AR; \
5457 AS="$(AS)"; export AS; \
5458 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5459 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5460 LD="$(LD)"; export LD; \
5461 NM="$(NM)"; export NM; \
5462 RANLIB="$(RANLIB)"; export RANLIB; \
5463 WINDRES="$(WINDRES)"; export WINDRES; \
5464 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5465 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5467 echo Configuring in expect; \
5468 cd expect || exit 1; \
5471 srcdiroption="--srcdir=."; \
5473 /* | [A-Za-z]:[\\/]*) \
5474 srcdiroption="--srcdir=$(srcdir)/expect"; \
5475 libsrcdir="$$s/expect";; \
5477 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5478 libsrcdir="$$s/expect";; \
5480 $(SHELL) $${libsrcdir}/configure \
5481 $(HOST_CONFIGARGS) $${srcdiroption} \
5484 .PHONY: all-expect maybe-all-expect
5486 all-expect: configure-expect
5487 @r=`${PWD}`; export r; \
5488 s=`cd $(srcdir); ${PWD}`; export s; \
5490 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5493 .PHONY: check-expect
5495 @r=`${PWD}`; export r; \
5496 s=`cd $(srcdir); ${PWD}`; export s; \
5498 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5502 .PHONY: install-expect maybe-install-expect
5503 maybe-install-expect:
5504 install-expect: installdirs
5505 @r=`${PWD}`; export r; \
5506 s=`cd $(srcdir); ${PWD}`; export s; \
5508 (cd expect; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5511 .PHONY: configure-guile maybe-configure-guile
5512 maybe-configure-guile:
5513 configure-guile: guile/Makefile
5515 guile/Makefile: config.status
5516 @[ -d guile ] || mkdir guile; \
5517 r=`${PWD}`; export r; \
5518 s=`cd $(srcdir); ${PWD}`; export s; \
5519 CC="$(CC)"; export CC; \
5520 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5521 CXX="$(CXX)"; export CXX; \
5522 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5523 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5524 AR="$(AR)"; export AR; \
5525 AS="$(AS)"; export AS; \
5526 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5527 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5528 LD="$(LD)"; export LD; \
5529 NM="$(NM)"; export NM; \
5530 RANLIB="$(RANLIB)"; export RANLIB; \
5531 WINDRES="$(WINDRES)"; export WINDRES; \
5532 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5533 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5535 echo Configuring in guile; \
5536 cd guile || exit 1; \
5539 srcdiroption="--srcdir=."; \
5541 /* | [A-Za-z]:[\\/]*) \
5542 srcdiroption="--srcdir=$(srcdir)/guile"; \
5543 libsrcdir="$$s/guile";; \
5545 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5546 libsrcdir="$$s/guile";; \
5548 $(SHELL) $${libsrcdir}/configure \
5549 $(HOST_CONFIGARGS) $${srcdiroption} \
5552 .PHONY: all-guile maybe-all-guile
5554 all-guile: configure-guile
5555 @r=`${PWD}`; export r; \
5556 s=`cd $(srcdir); ${PWD}`; export s; \
5558 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5563 @r=`${PWD}`; export r; \
5564 s=`cd $(srcdir); ${PWD}`; export s; \
5566 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5570 .PHONY: install-guile maybe-install-guile
5571 maybe-install-guile:
5572 install-guile: installdirs
5573 @r=`${PWD}`; export r; \
5574 s=`cd $(srcdir); ${PWD}`; export s; \
5576 (cd guile; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5579 .PHONY: configure-tclX maybe-configure-tclX
5580 maybe-configure-tclX:
5581 configure-tclX: tclX/Makefile
5583 tclX/Makefile: config.status
5584 @[ -d tclX ] || mkdir tclX; \
5585 r=`${PWD}`; export r; \
5586 s=`cd $(srcdir); ${PWD}`; export s; \
5587 CC="$(CC)"; export CC; \
5588 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5589 CXX="$(CXX)"; export CXX; \
5590 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5591 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5592 AR="$(AR)"; export AR; \
5593 AS="$(AS)"; export AS; \
5594 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5595 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5596 LD="$(LD)"; export LD; \
5597 NM="$(NM)"; export NM; \
5598 RANLIB="$(RANLIB)"; export RANLIB; \
5599 WINDRES="$(WINDRES)"; export WINDRES; \
5600 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5601 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5603 echo Configuring in tclX; \
5604 cd tclX || exit 1; \
5607 srcdiroption="--srcdir=."; \
5609 /* | [A-Za-z]:[\\/]*) \
5610 srcdiroption="--srcdir=$(srcdir)/tclX"; \
5611 libsrcdir="$$s/tclX";; \
5613 srcdiroption="--srcdir=../$(srcdir)/tclX"; \
5614 libsrcdir="$$s/tclX";; \
5616 $(SHELL) $${libsrcdir}/configure \
5617 $(HOST_CONFIGARGS) $${srcdiroption} \
5620 .PHONY: all-tclX maybe-all-tclX
5622 all-tclX: configure-tclX
5623 @r=`${PWD}`; export r; \
5624 s=`cd $(srcdir); ${PWD}`; export s; \
5626 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5631 @r=`${PWD}`; export r; \
5632 s=`cd $(srcdir); ${PWD}`; export s; \
5634 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5638 .PHONY: install-tclX maybe-install-tclX
5640 install-tclX: installdirs
5641 @r=`${PWD}`; export r; \
5642 s=`cd $(srcdir); ${PWD}`; export s; \
5644 (cd tclX; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5647 .PHONY: configure-tk maybe-configure-tk
5649 configure-tk: tk/Makefile
5651 tk/Makefile: config.status
5652 @[ -d tk ] || mkdir tk; \
5653 r=`${PWD}`; export r; \
5654 s=`cd $(srcdir); ${PWD}`; export s; \
5655 CC="$(CC)"; export CC; \
5656 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5657 CXX="$(CXX)"; export CXX; \
5658 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5659 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5660 AR="$(AR)"; export AR; \
5661 AS="$(AS)"; export AS; \
5662 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5663 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5664 LD="$(LD)"; export LD; \
5665 NM="$(NM)"; export NM; \
5666 RANLIB="$(RANLIB)"; export RANLIB; \
5667 WINDRES="$(WINDRES)"; export WINDRES; \
5668 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5669 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5671 echo Configuring in tk; \
5675 srcdiroption="--srcdir=."; \
5677 /* | [A-Za-z]:[\\/]*) \
5678 srcdiroption="--srcdir=$(srcdir)/tk"; \
5679 libsrcdir="$$s/tk";; \
5681 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5682 libsrcdir="$$s/tk";; \
5684 $(SHELL) $${libsrcdir}/configure \
5685 $(HOST_CONFIGARGS) $${srcdiroption} \
5688 .PHONY: all-tk maybe-all-tk
5690 all-tk: configure-tk
5691 @r=`${PWD}`; export r; \
5692 s=`cd $(srcdir); ${PWD}`; export s; \
5694 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5699 @r=`${PWD}`; export r; \
5700 s=`cd $(srcdir); ${PWD}`; export s; \
5702 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5706 .PHONY: install-tk maybe-install-tk
5708 install-tk: installdirs
5709 @r=`${PWD}`; export r; \
5710 s=`cd $(srcdir); ${PWD}`; export s; \
5712 (cd tk; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5715 .PHONY: configure-tix maybe-configure-tix
5716 maybe-configure-tix:
5717 configure-tix: tix/Makefile
5719 tix/Makefile: config.status
5720 @[ -d tix ] || mkdir tix; \
5721 r=`${PWD}`; export r; \
5722 s=`cd $(srcdir); ${PWD}`; export s; \
5723 CC="$(CC)"; export CC; \
5724 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5725 CXX="$(CXX)"; export CXX; \
5726 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5727 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5728 AR="$(AR)"; export AR; \
5729 AS="$(AS)"; export AS; \
5730 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5731 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5732 LD="$(LD)"; export LD; \
5733 NM="$(NM)"; export NM; \
5734 RANLIB="$(RANLIB)"; export RANLIB; \
5735 WINDRES="$(WINDRES)"; export WINDRES; \
5736 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5737 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5739 echo Configuring in tix; \
5743 srcdiroption="--srcdir=."; \
5745 /* | [A-Za-z]:[\\/]*) \
5746 srcdiroption="--srcdir=$(srcdir)/tix"; \
5747 libsrcdir="$$s/tix";; \
5749 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5750 libsrcdir="$$s/tix";; \
5752 $(SHELL) $${libsrcdir}/configure \
5753 $(HOST_CONFIGARGS) $${srcdiroption} \
5756 .PHONY: all-tix maybe-all-tix
5758 all-tix: configure-tix
5759 @r=`${PWD}`; export r; \
5760 s=`cd $(srcdir); ${PWD}`; export s; \
5762 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5767 @r=`${PWD}`; export r; \
5768 s=`cd $(srcdir); ${PWD}`; export s; \
5770 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5774 .PHONY: install-tix maybe-install-tix
5776 install-tix: installdirs
5777 @r=`${PWD}`; export r; \
5778 s=`cd $(srcdir); ${PWD}`; export s; \
5780 (cd tix; $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5783 .PHONY: configure-libtermcap maybe-configure-libtermcap
5784 maybe-configure-libtermcap:
5785 configure-libtermcap: libtermcap/Makefile
5787 libtermcap/Makefile: config.status
5788 @[ -d libtermcap ] || mkdir libtermcap; \
5789 r=`${PWD}`; export r; \
5790 s=`cd $(srcdir); ${PWD}`; export s; \
5791 CC="$(CC)"; export CC; \
5792 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5793 CXX="$(CXX)"; export CXX; \
5794 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5795 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5796 AR="$(AR)"; export AR; \
5797 AS="$(AS)"; export AS; \
5798 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5799 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5800 LD="$(LD)"; export LD; \
5801 NM="$(NM)"; export NM; \
5802 RANLIB="$(RANLIB)"; export RANLIB; \
5803 WINDRES="$(WINDRES)"; export WINDRES; \
5804 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5805 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5807 echo Configuring in libtermcap; \
5808 cd libtermcap || exit 1; \
5811 srcdiroption="--srcdir=."; \
5813 /* | [A-Za-z]:[\\/]*) \
5814 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5815 libsrcdir="$$s/libtermcap";; \
5817 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5818 libsrcdir="$$s/libtermcap";; \
5820 $(SHELL) $${libsrcdir}/configure \
5821 $(HOST_CONFIGARGS) $${srcdiroption} \
5824 .PHONY: all-libtermcap maybe-all-libtermcap
5825 maybe-all-libtermcap:
5826 all-libtermcap: configure-libtermcap
5827 @r=`${PWD}`; export r; \
5828 s=`cd $(srcdir); ${PWD}`; export s; \
5830 (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) all)
5833 .PHONY: check-libtermcap
5838 .PHONY: install-libtermcap maybe-install-libtermcap
5839 maybe-install-libtermcap:
5840 install-libtermcap: installdirs
5841 @r=`${PWD}`; export r; \
5842 s=`cd $(srcdir); ${PWD}`; export s; \
5844 (cd libtermcap; $(MAKE) $(FLAGS_TO_PASS) install)
5847 .PHONY: configure-utils maybe-configure-utils
5848 maybe-configure-utils:
5849 configure-utils: utils/Makefile
5851 utils/Makefile: config.status
5852 @[ -d utils ] || mkdir utils; \
5853 r=`${PWD}`; export r; \
5854 s=`cd $(srcdir); ${PWD}`; export s; \
5855 CC="$(CC)"; export CC; \
5856 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5857 CXX="$(CXX)"; export CXX; \
5858 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5859 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5860 AR="$(AR)"; export AR; \
5861 AS="$(AS)"; export AS; \
5862 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5863 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5864 LD="$(LD)"; export LD; \
5865 NM="$(NM)"; export NM; \
5866 RANLIB="$(RANLIB)"; export RANLIB; \
5867 WINDRES="$(WINDRES)"; export WINDRES; \
5868 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5869 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5871 echo Configuring in utils; \
5872 cd utils || exit 1; \
5875 srcdiroption="--srcdir=."; \
5877 /* | [A-Za-z]:[\\/]*) \
5878 srcdiroption="--srcdir=$(srcdir)/utils"; \
5879 libsrcdir="$$s/utils";; \
5881 srcdiroption="--srcdir=../$(srcdir)/utils"; \
5882 libsrcdir="$$s/utils";; \
5884 $(SHELL) $${libsrcdir}/configure \
5885 $(HOST_CONFIGARGS) $${srcdiroption} \
5888 .PHONY: all-utils maybe-all-utils
5890 all-utils: configure-utils
5891 @r=`${PWD}`; export r; \
5892 s=`cd $(srcdir); ${PWD}`; export s; \
5894 (cd utils; $(MAKE) $(FLAGS_TO_PASS) all)
5902 .PHONY: install-utils maybe-install-utils
5903 maybe-install-utils:
5904 install-utils: installdirs
5905 @r=`${PWD}`; export r; \
5906 s=`cd $(srcdir); ${PWD}`; export s; \
5908 (cd utils; $(MAKE) $(FLAGS_TO_PASS) install)
5912 # ---------------------------------------
5913 # Modules which run on the target machine
5914 # ---------------------------------------
5916 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
5917 maybe-configure-target-libstdc++-v3:
5918 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/Makefile
5920 # Don't manually override CC_FOR_TARGET at make time; get it set right
5921 # at configure time. Otherwise multilibs may be wrong.
5922 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: maybe-all-gcc
5923 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5924 r=`${PWD}`; export r; \
5925 echo "Configuring multilibs for libstdc++-v3"; \
5926 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.out 2> /dev/null
5928 $(TARGET_SUBDIR)/libstdc++-v3/Makefile: config.status $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5929 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5930 r=`${PWD}`; export r; \
5931 s=`cd $(srcdir); ${PWD}`; export s; \
5933 AR="$(AR_FOR_TARGET)"; export AR; \
5934 AS="$(AS_FOR_TARGET)"; export AS; \
5935 CC="$(CC_FOR_TARGET)"; export CC; \
5936 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5937 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
5938 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
5939 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5940 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5941 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5942 LD="$(LD_FOR_TARGET)"; export LD; \
5943 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5944 NM="$(NM_FOR_TARGET)"; export NM; \
5945 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5946 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5947 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
5948 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
5950 /* | [A-Za-z]:[\\/]*) \
5951 topdir=$(srcdir) ;; \
5953 case "$(TARGET_SUBDIR)" in \
5954 .) topdir="../$(srcdir)" ;; \
5955 *) topdir="../../$(srcdir)" ;; \
5958 if [ "$(srcdir)" = "." ] ; then \
5959 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5960 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
5961 if [ -f Makefile ]; then \
5962 if $(MAKE) distclean; then \
5976 srcdiroption="--srcdir=."; \
5979 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
5980 libsrcdir="$$s/libstdc++-v3"; \
5982 rm -f no-such-file || : ; \
5983 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5984 $(TARGET_CONFIGARGS) $${srcdiroption} \
5985 --with-target-subdir="$(TARGET_SUBDIR)" \
5988 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
5989 maybe-all-target-libstdc++-v3:
5990 all-target-libstdc++-v3: configure-target-libstdc++-v3
5991 @r=`${PWD}`; export r; \
5992 s=`cd $(srcdir); ${PWD}`; export s; \
5994 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
5995 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
5997 .PHONY: check-target-libstdc++-v3
5998 check-target-libstdc++-v3:
5999 @r=`${PWD}`; export r; \
6000 s=`cd $(srcdir); ${PWD}`; export s; \
6002 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
6003 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6006 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
6007 maybe-install-target-libstdc++-v3:
6008 install-target-libstdc++-v3: installdirs
6009 @r=`${PWD}`; export r; \
6010 s=`cd $(srcdir); ${PWD}`; export s; \
6012 (cd $(TARGET_SUBDIR)/libstdc++-v3; \
6013 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6016 .PHONY: configure-target-newlib maybe-configure-target-newlib
6017 maybe-configure-target-newlib:
6018 configure-target-newlib: $(TARGET_SUBDIR)/newlib/Makefile
6020 # Don't manually override CC_FOR_TARGET at make time; get it set right
6021 # at configure time. Otherwise multilibs may be wrong.
6022 $(TARGET_SUBDIR)/newlib/multilib.out: maybe-all-gcc
6023 @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
6024 r=`${PWD}`; export r; \
6025 echo "Configuring multilibs for newlib"; \
6026 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.out 2> /dev/null
6028 $(TARGET_SUBDIR)/newlib/Makefile: config.status $(TARGET_SUBDIR)/newlib/multilib.out
6029 @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
6030 r=`${PWD}`; export r; \
6031 s=`cd $(srcdir); ${PWD}`; export s; \
6033 AR="$(AR_FOR_TARGET)"; export AR; \
6034 AS="$(AS_FOR_TARGET)"; export AS; \
6035 CC="$(CC_FOR_TARGET)"; export CC; \
6036 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6037 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6038 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6039 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6040 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6041 LD="$(LD_FOR_TARGET)"; export LD; \
6042 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6043 NM="$(NM_FOR_TARGET)"; export NM; \
6044 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6045 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6046 echo Configuring in $(TARGET_SUBDIR)/newlib; \
6047 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
6049 /* | [A-Za-z]:[\\/]*) \
6050 topdir=$(srcdir) ;; \
6052 case "$(TARGET_SUBDIR)" in \
6053 .) topdir="../$(srcdir)" ;; \
6054 *) topdir="../../$(srcdir)" ;; \
6057 if [ "$(srcdir)" = "." ] ; then \
6058 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6059 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
6060 if [ -f Makefile ]; then \
6061 if $(MAKE) distclean; then \
6075 srcdiroption="--srcdir=."; \
6078 srcdiroption="--srcdir=$${topdir}/newlib"; \
6079 libsrcdir="$$s/newlib"; \
6081 rm -f no-such-file || : ; \
6082 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6083 $(TARGET_CONFIGARGS) $${srcdiroption} \
6084 --with-target-subdir="$(TARGET_SUBDIR)" \
6087 .PHONY: all-target-newlib maybe-all-target-newlib
6088 maybe-all-target-newlib:
6089 all-target-newlib: configure-target-newlib
6090 @r=`${PWD}`; export r; \
6091 s=`cd $(srcdir); ${PWD}`; export s; \
6093 (cd $(TARGET_SUBDIR)/newlib; \
6094 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6096 .PHONY: check-target-newlib
6097 check-target-newlib:
6098 @r=`${PWD}`; export r; \
6099 s=`cd $(srcdir); ${PWD}`; export s; \
6101 (cd $(TARGET_SUBDIR)/newlib; \
6102 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6105 .PHONY: install-target-newlib maybe-install-target-newlib
6106 maybe-install-target-newlib:
6107 install-target-newlib: installdirs
6108 @r=`${PWD}`; export r; \
6109 s=`cd $(srcdir); ${PWD}`; export s; \
6111 (cd $(TARGET_SUBDIR)/newlib; \
6112 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6115 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
6116 maybe-configure-target-libf2c:
6117 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/Makefile
6119 # Don't manually override CC_FOR_TARGET at make time; get it set right
6120 # at configure time. Otherwise multilibs may be wrong.
6121 $(TARGET_SUBDIR)/libf2c/multilib.out: maybe-all-gcc
6122 @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
6123 r=`${PWD}`; export r; \
6124 echo "Configuring multilibs for libf2c"; \
6125 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libf2c/multilib.out 2> /dev/null
6127 $(TARGET_SUBDIR)/libf2c/Makefile: config.status $(TARGET_SUBDIR)/libf2c/multilib.out
6128 @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
6129 r=`${PWD}`; export r; \
6130 s=`cd $(srcdir); ${PWD}`; export s; \
6132 AR="$(AR_FOR_TARGET)"; export AR; \
6133 AS="$(AS_FOR_TARGET)"; export AS; \
6134 CC="$(CC_FOR_TARGET)"; export CC; \
6135 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6136 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6137 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6138 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6139 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6140 LD="$(LD_FOR_TARGET)"; export LD; \
6141 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6142 NM="$(NM_FOR_TARGET)"; export NM; \
6143 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6144 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6145 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
6146 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
6148 /* | [A-Za-z]:[\\/]*) \
6149 topdir=$(srcdir) ;; \
6151 case "$(TARGET_SUBDIR)" in \
6152 .) topdir="../$(srcdir)" ;; \
6153 *) topdir="../../$(srcdir)" ;; \
6156 if [ "$(srcdir)" = "." ] ; then \
6157 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6158 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
6159 if [ -f Makefile ]; then \
6160 if $(MAKE) distclean; then \
6174 srcdiroption="--srcdir=."; \
6177 srcdiroption="--srcdir=$${topdir}/libf2c"; \
6178 libsrcdir="$$s/libf2c"; \
6180 rm -f no-such-file || : ; \
6181 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6182 $(TARGET_CONFIGARGS) $${srcdiroption} \
6183 --with-target-subdir="$(TARGET_SUBDIR)" \
6186 .PHONY: all-target-libf2c maybe-all-target-libf2c
6187 maybe-all-target-libf2c:
6188 all-target-libf2c: configure-target-libf2c
6189 @r=`${PWD}`; export r; \
6190 s=`cd $(srcdir); ${PWD}`; export s; \
6192 (cd $(TARGET_SUBDIR)/libf2c; \
6193 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6195 .PHONY: check-target-libf2c
6196 check-target-libf2c:
6197 @r=`${PWD}`; export r; \
6198 s=`cd $(srcdir); ${PWD}`; export s; \
6200 (cd $(TARGET_SUBDIR)/libf2c; \
6201 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6204 .PHONY: install-target-libf2c maybe-install-target-libf2c
6205 maybe-install-target-libf2c:
6206 install-target-libf2c: installdirs
6207 @r=`${PWD}`; export r; \
6208 s=`cd $(srcdir); ${PWD}`; export s; \
6210 (cd $(TARGET_SUBDIR)/libf2c; \
6211 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6214 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
6215 maybe-configure-target-libobjc:
6216 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/Makefile
6218 # Don't manually override CC_FOR_TARGET at make time; get it set right
6219 # at configure time. Otherwise multilibs may be wrong.
6220 $(TARGET_SUBDIR)/libobjc/multilib.out: maybe-all-gcc
6221 @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
6222 r=`${PWD}`; export r; \
6223 echo "Configuring multilibs for libobjc"; \
6224 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.out 2> /dev/null
6226 $(TARGET_SUBDIR)/libobjc/Makefile: config.status $(TARGET_SUBDIR)/libobjc/multilib.out
6227 @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
6228 r=`${PWD}`; export r; \
6229 s=`cd $(srcdir); ${PWD}`; export s; \
6231 AR="$(AR_FOR_TARGET)"; export AR; \
6232 AS="$(AS_FOR_TARGET)"; export AS; \
6233 CC="$(CC_FOR_TARGET)"; export CC; \
6234 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6235 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6236 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6237 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6238 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6239 LD="$(LD_FOR_TARGET)"; export LD; \
6240 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6241 NM="$(NM_FOR_TARGET)"; export NM; \
6242 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6243 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6244 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
6245 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
6247 /* | [A-Za-z]:[\\/]*) \
6248 topdir=$(srcdir) ;; \
6250 case "$(TARGET_SUBDIR)" in \
6251 .) topdir="../$(srcdir)" ;; \
6252 *) topdir="../../$(srcdir)" ;; \
6255 if [ "$(srcdir)" = "." ] ; then \
6256 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6257 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
6258 if [ -f Makefile ]; then \
6259 if $(MAKE) distclean; then \
6273 srcdiroption="--srcdir=."; \
6276 srcdiroption="--srcdir=$${topdir}/libobjc"; \
6277 libsrcdir="$$s/libobjc"; \
6279 rm -f no-such-file || : ; \
6280 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6281 $(TARGET_CONFIGARGS) $${srcdiroption} \
6282 --with-target-subdir="$(TARGET_SUBDIR)" \
6285 .PHONY: all-target-libobjc maybe-all-target-libobjc
6286 maybe-all-target-libobjc:
6287 all-target-libobjc: configure-target-libobjc
6288 @r=`${PWD}`; export r; \
6289 s=`cd $(srcdir); ${PWD}`; export s; \
6291 (cd $(TARGET_SUBDIR)/libobjc; \
6292 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6294 .PHONY: check-target-libobjc
6295 check-target-libobjc:
6296 @r=`${PWD}`; export r; \
6297 s=`cd $(srcdir); ${PWD}`; export s; \
6299 (cd $(TARGET_SUBDIR)/libobjc; \
6300 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6303 .PHONY: install-target-libobjc maybe-install-target-libobjc
6304 maybe-install-target-libobjc:
6305 install-target-libobjc: installdirs
6306 @r=`${PWD}`; export r; \
6307 s=`cd $(srcdir); ${PWD}`; export s; \
6309 (cd $(TARGET_SUBDIR)/libobjc; \
6310 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6313 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6314 maybe-configure-target-libtermcap:
6315 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/Makefile
6317 # Don't manually override CC_FOR_TARGET at make time; get it set right
6318 # at configure time. Otherwise multilibs may be wrong.
6319 $(TARGET_SUBDIR)/libtermcap/multilib.out: maybe-all-gcc
6320 @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
6321 r=`${PWD}`; export r; \
6322 echo "Configuring multilibs for libtermcap"; \
6323 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.out 2> /dev/null
6325 $(TARGET_SUBDIR)/libtermcap/Makefile: config.status $(TARGET_SUBDIR)/libtermcap/multilib.out
6326 @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
6327 r=`${PWD}`; export r; \
6328 s=`cd $(srcdir); ${PWD}`; export s; \
6330 AR="$(AR_FOR_TARGET)"; export AR; \
6331 AS="$(AS_FOR_TARGET)"; export AS; \
6332 CC="$(CC_FOR_TARGET)"; export CC; \
6333 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6334 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6335 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6336 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6337 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6338 LD="$(LD_FOR_TARGET)"; export LD; \
6339 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6340 NM="$(NM_FOR_TARGET)"; export NM; \
6341 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6342 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6343 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6344 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6346 /* | [A-Za-z]:[\\/]*) \
6347 topdir=$(srcdir) ;; \
6349 case "$(TARGET_SUBDIR)" in \
6350 .) topdir="../$(srcdir)" ;; \
6351 *) topdir="../../$(srcdir)" ;; \
6354 if [ "$(srcdir)" = "." ] ; then \
6355 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6356 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6357 if [ -f Makefile ]; then \
6358 if $(MAKE) distclean; then \
6372 srcdiroption="--srcdir=."; \
6375 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6376 libsrcdir="$$s/libtermcap"; \
6378 rm -f no-such-file || : ; \
6379 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6380 $(TARGET_CONFIGARGS) $${srcdiroption} \
6381 --with-target-subdir="$(TARGET_SUBDIR)" \
6384 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
6385 maybe-all-target-libtermcap:
6386 all-target-libtermcap: configure-target-libtermcap
6387 @r=`${PWD}`; export r; \
6388 s=`cd $(srcdir); ${PWD}`; export s; \
6390 (cd $(TARGET_SUBDIR)/libtermcap; \
6391 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6393 # Dummy target for uncheckable module.
6394 .PHONY: check-target-libtermcap
6395 check-target-libtermcap:
6398 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
6399 maybe-install-target-libtermcap:
6400 install-target-libtermcap: installdirs
6401 @r=`${PWD}`; export r; \
6402 s=`cd $(srcdir); ${PWD}`; export s; \
6404 (cd $(TARGET_SUBDIR)/libtermcap; \
6405 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6408 .PHONY: configure-target-winsup maybe-configure-target-winsup
6409 maybe-configure-target-winsup:
6410 configure-target-winsup: $(TARGET_SUBDIR)/winsup/Makefile
6412 # Don't manually override CC_FOR_TARGET at make time; get it set right
6413 # at configure time. Otherwise multilibs may be wrong.
6414 $(TARGET_SUBDIR)/winsup/multilib.out: maybe-all-gcc
6415 @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
6416 r=`${PWD}`; export r; \
6417 echo "Configuring multilibs for winsup"; \
6418 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.out 2> /dev/null
6420 $(TARGET_SUBDIR)/winsup/Makefile: config.status $(TARGET_SUBDIR)/winsup/multilib.out
6421 @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
6422 r=`${PWD}`; export r; \
6423 s=`cd $(srcdir); ${PWD}`; export s; \
6425 AR="$(AR_FOR_TARGET)"; export AR; \
6426 AS="$(AS_FOR_TARGET)"; export AS; \
6427 CC="$(CC_FOR_TARGET)"; export CC; \
6428 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6429 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6430 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6431 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6432 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6433 LD="$(LD_FOR_TARGET)"; export LD; \
6434 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6435 NM="$(NM_FOR_TARGET)"; export NM; \
6436 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6437 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6438 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6439 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6441 /* | [A-Za-z]:[\\/]*) \
6442 topdir=$(srcdir) ;; \
6444 case "$(TARGET_SUBDIR)" in \
6445 .) topdir="../$(srcdir)" ;; \
6446 *) topdir="../../$(srcdir)" ;; \
6449 if [ "$(srcdir)" = "." ] ; then \
6450 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6451 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6452 if [ -f Makefile ]; then \
6453 if $(MAKE) distclean; then \
6467 srcdiroption="--srcdir=."; \
6470 srcdiroption="--srcdir=$${topdir}/winsup"; \
6471 libsrcdir="$$s/winsup"; \
6473 rm -f no-such-file || : ; \
6474 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6475 $(TARGET_CONFIGARGS) $${srcdiroption} \
6476 --with-target-subdir="$(TARGET_SUBDIR)" \
6479 .PHONY: all-target-winsup maybe-all-target-winsup
6480 maybe-all-target-winsup:
6481 all-target-winsup: configure-target-winsup
6482 @r=`${PWD}`; export r; \
6483 s=`cd $(srcdir); ${PWD}`; export s; \
6485 (cd $(TARGET_SUBDIR)/winsup; \
6486 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6488 .PHONY: check-target-winsup
6489 check-target-winsup:
6490 @r=`${PWD}`; export r; \
6491 s=`cd $(srcdir); ${PWD}`; export s; \
6493 (cd $(TARGET_SUBDIR)/winsup; \
6494 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6497 .PHONY: install-target-winsup maybe-install-target-winsup
6498 maybe-install-target-winsup:
6499 install-target-winsup: installdirs
6500 @r=`${PWD}`; export r; \
6501 s=`cd $(srcdir); ${PWD}`; export s; \
6503 (cd $(TARGET_SUBDIR)/winsup; \
6504 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6507 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
6508 maybe-configure-target-libgloss:
6509 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/Makefile
6511 # Don't manually override CC_FOR_TARGET at make time; get it set right
6512 # at configure time. Otherwise multilibs may be wrong.
6513 $(TARGET_SUBDIR)/libgloss/multilib.out: maybe-all-gcc
6514 @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
6515 r=`${PWD}`; export r; \
6516 echo "Configuring multilibs for libgloss"; \
6517 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.out 2> /dev/null
6519 $(TARGET_SUBDIR)/libgloss/Makefile: config.status $(TARGET_SUBDIR)/libgloss/multilib.out
6520 @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
6521 r=`${PWD}`; export r; \
6522 s=`cd $(srcdir); ${PWD}`; export s; \
6524 AR="$(AR_FOR_TARGET)"; export AR; \
6525 AS="$(AS_FOR_TARGET)"; export AS; \
6526 CC="$(CC_FOR_TARGET)"; export CC; \
6527 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6528 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6529 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6530 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6531 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6532 LD="$(LD_FOR_TARGET)"; export LD; \
6533 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6534 NM="$(NM_FOR_TARGET)"; export NM; \
6535 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6536 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6537 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6538 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6540 /* | [A-Za-z]:[\\/]*) \
6541 topdir=$(srcdir) ;; \
6543 case "$(TARGET_SUBDIR)" in \
6544 .) topdir="../$(srcdir)" ;; \
6545 *) topdir="../../$(srcdir)" ;; \
6548 if [ "$(srcdir)" = "." ] ; then \
6549 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6550 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6551 if [ -f Makefile ]; then \
6552 if $(MAKE) distclean; then \
6566 srcdiroption="--srcdir=."; \
6569 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6570 libsrcdir="$$s/libgloss"; \
6572 rm -f no-such-file || : ; \
6573 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6574 $(TARGET_CONFIGARGS) $${srcdiroption} \
6575 --with-target-subdir="$(TARGET_SUBDIR)" \
6578 .PHONY: all-target-libgloss maybe-all-target-libgloss
6579 maybe-all-target-libgloss:
6580 all-target-libgloss: configure-target-libgloss
6581 @r=`${PWD}`; export r; \
6582 s=`cd $(srcdir); ${PWD}`; export s; \
6584 (cd $(TARGET_SUBDIR)/libgloss; \
6585 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6587 # Dummy target for uncheckable module.
6588 .PHONY: check-target-libgloss
6589 check-target-libgloss:
6592 .PHONY: install-target-libgloss maybe-install-target-libgloss
6593 maybe-install-target-libgloss:
6594 install-target-libgloss: installdirs
6595 @r=`${PWD}`; export r; \
6596 s=`cd $(srcdir); ${PWD}`; export s; \
6598 (cd $(TARGET_SUBDIR)/libgloss; \
6599 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6602 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
6603 maybe-configure-target-libiberty:
6604 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/Makefile
6606 # Don't manually override CC_FOR_TARGET at make time; get it set right
6607 # at configure time. Otherwise multilibs may be wrong.
6608 $(TARGET_SUBDIR)/libiberty/multilib.out: maybe-all-gcc
6609 @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
6610 r=`${PWD}`; export r; \
6611 echo "Configuring multilibs for libiberty"; \
6612 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.out 2> /dev/null
6614 $(TARGET_SUBDIR)/libiberty/Makefile: config.status $(TARGET_SUBDIR)/libiberty/multilib.out
6615 @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
6616 r=`${PWD}`; export r; \
6617 s=`cd $(srcdir); ${PWD}`; export s; \
6619 AR="$(AR_FOR_TARGET)"; export AR; \
6620 AS="$(AS_FOR_TARGET)"; export AS; \
6621 CC="$(CC_FOR_TARGET)"; export CC; \
6622 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6623 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6624 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6625 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6626 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6627 LD="$(LD_FOR_TARGET)"; export LD; \
6628 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6629 NM="$(NM_FOR_TARGET)"; export NM; \
6630 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6631 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6632 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6633 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6635 /* | [A-Za-z]:[\\/]*) \
6636 topdir=$(srcdir) ;; \
6638 case "$(TARGET_SUBDIR)" in \
6639 .) topdir="../$(srcdir)" ;; \
6640 *) topdir="../../$(srcdir)" ;; \
6643 if [ "$(srcdir)" = "." ] ; then \
6644 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6645 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6646 if [ -f Makefile ]; then \
6647 if $(MAKE) distclean; then \
6661 srcdiroption="--srcdir=."; \
6664 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6665 libsrcdir="$$s/libiberty"; \
6667 rm -f no-such-file || : ; \
6668 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6669 $(TARGET_CONFIGARGS) $${srcdiroption} \
6670 --with-target-subdir="$(TARGET_SUBDIR)" \
6673 .PHONY: all-target-libiberty maybe-all-target-libiberty
6674 maybe-all-target-libiberty:
6675 all-target-libiberty: configure-target-libiberty
6676 @r=`${PWD}`; export r; \
6677 s=`cd $(srcdir); ${PWD}`; export s; \
6679 (cd $(TARGET_SUBDIR)/libiberty; \
6680 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6682 .PHONY: check-target-libiberty
6683 check-target-libiberty:
6684 @r=`${PWD}`; export r; \
6685 s=`cd $(srcdir); ${PWD}`; export s; \
6687 (cd $(TARGET_SUBDIR)/libiberty; \
6688 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6691 .PHONY: install-target-libiberty maybe-install-target-libiberty
6692 maybe-install-target-libiberty:
6693 install-target-libiberty: installdirs
6694 @r=`${PWD}`; export r; \
6695 s=`cd $(srcdir); ${PWD}`; export s; \
6697 (cd $(TARGET_SUBDIR)/libiberty; \
6698 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6701 .PHONY: configure-target-gperf maybe-configure-target-gperf
6702 maybe-configure-target-gperf:
6703 configure-target-gperf: $(TARGET_SUBDIR)/gperf/Makefile
6705 # Don't manually override CC_FOR_TARGET at make time; get it set right
6706 # at configure time. Otherwise multilibs may be wrong.
6707 $(TARGET_SUBDIR)/gperf/multilib.out: maybe-all-gcc
6708 @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
6709 r=`${PWD}`; export r; \
6710 echo "Configuring multilibs for gperf"; \
6711 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.out 2> /dev/null
6713 $(TARGET_SUBDIR)/gperf/Makefile: config.status $(TARGET_SUBDIR)/gperf/multilib.out
6714 @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
6715 r=`${PWD}`; export r; \
6716 s=`cd $(srcdir); ${PWD}`; export s; \
6718 AR="$(AR_FOR_TARGET)"; export AR; \
6719 AS="$(AS_FOR_TARGET)"; export AS; \
6720 CC="$(CC_FOR_TARGET)"; export CC; \
6721 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6722 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6723 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6724 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6725 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6726 LD="$(LD_FOR_TARGET)"; export LD; \
6727 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6728 NM="$(NM_FOR_TARGET)"; export NM; \
6729 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6730 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6731 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6732 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6734 /* | [A-Za-z]:[\\/]*) \
6735 topdir=$(srcdir) ;; \
6737 case "$(TARGET_SUBDIR)" in \
6738 .) topdir="../$(srcdir)" ;; \
6739 *) topdir="../../$(srcdir)" ;; \
6742 if [ "$(srcdir)" = "." ] ; then \
6743 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6744 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6745 if [ -f Makefile ]; then \
6746 if $(MAKE) distclean; then \
6760 srcdiroption="--srcdir=."; \
6763 srcdiroption="--srcdir=$${topdir}/gperf"; \
6764 libsrcdir="$$s/gperf"; \
6766 rm -f no-such-file || : ; \
6767 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6768 $(TARGET_CONFIGARGS) $${srcdiroption} \
6769 --with-target-subdir="$(TARGET_SUBDIR)" \
6772 .PHONY: all-target-gperf maybe-all-target-gperf
6773 maybe-all-target-gperf:
6774 all-target-gperf: configure-target-gperf
6775 @r=`${PWD}`; export r; \
6776 s=`cd $(srcdir); ${PWD}`; export s; \
6778 (cd $(TARGET_SUBDIR)/gperf; \
6779 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6781 .PHONY: check-target-gperf
6783 @r=`${PWD}`; export r; \
6784 s=`cd $(srcdir); ${PWD}`; export s; \
6786 (cd $(TARGET_SUBDIR)/gperf; \
6787 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6790 .PHONY: install-target-gperf maybe-install-target-gperf
6791 maybe-install-target-gperf:
6792 install-target-gperf: installdirs
6793 @r=`${PWD}`; export r; \
6794 s=`cd $(srcdir); ${PWD}`; export s; \
6796 (cd $(TARGET_SUBDIR)/gperf; \
6797 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6800 .PHONY: configure-target-examples maybe-configure-target-examples
6801 maybe-configure-target-examples:
6802 configure-target-examples: $(TARGET_SUBDIR)/examples/Makefile
6804 # Don't manually override CC_FOR_TARGET at make time; get it set right
6805 # at configure time. Otherwise multilibs may be wrong.
6806 $(TARGET_SUBDIR)/examples/multilib.out: maybe-all-gcc
6807 @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
6808 r=`${PWD}`; export r; \
6809 echo "Configuring multilibs for examples"; \
6810 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.out 2> /dev/null
6812 $(TARGET_SUBDIR)/examples/Makefile: config.status $(TARGET_SUBDIR)/examples/multilib.out
6813 @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
6814 r=`${PWD}`; export r; \
6815 s=`cd $(srcdir); ${PWD}`; export s; \
6817 AR="$(AR_FOR_TARGET)"; export AR; \
6818 AS="$(AS_FOR_TARGET)"; export AS; \
6819 CC="$(CC_FOR_TARGET)"; export CC; \
6820 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6821 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6822 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6823 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6824 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6825 LD="$(LD_FOR_TARGET)"; export LD; \
6826 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6827 NM="$(NM_FOR_TARGET)"; export NM; \
6828 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6829 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6830 echo Configuring in $(TARGET_SUBDIR)/examples; \
6831 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
6833 /* | [A-Za-z]:[\\/]*) \
6834 topdir=$(srcdir) ;; \
6836 case "$(TARGET_SUBDIR)" in \
6837 .) topdir="../$(srcdir)" ;; \
6838 *) topdir="../../$(srcdir)" ;; \
6841 if [ "$(srcdir)" = "." ] ; then \
6842 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6843 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
6844 if [ -f Makefile ]; then \
6845 if $(MAKE) distclean; then \
6859 srcdiroption="--srcdir=."; \
6862 srcdiroption="--srcdir=$${topdir}/examples"; \
6863 libsrcdir="$$s/examples"; \
6865 rm -f no-such-file || : ; \
6866 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6867 $(TARGET_CONFIGARGS) $${srcdiroption} \
6868 --with-target-subdir="$(TARGET_SUBDIR)" \
6871 .PHONY: all-target-examples maybe-all-target-examples
6872 maybe-all-target-examples:
6873 all-target-examples: configure-target-examples
6874 @r=`${PWD}`; export r; \
6875 s=`cd $(srcdir); ${PWD}`; export s; \
6877 (cd $(TARGET_SUBDIR)/examples; \
6878 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6880 # Dummy target for uncheckable module.
6881 .PHONY: check-target-examples
6882 check-target-examples:
6885 .PHONY: install-target-examples maybe-install-target-examples
6886 maybe-install-target-examples:
6887 # Dummy target for uninstallable.
6888 install-target-examples:
6891 .PHONY: configure-target-libffi maybe-configure-target-libffi
6892 maybe-configure-target-libffi:
6893 configure-target-libffi: $(TARGET_SUBDIR)/libffi/Makefile
6895 # Don't manually override CC_FOR_TARGET at make time; get it set right
6896 # at configure time. Otherwise multilibs may be wrong.
6897 $(TARGET_SUBDIR)/libffi/multilib.out: maybe-all-gcc
6898 @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
6899 r=`${PWD}`; export r; \
6900 echo "Configuring multilibs for libffi"; \
6901 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.out 2> /dev/null
6903 $(TARGET_SUBDIR)/libffi/Makefile: config.status $(TARGET_SUBDIR)/libffi/multilib.out
6904 @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
6905 r=`${PWD}`; export r; \
6906 s=`cd $(srcdir); ${PWD}`; export s; \
6908 AR="$(AR_FOR_TARGET)"; export AR; \
6909 AS="$(AS_FOR_TARGET)"; export AS; \
6910 CC="$(CC_FOR_TARGET)"; export CC; \
6911 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6912 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6913 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6914 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6915 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6916 LD="$(LD_FOR_TARGET)"; export LD; \
6917 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6918 NM="$(NM_FOR_TARGET)"; export NM; \
6919 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6920 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6921 echo Configuring in $(TARGET_SUBDIR)/libffi; \
6922 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
6924 /* | [A-Za-z]:[\\/]*) \
6925 topdir=$(srcdir) ;; \
6927 case "$(TARGET_SUBDIR)" in \
6928 .) topdir="../$(srcdir)" ;; \
6929 *) topdir="../../$(srcdir)" ;; \
6932 if [ "$(srcdir)" = "." ] ; then \
6933 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6934 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
6935 if [ -f Makefile ]; then \
6936 if $(MAKE) distclean; then \
6950 srcdiroption="--srcdir=."; \
6953 srcdiroption="--srcdir=$${topdir}/libffi"; \
6954 libsrcdir="$$s/libffi"; \
6956 rm -f no-such-file || : ; \
6957 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6958 $(TARGET_CONFIGARGS) $${srcdiroption} \
6959 --with-target-subdir="$(TARGET_SUBDIR)" \
6962 .PHONY: all-target-libffi maybe-all-target-libffi
6963 maybe-all-target-libffi:
6964 all-target-libffi: configure-target-libffi
6965 @r=`${PWD}`; export r; \
6966 s=`cd $(srcdir); ${PWD}`; export s; \
6968 (cd $(TARGET_SUBDIR)/libffi; \
6969 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6971 .PHONY: check-target-libffi
6972 check-target-libffi:
6973 @r=`${PWD}`; export r; \
6974 s=`cd $(srcdir); ${PWD}`; export s; \
6976 (cd $(TARGET_SUBDIR)/libffi; \
6977 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6980 .PHONY: install-target-libffi maybe-install-target-libffi
6981 maybe-install-target-libffi:
6982 # Dummy target for uninstallable.
6983 install-target-libffi:
6986 .PHONY: configure-target-libjava maybe-configure-target-libjava
6987 maybe-configure-target-libjava:
6988 configure-target-libjava: $(TARGET_SUBDIR)/libjava/Makefile
6990 # Don't manually override CC_FOR_TARGET at make time; get it set right
6991 # at configure time. Otherwise multilibs may be wrong.
6992 $(TARGET_SUBDIR)/libjava/multilib.out: maybe-all-gcc
6993 @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
6994 r=`${PWD}`; export r; \
6995 echo "Configuring multilibs for libjava"; \
6996 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.out 2> /dev/null
6998 $(TARGET_SUBDIR)/libjava/Makefile: config.status $(TARGET_SUBDIR)/libjava/multilib.out
6999 @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
7000 r=`${PWD}`; export r; \
7001 s=`cd $(srcdir); ${PWD}`; export s; \
7003 AR="$(AR_FOR_TARGET)"; export AR; \
7004 AS="$(AS_FOR_TARGET)"; export AS; \
7005 CC="$(CC_FOR_TARGET)"; export CC; \
7006 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7007 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
7008 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
7009 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7010 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7011 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7012 LD="$(LD_FOR_TARGET)"; export LD; \
7013 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7014 NM="$(NM_FOR_TARGET)"; export NM; \
7015 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7016 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7017 echo Configuring in $(TARGET_SUBDIR)/libjava; \
7018 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
7020 /* | [A-Za-z]:[\\/]*) \
7021 topdir=$(srcdir) ;; \
7023 case "$(TARGET_SUBDIR)" in \
7024 .) topdir="../$(srcdir)" ;; \
7025 *) topdir="../../$(srcdir)" ;; \
7028 if [ "$(srcdir)" = "." ] ; then \
7029 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7030 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
7031 if [ -f Makefile ]; then \
7032 if $(MAKE) distclean; then \
7046 srcdiroption="--srcdir=."; \
7049 srcdiroption="--srcdir=$${topdir}/libjava"; \
7050 libsrcdir="$$s/libjava"; \
7052 rm -f no-such-file || : ; \
7053 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7054 $(TARGET_CONFIGARGS) $${srcdiroption} \
7055 --with-target-subdir="$(TARGET_SUBDIR)" \
7058 .PHONY: all-target-libjava maybe-all-target-libjava
7059 maybe-all-target-libjava:
7060 all-target-libjava: configure-target-libjava
7061 @r=`${PWD}`; export r; \
7062 s=`cd $(srcdir); ${PWD}`; export s; \
7064 (cd $(TARGET_SUBDIR)/libjava; \
7065 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
7067 .PHONY: check-target-libjava
7068 check-target-libjava:
7069 @r=`${PWD}`; export r; \
7070 s=`cd $(srcdir); ${PWD}`; export s; \
7072 (cd $(TARGET_SUBDIR)/libjava; \
7073 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
7076 .PHONY: install-target-libjava maybe-install-target-libjava
7077 maybe-install-target-libjava:
7078 install-target-libjava: installdirs
7079 @r=`${PWD}`; export r; \
7080 s=`cd $(srcdir); ${PWD}`; export s; \
7082 (cd $(TARGET_SUBDIR)/libjava; \
7083 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7086 .PHONY: configure-target-zlib maybe-configure-target-zlib
7087 maybe-configure-target-zlib:
7088 configure-target-zlib: $(TARGET_SUBDIR)/zlib/Makefile
7090 # Don't manually override CC_FOR_TARGET at make time; get it set right
7091 # at configure time. Otherwise multilibs may be wrong.
7092 $(TARGET_SUBDIR)/zlib/multilib.out: maybe-all-gcc
7093 @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
7094 r=`${PWD}`; export r; \
7095 echo "Configuring multilibs for zlib"; \
7096 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.out 2> /dev/null
7098 $(TARGET_SUBDIR)/zlib/Makefile: config.status $(TARGET_SUBDIR)/zlib/multilib.out
7099 @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
7100 r=`${PWD}`; export r; \
7101 s=`cd $(srcdir); ${PWD}`; export s; \
7103 AR="$(AR_FOR_TARGET)"; export AR; \
7104 AS="$(AS_FOR_TARGET)"; export AS; \
7105 CC="$(CC_FOR_TARGET)"; export CC; \
7106 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7107 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7108 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7109 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7110 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7111 LD="$(LD_FOR_TARGET)"; export LD; \
7112 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7113 NM="$(NM_FOR_TARGET)"; export NM; \
7114 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7115 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7116 echo Configuring in $(TARGET_SUBDIR)/zlib; \
7117 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
7119 /* | [A-Za-z]:[\\/]*) \
7120 topdir=$(srcdir) ;; \
7122 case "$(TARGET_SUBDIR)" in \
7123 .) topdir="../$(srcdir)" ;; \
7124 *) topdir="../../$(srcdir)" ;; \
7127 if [ "$(srcdir)" = "." ] ; then \
7128 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7129 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
7130 if [ -f Makefile ]; then \
7131 if $(MAKE) distclean; then \
7145 srcdiroption="--srcdir=."; \
7148 srcdiroption="--srcdir=$${topdir}/zlib"; \
7149 libsrcdir="$$s/zlib"; \
7151 rm -f no-such-file || : ; \
7152 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7153 $(TARGET_CONFIGARGS) $${srcdiroption} \
7154 --with-target-subdir="$(TARGET_SUBDIR)" \
7157 .PHONY: all-target-zlib maybe-all-target-zlib
7158 maybe-all-target-zlib:
7159 all-target-zlib: configure-target-zlib
7160 @r=`${PWD}`; export r; \
7161 s=`cd $(srcdir); ${PWD}`; export s; \
7163 (cd $(TARGET_SUBDIR)/zlib; \
7164 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7166 .PHONY: check-target-zlib
7168 @r=`${PWD}`; export r; \
7169 s=`cd $(srcdir); ${PWD}`; export s; \
7171 (cd $(TARGET_SUBDIR)/zlib; \
7172 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7175 .PHONY: install-target-zlib maybe-install-target-zlib
7176 maybe-install-target-zlib:
7177 install-target-zlib: installdirs
7178 @r=`${PWD}`; export r; \
7179 s=`cd $(srcdir); ${PWD}`; export s; \
7181 (cd $(TARGET_SUBDIR)/zlib; \
7182 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7185 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
7186 maybe-configure-target-boehm-gc:
7187 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/Makefile
7189 # Don't manually override CC_FOR_TARGET at make time; get it set right
7190 # at configure time. Otherwise multilibs may be wrong.
7191 $(TARGET_SUBDIR)/boehm-gc/multilib.out: maybe-all-gcc
7192 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
7193 r=`${PWD}`; export r; \
7194 echo "Configuring multilibs for boehm-gc"; \
7195 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.out 2> /dev/null
7197 $(TARGET_SUBDIR)/boehm-gc/Makefile: config.status $(TARGET_SUBDIR)/boehm-gc/multilib.out
7198 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
7199 r=`${PWD}`; export r; \
7200 s=`cd $(srcdir); ${PWD}`; export s; \
7202 AR="$(AR_FOR_TARGET)"; export AR; \
7203 AS="$(AS_FOR_TARGET)"; export AS; \
7204 CC="$(CC_FOR_TARGET)"; export CC; \
7205 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7206 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7207 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7208 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7209 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7210 LD="$(LD_FOR_TARGET)"; export LD; \
7211 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7212 NM="$(NM_FOR_TARGET)"; export NM; \
7213 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7214 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7215 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
7216 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
7218 /* | [A-Za-z]:[\\/]*) \
7219 topdir=$(srcdir) ;; \
7221 case "$(TARGET_SUBDIR)" in \
7222 .) topdir="../$(srcdir)" ;; \
7223 *) topdir="../../$(srcdir)" ;; \
7226 if [ "$(srcdir)" = "." ] ; then \
7227 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7228 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
7229 if [ -f Makefile ]; then \
7230 if $(MAKE) distclean; then \
7244 srcdiroption="--srcdir=."; \
7247 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
7248 libsrcdir="$$s/boehm-gc"; \
7250 rm -f no-such-file || : ; \
7251 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7252 $(TARGET_CONFIGARGS) $${srcdiroption} \
7253 --with-target-subdir="$(TARGET_SUBDIR)" \
7256 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
7257 maybe-all-target-boehm-gc:
7258 all-target-boehm-gc: configure-target-boehm-gc
7259 @r=`${PWD}`; export r; \
7260 s=`cd $(srcdir); ${PWD}`; export s; \
7262 (cd $(TARGET_SUBDIR)/boehm-gc; \
7263 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7265 .PHONY: check-target-boehm-gc
7266 check-target-boehm-gc:
7267 @r=`${PWD}`; export r; \
7268 s=`cd $(srcdir); ${PWD}`; export s; \
7270 (cd $(TARGET_SUBDIR)/boehm-gc; \
7271 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7274 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
7275 maybe-install-target-boehm-gc:
7276 install-target-boehm-gc: installdirs
7277 @r=`${PWD}`; export r; \
7278 s=`cd $(srcdir); ${PWD}`; export s; \
7280 (cd $(TARGET_SUBDIR)/boehm-gc; \
7281 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7284 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
7285 maybe-configure-target-qthreads:
7286 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/Makefile
7288 # Don't manually override CC_FOR_TARGET at make time; get it set right
7289 # at configure time. Otherwise multilibs may be wrong.
7290 $(TARGET_SUBDIR)/qthreads/multilib.out: maybe-all-gcc
7291 @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
7292 r=`${PWD}`; export r; \
7293 echo "Configuring multilibs for qthreads"; \
7294 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.out 2> /dev/null
7296 $(TARGET_SUBDIR)/qthreads/Makefile: config.status $(TARGET_SUBDIR)/qthreads/multilib.out
7297 @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
7298 r=`${PWD}`; export r; \
7299 s=`cd $(srcdir); ${PWD}`; export s; \
7301 AR="$(AR_FOR_TARGET)"; export AR; \
7302 AS="$(AS_FOR_TARGET)"; export AS; \
7303 CC="$(CC_FOR_TARGET)"; export CC; \
7304 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7305 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7306 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7307 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7308 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7309 LD="$(LD_FOR_TARGET)"; export LD; \
7310 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7311 NM="$(NM_FOR_TARGET)"; export NM; \
7312 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7313 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7314 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7315 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
7317 /* | [A-Za-z]:[\\/]*) \
7318 topdir=$(srcdir) ;; \
7320 case "$(TARGET_SUBDIR)" in \
7321 .) topdir="../$(srcdir)" ;; \
7322 *) topdir="../../$(srcdir)" ;; \
7325 if [ "$(srcdir)" = "." ] ; then \
7326 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7327 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
7328 if [ -f Makefile ]; then \
7329 if $(MAKE) distclean; then \
7343 srcdiroption="--srcdir=."; \
7346 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7347 libsrcdir="$$s/qthreads"; \
7349 rm -f no-such-file || : ; \
7350 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7351 $(TARGET_CONFIGARGS) $${srcdiroption} \
7352 --with-target-subdir="$(TARGET_SUBDIR)" \
7355 .PHONY: all-target-qthreads maybe-all-target-qthreads
7356 maybe-all-target-qthreads:
7357 all-target-qthreads: configure-target-qthreads
7358 @r=`${PWD}`; export r; \
7359 s=`cd $(srcdir); ${PWD}`; export s; \
7361 (cd $(TARGET_SUBDIR)/qthreads; \
7362 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7364 .PHONY: check-target-qthreads
7365 check-target-qthreads:
7366 @r=`${PWD}`; export r; \
7367 s=`cd $(srcdir); ${PWD}`; export s; \
7369 (cd $(TARGET_SUBDIR)/qthreads; \
7370 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7373 .PHONY: install-target-qthreads maybe-install-target-qthreads
7374 maybe-install-target-qthreads:
7375 install-target-qthreads: installdirs
7376 @r=`${PWD}`; export r; \
7377 s=`cd $(srcdir); ${PWD}`; export s; \
7379 (cd $(TARGET_SUBDIR)/qthreads; \
7380 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7383 .PHONY: configure-target-rda maybe-configure-target-rda
7384 maybe-configure-target-rda:
7385 configure-target-rda: $(TARGET_SUBDIR)/rda/Makefile
7387 # Don't manually override CC_FOR_TARGET at make time; get it set right
7388 # at configure time. Otherwise multilibs may be wrong.
7389 $(TARGET_SUBDIR)/rda/multilib.out: maybe-all-gcc
7390 @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
7391 r=`${PWD}`; export r; \
7392 echo "Configuring multilibs for rda"; \
7393 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.out 2> /dev/null
7395 $(TARGET_SUBDIR)/rda/Makefile: config.status $(TARGET_SUBDIR)/rda/multilib.out
7396 @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
7397 r=`${PWD}`; export r; \
7398 s=`cd $(srcdir); ${PWD}`; export s; \
7400 AR="$(AR_FOR_TARGET)"; export AR; \
7401 AS="$(AS_FOR_TARGET)"; export AS; \
7402 CC="$(CC_FOR_TARGET)"; export CC; \
7403 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7404 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7405 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7406 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7407 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7408 LD="$(LD_FOR_TARGET)"; export LD; \
7409 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7410 NM="$(NM_FOR_TARGET)"; export NM; \
7411 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7412 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7413 echo Configuring in $(TARGET_SUBDIR)/rda; \
7414 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
7416 /* | [A-Za-z]:[\\/]*) \
7417 topdir=$(srcdir) ;; \
7419 case "$(TARGET_SUBDIR)" in \
7420 .) topdir="../$(srcdir)" ;; \
7421 *) topdir="../../$(srcdir)" ;; \
7424 if [ "$(srcdir)" = "." ] ; then \
7425 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7426 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
7427 if [ -f Makefile ]; then \
7428 if $(MAKE) distclean; then \
7442 srcdiroption="--srcdir=."; \
7445 srcdiroption="--srcdir=$${topdir}/rda"; \
7446 libsrcdir="$$s/rda"; \
7448 rm -f no-such-file || : ; \
7449 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7450 $(TARGET_CONFIGARGS) $${srcdiroption} \
7451 --with-target-subdir="$(TARGET_SUBDIR)" \
7454 .PHONY: all-target-rda maybe-all-target-rda
7455 maybe-all-target-rda:
7456 all-target-rda: configure-target-rda
7457 @r=`${PWD}`; export r; \
7458 s=`cd $(srcdir); ${PWD}`; export s; \
7460 (cd $(TARGET_SUBDIR)/rda; \
7461 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7463 .PHONY: check-target-rda
7465 @r=`${PWD}`; export r; \
7466 s=`cd $(srcdir); ${PWD}`; export s; \
7468 (cd $(TARGET_SUBDIR)/rda; \
7469 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7472 .PHONY: install-target-rda maybe-install-target-rda
7473 maybe-install-target-rda:
7474 install-target-rda: installdirs
7475 @r=`${PWD}`; export r; \
7476 s=`cd $(srcdir); ${PWD}`; export s; \
7478 (cd $(TARGET_SUBDIR)/rda; \
7479 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7487 # Unfortunately, while gcc _should_ be a host module,
7488 # libgcc is a target module, and gen* programs are
7489 # build modules. So GCC is a sort of hybrid.
7491 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
7492 .PHONY: configure-gcc maybe-configure-gcc
7493 maybe-configure-gcc:
7494 configure-gcc: gcc/Makefile
7496 gcc/Makefile: config.status
7497 @[ -d gcc ] || mkdir gcc; \
7498 r=`${PWD}`; export r; \
7499 s=`cd $(srcdir); ${PWD}`; export s; \
7500 CC="$(CC)"; export CC; \
7501 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7502 CXX="$(CXX)"; export CXX; \
7503 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7504 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7505 AR="$(AR)"; export AR; \
7506 AS="$(AS)"; export AS; \
7507 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7508 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7509 LD="$(LD)"; export LD; \
7510 NM="$(NM)"; export NM; \
7511 RANLIB="$(RANLIB)"; export RANLIB; \
7512 WINDRES="$(WINDRES)"; export WINDRES; \
7513 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7514 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7516 echo Configuring in gcc; \
7520 srcdiroption="--srcdir=."; \
7522 /* | [A-Za-z]:[\\/]*) \
7523 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7524 libsrcdir="$$s/gcc";; \
7526 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7527 libsrcdir="$$s/gcc";; \
7529 $(SHELL) $${libsrcdir}/configure \
7530 $(HOST_CONFIGARGS) $${srcdiroption} \
7533 # Don't remake gcc if it's already been made by 'bootstrap'; that causes
7534 # nothing but trouble. This wart will be fixed eventually by moving
7535 # the bootstrap behavior to this file.
7536 .PHONY: all-gcc maybe-all-gcc
7538 all-gcc: configure-gcc
7539 @if [ -f gcc/xgcc ] ; then \
7542 r=`${PWD}`; export r; \
7543 s=`cd $(srcdir); ${PWD}`; export s; \
7545 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
7548 # Building GCC uses some tools for rebuilding "source" files
7549 # like texinfo, bison/byacc, etc. So we must depend on those.
7551 # While building GCC, it may be necessary to run various target
7552 # programs like the assembler, linker, etc. So we depend on
7555 # In theory, on an SMP all those dependencies can be resolved
7558 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
7559 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
7560 @r=`${PWD}`; export r; \
7561 s=`cd $(srcdir); ${PWD}`; export s; \
7563 echo "Bootstrapping the compiler"; \
7564 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
7565 @r=`${PWD}`; export r; \
7566 s=`cd $(srcdir); ${PWD}`; export s; \
7568 *bootstrap4-lean ) \
7569 msg="Comparing stage3 and stage4 of the compiler"; \
7570 compare=compare3-lean ;; \
7571 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
7572 compare=compare3 ;; \
7573 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
7574 compare=compare-lean ;; \
7575 * ) msg="Comparing stage2 and stage3 of the compiler"; \
7576 compare=compare ;; \
7580 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
7581 @r=`${PWD}`; export r; \
7582 s=`cd $(srcdir); ${PWD}` ; export s; \
7584 echo "Building runtime libraries"; \
7585 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
7588 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
7589 @r=`${PWD}`; export r; \
7590 s=`cd $(srcdir); ${PWD}`; export s; \
7592 echo "Building the C and C++ compiler"; \
7593 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
7594 @r=`${PWD}`; export r; \
7595 s=`cd $(srcdir); ${PWD}` ; export s; \
7597 echo "Building runtime libraries"; \
7598 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7599 LANGUAGES="c c++" all
7603 @if [ -f ./gcc/Makefile ] ; then \
7604 r=`${PWD}`; export r; \
7605 s=`cd $(srcdir); ${PWD}`; export s; \
7607 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
7614 @if [ -f ./gcc/Makefile ] ; then \
7615 r=`${PWD}`; export r; \
7616 s=`cd $(srcdir); ${PWD}`; export s; \
7618 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
7619 $(MAKE) check-target-libstdc++-v3; \
7624 .PHONY: install-gcc maybe-install-gcc
7627 @if [ -f ./gcc/Makefile ] ; then \
7628 r=`${PWD}`; export r; \
7629 s=`cd $(srcdir); ${PWD}`; export s; \
7631 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7636 # Install the gcc headers files, but not the fixed include files,
7637 # which Cygnus is not allowed to distribute. This rule is very
7638 # dependent on the workings of the gcc Makefile.in.
7639 .PHONY: gcc-no-fixedincludes
7640 gcc-no-fixedincludes:
7641 @if [ -f ./gcc/Makefile ]; then \
7642 rm -rf gcc/tmp-include; \
7643 mv gcc/include gcc/tmp-include 2>/dev/null; \
7644 mkdir gcc/include; \
7645 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7646 touch gcc/stmp-fixinc gcc/include/fixed; \
7647 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
7648 r=`${PWD}`; export r; \
7649 s=`cd $(srcdir); ${PWD}` ; export s; \
7652 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7653 rm -rf gcc/include; \
7654 mv gcc/tmp-include gcc/include 2>/dev/null; \
7657 # --------------------------------------
7658 # Dependencies between different modules
7659 # --------------------------------------
7661 # There are two types of dependencies here: 'hard' dependencies, where one
7662 # module simply won't build without the other; and 'soft' dependencies, where
7663 # if the depended-on module is missing, the depending module will do without
7664 # or find a substitute somewhere (perhaps installed). Soft dependencies
7665 # are specified by depending on a 'maybe-' target. If you're not sure,
7666 # it's safer to use a soft dependency.
7668 # Host modules specific to gcc.
7669 # GCC needs to identify certain tools.
7670 gcc/Makefile: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7671 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7672 # This is a slightly kludgy method of getting dependencies on
7673 # all-build-libiberty correct; it would be better to build it every time.
7674 all-gcc: maybe-all-build-libiberty
7675 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
7677 # Host modules specific to gdb.
7678 # GDB needs to know that the simulator is being built.
7679 gdb/Makefile: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
7681 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)
7682 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
7683 libgui/Makefile: maybe-configure-tcl maybe-configure-tk
7684 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7686 # Host modules specific to binutils.
7687 bfd/Makefile: configure-libiberty
7688 all-bfd: maybe-all-libiberty maybe-all-intl
7689 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
7690 # We put install-opcodes before install-binutils because the installed
7691 # binutils might be on PATH, and they might need the shared opcodes
7693 install-binutils: maybe-install-opcodes
7694 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7695 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7696 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7697 all-opcodes: maybe-all-bfd maybe-all-libiberty
7699 # Other host modules in the 'src' repository.
7700 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7701 expect/Makefile: maybe-configure-tcl maybe-configure-tk
7702 all-expect: maybe-all-tcl maybe-all-tk
7703 itcl/Makefile: maybe-configure-tcl maybe-configure-tk
7704 all-itcl: maybe-all-tcl maybe-all-tk
7705 # We put install-tcl before install-itcl because itcl wants to run a
7706 # program on installation which uses the Tcl libraries.
7707 install-itcl: maybe-install-tcl
7708 all-sid: maybe-all-tcl maybe-all-tk
7709 install-sid: maybe-install-tcl maybe-install-tk
7710 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline
7711 tk/Makefile: maybe-configure-tcl
7712 all-tk: maybe-all-tcl
7713 tix/Makefile: maybe-configure-tcl maybe-configure-tk
7714 all-tix: maybe-all-tcl maybe-all-tk
7715 all-texinfo: maybe-all-libiberty
7717 # Other host modules. Warning, these are not well tested.
7718 all-autoconf: maybe-all-m4 maybe-all-texinfo
7719 all-automake: maybe-all-m4 maybe-all-texinfo
7720 all-bison: maybe-all-texinfo
7721 all-diff: maybe-all-libiberty
7722 all-fastjar: maybe-all-zlib maybe-all-libiberty
7723 all-fileutils: maybe-all-libiberty
7724 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7725 all-grep: maybe-all-libiberty
7726 all-gzip: maybe-all-libiberty
7727 all-hello: maybe-all-libiberty
7728 all-m4: maybe-all-libiberty maybe-all-texinfo
7729 all-make: maybe-all-libiberty
7730 all-patch: maybe-all-libiberty
7731 all-prms: maybe-all-libiberty
7732 all-recode: maybe-all-libiberty
7733 all-sed: maybe-all-libiberty
7734 all-send-pr: maybe-all-prms
7735 all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
7736 all-tar: maybe-all-libiberty
7737 all-tclX: maybe-all-tcl maybe-all-tk
7738 all-uudecode: maybe-all-libiberty
7740 ALL_GCC = maybe-all-gcc
7741 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7742 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7744 # Target modules specific to gcc.
7745 $(TARGET_SUBDIR)/boehm-gc/Makefile: $(ALL_GCC_C) maybe-configure-target-qthreads
7746 $(TARGET_SUBDIR)/fastjar/Makefile: maybe-configure-target-zlib
7747 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7748 $(TARGET_SUBDIR)/libf2c/Makefile: $(ALL_GCC_C)
7749 all-target-libf2c: maybe-all-target-libiberty
7750 $(TARGET_SUBDIR)/libffi/Makefile: $(ALL_GCC_C)
7751 $(TARGET_SUBDIR)/libjava/Makefile: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7752 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7753 $(TARGET_SUBDIR)/libobjc/Makefile: $(ALL_GCC_C)
7754 all-target-libobjc: maybe-all-target-libiberty
7755 $(TARGET_SUBDIR)/libstdc++-v3/Makefile: $(ALL_GCC_C)
7756 all-target-libstdc++-v3: maybe-all-target-libiberty
7757 $(TARGET_SUBDIR)/zlib/Makefile: $(ALL_GCC_C)
7759 # Target modules in the 'src' repository.
7760 $(TARGET_SUBDIR)/examples/Makefile: $(ALL_GCC_C)
7761 $(TARGET_SUBDIR)/libgloss/Makefile: $(ALL_GCC)
7762 all-target-libgloss: maybe-configure-target-newlib
7763 $(TARGET_SUBDIR)/libiberty/Makefile: $(ALL_GCC_C)
7764 $(TARGET_SUBDIR)/libtermcap/Makefile: $(ALL_GCC_C)
7765 $(TARGET_SUBDIR)/newlib/Makefile: $(ALL_GCC)
7766 $(TARGET_SUBDIR)/winsup/Makefile: $(ALL_GCC_C)
7767 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
7769 # Other target modules. Warning, these are not well tested.
7770 $(TARGET_SUBDIR)/gperf/Makefile: $(ALL_GCC_CXX)
7771 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7772 $(TARGET_SUBDIR)/qthreads/Makefile: $(ALL_GCC_C)
7774 # Dependencies of maybe-foo on foo. These are used because, for example,
7775 # all-gcc only depends on all-gas if gas is present and being configured.
7776 @maybe_dependencies@
7778 # Serialization dependencies. Host configures don't work well in parallel to
7779 # each other, due to contention over config.cache. Target configures and
7780 # build configures are similar.
7781 @serialization_dependencies@
7783 # --------------------------------
7784 # Regenerating top level configury
7785 # --------------------------------
7787 # Rebuilding Makefile.in, using autogen.
7788 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
7789 cd $(srcdir) && autogen Makefile.def
7791 # with the gnu make, this is done automatically.
7793 host_makefile_frag=@host_makefile_frag@
7794 target_makefile_frag=@target_makefile_frag@
7796 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
7797 $(SHELL) ./config.status
7804 # end of Makefile.in