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