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