file bfdio.texi was initially added on branch binutils-2_14-branch.
[binutils.git] / Makefile.in
blob1b993f59e9c539b080ec2a6d91bbc2a5c7095d21
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002, 2003 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
26 VPATH=@srcdir@
28 build_alias=@build_alias@
29 build_cpu=@build_cpu@
30 build_vendor=@build_vendor@
31 build_os=@build_os@
32 build_canonical=@build_cpu@-@build_vendor@-@build_os@
33 host_alias=@host_alias@
34 host_cpu=@host_cpu@
35 host_vendor=@host_vendor@
36 host_os=@host_os@
37 host_canonical=@host_cpu@-@host_vendor@-@host_os@
38 target_alias=@target_alias@
39 target_cpu=@target_cpu@
40 target_vendor=@target_vendor@
41 target_os=@target_os@
42 target_canonical=@target_cpu@-@target_vendor@-@target_os@
44 program_transform_name = @program_transform_name@
46 prefix = @prefix@
47 exec_prefix = @exec_prefix@
49 srcdir = @srcdir@
51 bindir = @bindir@
52 sbindir = @sbindir@
53 libexecdir = @libexecdir@
54 datadir = @datadir@
55 sysconfdir = @sysconfdir@
56 sharedstatedir = @sharedstatedir@
57 localstatedir = @localstatedir@
58 libdir = @libdir@
59 includedir = @includedir@
60 oldincludedir = @oldincludedir@
61 infodir = @infodir@
62 mandir = @mandir@
63 man1dir = $(mandir)/man1
64 man2dir = $(mandir)/man2
65 man3dir = $(mandir)/man3
66 man4dir = $(mandir)/man4
67 man5dir = $(mandir)/man5
68 man6dir = $(mandir)/man6
69 man7dir = $(mandir)/man7
70 man8dir = $(mandir)/man8
71 man9dir = $(mandir)/man9
73 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
74 # cygwin host.
75 INSTALL_PROGRAM_ARGS =
77 INSTALL = $(SHELL) $$s/install-sh -c
78 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
79 INSTALL_SCRIPT = $(INSTALL)
80 INSTALL_DATA = $(INSTALL) -m 644
82 # -------------------------------------------------
83 # Miscellaneous non-standard autoconf-set variables
84 # -------------------------------------------------
86 links=@configlinks@
87 # The file containing GCC's version number.
88 gcc_version_trigger = @gcc_version_trigger@
89 gcc_version = @gcc_version@
91 # The gcc driver likes to know the arguments it was configured with.
92 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
94 gxx_include_dir = @gxx_include_dir@
95 libstdcxx_incdir = @libstdcxx_incdir@
97 tooldir = @tooldir@
98 build_tooldir = @build_tooldir@
100 # Directory in which the compiler finds executables, libraries, etc.
101 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
102 GDB_NLM_DEPS =
104 # This is the name of the environment variable used for the path to
105 # the libraries.
106 RPATH_ENVVAR = @RPATH_ENVVAR@
108 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
109 # was used.
110 SET_LIB_PATH = @SET_LIB_PATH@
112 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
113 # Some platforms don't like blank entries, so we remove duplicate,
114 # leading and trailing colons.
115 REALLY_SET_LIB_PATH = \
116 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
118 # This is the list of directories to be built for the build system.
119 BUILD_CONFIGDIRS = libiberty
120 # Build programs are put under this directory.
121 BUILD_SUBDIR = @build_subdir@
122 # This is set by the configure script to the arguments to use when configuring
123 # directories built for the build system.
124 BUILD_CONFIGARGS = @build_configargs@
126 # This is the list of directories to built for the host system.
127 SUBDIRS = @configdirs@
128 # This is set by the configure script to the arguments to use when configuring
129 # directories built for the host system.
130 HOST_CONFIGARGS = @host_configargs@
132 # This is set by the configure script to the list of directories which
133 # should be built using the target tools.
134 TARGET_CONFIGDIRS = @target_configdirs@
135 # Target libraries are put under this directory:
136 TARGET_SUBDIR = @target_subdir@
137 # This is set by the configure script to the arguments to use when configuring
138 # directories built for the target.
139 TARGET_CONFIGARGS = @target_configargs@
141 # ----------------------------------------------
142 # Programs producing files for the BUILD machine
143 # ----------------------------------------------
145 SHELL = @config_shell@
147 # pwd command to use. Allow user to override default by setting PWDCMD in
148 # the environment to account for automounters. The make variable must not
149 # be called PWDCMD, otherwise the value set here is passed to make
150 # subprocesses and overrides the setting from the user's environment.
151 PWD = $${PWDCMD-pwd}
153 # compilers to use to create programs which must be run in the build
154 # environment.
155 CC_FOR_BUILD = @CC_FOR_BUILD@
156 CFLAGS_FOR_BUILD = $(CFLAGS)
158 CXX_FOR_BUILD = $(CXX)
160 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
161 # here so that they can be overridden by Makefile fragments.
162 BUILD_CC = $(CC_FOR_BUILD)
163 BUILD_PREFIX = @BUILD_PREFIX@
164 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
166 BISON=@BISON@
167 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
168 echo $$r/bison/bison -L $$s/bison/ ; \
169 else \
170 echo bison ; \
173 DEFAULT_YACC = @DEFAULT_YACC@
174 YACC=@YACC@
175 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
176 echo $$r/bison/bison -y -L $$s/bison/ ; \
177 elif [ -f $$r/byacc/byacc ] ; then \
178 echo $$r/byacc/byacc ; \
179 else \
180 echo ${DEFAULT_YACC} ; \
183 DEFAULT_LEX = @DEFAULT_LEX@
184 LEX=@LEX@
185 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
186 then echo $$r/flex/flex ; \
187 else echo ${DEFAULT_LEX} ; fi`
189 DEFAULT_M4 = @DEFAULT_M4@
190 M4 = `if [ -f $$r/m4/m4 ] ; \
191 then echo $$r/m4/m4 ; \
192 else echo ${DEFAULT_M4} ; fi`
194 # For an installed makeinfo, we require it to be from texinfo 4 or
195 # higher, else we use the "missing" dummy.
196 MAKEINFO=@MAKEINFO@
197 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
198 then echo $$r/texinfo/makeinfo/makeinfo ; \
199 else if (makeinfo --version \
200 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
201 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
203 # This just becomes part of the MAKEINFO definition passed down to
204 # sub-makes. It lets flags be given on the command line while still
205 # using the makeinfo from the object tree.
206 # (Default to avoid splitting info files by setting the threshold high.)
207 MAKEINFOFLAGS = --split-size=5000000
209 EXPECT = `if [ -f $$r/expect/expect ] ; \
210 then echo $$r/expect/expect ; \
211 else echo expect ; fi`
213 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
214 then echo $$s/dejagnu/runtest ; \
215 else echo runtest ; fi`
217 # ---------------------------------------------
218 # Programs producing files for the HOST machine
219 # ---------------------------------------------
221 # This is the list of directories that may be needed in RPATH_ENVVAR
222 # so that programs built for the host machine work.
223 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
225 AS = @AS@
227 AR = @AR@
228 AR_FLAGS = rc
230 CC = @CC@
231 CFLAGS = @CFLAGS@
232 LIBCFLAGS = $(CFLAGS)
234 CXX = @CXX@
235 CXXFLAGS = @CXXFLAGS@
236 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
238 DLLTOOL = @DLLTOOL@
240 NM = @NM@
242 LD = @LD@
243 LDFLAGS =
245 RANLIB = @RANLIB@
247 WINDRES = @WINDRES@
249 PICFLAG =
251 # -----------------------------------------------
252 # Programs producing files for the TARGET machine
253 # -----------------------------------------------
255 # This is the list of directories that may be needed in RPATH_ENVVAR
256 # so that prorgams built for the target machine work.
257 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
259 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
261 AR_FOR_TARGET=@AR_FOR_TARGET@
262 USUAL_AR_FOR_TARGET = ` \
263 if [ -f $$r/binutils/ar ] ; then \
264 echo $$r/binutils/ar ; \
265 else \
266 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
267 echo $(AR); \
268 else \
269 echo ar | sed '$(program_transform_name)' ; \
270 fi; \
273 AS_FOR_TARGET=@AS_FOR_TARGET@
274 USUAL_AS_FOR_TARGET = ` \
275 if [ -f $$r/gas/as-new ] ; then \
276 echo $$r/gas/as-new ; \
277 elif [ -f $$r/gcc/xgcc ]; then \
278 $(CC_FOR_TARGET) -print-prog-name=as ; \
279 else \
280 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
281 echo $(AS); \
282 else \
283 echo as | sed '$(program_transform_name)' ; \
284 fi; \
287 CC_FOR_TARGET = @CC_FOR_TARGET@
288 # During gcc bootstrap, if we use some random cc for stage1 then
289 # CFLAGS will be just -g. We want to ensure that TARGET libraries
290 # (which we know are built with gcc) are built with optimizations so
291 # prepend -O2 when setting CFLAGS_FOR_TARGET.
292 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
293 # If GCC_FOR_TARGET is not overriden on the command line, then this
294 # variable is passed down to the gcc Makefile, where it is used to
295 # build libgcc2.a. We define it here so that it can itself be
296 # overridden on the command line.
297 GCC_FOR_TARGET=@GCC_FOR_TARGET@
298 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
299 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
301 CXX_FOR_TARGET = @CXX_FOR_TARGET@
302 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
303 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
304 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
305 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
306 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
308 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
309 USUAL_DLLTOOL_FOR_TARGET = ` \
310 if [ -f $$r/binutils/dlltool ] ; then \
311 echo $$r/binutils/dlltool ; \
312 else \
313 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
314 echo $(DLLTOOL); \
315 else \
316 echo dlltool | sed '$(program_transform_name)' ; \
317 fi; \
320 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
322 LD_FOR_TARGET=@LD_FOR_TARGET@
323 USUAL_LD_FOR_TARGET = ` \
324 if [ -f $$r/ld/ld-new ] ; then \
325 echo $$r/ld/ld-new ; \
326 elif [ -f $$r/gcc/xgcc ]; then \
327 $(CC_FOR_TARGET) -print-prog-name=ld ; \
328 else \
329 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
330 echo $(LD); \
331 else \
332 echo ld | sed '$(program_transform_name)' ; \
333 fi; \
336 LDFLAGS_FOR_TARGET =
338 NM_FOR_TARGET=@NM_FOR_TARGET@
339 USUAL_NM_FOR_TARGET = ` \
340 if [ -f $$r/binutils/nm-new ] ; then \
341 echo $$r/binutils/nm-new ; \
342 elif [ -f $$r/gcc/xgcc ]; then \
343 $(CC_FOR_TARGET) -print-prog-name=nm ; \
344 else \
345 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
346 echo $(NM); \
347 else \
348 echo nm | sed '$(program_transform_name)' ; \
349 fi; \
352 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
353 USUAL_RANLIB_FOR_TARGET = ` \
354 if [ -f $$r/binutils/ranlib ] ; then \
355 echo $$r/binutils/ranlib ; \
356 else \
357 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
358 if [ x'$(RANLIB)' != x ]; then \
359 echo $(RANLIB); \
360 else \
361 echo ranlib; \
362 fi; \
363 else \
364 echo ranlib | sed '$(program_transform_name)' ; \
365 fi; \
368 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
369 USUAL_WINDRES_FOR_TARGET = ` \
370 if [ -f $$r/binutils/windres ] ; then \
371 echo $$r/binutils/windres ; \
372 else \
373 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
374 echo $(WINDRES); \
375 else \
376 echo windres | sed '$(program_transform_name)' ; \
377 fi; \
380 PICFLAG_FOR_TARGET =
382 # ------------------------------------
383 # Miscellaneous targets and flag lists
384 # ------------------------------------
386 # The first rule in the file had better be this one. Don't put any above it.
387 # This lives here to allow makefile fragments to contain dependencies.
388 all: all.normal
389 .PHONY: all
391 #### host and target specific makefile fragments come in here.
392 @target_makefile_frag@
393 @alphaieee_frag@
394 @ospace_frag@
395 @host_makefile_frag@
398 # Flags to pass down to all sub-makes.
399 # Please keep these in alphabetical order.
400 BASE_FLAGS_TO_PASS = \
401 "AR_FLAGS=$(AR_FLAGS)" \
402 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
403 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
404 "BISON=$(BISON)" \
405 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
406 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
407 "CFLAGS=$(CFLAGS)" \
408 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
409 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
410 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
411 "CXXFLAGS=$(CXXFLAGS)" \
412 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
413 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
414 "DESTDIR=$(DESTDIR)" \
415 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
416 "INSTALL=$(INSTALL)" \
417 "INSTALL_DATA=$(INSTALL_DATA)" \
418 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
419 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
420 "LDFLAGS=$(LDFLAGS)" \
421 "LEX=$(LEX)" \
422 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
423 "LIBCFLAGS=$(LIBCFLAGS)" \
424 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
425 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
426 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
427 "M4=$(M4)" \
428 "MAKE=$(MAKE)" \
429 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
430 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
431 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
432 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
433 "SHELL=$(SHELL)" \
434 "EXPECT=$(EXPECT)" \
435 "RUNTEST=$(RUNTEST)" \
436 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
437 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
438 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
439 "YACC=$(YACC)" \
440 "bindir=$(bindir)" \
441 "datadir=$(datadir)" \
442 "exec_prefix=$(exec_prefix)" \
443 "includedir=$(includedir)" \
444 "infodir=$(infodir)" \
445 "libdir=$(libdir)" \
446 "libexecdir=$(libexecdir)" \
447 "lispdir=$(lispdir)" \
448 "libstdcxx_incdir=$(libstdcxx_incdir)" \
449 "libsubdir=$(libsubdir)" \
450 "localstatedir=$(localstatedir)" \
451 "mandir=$(mandir)" \
452 "oldincludedir=$(oldincludedir)" \
453 "prefix=$(prefix)" \
454 "sbindir=$(sbindir)" \
455 "sharedstatedir=$(sharedstatedir)" \
456 "sysconfdir=$(sysconfdir)" \
457 "tooldir=$(tooldir)" \
458 "build_tooldir=$(build_tooldir)" \
459 "gxx_include_dir=$(gxx_include_dir)" \
460 "gcc_version=$(gcc_version)" \
461 "gcc_version_trigger=$(gcc_version_trigger)" \
462 "target_alias=$(target_alias)"
464 # For any flags above that may contain shell code that varies from one
465 # target library to another. When doing recursive invocations of the
466 # top-level Makefile, we don't want the outer make to evaluate them,
467 # so we pass these variables down unchanged. They must not contain
468 # single nor double quotes.
469 RECURSE_FLAGS = \
470 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
471 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
473 # Flags to pass down to most sub-makes, in which we're building with
474 # the host environment.
475 # If any variables are added here, they must be added to do-*, below.
476 EXTRA_HOST_FLAGS = \
477 'AR=$(AR)' \
478 'AS=$(AS)' \
479 'CC=$(CC)' \
480 'CXX=$(CXX)' \
481 'DLLTOOL=$(DLLTOOL)' \
482 'LD=$(LD)' \
483 'NM=$(NM)' \
484 'RANLIB=$(RANLIB)' \
485 'WINDRES=$(WINDRES)'
487 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
489 # Flags that are concerned with the location of the X11 include files
490 # and library files
492 # NOTE: until the top-level is getting the values via autoconf, it only
493 # causes problems to have this top-level Makefile overriding the autoconf-set
494 # values in child directories. Only variables that don't conflict with
495 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
497 X11_FLAGS_TO_PASS = \
498 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
499 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
501 # Flags to pass down to makes which are built with the target environment.
502 # The double $ decreases the length of the command line; the variables
503 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
504 # If any variables are added here, they must be added to do-*, below.
505 EXTRA_TARGET_FLAGS = \
506 'AR=$$(AR_FOR_TARGET)' \
507 'AS=$$(AS_FOR_TARGET)' \
508 'CC=$$(CC_FOR_TARGET)' \
509 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
510 'CXX=$$(CXX_FOR_TARGET)' \
511 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
512 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
513 'LD=$$(LD_FOR_TARGET)' \
514 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
515 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
516 'NM=$$(NM_FOR_TARGET)' \
517 'RANLIB=$$(RANLIB_FOR_TARGET)' \
518 'WINDRES=$$(WINDRES_FOR_TARGET)'
520 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
522 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
523 # unfortunately needs the native compiler and the target ar and
524 # ranlib.
525 # If any variables are added here, they must be added to do-*, below.
526 # The HOST_* variables are a special case, which are used for the gcc
527 # cross-building scheme.
528 EXTRA_GCC_FLAGS = \
529 'AR=$(AR)' \
530 'AS=$(AS)' \
531 'CC=$(CC)' \
532 'CXX=$(CXX)' \
533 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
534 'BUILD_CC=$(CC_FOR_BUILD)' \
535 'BUILD_PREFIX=$(BUILD_PREFIX)' \
536 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
537 'NM=$(NM)' \
538 'RANLIB=$(RANLIB)' \
539 'WINDRES=$$(WINDRES_FOR_TARGET)' \
540 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
541 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
542 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
543 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
544 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
545 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
546 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
547 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
548 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
549 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
550 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
552 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
554 configure-host: @configure_host_modules@
555 configure-target: @configure_target_modules@
557 # This is a list of the targets for which we can do a clean-{target}.
558 CLEAN_MODULES = \
559 clean-ash \
560 clean-autoconf \
561 clean-automake \
562 clean-bash \
563 clean-bfd \
564 clean-opcodes \
565 clean-binutils \
566 clean-bison \
567 clean-byacc \
568 clean-bzip2 \
569 clean-dejagnu \
570 clean-diff \
571 clean-dosutils \
572 clean-etc \
573 clean-fastjar \
574 clean-fileutils \
575 clean-findutils \
576 clean-find \
577 clean-flex \
578 clean-gas \
579 clean-gawk \
580 clean-gettext \
581 clean-gnuserv \
582 clean-gprof \
583 clean-gzip \
584 clean-hello \
585 clean-indent \
586 clean-intl \
587 clean-tcl \
588 clean-itcl \
589 clean-ld \
590 clean-libgui \
591 clean-libiberty \
592 clean-libtool \
593 clean-m4 \
594 clean-make \
595 clean-mmalloc \
596 clean-patch \
597 clean-perl \
598 clean-prms \
599 clean-rcs \
600 clean-readline \
601 clean-release \
602 clean-recode \
603 clean-sed \
604 clean-send-pr \
605 clean-shellutils \
606 clean-sid \
607 clean-sim \
608 clean-tar \
609 clean-texinfo \
610 clean-textutils \
611 clean-time \
612 clean-uudecode \
613 clean-wdiff \
614 clean-zip \
615 clean-zlib \
616 clean-utils
618 # All of the target modules that can be cleaned
619 CLEAN_TARGET_MODULES = \
620 clean-target-libstdc++-v3 \
621 clean-target-newlib \
622 clean-target-libf2c \
623 clean-target-libobjc \
624 clean-target-winsup \
625 clean-target-libgloss \
626 clean-target-libiberty \
627 clean-target-gperf \
628 clean-target-examples \
629 clean-target-libffi \
630 clean-target-libjava \
631 clean-target-zlib \
632 clean-target-boehm-gc \
633 clean-target-qthreads \
634 clean-target-rda
636 # All of the x11 modules that can be cleaned
637 CLEAN_X11_MODULES = \
638 clean-gdb \
639 clean-expect \
640 clean-guile \
641 clean-tk \
642 clean-tix
644 # The target built for a native build.
645 # This list only includes modules actually being configured and built.
646 .PHONY: all.normal
647 all.normal: @all_build_modules@ \
648 @all_host_modules@ \
649 @all_target_modules@
651 all-host: @all_host_modules@
652 all-target: @all_target_modules@
654 # Do a target for all the subdirectories. A ``make do-X'' will do a
655 # ``make X'' in all subdirectories (because, in general, there is a
656 # dependency (below) of X upon do-X, a ``make X'' will also do this,
657 # but it may do additional work as well).
658 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
659 # because it is so large that it can easily overflow the command line
660 # length limit on some systems.
662 .PHONY: do-clean
663 do-clean:
664 @r=`${PWD}`; export r; \
665 s=`cd $(srcdir); ${PWD}`; export s; \
666 $(SET_LIB_PATH) \
667 for i in $(SUBDIRS) -dummy-; do \
668 if [ -f ./$$i/Makefile ]; then \
669 case $$i in \
670 gcc) \
671 for flag in $(EXTRA_GCC_FLAGS); do \
672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
673 done; \
674 ;; \
675 *) \
676 for flag in $(EXTRA_HOST_FLAGS); do \
677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
678 done; \
679 ;; \
680 esac ; \
681 (cd ./$$i && \
682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
684 "RANLIB=$${RANLIB}" \
685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
686 clean) \
687 || exit 1; \
688 else true; fi; \
689 done
690 # Break into two pieces
691 r=`${PWD}`; export r; \
692 s=`cd $(srcdir); ${PWD}`; export s; \
693 $(SET_LIB_PATH) \
694 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
695 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
696 for flag in $(EXTRA_TARGET_FLAGS); do \
697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
698 done; \
699 (cd $(TARGET_SUBDIR)/$$i && \
700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
702 "RANLIB=$${RANLIB}" \
703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
704 clean) \
705 || exit 1; \
706 else true; fi; \
707 done
709 .PHONY: do-distclean
710 do-distclean:
711 @r=`${PWD}`; export r; \
712 s=`cd $(srcdir); ${PWD}`; export s; \
713 $(SET_LIB_PATH) \
714 for i in $(SUBDIRS) -dummy-; do \
715 if [ -f ./$$i/Makefile ]; then \
716 case $$i in \
717 gcc) \
718 for flag in $(EXTRA_GCC_FLAGS); do \
719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
720 done; \
721 ;; \
722 *) \
723 for flag in $(EXTRA_HOST_FLAGS); do \
724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
725 done; \
726 ;; \
727 esac ; \
728 (cd ./$$i && \
729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
731 "RANLIB=$${RANLIB}" \
732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
733 distclean) \
734 || exit 1; \
735 else true; fi; \
736 done
737 # Break into two pieces
738 r=`${PWD}`; export r; \
739 s=`cd $(srcdir); ${PWD}`; export s; \
740 $(SET_LIB_PATH) \
741 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
742 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
743 for flag in $(EXTRA_TARGET_FLAGS); do \
744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
745 done; \
746 (cd $(TARGET_SUBDIR)/$$i && \
747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
749 "RANLIB=$${RANLIB}" \
750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
751 distclean) \
752 || exit 1; \
753 else true; fi; \
754 done
756 .PHONY: do-dvi
757 do-dvi:
758 @r=`${PWD}`; export r; \
759 s=`cd $(srcdir); ${PWD}`; export s; \
760 $(SET_LIB_PATH) \
761 for i in $(SUBDIRS) -dummy-; do \
762 if [ -f ./$$i/Makefile ]; then \
763 case $$i in \
764 gcc) \
765 for flag in $(EXTRA_GCC_FLAGS); do \
766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
767 done; \
768 ;; \
769 *) \
770 for flag in $(EXTRA_HOST_FLAGS); do \
771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
772 done; \
773 ;; \
774 esac ; \
775 (cd ./$$i && \
776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
778 "RANLIB=$${RANLIB}" \
779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
780 dvi) \
781 || exit 1; \
782 else true; fi; \
783 done
784 # Break into two pieces
785 r=`${PWD}`; export r; \
786 s=`cd $(srcdir); ${PWD}`; export s; \
787 $(SET_LIB_PATH) \
788 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
789 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
790 for flag in $(EXTRA_TARGET_FLAGS); do \
791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
792 done; \
793 (cd $(TARGET_SUBDIR)/$$i && \
794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
796 "RANLIB=$${RANLIB}" \
797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
798 dvi) \
799 || exit 1; \
800 else true; fi; \
801 done
803 .PHONY: do-info
804 do-info:
805 @r=`${PWD}`; export r; \
806 s=`cd $(srcdir); ${PWD}`; export s; \
807 $(SET_LIB_PATH) \
808 for i in $(SUBDIRS) -dummy-; do \
809 if [ -f ./$$i/Makefile ]; then \
810 case $$i in \
811 gcc) \
812 for flag in $(EXTRA_GCC_FLAGS); do \
813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
814 done; \
815 ;; \
816 *) \
817 for flag in $(EXTRA_HOST_FLAGS); do \
818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
819 done; \
820 ;; \
821 esac ; \
822 (cd ./$$i && \
823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
825 "RANLIB=$${RANLIB}" \
826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
827 info) \
828 || exit 1; \
829 else true; fi; \
830 done
831 # Break into two pieces
832 r=`${PWD}`; export r; \
833 s=`cd $(srcdir); ${PWD}`; export s; \
834 $(SET_LIB_PATH) \
835 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
836 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
837 for flag in $(EXTRA_TARGET_FLAGS); do \
838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
839 done; \
840 (cd $(TARGET_SUBDIR)/$$i && \
841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
843 "RANLIB=$${RANLIB}" \
844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
845 info) \
846 || exit 1; \
847 else true; fi; \
848 done
850 .PHONY: do-install-info
851 do-install-info:
852 @r=`${PWD}`; export r; \
853 s=`cd $(srcdir); ${PWD}`; export s; \
854 $(SET_LIB_PATH) \
855 for i in $(SUBDIRS) -dummy-; do \
856 if [ -f ./$$i/Makefile ]; then \
857 case $$i in \
858 gcc) \
859 for flag in $(EXTRA_GCC_FLAGS); do \
860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
861 done; \
862 ;; \
863 *) \
864 for flag in $(EXTRA_HOST_FLAGS); do \
865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
866 done; \
867 ;; \
868 esac ; \
869 (cd ./$$i && \
870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
872 "RANLIB=$${RANLIB}" \
873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
874 install-info) \
875 || exit 1; \
876 else true; fi; \
877 done
878 # Break into two pieces
879 r=`${PWD}`; export r; \
880 s=`cd $(srcdir); ${PWD}`; export s; \
881 $(SET_LIB_PATH) \
882 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
883 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
884 for flag in $(EXTRA_TARGET_FLAGS); do \
885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
886 done; \
887 (cd $(TARGET_SUBDIR)/$$i && \
888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
890 "RANLIB=$${RANLIB}" \
891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
892 install-info) \
893 || exit 1; \
894 else true; fi; \
895 done
897 .PHONY: do-installcheck
898 do-installcheck:
899 @r=`${PWD}`; export r; \
900 s=`cd $(srcdir); ${PWD}`; export s; \
901 $(SET_LIB_PATH) \
902 for i in $(SUBDIRS) -dummy-; do \
903 if [ -f ./$$i/Makefile ]; then \
904 case $$i in \
905 gcc) \
906 for flag in $(EXTRA_GCC_FLAGS); do \
907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
908 done; \
909 ;; \
910 *) \
911 for flag in $(EXTRA_HOST_FLAGS); do \
912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
913 done; \
914 ;; \
915 esac ; \
916 (cd ./$$i && \
917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
919 "RANLIB=$${RANLIB}" \
920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
921 installcheck) \
922 || exit 1; \
923 else true; fi; \
924 done
925 # Break into two pieces
926 r=`${PWD}`; export r; \
927 s=`cd $(srcdir); ${PWD}`; export s; \
928 $(SET_LIB_PATH) \
929 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
930 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
931 for flag in $(EXTRA_TARGET_FLAGS); do \
932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
933 done; \
934 (cd $(TARGET_SUBDIR)/$$i && \
935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
937 "RANLIB=$${RANLIB}" \
938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
939 installcheck) \
940 || exit 1; \
941 else true; fi; \
942 done
944 .PHONY: do-mostlyclean
945 do-mostlyclean:
946 @r=`${PWD}`; export r; \
947 s=`cd $(srcdir); ${PWD}`; export s; \
948 $(SET_LIB_PATH) \
949 for i in $(SUBDIRS) -dummy-; do \
950 if [ -f ./$$i/Makefile ]; then \
951 case $$i in \
952 gcc) \
953 for flag in $(EXTRA_GCC_FLAGS); do \
954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
955 done; \
956 ;; \
957 *) \
958 for flag in $(EXTRA_HOST_FLAGS); do \
959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
960 done; \
961 ;; \
962 esac ; \
963 (cd ./$$i && \
964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
966 "RANLIB=$${RANLIB}" \
967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
968 mostlyclean) \
969 || exit 1; \
970 else true; fi; \
971 done
972 # Break into two pieces
973 r=`${PWD}`; export r; \
974 s=`cd $(srcdir); ${PWD}`; export s; \
975 $(SET_LIB_PATH) \
976 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
977 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
978 for flag in $(EXTRA_TARGET_FLAGS); do \
979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
980 done; \
981 (cd $(TARGET_SUBDIR)/$$i && \
982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
984 "RANLIB=$${RANLIB}" \
985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
986 mostlyclean) \
987 || exit 1; \
988 else true; fi; \
989 done
991 .PHONY: do-maintainer-clean
992 do-maintainer-clean:
993 @r=`${PWD}`; export r; \
994 s=`cd $(srcdir); ${PWD}`; export s; \
995 $(SET_LIB_PATH) \
996 for i in $(SUBDIRS) -dummy-; do \
997 if [ -f ./$$i/Makefile ]; then \
998 case $$i in \
999 gcc) \
1000 for flag in $(EXTRA_GCC_FLAGS); do \
1001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1002 done; \
1003 ;; \
1004 *) \
1005 for flag in $(EXTRA_HOST_FLAGS); do \
1006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1007 done; \
1008 ;; \
1009 esac ; \
1010 (cd ./$$i && \
1011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1013 "RANLIB=$${RANLIB}" \
1014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1015 maintainer-clean) \
1016 || exit 1; \
1017 else true; fi; \
1018 done
1019 # Break into two pieces
1020 r=`${PWD}`; export r; \
1021 s=`cd $(srcdir); ${PWD}`; export s; \
1022 $(SET_LIB_PATH) \
1023 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1024 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1025 for flag in $(EXTRA_TARGET_FLAGS); do \
1026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 done; \
1028 (cd $(TARGET_SUBDIR)/$$i && \
1029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1031 "RANLIB=$${RANLIB}" \
1032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1033 maintainer-clean) \
1034 || exit 1; \
1035 else true; fi; \
1036 done
1038 .PHONY: do-TAGS
1039 do-TAGS:
1040 @r=`${PWD}`; export r; \
1041 s=`cd $(srcdir); ${PWD}`; export s; \
1042 $(SET_LIB_PATH) \
1043 for i in $(SUBDIRS) -dummy-; do \
1044 if [ -f ./$$i/Makefile ]; then \
1045 case $$i in \
1046 gcc) \
1047 for flag in $(EXTRA_GCC_FLAGS); do \
1048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1049 done; \
1050 ;; \
1051 *) \
1052 for flag in $(EXTRA_HOST_FLAGS); do \
1053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1054 done; \
1055 ;; \
1056 esac ; \
1057 (cd ./$$i && \
1058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1060 "RANLIB=$${RANLIB}" \
1061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1062 TAGS) \
1063 || exit 1; \
1064 else true; fi; \
1065 done
1066 # Break into two pieces
1067 r=`${PWD}`; export r; \
1068 s=`cd $(srcdir); ${PWD}`; export s; \
1069 $(SET_LIB_PATH) \
1070 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1071 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1072 for flag in $(EXTRA_TARGET_FLAGS); do \
1073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1074 done; \
1075 (cd $(TARGET_SUBDIR)/$$i && \
1076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1078 "RANLIB=$${RANLIB}" \
1079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1080 TAGS) \
1081 || exit 1; \
1082 else true; fi; \
1083 done
1087 # Here are the targets which correspond to the do-X targets.
1089 .PHONY: info installcheck dvi install-info
1090 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1091 .PHONY: local-clean local-distclean local-maintainer-clean
1092 info: do-info
1093 installcheck: do-installcheck
1094 dvi: do-dvi
1096 # Make sure makeinfo is built before we do a `make info', if we're
1097 # in fact building texinfo.
1098 do-info: maybe-all-texinfo
1100 install-info: do-install-info dir.info
1101 s=`cd $(srcdir); ${PWD}`; export s; \
1102 if [ -f dir.info ] ; then \
1103 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1104 else true ; fi
1106 local-clean:
1107 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1109 local-distclean:
1110 -rm -f Makefile config.status config.cache mh-frag mt-frag
1111 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1112 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1113 rm -rf $(TARGET_SUBDIR); \
1114 else true; fi
1115 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1116 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1117 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1118 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1119 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1121 local-maintainer-clean:
1122 @echo "This command is intended for maintainers to use;"
1123 @echo "it deletes files that may require special tools to rebuild."
1125 clean: do-clean local-clean
1126 mostlyclean: do-mostlyclean local-clean
1127 distclean: do-distclean local-clean local-distclean
1128 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1129 maintainer-clean: local-distclean
1130 realclean: maintainer-clean
1132 # This rule is used to clean specific modules.
1133 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1134 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1135 @dir=`echo $@ | sed -e 's/clean-//'`; \
1136 if [ -f ./$${dir}/Makefile ] ; then \
1137 r=`${PWD}`; export r; \
1138 s=`cd $(srcdir); ${PWD}`; export s; \
1139 $(SET_LIB_PATH) \
1140 (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
1141 else \
1142 true; \
1145 .PHONY: $(CLEAN_TARGET_MODULES)
1146 $(CLEAN_TARGET_MODULES):
1147 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1148 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1149 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1150 r=`${PWD}`; export r; \
1151 s=`cd $(srcdir); ${PWD}`; export s; \
1152 $(SET_LIB_PATH) \
1153 (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1154 else \
1155 true; \
1158 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1159 clean-target-libgcc:
1160 test ! -d gcc/libgcc || \
1161 (cd gcc/libgcc && find . -type d -print) | \
1162 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1163 -rm -rf gcc/libgcc
1165 # Check target.
1167 .PHONY: check do-check
1168 check:
1169 $(MAKE) do-check NOTPARALLEL=parallel-ok
1171 # Only include modules actually being configured and built.
1172 do-check: @check_host_modules@ \
1173 @check_target_modules@
1175 # Automated reporting of test results.
1177 warning.log: build.log
1178 $(srcdir)/contrib/warn_summary build.log > $@
1180 mail-report.log:
1181 if test x'$(BOOT_CFLAGS)' != x''; then \
1182 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1183 fi; \
1184 $(srcdir)/contrib/test_summary -t >$@
1185 chmod +x $@
1186 echo If you really want to send e-mail, run ./$@ now
1188 mail-report-with-warnings.log: warning.log
1189 if test x'$(BOOT_CFLAGS)' != x''; then \
1190 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1191 fi; \
1192 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1193 chmod +x $@
1194 echo If you really want to send e-mail, run ./$@ now
1196 # Installation targets.
1198 .PHONY: install uninstall
1199 install: installdirs @install_host_modules@ @install_target_modules@
1201 install-target: @install_target_modules@
1203 uninstall:
1204 @echo "the uninstall target is not supported in this tree"
1206 .PHONY: install.all
1207 install.all: install-no-fixedincludes
1208 @if [ -f ./gcc/Makefile ] ; then \
1209 r=`${PWD}` ; export r ; \
1210 $(SET_LIB_PATH) \
1211 (cd ./gcc && \
1212 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1213 else \
1214 true ; \
1217 # install-no-fixedincludes is used because Cygnus can not distribute
1218 # the fixed header files.
1219 .PHONY: install-no-fixedincludes
1220 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1221 @install_target_modules@ gcc-no-fixedincludes
1223 ### other supporting targets
1225 MAKEDIRS= \
1226 $(DESTDIR)$(prefix) \
1227 $(DESTDIR)$(exec_prefix)
1228 .PHONY: installdirs
1229 installdirs: mkinstalldirs
1230 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1232 dir.info: do-install-info
1233 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1234 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1235 mv -f dir.info.new dir.info ; \
1236 else true ; \
1239 dist:
1240 @echo "Building a full distribution of this tree isn't done"
1241 @echo "via 'make dist'. Check out the etc/ subdirectory"
1243 etags tags: TAGS
1245 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1246 # ability to use several tags files at once, so there is probably no need
1247 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1248 # (if we felt like it) have this Makefile write a piece of elisp which
1249 # the user could load to tell emacs19 where all the TAGS files we just
1250 # built are.
1251 TAGS: do-TAGS
1253 # --------------------------------------
1254 # Modules which run on the build machine
1255 # --------------------------------------
1257 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1258 maybe-configure-build-libiberty:
1259 configure-build-libiberty:
1260 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1261 [ -d $(BUILD_SUBDIR)/libiberty ] || \
1262 mkdir $(BUILD_SUBDIR)/libiberty;\
1263 r=`${PWD}`; export r; \
1264 s=`cd $(srcdir); ${PWD}`; export s; \
1265 AR="$(AR_FOR_BUILD)"; export AR; \
1266 AS="$(AS_FOR_BUILD)"; export AS; \
1267 CC="$(CC_FOR_BUILD)"; export CC; \
1268 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1269 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1270 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1271 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1272 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1273 LD="$(LD_FOR_BUILD)"; export LD; \
1274 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1275 NM="$(NM_FOR_BUILD)"; export NM; \
1276 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1277 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1278 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1279 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1280 case $(srcdir) in \
1281 /* | [A-Za-z]:[\\/]*) \
1282 topdir=$(srcdir) ;; \
1283 *) \
1284 case "$(BUILD_SUBDIR)" in \
1285 .) topdir="../$(srcdir)" ;; \
1286 *) topdir="../../$(srcdir)" ;; \
1287 esac ;; \
1288 esac; \
1289 if [ "$(srcdir)" = "." ] ; then \
1290 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1291 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1292 if [ -f Makefile ]; then \
1293 if $(MAKE) distclean; then \
1294 true; \
1295 else \
1296 exit 1; \
1297 fi; \
1298 else \
1299 true; \
1300 fi; \
1301 else \
1302 exit 1; \
1303 fi; \
1304 else \
1305 true; \
1306 fi; \
1307 srcdiroption="--srcdir=."; \
1308 libsrcdir="."; \
1309 else \
1310 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1311 libsrcdir="$$s/libiberty"; \
1312 fi; \
1313 rm -f no-such-file || : ; \
1314 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1315 $(BUILD_CONFIGARGS) $${srcdiroption} \
1316 --with-build-subdir="$(BUILD_SUBDIR)" \
1317 || exit 1
1319 .PHONY: all-build-libiberty maybe-all-build-libiberty
1320 maybe-all-build-libiberty:
1321 all-build-libiberty: configure-build-libiberty
1322 @r=`${PWD}`; export r; \
1323 s=`cd $(srcdir); ${PWD}`; export s; \
1324 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1327 # --------------------------------------
1328 # Modules which run on the host machine
1329 # --------------------------------------
1331 .PHONY: configure-ash maybe-configure-ash
1332 maybe-configure-ash:
1333 configure-ash:
1334 @test ! -f ash/Makefile || exit 0; \
1335 [ -d ash ] || mkdir ash; \
1336 r=`${PWD}`; export r; \
1337 s=`cd $(srcdir); ${PWD}`; export s; \
1338 CC="$(CC)"; export CC; \
1339 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1340 CXX="$(CXX)"; export CXX; \
1341 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1342 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1343 AR="$(AR)"; export AR; \
1344 AS="$(AS)"; export AS; \
1345 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1346 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1347 LD="$(LD)"; export LD; \
1348 NM="$(NM)"; export NM; \
1349 RANLIB="$(RANLIB)"; export RANLIB; \
1350 WINDRES="$(WINDRES)"; export WINDRES; \
1351 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1352 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1353 fi; \
1354 echo Configuring in ash; \
1355 cd ash || exit 1; \
1356 case $(srcdir) in \
1357 \.) \
1358 srcdiroption="--srcdir=."; \
1359 libsrcdir=".";; \
1360 /* | [A-Za-z]:[\\/]*) \
1361 srcdiroption="--srcdir=$(srcdir)/ash"; \
1362 libsrcdir="$$s/ash";; \
1363 *) \
1364 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1365 libsrcdir="$$s/ash";; \
1366 esac; \
1367 $(SHELL) $${libsrcdir}/configure \
1368 $(HOST_CONFIGARGS) $${srcdiroption} \
1369 || exit 1
1371 .PHONY: all-ash maybe-all-ash
1372 maybe-all-ash:
1373 all-ash: configure-ash
1374 @r=`${PWD}`; export r; \
1375 s=`cd $(srcdir); ${PWD}`; export s; \
1376 $(SET_LIB_PATH) \
1377 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
1380 .PHONY: check-ash
1381 check-ash:
1382 @r=`${PWD}`; export r; \
1383 s=`cd $(srcdir); ${PWD}`; export s; \
1384 $(SET_LIB_PATH) \
1385 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1389 .PHONY: install-ash maybe-install-ash
1390 maybe-install-ash:
1391 install-ash: installdirs
1392 @r=`${PWD}`; export r; \
1393 s=`cd $(srcdir); ${PWD}`; export s; \
1394 $(SET_LIB_PATH) \
1395 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1398 .PHONY: configure-autoconf maybe-configure-autoconf
1399 maybe-configure-autoconf:
1400 configure-autoconf:
1401 @test ! -f autoconf/Makefile || exit 0; \
1402 [ -d autoconf ] || mkdir autoconf; \
1403 r=`${PWD}`; export r; \
1404 s=`cd $(srcdir); ${PWD}`; export s; \
1405 CC="$(CC)"; export CC; \
1406 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1407 CXX="$(CXX)"; export CXX; \
1408 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1409 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1410 AR="$(AR)"; export AR; \
1411 AS="$(AS)"; export AS; \
1412 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1413 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1414 LD="$(LD)"; export LD; \
1415 NM="$(NM)"; export NM; \
1416 RANLIB="$(RANLIB)"; export RANLIB; \
1417 WINDRES="$(WINDRES)"; export WINDRES; \
1418 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1419 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1420 fi; \
1421 echo Configuring in autoconf; \
1422 cd autoconf || exit 1; \
1423 case $(srcdir) in \
1424 \.) \
1425 srcdiroption="--srcdir=."; \
1426 libsrcdir=".";; \
1427 /* | [A-Za-z]:[\\/]*) \
1428 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1429 libsrcdir="$$s/autoconf";; \
1430 *) \
1431 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1432 libsrcdir="$$s/autoconf";; \
1433 esac; \
1434 $(SHELL) $${libsrcdir}/configure \
1435 $(HOST_CONFIGARGS) $${srcdiroption} \
1436 || exit 1
1438 .PHONY: all-autoconf maybe-all-autoconf
1439 maybe-all-autoconf:
1440 all-autoconf: configure-autoconf
1441 @r=`${PWD}`; export r; \
1442 s=`cd $(srcdir); ${PWD}`; export s; \
1443 $(SET_LIB_PATH) \
1444 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
1447 .PHONY: check-autoconf
1448 check-autoconf:
1449 @r=`${PWD}`; export r; \
1450 s=`cd $(srcdir); ${PWD}`; export s; \
1451 $(SET_LIB_PATH) \
1452 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1456 .PHONY: install-autoconf maybe-install-autoconf
1457 maybe-install-autoconf:
1458 install-autoconf: installdirs
1459 @r=`${PWD}`; export r; \
1460 s=`cd $(srcdir); ${PWD}`; export s; \
1461 $(SET_LIB_PATH) \
1462 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1465 .PHONY: configure-automake maybe-configure-automake
1466 maybe-configure-automake:
1467 configure-automake:
1468 @test ! -f automake/Makefile || exit 0; \
1469 [ -d automake ] || mkdir automake; \
1470 r=`${PWD}`; export r; \
1471 s=`cd $(srcdir); ${PWD}`; export s; \
1472 CC="$(CC)"; export CC; \
1473 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1474 CXX="$(CXX)"; export CXX; \
1475 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1476 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1477 AR="$(AR)"; export AR; \
1478 AS="$(AS)"; export AS; \
1479 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1480 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1481 LD="$(LD)"; export LD; \
1482 NM="$(NM)"; export NM; \
1483 RANLIB="$(RANLIB)"; export RANLIB; \
1484 WINDRES="$(WINDRES)"; export WINDRES; \
1485 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1486 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1487 fi; \
1488 echo Configuring in automake; \
1489 cd automake || exit 1; \
1490 case $(srcdir) in \
1491 \.) \
1492 srcdiroption="--srcdir=."; \
1493 libsrcdir=".";; \
1494 /* | [A-Za-z]:[\\/]*) \
1495 srcdiroption="--srcdir=$(srcdir)/automake"; \
1496 libsrcdir="$$s/automake";; \
1497 *) \
1498 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1499 libsrcdir="$$s/automake";; \
1500 esac; \
1501 $(SHELL) $${libsrcdir}/configure \
1502 $(HOST_CONFIGARGS) $${srcdiroption} \
1503 || exit 1
1505 .PHONY: all-automake maybe-all-automake
1506 maybe-all-automake:
1507 all-automake: configure-automake
1508 @r=`${PWD}`; export r; \
1509 s=`cd $(srcdir); ${PWD}`; export s; \
1510 $(SET_LIB_PATH) \
1511 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
1514 .PHONY: check-automake
1515 check-automake:
1516 @r=`${PWD}`; export r; \
1517 s=`cd $(srcdir); ${PWD}`; export s; \
1518 $(SET_LIB_PATH) \
1519 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1523 .PHONY: install-automake maybe-install-automake
1524 maybe-install-automake:
1525 install-automake: installdirs
1526 @r=`${PWD}`; export r; \
1527 s=`cd $(srcdir); ${PWD}`; export s; \
1528 $(SET_LIB_PATH) \
1529 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1532 .PHONY: configure-bash maybe-configure-bash
1533 maybe-configure-bash:
1534 configure-bash:
1535 @test ! -f bash/Makefile || exit 0; \
1536 [ -d bash ] || mkdir bash; \
1537 r=`${PWD}`; export r; \
1538 s=`cd $(srcdir); ${PWD}`; export s; \
1539 CC="$(CC)"; export CC; \
1540 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1541 CXX="$(CXX)"; export CXX; \
1542 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1543 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1544 AR="$(AR)"; export AR; \
1545 AS="$(AS)"; export AS; \
1546 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1547 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1548 LD="$(LD)"; export LD; \
1549 NM="$(NM)"; export NM; \
1550 RANLIB="$(RANLIB)"; export RANLIB; \
1551 WINDRES="$(WINDRES)"; export WINDRES; \
1552 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1553 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1554 fi; \
1555 echo Configuring in bash; \
1556 cd bash || exit 1; \
1557 case $(srcdir) in \
1558 \.) \
1559 srcdiroption="--srcdir=."; \
1560 libsrcdir=".";; \
1561 /* | [A-Za-z]:[\\/]*) \
1562 srcdiroption="--srcdir=$(srcdir)/bash"; \
1563 libsrcdir="$$s/bash";; \
1564 *) \
1565 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1566 libsrcdir="$$s/bash";; \
1567 esac; \
1568 $(SHELL) $${libsrcdir}/configure \
1569 $(HOST_CONFIGARGS) $${srcdiroption} \
1570 || exit 1
1572 .PHONY: all-bash maybe-all-bash
1573 maybe-all-bash:
1574 all-bash: configure-bash
1575 @r=`${PWD}`; export r; \
1576 s=`cd $(srcdir); ${PWD}`; export s; \
1577 $(SET_LIB_PATH) \
1578 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
1581 .PHONY: check-bash
1582 check-bash:
1583 @r=`${PWD}`; export r; \
1584 s=`cd $(srcdir); ${PWD}`; export s; \
1585 $(SET_LIB_PATH) \
1586 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
1590 .PHONY: install-bash maybe-install-bash
1591 maybe-install-bash:
1592 install-bash: installdirs
1593 @r=`${PWD}`; export r; \
1594 s=`cd $(srcdir); ${PWD}`; export s; \
1595 $(SET_LIB_PATH) \
1596 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1599 .PHONY: configure-bfd maybe-configure-bfd
1600 maybe-configure-bfd:
1601 configure-bfd:
1602 @test ! -f bfd/Makefile || exit 0; \
1603 [ -d bfd ] || mkdir bfd; \
1604 r=`${PWD}`; export r; \
1605 s=`cd $(srcdir); ${PWD}`; export s; \
1606 CC="$(CC)"; export CC; \
1607 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1608 CXX="$(CXX)"; export CXX; \
1609 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1610 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1611 AR="$(AR)"; export AR; \
1612 AS="$(AS)"; export AS; \
1613 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1614 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1615 LD="$(LD)"; export LD; \
1616 NM="$(NM)"; export NM; \
1617 RANLIB="$(RANLIB)"; export RANLIB; \
1618 WINDRES="$(WINDRES)"; export WINDRES; \
1619 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1620 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1621 fi; \
1622 echo Configuring in bfd; \
1623 cd bfd || exit 1; \
1624 case $(srcdir) in \
1625 \.) \
1626 srcdiroption="--srcdir=."; \
1627 libsrcdir=".";; \
1628 /* | [A-Za-z]:[\\/]*) \
1629 srcdiroption="--srcdir=$(srcdir)/bfd"; \
1630 libsrcdir="$$s/bfd";; \
1631 *) \
1632 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1633 libsrcdir="$$s/bfd";; \
1634 esac; \
1635 $(SHELL) $${libsrcdir}/configure \
1636 $(HOST_CONFIGARGS) $${srcdiroption} \
1637 || exit 1
1639 .PHONY: all-bfd maybe-all-bfd
1640 maybe-all-bfd:
1641 all-bfd: configure-bfd
1642 @r=`${PWD}`; export r; \
1643 s=`cd $(srcdir); ${PWD}`; export s; \
1644 $(SET_LIB_PATH) \
1645 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
1648 .PHONY: check-bfd
1649 check-bfd:
1650 @r=`${PWD}`; export r; \
1651 s=`cd $(srcdir); ${PWD}`; export s; \
1652 $(SET_LIB_PATH) \
1653 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
1657 .PHONY: install-bfd maybe-install-bfd
1658 maybe-install-bfd:
1659 install-bfd: installdirs
1660 @r=`${PWD}`; export r; \
1661 s=`cd $(srcdir); ${PWD}`; export s; \
1662 $(SET_LIB_PATH) \
1663 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
1666 .PHONY: configure-opcodes maybe-configure-opcodes
1667 maybe-configure-opcodes:
1668 configure-opcodes:
1669 @test ! -f opcodes/Makefile || exit 0; \
1670 [ -d opcodes ] || mkdir opcodes; \
1671 r=`${PWD}`; export r; \
1672 s=`cd $(srcdir); ${PWD}`; export s; \
1673 CC="$(CC)"; export CC; \
1674 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1675 CXX="$(CXX)"; export CXX; \
1676 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1677 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1678 AR="$(AR)"; export AR; \
1679 AS="$(AS)"; export AS; \
1680 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1681 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1682 LD="$(LD)"; export LD; \
1683 NM="$(NM)"; export NM; \
1684 RANLIB="$(RANLIB)"; export RANLIB; \
1685 WINDRES="$(WINDRES)"; export WINDRES; \
1686 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1687 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1688 fi; \
1689 echo Configuring in opcodes; \
1690 cd opcodes || exit 1; \
1691 case $(srcdir) in \
1692 \.) \
1693 srcdiroption="--srcdir=."; \
1694 libsrcdir=".";; \
1695 /* | [A-Za-z]:[\\/]*) \
1696 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1697 libsrcdir="$$s/opcodes";; \
1698 *) \
1699 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1700 libsrcdir="$$s/opcodes";; \
1701 esac; \
1702 $(SHELL) $${libsrcdir}/configure \
1703 $(HOST_CONFIGARGS) $${srcdiroption} \
1704 || exit 1
1706 .PHONY: all-opcodes maybe-all-opcodes
1707 maybe-all-opcodes:
1708 all-opcodes: configure-opcodes
1709 @r=`${PWD}`; export r; \
1710 s=`cd $(srcdir); ${PWD}`; export s; \
1711 $(SET_LIB_PATH) \
1712 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
1715 .PHONY: check-opcodes
1716 check-opcodes:
1717 @r=`${PWD}`; export r; \
1718 s=`cd $(srcdir); ${PWD}`; export s; \
1719 $(SET_LIB_PATH) \
1720 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
1724 .PHONY: install-opcodes maybe-install-opcodes
1725 maybe-install-opcodes:
1726 install-opcodes: installdirs
1727 @r=`${PWD}`; export r; \
1728 s=`cd $(srcdir); ${PWD}`; export s; \
1729 $(SET_LIB_PATH) \
1730 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
1733 .PHONY: configure-binutils maybe-configure-binutils
1734 maybe-configure-binutils:
1735 configure-binutils:
1736 @test ! -f binutils/Makefile || exit 0; \
1737 [ -d binutils ] || mkdir binutils; \
1738 r=`${PWD}`; export r; \
1739 s=`cd $(srcdir); ${PWD}`; export s; \
1740 CC="$(CC)"; export CC; \
1741 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1742 CXX="$(CXX)"; export CXX; \
1743 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1744 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1745 AR="$(AR)"; export AR; \
1746 AS="$(AS)"; export AS; \
1747 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1748 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1749 LD="$(LD)"; export LD; \
1750 NM="$(NM)"; export NM; \
1751 RANLIB="$(RANLIB)"; export RANLIB; \
1752 WINDRES="$(WINDRES)"; export WINDRES; \
1753 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1754 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1755 fi; \
1756 echo Configuring in binutils; \
1757 cd binutils || exit 1; \
1758 case $(srcdir) in \
1759 \.) \
1760 srcdiroption="--srcdir=."; \
1761 libsrcdir=".";; \
1762 /* | [A-Za-z]:[\\/]*) \
1763 srcdiroption="--srcdir=$(srcdir)/binutils"; \
1764 libsrcdir="$$s/binutils";; \
1765 *) \
1766 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1767 libsrcdir="$$s/binutils";; \
1768 esac; \
1769 $(SHELL) $${libsrcdir}/configure \
1770 $(HOST_CONFIGARGS) $${srcdiroption} \
1771 || exit 1
1773 .PHONY: all-binutils maybe-all-binutils
1774 maybe-all-binutils:
1775 all-binutils: configure-binutils
1776 @r=`${PWD}`; export r; \
1777 s=`cd $(srcdir); ${PWD}`; export s; \
1778 $(SET_LIB_PATH) \
1779 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
1782 .PHONY: check-binutils
1783 check-binutils:
1784 @r=`${PWD}`; export r; \
1785 s=`cd $(srcdir); ${PWD}`; export s; \
1786 $(SET_LIB_PATH) \
1787 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
1791 .PHONY: install-binutils maybe-install-binutils
1792 maybe-install-binutils:
1793 install-binutils: installdirs
1794 @r=`${PWD}`; export r; \
1795 s=`cd $(srcdir); ${PWD}`; export s; \
1796 $(SET_LIB_PATH) \
1797 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
1800 .PHONY: configure-bison maybe-configure-bison
1801 maybe-configure-bison:
1802 configure-bison:
1803 @test ! -f bison/Makefile || exit 0; \
1804 [ -d bison ] || mkdir bison; \
1805 r=`${PWD}`; export r; \
1806 s=`cd $(srcdir); ${PWD}`; export s; \
1807 CC="$(CC)"; export CC; \
1808 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1809 CXX="$(CXX)"; export CXX; \
1810 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1811 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1812 AR="$(AR)"; export AR; \
1813 AS="$(AS)"; export AS; \
1814 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1815 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1816 LD="$(LD)"; export LD; \
1817 NM="$(NM)"; export NM; \
1818 RANLIB="$(RANLIB)"; export RANLIB; \
1819 WINDRES="$(WINDRES)"; export WINDRES; \
1820 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1821 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1822 fi; \
1823 echo Configuring in bison; \
1824 cd bison || exit 1; \
1825 case $(srcdir) in \
1826 \.) \
1827 srcdiroption="--srcdir=."; \
1828 libsrcdir=".";; \
1829 /* | [A-Za-z]:[\\/]*) \
1830 srcdiroption="--srcdir=$(srcdir)/bison"; \
1831 libsrcdir="$$s/bison";; \
1832 *) \
1833 srcdiroption="--srcdir=../$(srcdir)/bison"; \
1834 libsrcdir="$$s/bison";; \
1835 esac; \
1836 $(SHELL) $${libsrcdir}/configure \
1837 $(HOST_CONFIGARGS) $${srcdiroption} \
1838 || exit 1
1840 .PHONY: all-bison maybe-all-bison
1841 maybe-all-bison:
1842 all-bison: configure-bison
1843 @r=`${PWD}`; export r; \
1844 s=`cd $(srcdir); ${PWD}`; export s; \
1845 $(SET_LIB_PATH) \
1846 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
1849 .PHONY: check-bison
1850 # This module is only tested in a native toolchain.
1851 check-bison:
1852 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1853 r=`${PWD}`; export r; \
1854 s=`cd $(srcdir); ${PWD}`; export s; \
1855 $(SET_LIB_PATH) \
1856 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
1861 .PHONY: install-bison maybe-install-bison
1862 maybe-install-bison:
1863 install-bison: installdirs
1864 @r=`${PWD}`; export r; \
1865 s=`cd $(srcdir); ${PWD}`; export s; \
1866 $(SET_LIB_PATH) \
1867 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
1870 .PHONY: configure-byacc maybe-configure-byacc
1871 maybe-configure-byacc:
1872 configure-byacc:
1873 @test ! -f byacc/Makefile || exit 0; \
1874 [ -d byacc ] || mkdir byacc; \
1875 r=`${PWD}`; export r; \
1876 s=`cd $(srcdir); ${PWD}`; export s; \
1877 CC="$(CC)"; export CC; \
1878 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1879 CXX="$(CXX)"; export CXX; \
1880 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1881 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1882 AR="$(AR)"; export AR; \
1883 AS="$(AS)"; export AS; \
1884 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1885 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1886 LD="$(LD)"; export LD; \
1887 NM="$(NM)"; export NM; \
1888 RANLIB="$(RANLIB)"; export RANLIB; \
1889 WINDRES="$(WINDRES)"; export WINDRES; \
1890 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1891 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1892 fi; \
1893 echo Configuring in byacc; \
1894 cd byacc || exit 1; \
1895 case $(srcdir) in \
1896 \.) \
1897 srcdiroption="--srcdir=."; \
1898 libsrcdir=".";; \
1899 /* | [A-Za-z]:[\\/]*) \
1900 srcdiroption="--srcdir=$(srcdir)/byacc"; \
1901 libsrcdir="$$s/byacc";; \
1902 *) \
1903 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1904 libsrcdir="$$s/byacc";; \
1905 esac; \
1906 $(SHELL) $${libsrcdir}/configure \
1907 $(HOST_CONFIGARGS) $${srcdiroption} \
1908 || exit 1
1910 .PHONY: all-byacc maybe-all-byacc
1911 maybe-all-byacc:
1912 all-byacc: configure-byacc
1913 @r=`${PWD}`; export r; \
1914 s=`cd $(srcdir); ${PWD}`; export s; \
1915 $(SET_LIB_PATH) \
1916 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
1919 .PHONY: check-byacc
1920 # This module is only tested in a native toolchain.
1921 check-byacc:
1922 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1923 r=`${PWD}`; export r; \
1924 s=`cd $(srcdir); ${PWD}`; export s; \
1925 $(SET_LIB_PATH) \
1926 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
1931 .PHONY: install-byacc maybe-install-byacc
1932 maybe-install-byacc:
1933 install-byacc: installdirs
1934 @r=`${PWD}`; export r; \
1935 s=`cd $(srcdir); ${PWD}`; export s; \
1936 $(SET_LIB_PATH) \
1937 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
1940 .PHONY: configure-bzip2 maybe-configure-bzip2
1941 maybe-configure-bzip2:
1942 configure-bzip2:
1943 @test ! -f bzip2/Makefile || exit 0; \
1944 [ -d bzip2 ] || mkdir bzip2; \
1945 r=`${PWD}`; export r; \
1946 s=`cd $(srcdir); ${PWD}`; export s; \
1947 CC="$(CC)"; export CC; \
1948 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1949 CXX="$(CXX)"; export CXX; \
1950 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1951 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1952 AR="$(AR)"; export AR; \
1953 AS="$(AS)"; export AS; \
1954 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1955 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1956 LD="$(LD)"; export LD; \
1957 NM="$(NM)"; export NM; \
1958 RANLIB="$(RANLIB)"; export RANLIB; \
1959 WINDRES="$(WINDRES)"; export WINDRES; \
1960 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1961 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1962 fi; \
1963 echo Configuring in bzip2; \
1964 cd bzip2 || exit 1; \
1965 case $(srcdir) in \
1966 \.) \
1967 srcdiroption="--srcdir=."; \
1968 libsrcdir=".";; \
1969 /* | [A-Za-z]:[\\/]*) \
1970 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1971 libsrcdir="$$s/bzip2";; \
1972 *) \
1973 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1974 libsrcdir="$$s/bzip2";; \
1975 esac; \
1976 $(SHELL) $${libsrcdir}/configure \
1977 $(HOST_CONFIGARGS) $${srcdiroption} \
1978 || exit 1
1980 .PHONY: all-bzip2 maybe-all-bzip2
1981 maybe-all-bzip2:
1982 all-bzip2: configure-bzip2
1983 @r=`${PWD}`; export r; \
1984 s=`cd $(srcdir); ${PWD}`; export s; \
1985 $(SET_LIB_PATH) \
1986 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
1989 .PHONY: check-bzip2
1990 check-bzip2:
1991 @r=`${PWD}`; export r; \
1992 s=`cd $(srcdir); ${PWD}`; export s; \
1993 $(SET_LIB_PATH) \
1994 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
1998 .PHONY: install-bzip2 maybe-install-bzip2
1999 maybe-install-bzip2:
2000 install-bzip2: installdirs
2001 @r=`${PWD}`; export r; \
2002 s=`cd $(srcdir); ${PWD}`; export s; \
2003 $(SET_LIB_PATH) \
2004 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
2007 .PHONY: configure-dejagnu maybe-configure-dejagnu
2008 maybe-configure-dejagnu:
2009 configure-dejagnu:
2010 @test ! -f dejagnu/Makefile || exit 0; \
2011 [ -d dejagnu ] || mkdir dejagnu; \
2012 r=`${PWD}`; export r; \
2013 s=`cd $(srcdir); ${PWD}`; export s; \
2014 CC="$(CC)"; export CC; \
2015 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2016 CXX="$(CXX)"; export CXX; \
2017 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2018 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2019 AR="$(AR)"; export AR; \
2020 AS="$(AS)"; export AS; \
2021 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2022 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2023 LD="$(LD)"; export LD; \
2024 NM="$(NM)"; export NM; \
2025 RANLIB="$(RANLIB)"; export RANLIB; \
2026 WINDRES="$(WINDRES)"; export WINDRES; \
2027 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2028 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2029 fi; \
2030 echo Configuring in dejagnu; \
2031 cd dejagnu || exit 1; \
2032 case $(srcdir) in \
2033 \.) \
2034 srcdiroption="--srcdir=."; \
2035 libsrcdir=".";; \
2036 /* | [A-Za-z]:[\\/]*) \
2037 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2038 libsrcdir="$$s/dejagnu";; \
2039 *) \
2040 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2041 libsrcdir="$$s/dejagnu";; \
2042 esac; \
2043 $(SHELL) $${libsrcdir}/configure \
2044 $(HOST_CONFIGARGS) $${srcdiroption} \
2045 || exit 1
2047 .PHONY: all-dejagnu maybe-all-dejagnu
2048 maybe-all-dejagnu:
2049 all-dejagnu: configure-dejagnu
2050 @r=`${PWD}`; export r; \
2051 s=`cd $(srcdir); ${PWD}`; export s; \
2052 $(SET_LIB_PATH) \
2053 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
2056 .PHONY: check-dejagnu
2057 check-dejagnu:
2058 @r=`${PWD}`; export r; \
2059 s=`cd $(srcdir); ${PWD}`; export s; \
2060 $(SET_LIB_PATH) \
2061 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
2065 .PHONY: install-dejagnu maybe-install-dejagnu
2066 maybe-install-dejagnu:
2067 install-dejagnu: installdirs
2068 @r=`${PWD}`; export r; \
2069 s=`cd $(srcdir); ${PWD}`; export s; \
2070 $(SET_LIB_PATH) \
2071 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
2074 .PHONY: configure-diff maybe-configure-diff
2075 maybe-configure-diff:
2076 configure-diff:
2077 @test ! -f diff/Makefile || exit 0; \
2078 [ -d diff ] || mkdir diff; \
2079 r=`${PWD}`; export r; \
2080 s=`cd $(srcdir); ${PWD}`; export s; \
2081 CC="$(CC)"; export CC; \
2082 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2083 CXX="$(CXX)"; export CXX; \
2084 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2085 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2086 AR="$(AR)"; export AR; \
2087 AS="$(AS)"; export AS; \
2088 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2089 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2090 LD="$(LD)"; export LD; \
2091 NM="$(NM)"; export NM; \
2092 RANLIB="$(RANLIB)"; export RANLIB; \
2093 WINDRES="$(WINDRES)"; export WINDRES; \
2094 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2095 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2096 fi; \
2097 echo Configuring in diff; \
2098 cd diff || exit 1; \
2099 case $(srcdir) in \
2100 \.) \
2101 srcdiroption="--srcdir=."; \
2102 libsrcdir=".";; \
2103 /* | [A-Za-z]:[\\/]*) \
2104 srcdiroption="--srcdir=$(srcdir)/diff"; \
2105 libsrcdir="$$s/diff";; \
2106 *) \
2107 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2108 libsrcdir="$$s/diff";; \
2109 esac; \
2110 $(SHELL) $${libsrcdir}/configure \
2111 $(HOST_CONFIGARGS) $${srcdiroption} \
2112 || exit 1
2114 .PHONY: all-diff maybe-all-diff
2115 maybe-all-diff:
2116 all-diff: configure-diff
2117 @r=`${PWD}`; export r; \
2118 s=`cd $(srcdir); ${PWD}`; export s; \
2119 $(SET_LIB_PATH) \
2120 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
2123 .PHONY: check-diff
2124 check-diff:
2125 @r=`${PWD}`; export r; \
2126 s=`cd $(srcdir); ${PWD}`; export s; \
2127 $(SET_LIB_PATH) \
2128 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2132 .PHONY: install-diff maybe-install-diff
2133 maybe-install-diff:
2134 install-diff: installdirs
2135 @r=`${PWD}`; export r; \
2136 s=`cd $(srcdir); ${PWD}`; export s; \
2137 $(SET_LIB_PATH) \
2138 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2141 .PHONY: configure-dosutils maybe-configure-dosutils
2142 maybe-configure-dosutils:
2143 configure-dosutils:
2144 @test ! -f dosutils/Makefile || exit 0; \
2145 [ -d dosutils ] || mkdir dosutils; \
2146 r=`${PWD}`; export r; \
2147 s=`cd $(srcdir); ${PWD}`; export s; \
2148 CC="$(CC)"; export CC; \
2149 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2150 CXX="$(CXX)"; export CXX; \
2151 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2152 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2153 AR="$(AR)"; export AR; \
2154 AS="$(AS)"; export AS; \
2155 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2156 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2157 LD="$(LD)"; export LD; \
2158 NM="$(NM)"; export NM; \
2159 RANLIB="$(RANLIB)"; export RANLIB; \
2160 WINDRES="$(WINDRES)"; export WINDRES; \
2161 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2162 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2163 fi; \
2164 echo Configuring in dosutils; \
2165 cd dosutils || exit 1; \
2166 case $(srcdir) in \
2167 \.) \
2168 srcdiroption="--srcdir=."; \
2169 libsrcdir=".";; \
2170 /* | [A-Za-z]:[\\/]*) \
2171 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2172 libsrcdir="$$s/dosutils";; \
2173 *) \
2174 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2175 libsrcdir="$$s/dosutils";; \
2176 esac; \
2177 $(SHELL) $${libsrcdir}/configure \
2178 $(HOST_CONFIGARGS) $${srcdiroption} \
2179 || exit 1
2181 .PHONY: all-dosutils maybe-all-dosutils
2182 maybe-all-dosutils:
2183 all-dosutils: configure-dosutils
2184 @r=`${PWD}`; export r; \
2185 s=`cd $(srcdir); ${PWD}`; export s; \
2186 $(SET_LIB_PATH) \
2187 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
2190 .PHONY: check-dosutils
2191 check-dosutils:
2195 .PHONY: install-dosutils maybe-install-dosutils
2196 maybe-install-dosutils:
2197 install-dosutils: installdirs
2198 @r=`${PWD}`; export r; \
2199 s=`cd $(srcdir); ${PWD}`; export s; \
2200 $(SET_LIB_PATH) \
2201 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2204 .PHONY: configure-etc maybe-configure-etc
2205 maybe-configure-etc:
2206 configure-etc:
2207 @test ! -f etc/Makefile || exit 0; \
2208 [ -d etc ] || mkdir etc; \
2209 r=`${PWD}`; export r; \
2210 s=`cd $(srcdir); ${PWD}`; export s; \
2211 CC="$(CC)"; export CC; \
2212 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2213 CXX="$(CXX)"; export CXX; \
2214 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2215 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2216 AR="$(AR)"; export AR; \
2217 AS="$(AS)"; export AS; \
2218 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2219 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2220 LD="$(LD)"; export LD; \
2221 NM="$(NM)"; export NM; \
2222 RANLIB="$(RANLIB)"; export RANLIB; \
2223 WINDRES="$(WINDRES)"; export WINDRES; \
2224 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2225 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2226 fi; \
2227 echo Configuring in etc; \
2228 cd etc || exit 1; \
2229 case $(srcdir) in \
2230 \.) \
2231 srcdiroption="--srcdir=."; \
2232 libsrcdir=".";; \
2233 /* | [A-Za-z]:[\\/]*) \
2234 srcdiroption="--srcdir=$(srcdir)/etc"; \
2235 libsrcdir="$$s/etc";; \
2236 *) \
2237 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2238 libsrcdir="$$s/etc";; \
2239 esac; \
2240 $(SHELL) $${libsrcdir}/configure \
2241 $(HOST_CONFIGARGS) $${srcdiroption} \
2242 || exit 1
2244 .PHONY: all-etc maybe-all-etc
2245 maybe-all-etc:
2246 all-etc: configure-etc
2247 @r=`${PWD}`; export r; \
2248 s=`cd $(srcdir); ${PWD}`; export s; \
2249 $(SET_LIB_PATH) \
2250 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
2253 .PHONY: check-etc
2254 check-etc:
2255 @r=`${PWD}`; export r; \
2256 s=`cd $(srcdir); ${PWD}`; export s; \
2257 $(SET_LIB_PATH) \
2258 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
2262 .PHONY: install-etc maybe-install-etc
2263 maybe-install-etc:
2264 install-etc: installdirs
2265 @r=`${PWD}`; export r; \
2266 s=`cd $(srcdir); ${PWD}`; export s; \
2267 $(SET_LIB_PATH) \
2268 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
2271 .PHONY: configure-fastjar maybe-configure-fastjar
2272 maybe-configure-fastjar:
2273 configure-fastjar:
2274 @test ! -f fastjar/Makefile || exit 0; \
2275 [ -d fastjar ] || mkdir fastjar; \
2276 r=`${PWD}`; export r; \
2277 s=`cd $(srcdir); ${PWD}`; export s; \
2278 CC="$(CC)"; export CC; \
2279 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2280 CXX="$(CXX)"; export CXX; \
2281 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2282 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2283 AR="$(AR)"; export AR; \
2284 AS="$(AS)"; export AS; \
2285 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2286 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2287 LD="$(LD)"; export LD; \
2288 NM="$(NM)"; export NM; \
2289 RANLIB="$(RANLIB)"; export RANLIB; \
2290 WINDRES="$(WINDRES)"; export WINDRES; \
2291 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2292 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2293 fi; \
2294 echo Configuring in fastjar; \
2295 cd fastjar || exit 1; \
2296 case $(srcdir) in \
2297 \.) \
2298 srcdiroption="--srcdir=."; \
2299 libsrcdir=".";; \
2300 /* | [A-Za-z]:[\\/]*) \
2301 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2302 libsrcdir="$$s/fastjar";; \
2303 *) \
2304 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2305 libsrcdir="$$s/fastjar";; \
2306 esac; \
2307 $(SHELL) $${libsrcdir}/configure \
2308 $(HOST_CONFIGARGS) $${srcdiroption} \
2309 || exit 1
2311 .PHONY: all-fastjar maybe-all-fastjar
2312 maybe-all-fastjar:
2313 all-fastjar: configure-fastjar
2314 @r=`${PWD}`; export r; \
2315 s=`cd $(srcdir); ${PWD}`; export s; \
2316 $(SET_LIB_PATH) \
2317 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
2320 .PHONY: check-fastjar
2321 # This module is only tested in a native toolchain.
2322 check-fastjar:
2323 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2324 r=`${PWD}`; export r; \
2325 s=`cd $(srcdir); ${PWD}`; export s; \
2326 $(SET_LIB_PATH) \
2327 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
2332 .PHONY: install-fastjar maybe-install-fastjar
2333 maybe-install-fastjar:
2334 install-fastjar: installdirs
2335 @r=`${PWD}`; export r; \
2336 s=`cd $(srcdir); ${PWD}`; export s; \
2337 $(SET_LIB_PATH) \
2338 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2341 .PHONY: configure-fileutils maybe-configure-fileutils
2342 maybe-configure-fileutils:
2343 configure-fileutils:
2344 @test ! -f fileutils/Makefile || exit 0; \
2345 [ -d fileutils ] || mkdir fileutils; \
2346 r=`${PWD}`; export r; \
2347 s=`cd $(srcdir); ${PWD}`; export s; \
2348 CC="$(CC)"; export CC; \
2349 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2350 CXX="$(CXX)"; export CXX; \
2351 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2352 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2353 AR="$(AR)"; export AR; \
2354 AS="$(AS)"; export AS; \
2355 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2356 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2357 LD="$(LD)"; export LD; \
2358 NM="$(NM)"; export NM; \
2359 RANLIB="$(RANLIB)"; export RANLIB; \
2360 WINDRES="$(WINDRES)"; export WINDRES; \
2361 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2362 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2363 fi; \
2364 echo Configuring in fileutils; \
2365 cd fileutils || exit 1; \
2366 case $(srcdir) in \
2367 \.) \
2368 srcdiroption="--srcdir=."; \
2369 libsrcdir=".";; \
2370 /* | [A-Za-z]:[\\/]*) \
2371 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2372 libsrcdir="$$s/fileutils";; \
2373 *) \
2374 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2375 libsrcdir="$$s/fileutils";; \
2376 esac; \
2377 $(SHELL) $${libsrcdir}/configure \
2378 $(HOST_CONFIGARGS) $${srcdiroption} \
2379 || exit 1
2381 .PHONY: all-fileutils maybe-all-fileutils
2382 maybe-all-fileutils:
2383 all-fileutils: configure-fileutils
2384 @r=`${PWD}`; export r; \
2385 s=`cd $(srcdir); ${PWD}`; export s; \
2386 $(SET_LIB_PATH) \
2387 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
2390 .PHONY: check-fileutils
2391 check-fileutils:
2392 @r=`${PWD}`; export r; \
2393 s=`cd $(srcdir); ${PWD}`; export s; \
2394 $(SET_LIB_PATH) \
2395 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2399 .PHONY: install-fileutils maybe-install-fileutils
2400 maybe-install-fileutils:
2401 install-fileutils: installdirs
2402 @r=`${PWD}`; export r; \
2403 s=`cd $(srcdir); ${PWD}`; export s; \
2404 $(SET_LIB_PATH) \
2405 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2408 .PHONY: configure-findutils maybe-configure-findutils
2409 maybe-configure-findutils:
2410 configure-findutils:
2411 @test ! -f findutils/Makefile || exit 0; \
2412 [ -d findutils ] || mkdir findutils; \
2413 r=`${PWD}`; export r; \
2414 s=`cd $(srcdir); ${PWD}`; export s; \
2415 CC="$(CC)"; export CC; \
2416 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2417 CXX="$(CXX)"; export CXX; \
2418 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2419 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2420 AR="$(AR)"; export AR; \
2421 AS="$(AS)"; export AS; \
2422 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2423 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2424 LD="$(LD)"; export LD; \
2425 NM="$(NM)"; export NM; \
2426 RANLIB="$(RANLIB)"; export RANLIB; \
2427 WINDRES="$(WINDRES)"; export WINDRES; \
2428 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2429 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2430 fi; \
2431 echo Configuring in findutils; \
2432 cd findutils || exit 1; \
2433 case $(srcdir) in \
2434 \.) \
2435 srcdiroption="--srcdir=."; \
2436 libsrcdir=".";; \
2437 /* | [A-Za-z]:[\\/]*) \
2438 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2439 libsrcdir="$$s/findutils";; \
2440 *) \
2441 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2442 libsrcdir="$$s/findutils";; \
2443 esac; \
2444 $(SHELL) $${libsrcdir}/configure \
2445 $(HOST_CONFIGARGS) $${srcdiroption} \
2446 || exit 1
2448 .PHONY: all-findutils maybe-all-findutils
2449 maybe-all-findutils:
2450 all-findutils: configure-findutils
2451 @r=`${PWD}`; export r; \
2452 s=`cd $(srcdir); ${PWD}`; export s; \
2453 $(SET_LIB_PATH) \
2454 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
2457 .PHONY: check-findutils
2458 check-findutils:
2459 @r=`${PWD}`; export r; \
2460 s=`cd $(srcdir); ${PWD}`; export s; \
2461 $(SET_LIB_PATH) \
2462 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2466 .PHONY: install-findutils maybe-install-findutils
2467 maybe-install-findutils:
2468 install-findutils: installdirs
2469 @r=`${PWD}`; export r; \
2470 s=`cd $(srcdir); ${PWD}`; export s; \
2471 $(SET_LIB_PATH) \
2472 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
2475 .PHONY: configure-find maybe-configure-find
2476 maybe-configure-find:
2477 configure-find:
2478 @test ! -f find/Makefile || exit 0; \
2479 [ -d find ] || mkdir find; \
2480 r=`${PWD}`; export r; \
2481 s=`cd $(srcdir); ${PWD}`; export s; \
2482 CC="$(CC)"; export CC; \
2483 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2484 CXX="$(CXX)"; export CXX; \
2485 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2486 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2487 AR="$(AR)"; export AR; \
2488 AS="$(AS)"; export AS; \
2489 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2490 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2491 LD="$(LD)"; export LD; \
2492 NM="$(NM)"; export NM; \
2493 RANLIB="$(RANLIB)"; export RANLIB; \
2494 WINDRES="$(WINDRES)"; export WINDRES; \
2495 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2496 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2497 fi; \
2498 echo Configuring in find; \
2499 cd find || exit 1; \
2500 case $(srcdir) in \
2501 \.) \
2502 srcdiroption="--srcdir=."; \
2503 libsrcdir=".";; \
2504 /* | [A-Za-z]:[\\/]*) \
2505 srcdiroption="--srcdir=$(srcdir)/find"; \
2506 libsrcdir="$$s/find";; \
2507 *) \
2508 srcdiroption="--srcdir=../$(srcdir)/find"; \
2509 libsrcdir="$$s/find";; \
2510 esac; \
2511 $(SHELL) $${libsrcdir}/configure \
2512 $(HOST_CONFIGARGS) $${srcdiroption} \
2513 || exit 1
2515 .PHONY: all-find maybe-all-find
2516 maybe-all-find:
2517 all-find: configure-find
2518 @r=`${PWD}`; export r; \
2519 s=`cd $(srcdir); ${PWD}`; export s; \
2520 $(SET_LIB_PATH) \
2521 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
2524 .PHONY: check-find
2525 check-find:
2526 @r=`${PWD}`; export r; \
2527 s=`cd $(srcdir); ${PWD}`; export s; \
2528 $(SET_LIB_PATH) \
2529 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2533 .PHONY: install-find maybe-install-find
2534 maybe-install-find:
2535 install-find: installdirs
2536 @r=`${PWD}`; export r; \
2537 s=`cd $(srcdir); ${PWD}`; export s; \
2538 $(SET_LIB_PATH) \
2539 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
2542 .PHONY: configure-flex maybe-configure-flex
2543 maybe-configure-flex:
2544 configure-flex:
2545 @test ! -f flex/Makefile || exit 0; \
2546 [ -d flex ] || mkdir flex; \
2547 r=`${PWD}`; export r; \
2548 s=`cd $(srcdir); ${PWD}`; export s; \
2549 CC="$(CC)"; export CC; \
2550 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2551 CXX="$(CXX)"; export CXX; \
2552 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2553 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2554 AR="$(AR)"; export AR; \
2555 AS="$(AS)"; export AS; \
2556 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2557 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2558 LD="$(LD)"; export LD; \
2559 NM="$(NM)"; export NM; \
2560 RANLIB="$(RANLIB)"; export RANLIB; \
2561 WINDRES="$(WINDRES)"; export WINDRES; \
2562 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2563 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2564 fi; \
2565 echo Configuring in flex; \
2566 cd flex || exit 1; \
2567 case $(srcdir) in \
2568 \.) \
2569 srcdiroption="--srcdir=."; \
2570 libsrcdir=".";; \
2571 /* | [A-Za-z]:[\\/]*) \
2572 srcdiroption="--srcdir=$(srcdir)/flex"; \
2573 libsrcdir="$$s/flex";; \
2574 *) \
2575 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2576 libsrcdir="$$s/flex";; \
2577 esac; \
2578 $(SHELL) $${libsrcdir}/configure \
2579 $(HOST_CONFIGARGS) $${srcdiroption} \
2580 || exit 1
2582 .PHONY: all-flex maybe-all-flex
2583 maybe-all-flex:
2584 all-flex: configure-flex
2585 @r=`${PWD}`; export r; \
2586 s=`cd $(srcdir); ${PWD}`; export s; \
2587 $(SET_LIB_PATH) \
2588 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
2591 .PHONY: check-flex
2592 # This module is only tested in a native toolchain.
2593 check-flex:
2594 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2595 r=`${PWD}`; export r; \
2596 s=`cd $(srcdir); ${PWD}`; export s; \
2597 $(SET_LIB_PATH) \
2598 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
2603 .PHONY: install-flex maybe-install-flex
2604 maybe-install-flex:
2605 install-flex: installdirs
2606 @r=`${PWD}`; export r; \
2607 s=`cd $(srcdir); ${PWD}`; export s; \
2608 $(SET_LIB_PATH) \
2609 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
2612 .PHONY: configure-gas maybe-configure-gas
2613 maybe-configure-gas:
2614 configure-gas:
2615 @test ! -f gas/Makefile || exit 0; \
2616 [ -d gas ] || mkdir gas; \
2617 r=`${PWD}`; export r; \
2618 s=`cd $(srcdir); ${PWD}`; export s; \
2619 CC="$(CC)"; export CC; \
2620 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2621 CXX="$(CXX)"; export CXX; \
2622 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2623 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2624 AR="$(AR)"; export AR; \
2625 AS="$(AS)"; export AS; \
2626 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2627 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2628 LD="$(LD)"; export LD; \
2629 NM="$(NM)"; export NM; \
2630 RANLIB="$(RANLIB)"; export RANLIB; \
2631 WINDRES="$(WINDRES)"; export WINDRES; \
2632 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2633 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2634 fi; \
2635 echo Configuring in gas; \
2636 cd gas || exit 1; \
2637 case $(srcdir) in \
2638 \.) \
2639 srcdiroption="--srcdir=."; \
2640 libsrcdir=".";; \
2641 /* | [A-Za-z]:[\\/]*) \
2642 srcdiroption="--srcdir=$(srcdir)/gas"; \
2643 libsrcdir="$$s/gas";; \
2644 *) \
2645 srcdiroption="--srcdir=../$(srcdir)/gas"; \
2646 libsrcdir="$$s/gas";; \
2647 esac; \
2648 $(SHELL) $${libsrcdir}/configure \
2649 $(HOST_CONFIGARGS) $${srcdiroption} \
2650 || exit 1
2652 .PHONY: all-gas maybe-all-gas
2653 maybe-all-gas:
2654 all-gas: configure-gas
2655 @r=`${PWD}`; export r; \
2656 s=`cd $(srcdir); ${PWD}`; export s; \
2657 $(SET_LIB_PATH) \
2658 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
2661 .PHONY: check-gas
2662 check-gas:
2663 @r=`${PWD}`; export r; \
2664 s=`cd $(srcdir); ${PWD}`; export s; \
2665 $(SET_LIB_PATH) \
2666 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
2670 .PHONY: install-gas maybe-install-gas
2671 maybe-install-gas:
2672 install-gas: installdirs
2673 @r=`${PWD}`; export r; \
2674 s=`cd $(srcdir); ${PWD}`; export s; \
2675 $(SET_LIB_PATH) \
2676 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
2679 .PHONY: configure-gawk maybe-configure-gawk
2680 maybe-configure-gawk:
2681 configure-gawk:
2682 @test ! -f gawk/Makefile || exit 0; \
2683 [ -d gawk ] || mkdir gawk; \
2684 r=`${PWD}`; export r; \
2685 s=`cd $(srcdir); ${PWD}`; export s; \
2686 CC="$(CC)"; export CC; \
2687 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2688 CXX="$(CXX)"; export CXX; \
2689 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2690 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2691 AR="$(AR)"; export AR; \
2692 AS="$(AS)"; export AS; \
2693 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2694 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2695 LD="$(LD)"; export LD; \
2696 NM="$(NM)"; export NM; \
2697 RANLIB="$(RANLIB)"; export RANLIB; \
2698 WINDRES="$(WINDRES)"; export WINDRES; \
2699 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2700 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2701 fi; \
2702 echo Configuring in gawk; \
2703 cd gawk || exit 1; \
2704 case $(srcdir) in \
2705 \.) \
2706 srcdiroption="--srcdir=."; \
2707 libsrcdir=".";; \
2708 /* | [A-Za-z]:[\\/]*) \
2709 srcdiroption="--srcdir=$(srcdir)/gawk"; \
2710 libsrcdir="$$s/gawk";; \
2711 *) \
2712 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2713 libsrcdir="$$s/gawk";; \
2714 esac; \
2715 $(SHELL) $${libsrcdir}/configure \
2716 $(HOST_CONFIGARGS) $${srcdiroption} \
2717 || exit 1
2719 .PHONY: all-gawk maybe-all-gawk
2720 maybe-all-gawk:
2721 all-gawk: configure-gawk
2722 @r=`${PWD}`; export r; \
2723 s=`cd $(srcdir); ${PWD}`; export s; \
2724 $(SET_LIB_PATH) \
2725 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
2728 .PHONY: check-gawk
2729 check-gawk:
2730 @r=`${PWD}`; export r; \
2731 s=`cd $(srcdir); ${PWD}`; export s; \
2732 $(SET_LIB_PATH) \
2733 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
2737 .PHONY: install-gawk maybe-install-gawk
2738 maybe-install-gawk:
2739 install-gawk: installdirs
2740 @r=`${PWD}`; export r; \
2741 s=`cd $(srcdir); ${PWD}`; export s; \
2742 $(SET_LIB_PATH) \
2743 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
2746 .PHONY: configure-gettext maybe-configure-gettext
2747 maybe-configure-gettext:
2748 configure-gettext:
2749 @test ! -f gettext/Makefile || exit 0; \
2750 [ -d gettext ] || mkdir gettext; \
2751 r=`${PWD}`; export r; \
2752 s=`cd $(srcdir); ${PWD}`; export s; \
2753 CC="$(CC)"; export CC; \
2754 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2755 CXX="$(CXX)"; export CXX; \
2756 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2757 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2758 AR="$(AR)"; export AR; \
2759 AS="$(AS)"; export AS; \
2760 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2761 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2762 LD="$(LD)"; export LD; \
2763 NM="$(NM)"; export NM; \
2764 RANLIB="$(RANLIB)"; export RANLIB; \
2765 WINDRES="$(WINDRES)"; export WINDRES; \
2766 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2767 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2768 fi; \
2769 echo Configuring in gettext; \
2770 cd gettext || exit 1; \
2771 case $(srcdir) in \
2772 \.) \
2773 srcdiroption="--srcdir=."; \
2774 libsrcdir=".";; \
2775 /* | [A-Za-z]:[\\/]*) \
2776 srcdiroption="--srcdir=$(srcdir)/gettext"; \
2777 libsrcdir="$$s/gettext";; \
2778 *) \
2779 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2780 libsrcdir="$$s/gettext";; \
2781 esac; \
2782 $(SHELL) $${libsrcdir}/configure \
2783 $(HOST_CONFIGARGS) $${srcdiroption} \
2784 || exit 1
2786 .PHONY: all-gettext maybe-all-gettext
2787 maybe-all-gettext:
2788 all-gettext: configure-gettext
2789 @r=`${PWD}`; export r; \
2790 s=`cd $(srcdir); ${PWD}`; export s; \
2791 $(SET_LIB_PATH) \
2792 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
2795 .PHONY: check-gettext
2796 check-gettext:
2797 @r=`${PWD}`; export r; \
2798 s=`cd $(srcdir); ${PWD}`; export s; \
2799 $(SET_LIB_PATH) \
2800 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
2804 .PHONY: install-gettext maybe-install-gettext
2805 maybe-install-gettext:
2806 install-gettext: installdirs
2807 @r=`${PWD}`; export r; \
2808 s=`cd $(srcdir); ${PWD}`; export s; \
2809 $(SET_LIB_PATH) \
2810 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
2813 .PHONY: configure-gnuserv maybe-configure-gnuserv
2814 maybe-configure-gnuserv:
2815 configure-gnuserv:
2816 @test ! -f gnuserv/Makefile || exit 0; \
2817 [ -d gnuserv ] || mkdir gnuserv; \
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; \
2835 fi; \
2836 echo Configuring in gnuserv; \
2837 cd gnuserv || exit 1; \
2838 case $(srcdir) in \
2839 \.) \
2840 srcdiroption="--srcdir=."; \
2841 libsrcdir=".";; \
2842 /* | [A-Za-z]:[\\/]*) \
2843 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2844 libsrcdir="$$s/gnuserv";; \
2845 *) \
2846 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2847 libsrcdir="$$s/gnuserv";; \
2848 esac; \
2849 $(SHELL) $${libsrcdir}/configure \
2850 $(HOST_CONFIGARGS) $${srcdiroption} \
2851 || exit 1
2853 .PHONY: all-gnuserv maybe-all-gnuserv
2854 maybe-all-gnuserv:
2855 all-gnuserv: configure-gnuserv
2856 @r=`${PWD}`; export r; \
2857 s=`cd $(srcdir); ${PWD}`; export s; \
2858 $(SET_LIB_PATH) \
2859 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
2862 .PHONY: check-gnuserv
2863 check-gnuserv:
2864 @r=`${PWD}`; export r; \
2865 s=`cd $(srcdir); ${PWD}`; export s; \
2866 $(SET_LIB_PATH) \
2867 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
2871 .PHONY: install-gnuserv maybe-install-gnuserv
2872 maybe-install-gnuserv:
2873 install-gnuserv: installdirs
2874 @r=`${PWD}`; export r; \
2875 s=`cd $(srcdir); ${PWD}`; export s; \
2876 $(SET_LIB_PATH) \
2877 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
2880 .PHONY: configure-gprof maybe-configure-gprof
2881 maybe-configure-gprof:
2882 configure-gprof:
2883 @test ! -f gprof/Makefile || exit 0; \
2884 [ -d gprof ] || mkdir gprof; \
2885 r=`${PWD}`; export r; \
2886 s=`cd $(srcdir); ${PWD}`; export s; \
2887 CC="$(CC)"; export CC; \
2888 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2889 CXX="$(CXX)"; export CXX; \
2890 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2891 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2892 AR="$(AR)"; export AR; \
2893 AS="$(AS)"; export AS; \
2894 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2895 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2896 LD="$(LD)"; export LD; \
2897 NM="$(NM)"; export NM; \
2898 RANLIB="$(RANLIB)"; export RANLIB; \
2899 WINDRES="$(WINDRES)"; export WINDRES; \
2900 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2901 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2902 fi; \
2903 echo Configuring in gprof; \
2904 cd gprof || exit 1; \
2905 case $(srcdir) in \
2906 \.) \
2907 srcdiroption="--srcdir=."; \
2908 libsrcdir=".";; \
2909 /* | [A-Za-z]:[\\/]*) \
2910 srcdiroption="--srcdir=$(srcdir)/gprof"; \
2911 libsrcdir="$$s/gprof";; \
2912 *) \
2913 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2914 libsrcdir="$$s/gprof";; \
2915 esac; \
2916 $(SHELL) $${libsrcdir}/configure \
2917 $(HOST_CONFIGARGS) $${srcdiroption} \
2918 || exit 1
2920 .PHONY: all-gprof maybe-all-gprof
2921 maybe-all-gprof:
2922 all-gprof: configure-gprof
2923 @r=`${PWD}`; export r; \
2924 s=`cd $(srcdir); ${PWD}`; export s; \
2925 $(SET_LIB_PATH) \
2926 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
2929 .PHONY: check-gprof
2930 check-gprof:
2931 @r=`${PWD}`; export r; \
2932 s=`cd $(srcdir); ${PWD}`; export s; \
2933 $(SET_LIB_PATH) \
2934 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
2938 .PHONY: install-gprof maybe-install-gprof
2939 maybe-install-gprof:
2940 install-gprof: installdirs
2941 @r=`${PWD}`; export r; \
2942 s=`cd $(srcdir); ${PWD}`; export s; \
2943 $(SET_LIB_PATH) \
2944 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
2947 .PHONY: configure-gzip maybe-configure-gzip
2948 maybe-configure-gzip:
2949 configure-gzip:
2950 @test ! -f gzip/Makefile || exit 0; \
2951 [ -d gzip ] || mkdir gzip; \
2952 r=`${PWD}`; export r; \
2953 s=`cd $(srcdir); ${PWD}`; export s; \
2954 CC="$(CC)"; export CC; \
2955 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2956 CXX="$(CXX)"; export CXX; \
2957 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2958 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2959 AR="$(AR)"; export AR; \
2960 AS="$(AS)"; export AS; \
2961 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2962 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2963 LD="$(LD)"; export LD; \
2964 NM="$(NM)"; export NM; \
2965 RANLIB="$(RANLIB)"; export RANLIB; \
2966 WINDRES="$(WINDRES)"; export WINDRES; \
2967 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2968 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2969 fi; \
2970 echo Configuring in gzip; \
2971 cd gzip || exit 1; \
2972 case $(srcdir) in \
2973 \.) \
2974 srcdiroption="--srcdir=."; \
2975 libsrcdir=".";; \
2976 /* | [A-Za-z]:[\\/]*) \
2977 srcdiroption="--srcdir=$(srcdir)/gzip"; \
2978 libsrcdir="$$s/gzip";; \
2979 *) \
2980 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
2981 libsrcdir="$$s/gzip";; \
2982 esac; \
2983 $(SHELL) $${libsrcdir}/configure \
2984 $(HOST_CONFIGARGS) $${srcdiroption} \
2985 || exit 1
2987 .PHONY: all-gzip maybe-all-gzip
2988 maybe-all-gzip:
2989 all-gzip: configure-gzip
2990 @r=`${PWD}`; export r; \
2991 s=`cd $(srcdir); ${PWD}`; export s; \
2992 $(SET_LIB_PATH) \
2993 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
2996 .PHONY: check-gzip
2997 check-gzip:
2998 @r=`${PWD}`; export r; \
2999 s=`cd $(srcdir); ${PWD}`; export s; \
3000 $(SET_LIB_PATH) \
3001 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
3005 .PHONY: install-gzip maybe-install-gzip
3006 maybe-install-gzip:
3007 install-gzip: installdirs
3008 @r=`${PWD}`; export r; \
3009 s=`cd $(srcdir); ${PWD}`; export s; \
3010 $(SET_LIB_PATH) \
3011 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
3014 .PHONY: configure-hello maybe-configure-hello
3015 maybe-configure-hello:
3016 configure-hello:
3017 @test ! -f hello/Makefile || exit 0; \
3018 [ -d hello ] || mkdir hello; \
3019 r=`${PWD}`; export r; \
3020 s=`cd $(srcdir); ${PWD}`; export s; \
3021 CC="$(CC)"; export CC; \
3022 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3023 CXX="$(CXX)"; export CXX; \
3024 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3025 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3026 AR="$(AR)"; export AR; \
3027 AS="$(AS)"; export AS; \
3028 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3029 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3030 LD="$(LD)"; export LD; \
3031 NM="$(NM)"; export NM; \
3032 RANLIB="$(RANLIB)"; export RANLIB; \
3033 WINDRES="$(WINDRES)"; export WINDRES; \
3034 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3035 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3036 fi; \
3037 echo Configuring in hello; \
3038 cd hello || exit 1; \
3039 case $(srcdir) in \
3040 \.) \
3041 srcdiroption="--srcdir=."; \
3042 libsrcdir=".";; \
3043 /* | [A-Za-z]:[\\/]*) \
3044 srcdiroption="--srcdir=$(srcdir)/hello"; \
3045 libsrcdir="$$s/hello";; \
3046 *) \
3047 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3048 libsrcdir="$$s/hello";; \
3049 esac; \
3050 $(SHELL) $${libsrcdir}/configure \
3051 $(HOST_CONFIGARGS) $${srcdiroption} \
3052 || exit 1
3054 .PHONY: all-hello maybe-all-hello
3055 maybe-all-hello:
3056 all-hello: configure-hello
3057 @r=`${PWD}`; export r; \
3058 s=`cd $(srcdir); ${PWD}`; export s; \
3059 $(SET_LIB_PATH) \
3060 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
3063 .PHONY: check-hello
3064 check-hello:
3065 @r=`${PWD}`; export r; \
3066 s=`cd $(srcdir); ${PWD}`; export s; \
3067 $(SET_LIB_PATH) \
3068 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
3072 .PHONY: install-hello maybe-install-hello
3073 maybe-install-hello:
3074 install-hello: installdirs
3075 @r=`${PWD}`; export r; \
3076 s=`cd $(srcdir); ${PWD}`; export s; \
3077 $(SET_LIB_PATH) \
3078 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
3081 .PHONY: configure-indent maybe-configure-indent
3082 maybe-configure-indent:
3083 configure-indent:
3084 @test ! -f indent/Makefile || exit 0; \
3085 [ -d indent ] || mkdir indent; \
3086 r=`${PWD}`; export r; \
3087 s=`cd $(srcdir); ${PWD}`; export s; \
3088 CC="$(CC)"; export CC; \
3089 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3090 CXX="$(CXX)"; export CXX; \
3091 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3092 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3093 AR="$(AR)"; export AR; \
3094 AS="$(AS)"; export AS; \
3095 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3096 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3097 LD="$(LD)"; export LD; \
3098 NM="$(NM)"; export NM; \
3099 RANLIB="$(RANLIB)"; export RANLIB; \
3100 WINDRES="$(WINDRES)"; export WINDRES; \
3101 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3102 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3103 fi; \
3104 echo Configuring in indent; \
3105 cd indent || exit 1; \
3106 case $(srcdir) in \
3107 \.) \
3108 srcdiroption="--srcdir=."; \
3109 libsrcdir=".";; \
3110 /* | [A-Za-z]:[\\/]*) \
3111 srcdiroption="--srcdir=$(srcdir)/indent"; \
3112 libsrcdir="$$s/indent";; \
3113 *) \
3114 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3115 libsrcdir="$$s/indent";; \
3116 esac; \
3117 $(SHELL) $${libsrcdir}/configure \
3118 $(HOST_CONFIGARGS) $${srcdiroption} \
3119 || exit 1
3121 .PHONY: all-indent maybe-all-indent
3122 maybe-all-indent:
3123 all-indent: configure-indent
3124 @r=`${PWD}`; export r; \
3125 s=`cd $(srcdir); ${PWD}`; export s; \
3126 $(SET_LIB_PATH) \
3127 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
3130 .PHONY: check-indent
3131 check-indent:
3132 @r=`${PWD}`; export r; \
3133 s=`cd $(srcdir); ${PWD}`; export s; \
3134 $(SET_LIB_PATH) \
3135 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
3139 .PHONY: install-indent maybe-install-indent
3140 maybe-install-indent:
3141 install-indent: installdirs
3142 @r=`${PWD}`; export r; \
3143 s=`cd $(srcdir); ${PWD}`; export s; \
3144 $(SET_LIB_PATH) \
3145 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
3148 .PHONY: configure-intl maybe-configure-intl
3149 maybe-configure-intl:
3150 configure-intl:
3151 @test ! -f intl/Makefile || exit 0; \
3152 [ -d intl ] || mkdir intl; \
3153 r=`${PWD}`; export r; \
3154 s=`cd $(srcdir); ${PWD}`; export s; \
3155 CC="$(CC)"; export CC; \
3156 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3157 CXX="$(CXX)"; export CXX; \
3158 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3159 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3160 AR="$(AR)"; export AR; \
3161 AS="$(AS)"; export AS; \
3162 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3163 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3164 LD="$(LD)"; export LD; \
3165 NM="$(NM)"; export NM; \
3166 RANLIB="$(RANLIB)"; export RANLIB; \
3167 WINDRES="$(WINDRES)"; export WINDRES; \
3168 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3169 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3170 fi; \
3171 echo Configuring in intl; \
3172 cd intl || exit 1; \
3173 case $(srcdir) in \
3174 \.) \
3175 srcdiroption="--srcdir=."; \
3176 libsrcdir=".";; \
3177 /* | [A-Za-z]:[\\/]*) \
3178 srcdiroption="--srcdir=$(srcdir)/intl"; \
3179 libsrcdir="$$s/intl";; \
3180 *) \
3181 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3182 libsrcdir="$$s/intl";; \
3183 esac; \
3184 $(SHELL) $${libsrcdir}/configure \
3185 $(HOST_CONFIGARGS) $${srcdiroption} \
3186 || exit 1
3188 .PHONY: all-intl maybe-all-intl
3189 maybe-all-intl:
3190 all-intl: configure-intl
3191 @r=`${PWD}`; export r; \
3192 s=`cd $(srcdir); ${PWD}`; export s; \
3193 $(SET_LIB_PATH) \
3194 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
3197 .PHONY: check-intl
3198 check-intl:
3199 @r=`${PWD}`; export r; \
3200 s=`cd $(srcdir); ${PWD}`; export s; \
3201 $(SET_LIB_PATH) \
3202 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
3206 .PHONY: install-intl maybe-install-intl
3207 maybe-install-intl:
3208 install-intl: installdirs
3209 @r=`${PWD}`; export r; \
3210 s=`cd $(srcdir); ${PWD}`; export s; \
3211 $(SET_LIB_PATH) \
3212 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
3215 .PHONY: configure-tcl maybe-configure-tcl
3216 maybe-configure-tcl:
3217 configure-tcl:
3218 @test ! -f tcl/Makefile || exit 0; \
3219 [ -d tcl ] || mkdir tcl; \
3220 r=`${PWD}`; export r; \
3221 s=`cd $(srcdir); ${PWD}`; export s; \
3222 CC="$(CC)"; export CC; \
3223 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3224 CXX="$(CXX)"; export CXX; \
3225 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3226 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3227 AR="$(AR)"; export AR; \
3228 AS="$(AS)"; export AS; \
3229 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3230 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3231 LD="$(LD)"; export LD; \
3232 NM="$(NM)"; export NM; \
3233 RANLIB="$(RANLIB)"; export RANLIB; \
3234 WINDRES="$(WINDRES)"; export WINDRES; \
3235 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3236 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3237 fi; \
3238 echo Configuring in tcl; \
3239 cd tcl || exit 1; \
3240 case $(srcdir) in \
3241 \.) \
3242 srcdiroption="--srcdir=."; \
3243 libsrcdir=".";; \
3244 /* | [A-Za-z]:[\\/]*) \
3245 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3246 libsrcdir="$$s/tcl";; \
3247 *) \
3248 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3249 libsrcdir="$$s/tcl";; \
3250 esac; \
3251 $(SHELL) $${libsrcdir}/configure \
3252 $(HOST_CONFIGARGS) $${srcdiroption} \
3253 || exit 1
3255 .PHONY: all-tcl maybe-all-tcl
3256 maybe-all-tcl:
3257 all-tcl: configure-tcl
3258 @r=`${PWD}`; export r; \
3259 s=`cd $(srcdir); ${PWD}`; export s; \
3260 $(SET_LIB_PATH) \
3261 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
3264 .PHONY: check-tcl
3265 check-tcl:
3266 @r=`${PWD}`; export r; \
3267 s=`cd $(srcdir); ${PWD}`; export s; \
3268 $(SET_LIB_PATH) \
3269 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
3273 .PHONY: install-tcl maybe-install-tcl
3274 maybe-install-tcl:
3275 install-tcl: installdirs
3276 @r=`${PWD}`; export r; \
3277 s=`cd $(srcdir); ${PWD}`; export s; \
3278 $(SET_LIB_PATH) \
3279 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
3282 .PHONY: configure-itcl maybe-configure-itcl
3283 maybe-configure-itcl:
3284 configure-itcl:
3285 @test ! -f itcl/Makefile || exit 0; \
3286 [ -d itcl ] || mkdir itcl; \
3287 r=`${PWD}`; export r; \
3288 s=`cd $(srcdir); ${PWD}`; export s; \
3289 CC="$(CC)"; export CC; \
3290 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3291 CXX="$(CXX)"; export CXX; \
3292 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3293 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3294 AR="$(AR)"; export AR; \
3295 AS="$(AS)"; export AS; \
3296 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3297 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3298 LD="$(LD)"; export LD; \
3299 NM="$(NM)"; export NM; \
3300 RANLIB="$(RANLIB)"; export RANLIB; \
3301 WINDRES="$(WINDRES)"; export WINDRES; \
3302 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3303 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3304 fi; \
3305 echo Configuring in itcl; \
3306 cd itcl || exit 1; \
3307 case $(srcdir) in \
3308 \.) \
3309 srcdiroption="--srcdir=."; \
3310 libsrcdir=".";; \
3311 /* | [A-Za-z]:[\\/]*) \
3312 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3313 libsrcdir="$$s/itcl";; \
3314 *) \
3315 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3316 libsrcdir="$$s/itcl";; \
3317 esac; \
3318 $(SHELL) $${libsrcdir}/configure \
3319 $(HOST_CONFIGARGS) $${srcdiroption} \
3320 || exit 1
3322 .PHONY: all-itcl maybe-all-itcl
3323 maybe-all-itcl:
3324 all-itcl: configure-itcl
3325 @r=`${PWD}`; export r; \
3326 s=`cd $(srcdir); ${PWD}`; export s; \
3327 $(SET_LIB_PATH) \
3328 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
3331 .PHONY: check-itcl
3332 check-itcl:
3333 @r=`${PWD}`; export r; \
3334 s=`cd $(srcdir); ${PWD}`; export s; \
3335 $(SET_LIB_PATH) \
3336 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
3340 .PHONY: install-itcl maybe-install-itcl
3341 maybe-install-itcl:
3342 install-itcl: installdirs
3343 @r=`${PWD}`; export r; \
3344 s=`cd $(srcdir); ${PWD}`; export s; \
3345 $(SET_LIB_PATH) \
3346 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
3349 .PHONY: configure-ld maybe-configure-ld
3350 maybe-configure-ld:
3351 configure-ld:
3352 @test ! -f ld/Makefile || exit 0; \
3353 [ -d ld ] || mkdir ld; \
3354 r=`${PWD}`; export r; \
3355 s=`cd $(srcdir); ${PWD}`; export s; \
3356 CC="$(CC)"; export CC; \
3357 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3358 CXX="$(CXX)"; export CXX; \
3359 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3360 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3361 AR="$(AR)"; export AR; \
3362 AS="$(AS)"; export AS; \
3363 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3364 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3365 LD="$(LD)"; export LD; \
3366 NM="$(NM)"; export NM; \
3367 RANLIB="$(RANLIB)"; export RANLIB; \
3368 WINDRES="$(WINDRES)"; export WINDRES; \
3369 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3370 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3371 fi; \
3372 echo Configuring in ld; \
3373 cd ld || exit 1; \
3374 case $(srcdir) in \
3375 \.) \
3376 srcdiroption="--srcdir=."; \
3377 libsrcdir=".";; \
3378 /* | [A-Za-z]:[\\/]*) \
3379 srcdiroption="--srcdir=$(srcdir)/ld"; \
3380 libsrcdir="$$s/ld";; \
3381 *) \
3382 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3383 libsrcdir="$$s/ld";; \
3384 esac; \
3385 $(SHELL) $${libsrcdir}/configure \
3386 $(HOST_CONFIGARGS) $${srcdiroption} \
3387 || exit 1
3389 .PHONY: all-ld maybe-all-ld
3390 maybe-all-ld:
3391 all-ld: configure-ld
3392 @r=`${PWD}`; export r; \
3393 s=`cd $(srcdir); ${PWD}`; export s; \
3394 $(SET_LIB_PATH) \
3395 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
3398 .PHONY: check-ld
3399 check-ld:
3400 @r=`${PWD}`; export r; \
3401 s=`cd $(srcdir); ${PWD}`; export s; \
3402 $(SET_LIB_PATH) \
3403 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
3407 .PHONY: install-ld maybe-install-ld
3408 maybe-install-ld:
3409 install-ld: installdirs
3410 @r=`${PWD}`; export r; \
3411 s=`cd $(srcdir); ${PWD}`; export s; \
3412 $(SET_LIB_PATH) \
3413 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
3416 .PHONY: configure-libgui maybe-configure-libgui
3417 maybe-configure-libgui:
3418 configure-libgui:
3419 @test ! -f libgui/Makefile || exit 0; \
3420 [ -d libgui ] || mkdir libgui; \
3421 r=`${PWD}`; export r; \
3422 s=`cd $(srcdir); ${PWD}`; export s; \
3423 CC="$(CC)"; export CC; \
3424 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3425 CXX="$(CXX)"; export CXX; \
3426 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3427 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3428 AR="$(AR)"; export AR; \
3429 AS="$(AS)"; export AS; \
3430 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3431 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3432 LD="$(LD)"; export LD; \
3433 NM="$(NM)"; export NM; \
3434 RANLIB="$(RANLIB)"; export RANLIB; \
3435 WINDRES="$(WINDRES)"; export WINDRES; \
3436 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3437 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3438 fi; \
3439 echo Configuring in libgui; \
3440 cd libgui || exit 1; \
3441 case $(srcdir) in \
3442 \.) \
3443 srcdiroption="--srcdir=."; \
3444 libsrcdir=".";; \
3445 /* | [A-Za-z]:[\\/]*) \
3446 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3447 libsrcdir="$$s/libgui";; \
3448 *) \
3449 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3450 libsrcdir="$$s/libgui";; \
3451 esac; \
3452 $(SHELL) $${libsrcdir}/configure \
3453 $(HOST_CONFIGARGS) $${srcdiroption} \
3454 || exit 1
3456 .PHONY: all-libgui maybe-all-libgui
3457 maybe-all-libgui:
3458 all-libgui: configure-libgui
3459 @r=`${PWD}`; export r; \
3460 s=`cd $(srcdir); ${PWD}`; export s; \
3461 $(SET_LIB_PATH) \
3462 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
3465 .PHONY: check-libgui
3466 check-libgui:
3467 @r=`${PWD}`; export r; \
3468 s=`cd $(srcdir); ${PWD}`; export s; \
3469 $(SET_LIB_PATH) \
3470 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
3474 .PHONY: install-libgui maybe-install-libgui
3475 maybe-install-libgui:
3476 install-libgui: installdirs
3477 @r=`${PWD}`; export r; \
3478 s=`cd $(srcdir); ${PWD}`; export s; \
3479 $(SET_LIB_PATH) \
3480 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
3483 .PHONY: configure-libiberty maybe-configure-libiberty
3484 maybe-configure-libiberty:
3485 configure-libiberty:
3486 @test ! -f libiberty/Makefile || exit 0; \
3487 [ -d libiberty ] || mkdir libiberty; \
3488 r=`${PWD}`; export r; \
3489 s=`cd $(srcdir); ${PWD}`; export s; \
3490 CC="$(CC)"; export CC; \
3491 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3492 CXX="$(CXX)"; export CXX; \
3493 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3494 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3495 AR="$(AR)"; export AR; \
3496 AS="$(AS)"; export AS; \
3497 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3498 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3499 LD="$(LD)"; export LD; \
3500 NM="$(NM)"; export NM; \
3501 RANLIB="$(RANLIB)"; export RANLIB; \
3502 WINDRES="$(WINDRES)"; export WINDRES; \
3503 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3504 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3505 fi; \
3506 echo Configuring in libiberty; \
3507 cd libiberty || exit 1; \
3508 case $(srcdir) in \
3509 \.) \
3510 srcdiroption="--srcdir=."; \
3511 libsrcdir=".";; \
3512 /* | [A-Za-z]:[\\/]*) \
3513 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3514 libsrcdir="$$s/libiberty";; \
3515 *) \
3516 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3517 libsrcdir="$$s/libiberty";; \
3518 esac; \
3519 $(SHELL) $${libsrcdir}/configure \
3520 $(HOST_CONFIGARGS) $${srcdiroption} \
3521 || exit 1
3523 .PHONY: all-libiberty maybe-all-libiberty
3524 maybe-all-libiberty:
3525 all-libiberty: configure-libiberty
3526 @r=`${PWD}`; export r; \
3527 s=`cd $(srcdir); ${PWD}`; export s; \
3528 $(SET_LIB_PATH) \
3529 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
3532 .PHONY: check-libiberty
3533 check-libiberty:
3534 @r=`${PWD}`; export r; \
3535 s=`cd $(srcdir); ${PWD}`; export s; \
3536 $(SET_LIB_PATH) \
3537 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
3541 .PHONY: install-libiberty maybe-install-libiberty
3542 maybe-install-libiberty:
3543 install-libiberty: installdirs
3544 @r=`${PWD}`; export r; \
3545 s=`cd $(srcdir); ${PWD}`; export s; \
3546 $(SET_LIB_PATH) \
3547 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
3550 .PHONY: configure-libtool maybe-configure-libtool
3551 maybe-configure-libtool:
3552 configure-libtool:
3553 @test ! -f libtool/Makefile || exit 0; \
3554 [ -d libtool ] || mkdir libtool; \
3555 r=`${PWD}`; export r; \
3556 s=`cd $(srcdir); ${PWD}`; export s; \
3557 CC="$(CC)"; export CC; \
3558 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3559 CXX="$(CXX)"; export CXX; \
3560 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3561 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3562 AR="$(AR)"; export AR; \
3563 AS="$(AS)"; export AS; \
3564 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3565 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3566 LD="$(LD)"; export LD; \
3567 NM="$(NM)"; export NM; \
3568 RANLIB="$(RANLIB)"; export RANLIB; \
3569 WINDRES="$(WINDRES)"; export WINDRES; \
3570 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3571 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3572 fi; \
3573 echo Configuring in libtool; \
3574 cd libtool || exit 1; \
3575 case $(srcdir) in \
3576 \.) \
3577 srcdiroption="--srcdir=."; \
3578 libsrcdir=".";; \
3579 /* | [A-Za-z]:[\\/]*) \
3580 srcdiroption="--srcdir=$(srcdir)/libtool"; \
3581 libsrcdir="$$s/libtool";; \
3582 *) \
3583 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
3584 libsrcdir="$$s/libtool";; \
3585 esac; \
3586 $(SHELL) $${libsrcdir}/configure \
3587 $(HOST_CONFIGARGS) $${srcdiroption} \
3588 || exit 1
3590 .PHONY: all-libtool maybe-all-libtool
3591 maybe-all-libtool:
3592 all-libtool: configure-libtool
3593 @r=`${PWD}`; export r; \
3594 s=`cd $(srcdir); ${PWD}`; export s; \
3595 $(SET_LIB_PATH) \
3596 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
3599 .PHONY: check-libtool
3600 check-libtool:
3601 @r=`${PWD}`; export r; \
3602 s=`cd $(srcdir); ${PWD}`; export s; \
3603 $(SET_LIB_PATH) \
3604 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
3608 .PHONY: install-libtool maybe-install-libtool
3609 maybe-install-libtool:
3610 install-libtool: installdirs
3611 @r=`${PWD}`; export r; \
3612 s=`cd $(srcdir); ${PWD}`; export s; \
3613 $(SET_LIB_PATH) \
3614 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
3617 .PHONY: configure-m4 maybe-configure-m4
3618 maybe-configure-m4:
3619 configure-m4:
3620 @test ! -f m4/Makefile || exit 0; \
3621 [ -d m4 ] || mkdir m4; \
3622 r=`${PWD}`; export r; \
3623 s=`cd $(srcdir); ${PWD}`; export s; \
3624 CC="$(CC)"; export CC; \
3625 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3626 CXX="$(CXX)"; export CXX; \
3627 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3628 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3629 AR="$(AR)"; export AR; \
3630 AS="$(AS)"; export AS; \
3631 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3632 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3633 LD="$(LD)"; export LD; \
3634 NM="$(NM)"; export NM; \
3635 RANLIB="$(RANLIB)"; export RANLIB; \
3636 WINDRES="$(WINDRES)"; export WINDRES; \
3637 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3638 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3639 fi; \
3640 echo Configuring in m4; \
3641 cd m4 || exit 1; \
3642 case $(srcdir) in \
3643 \.) \
3644 srcdiroption="--srcdir=."; \
3645 libsrcdir=".";; \
3646 /* | [A-Za-z]:[\\/]*) \
3647 srcdiroption="--srcdir=$(srcdir)/m4"; \
3648 libsrcdir="$$s/m4";; \
3649 *) \
3650 srcdiroption="--srcdir=../$(srcdir)/m4"; \
3651 libsrcdir="$$s/m4";; \
3652 esac; \
3653 $(SHELL) $${libsrcdir}/configure \
3654 $(HOST_CONFIGARGS) $${srcdiroption} \
3655 || exit 1
3657 .PHONY: all-m4 maybe-all-m4
3658 maybe-all-m4:
3659 all-m4: configure-m4
3660 @r=`${PWD}`; export r; \
3661 s=`cd $(srcdir); ${PWD}`; export s; \
3662 $(SET_LIB_PATH) \
3663 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
3666 .PHONY: check-m4
3667 check-m4:
3668 @r=`${PWD}`; export r; \
3669 s=`cd $(srcdir); ${PWD}`; export s; \
3670 $(SET_LIB_PATH) \
3671 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
3675 .PHONY: install-m4 maybe-install-m4
3676 maybe-install-m4:
3677 install-m4: installdirs
3678 @r=`${PWD}`; export r; \
3679 s=`cd $(srcdir); ${PWD}`; export s; \
3680 $(SET_LIB_PATH) \
3681 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
3684 .PHONY: configure-make maybe-configure-make
3685 maybe-configure-make:
3686 configure-make:
3687 @test ! -f make/Makefile || exit 0; \
3688 [ -d make ] || mkdir make; \
3689 r=`${PWD}`; export r; \
3690 s=`cd $(srcdir); ${PWD}`; export s; \
3691 CC="$(CC)"; export CC; \
3692 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3693 CXX="$(CXX)"; export CXX; \
3694 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3695 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3696 AR="$(AR)"; export AR; \
3697 AS="$(AS)"; export AS; \
3698 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3699 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3700 LD="$(LD)"; export LD; \
3701 NM="$(NM)"; export NM; \
3702 RANLIB="$(RANLIB)"; export RANLIB; \
3703 WINDRES="$(WINDRES)"; export WINDRES; \
3704 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3705 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3706 fi; \
3707 echo Configuring in make; \
3708 cd make || exit 1; \
3709 case $(srcdir) in \
3710 \.) \
3711 srcdiroption="--srcdir=."; \
3712 libsrcdir=".";; \
3713 /* | [A-Za-z]:[\\/]*) \
3714 srcdiroption="--srcdir=$(srcdir)/make"; \
3715 libsrcdir="$$s/make";; \
3716 *) \
3717 srcdiroption="--srcdir=../$(srcdir)/make"; \
3718 libsrcdir="$$s/make";; \
3719 esac; \
3720 $(SHELL) $${libsrcdir}/configure \
3721 $(HOST_CONFIGARGS) $${srcdiroption} \
3722 || exit 1
3724 .PHONY: all-make maybe-all-make
3725 maybe-all-make:
3726 all-make: configure-make
3727 @r=`${PWD}`; export r; \
3728 s=`cd $(srcdir); ${PWD}`; export s; \
3729 $(SET_LIB_PATH) \
3730 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
3733 .PHONY: check-make
3734 check-make:
3735 @r=`${PWD}`; export r; \
3736 s=`cd $(srcdir); ${PWD}`; export s; \
3737 $(SET_LIB_PATH) \
3738 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
3742 .PHONY: install-make maybe-install-make
3743 maybe-install-make:
3744 install-make: installdirs
3745 @r=`${PWD}`; export r; \
3746 s=`cd $(srcdir); ${PWD}`; export s; \
3747 $(SET_LIB_PATH) \
3748 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
3751 .PHONY: configure-mmalloc maybe-configure-mmalloc
3752 maybe-configure-mmalloc:
3753 configure-mmalloc:
3754 @test ! -f mmalloc/Makefile || exit 0; \
3755 [ -d mmalloc ] || mkdir mmalloc; \
3756 r=`${PWD}`; export r; \
3757 s=`cd $(srcdir); ${PWD}`; export s; \
3758 CC="$(CC)"; export CC; \
3759 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3760 CXX="$(CXX)"; export CXX; \
3761 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3762 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3763 AR="$(AR)"; export AR; \
3764 AS="$(AS)"; export AS; \
3765 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3766 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3767 LD="$(LD)"; export LD; \
3768 NM="$(NM)"; export NM; \
3769 RANLIB="$(RANLIB)"; export RANLIB; \
3770 WINDRES="$(WINDRES)"; export WINDRES; \
3771 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3772 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3773 fi; \
3774 echo Configuring in mmalloc; \
3775 cd mmalloc || exit 1; \
3776 case $(srcdir) in \
3777 \.) \
3778 srcdiroption="--srcdir=."; \
3779 libsrcdir=".";; \
3780 /* | [A-Za-z]:[\\/]*) \
3781 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
3782 libsrcdir="$$s/mmalloc";; \
3783 *) \
3784 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
3785 libsrcdir="$$s/mmalloc";; \
3786 esac; \
3787 $(SHELL) $${libsrcdir}/configure \
3788 $(HOST_CONFIGARGS) $${srcdiroption} \
3789 || exit 1
3791 .PHONY: all-mmalloc maybe-all-mmalloc
3792 maybe-all-mmalloc:
3793 all-mmalloc: configure-mmalloc
3794 @r=`${PWD}`; export r; \
3795 s=`cd $(srcdir); ${PWD}`; export s; \
3796 $(SET_LIB_PATH) \
3797 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
3800 .PHONY: check-mmalloc
3801 check-mmalloc:
3805 .PHONY: install-mmalloc maybe-install-mmalloc
3806 maybe-install-mmalloc:
3807 install-mmalloc: installdirs
3808 @r=`${PWD}`; export r; \
3809 s=`cd $(srcdir); ${PWD}`; export s; \
3810 $(SET_LIB_PATH) \
3811 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
3814 .PHONY: configure-patch maybe-configure-patch
3815 maybe-configure-patch:
3816 configure-patch:
3817 @test ! -f patch/Makefile || exit 0; \
3818 [ -d patch ] || mkdir patch; \
3819 r=`${PWD}`; export r; \
3820 s=`cd $(srcdir); ${PWD}`; export s; \
3821 CC="$(CC)"; export CC; \
3822 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3823 CXX="$(CXX)"; export CXX; \
3824 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3825 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3826 AR="$(AR)"; export AR; \
3827 AS="$(AS)"; export AS; \
3828 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3829 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3830 LD="$(LD)"; export LD; \
3831 NM="$(NM)"; export NM; \
3832 RANLIB="$(RANLIB)"; export RANLIB; \
3833 WINDRES="$(WINDRES)"; export WINDRES; \
3834 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3835 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3836 fi; \
3837 echo Configuring in patch; \
3838 cd patch || exit 1; \
3839 case $(srcdir) in \
3840 \.) \
3841 srcdiroption="--srcdir=."; \
3842 libsrcdir=".";; \
3843 /* | [A-Za-z]:[\\/]*) \
3844 srcdiroption="--srcdir=$(srcdir)/patch"; \
3845 libsrcdir="$$s/patch";; \
3846 *) \
3847 srcdiroption="--srcdir=../$(srcdir)/patch"; \
3848 libsrcdir="$$s/patch";; \
3849 esac; \
3850 $(SHELL) $${libsrcdir}/configure \
3851 $(HOST_CONFIGARGS) $${srcdiroption} \
3852 || exit 1
3854 .PHONY: all-patch maybe-all-patch
3855 maybe-all-patch:
3856 all-patch: configure-patch
3857 @r=`${PWD}`; export r; \
3858 s=`cd $(srcdir); ${PWD}`; export s; \
3859 $(SET_LIB_PATH) \
3860 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
3863 .PHONY: check-patch
3864 check-patch:
3865 @r=`${PWD}`; export r; \
3866 s=`cd $(srcdir); ${PWD}`; export s; \
3867 $(SET_LIB_PATH) \
3868 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
3872 .PHONY: install-patch maybe-install-patch
3873 maybe-install-patch:
3874 install-patch: installdirs
3875 @r=`${PWD}`; export r; \
3876 s=`cd $(srcdir); ${PWD}`; export s; \
3877 $(SET_LIB_PATH) \
3878 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
3881 .PHONY: configure-perl maybe-configure-perl
3882 maybe-configure-perl:
3883 configure-perl:
3884 @test ! -f perl/Makefile || exit 0; \
3885 [ -d perl ] || mkdir perl; \
3886 r=`${PWD}`; export r; \
3887 s=`cd $(srcdir); ${PWD}`; export s; \
3888 CC="$(CC)"; export CC; \
3889 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3890 CXX="$(CXX)"; export CXX; \
3891 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3892 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3893 AR="$(AR)"; export AR; \
3894 AS="$(AS)"; export AS; \
3895 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3896 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3897 LD="$(LD)"; export LD; \
3898 NM="$(NM)"; export NM; \
3899 RANLIB="$(RANLIB)"; export RANLIB; \
3900 WINDRES="$(WINDRES)"; export WINDRES; \
3901 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3902 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3903 fi; \
3904 echo Configuring in perl; \
3905 cd perl || exit 1; \
3906 case $(srcdir) in \
3907 \.) \
3908 srcdiroption="--srcdir=."; \
3909 libsrcdir=".";; \
3910 /* | [A-Za-z]:[\\/]*) \
3911 srcdiroption="--srcdir=$(srcdir)/perl"; \
3912 libsrcdir="$$s/perl";; \
3913 *) \
3914 srcdiroption="--srcdir=../$(srcdir)/perl"; \
3915 libsrcdir="$$s/perl";; \
3916 esac; \
3917 $(SHELL) $${libsrcdir}/configure \
3918 $(HOST_CONFIGARGS) $${srcdiroption} \
3919 || exit 1
3921 .PHONY: all-perl maybe-all-perl
3922 maybe-all-perl:
3923 all-perl: configure-perl
3924 @r=`${PWD}`; export r; \
3925 s=`cd $(srcdir); ${PWD}`; export s; \
3926 $(SET_LIB_PATH) \
3927 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
3930 .PHONY: check-perl
3931 check-perl:
3932 @r=`${PWD}`; export r; \
3933 s=`cd $(srcdir); ${PWD}`; export s; \
3934 $(SET_LIB_PATH) \
3935 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
3939 .PHONY: install-perl maybe-install-perl
3940 maybe-install-perl:
3941 install-perl: installdirs
3942 @r=`${PWD}`; export r; \
3943 s=`cd $(srcdir); ${PWD}`; export s; \
3944 $(SET_LIB_PATH) \
3945 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
3948 .PHONY: configure-prms maybe-configure-prms
3949 maybe-configure-prms:
3950 configure-prms:
3951 @test ! -f prms/Makefile || exit 0; \
3952 [ -d prms ] || mkdir prms; \
3953 r=`${PWD}`; export r; \
3954 s=`cd $(srcdir); ${PWD}`; export s; \
3955 CC="$(CC)"; export CC; \
3956 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3957 CXX="$(CXX)"; export CXX; \
3958 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3959 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3960 AR="$(AR)"; export AR; \
3961 AS="$(AS)"; export AS; \
3962 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3963 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3964 LD="$(LD)"; export LD; \
3965 NM="$(NM)"; export NM; \
3966 RANLIB="$(RANLIB)"; export RANLIB; \
3967 WINDRES="$(WINDRES)"; export WINDRES; \
3968 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3969 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3970 fi; \
3971 echo Configuring in prms; \
3972 cd prms || exit 1; \
3973 case $(srcdir) in \
3974 \.) \
3975 srcdiroption="--srcdir=."; \
3976 libsrcdir=".";; \
3977 /* | [A-Za-z]:[\\/]*) \
3978 srcdiroption="--srcdir=$(srcdir)/prms"; \
3979 libsrcdir="$$s/prms";; \
3980 *) \
3981 srcdiroption="--srcdir=../$(srcdir)/prms"; \
3982 libsrcdir="$$s/prms";; \
3983 esac; \
3984 $(SHELL) $${libsrcdir}/configure \
3985 $(HOST_CONFIGARGS) $${srcdiroption} \
3986 || exit 1
3988 .PHONY: all-prms maybe-all-prms
3989 maybe-all-prms:
3990 all-prms: configure-prms
3991 @r=`${PWD}`; export r; \
3992 s=`cd $(srcdir); ${PWD}`; export s; \
3993 $(SET_LIB_PATH) \
3994 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
3997 .PHONY: check-prms
3998 check-prms:
3999 @r=`${PWD}`; export r; \
4000 s=`cd $(srcdir); ${PWD}`; export s; \
4001 $(SET_LIB_PATH) \
4002 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4006 .PHONY: install-prms maybe-install-prms
4007 maybe-install-prms:
4008 install-prms: installdirs
4009 @r=`${PWD}`; export r; \
4010 s=`cd $(srcdir); ${PWD}`; export s; \
4011 $(SET_LIB_PATH) \
4012 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4015 .PHONY: configure-rcs maybe-configure-rcs
4016 maybe-configure-rcs:
4017 configure-rcs:
4018 @test ! -f rcs/Makefile || exit 0; \
4019 [ -d rcs ] || mkdir rcs; \
4020 r=`${PWD}`; export r; \
4021 s=`cd $(srcdir); ${PWD}`; export s; \
4022 CC="$(CC)"; export CC; \
4023 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4024 CXX="$(CXX)"; export CXX; \
4025 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4026 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4027 AR="$(AR)"; export AR; \
4028 AS="$(AS)"; export AS; \
4029 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4030 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4031 LD="$(LD)"; export LD; \
4032 NM="$(NM)"; export NM; \
4033 RANLIB="$(RANLIB)"; export RANLIB; \
4034 WINDRES="$(WINDRES)"; export WINDRES; \
4035 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4036 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4037 fi; \
4038 echo Configuring in rcs; \
4039 cd rcs || exit 1; \
4040 case $(srcdir) in \
4041 \.) \
4042 srcdiroption="--srcdir=."; \
4043 libsrcdir=".";; \
4044 /* | [A-Za-z]:[\\/]*) \
4045 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4046 libsrcdir="$$s/rcs";; \
4047 *) \
4048 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4049 libsrcdir="$$s/rcs";; \
4050 esac; \
4051 $(SHELL) $${libsrcdir}/configure \
4052 $(HOST_CONFIGARGS) $${srcdiroption} \
4053 || exit 1
4055 .PHONY: all-rcs maybe-all-rcs
4056 maybe-all-rcs:
4057 all-rcs: configure-rcs
4058 @r=`${PWD}`; export r; \
4059 s=`cd $(srcdir); ${PWD}`; export s; \
4060 $(SET_LIB_PATH) \
4061 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
4064 .PHONY: check-rcs
4065 check-rcs:
4066 @r=`${PWD}`; export r; \
4067 s=`cd $(srcdir); ${PWD}`; export s; \
4068 $(SET_LIB_PATH) \
4069 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4073 .PHONY: install-rcs maybe-install-rcs
4074 maybe-install-rcs:
4075 install-rcs: installdirs
4076 @r=`${PWD}`; export r; \
4077 s=`cd $(srcdir); ${PWD}`; export s; \
4078 $(SET_LIB_PATH) \
4079 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
4082 .PHONY: configure-readline maybe-configure-readline
4083 maybe-configure-readline:
4084 configure-readline:
4085 @test ! -f readline/Makefile || exit 0; \
4086 [ -d readline ] || mkdir readline; \
4087 r=`${PWD}`; export r; \
4088 s=`cd $(srcdir); ${PWD}`; export s; \
4089 CC="$(CC)"; export CC; \
4090 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4091 CXX="$(CXX)"; export CXX; \
4092 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4093 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4094 AR="$(AR)"; export AR; \
4095 AS="$(AS)"; export AS; \
4096 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4097 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4098 LD="$(LD)"; export LD; \
4099 NM="$(NM)"; export NM; \
4100 RANLIB="$(RANLIB)"; export RANLIB; \
4101 WINDRES="$(WINDRES)"; export WINDRES; \
4102 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4103 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4104 fi; \
4105 echo Configuring in readline; \
4106 cd readline || exit 1; \
4107 case $(srcdir) in \
4108 \.) \
4109 srcdiroption="--srcdir=."; \
4110 libsrcdir=".";; \
4111 /* | [A-Za-z]:[\\/]*) \
4112 srcdiroption="--srcdir=$(srcdir)/readline"; \
4113 libsrcdir="$$s/readline";; \
4114 *) \
4115 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4116 libsrcdir="$$s/readline";; \
4117 esac; \
4118 $(SHELL) $${libsrcdir}/configure \
4119 $(HOST_CONFIGARGS) $${srcdiroption} \
4120 || exit 1
4122 .PHONY: all-readline maybe-all-readline
4123 maybe-all-readline:
4124 all-readline: configure-readline
4125 @r=`${PWD}`; export r; \
4126 s=`cd $(srcdir); ${PWD}`; export s; \
4127 $(SET_LIB_PATH) \
4128 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
4131 .PHONY: check-readline
4132 check-readline:
4133 @r=`${PWD}`; export r; \
4134 s=`cd $(srcdir); ${PWD}`; export s; \
4135 $(SET_LIB_PATH) \
4136 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4140 .PHONY: install-readline maybe-install-readline
4141 maybe-install-readline:
4142 install-readline: installdirs
4143 @r=`${PWD}`; export r; \
4144 s=`cd $(srcdir); ${PWD}`; export s; \
4145 $(SET_LIB_PATH) \
4146 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4149 .PHONY: configure-release maybe-configure-release
4150 maybe-configure-release:
4151 configure-release:
4152 @test ! -f release/Makefile || exit 0; \
4153 [ -d release ] || mkdir release; \
4154 r=`${PWD}`; export r; \
4155 s=`cd $(srcdir); ${PWD}`; export s; \
4156 CC="$(CC)"; export CC; \
4157 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4158 CXX="$(CXX)"; export CXX; \
4159 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4160 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4161 AR="$(AR)"; export AR; \
4162 AS="$(AS)"; export AS; \
4163 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4164 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4165 LD="$(LD)"; export LD; \
4166 NM="$(NM)"; export NM; \
4167 RANLIB="$(RANLIB)"; export RANLIB; \
4168 WINDRES="$(WINDRES)"; export WINDRES; \
4169 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4170 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4171 fi; \
4172 echo Configuring in release; \
4173 cd release || exit 1; \
4174 case $(srcdir) in \
4175 \.) \
4176 srcdiroption="--srcdir=."; \
4177 libsrcdir=".";; \
4178 /* | [A-Za-z]:[\\/]*) \
4179 srcdiroption="--srcdir=$(srcdir)/release"; \
4180 libsrcdir="$$s/release";; \
4181 *) \
4182 srcdiroption="--srcdir=../$(srcdir)/release"; \
4183 libsrcdir="$$s/release";; \
4184 esac; \
4185 $(SHELL) $${libsrcdir}/configure \
4186 $(HOST_CONFIGARGS) $${srcdiroption} \
4187 || exit 1
4189 .PHONY: all-release maybe-all-release
4190 maybe-all-release:
4191 all-release: configure-release
4192 @r=`${PWD}`; export r; \
4193 s=`cd $(srcdir); ${PWD}`; export s; \
4194 $(SET_LIB_PATH) \
4195 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
4198 .PHONY: check-release
4199 check-release:
4203 .PHONY: install-release maybe-install-release
4204 maybe-install-release:
4205 install-release:
4208 .PHONY: configure-recode maybe-configure-recode
4209 maybe-configure-recode:
4210 configure-recode:
4211 @test ! -f recode/Makefile || exit 0; \
4212 [ -d recode ] || mkdir recode; \
4213 r=`${PWD}`; export r; \
4214 s=`cd $(srcdir); ${PWD}`; export s; \
4215 CC="$(CC)"; export CC; \
4216 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4217 CXX="$(CXX)"; export CXX; \
4218 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4219 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4220 AR="$(AR)"; export AR; \
4221 AS="$(AS)"; export AS; \
4222 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4223 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4224 LD="$(LD)"; export LD; \
4225 NM="$(NM)"; export NM; \
4226 RANLIB="$(RANLIB)"; export RANLIB; \
4227 WINDRES="$(WINDRES)"; export WINDRES; \
4228 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4229 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4230 fi; \
4231 echo Configuring in recode; \
4232 cd recode || exit 1; \
4233 case $(srcdir) in \
4234 \.) \
4235 srcdiroption="--srcdir=."; \
4236 libsrcdir=".";; \
4237 /* | [A-Za-z]:[\\/]*) \
4238 srcdiroption="--srcdir=$(srcdir)/recode"; \
4239 libsrcdir="$$s/recode";; \
4240 *) \
4241 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4242 libsrcdir="$$s/recode";; \
4243 esac; \
4244 $(SHELL) $${libsrcdir}/configure \
4245 $(HOST_CONFIGARGS) $${srcdiroption} \
4246 || exit 1
4248 .PHONY: all-recode maybe-all-recode
4249 maybe-all-recode:
4250 all-recode: configure-recode
4251 @r=`${PWD}`; export r; \
4252 s=`cd $(srcdir); ${PWD}`; export s; \
4253 $(SET_LIB_PATH) \
4254 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
4257 .PHONY: check-recode
4258 check-recode:
4259 @r=`${PWD}`; export r; \
4260 s=`cd $(srcdir); ${PWD}`; export s; \
4261 $(SET_LIB_PATH) \
4262 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4266 .PHONY: install-recode maybe-install-recode
4267 maybe-install-recode:
4268 install-recode: installdirs
4269 @r=`${PWD}`; export r; \
4270 s=`cd $(srcdir); ${PWD}`; export s; \
4271 $(SET_LIB_PATH) \
4272 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4275 .PHONY: configure-sed maybe-configure-sed
4276 maybe-configure-sed:
4277 configure-sed:
4278 @test ! -f sed/Makefile || exit 0; \
4279 [ -d sed ] || mkdir sed; \
4280 r=`${PWD}`; export r; \
4281 s=`cd $(srcdir); ${PWD}`; export s; \
4282 CC="$(CC)"; export CC; \
4283 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4284 CXX="$(CXX)"; export CXX; \
4285 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4286 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4287 AR="$(AR)"; export AR; \
4288 AS="$(AS)"; export AS; \
4289 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4290 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4291 LD="$(LD)"; export LD; \
4292 NM="$(NM)"; export NM; \
4293 RANLIB="$(RANLIB)"; export RANLIB; \
4294 WINDRES="$(WINDRES)"; export WINDRES; \
4295 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4296 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4297 fi; \
4298 echo Configuring in sed; \
4299 cd sed || exit 1; \
4300 case $(srcdir) in \
4301 \.) \
4302 srcdiroption="--srcdir=."; \
4303 libsrcdir=".";; \
4304 /* | [A-Za-z]:[\\/]*) \
4305 srcdiroption="--srcdir=$(srcdir)/sed"; \
4306 libsrcdir="$$s/sed";; \
4307 *) \
4308 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4309 libsrcdir="$$s/sed";; \
4310 esac; \
4311 $(SHELL) $${libsrcdir}/configure \
4312 $(HOST_CONFIGARGS) $${srcdiroption} \
4313 || exit 1
4315 .PHONY: all-sed maybe-all-sed
4316 maybe-all-sed:
4317 all-sed: configure-sed
4318 @r=`${PWD}`; export r; \
4319 s=`cd $(srcdir); ${PWD}`; export s; \
4320 $(SET_LIB_PATH) \
4321 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
4324 .PHONY: check-sed
4325 check-sed:
4326 @r=`${PWD}`; export r; \
4327 s=`cd $(srcdir); ${PWD}`; export s; \
4328 $(SET_LIB_PATH) \
4329 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4333 .PHONY: install-sed maybe-install-sed
4334 maybe-install-sed:
4335 install-sed: installdirs
4336 @r=`${PWD}`; export r; \
4337 s=`cd $(srcdir); ${PWD}`; export s; \
4338 $(SET_LIB_PATH) \
4339 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
4342 .PHONY: configure-send-pr maybe-configure-send-pr
4343 maybe-configure-send-pr:
4344 configure-send-pr:
4345 @test ! -f send-pr/Makefile || exit 0; \
4346 [ -d send-pr ] || mkdir send-pr; \
4347 r=`${PWD}`; export r; \
4348 s=`cd $(srcdir); ${PWD}`; export s; \
4349 CC="$(CC)"; export CC; \
4350 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4351 CXX="$(CXX)"; export CXX; \
4352 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4353 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4354 AR="$(AR)"; export AR; \
4355 AS="$(AS)"; export AS; \
4356 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4357 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4358 LD="$(LD)"; export LD; \
4359 NM="$(NM)"; export NM; \
4360 RANLIB="$(RANLIB)"; export RANLIB; \
4361 WINDRES="$(WINDRES)"; export WINDRES; \
4362 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4363 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4364 fi; \
4365 echo Configuring in send-pr; \
4366 cd send-pr || exit 1; \
4367 case $(srcdir) in \
4368 \.) \
4369 srcdiroption="--srcdir=."; \
4370 libsrcdir=".";; \
4371 /* | [A-Za-z]:[\\/]*) \
4372 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4373 libsrcdir="$$s/send-pr";; \
4374 *) \
4375 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4376 libsrcdir="$$s/send-pr";; \
4377 esac; \
4378 $(SHELL) $${libsrcdir}/configure \
4379 $(HOST_CONFIGARGS) $${srcdiroption} \
4380 || exit 1
4382 .PHONY: all-send-pr maybe-all-send-pr
4383 maybe-all-send-pr:
4384 all-send-pr: configure-send-pr
4385 @r=`${PWD}`; export r; \
4386 s=`cd $(srcdir); ${PWD}`; export s; \
4387 $(SET_LIB_PATH) \
4388 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
4391 .PHONY: check-send-pr
4392 check-send-pr:
4393 @r=`${PWD}`; export r; \
4394 s=`cd $(srcdir); ${PWD}`; export s; \
4395 $(SET_LIB_PATH) \
4396 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4400 .PHONY: install-send-pr maybe-install-send-pr
4401 maybe-install-send-pr:
4402 install-send-pr: installdirs
4403 @r=`${PWD}`; export r; \
4404 s=`cd $(srcdir); ${PWD}`; export s; \
4405 $(SET_LIB_PATH) \
4406 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4409 .PHONY: configure-shellutils maybe-configure-shellutils
4410 maybe-configure-shellutils:
4411 configure-shellutils:
4412 @test ! -f shellutils/Makefile || exit 0; \
4413 [ -d shellutils ] || mkdir shellutils; \
4414 r=`${PWD}`; export r; \
4415 s=`cd $(srcdir); ${PWD}`; export s; \
4416 CC="$(CC)"; export CC; \
4417 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4418 CXX="$(CXX)"; export CXX; \
4419 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4420 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4421 AR="$(AR)"; export AR; \
4422 AS="$(AS)"; export AS; \
4423 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4424 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4425 LD="$(LD)"; export LD; \
4426 NM="$(NM)"; export NM; \
4427 RANLIB="$(RANLIB)"; export RANLIB; \
4428 WINDRES="$(WINDRES)"; export WINDRES; \
4429 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4430 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4431 fi; \
4432 echo Configuring in shellutils; \
4433 cd shellutils || exit 1; \
4434 case $(srcdir) in \
4435 \.) \
4436 srcdiroption="--srcdir=."; \
4437 libsrcdir=".";; \
4438 /* | [A-Za-z]:[\\/]*) \
4439 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4440 libsrcdir="$$s/shellutils";; \
4441 *) \
4442 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4443 libsrcdir="$$s/shellutils";; \
4444 esac; \
4445 $(SHELL) $${libsrcdir}/configure \
4446 $(HOST_CONFIGARGS) $${srcdiroption} \
4447 || exit 1
4449 .PHONY: all-shellutils maybe-all-shellutils
4450 maybe-all-shellutils:
4451 all-shellutils: configure-shellutils
4452 @r=`${PWD}`; export r; \
4453 s=`cd $(srcdir); ${PWD}`; export s; \
4454 $(SET_LIB_PATH) \
4455 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
4458 .PHONY: check-shellutils
4459 check-shellutils:
4460 @r=`${PWD}`; export r; \
4461 s=`cd $(srcdir); ${PWD}`; export s; \
4462 $(SET_LIB_PATH) \
4463 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4467 .PHONY: install-shellutils maybe-install-shellutils
4468 maybe-install-shellutils:
4469 install-shellutils: installdirs
4470 @r=`${PWD}`; export r; \
4471 s=`cd $(srcdir); ${PWD}`; export s; \
4472 $(SET_LIB_PATH) \
4473 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4476 .PHONY: configure-sid maybe-configure-sid
4477 maybe-configure-sid:
4478 configure-sid:
4479 @test ! -f sid/Makefile || exit 0; \
4480 [ -d sid ] || mkdir sid; \
4481 r=`${PWD}`; export r; \
4482 s=`cd $(srcdir); ${PWD}`; export s; \
4483 CC="$(CC)"; export CC; \
4484 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4485 CXX="$(CXX)"; export CXX; \
4486 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4487 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4488 AR="$(AR)"; export AR; \
4489 AS="$(AS)"; export AS; \
4490 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4491 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4492 LD="$(LD)"; export LD; \
4493 NM="$(NM)"; export NM; \
4494 RANLIB="$(RANLIB)"; export RANLIB; \
4495 WINDRES="$(WINDRES)"; export WINDRES; \
4496 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4497 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4498 fi; \
4499 echo Configuring in sid; \
4500 cd sid || exit 1; \
4501 case $(srcdir) in \
4502 \.) \
4503 srcdiroption="--srcdir=."; \
4504 libsrcdir=".";; \
4505 /* | [A-Za-z]:[\\/]*) \
4506 srcdiroption="--srcdir=$(srcdir)/sid"; \
4507 libsrcdir="$$s/sid";; \
4508 *) \
4509 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4510 libsrcdir="$$s/sid";; \
4511 esac; \
4512 $(SHELL) $${libsrcdir}/configure \
4513 $(HOST_CONFIGARGS) $${srcdiroption} \
4514 || exit 1
4516 .PHONY: all-sid maybe-all-sid
4517 maybe-all-sid:
4518 all-sid: configure-sid
4519 @r=`${PWD}`; export r; \
4520 s=`cd $(srcdir); ${PWD}`; export s; \
4521 $(SET_LIB_PATH) \
4522 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
4525 .PHONY: check-sid
4526 check-sid:
4527 @r=`${PWD}`; export r; \
4528 s=`cd $(srcdir); ${PWD}`; export s; \
4529 $(SET_LIB_PATH) \
4530 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4534 .PHONY: install-sid maybe-install-sid
4535 maybe-install-sid:
4536 install-sid: installdirs
4537 @r=`${PWD}`; export r; \
4538 s=`cd $(srcdir); ${PWD}`; export s; \
4539 $(SET_LIB_PATH) \
4540 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
4543 .PHONY: configure-sim maybe-configure-sim
4544 maybe-configure-sim:
4545 configure-sim:
4546 @test ! -f sim/Makefile || exit 0; \
4547 [ -d sim ] || mkdir sim; \
4548 r=`${PWD}`; export r; \
4549 s=`cd $(srcdir); ${PWD}`; export s; \
4550 CC="$(CC)"; export CC; \
4551 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4552 CXX="$(CXX)"; export CXX; \
4553 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4554 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4555 AR="$(AR)"; export AR; \
4556 AS="$(AS)"; export AS; \
4557 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4558 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4559 LD="$(LD)"; export LD; \
4560 NM="$(NM)"; export NM; \
4561 RANLIB="$(RANLIB)"; export RANLIB; \
4562 WINDRES="$(WINDRES)"; export WINDRES; \
4563 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4564 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4565 fi; \
4566 echo Configuring in sim; \
4567 cd sim || exit 1; \
4568 case $(srcdir) in \
4569 \.) \
4570 srcdiroption="--srcdir=."; \
4571 libsrcdir=".";; \
4572 /* | [A-Za-z]:[\\/]*) \
4573 srcdiroption="--srcdir=$(srcdir)/sim"; \
4574 libsrcdir="$$s/sim";; \
4575 *) \
4576 srcdiroption="--srcdir=../$(srcdir)/sim"; \
4577 libsrcdir="$$s/sim";; \
4578 esac; \
4579 $(SHELL) $${libsrcdir}/configure \
4580 $(HOST_CONFIGARGS) $${srcdiroption} \
4581 || exit 1
4583 .PHONY: all-sim maybe-all-sim
4584 maybe-all-sim:
4585 all-sim: configure-sim
4586 @r=`${PWD}`; export r; \
4587 s=`cd $(srcdir); ${PWD}`; export s; \
4588 $(SET_LIB_PATH) \
4589 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
4592 .PHONY: check-sim
4593 check-sim:
4594 @r=`${PWD}`; export r; \
4595 s=`cd $(srcdir); ${PWD}`; export s; \
4596 $(SET_LIB_PATH) \
4597 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
4601 .PHONY: install-sim maybe-install-sim
4602 maybe-install-sim:
4603 install-sim: installdirs
4604 @r=`${PWD}`; export r; \
4605 s=`cd $(srcdir); ${PWD}`; export s; \
4606 $(SET_LIB_PATH) \
4607 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
4610 .PHONY: configure-tar maybe-configure-tar
4611 maybe-configure-tar:
4612 configure-tar:
4613 @test ! -f tar/Makefile || exit 0; \
4614 [ -d tar ] || mkdir tar; \
4615 r=`${PWD}`; export r; \
4616 s=`cd $(srcdir); ${PWD}`; export s; \
4617 CC="$(CC)"; export CC; \
4618 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4619 CXX="$(CXX)"; export CXX; \
4620 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4621 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4622 AR="$(AR)"; export AR; \
4623 AS="$(AS)"; export AS; \
4624 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4625 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4626 LD="$(LD)"; export LD; \
4627 NM="$(NM)"; export NM; \
4628 RANLIB="$(RANLIB)"; export RANLIB; \
4629 WINDRES="$(WINDRES)"; export WINDRES; \
4630 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4631 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4632 fi; \
4633 echo Configuring in tar; \
4634 cd tar || exit 1; \
4635 case $(srcdir) in \
4636 \.) \
4637 srcdiroption="--srcdir=."; \
4638 libsrcdir=".";; \
4639 /* | [A-Za-z]:[\\/]*) \
4640 srcdiroption="--srcdir=$(srcdir)/tar"; \
4641 libsrcdir="$$s/tar";; \
4642 *) \
4643 srcdiroption="--srcdir=../$(srcdir)/tar"; \
4644 libsrcdir="$$s/tar";; \
4645 esac; \
4646 $(SHELL) $${libsrcdir}/configure \
4647 $(HOST_CONFIGARGS) $${srcdiroption} \
4648 || exit 1
4650 .PHONY: all-tar maybe-all-tar
4651 maybe-all-tar:
4652 all-tar: configure-tar
4653 @r=`${PWD}`; export r; \
4654 s=`cd $(srcdir); ${PWD}`; export s; \
4655 $(SET_LIB_PATH) \
4656 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
4659 .PHONY: check-tar
4660 check-tar:
4661 @r=`${PWD}`; export r; \
4662 s=`cd $(srcdir); ${PWD}`; export s; \
4663 $(SET_LIB_PATH) \
4664 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
4668 .PHONY: install-tar maybe-install-tar
4669 maybe-install-tar:
4670 install-tar: installdirs
4671 @r=`${PWD}`; export r; \
4672 s=`cd $(srcdir); ${PWD}`; export s; \
4673 $(SET_LIB_PATH) \
4674 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
4677 .PHONY: configure-texinfo maybe-configure-texinfo
4678 maybe-configure-texinfo:
4679 configure-texinfo:
4680 @test ! -f texinfo/Makefile || exit 0; \
4681 [ -d texinfo ] || mkdir texinfo; \
4682 r=`${PWD}`; export r; \
4683 s=`cd $(srcdir); ${PWD}`; export s; \
4684 CC="$(CC)"; export CC; \
4685 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4686 CXX="$(CXX)"; export CXX; \
4687 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4688 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4689 AR="$(AR)"; export AR; \
4690 AS="$(AS)"; export AS; \
4691 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4692 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4693 LD="$(LD)"; export LD; \
4694 NM="$(NM)"; export NM; \
4695 RANLIB="$(RANLIB)"; export RANLIB; \
4696 WINDRES="$(WINDRES)"; export WINDRES; \
4697 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4698 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4699 fi; \
4700 echo Configuring in texinfo; \
4701 cd texinfo || exit 1; \
4702 case $(srcdir) in \
4703 \.) \
4704 srcdiroption="--srcdir=."; \
4705 libsrcdir=".";; \
4706 /* | [A-Za-z]:[\\/]*) \
4707 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
4708 libsrcdir="$$s/texinfo";; \
4709 *) \
4710 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
4711 libsrcdir="$$s/texinfo";; \
4712 esac; \
4713 $(SHELL) $${libsrcdir}/configure \
4714 $(HOST_CONFIGARGS) $${srcdiroption} \
4715 || exit 1
4717 .PHONY: all-texinfo maybe-all-texinfo
4718 maybe-all-texinfo:
4719 all-texinfo: configure-texinfo
4720 @r=`${PWD}`; export r; \
4721 s=`cd $(srcdir); ${PWD}`; export s; \
4722 $(SET_LIB_PATH) \
4723 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
4726 .PHONY: check-texinfo
4727 check-texinfo:
4728 @r=`${PWD}`; export r; \
4729 s=`cd $(srcdir); ${PWD}`; export s; \
4730 $(SET_LIB_PATH) \
4731 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
4735 .PHONY: install-texinfo maybe-install-texinfo
4736 maybe-install-texinfo:
4737 install-texinfo:
4740 .PHONY: configure-textutils maybe-configure-textutils
4741 maybe-configure-textutils:
4742 configure-textutils:
4743 @test ! -f textutils/Makefile || exit 0; \
4744 [ -d textutils ] || mkdir textutils; \
4745 r=`${PWD}`; export r; \
4746 s=`cd $(srcdir); ${PWD}`; export s; \
4747 CC="$(CC)"; export CC; \
4748 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4749 CXX="$(CXX)"; export CXX; \
4750 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4751 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4752 AR="$(AR)"; export AR; \
4753 AS="$(AS)"; export AS; \
4754 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4755 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4756 LD="$(LD)"; export LD; \
4757 NM="$(NM)"; export NM; \
4758 RANLIB="$(RANLIB)"; export RANLIB; \
4759 WINDRES="$(WINDRES)"; export WINDRES; \
4760 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4761 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4762 fi; \
4763 echo Configuring in textutils; \
4764 cd textutils || exit 1; \
4765 case $(srcdir) in \
4766 \.) \
4767 srcdiroption="--srcdir=."; \
4768 libsrcdir=".";; \
4769 /* | [A-Za-z]:[\\/]*) \
4770 srcdiroption="--srcdir=$(srcdir)/textutils"; \
4771 libsrcdir="$$s/textutils";; \
4772 *) \
4773 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
4774 libsrcdir="$$s/textutils";; \
4775 esac; \
4776 $(SHELL) $${libsrcdir}/configure \
4777 $(HOST_CONFIGARGS) $${srcdiroption} \
4778 || exit 1
4780 .PHONY: all-textutils maybe-all-textutils
4781 maybe-all-textutils:
4782 all-textutils: configure-textutils
4783 @r=`${PWD}`; export r; \
4784 s=`cd $(srcdir); ${PWD}`; export s; \
4785 $(SET_LIB_PATH) \
4786 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
4789 .PHONY: check-textutils
4790 check-textutils:
4791 @r=`${PWD}`; export r; \
4792 s=`cd $(srcdir); ${PWD}`; export s; \
4793 $(SET_LIB_PATH) \
4794 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
4798 .PHONY: install-textutils maybe-install-textutils
4799 maybe-install-textutils:
4800 install-textutils: installdirs
4801 @r=`${PWD}`; export r; \
4802 s=`cd $(srcdir); ${PWD}`; export s; \
4803 $(SET_LIB_PATH) \
4804 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
4807 .PHONY: configure-time maybe-configure-time
4808 maybe-configure-time:
4809 configure-time:
4810 @test ! -f time/Makefile || exit 0; \
4811 [ -d time ] || mkdir time; \
4812 r=`${PWD}`; export r; \
4813 s=`cd $(srcdir); ${PWD}`; export s; \
4814 CC="$(CC)"; export CC; \
4815 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4816 CXX="$(CXX)"; export CXX; \
4817 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4818 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4819 AR="$(AR)"; export AR; \
4820 AS="$(AS)"; export AS; \
4821 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4822 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4823 LD="$(LD)"; export LD; \
4824 NM="$(NM)"; export NM; \
4825 RANLIB="$(RANLIB)"; export RANLIB; \
4826 WINDRES="$(WINDRES)"; export WINDRES; \
4827 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4828 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4829 fi; \
4830 echo Configuring in time; \
4831 cd time || exit 1; \
4832 case $(srcdir) in \
4833 \.) \
4834 srcdiroption="--srcdir=."; \
4835 libsrcdir=".";; \
4836 /* | [A-Za-z]:[\\/]*) \
4837 srcdiroption="--srcdir=$(srcdir)/time"; \
4838 libsrcdir="$$s/time";; \
4839 *) \
4840 srcdiroption="--srcdir=../$(srcdir)/time"; \
4841 libsrcdir="$$s/time";; \
4842 esac; \
4843 $(SHELL) $${libsrcdir}/configure \
4844 $(HOST_CONFIGARGS) $${srcdiroption} \
4845 || exit 1
4847 .PHONY: all-time maybe-all-time
4848 maybe-all-time:
4849 all-time: configure-time
4850 @r=`${PWD}`; export r; \
4851 s=`cd $(srcdir); ${PWD}`; export s; \
4852 $(SET_LIB_PATH) \
4853 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
4856 .PHONY: check-time
4857 check-time:
4858 @r=`${PWD}`; export r; \
4859 s=`cd $(srcdir); ${PWD}`; export s; \
4860 $(SET_LIB_PATH) \
4861 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
4865 .PHONY: install-time maybe-install-time
4866 maybe-install-time:
4867 install-time: installdirs
4868 @r=`${PWD}`; export r; \
4869 s=`cd $(srcdir); ${PWD}`; export s; \
4870 $(SET_LIB_PATH) \
4871 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
4874 .PHONY: configure-uudecode maybe-configure-uudecode
4875 maybe-configure-uudecode:
4876 configure-uudecode:
4877 @test ! -f uudecode/Makefile || exit 0; \
4878 [ -d uudecode ] || mkdir uudecode; \
4879 r=`${PWD}`; export r; \
4880 s=`cd $(srcdir); ${PWD}`; export s; \
4881 CC="$(CC)"; export CC; \
4882 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4883 CXX="$(CXX)"; export CXX; \
4884 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4885 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4886 AR="$(AR)"; export AR; \
4887 AS="$(AS)"; export AS; \
4888 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4889 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4890 LD="$(LD)"; export LD; \
4891 NM="$(NM)"; export NM; \
4892 RANLIB="$(RANLIB)"; export RANLIB; \
4893 WINDRES="$(WINDRES)"; export WINDRES; \
4894 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4895 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4896 fi; \
4897 echo Configuring in uudecode; \
4898 cd uudecode || exit 1; \
4899 case $(srcdir) in \
4900 \.) \
4901 srcdiroption="--srcdir=."; \
4902 libsrcdir=".";; \
4903 /* | [A-Za-z]:[\\/]*) \
4904 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
4905 libsrcdir="$$s/uudecode";; \
4906 *) \
4907 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
4908 libsrcdir="$$s/uudecode";; \
4909 esac; \
4910 $(SHELL) $${libsrcdir}/configure \
4911 $(HOST_CONFIGARGS) $${srcdiroption} \
4912 || exit 1
4914 .PHONY: all-uudecode maybe-all-uudecode
4915 maybe-all-uudecode:
4916 all-uudecode: configure-uudecode
4917 @r=`${PWD}`; export r; \
4918 s=`cd $(srcdir); ${PWD}`; export s; \
4919 $(SET_LIB_PATH) \
4920 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
4923 .PHONY: check-uudecode
4924 check-uudecode:
4925 @r=`${PWD}`; export r; \
4926 s=`cd $(srcdir); ${PWD}`; export s; \
4927 $(SET_LIB_PATH) \
4928 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
4932 .PHONY: install-uudecode maybe-install-uudecode
4933 maybe-install-uudecode:
4934 install-uudecode: installdirs
4935 @r=`${PWD}`; export r; \
4936 s=`cd $(srcdir); ${PWD}`; export s; \
4937 $(SET_LIB_PATH) \
4938 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
4941 .PHONY: configure-wdiff maybe-configure-wdiff
4942 maybe-configure-wdiff:
4943 configure-wdiff:
4944 @test ! -f wdiff/Makefile || exit 0; \
4945 [ -d wdiff ] || mkdir wdiff; \
4946 r=`${PWD}`; export r; \
4947 s=`cd $(srcdir); ${PWD}`; export s; \
4948 CC="$(CC)"; export CC; \
4949 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4950 CXX="$(CXX)"; export CXX; \
4951 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4952 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4953 AR="$(AR)"; export AR; \
4954 AS="$(AS)"; export AS; \
4955 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4956 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4957 LD="$(LD)"; export LD; \
4958 NM="$(NM)"; export NM; \
4959 RANLIB="$(RANLIB)"; export RANLIB; \
4960 WINDRES="$(WINDRES)"; export WINDRES; \
4961 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4962 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4963 fi; \
4964 echo Configuring in wdiff; \
4965 cd wdiff || exit 1; \
4966 case $(srcdir) in \
4967 \.) \
4968 srcdiroption="--srcdir=."; \
4969 libsrcdir=".";; \
4970 /* | [A-Za-z]:[\\/]*) \
4971 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
4972 libsrcdir="$$s/wdiff";; \
4973 *) \
4974 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
4975 libsrcdir="$$s/wdiff";; \
4976 esac; \
4977 $(SHELL) $${libsrcdir}/configure \
4978 $(HOST_CONFIGARGS) $${srcdiroption} \
4979 || exit 1
4981 .PHONY: all-wdiff maybe-all-wdiff
4982 maybe-all-wdiff:
4983 all-wdiff: configure-wdiff
4984 @r=`${PWD}`; export r; \
4985 s=`cd $(srcdir); ${PWD}`; export s; \
4986 $(SET_LIB_PATH) \
4987 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
4990 .PHONY: check-wdiff
4991 check-wdiff:
4992 @r=`${PWD}`; export r; \
4993 s=`cd $(srcdir); ${PWD}`; export s; \
4994 $(SET_LIB_PATH) \
4995 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
4999 .PHONY: install-wdiff maybe-install-wdiff
5000 maybe-install-wdiff:
5001 install-wdiff: installdirs
5002 @r=`${PWD}`; export r; \
5003 s=`cd $(srcdir); ${PWD}`; export s; \
5004 $(SET_LIB_PATH) \
5005 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
5008 .PHONY: configure-zip maybe-configure-zip
5009 maybe-configure-zip:
5010 configure-zip:
5011 @test ! -f zip/Makefile || exit 0; \
5012 [ -d zip ] || mkdir zip; \
5013 r=`${PWD}`; export r; \
5014 s=`cd $(srcdir); ${PWD}`; export s; \
5015 CC="$(CC)"; export CC; \
5016 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5017 CXX="$(CXX)"; export CXX; \
5018 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5019 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5020 AR="$(AR)"; export AR; \
5021 AS="$(AS)"; export AS; \
5022 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5023 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5024 LD="$(LD)"; export LD; \
5025 NM="$(NM)"; export NM; \
5026 RANLIB="$(RANLIB)"; export RANLIB; \
5027 WINDRES="$(WINDRES)"; export WINDRES; \
5028 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5029 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5030 fi; \
5031 echo Configuring in zip; \
5032 cd zip || exit 1; \
5033 case $(srcdir) in \
5034 \.) \
5035 srcdiroption="--srcdir=."; \
5036 libsrcdir=".";; \
5037 /* | [A-Za-z]:[\\/]*) \
5038 srcdiroption="--srcdir=$(srcdir)/zip"; \
5039 libsrcdir="$$s/zip";; \
5040 *) \
5041 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5042 libsrcdir="$$s/zip";; \
5043 esac; \
5044 $(SHELL) $${libsrcdir}/configure \
5045 $(HOST_CONFIGARGS) $${srcdiroption} \
5046 || exit 1
5048 .PHONY: all-zip maybe-all-zip
5049 maybe-all-zip:
5050 all-zip: configure-zip
5051 @r=`${PWD}`; export r; \
5052 s=`cd $(srcdir); ${PWD}`; export s; \
5053 $(SET_LIB_PATH) \
5054 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
5057 .PHONY: check-zip
5058 # This module is only tested in a native toolchain.
5059 check-zip:
5060 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5061 r=`${PWD}`; export r; \
5062 s=`cd $(srcdir); ${PWD}`; export s; \
5063 $(SET_LIB_PATH) \
5064 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
5069 .PHONY: install-zip maybe-install-zip
5070 maybe-install-zip:
5071 install-zip: installdirs
5072 @r=`${PWD}`; export r; \
5073 s=`cd $(srcdir); ${PWD}`; export s; \
5074 $(SET_LIB_PATH) \
5075 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
5078 .PHONY: configure-zlib maybe-configure-zlib
5079 maybe-configure-zlib:
5080 configure-zlib:
5081 @test ! -f zlib/Makefile || exit 0; \
5082 [ -d zlib ] || mkdir zlib; \
5083 r=`${PWD}`; export r; \
5084 s=`cd $(srcdir); ${PWD}`; export s; \
5085 CC="$(CC)"; export CC; \
5086 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5087 CXX="$(CXX)"; export CXX; \
5088 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5089 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5090 AR="$(AR)"; export AR; \
5091 AS="$(AS)"; export AS; \
5092 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5093 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5094 LD="$(LD)"; export LD; \
5095 NM="$(NM)"; export NM; \
5096 RANLIB="$(RANLIB)"; export RANLIB; \
5097 WINDRES="$(WINDRES)"; export WINDRES; \
5098 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5099 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5100 fi; \
5101 echo Configuring in zlib; \
5102 cd zlib || exit 1; \
5103 case $(srcdir) in \
5104 \.) \
5105 srcdiroption="--srcdir=."; \
5106 libsrcdir=".";; \
5107 /* | [A-Za-z]:[\\/]*) \
5108 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5109 libsrcdir="$$s/zlib";; \
5110 *) \
5111 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5112 libsrcdir="$$s/zlib";; \
5113 esac; \
5114 $(SHELL) $${libsrcdir}/configure \
5115 $(HOST_CONFIGARGS) $${srcdiroption} \
5116 || exit 1
5118 .PHONY: all-zlib maybe-all-zlib
5119 maybe-all-zlib:
5120 all-zlib: configure-zlib
5121 @r=`${PWD}`; export r; \
5122 s=`cd $(srcdir); ${PWD}`; export s; \
5123 $(SET_LIB_PATH) \
5124 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
5127 .PHONY: check-zlib
5128 check-zlib:
5132 .PHONY: install-zlib maybe-install-zlib
5133 maybe-install-zlib:
5134 install-zlib:
5137 .PHONY: configure-gdb maybe-configure-gdb
5138 maybe-configure-gdb:
5139 configure-gdb:
5140 @test ! -f gdb/Makefile || exit 0; \
5141 [ -d gdb ] || mkdir gdb; \
5142 r=`${PWD}`; export r; \
5143 s=`cd $(srcdir); ${PWD}`; export s; \
5144 CC="$(CC)"; export CC; \
5145 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5146 CXX="$(CXX)"; export CXX; \
5147 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5148 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5149 AR="$(AR)"; export AR; \
5150 AS="$(AS)"; export AS; \
5151 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5152 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5153 LD="$(LD)"; export LD; \
5154 NM="$(NM)"; export NM; \
5155 RANLIB="$(RANLIB)"; export RANLIB; \
5156 WINDRES="$(WINDRES)"; export WINDRES; \
5157 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5158 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5159 fi; \
5160 echo Configuring in gdb; \
5161 cd gdb || exit 1; \
5162 case $(srcdir) in \
5163 \.) \
5164 srcdiroption="--srcdir=."; \
5165 libsrcdir=".";; \
5166 /* | [A-Za-z]:[\\/]*) \
5167 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5168 libsrcdir="$$s/gdb";; \
5169 *) \
5170 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5171 libsrcdir="$$s/gdb";; \
5172 esac; \
5173 $(SHELL) $${libsrcdir}/configure \
5174 $(HOST_CONFIGARGS) $${srcdiroption} \
5175 || exit 1
5177 .PHONY: all-gdb maybe-all-gdb
5178 maybe-all-gdb:
5179 all-gdb: configure-gdb
5180 @r=`${PWD}`; export r; \
5181 s=`cd $(srcdir); ${PWD}`; export s; \
5182 $(SET_LIB_PATH) \
5183 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5186 .PHONY: check-gdb
5187 check-gdb:
5188 @r=`${PWD}`; export r; \
5189 s=`cd $(srcdir); ${PWD}`; export s; \
5190 $(SET_LIB_PATH) \
5191 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5195 .PHONY: install-gdb maybe-install-gdb
5196 maybe-install-gdb:
5197 install-gdb: installdirs
5198 @r=`${PWD}`; export r; \
5199 s=`cd $(srcdir); ${PWD}`; export s; \
5200 $(SET_LIB_PATH) \
5201 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5204 .PHONY: configure-expect maybe-configure-expect
5205 maybe-configure-expect:
5206 configure-expect:
5207 @test ! -f expect/Makefile || exit 0; \
5208 [ -d expect ] || mkdir expect; \
5209 r=`${PWD}`; export r; \
5210 s=`cd $(srcdir); ${PWD}`; export s; \
5211 CC="$(CC)"; export CC; \
5212 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5213 CXX="$(CXX)"; export CXX; \
5214 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5215 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5216 AR="$(AR)"; export AR; \
5217 AS="$(AS)"; export AS; \
5218 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5219 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5220 LD="$(LD)"; export LD; \
5221 NM="$(NM)"; export NM; \
5222 RANLIB="$(RANLIB)"; export RANLIB; \
5223 WINDRES="$(WINDRES)"; export WINDRES; \
5224 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5225 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5226 fi; \
5227 echo Configuring in expect; \
5228 cd expect || exit 1; \
5229 case $(srcdir) in \
5230 \.) \
5231 srcdiroption="--srcdir=."; \
5232 libsrcdir=".";; \
5233 /* | [A-Za-z]:[\\/]*) \
5234 srcdiroption="--srcdir=$(srcdir)/expect"; \
5235 libsrcdir="$$s/expect";; \
5236 *) \
5237 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5238 libsrcdir="$$s/expect";; \
5239 esac; \
5240 $(SHELL) $${libsrcdir}/configure \
5241 $(HOST_CONFIGARGS) $${srcdiroption} \
5242 || exit 1
5244 .PHONY: all-expect maybe-all-expect
5245 maybe-all-expect:
5246 all-expect: configure-expect
5247 @r=`${PWD}`; export r; \
5248 s=`cd $(srcdir); ${PWD}`; export s; \
5249 $(SET_LIB_PATH) \
5250 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5253 .PHONY: check-expect
5254 check-expect:
5255 @r=`${PWD}`; export r; \
5256 s=`cd $(srcdir); ${PWD}`; export s; \
5257 $(SET_LIB_PATH) \
5258 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5262 .PHONY: install-expect maybe-install-expect
5263 maybe-install-expect:
5264 install-expect: installdirs
5265 @r=`${PWD}`; export r; \
5266 s=`cd $(srcdir); ${PWD}`; export s; \
5267 $(SET_LIB_PATH) \
5268 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5271 .PHONY: configure-guile maybe-configure-guile
5272 maybe-configure-guile:
5273 configure-guile:
5274 @test ! -f guile/Makefile || exit 0; \
5275 [ -d guile ] || mkdir guile; \
5276 r=`${PWD}`; export r; \
5277 s=`cd $(srcdir); ${PWD}`; export s; \
5278 CC="$(CC)"; export CC; \
5279 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5280 CXX="$(CXX)"; export CXX; \
5281 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5282 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5283 AR="$(AR)"; export AR; \
5284 AS="$(AS)"; export AS; \
5285 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5286 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5287 LD="$(LD)"; export LD; \
5288 NM="$(NM)"; export NM; \
5289 RANLIB="$(RANLIB)"; export RANLIB; \
5290 WINDRES="$(WINDRES)"; export WINDRES; \
5291 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5292 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5293 fi; \
5294 echo Configuring in guile; \
5295 cd guile || exit 1; \
5296 case $(srcdir) in \
5297 \.) \
5298 srcdiroption="--srcdir=."; \
5299 libsrcdir=".";; \
5300 /* | [A-Za-z]:[\\/]*) \
5301 srcdiroption="--srcdir=$(srcdir)/guile"; \
5302 libsrcdir="$$s/guile";; \
5303 *) \
5304 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5305 libsrcdir="$$s/guile";; \
5306 esac; \
5307 $(SHELL) $${libsrcdir}/configure \
5308 $(HOST_CONFIGARGS) $${srcdiroption} \
5309 || exit 1
5311 .PHONY: all-guile maybe-all-guile
5312 maybe-all-guile:
5313 all-guile: configure-guile
5314 @r=`${PWD}`; export r; \
5315 s=`cd $(srcdir); ${PWD}`; export s; \
5316 $(SET_LIB_PATH) \
5317 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5320 .PHONY: check-guile
5321 check-guile:
5322 @r=`${PWD}`; export r; \
5323 s=`cd $(srcdir); ${PWD}`; export s; \
5324 $(SET_LIB_PATH) \
5325 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5329 .PHONY: install-guile maybe-install-guile
5330 maybe-install-guile:
5331 install-guile: installdirs
5332 @r=`${PWD}`; export r; \
5333 s=`cd $(srcdir); ${PWD}`; export s; \
5334 $(SET_LIB_PATH) \
5335 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5338 .PHONY: configure-tk maybe-configure-tk
5339 maybe-configure-tk:
5340 configure-tk:
5341 @test ! -f tk/Makefile || exit 0; \
5342 [ -d tk ] || mkdir tk; \
5343 r=`${PWD}`; export r; \
5344 s=`cd $(srcdir); ${PWD}`; export s; \
5345 CC="$(CC)"; export CC; \
5346 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5347 CXX="$(CXX)"; export CXX; \
5348 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5349 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5350 AR="$(AR)"; export AR; \
5351 AS="$(AS)"; export AS; \
5352 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5353 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5354 LD="$(LD)"; export LD; \
5355 NM="$(NM)"; export NM; \
5356 RANLIB="$(RANLIB)"; export RANLIB; \
5357 WINDRES="$(WINDRES)"; export WINDRES; \
5358 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5359 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5360 fi; \
5361 echo Configuring in tk; \
5362 cd tk || exit 1; \
5363 case $(srcdir) in \
5364 \.) \
5365 srcdiroption="--srcdir=."; \
5366 libsrcdir=".";; \
5367 /* | [A-Za-z]:[\\/]*) \
5368 srcdiroption="--srcdir=$(srcdir)/tk"; \
5369 libsrcdir="$$s/tk";; \
5370 *) \
5371 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5372 libsrcdir="$$s/tk";; \
5373 esac; \
5374 $(SHELL) $${libsrcdir}/configure \
5375 $(HOST_CONFIGARGS) $${srcdiroption} \
5376 || exit 1
5378 .PHONY: all-tk maybe-all-tk
5379 maybe-all-tk:
5380 all-tk: configure-tk
5381 @r=`${PWD}`; export r; \
5382 s=`cd $(srcdir); ${PWD}`; export s; \
5383 $(SET_LIB_PATH) \
5384 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5387 .PHONY: check-tk
5388 check-tk:
5389 @r=`${PWD}`; export r; \
5390 s=`cd $(srcdir); ${PWD}`; export s; \
5391 $(SET_LIB_PATH) \
5392 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5396 .PHONY: install-tk maybe-install-tk
5397 maybe-install-tk:
5398 install-tk: installdirs
5399 @r=`${PWD}`; export r; \
5400 s=`cd $(srcdir); ${PWD}`; export s; \
5401 $(SET_LIB_PATH) \
5402 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5405 .PHONY: configure-tix maybe-configure-tix
5406 maybe-configure-tix:
5407 configure-tix:
5408 @test ! -f tix/Makefile || exit 0; \
5409 [ -d tix ] || mkdir tix; \
5410 r=`${PWD}`; export r; \
5411 s=`cd $(srcdir); ${PWD}`; export s; \
5412 CC="$(CC)"; export CC; \
5413 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5414 CXX="$(CXX)"; export CXX; \
5415 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5416 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5417 AR="$(AR)"; export AR; \
5418 AS="$(AS)"; export AS; \
5419 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5420 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5421 LD="$(LD)"; export LD; \
5422 NM="$(NM)"; export NM; \
5423 RANLIB="$(RANLIB)"; export RANLIB; \
5424 WINDRES="$(WINDRES)"; export WINDRES; \
5425 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5426 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5427 fi; \
5428 echo Configuring in tix; \
5429 cd tix || exit 1; \
5430 case $(srcdir) in \
5431 \.) \
5432 srcdiroption="--srcdir=."; \
5433 libsrcdir=".";; \
5434 /* | [A-Za-z]:[\\/]*) \
5435 srcdiroption="--srcdir=$(srcdir)/tix"; \
5436 libsrcdir="$$s/tix";; \
5437 *) \
5438 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5439 libsrcdir="$$s/tix";; \
5440 esac; \
5441 $(SHELL) $${libsrcdir}/configure \
5442 $(HOST_CONFIGARGS) $${srcdiroption} \
5443 || exit 1
5445 .PHONY: all-tix maybe-all-tix
5446 maybe-all-tix:
5447 all-tix: configure-tix
5448 @r=`${PWD}`; export r; \
5449 s=`cd $(srcdir); ${PWD}`; export s; \
5450 $(SET_LIB_PATH) \
5451 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5454 .PHONY: check-tix
5455 check-tix:
5456 @r=`${PWD}`; export r; \
5457 s=`cd $(srcdir); ${PWD}`; export s; \
5458 $(SET_LIB_PATH) \
5459 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5463 .PHONY: install-tix maybe-install-tix
5464 maybe-install-tix:
5465 install-tix: installdirs
5466 @r=`${PWD}`; export r; \
5467 s=`cd $(srcdir); ${PWD}`; export s; \
5468 $(SET_LIB_PATH) \
5469 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5472 .PHONY: configure-libtermcap maybe-configure-libtermcap
5473 maybe-configure-libtermcap:
5474 configure-libtermcap:
5475 @test ! -f libtermcap/Makefile || exit 0; \
5476 [ -d libtermcap ] || mkdir libtermcap; \
5477 r=`${PWD}`; export r; \
5478 s=`cd $(srcdir); ${PWD}`; export s; \
5479 CC="$(CC)"; export CC; \
5480 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5481 CXX="$(CXX)"; export CXX; \
5482 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5483 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5484 AR="$(AR)"; export AR; \
5485 AS="$(AS)"; export AS; \
5486 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5487 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5488 LD="$(LD)"; export LD; \
5489 NM="$(NM)"; export NM; \
5490 RANLIB="$(RANLIB)"; export RANLIB; \
5491 WINDRES="$(WINDRES)"; export WINDRES; \
5492 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5493 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5494 fi; \
5495 echo Configuring in libtermcap; \
5496 cd libtermcap || exit 1; \
5497 case $(srcdir) in \
5498 \.) \
5499 srcdiroption="--srcdir=."; \
5500 libsrcdir=".";; \
5501 /* | [A-Za-z]:[\\/]*) \
5502 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5503 libsrcdir="$$s/libtermcap";; \
5504 *) \
5505 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5506 libsrcdir="$$s/libtermcap";; \
5507 esac; \
5508 $(SHELL) $${libsrcdir}/configure \
5509 $(HOST_CONFIGARGS) $${srcdiroption} \
5510 || exit 1
5512 .PHONY: all-libtermcap maybe-all-libtermcap
5513 maybe-all-libtermcap:
5514 all-libtermcap: configure-libtermcap
5515 @r=`${PWD}`; export r; \
5516 s=`cd $(srcdir); ${PWD}`; export s; \
5517 $(SET_LIB_PATH) \
5518 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
5521 .PHONY: check-libtermcap
5522 check-libtermcap:
5526 .PHONY: install-libtermcap maybe-install-libtermcap
5527 maybe-install-libtermcap:
5528 install-libtermcap: installdirs
5529 @r=`${PWD}`; export r; \
5530 s=`cd $(srcdir); ${PWD}`; export s; \
5531 $(SET_LIB_PATH) \
5532 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
5535 .PHONY: configure-utils maybe-configure-utils
5536 maybe-configure-utils:
5537 configure-utils:
5538 @test ! -f utils/Makefile || exit 0; \
5539 [ -d utils ] || mkdir utils; \
5540 r=`${PWD}`; export r; \
5541 s=`cd $(srcdir); ${PWD}`; export s; \
5542 CC="$(CC)"; export CC; \
5543 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5544 CXX="$(CXX)"; export CXX; \
5545 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5546 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5547 AR="$(AR)"; export AR; \
5548 AS="$(AS)"; export AS; \
5549 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5550 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5551 LD="$(LD)"; export LD; \
5552 NM="$(NM)"; export NM; \
5553 RANLIB="$(RANLIB)"; export RANLIB; \
5554 WINDRES="$(WINDRES)"; export WINDRES; \
5555 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5556 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5557 fi; \
5558 echo Configuring in utils; \
5559 cd utils || exit 1; \
5560 case $(srcdir) in \
5561 \.) \
5562 srcdiroption="--srcdir=."; \
5563 libsrcdir=".";; \
5564 /* | [A-Za-z]:[\\/]*) \
5565 srcdiroption="--srcdir=$(srcdir)/utils"; \
5566 libsrcdir="$$s/utils";; \
5567 *) \
5568 srcdiroption="--srcdir=../$(srcdir)/utils"; \
5569 libsrcdir="$$s/utils";; \
5570 esac; \
5571 $(SHELL) $${libsrcdir}/configure \
5572 $(HOST_CONFIGARGS) $${srcdiroption} \
5573 || exit 1
5575 .PHONY: all-utils maybe-all-utils
5576 maybe-all-utils:
5577 all-utils: configure-utils
5578 @r=`${PWD}`; export r; \
5579 s=`cd $(srcdir); ${PWD}`; export s; \
5580 $(SET_LIB_PATH) \
5581 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
5584 .PHONY: check-utils
5585 check-utils:
5589 .PHONY: install-utils maybe-install-utils
5590 maybe-install-utils:
5591 install-utils: installdirs
5592 @r=`${PWD}`; export r; \
5593 s=`cd $(srcdir); ${PWD}`; export s; \
5594 $(SET_LIB_PATH) \
5595 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
5599 # ---------------------------------------
5600 # Modules which run on the target machine
5601 # ---------------------------------------
5603 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
5604 maybe-configure-target-libstdc++-v3:
5606 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5607 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
5608 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5609 mkdir $(TARGET_SUBDIR)/libstdc++-v3; \
5610 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
5611 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5613 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5614 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
5615 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
5616 mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5617 r=`${PWD}`; export r; \
5618 s=`cd $(srcdir); ${PWD}`; export s; \
5619 $(SET_LIB_PATH) \
5620 AR="$(AR_FOR_TARGET)"; export AR; \
5621 AS="$(AS_FOR_TARGET)"; export AS; \
5622 CC="$(CC_FOR_TARGET)"; export CC; \
5623 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5624 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5625 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
5626 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
5627 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5628 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5629 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5630 LD="$(LD_FOR_TARGET)"; export LD; \
5631 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5632 NM="$(NM_FOR_TARGET)"; export NM; \
5633 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5634 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5635 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
5636 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
5637 case $(srcdir) in \
5638 /* | [A-Za-z]:[\\/]*) \
5639 topdir=$(srcdir) ;; \
5640 *) \
5641 case "$(TARGET_SUBDIR)" in \
5642 .) topdir="../$(srcdir)" ;; \
5643 *) topdir="../../$(srcdir)" ;; \
5644 esac ;; \
5645 esac; \
5646 if [ "$(srcdir)" = "." ] ; then \
5647 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5648 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
5649 if [ -f Makefile ]; then \
5650 if $(MAKE) distclean; then \
5651 true; \
5652 else \
5653 exit 1; \
5654 fi; \
5655 else \
5656 true; \
5657 fi; \
5658 else \
5659 exit 1; \
5660 fi; \
5661 else \
5662 true; \
5663 fi; \
5664 srcdiroption="--srcdir=."; \
5665 libsrcdir="."; \
5666 else \
5667 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
5668 libsrcdir="$$s/libstdc++-v3"; \
5669 fi; \
5670 rm -f no-such-file || : ; \
5671 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5672 $(TARGET_CONFIGARGS) $${srcdiroption} \
5673 --with-target-subdir="$(TARGET_SUBDIR)" \
5674 || exit 1
5676 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
5677 maybe-all-target-libstdc++-v3:
5678 all-target-libstdc++-v3: configure-target-libstdc++-v3
5679 @r=`${PWD}`; export r; \
5680 s=`cd $(srcdir); ${PWD}`; export s; \
5681 $(SET_LIB_PATH) \
5682 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5683 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
5685 .PHONY: check-target-libstdc++-v3
5686 check-target-libstdc++-v3:
5687 @r=`${PWD}`; export r; \
5688 s=`cd $(srcdir); ${PWD}`; export s; \
5689 $(SET_LIB_PATH) \
5690 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5691 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
5694 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
5695 maybe-install-target-libstdc++-v3:
5696 install-target-libstdc++-v3: installdirs
5697 @r=`${PWD}`; export r; \
5698 s=`cd $(srcdir); ${PWD}`; export s; \
5699 $(SET_LIB_PATH) \
5700 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5701 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5704 .PHONY: configure-target-newlib maybe-configure-target-newlib
5705 maybe-configure-target-newlib:
5707 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5708 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
5709 @[ -d $(TARGET_SUBDIR)/newlib ] || \
5710 mkdir $(TARGET_SUBDIR)/newlib; \
5711 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
5712 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
5714 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
5715 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
5716 [ -d $(TARGET_SUBDIR)/newlib ] || \
5717 mkdir $(TARGET_SUBDIR)/newlib;\
5718 r=`${PWD}`; export r; \
5719 s=`cd $(srcdir); ${PWD}`; export s; \
5720 $(SET_LIB_PATH) \
5721 AR="$(AR_FOR_TARGET)"; export AR; \
5722 AS="$(AS_FOR_TARGET)"; export AS; \
5723 CC="$(CC_FOR_TARGET)"; export CC; \
5724 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5725 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5726 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5727 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5728 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5729 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5730 LD="$(LD_FOR_TARGET)"; export LD; \
5731 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5732 NM="$(NM_FOR_TARGET)"; export NM; \
5733 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5734 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5735 echo Configuring in $(TARGET_SUBDIR)/newlib; \
5736 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
5737 case $(srcdir) in \
5738 /* | [A-Za-z]:[\\/]*) \
5739 topdir=$(srcdir) ;; \
5740 *) \
5741 case "$(TARGET_SUBDIR)" in \
5742 .) topdir="../$(srcdir)" ;; \
5743 *) topdir="../../$(srcdir)" ;; \
5744 esac ;; \
5745 esac; \
5746 if [ "$(srcdir)" = "." ] ; then \
5747 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5748 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
5749 if [ -f Makefile ]; then \
5750 if $(MAKE) distclean; then \
5751 true; \
5752 else \
5753 exit 1; \
5754 fi; \
5755 else \
5756 true; \
5757 fi; \
5758 else \
5759 exit 1; \
5760 fi; \
5761 else \
5762 true; \
5763 fi; \
5764 srcdiroption="--srcdir=."; \
5765 libsrcdir="."; \
5766 else \
5767 srcdiroption="--srcdir=$${topdir}/newlib"; \
5768 libsrcdir="$$s/newlib"; \
5769 fi; \
5770 rm -f no-such-file || : ; \
5771 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5772 $(TARGET_CONFIGARGS) $${srcdiroption} \
5773 --with-target-subdir="$(TARGET_SUBDIR)" \
5774 || exit 1
5776 .PHONY: all-target-newlib maybe-all-target-newlib
5777 maybe-all-target-newlib:
5778 all-target-newlib: configure-target-newlib
5779 @r=`${PWD}`; export r; \
5780 s=`cd $(srcdir); ${PWD}`; export s; \
5781 $(SET_LIB_PATH) \
5782 (cd $(TARGET_SUBDIR)/newlib && \
5783 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5785 .PHONY: check-target-newlib
5786 check-target-newlib:
5787 @r=`${PWD}`; export r; \
5788 s=`cd $(srcdir); ${PWD}`; export s; \
5789 $(SET_LIB_PATH) \
5790 (cd $(TARGET_SUBDIR)/newlib && \
5791 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5794 .PHONY: install-target-newlib maybe-install-target-newlib
5795 maybe-install-target-newlib:
5796 install-target-newlib: installdirs
5797 @r=`${PWD}`; export r; \
5798 s=`cd $(srcdir); ${PWD}`; export s; \
5799 $(SET_LIB_PATH) \
5800 (cd $(TARGET_SUBDIR)/newlib && \
5801 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5804 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
5805 maybe-configure-target-libf2c:
5807 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5808 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
5809 @[ -d $(TARGET_SUBDIR)/libf2c ] || \
5810 mkdir $(TARGET_SUBDIR)/libf2c; \
5811 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
5812 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
5814 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
5815 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
5816 [ -d $(TARGET_SUBDIR)/libf2c ] || \
5817 mkdir $(TARGET_SUBDIR)/libf2c;\
5818 r=`${PWD}`; export r; \
5819 s=`cd $(srcdir); ${PWD}`; export s; \
5820 $(SET_LIB_PATH) \
5821 AR="$(AR_FOR_TARGET)"; export AR; \
5822 AS="$(AS_FOR_TARGET)"; export AS; \
5823 CC="$(CC_FOR_TARGET)"; export CC; \
5824 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5825 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5826 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5827 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5828 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5829 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5830 LD="$(LD_FOR_TARGET)"; export LD; \
5831 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5832 NM="$(NM_FOR_TARGET)"; export NM; \
5833 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5834 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5835 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
5836 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
5837 case $(srcdir) in \
5838 /* | [A-Za-z]:[\\/]*) \
5839 topdir=$(srcdir) ;; \
5840 *) \
5841 case "$(TARGET_SUBDIR)" in \
5842 .) topdir="../$(srcdir)" ;; \
5843 *) topdir="../../$(srcdir)" ;; \
5844 esac ;; \
5845 esac; \
5846 if [ "$(srcdir)" = "." ] ; then \
5847 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5848 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
5849 if [ -f Makefile ]; then \
5850 if $(MAKE) distclean; then \
5851 true; \
5852 else \
5853 exit 1; \
5854 fi; \
5855 else \
5856 true; \
5857 fi; \
5858 else \
5859 exit 1; \
5860 fi; \
5861 else \
5862 true; \
5863 fi; \
5864 srcdiroption="--srcdir=."; \
5865 libsrcdir="."; \
5866 else \
5867 srcdiroption="--srcdir=$${topdir}/libf2c"; \
5868 libsrcdir="$$s/libf2c"; \
5869 fi; \
5870 rm -f no-such-file || : ; \
5871 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5872 $(TARGET_CONFIGARGS) $${srcdiroption} \
5873 --with-target-subdir="$(TARGET_SUBDIR)" \
5874 || exit 1
5876 .PHONY: all-target-libf2c maybe-all-target-libf2c
5877 maybe-all-target-libf2c:
5878 all-target-libf2c: configure-target-libf2c
5879 @r=`${PWD}`; export r; \
5880 s=`cd $(srcdir); ${PWD}`; export s; \
5881 $(SET_LIB_PATH) \
5882 (cd $(TARGET_SUBDIR)/libf2c && \
5883 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5885 .PHONY: check-target-libf2c
5886 check-target-libf2c:
5887 @r=`${PWD}`; export r; \
5888 s=`cd $(srcdir); ${PWD}`; export s; \
5889 $(SET_LIB_PATH) \
5890 (cd $(TARGET_SUBDIR)/libf2c && \
5891 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5894 .PHONY: install-target-libf2c maybe-install-target-libf2c
5895 maybe-install-target-libf2c:
5896 install-target-libf2c: installdirs
5897 @r=`${PWD}`; export r; \
5898 s=`cd $(srcdir); ${PWD}`; export s; \
5899 $(SET_LIB_PATH) \
5900 (cd $(TARGET_SUBDIR)/libf2c && \
5901 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5904 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
5905 maybe-configure-target-libobjc:
5907 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5908 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
5909 @[ -d $(TARGET_SUBDIR)/libobjc ] || \
5910 mkdir $(TARGET_SUBDIR)/libobjc; \
5911 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
5912 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
5914 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
5915 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
5916 [ -d $(TARGET_SUBDIR)/libobjc ] || \
5917 mkdir $(TARGET_SUBDIR)/libobjc;\
5918 r=`${PWD}`; export r; \
5919 s=`cd $(srcdir); ${PWD}`; export s; \
5920 $(SET_LIB_PATH) \
5921 AR="$(AR_FOR_TARGET)"; export AR; \
5922 AS="$(AS_FOR_TARGET)"; export AS; \
5923 CC="$(CC_FOR_TARGET)"; export CC; \
5924 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5925 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
5926 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5927 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5928 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5929 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5930 LD="$(LD_FOR_TARGET)"; export LD; \
5931 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5932 NM="$(NM_FOR_TARGET)"; export NM; \
5933 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5934 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5935 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
5936 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
5937 case $(srcdir) in \
5938 /* | [A-Za-z]:[\\/]*) \
5939 topdir=$(srcdir) ;; \
5940 *) \
5941 case "$(TARGET_SUBDIR)" in \
5942 .) topdir="../$(srcdir)" ;; \
5943 *) topdir="../../$(srcdir)" ;; \
5944 esac ;; \
5945 esac; \
5946 if [ "$(srcdir)" = "." ] ; then \
5947 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5948 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
5949 if [ -f Makefile ]; then \
5950 if $(MAKE) distclean; then \
5951 true; \
5952 else \
5953 exit 1; \
5954 fi; \
5955 else \
5956 true; \
5957 fi; \
5958 else \
5959 exit 1; \
5960 fi; \
5961 else \
5962 true; \
5963 fi; \
5964 srcdiroption="--srcdir=."; \
5965 libsrcdir="."; \
5966 else \
5967 srcdiroption="--srcdir=$${topdir}/libobjc"; \
5968 libsrcdir="$$s/libobjc"; \
5969 fi; \
5970 rm -f no-such-file || : ; \
5971 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5972 $(TARGET_CONFIGARGS) $${srcdiroption} \
5973 --with-target-subdir="$(TARGET_SUBDIR)" \
5974 || exit 1
5976 .PHONY: all-target-libobjc maybe-all-target-libobjc
5977 maybe-all-target-libobjc:
5978 all-target-libobjc: configure-target-libobjc
5979 @r=`${PWD}`; export r; \
5980 s=`cd $(srcdir); ${PWD}`; export s; \
5981 $(SET_LIB_PATH) \
5982 (cd $(TARGET_SUBDIR)/libobjc && \
5983 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
5985 .PHONY: check-target-libobjc
5986 check-target-libobjc:
5987 @r=`${PWD}`; export r; \
5988 s=`cd $(srcdir); ${PWD}`; export s; \
5989 $(SET_LIB_PATH) \
5990 (cd $(TARGET_SUBDIR)/libobjc && \
5991 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
5994 .PHONY: install-target-libobjc maybe-install-target-libobjc
5995 maybe-install-target-libobjc:
5996 install-target-libobjc: installdirs
5997 @r=`${PWD}`; export r; \
5998 s=`cd $(srcdir); ${PWD}`; export s; \
5999 $(SET_LIB_PATH) \
6000 (cd $(TARGET_SUBDIR)/libobjc && \
6001 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6004 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6005 maybe-configure-target-libtermcap:
6007 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6008 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
6009 @[ -d $(TARGET_SUBDIR)/libtermcap ] || \
6010 mkdir $(TARGET_SUBDIR)/libtermcap; \
6011 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
6012 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
6014 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
6015 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
6016 [ -d $(TARGET_SUBDIR)/libtermcap ] || \
6017 mkdir $(TARGET_SUBDIR)/libtermcap;\
6018 r=`${PWD}`; export r; \
6019 s=`cd $(srcdir); ${PWD}`; export s; \
6020 $(SET_LIB_PATH) \
6021 AR="$(AR_FOR_TARGET)"; export AR; \
6022 AS="$(AS_FOR_TARGET)"; export AS; \
6023 CC="$(CC_FOR_TARGET)"; export CC; \
6024 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6025 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6026 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6027 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6028 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6029 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6030 LD="$(LD_FOR_TARGET)"; export LD; \
6031 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6032 NM="$(NM_FOR_TARGET)"; export NM; \
6033 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6034 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6035 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6036 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6037 case $(srcdir) in \
6038 /* | [A-Za-z]:[\\/]*) \
6039 topdir=$(srcdir) ;; \
6040 *) \
6041 case "$(TARGET_SUBDIR)" in \
6042 .) topdir="../$(srcdir)" ;; \
6043 *) topdir="../../$(srcdir)" ;; \
6044 esac ;; \
6045 esac; \
6046 if [ "$(srcdir)" = "." ] ; then \
6047 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6048 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6049 if [ -f Makefile ]; then \
6050 if $(MAKE) distclean; then \
6051 true; \
6052 else \
6053 exit 1; \
6054 fi; \
6055 else \
6056 true; \
6057 fi; \
6058 else \
6059 exit 1; \
6060 fi; \
6061 else \
6062 true; \
6063 fi; \
6064 srcdiroption="--srcdir=."; \
6065 libsrcdir="."; \
6066 else \
6067 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6068 libsrcdir="$$s/libtermcap"; \
6069 fi; \
6070 rm -f no-such-file || : ; \
6071 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6072 $(TARGET_CONFIGARGS) $${srcdiroption} \
6073 --with-target-subdir="$(TARGET_SUBDIR)" \
6074 || exit 1
6076 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
6077 maybe-all-target-libtermcap:
6078 all-target-libtermcap: configure-target-libtermcap
6079 @r=`${PWD}`; export r; \
6080 s=`cd $(srcdir); ${PWD}`; export s; \
6081 $(SET_LIB_PATH) \
6082 (cd $(TARGET_SUBDIR)/libtermcap && \
6083 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6085 # Dummy target for uncheckable module.
6086 .PHONY: check-target-libtermcap
6087 check-target-libtermcap:
6090 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
6091 maybe-install-target-libtermcap:
6092 install-target-libtermcap: installdirs
6093 @r=`${PWD}`; export r; \
6094 s=`cd $(srcdir); ${PWD}`; export s; \
6095 $(SET_LIB_PATH) \
6096 (cd $(TARGET_SUBDIR)/libtermcap && \
6097 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6100 .PHONY: configure-target-winsup maybe-configure-target-winsup
6101 maybe-configure-target-winsup:
6103 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6104 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
6105 @[ -d $(TARGET_SUBDIR)/winsup ] || \
6106 mkdir $(TARGET_SUBDIR)/winsup; \
6107 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
6108 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
6110 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
6111 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
6112 [ -d $(TARGET_SUBDIR)/winsup ] || \
6113 mkdir $(TARGET_SUBDIR)/winsup;\
6114 r=`${PWD}`; export r; \
6115 s=`cd $(srcdir); ${PWD}`; export s; \
6116 $(SET_LIB_PATH) \
6117 AR="$(AR_FOR_TARGET)"; export AR; \
6118 AS="$(AS_FOR_TARGET)"; export AS; \
6119 CC="$(CC_FOR_TARGET)"; export CC; \
6120 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6121 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6122 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6123 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6124 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6125 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6126 LD="$(LD_FOR_TARGET)"; export LD; \
6127 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6128 NM="$(NM_FOR_TARGET)"; export NM; \
6129 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6130 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6131 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6132 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6133 case $(srcdir) in \
6134 /* | [A-Za-z]:[\\/]*) \
6135 topdir=$(srcdir) ;; \
6136 *) \
6137 case "$(TARGET_SUBDIR)" in \
6138 .) topdir="../$(srcdir)" ;; \
6139 *) topdir="../../$(srcdir)" ;; \
6140 esac ;; \
6141 esac; \
6142 if [ "$(srcdir)" = "." ] ; then \
6143 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6144 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6145 if [ -f Makefile ]; then \
6146 if $(MAKE) distclean; then \
6147 true; \
6148 else \
6149 exit 1; \
6150 fi; \
6151 else \
6152 true; \
6153 fi; \
6154 else \
6155 exit 1; \
6156 fi; \
6157 else \
6158 true; \
6159 fi; \
6160 srcdiroption="--srcdir=."; \
6161 libsrcdir="."; \
6162 else \
6163 srcdiroption="--srcdir=$${topdir}/winsup"; \
6164 libsrcdir="$$s/winsup"; \
6165 fi; \
6166 rm -f no-such-file || : ; \
6167 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6168 $(TARGET_CONFIGARGS) $${srcdiroption} \
6169 --with-target-subdir="$(TARGET_SUBDIR)" \
6170 || exit 1
6172 .PHONY: all-target-winsup maybe-all-target-winsup
6173 maybe-all-target-winsup:
6174 all-target-winsup: configure-target-winsup
6175 @r=`${PWD}`; export r; \
6176 s=`cd $(srcdir); ${PWD}`; export s; \
6177 $(SET_LIB_PATH) \
6178 (cd $(TARGET_SUBDIR)/winsup && \
6179 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6181 .PHONY: check-target-winsup
6182 check-target-winsup:
6183 @r=`${PWD}`; export r; \
6184 s=`cd $(srcdir); ${PWD}`; export s; \
6185 $(SET_LIB_PATH) \
6186 (cd $(TARGET_SUBDIR)/winsup && \
6187 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6190 .PHONY: install-target-winsup maybe-install-target-winsup
6191 maybe-install-target-winsup:
6192 install-target-winsup: installdirs
6193 @r=`${PWD}`; export r; \
6194 s=`cd $(srcdir); ${PWD}`; export s; \
6195 $(SET_LIB_PATH) \
6196 (cd $(TARGET_SUBDIR)/winsup && \
6197 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6200 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
6201 maybe-configure-target-libgloss:
6203 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6204 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
6205 @[ -d $(TARGET_SUBDIR)/libgloss ] || \
6206 mkdir $(TARGET_SUBDIR)/libgloss; \
6207 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
6208 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
6210 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
6211 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
6212 [ -d $(TARGET_SUBDIR)/libgloss ] || \
6213 mkdir $(TARGET_SUBDIR)/libgloss;\
6214 r=`${PWD}`; export r; \
6215 s=`cd $(srcdir); ${PWD}`; export s; \
6216 $(SET_LIB_PATH) \
6217 AR="$(AR_FOR_TARGET)"; export AR; \
6218 AS="$(AS_FOR_TARGET)"; export AS; \
6219 CC="$(CC_FOR_TARGET)"; export CC; \
6220 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6221 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6222 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6223 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6224 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6225 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6226 LD="$(LD_FOR_TARGET)"; export LD; \
6227 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6228 NM="$(NM_FOR_TARGET)"; export NM; \
6229 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6230 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6231 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6232 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6233 case $(srcdir) in \
6234 /* | [A-Za-z]:[\\/]*) \
6235 topdir=$(srcdir) ;; \
6236 *) \
6237 case "$(TARGET_SUBDIR)" in \
6238 .) topdir="../$(srcdir)" ;; \
6239 *) topdir="../../$(srcdir)" ;; \
6240 esac ;; \
6241 esac; \
6242 if [ "$(srcdir)" = "." ] ; then \
6243 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6244 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6245 if [ -f Makefile ]; then \
6246 if $(MAKE) distclean; then \
6247 true; \
6248 else \
6249 exit 1; \
6250 fi; \
6251 else \
6252 true; \
6253 fi; \
6254 else \
6255 exit 1; \
6256 fi; \
6257 else \
6258 true; \
6259 fi; \
6260 srcdiroption="--srcdir=."; \
6261 libsrcdir="."; \
6262 else \
6263 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6264 libsrcdir="$$s/libgloss"; \
6265 fi; \
6266 rm -f no-such-file || : ; \
6267 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6268 $(TARGET_CONFIGARGS) $${srcdiroption} \
6269 --with-target-subdir="$(TARGET_SUBDIR)" \
6270 || exit 1
6272 .PHONY: all-target-libgloss maybe-all-target-libgloss
6273 maybe-all-target-libgloss:
6274 all-target-libgloss: configure-target-libgloss
6275 @r=`${PWD}`; export r; \
6276 s=`cd $(srcdir); ${PWD}`; export s; \
6277 $(SET_LIB_PATH) \
6278 (cd $(TARGET_SUBDIR)/libgloss && \
6279 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6281 # Dummy target for uncheckable module.
6282 .PHONY: check-target-libgloss
6283 check-target-libgloss:
6286 .PHONY: install-target-libgloss maybe-install-target-libgloss
6287 maybe-install-target-libgloss:
6288 install-target-libgloss: installdirs
6289 @r=`${PWD}`; export r; \
6290 s=`cd $(srcdir); ${PWD}`; export s; \
6291 $(SET_LIB_PATH) \
6292 (cd $(TARGET_SUBDIR)/libgloss && \
6293 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6296 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
6297 maybe-configure-target-libiberty:
6299 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6300 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
6301 @[ -d $(TARGET_SUBDIR)/libiberty ] || \
6302 mkdir $(TARGET_SUBDIR)/libiberty; \
6303 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
6304 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
6306 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
6307 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
6308 [ -d $(TARGET_SUBDIR)/libiberty ] || \
6309 mkdir $(TARGET_SUBDIR)/libiberty;\
6310 r=`${PWD}`; export r; \
6311 s=`cd $(srcdir); ${PWD}`; export s; \
6312 $(SET_LIB_PATH) \
6313 AR="$(AR_FOR_TARGET)"; export AR; \
6314 AS="$(AS_FOR_TARGET)"; export AS; \
6315 CC="$(CC_FOR_TARGET)"; export CC; \
6316 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6317 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6318 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6319 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6320 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6321 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6322 LD="$(LD_FOR_TARGET)"; export LD; \
6323 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6324 NM="$(NM_FOR_TARGET)"; export NM; \
6325 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6326 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6327 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6328 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6329 case $(srcdir) in \
6330 /* | [A-Za-z]:[\\/]*) \
6331 topdir=$(srcdir) ;; \
6332 *) \
6333 case "$(TARGET_SUBDIR)" in \
6334 .) topdir="../$(srcdir)" ;; \
6335 *) topdir="../../$(srcdir)" ;; \
6336 esac ;; \
6337 esac; \
6338 if [ "$(srcdir)" = "." ] ; then \
6339 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6340 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6341 if [ -f Makefile ]; then \
6342 if $(MAKE) distclean; then \
6343 true; \
6344 else \
6345 exit 1; \
6346 fi; \
6347 else \
6348 true; \
6349 fi; \
6350 else \
6351 exit 1; \
6352 fi; \
6353 else \
6354 true; \
6355 fi; \
6356 srcdiroption="--srcdir=."; \
6357 libsrcdir="."; \
6358 else \
6359 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6360 libsrcdir="$$s/libiberty"; \
6361 fi; \
6362 rm -f no-such-file || : ; \
6363 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6364 $(TARGET_CONFIGARGS) $${srcdiroption} \
6365 --with-target-subdir="$(TARGET_SUBDIR)" \
6366 || exit 1
6368 .PHONY: all-target-libiberty maybe-all-target-libiberty
6369 maybe-all-target-libiberty:
6370 all-target-libiberty: configure-target-libiberty
6371 @r=`${PWD}`; export r; \
6372 s=`cd $(srcdir); ${PWD}`; export s; \
6373 $(SET_LIB_PATH) \
6374 (cd $(TARGET_SUBDIR)/libiberty && \
6375 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6377 .PHONY: check-target-libiberty
6378 check-target-libiberty:
6379 @r=`${PWD}`; export r; \
6380 s=`cd $(srcdir); ${PWD}`; export s; \
6381 $(SET_LIB_PATH) \
6382 (cd $(TARGET_SUBDIR)/libiberty && \
6383 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6386 .PHONY: install-target-libiberty maybe-install-target-libiberty
6387 maybe-install-target-libiberty:
6388 install-target-libiberty: installdirs
6389 @r=`${PWD}`; export r; \
6390 s=`cd $(srcdir); ${PWD}`; export s; \
6391 $(SET_LIB_PATH) \
6392 (cd $(TARGET_SUBDIR)/libiberty && \
6393 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6396 .PHONY: configure-target-gperf maybe-configure-target-gperf
6397 maybe-configure-target-gperf:
6399 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6400 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
6401 @[ -d $(TARGET_SUBDIR)/gperf ] || \
6402 mkdir $(TARGET_SUBDIR)/gperf; \
6403 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
6404 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
6406 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
6407 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
6408 [ -d $(TARGET_SUBDIR)/gperf ] || \
6409 mkdir $(TARGET_SUBDIR)/gperf;\
6410 r=`${PWD}`; export r; \
6411 s=`cd $(srcdir); ${PWD}`; export s; \
6412 $(SET_LIB_PATH) \
6413 AR="$(AR_FOR_TARGET)"; export AR; \
6414 AS="$(AS_FOR_TARGET)"; export AS; \
6415 CC="$(CC_FOR_TARGET)"; export CC; \
6416 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6417 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6418 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6419 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6420 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6421 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6422 LD="$(LD_FOR_TARGET)"; export LD; \
6423 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6424 NM="$(NM_FOR_TARGET)"; export NM; \
6425 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6426 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6427 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6428 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6429 case $(srcdir) in \
6430 /* | [A-Za-z]:[\\/]*) \
6431 topdir=$(srcdir) ;; \
6432 *) \
6433 case "$(TARGET_SUBDIR)" in \
6434 .) topdir="../$(srcdir)" ;; \
6435 *) topdir="../../$(srcdir)" ;; \
6436 esac ;; \
6437 esac; \
6438 if [ "$(srcdir)" = "." ] ; then \
6439 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6440 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6441 if [ -f Makefile ]; then \
6442 if $(MAKE) distclean; then \
6443 true; \
6444 else \
6445 exit 1; \
6446 fi; \
6447 else \
6448 true; \
6449 fi; \
6450 else \
6451 exit 1; \
6452 fi; \
6453 else \
6454 true; \
6455 fi; \
6456 srcdiroption="--srcdir=."; \
6457 libsrcdir="."; \
6458 else \
6459 srcdiroption="--srcdir=$${topdir}/gperf"; \
6460 libsrcdir="$$s/gperf"; \
6461 fi; \
6462 rm -f no-such-file || : ; \
6463 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6464 $(TARGET_CONFIGARGS) $${srcdiroption} \
6465 --with-target-subdir="$(TARGET_SUBDIR)" \
6466 || exit 1
6468 .PHONY: all-target-gperf maybe-all-target-gperf
6469 maybe-all-target-gperf:
6470 all-target-gperf: configure-target-gperf
6471 @r=`${PWD}`; export r; \
6472 s=`cd $(srcdir); ${PWD}`; export s; \
6473 $(SET_LIB_PATH) \
6474 (cd $(TARGET_SUBDIR)/gperf && \
6475 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6477 .PHONY: check-target-gperf
6478 check-target-gperf:
6479 @r=`${PWD}`; export r; \
6480 s=`cd $(srcdir); ${PWD}`; export s; \
6481 $(SET_LIB_PATH) \
6482 (cd $(TARGET_SUBDIR)/gperf && \
6483 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6486 .PHONY: install-target-gperf maybe-install-target-gperf
6487 maybe-install-target-gperf:
6488 install-target-gperf: installdirs
6489 @r=`${PWD}`; export r; \
6490 s=`cd $(srcdir); ${PWD}`; export s; \
6491 $(SET_LIB_PATH) \
6492 (cd $(TARGET_SUBDIR)/gperf && \
6493 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6496 .PHONY: configure-target-examples maybe-configure-target-examples
6497 maybe-configure-target-examples:
6499 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6500 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
6501 @[ -d $(TARGET_SUBDIR)/examples ] || \
6502 mkdir $(TARGET_SUBDIR)/examples; \
6503 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
6504 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
6506 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
6507 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
6508 [ -d $(TARGET_SUBDIR)/examples ] || \
6509 mkdir $(TARGET_SUBDIR)/examples;\
6510 r=`${PWD}`; export r; \
6511 s=`cd $(srcdir); ${PWD}`; export s; \
6512 $(SET_LIB_PATH) \
6513 AR="$(AR_FOR_TARGET)"; export AR; \
6514 AS="$(AS_FOR_TARGET)"; export AS; \
6515 CC="$(CC_FOR_TARGET)"; export CC; \
6516 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6517 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6518 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6519 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6520 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6521 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6522 LD="$(LD_FOR_TARGET)"; export LD; \
6523 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6524 NM="$(NM_FOR_TARGET)"; export NM; \
6525 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6526 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6527 echo Configuring in $(TARGET_SUBDIR)/examples; \
6528 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
6529 case $(srcdir) in \
6530 /* | [A-Za-z]:[\\/]*) \
6531 topdir=$(srcdir) ;; \
6532 *) \
6533 case "$(TARGET_SUBDIR)" in \
6534 .) topdir="../$(srcdir)" ;; \
6535 *) topdir="../../$(srcdir)" ;; \
6536 esac ;; \
6537 esac; \
6538 if [ "$(srcdir)" = "." ] ; then \
6539 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6540 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
6541 if [ -f Makefile ]; then \
6542 if $(MAKE) distclean; then \
6543 true; \
6544 else \
6545 exit 1; \
6546 fi; \
6547 else \
6548 true; \
6549 fi; \
6550 else \
6551 exit 1; \
6552 fi; \
6553 else \
6554 true; \
6555 fi; \
6556 srcdiroption="--srcdir=."; \
6557 libsrcdir="."; \
6558 else \
6559 srcdiroption="--srcdir=$${topdir}/examples"; \
6560 libsrcdir="$$s/examples"; \
6561 fi; \
6562 rm -f no-such-file || : ; \
6563 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6564 $(TARGET_CONFIGARGS) $${srcdiroption} \
6565 --with-target-subdir="$(TARGET_SUBDIR)" \
6566 || exit 1
6568 .PHONY: all-target-examples maybe-all-target-examples
6569 maybe-all-target-examples:
6570 all-target-examples: configure-target-examples
6571 @r=`${PWD}`; export r; \
6572 s=`cd $(srcdir); ${PWD}`; export s; \
6573 $(SET_LIB_PATH) \
6574 (cd $(TARGET_SUBDIR)/examples && \
6575 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6577 # Dummy target for uncheckable module.
6578 .PHONY: check-target-examples
6579 check-target-examples:
6582 .PHONY: install-target-examples maybe-install-target-examples
6583 maybe-install-target-examples:
6584 # Dummy target for uninstallable.
6585 install-target-examples:
6588 .PHONY: configure-target-libffi maybe-configure-target-libffi
6589 maybe-configure-target-libffi:
6591 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6592 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
6593 @[ -d $(TARGET_SUBDIR)/libffi ] || \
6594 mkdir $(TARGET_SUBDIR)/libffi; \
6595 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
6596 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
6598 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
6599 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
6600 [ -d $(TARGET_SUBDIR)/libffi ] || \
6601 mkdir $(TARGET_SUBDIR)/libffi;\
6602 r=`${PWD}`; export r; \
6603 s=`cd $(srcdir); ${PWD}`; export s; \
6604 $(SET_LIB_PATH) \
6605 AR="$(AR_FOR_TARGET)"; export AR; \
6606 AS="$(AS_FOR_TARGET)"; export AS; \
6607 CC="$(CC_FOR_TARGET)"; export CC; \
6608 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6609 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6610 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6611 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6612 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6613 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6614 LD="$(LD_FOR_TARGET)"; export LD; \
6615 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6616 NM="$(NM_FOR_TARGET)"; export NM; \
6617 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6618 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6619 echo Configuring in $(TARGET_SUBDIR)/libffi; \
6620 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
6621 case $(srcdir) in \
6622 /* | [A-Za-z]:[\\/]*) \
6623 topdir=$(srcdir) ;; \
6624 *) \
6625 case "$(TARGET_SUBDIR)" in \
6626 .) topdir="../$(srcdir)" ;; \
6627 *) topdir="../../$(srcdir)" ;; \
6628 esac ;; \
6629 esac; \
6630 if [ "$(srcdir)" = "." ] ; then \
6631 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6632 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
6633 if [ -f Makefile ]; then \
6634 if $(MAKE) distclean; then \
6635 true; \
6636 else \
6637 exit 1; \
6638 fi; \
6639 else \
6640 true; \
6641 fi; \
6642 else \
6643 exit 1; \
6644 fi; \
6645 else \
6646 true; \
6647 fi; \
6648 srcdiroption="--srcdir=."; \
6649 libsrcdir="."; \
6650 else \
6651 srcdiroption="--srcdir=$${topdir}/libffi"; \
6652 libsrcdir="$$s/libffi"; \
6653 fi; \
6654 rm -f no-such-file || : ; \
6655 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6656 $(TARGET_CONFIGARGS) $${srcdiroption} \
6657 --with-target-subdir="$(TARGET_SUBDIR)" \
6658 || exit 1
6660 .PHONY: all-target-libffi maybe-all-target-libffi
6661 maybe-all-target-libffi:
6662 all-target-libffi: configure-target-libffi
6663 @r=`${PWD}`; export r; \
6664 s=`cd $(srcdir); ${PWD}`; export s; \
6665 $(SET_LIB_PATH) \
6666 (cd $(TARGET_SUBDIR)/libffi && \
6667 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6669 .PHONY: check-target-libffi
6670 check-target-libffi:
6671 @r=`${PWD}`; export r; \
6672 s=`cd $(srcdir); ${PWD}`; export s; \
6673 $(SET_LIB_PATH) \
6674 (cd $(TARGET_SUBDIR)/libffi && \
6675 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6678 .PHONY: install-target-libffi maybe-install-target-libffi
6679 maybe-install-target-libffi:
6680 install-target-libffi: installdirs
6681 @r=`${PWD}`; export r; \
6682 s=`cd $(srcdir); ${PWD}`; export s; \
6683 $(SET_LIB_PATH) \
6684 (cd $(TARGET_SUBDIR)/libffi && \
6685 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6688 .PHONY: configure-target-libjava maybe-configure-target-libjava
6689 maybe-configure-target-libjava:
6691 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6692 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
6693 @[ -d $(TARGET_SUBDIR)/libjava ] || \
6694 mkdir $(TARGET_SUBDIR)/libjava; \
6695 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
6696 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
6698 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
6699 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
6700 [ -d $(TARGET_SUBDIR)/libjava ] || \
6701 mkdir $(TARGET_SUBDIR)/libjava;\
6702 r=`${PWD}`; export r; \
6703 s=`cd $(srcdir); ${PWD}`; export s; \
6704 $(SET_LIB_PATH) \
6705 AR="$(AR_FOR_TARGET)"; export AR; \
6706 AS="$(AS_FOR_TARGET)"; export AS; \
6707 CC="$(CC_FOR_TARGET)"; export CC; \
6708 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6709 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6710 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
6711 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
6712 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6713 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6714 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6715 LD="$(LD_FOR_TARGET)"; export LD; \
6716 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6717 NM="$(NM_FOR_TARGET)"; export NM; \
6718 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6719 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6720 echo Configuring in $(TARGET_SUBDIR)/libjava; \
6721 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
6722 case $(srcdir) in \
6723 /* | [A-Za-z]:[\\/]*) \
6724 topdir=$(srcdir) ;; \
6725 *) \
6726 case "$(TARGET_SUBDIR)" in \
6727 .) topdir="../$(srcdir)" ;; \
6728 *) topdir="../../$(srcdir)" ;; \
6729 esac ;; \
6730 esac; \
6731 if [ "$(srcdir)" = "." ] ; then \
6732 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6733 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
6734 if [ -f Makefile ]; then \
6735 if $(MAKE) distclean; then \
6736 true; \
6737 else \
6738 exit 1; \
6739 fi; \
6740 else \
6741 true; \
6742 fi; \
6743 else \
6744 exit 1; \
6745 fi; \
6746 else \
6747 true; \
6748 fi; \
6749 srcdiroption="--srcdir=."; \
6750 libsrcdir="."; \
6751 else \
6752 srcdiroption="--srcdir=$${topdir}/libjava"; \
6753 libsrcdir="$$s/libjava"; \
6754 fi; \
6755 rm -f no-such-file || : ; \
6756 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6757 $(TARGET_CONFIGARGS) $${srcdiroption} \
6758 --with-target-subdir="$(TARGET_SUBDIR)" \
6759 || exit 1
6761 .PHONY: all-target-libjava maybe-all-target-libjava
6762 maybe-all-target-libjava:
6763 all-target-libjava: configure-target-libjava
6764 @r=`${PWD}`; export r; \
6765 s=`cd $(srcdir); ${PWD}`; export s; \
6766 $(SET_LIB_PATH) \
6767 (cd $(TARGET_SUBDIR)/libjava && \
6768 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
6770 .PHONY: check-target-libjava
6771 check-target-libjava:
6772 @r=`${PWD}`; export r; \
6773 s=`cd $(srcdir); ${PWD}`; export s; \
6774 $(SET_LIB_PATH) \
6775 (cd $(TARGET_SUBDIR)/libjava && \
6776 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6779 .PHONY: install-target-libjava maybe-install-target-libjava
6780 maybe-install-target-libjava:
6781 install-target-libjava: installdirs
6782 @r=`${PWD}`; export r; \
6783 s=`cd $(srcdir); ${PWD}`; export s; \
6784 $(SET_LIB_PATH) \
6785 (cd $(TARGET_SUBDIR)/libjava && \
6786 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6789 .PHONY: configure-target-zlib maybe-configure-target-zlib
6790 maybe-configure-target-zlib:
6792 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6793 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
6794 @[ -d $(TARGET_SUBDIR)/zlib ] || \
6795 mkdir $(TARGET_SUBDIR)/zlib; \
6796 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
6797 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
6799 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
6800 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
6801 [ -d $(TARGET_SUBDIR)/zlib ] || \
6802 mkdir $(TARGET_SUBDIR)/zlib;\
6803 r=`${PWD}`; export r; \
6804 s=`cd $(srcdir); ${PWD}`; export s; \
6805 $(SET_LIB_PATH) \
6806 AR="$(AR_FOR_TARGET)"; export AR; \
6807 AS="$(AS_FOR_TARGET)"; export AS; \
6808 CC="$(CC_FOR_TARGET)"; export CC; \
6809 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6810 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6811 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6812 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6813 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6814 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6815 LD="$(LD_FOR_TARGET)"; export LD; \
6816 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6817 NM="$(NM_FOR_TARGET)"; export NM; \
6818 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6819 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6820 echo Configuring in $(TARGET_SUBDIR)/zlib; \
6821 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
6822 case $(srcdir) in \
6823 /* | [A-Za-z]:[\\/]*) \
6824 topdir=$(srcdir) ;; \
6825 *) \
6826 case "$(TARGET_SUBDIR)" in \
6827 .) topdir="../$(srcdir)" ;; \
6828 *) topdir="../../$(srcdir)" ;; \
6829 esac ;; \
6830 esac; \
6831 if [ "$(srcdir)" = "." ] ; then \
6832 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6833 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
6834 if [ -f Makefile ]; then \
6835 if $(MAKE) distclean; then \
6836 true; \
6837 else \
6838 exit 1; \
6839 fi; \
6840 else \
6841 true; \
6842 fi; \
6843 else \
6844 exit 1; \
6845 fi; \
6846 else \
6847 true; \
6848 fi; \
6849 srcdiroption="--srcdir=."; \
6850 libsrcdir="."; \
6851 else \
6852 srcdiroption="--srcdir=$${topdir}/zlib"; \
6853 libsrcdir="$$s/zlib"; \
6854 fi; \
6855 rm -f no-such-file || : ; \
6856 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6857 $(TARGET_CONFIGARGS) $${srcdiroption} \
6858 --with-target-subdir="$(TARGET_SUBDIR)" \
6859 || exit 1
6861 .PHONY: all-target-zlib maybe-all-target-zlib
6862 maybe-all-target-zlib:
6863 all-target-zlib: configure-target-zlib
6864 @r=`${PWD}`; export r; \
6865 s=`cd $(srcdir); ${PWD}`; export s; \
6866 $(SET_LIB_PATH) \
6867 (cd $(TARGET_SUBDIR)/zlib && \
6868 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6870 .PHONY: check-target-zlib
6871 check-target-zlib:
6872 @r=`${PWD}`; export r; \
6873 s=`cd $(srcdir); ${PWD}`; export s; \
6874 $(SET_LIB_PATH) \
6875 (cd $(TARGET_SUBDIR)/zlib && \
6876 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6879 .PHONY: install-target-zlib maybe-install-target-zlib
6880 maybe-install-target-zlib:
6881 install-target-zlib: installdirs
6882 @r=`${PWD}`; export r; \
6883 s=`cd $(srcdir); ${PWD}`; export s; \
6884 $(SET_LIB_PATH) \
6885 (cd $(TARGET_SUBDIR)/zlib && \
6886 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6889 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
6890 maybe-configure-target-boehm-gc:
6892 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6893 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
6894 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || \
6895 mkdir $(TARGET_SUBDIR)/boehm-gc; \
6896 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
6897 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
6899 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
6900 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
6901 [ -d $(TARGET_SUBDIR)/boehm-gc ] || \
6902 mkdir $(TARGET_SUBDIR)/boehm-gc;\
6903 r=`${PWD}`; export r; \
6904 s=`cd $(srcdir); ${PWD}`; export s; \
6905 $(SET_LIB_PATH) \
6906 AR="$(AR_FOR_TARGET)"; export AR; \
6907 AS="$(AS_FOR_TARGET)"; export AS; \
6908 CC="$(CC_FOR_TARGET)"; export CC; \
6909 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6910 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6911 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6912 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6913 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6914 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6915 LD="$(LD_FOR_TARGET)"; export LD; \
6916 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6917 NM="$(NM_FOR_TARGET)"; export NM; \
6918 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6919 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6920 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
6921 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
6922 case $(srcdir) in \
6923 /* | [A-Za-z]:[\\/]*) \
6924 topdir=$(srcdir) ;; \
6925 *) \
6926 case "$(TARGET_SUBDIR)" in \
6927 .) topdir="../$(srcdir)" ;; \
6928 *) topdir="../../$(srcdir)" ;; \
6929 esac ;; \
6930 esac; \
6931 if [ "$(srcdir)" = "." ] ; then \
6932 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6933 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
6934 if [ -f Makefile ]; then \
6935 if $(MAKE) distclean; then \
6936 true; \
6937 else \
6938 exit 1; \
6939 fi; \
6940 else \
6941 true; \
6942 fi; \
6943 else \
6944 exit 1; \
6945 fi; \
6946 else \
6947 true; \
6948 fi; \
6949 srcdiroption="--srcdir=."; \
6950 libsrcdir="."; \
6951 else \
6952 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
6953 libsrcdir="$$s/boehm-gc"; \
6954 fi; \
6955 rm -f no-such-file || : ; \
6956 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6957 $(TARGET_CONFIGARGS) $${srcdiroption} \
6958 --with-target-subdir="$(TARGET_SUBDIR)" \
6959 || exit 1
6961 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
6962 maybe-all-target-boehm-gc:
6963 all-target-boehm-gc: configure-target-boehm-gc
6964 @r=`${PWD}`; export r; \
6965 s=`cd $(srcdir); ${PWD}`; export s; \
6966 $(SET_LIB_PATH) \
6967 (cd $(TARGET_SUBDIR)/boehm-gc && \
6968 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6970 .PHONY: check-target-boehm-gc
6971 check-target-boehm-gc:
6972 @r=`${PWD}`; export r; \
6973 s=`cd $(srcdir); ${PWD}`; export s; \
6974 $(SET_LIB_PATH) \
6975 (cd $(TARGET_SUBDIR)/boehm-gc && \
6976 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6979 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
6980 maybe-install-target-boehm-gc:
6981 install-target-boehm-gc: installdirs
6982 @r=`${PWD}`; export r; \
6983 s=`cd $(srcdir); ${PWD}`; export s; \
6984 $(SET_LIB_PATH) \
6985 (cd $(TARGET_SUBDIR)/boehm-gc && \
6986 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6989 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
6990 maybe-configure-target-qthreads:
6992 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6993 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
6994 @[ -d $(TARGET_SUBDIR)/qthreads ] || \
6995 mkdir $(TARGET_SUBDIR)/qthreads; \
6996 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
6997 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
6999 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
7000 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
7001 [ -d $(TARGET_SUBDIR)/qthreads ] || \
7002 mkdir $(TARGET_SUBDIR)/qthreads;\
7003 r=`${PWD}`; export r; \
7004 s=`cd $(srcdir); ${PWD}`; export s; \
7005 $(SET_LIB_PATH) \
7006 AR="$(AR_FOR_TARGET)"; export AR; \
7007 AS="$(AS_FOR_TARGET)"; export AS; \
7008 CC="$(CC_FOR_TARGET)"; export CC; \
7009 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7010 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7011 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7012 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7013 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7014 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7015 LD="$(LD_FOR_TARGET)"; export LD; \
7016 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7017 NM="$(NM_FOR_TARGET)"; export NM; \
7018 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7019 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7020 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7021 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
7022 case $(srcdir) in \
7023 /* | [A-Za-z]:[\\/]*) \
7024 topdir=$(srcdir) ;; \
7025 *) \
7026 case "$(TARGET_SUBDIR)" in \
7027 .) topdir="../$(srcdir)" ;; \
7028 *) topdir="../../$(srcdir)" ;; \
7029 esac ;; \
7030 esac; \
7031 if [ "$(srcdir)" = "." ] ; then \
7032 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7033 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
7034 if [ -f Makefile ]; then \
7035 if $(MAKE) distclean; then \
7036 true; \
7037 else \
7038 exit 1; \
7039 fi; \
7040 else \
7041 true; \
7042 fi; \
7043 else \
7044 exit 1; \
7045 fi; \
7046 else \
7047 true; \
7048 fi; \
7049 srcdiroption="--srcdir=."; \
7050 libsrcdir="."; \
7051 else \
7052 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7053 libsrcdir="$$s/qthreads"; \
7054 fi; \
7055 rm -f no-such-file || : ; \
7056 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7057 $(TARGET_CONFIGARGS) $${srcdiroption} \
7058 --with-target-subdir="$(TARGET_SUBDIR)" \
7059 || exit 1
7061 .PHONY: all-target-qthreads maybe-all-target-qthreads
7062 maybe-all-target-qthreads:
7063 all-target-qthreads: configure-target-qthreads
7064 @r=`${PWD}`; export r; \
7065 s=`cd $(srcdir); ${PWD}`; export s; \
7066 $(SET_LIB_PATH) \
7067 (cd $(TARGET_SUBDIR)/qthreads && \
7068 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7070 .PHONY: check-target-qthreads
7071 check-target-qthreads:
7072 @r=`${PWD}`; export r; \
7073 s=`cd $(srcdir); ${PWD}`; export s; \
7074 $(SET_LIB_PATH) \
7075 (cd $(TARGET_SUBDIR)/qthreads && \
7076 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7079 .PHONY: install-target-qthreads maybe-install-target-qthreads
7080 maybe-install-target-qthreads:
7081 install-target-qthreads: installdirs
7082 @r=`${PWD}`; export r; \
7083 s=`cd $(srcdir); ${PWD}`; export s; \
7084 $(SET_LIB_PATH) \
7085 (cd $(TARGET_SUBDIR)/qthreads && \
7086 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7089 .PHONY: configure-target-rda maybe-configure-target-rda
7090 maybe-configure-target-rda:
7092 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7093 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
7094 @[ -d $(TARGET_SUBDIR)/rda ] || \
7095 mkdir $(TARGET_SUBDIR)/rda; \
7096 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
7097 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
7099 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
7100 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
7101 [ -d $(TARGET_SUBDIR)/rda ] || \
7102 mkdir $(TARGET_SUBDIR)/rda;\
7103 r=`${PWD}`; export r; \
7104 s=`cd $(srcdir); ${PWD}`; export s; \
7105 $(SET_LIB_PATH) \
7106 AR="$(AR_FOR_TARGET)"; export AR; \
7107 AS="$(AS_FOR_TARGET)"; export AS; \
7108 CC="$(CC_FOR_TARGET)"; export CC; \
7109 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7110 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7111 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7112 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7113 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7114 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7115 LD="$(LD_FOR_TARGET)"; export LD; \
7116 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7117 NM="$(NM_FOR_TARGET)"; export NM; \
7118 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7119 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7120 echo Configuring in $(TARGET_SUBDIR)/rda; \
7121 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
7122 case $(srcdir) in \
7123 /* | [A-Za-z]:[\\/]*) \
7124 topdir=$(srcdir) ;; \
7125 *) \
7126 case "$(TARGET_SUBDIR)" in \
7127 .) topdir="../$(srcdir)" ;; \
7128 *) topdir="../../$(srcdir)" ;; \
7129 esac ;; \
7130 esac; \
7131 if [ "$(srcdir)" = "." ] ; then \
7132 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7133 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
7134 if [ -f Makefile ]; then \
7135 if $(MAKE) distclean; then \
7136 true; \
7137 else \
7138 exit 1; \
7139 fi; \
7140 else \
7141 true; \
7142 fi; \
7143 else \
7144 exit 1; \
7145 fi; \
7146 else \
7147 true; \
7148 fi; \
7149 srcdiroption="--srcdir=."; \
7150 libsrcdir="."; \
7151 else \
7152 srcdiroption="--srcdir=$${topdir}/rda"; \
7153 libsrcdir="$$s/rda"; \
7154 fi; \
7155 rm -f no-such-file || : ; \
7156 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7157 $(TARGET_CONFIGARGS) $${srcdiroption} \
7158 --with-target-subdir="$(TARGET_SUBDIR)" \
7159 || exit 1
7161 .PHONY: all-target-rda maybe-all-target-rda
7162 maybe-all-target-rda:
7163 all-target-rda: configure-target-rda
7164 @r=`${PWD}`; export r; \
7165 s=`cd $(srcdir); ${PWD}`; export s; \
7166 $(SET_LIB_PATH) \
7167 (cd $(TARGET_SUBDIR)/rda && \
7168 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7170 .PHONY: check-target-rda
7171 check-target-rda:
7172 @r=`${PWD}`; export r; \
7173 s=`cd $(srcdir); ${PWD}`; export s; \
7174 $(SET_LIB_PATH) \
7175 (cd $(TARGET_SUBDIR)/rda && \
7176 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7179 .PHONY: install-target-rda maybe-install-target-rda
7180 maybe-install-target-rda:
7181 install-target-rda: installdirs
7182 @r=`${PWD}`; export r; \
7183 s=`cd $(srcdir); ${PWD}`; export s; \
7184 $(SET_LIB_PATH) \
7185 (cd $(TARGET_SUBDIR)/rda && \
7186 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7190 # ----------
7191 # GCC module
7192 # ----------
7194 # Unfortunately, while gcc _should_ be a host module,
7195 # libgcc is a target module, and gen* programs are
7196 # build modules. So GCC is a sort of hybrid.
7198 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
7199 .PHONY: configure-gcc maybe-configure-gcc
7200 maybe-configure-gcc:
7201 configure-gcc:
7202 @test ! -f gcc/Makefile || exit 0; \
7203 [ -d gcc ] || mkdir gcc; \
7204 r=`${PWD}`; export r; \
7205 s=`cd $(srcdir); ${PWD}`; export s; \
7206 CC="$(CC)"; export CC; \
7207 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7208 CXX="$(CXX)"; export CXX; \
7209 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7210 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
7211 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7212 AR="$(AR)"; export AR; \
7213 AS="$(AS)"; export AS; \
7214 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7215 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7216 LD="$(LD)"; export LD; \
7217 NM="$(NM)"; export NM; \
7218 RANLIB="$(RANLIB)"; export RANLIB; \
7219 WINDRES="$(WINDRES)"; export WINDRES; \
7220 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7221 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7222 fi; \
7223 echo Configuring in gcc; \
7224 cd gcc || exit 1; \
7225 case $(srcdir) in \
7226 \.) \
7227 srcdiroption="--srcdir=."; \
7228 libsrcdir=".";; \
7229 /* | [A-Za-z]:[\\/]*) \
7230 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7231 libsrcdir="$$s/gcc";; \
7232 *) \
7233 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7234 libsrcdir="$$s/gcc";; \
7235 esac; \
7236 $(SHELL) $${libsrcdir}/configure \
7237 $(HOST_CONFIGARGS) $${srcdiroption} \
7238 || exit 1
7240 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
7241 # causes trouble. This wart will be fixed eventually by moving
7242 # the bootstrap behavior to this file.
7243 .PHONY: all-gcc maybe-all-gcc
7244 maybe-all-gcc:
7245 all-gcc: configure-gcc
7246 @if [ -f gcc/stage_last ] ; then \
7247 r=`${PWD}`; export r; \
7248 s=`cd $(srcdir); ${PWD}`; export s; \
7249 $(SET_LIB_PATH) \
7250 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
7251 else \
7252 r=`${PWD}`; export r; \
7253 s=`cd $(srcdir); ${PWD}`; export s; \
7254 $(SET_LIB_PATH) \
7255 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
7258 # Building GCC uses some tools for rebuilding "source" files
7259 # like texinfo, bison/byacc, etc. So we must depend on those.
7261 # While building GCC, it may be necessary to run various target
7262 # programs like the assembler, linker, etc. So we depend on
7263 # those too.
7265 # In theory, on an SMP all those dependencies can be resolved
7266 # in parallel.
7268 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
7269 .PHONY: $(GCC_STRAP_TARGETS)
7270 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
7271 @r=`${PWD}`; export r; \
7272 s=`cd $(srcdir); ${PWD}`; export s; \
7273 $(SET_LIB_PATH) \
7274 echo "Bootstrapping the compiler"; \
7275 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
7276 @r=`${PWD}`; export r; \
7277 s=`cd $(srcdir); ${PWD}`; export s; \
7278 case "$@" in \
7279 *bootstrap4-lean ) \
7280 msg="Comparing stage3 and stage4 of the compiler"; \
7281 compare=compare3-lean ;; \
7282 *bootstrap4 ) \
7283 msg="Comparing stage3 and stage4 of the compiler"; \
7284 compare=compare3 ;; \
7285 *-lean ) \
7286 msg="Comparing stage2 and stage3 of the compiler"; \
7287 compare=compare-lean ;; \
7288 * ) \
7289 msg="Comparing stage2 and stage3 of the compiler"; \
7290 compare=compare ;; \
7291 esac; \
7292 $(SET_LIB_PATH) \
7293 echo "$$msg"; \
7294 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
7295 @r=`${PWD}`; export r; \
7296 s=`cd $(srcdir); ${PWD}` ; export s; \
7297 $(SET_LIB_PATH) \
7298 echo "Building runtime libraries"; \
7299 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
7301 .PHONY: cross
7302 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
7303 @r=`${PWD}`; export r; \
7304 s=`cd $(srcdir); ${PWD}`; export s; \
7305 $(SET_LIB_PATH) \
7306 echo "Building the C and C++ compiler"; \
7307 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
7308 @r=`${PWD}`; export r; \
7309 s=`cd $(srcdir); ${PWD}` ; export s; \
7310 $(SET_LIB_PATH) \
7311 echo "Building runtime libraries"; \
7312 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7313 LANGUAGES="c c++" all
7315 .PHONY: check-gcc
7316 check-gcc:
7317 @if [ -f ./gcc/Makefile ] ; then \
7318 r=`${PWD}`; export r; \
7319 s=`cd $(srcdir); ${PWD}`; export s; \
7320 $(SET_LIB_PATH) \
7321 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
7322 else \
7323 true; \
7326 .PHONY: check-gcc-c++
7327 check-gcc-c++:
7328 @if [ -f ./gcc/Makefile ] ; then \
7329 r=`${PWD}`; export r; \
7330 s=`cd $(srcdir); ${PWD}`; export s; \
7331 $(SET_LIB_PATH) \
7332 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
7333 else \
7334 true; \
7337 .PHONY: check-c++
7338 check-c++:
7339 $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
7341 .PHONY: install-gcc maybe-install-gcc
7342 maybe-install-gcc:
7343 install-gcc:
7344 @if [ -f ./gcc/Makefile ] ; then \
7345 r=`${PWD}`; export r; \
7346 s=`cd $(srcdir); ${PWD}`; export s; \
7347 $(SET_LIB_PATH) \
7348 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7349 else \
7350 true; \
7353 # Install the gcc headers files, but not the fixed include files,
7354 # which Cygnus is not allowed to distribute. This rule is very
7355 # dependent on the workings of the gcc Makefile.in.
7356 .PHONY: gcc-no-fixedincludes
7357 gcc-no-fixedincludes:
7358 @if [ -f ./gcc/Makefile ]; then \
7359 rm -rf gcc/tmp-include; \
7360 mv gcc/include gcc/tmp-include 2>/dev/null; \
7361 mkdir gcc/include; \
7362 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7363 touch gcc/stmp-fixinc gcc/include/fixed; \
7364 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
7365 r=`${PWD}`; export r; \
7366 s=`cd $(srcdir); ${PWD}` ; export s; \
7367 $(SET_LIB_PATH) \
7368 (cd ./gcc && \
7369 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7370 rm -rf gcc/include; \
7371 mv gcc/tmp-include gcc/include 2>/dev/null; \
7372 else true; fi
7374 # --------------------------------------
7375 # Dependencies between different modules
7376 # --------------------------------------
7378 # There are two types of dependencies here: 'hard' dependencies, where one
7379 # module simply won't build without the other; and 'soft' dependencies, where
7380 # if the depended-on module is missing, the depending module will do without
7381 # or find a substitute somewhere (perhaps installed). Soft dependencies
7382 # are specified by depending on a 'maybe-' target. If you're not sure,
7383 # it's safer to use a soft dependency.
7385 # Host modules specific to gcc.
7386 # GCC needs to identify certain tools.
7387 configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7388 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7389 # This is a slightly kludgy method of getting dependencies on
7390 # all-build-libiberty correct; it would be better to build it every time.
7391 all-gcc: maybe-all-build-libiberty
7392 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
7394 # Host modules specific to gdb.
7395 # GDB needs to know that the simulator is being built.
7396 configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
7397 GDB_TK = @GDB_TK@
7398 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)
7399 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
7400 configure-libgui: maybe-configure-tcl maybe-configure-tk
7401 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7403 # Host modules specific to binutils.
7404 configure-bfd: configure-libiberty
7405 all-bfd: maybe-all-libiberty maybe-all-intl
7406 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
7407 # We put install-opcodes before install-binutils because the installed
7408 # binutils might be on PATH, and they might need the shared opcodes
7409 # library.
7410 install-binutils: maybe-install-opcodes
7411 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7412 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7413 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7414 all-opcodes: maybe-all-bfd maybe-all-libiberty
7416 # Other host modules in the 'src' repository.
7417 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7418 configure-expect: maybe-configure-tcl maybe-configure-tk
7419 all-expect: maybe-all-tcl maybe-all-tk
7420 configure-itcl: maybe-configure-tcl maybe-configure-tk
7421 all-itcl: maybe-all-tcl maybe-all-tk
7422 # We put install-tcl before install-itcl because itcl wants to run a
7423 # program on installation which uses the Tcl libraries.
7424 install-itcl: maybe-install-tcl
7425 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
7426 install-sid: maybe-install-tcl maybe-install-tk
7427 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
7428 configure-tk: maybe-configure-tcl
7429 all-tk: maybe-all-tcl
7430 configure-tix: maybe-configure-tcl maybe-configure-tk
7431 all-tix: maybe-all-tcl maybe-all-tk
7432 all-texinfo: maybe-all-libiberty
7434 # Other host modules. Warning, these are not well tested.
7435 all-autoconf: maybe-all-m4 maybe-all-texinfo
7436 all-automake: maybe-all-m4 maybe-all-texinfo
7437 all-bison: maybe-all-texinfo
7438 all-diff: maybe-all-libiberty
7439 all-fastjar: maybe-all-zlib maybe-all-libiberty
7440 all-fileutils: maybe-all-libiberty
7441 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7442 all-gzip: maybe-all-libiberty
7443 all-hello: maybe-all-libiberty
7444 all-m4: maybe-all-libiberty maybe-all-texinfo
7445 all-make: maybe-all-libiberty
7446 all-patch: maybe-all-libiberty
7447 all-prms: maybe-all-libiberty
7448 all-recode: maybe-all-libiberty
7449 all-sed: maybe-all-libiberty
7450 all-send-pr: maybe-all-prms
7451 all-tar: maybe-all-libiberty
7452 all-uudecode: maybe-all-libiberty
7454 ALL_GCC = maybe-all-gcc
7455 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7456 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7458 # Target modules specific to gcc.
7459 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
7460 configure-target-fastjar: maybe-configure-target-zlib
7461 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7462 configure-target-libf2c: $(ALL_GCC_C)
7463 all-target-libf2c: maybe-all-target-libiberty
7464 configure-target-libffi: $(ALL_GCC_C)
7465 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7466 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7467 configure-target-libobjc: $(ALL_GCC_C)
7468 all-target-libobjc: maybe-all-target-libiberty
7469 configure-target-libstdc++-v3: $(ALL_GCC_C)
7470 all-target-libstdc++-v3: maybe-all-target-libiberty
7471 configure-target-zlib: $(ALL_GCC_C)
7473 # Target modules in the 'src' repository.
7474 configure-target-examples: $(ALL_GCC_C)
7475 configure-target-libgloss: $(ALL_GCC)
7476 all-target-libgloss: maybe-configure-target-newlib
7477 configure-target-libiberty: $(ALL_GCC_C)
7478 configure-target-libtermcap: $(ALL_GCC_C)
7479 configure-target-newlib: $(ALL_GCC)
7480 configure-target-rda: $(ALL_GCC_C)
7481 configure-target-winsup: $(ALL_GCC_C)
7482 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
7484 # Other target modules. Warning, these are not well tested.
7485 configure-target-gperf: $(ALL_GCC_CXX)
7486 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7487 configure-target-qthreads: $(ALL_GCC_C)
7489 # Dependencies of maybe-foo on foo. These are used because, for example,
7490 # all-gcc only depends on all-gas if gas is present and being configured.
7491 @maybe_dependencies@
7493 # Serialization dependencies. Host configures don't work well in parallel to
7494 # each other, due to contention over config.cache. Target configures and
7495 # build configures are similar.
7496 @serialization_dependencies@
7498 # --------------------------------
7499 # Regenerating top level configury
7500 # --------------------------------
7502 # Multilib.out tells target dirs what multilibs they should build.
7503 # There is really only one copy. We use the 'timestamp' method to
7504 # work around various timestamp bugs on some systems.
7505 # We use move-if-change so that it's only considered updated when it
7506 # actually changes, because it has to depend on a phony target.
7507 multilib.out: maybe-all-gcc
7508 @r=`${PWD}`; export r; \
7509 echo "Checking multilib configuration..."; \
7510 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
7511 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
7513 # Rebuilding Makefile.in, using autogen.
7514 AUTOGEN = autogen
7515 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
7516 cd $(srcdir) && $(AUTOGEN) Makefile.def
7518 # Rebuilding Makefile.
7519 Makefile: $(srcdir)/Makefile.in config.status
7520 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
7522 config.status: configure $(gcc_version_trigger)
7523 $(SHELL) ./config.status --recheck
7525 # Rebuilding configure.
7526 AUTOCONF = autoconf
7527 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
7528 cd $(srcdir) && $(AUTOCONF)
7530 # ------------------------------
7531 # Special directives to GNU Make
7532 # ------------------------------
7534 # Tell GNU make 3.79 not to run the top level in parallel. This
7535 # prevents contention for $builddir/$target/config.cache, as well
7536 # as minimizing scatter in file system caches.
7537 NOTPARALLEL = .NOTPARALLEL
7538 $(NOTPARALLEL):
7540 # Don't pass command-line variables to submakes.
7541 .NOEXPORT:
7542 MAKEOVERRIDES=
7544 # end of Makefile.in