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