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