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