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