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