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