* decl.c (cp_binding_level::this_entity): Rename from this_class.
[official-gcc.git] / Makefile.in
blob3b316d661fa7d8ee241efb8e4dab9a195baf4ab4
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002, 2003 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
26 VPATH=@srcdir@
28 build_alias=@build_alias@
29 build_cpu=@build_cpu@
30 build_vendor=@build_vendor@
31 build_os=@build_os@
32 build_canonical=@build_cpu@-@build_vendor@-@build_os@
33 host_alias=@host_alias@
34 host_cpu=@host_cpu@
35 host_vendor=@host_vendor@
36 host_os=@host_os@
37 host_canonical=@host_cpu@-@host_vendor@-@host_os@
38 target_alias=@target_alias@
39 target_cpu=@target_cpu@
40 target_vendor=@target_vendor@
41 target_os=@target_os@
42 target_canonical=@target_cpu@-@target_vendor@-@target_os@
44 program_transform_name = @program_transform_name@
46 prefix = @prefix@
47 exec_prefix = @exec_prefix@
49 srcdir = @srcdir@
51 bindir = @bindir@
52 sbindir = @sbindir@
53 libexecdir = @libexecdir@
54 datadir = @datadir@
55 sysconfdir = @sysconfdir@
56 sharedstatedir = @sharedstatedir@
57 localstatedir = @localstatedir@
58 libdir = @libdir@
59 includedir = @includedir@
60 oldincludedir = @oldincludedir@
61 infodir = @infodir@
62 mandir = @mandir@
63 man1dir = $(mandir)/man1
64 man2dir = $(mandir)/man2
65 man3dir = $(mandir)/man3
66 man4dir = $(mandir)/man4
67 man5dir = $(mandir)/man5
68 man6dir = $(mandir)/man6
69 man7dir = $(mandir)/man7
70 man8dir = $(mandir)/man8
71 man9dir = $(mandir)/man9
73 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
74 # cygwin host.
75 INSTALL_PROGRAM_ARGS =
77 INSTALL = $(SHELL) $$s/install-sh -c
78 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
79 INSTALL_SCRIPT = $(INSTALL)
80 INSTALL_DATA = $(INSTALL) -m 644
82 # -------------------------------------------------
83 # Miscellaneous non-standard autoconf-set variables
84 # -------------------------------------------------
86 links=@configlinks@
87 # The file containing GCC's version number.
88 gcc_version_trigger = @gcc_version_trigger@
89 gcc_version = @gcc_version@
91 # The gcc driver likes to know the arguments it was configured with.
92 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
94 gxx_include_dir = @gxx_include_dir@
95 libstdcxx_incdir = @libstdcxx_incdir@
97 tooldir = @tooldir@
98 build_tooldir = @build_tooldir@
100 # Directory in which the compiler finds executables, libraries, etc.
101 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
102 GDB_NLM_DEPS =
104 # This is the name of the environment variable used for the path to
105 # the libraries.
106 RPATH_ENVVAR = @RPATH_ENVVAR@
108 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
109 # was used.
110 SET_LIB_PATH = @SET_LIB_PATH@
112 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
113 # Some platforms don't like blank entries, so we remove duplicate,
114 # leading and trailing colons.
115 REALLY_SET_LIB_PATH = \
116 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
118 # This is the list of directories to be built for the build system.
119 BUILD_CONFIGDIRS = libiberty
120 # Build programs are put under this directory.
121 BUILD_SUBDIR = @build_subdir@
122 # This is set by the configure script to the arguments to use when configuring
123 # directories built for the build system.
124 BUILD_CONFIGARGS = @build_configargs@
126 # This is the list of directories to built for the host system.
127 SUBDIRS = @configdirs@
128 # This is set by the configure script to the arguments to use when configuring
129 # directories built for the host system.
130 HOST_CONFIGARGS = @host_configargs@
132 # This is set by the configure script to the list of directories which
133 # should be built using the target tools.
134 TARGET_CONFIGDIRS = @target_configdirs@
135 # Target libraries are put under this directory:
136 TARGET_SUBDIR = @target_subdir@
137 # This is set by the configure script to the arguments to use when configuring
138 # directories built for the target.
139 TARGET_CONFIGARGS = @target_configargs@
141 # ----------------------------------------------
142 # Programs producing files for the BUILD machine
143 # ----------------------------------------------
145 SHELL = @config_shell@
147 # pwd command to use. Allow user to override default by setting PWDCMD in
148 # the environment to account for automounters. The make variable must not
149 # be called PWDCMD, otherwise the value set here is passed to make
150 # subprocesses and overrides the setting from the user's environment.
151 PWD = $${PWDCMD-pwd}
153 # compilers to use to create programs which must be run in the build
154 # environment.
155 CC_FOR_BUILD = @CC_FOR_BUILD@
156 CFLAGS_FOR_BUILD = $(CFLAGS)
158 CXX_FOR_BUILD = $(CXX)
160 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
161 # here so that they can be overridden by Makefile fragments.
162 BUILD_CC = $(CC_FOR_BUILD)
163 BUILD_PREFIX = @BUILD_PREFIX@
164 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
166 BISON=@BISON@
167 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
168 echo $$r/bison/bison -L $$s/bison/ ; \
169 else \
170 echo bison ; \
173 DEFAULT_YACC = @DEFAULT_YACC@
174 YACC=@YACC@
175 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
176 echo $$r/bison/bison -y -L $$s/bison/ ; \
177 elif [ -f $$r/byacc/byacc ] ; then \
178 echo $$r/byacc/byacc ; \
179 else \
180 echo ${DEFAULT_YACC} ; \
183 DEFAULT_LEX = @DEFAULT_LEX@
184 LEX=@LEX@
185 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
186 then echo $$r/flex/flex ; \
187 else echo ${DEFAULT_LEX} ; fi`
189 DEFAULT_M4 = @DEFAULT_M4@
190 M4 = `if [ -f $$r/m4/m4 ] ; \
191 then echo $$r/m4/m4 ; \
192 else echo ${DEFAULT_M4} ; fi`
194 # For an installed makeinfo, we require it to be from texinfo 4.2 or
195 # higher, else we use the "missing" dummy.
196 MAKEINFO=@MAKEINFO@
197 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
198 then echo $$r/texinfo/makeinfo/makeinfo ; \
199 else if (makeinfo --version \
200 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
201 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
203 # This just becomes part of the MAKEINFO definition passed down to
204 # sub-makes. It lets flags be given on the command line while still
205 # using the makeinfo from the object tree.
206 # (Default to avoid splitting info files by setting the threshold high.)
207 MAKEINFOFLAGS = --split-size=5000000
209 EXPECT = `if [ -f $$r/expect/expect ] ; \
210 then echo $$r/expect/expect ; \
211 else echo expect ; fi`
213 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
214 then echo $$s/dejagnu/runtest ; \
215 else echo runtest ; fi`
217 # ---------------------------------------------
218 # Programs producing files for the HOST machine
219 # ---------------------------------------------
221 # This is the list of directories that may be needed in RPATH_ENVVAR
222 # so that programs built for the host machine work.
223 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
225 AS = @AS@
227 AR = @AR@
228 AR_FLAGS = rc
230 CC = @CC@
231 CFLAGS = @CFLAGS@
232 LIBCFLAGS = $(CFLAGS)
234 CXX = @CXX@
235 CXXFLAGS = @CXXFLAGS@
236 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
238 DLLTOOL = @DLLTOOL@
240 NM = @NM@
242 LD = @LD@
243 LDFLAGS =
245 RANLIB = @RANLIB@
247 WINDRES = @WINDRES@
249 PICFLAG =
251 # -----------------------------------------------
252 # Programs producing files for the TARGET machine
253 # -----------------------------------------------
255 # This is the list of directories that may be needed in RPATH_ENVVAR
256 # so that prorgams built for the target machine work.
257 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
259 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
261 AR_FOR_TARGET=@AR_FOR_TARGET@
262 USUAL_AR_FOR_TARGET = ` \
263 if [ -f $$r/binutils/ar ] ; then \
264 echo $$r/binutils/ar ; \
265 else \
266 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
267 echo $(AR); \
268 else \
269 echo ar | sed '$(program_transform_name)' ; \
270 fi; \
273 AS_FOR_TARGET=@AS_FOR_TARGET@
274 USUAL_AS_FOR_TARGET = ` \
275 if [ -f $$r/gas/as-new ] ; then \
276 echo $$r/gas/as-new ; \
277 elif [ -f $$r/gcc/xgcc ]; then \
278 $(CC_FOR_TARGET) -print-prog-name=as ; \
279 else \
280 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
281 echo $(AS); \
282 else \
283 echo as | sed '$(program_transform_name)' ; \
284 fi; \
287 CC_FOR_TARGET = @CC_FOR_TARGET@
288 # During gcc bootstrap, if we use some random cc for stage1 then
289 # CFLAGS will be just -g. We want to ensure that TARGET libraries
290 # (which we know are built with gcc) are built with optimizations so
291 # prepend -O2 when setting CFLAGS_FOR_TARGET.
292 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
293 # If GCC_FOR_TARGET is not overriden on the command line, then this
294 # variable is passed down to the gcc Makefile, where it is used to
295 # build libgcc2.a. We define it here so that it can itself be
296 # overridden on the command line.
297 GCC_FOR_TARGET=@GCC_FOR_TARGET@
298 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
299 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
301 CXX_FOR_TARGET = @CXX_FOR_TARGET@
302 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
303 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
304 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
305 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
306 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
308 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
309 USUAL_DLLTOOL_FOR_TARGET = ` \
310 if [ -f $$r/binutils/dlltool ] ; then \
311 echo $$r/binutils/dlltool ; \
312 else \
313 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
314 echo $(DLLTOOL); \
315 else \
316 echo dlltool | sed '$(program_transform_name)' ; \
317 fi; \
320 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
322 LD_FOR_TARGET=@LD_FOR_TARGET@
323 USUAL_LD_FOR_TARGET = ` \
324 if [ -f $$r/ld/ld-new ] ; then \
325 echo $$r/ld/ld-new ; \
326 elif [ -f $$r/gcc/xgcc ]; then \
327 $(CC_FOR_TARGET) -print-prog-name=ld ; \
328 else \
329 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
330 echo $(LD); \
331 else \
332 echo ld | sed '$(program_transform_name)' ; \
333 fi; \
336 LDFLAGS_FOR_TARGET =
338 NM_FOR_TARGET=@NM_FOR_TARGET@
339 USUAL_NM_FOR_TARGET = ` \
340 if [ -f $$r/binutils/nm-new ] ; then \
341 echo $$r/binutils/nm-new ; \
342 elif [ -f $$r/gcc/xgcc ]; then \
343 $(CC_FOR_TARGET) -print-prog-name=nm ; \
344 else \
345 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
346 echo $(NM); \
347 else \
348 echo nm | sed '$(program_transform_name)' ; \
349 fi; \
352 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
353 USUAL_RANLIB_FOR_TARGET = ` \
354 if [ -f $$r/binutils/ranlib ] ; then \
355 echo $$r/binutils/ranlib ; \
356 else \
357 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
358 if [ x'$(RANLIB)' != x ]; then \
359 echo $(RANLIB); \
360 else \
361 echo ranlib; \
362 fi; \
363 else \
364 echo ranlib | sed '$(program_transform_name)' ; \
365 fi; \
368 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
369 USUAL_WINDRES_FOR_TARGET = ` \
370 if [ -f $$r/binutils/windres ] ; then \
371 echo $$r/binutils/windres ; \
372 else \
373 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
374 echo $(WINDRES); \
375 else \
376 echo windres | sed '$(program_transform_name)' ; \
377 fi; \
380 PICFLAG_FOR_TARGET =
382 # ------------------------------------
383 # Miscellaneous targets and flag lists
384 # ------------------------------------
386 # The first rule in the file had better be this one. Don't put any above it.
387 # This lives here to allow makefile fragments to contain dependencies.
388 all: all.normal
389 .PHONY: all
391 #### host and target specific makefile fragments come in here.
392 @target_makefile_frag@
393 @alphaieee_frag@
394 @ospace_frag@
395 @host_makefile_frag@
398 # Flags to pass down to all sub-makes.
399 # Please keep these in alphabetical order.
400 BASE_FLAGS_TO_PASS = \
401 "AR_FLAGS=$(AR_FLAGS)" \
402 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
403 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
404 "BISON=$(BISON)" \
405 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
406 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
407 "CFLAGS=$(CFLAGS)" \
408 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
409 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
410 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
411 "CXXFLAGS=$(CXXFLAGS)" \
412 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
413 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
414 "DESTDIR=$(DESTDIR)" \
415 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
416 "INSTALL=$(INSTALL)" \
417 "INSTALL_DATA=$(INSTALL_DATA)" \
418 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
419 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
420 "LDFLAGS=$(LDFLAGS)" \
421 "LEX=$(LEX)" \
422 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
423 "LIBCFLAGS=$(LIBCFLAGS)" \
424 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
425 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
426 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
427 "M4=$(M4)" \
428 "MAKE=$(MAKE)" \
429 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
430 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
431 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
432 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
433 "SHELL=$(SHELL)" \
434 "EXPECT=$(EXPECT)" \
435 "RUNTEST=$(RUNTEST)" \
436 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
437 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
438 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
439 "YACC=$(YACC)" \
440 "bindir=$(bindir)" \
441 "datadir=$(datadir)" \
442 "exec_prefix=$(exec_prefix)" \
443 "includedir=$(includedir)" \
444 "infodir=$(infodir)" \
445 "libdir=$(libdir)" \
446 "libexecdir=$(libexecdir)" \
447 "lispdir=$(lispdir)" \
448 "libstdcxx_incdir=$(libstdcxx_incdir)" \
449 "libsubdir=$(libsubdir)" \
450 "localstatedir=$(localstatedir)" \
451 "mandir=$(mandir)" \
452 "oldincludedir=$(oldincludedir)" \
453 "prefix=$(prefix)" \
454 "sbindir=$(sbindir)" \
455 "sharedstatedir=$(sharedstatedir)" \
456 "sysconfdir=$(sysconfdir)" \
457 "tooldir=$(tooldir)" \
458 "build_tooldir=$(build_tooldir)" \
459 "gxx_include_dir=$(gxx_include_dir)" \
460 "gcc_version=$(gcc_version)" \
461 "gcc_version_trigger=$(gcc_version_trigger)" \
462 "target_alias=$(target_alias)"
464 # For any flags above that may contain shell code that varies from one
465 # target library to another. When doing recursive invocations of the
466 # top-level Makefile, we don't want the outer make to evaluate them,
467 # so we pass these variables down unchanged. They must not contain
468 # single nor double quotes.
469 RECURSE_FLAGS = \
470 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
471 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
473 # Flags to pass down to most sub-makes, in which we're building with
474 # the host environment.
475 # If any variables are added here, they must be added to do-*, below.
476 EXTRA_HOST_FLAGS = \
477 'AR=$(AR)' \
478 'AS=$(AS)' \
479 'CC=$(CC)' \
480 'CXX=$(CXX)' \
481 'DLLTOOL=$(DLLTOOL)' \
482 'LD=$(LD)' \
483 'NM=$(NM)' \
484 'RANLIB=$(RANLIB)' \
485 'WINDRES=$(WINDRES)'
487 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
489 # Flags that are concerned with the location of the X11 include files
490 # and library files
492 # NOTE: until the top-level is getting the values via autoconf, it only
493 # causes problems to have this top-level Makefile overriding the autoconf-set
494 # values in child directories. Only variables that don't conflict with
495 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
497 X11_FLAGS_TO_PASS = \
498 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
499 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
501 # Flags to pass down to makes which are built with the target environment.
502 # The double $ decreases the length of the command line; the variables
503 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
504 # If any variables are added here, they must be added to do-*, below.
505 EXTRA_TARGET_FLAGS = \
506 'AR=$$(AR_FOR_TARGET)' \
507 'AS=$$(AS_FOR_TARGET)' \
508 'CC=$$(CC_FOR_TARGET)' \
509 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
510 'CXX=$$(CXX_FOR_TARGET)' \
511 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
512 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
513 'LD=$$(LD_FOR_TARGET)' \
514 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
515 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
516 'NM=$$(NM_FOR_TARGET)' \
517 'RANLIB=$$(RANLIB_FOR_TARGET)' \
518 'WINDRES=$$(WINDRES_FOR_TARGET)'
520 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
522 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
523 # unfortunately needs the native compiler and the target ar and
524 # ranlib.
525 # If any variables are added here, they must be added to do-*, below.
526 # The HOST_* variables are a special case, which are used for the gcc
527 # cross-building scheme.
528 EXTRA_GCC_FLAGS = \
529 'AR=$(AR)' \
530 'AS=$(AS)' \
531 'CC=$(CC)' \
532 'CXX=$(CXX)' \
533 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
534 'BUILD_CC=$(CC_FOR_BUILD)' \
535 'BUILD_PREFIX=$(BUILD_PREFIX)' \
536 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
537 'NM=$(NM)' \
538 'RANLIB=$(RANLIB)' \
539 'WINDRES=$$(WINDRES_FOR_TARGET)' \
540 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
541 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
542 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
543 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
544 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
545 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
546 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
547 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
548 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
549 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
550 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
552 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
554 .PHONY: configure-host
555 configure-host: maybe-configure-gcc \
556 maybe-configure-ash \
557 maybe-configure-autoconf \
558 maybe-configure-automake \
559 maybe-configure-bash \
560 maybe-configure-bfd \
561 maybe-configure-opcodes \
562 maybe-configure-binutils \
563 maybe-configure-bison \
564 maybe-configure-byacc \
565 maybe-configure-bzip2 \
566 maybe-configure-dejagnu \
567 maybe-configure-diff \
568 maybe-configure-dosutils \
569 maybe-configure-etc \
570 maybe-configure-fastjar \
571 maybe-configure-fileutils \
572 maybe-configure-findutils \
573 maybe-configure-find \
574 maybe-configure-flex \
575 maybe-configure-gas \
576 maybe-configure-gawk \
577 maybe-configure-gettext \
578 maybe-configure-gnuserv \
579 maybe-configure-gprof \
580 maybe-configure-gzip \
581 maybe-configure-hello \
582 maybe-configure-indent \
583 maybe-configure-intl \
584 maybe-configure-tcl \
585 maybe-configure-itcl \
586 maybe-configure-ld \
587 maybe-configure-libgui \
588 maybe-configure-libiberty \
589 maybe-configure-libtool \
590 maybe-configure-m4 \
591 maybe-configure-make \
592 maybe-configure-mmalloc \
593 maybe-configure-patch \
594 maybe-configure-perl \
595 maybe-configure-prms \
596 maybe-configure-rcs \
597 maybe-configure-readline \
598 maybe-configure-release \
599 maybe-configure-recode \
600 maybe-configure-sed \
601 maybe-configure-send-pr \
602 maybe-configure-shellutils \
603 maybe-configure-sid \
604 maybe-configure-sim \
605 maybe-configure-tar \
606 maybe-configure-texinfo \
607 maybe-configure-textutils \
608 maybe-configure-time \
609 maybe-configure-uudecode \
610 maybe-configure-wdiff \
611 maybe-configure-zip \
612 maybe-configure-zlib \
613 maybe-configure-gdb \
614 maybe-configure-expect \
615 maybe-configure-guile \
616 maybe-configure-tk \
617 maybe-configure-tix \
618 maybe-configure-libtermcap \
619 maybe-configure-utils
620 .PHONY: configure-target
621 configure-target: \
622 maybe-configure-target-libstdc++-v3 \
623 maybe-configure-target-newlib \
624 maybe-configure-target-libf2c \
625 maybe-configure-target-libobjc \
626 maybe-configure-target-libtermcap \
627 maybe-configure-target-winsup \
628 maybe-configure-target-libgloss \
629 maybe-configure-target-libiberty \
630 maybe-configure-target-gperf \
631 maybe-configure-target-examples \
632 maybe-configure-target-libffi \
633 maybe-configure-target-libjava \
634 maybe-configure-target-zlib \
635 maybe-configure-target-boehm-gc \
636 maybe-configure-target-qthreads \
637 maybe-configure-target-rda
639 # This is a list of the targets for which we can do a clean-{target}.
640 CLEAN_MODULES = \
641 clean-ash \
642 clean-autoconf \
643 clean-automake \
644 clean-bash \
645 clean-bfd \
646 clean-opcodes \
647 clean-binutils \
648 clean-bison \
649 clean-byacc \
650 clean-bzip2 \
651 clean-dejagnu \
652 clean-diff \
653 clean-dosutils \
654 clean-etc \
655 clean-fastjar \
656 clean-fileutils \
657 clean-findutils \
658 clean-find \
659 clean-flex \
660 clean-gas \
661 clean-gawk \
662 clean-gettext \
663 clean-gnuserv \
664 clean-gprof \
665 clean-gzip \
666 clean-hello \
667 clean-indent \
668 clean-intl \
669 clean-tcl \
670 clean-itcl \
671 clean-ld \
672 clean-libgui \
673 clean-libiberty \
674 clean-libtool \
675 clean-m4 \
676 clean-make \
677 clean-mmalloc \
678 clean-patch \
679 clean-perl \
680 clean-prms \
681 clean-rcs \
682 clean-readline \
683 clean-release \
684 clean-recode \
685 clean-sed \
686 clean-send-pr \
687 clean-shellutils \
688 clean-sid \
689 clean-sim \
690 clean-tar \
691 clean-texinfo \
692 clean-textutils \
693 clean-time \
694 clean-uudecode \
695 clean-wdiff \
696 clean-zip \
697 clean-zlib \
698 clean-utils
700 # All of the target modules that can be cleaned
701 CLEAN_TARGET_MODULES = \
702 clean-target-libstdc++-v3 \
703 clean-target-newlib \
704 clean-target-libf2c \
705 clean-target-libobjc \
706 clean-target-winsup \
707 clean-target-libgloss \
708 clean-target-libiberty \
709 clean-target-gperf \
710 clean-target-examples \
711 clean-target-libffi \
712 clean-target-libjava \
713 clean-target-zlib \
714 clean-target-boehm-gc \
715 clean-target-qthreads \
716 clean-target-rda
718 # All of the x11 modules that can be cleaned
719 CLEAN_X11_MODULES = \
720 clean-gdb \
721 clean-expect \
722 clean-guile \
723 clean-tk \
724 clean-tix
726 # The target built for a native build.
727 .PHONY: all.normal
728 all.normal: @all_build_modules@ all-host all-target
730 .PHONY: all-host
731 all-host: maybe-all-gcc \
732 maybe-all-ash \
733 maybe-all-autoconf \
734 maybe-all-automake \
735 maybe-all-bash \
736 maybe-all-bfd \
737 maybe-all-opcodes \
738 maybe-all-binutils \
739 maybe-all-bison \
740 maybe-all-byacc \
741 maybe-all-bzip2 \
742 maybe-all-dejagnu \
743 maybe-all-diff \
744 maybe-all-dosutils \
745 maybe-all-etc \
746 maybe-all-fastjar \
747 maybe-all-fileutils \
748 maybe-all-findutils \
749 maybe-all-find \
750 maybe-all-flex \
751 maybe-all-gas \
752 maybe-all-gawk \
753 maybe-all-gettext \
754 maybe-all-gnuserv \
755 maybe-all-gprof \
756 maybe-all-gzip \
757 maybe-all-hello \
758 maybe-all-indent \
759 maybe-all-intl \
760 maybe-all-tcl \
761 maybe-all-itcl \
762 maybe-all-ld \
763 maybe-all-libgui \
764 maybe-all-libiberty \
765 maybe-all-libtool \
766 maybe-all-m4 \
767 maybe-all-make \
768 maybe-all-mmalloc \
769 maybe-all-patch \
770 maybe-all-perl \
771 maybe-all-prms \
772 maybe-all-rcs \
773 maybe-all-readline \
774 maybe-all-release \
775 maybe-all-recode \
776 maybe-all-sed \
777 maybe-all-send-pr \
778 maybe-all-shellutils \
779 maybe-all-sid \
780 maybe-all-sim \
781 maybe-all-tar \
782 maybe-all-texinfo \
783 maybe-all-textutils \
784 maybe-all-time \
785 maybe-all-uudecode \
786 maybe-all-wdiff \
787 maybe-all-zip \
788 maybe-all-zlib \
789 maybe-all-gdb \
790 maybe-all-expect \
791 maybe-all-guile \
792 maybe-all-tk \
793 maybe-all-tix \
794 maybe-all-libtermcap \
795 maybe-all-utils
796 .PHONY: all-target
797 all-target: \
798 maybe-all-target-libstdc++-v3 \
799 maybe-all-target-newlib \
800 maybe-all-target-libf2c \
801 maybe-all-target-libobjc \
802 maybe-all-target-libtermcap \
803 maybe-all-target-winsup \
804 maybe-all-target-libgloss \
805 maybe-all-target-libiberty \
806 maybe-all-target-gperf \
807 maybe-all-target-examples \
808 maybe-all-target-libffi \
809 maybe-all-target-libjava \
810 maybe-all-target-zlib \
811 maybe-all-target-boehm-gc \
812 maybe-all-target-qthreads \
813 maybe-all-target-rda
815 # Do a target for all the subdirectories. A ``make do-X'' will do a
816 # ``make X'' in all subdirectories (because, in general, there is a
817 # dependency (below) of X upon do-X, a ``make X'' will also do this,
818 # but it may do additional work as well).
819 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
820 # because it is so large that it can easily overflow the command line
821 # length limit on some systems.
823 .PHONY: do-clean
824 do-clean:
825 @r=`${PWD}`; export r; \
826 s=`cd $(srcdir); ${PWD}`; export s; \
827 $(SET_LIB_PATH) \
828 for i in $(SUBDIRS) -dummy-; do \
829 if [ -f ./$$i/Makefile ]; then \
830 case $$i in \
831 gcc) \
832 for flag in $(EXTRA_GCC_FLAGS); do \
833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
834 done; \
835 ;; \
836 *) \
837 for flag in $(EXTRA_HOST_FLAGS); do \
838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
839 done; \
840 ;; \
841 esac ; \
842 (cd ./$$i && \
843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
845 "RANLIB=$${RANLIB}" \
846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
847 clean) \
848 || exit 1; \
849 else true; fi; \
850 done
851 # Break into two pieces
852 r=`${PWD}`; export r; \
853 s=`cd $(srcdir); ${PWD}`; export s; \
854 $(SET_LIB_PATH) \
855 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
856 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
857 for flag in $(EXTRA_TARGET_FLAGS); do \
858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
859 done; \
860 (cd $(TARGET_SUBDIR)/$$i && \
861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
863 "RANLIB=$${RANLIB}" \
864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
865 clean) \
866 || exit 1; \
867 else true; fi; \
868 done
870 .PHONY: do-distclean
871 do-distclean:
872 @r=`${PWD}`; export r; \
873 s=`cd $(srcdir); ${PWD}`; export s; \
874 $(SET_LIB_PATH) \
875 for i in $(SUBDIRS) -dummy-; do \
876 if [ -f ./$$i/Makefile ]; then \
877 case $$i in \
878 gcc) \
879 for flag in $(EXTRA_GCC_FLAGS); do \
880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
881 done; \
882 ;; \
883 *) \
884 for flag in $(EXTRA_HOST_FLAGS); do \
885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
886 done; \
887 ;; \
888 esac ; \
889 (cd ./$$i && \
890 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
891 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
892 "RANLIB=$${RANLIB}" \
893 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
894 distclean) \
895 || exit 1; \
896 else true; fi; \
897 done
898 # Break into two pieces
899 r=`${PWD}`; export r; \
900 s=`cd $(srcdir); ${PWD}`; export s; \
901 $(SET_LIB_PATH) \
902 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
903 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
904 for flag in $(EXTRA_TARGET_FLAGS); do \
905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
906 done; \
907 (cd $(TARGET_SUBDIR)/$$i && \
908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
910 "RANLIB=$${RANLIB}" \
911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
912 distclean) \
913 || exit 1; \
914 else true; fi; \
915 done
917 .PHONY: do-dvi
918 do-dvi:
919 @r=`${PWD}`; export r; \
920 s=`cd $(srcdir); ${PWD}`; export s; \
921 $(SET_LIB_PATH) \
922 for i in $(SUBDIRS) -dummy-; do \
923 if [ -f ./$$i/Makefile ]; then \
924 case $$i in \
925 gcc) \
926 for flag in $(EXTRA_GCC_FLAGS); do \
927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
928 done; \
929 ;; \
930 *) \
931 for flag in $(EXTRA_HOST_FLAGS); do \
932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
933 done; \
934 ;; \
935 esac ; \
936 (cd ./$$i && \
937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
939 "RANLIB=$${RANLIB}" \
940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
941 dvi) \
942 || exit 1; \
943 else true; fi; \
944 done
945 # Break into two pieces
946 r=`${PWD}`; export r; \
947 s=`cd $(srcdir); ${PWD}`; export s; \
948 $(SET_LIB_PATH) \
949 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
950 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
951 for flag in $(EXTRA_TARGET_FLAGS); do \
952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
953 done; \
954 (cd $(TARGET_SUBDIR)/$$i && \
955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
957 "RANLIB=$${RANLIB}" \
958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
959 dvi) \
960 || exit 1; \
961 else true; fi; \
962 done
964 .PHONY: do-info
965 do-info:
966 @r=`${PWD}`; export r; \
967 s=`cd $(srcdir); ${PWD}`; export s; \
968 $(SET_LIB_PATH) \
969 for i in $(SUBDIRS) -dummy-; do \
970 if [ -f ./$$i/Makefile ]; then \
971 case $$i in \
972 gcc) \
973 for flag in $(EXTRA_GCC_FLAGS); do \
974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
975 done; \
976 ;; \
977 *) \
978 for flag in $(EXTRA_HOST_FLAGS); do \
979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
980 done; \
981 ;; \
982 esac ; \
983 (cd ./$$i && \
984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
986 "RANLIB=$${RANLIB}" \
987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
988 info) \
989 || exit 1; \
990 else true; fi; \
991 done
992 # Break into two pieces
993 r=`${PWD}`; export r; \
994 s=`cd $(srcdir); ${PWD}`; export s; \
995 $(SET_LIB_PATH) \
996 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
997 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
998 for flag in $(EXTRA_TARGET_FLAGS); do \
999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1000 done; \
1001 (cd $(TARGET_SUBDIR)/$$i && \
1002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1004 "RANLIB=$${RANLIB}" \
1005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1006 info) \
1007 || exit 1; \
1008 else true; fi; \
1009 done
1011 .PHONY: do-install-info
1012 do-install-info:
1013 @r=`${PWD}`; export r; \
1014 s=`cd $(srcdir); ${PWD}`; export s; \
1015 $(SET_LIB_PATH) \
1016 for i in $(SUBDIRS) -dummy-; do \
1017 if [ -f ./$$i/Makefile ]; then \
1018 case $$i in \
1019 gcc) \
1020 for flag in $(EXTRA_GCC_FLAGS); do \
1021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1022 done; \
1023 ;; \
1024 *) \
1025 for flag in $(EXTRA_HOST_FLAGS); do \
1026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 done; \
1028 ;; \
1029 esac ; \
1030 (cd ./$$i && \
1031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1033 "RANLIB=$${RANLIB}" \
1034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1035 install-info) \
1036 || exit 1; \
1037 else true; fi; \
1038 done
1039 # Break into two pieces
1040 r=`${PWD}`; export r; \
1041 s=`cd $(srcdir); ${PWD}`; export s; \
1042 $(SET_LIB_PATH) \
1043 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1044 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1045 for flag in $(EXTRA_TARGET_FLAGS); do \
1046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1047 done; \
1048 (cd $(TARGET_SUBDIR)/$$i && \
1049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1051 "RANLIB=$${RANLIB}" \
1052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1053 install-info) \
1054 || exit 1; \
1055 else true; fi; \
1056 done
1058 .PHONY: do-installcheck
1059 do-installcheck:
1060 @r=`${PWD}`; export r; \
1061 s=`cd $(srcdir); ${PWD}`; export s; \
1062 $(SET_LIB_PATH) \
1063 for i in $(SUBDIRS) -dummy-; do \
1064 if [ -f ./$$i/Makefile ]; then \
1065 case $$i in \
1066 gcc) \
1067 for flag in $(EXTRA_GCC_FLAGS); do \
1068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1069 done; \
1070 ;; \
1071 *) \
1072 for flag in $(EXTRA_HOST_FLAGS); do \
1073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1074 done; \
1075 ;; \
1076 esac ; \
1077 (cd ./$$i && \
1078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1080 "RANLIB=$${RANLIB}" \
1081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1082 installcheck) \
1083 || exit 1; \
1084 else true; fi; \
1085 done
1086 # Break into two pieces
1087 r=`${PWD}`; export r; \
1088 s=`cd $(srcdir); ${PWD}`; export s; \
1089 $(SET_LIB_PATH) \
1090 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1091 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1092 for flag in $(EXTRA_TARGET_FLAGS); do \
1093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1094 done; \
1095 (cd $(TARGET_SUBDIR)/$$i && \
1096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1098 "RANLIB=$${RANLIB}" \
1099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1100 installcheck) \
1101 || exit 1; \
1102 else true; fi; \
1103 done
1105 .PHONY: do-mostlyclean
1106 do-mostlyclean:
1107 @r=`${PWD}`; export r; \
1108 s=`cd $(srcdir); ${PWD}`; export s; \
1109 $(SET_LIB_PATH) \
1110 for i in $(SUBDIRS) -dummy-; do \
1111 if [ -f ./$$i/Makefile ]; then \
1112 case $$i in \
1113 gcc) \
1114 for flag in $(EXTRA_GCC_FLAGS); do \
1115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1116 done; \
1117 ;; \
1118 *) \
1119 for flag in $(EXTRA_HOST_FLAGS); do \
1120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1121 done; \
1122 ;; \
1123 esac ; \
1124 (cd ./$$i && \
1125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1127 "RANLIB=$${RANLIB}" \
1128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1129 mostlyclean) \
1130 || exit 1; \
1131 else true; fi; \
1132 done
1133 # Break into two pieces
1134 r=`${PWD}`; export r; \
1135 s=`cd $(srcdir); ${PWD}`; export s; \
1136 $(SET_LIB_PATH) \
1137 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1138 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1139 for flag in $(EXTRA_TARGET_FLAGS); do \
1140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1141 done; \
1142 (cd $(TARGET_SUBDIR)/$$i && \
1143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1145 "RANLIB=$${RANLIB}" \
1146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1147 mostlyclean) \
1148 || exit 1; \
1149 else true; fi; \
1150 done
1152 .PHONY: do-maintainer-clean
1153 do-maintainer-clean:
1154 @r=`${PWD}`; export r; \
1155 s=`cd $(srcdir); ${PWD}`; export s; \
1156 $(SET_LIB_PATH) \
1157 for i in $(SUBDIRS) -dummy-; do \
1158 if [ -f ./$$i/Makefile ]; then \
1159 case $$i in \
1160 gcc) \
1161 for flag in $(EXTRA_GCC_FLAGS); do \
1162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1163 done; \
1164 ;; \
1165 *) \
1166 for flag in $(EXTRA_HOST_FLAGS); do \
1167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1168 done; \
1169 ;; \
1170 esac ; \
1171 (cd ./$$i && \
1172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1174 "RANLIB=$${RANLIB}" \
1175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1176 maintainer-clean) \
1177 || exit 1; \
1178 else true; fi; \
1179 done
1180 # Break into two pieces
1181 r=`${PWD}`; export r; \
1182 s=`cd $(srcdir); ${PWD}`; export s; \
1183 $(SET_LIB_PATH) \
1184 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1185 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1186 for flag in $(EXTRA_TARGET_FLAGS); do \
1187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1188 done; \
1189 (cd $(TARGET_SUBDIR)/$$i && \
1190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1192 "RANLIB=$${RANLIB}" \
1193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1194 maintainer-clean) \
1195 || exit 1; \
1196 else true; fi; \
1197 done
1199 .PHONY: do-TAGS
1200 do-TAGS:
1201 @r=`${PWD}`; export r; \
1202 s=`cd $(srcdir); ${PWD}`; export s; \
1203 $(SET_LIB_PATH) \
1204 for i in $(SUBDIRS) -dummy-; do \
1205 if [ -f ./$$i/Makefile ]; then \
1206 case $$i in \
1207 gcc) \
1208 for flag in $(EXTRA_GCC_FLAGS); do \
1209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1210 done; \
1211 ;; \
1212 *) \
1213 for flag in $(EXTRA_HOST_FLAGS); do \
1214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1215 done; \
1216 ;; \
1217 esac ; \
1218 (cd ./$$i && \
1219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1221 "RANLIB=$${RANLIB}" \
1222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1223 TAGS) \
1224 || exit 1; \
1225 else true; fi; \
1226 done
1227 # Break into two pieces
1228 r=`${PWD}`; export r; \
1229 s=`cd $(srcdir); ${PWD}`; export s; \
1230 $(SET_LIB_PATH) \
1231 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1232 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1233 for flag in $(EXTRA_TARGET_FLAGS); do \
1234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1235 done; \
1236 (cd $(TARGET_SUBDIR)/$$i && \
1237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1239 "RANLIB=$${RANLIB}" \
1240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1241 TAGS) \
1242 || exit 1; \
1243 else true; fi; \
1244 done
1248 # Here are the targets which correspond to the do-X targets.
1250 .PHONY: info installcheck dvi install-info
1251 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1252 .PHONY: local-clean local-distclean local-maintainer-clean
1253 info: do-info
1254 installcheck: do-installcheck
1255 dvi: do-dvi
1257 # Make sure makeinfo is built before we do a `make info', if we're
1258 # in fact building texinfo.
1259 do-info: maybe-all-texinfo
1261 install-info: do-install-info dir.info
1262 s=`cd $(srcdir); ${PWD}`; export s; \
1263 if [ -f dir.info ] ; then \
1264 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1265 else true ; fi
1267 local-clean:
1268 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1270 local-distclean:
1271 -rm -f Makefile config.status config.cache mh-frag mt-frag
1272 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1273 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1274 rm -rf $(TARGET_SUBDIR); \
1275 else true; fi
1276 -rm -rf $(BUILD_SUBDIR)
1277 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1278 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1279 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1280 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1281 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1283 local-maintainer-clean:
1284 @echo "This command is intended for maintainers to use;"
1285 @echo "it deletes files that may require special tools to rebuild."
1287 clean: do-clean local-clean
1288 mostlyclean: do-mostlyclean local-clean
1289 distclean: do-distclean local-clean local-distclean
1290 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1291 maintainer-clean: local-distclean
1292 realclean: maintainer-clean
1294 # This rule is used to clean specific modules.
1295 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1296 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1297 @dir=`echo $@ | sed -e 's/clean-//'`; \
1298 if [ -f ./$${dir}/Makefile ] ; then \
1299 r=`${PWD}`; export r; \
1300 s=`cd $(srcdir); ${PWD}`; export s; \
1301 $(SET_LIB_PATH) \
1302 (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
1303 else \
1304 true; \
1307 .PHONY: $(CLEAN_TARGET_MODULES)
1308 $(CLEAN_TARGET_MODULES):
1309 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1310 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1311 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1312 r=`${PWD}`; export r; \
1313 s=`cd $(srcdir); ${PWD}`; export s; \
1314 $(SET_LIB_PATH) \
1315 (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1316 else \
1317 true; \
1320 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1321 clean-target-libgcc:
1322 test ! -d gcc/libgcc || \
1323 (cd gcc/libgcc && find . -type d -print) | \
1324 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1325 -rm -rf gcc/libgcc
1327 # Check target.
1329 .PHONY: check do-check
1330 check:
1331 $(MAKE) do-check NOTPARALLEL=parallel-ok
1333 # Only include modules actually being configured and built.
1334 do-check: maybe-check-gcc \
1335 maybe-check-ash \
1336 maybe-check-autoconf \
1337 maybe-check-automake \
1338 maybe-check-bash \
1339 maybe-check-bfd \
1340 maybe-check-opcodes \
1341 maybe-check-binutils \
1342 maybe-check-bison \
1343 maybe-check-byacc \
1344 maybe-check-bzip2 \
1345 maybe-check-dejagnu \
1346 maybe-check-diff \
1347 maybe-check-dosutils \
1348 maybe-check-etc \
1349 maybe-check-fastjar \
1350 maybe-check-fileutils \
1351 maybe-check-findutils \
1352 maybe-check-find \
1353 maybe-check-flex \
1354 maybe-check-gas \
1355 maybe-check-gawk \
1356 maybe-check-gettext \
1357 maybe-check-gnuserv \
1358 maybe-check-gprof \
1359 maybe-check-gzip \
1360 maybe-check-hello \
1361 maybe-check-indent \
1362 maybe-check-intl \
1363 maybe-check-tcl \
1364 maybe-check-itcl \
1365 maybe-check-ld \
1366 maybe-check-libgui \
1367 maybe-check-libiberty \
1368 maybe-check-libtool \
1369 maybe-check-m4 \
1370 maybe-check-make \
1371 maybe-check-mmalloc \
1372 maybe-check-patch \
1373 maybe-check-perl \
1374 maybe-check-prms \
1375 maybe-check-rcs \
1376 maybe-check-readline \
1377 maybe-check-release \
1378 maybe-check-recode \
1379 maybe-check-sed \
1380 maybe-check-send-pr \
1381 maybe-check-shellutils \
1382 maybe-check-sid \
1383 maybe-check-sim \
1384 maybe-check-tar \
1385 maybe-check-texinfo \
1386 maybe-check-textutils \
1387 maybe-check-time \
1388 maybe-check-uudecode \
1389 maybe-check-wdiff \
1390 maybe-check-zip \
1391 maybe-check-zlib \
1392 maybe-check-gdb \
1393 maybe-check-expect \
1394 maybe-check-guile \
1395 maybe-check-tk \
1396 maybe-check-tix \
1397 maybe-check-libtermcap \
1398 maybe-check-utils \
1399 maybe-check-target-libstdc++-v3 \
1400 maybe-check-target-newlib \
1401 maybe-check-target-libf2c \
1402 maybe-check-target-libobjc \
1403 maybe-check-target-libtermcap \
1404 maybe-check-target-winsup \
1405 maybe-check-target-libgloss \
1406 maybe-check-target-libiberty \
1407 maybe-check-target-gperf \
1408 maybe-check-target-examples \
1409 maybe-check-target-libffi \
1410 maybe-check-target-libjava \
1411 maybe-check-target-zlib \
1412 maybe-check-target-boehm-gc \
1413 maybe-check-target-qthreads \
1414 maybe-check-target-rda
1416 # Automated reporting of test results.
1418 warning.log: build.log
1419 $(srcdir)/contrib/warn_summary build.log > $@
1421 mail-report.log:
1422 if test x'$(BOOT_CFLAGS)' != x''; then \
1423 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1424 fi; \
1425 $(srcdir)/contrib/test_summary -t >$@
1426 chmod +x $@
1427 echo If you really want to send e-mail, run ./$@ now
1429 mail-report-with-warnings.log: warning.log
1430 if test x'$(BOOT_CFLAGS)' != x''; then \
1431 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1432 fi; \
1433 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1434 chmod +x $@
1435 echo If you really want to send e-mail, run ./$@ now
1437 # Installation targets.
1439 .PHONY: install uninstall
1440 install: installdirs install-host install-target
1442 .PHONY: install-host-nogcc
1443 install-host-nogcc: \
1444 maybe-install-ash \
1445 maybe-install-autoconf \
1446 maybe-install-automake \
1447 maybe-install-bash \
1448 maybe-install-bfd \
1449 maybe-install-opcodes \
1450 maybe-install-binutils \
1451 maybe-install-bison \
1452 maybe-install-byacc \
1453 maybe-install-bzip2 \
1454 maybe-install-dejagnu \
1455 maybe-install-diff \
1456 maybe-install-dosutils \
1457 maybe-install-etc \
1458 maybe-install-fastjar \
1459 maybe-install-fileutils \
1460 maybe-install-findutils \
1461 maybe-install-find \
1462 maybe-install-flex \
1463 maybe-install-gas \
1464 maybe-install-gawk \
1465 maybe-install-gettext \
1466 maybe-install-gnuserv \
1467 maybe-install-gprof \
1468 maybe-install-gzip \
1469 maybe-install-hello \
1470 maybe-install-indent \
1471 maybe-install-intl \
1472 maybe-install-tcl \
1473 maybe-install-itcl \
1474 maybe-install-ld \
1475 maybe-install-libgui \
1476 maybe-install-libiberty \
1477 maybe-install-libtool \
1478 maybe-install-m4 \
1479 maybe-install-make \
1480 maybe-install-mmalloc \
1481 maybe-install-patch \
1482 maybe-install-perl \
1483 maybe-install-prms \
1484 maybe-install-rcs \
1485 maybe-install-readline \
1486 maybe-install-release \
1487 maybe-install-recode \
1488 maybe-install-sed \
1489 maybe-install-send-pr \
1490 maybe-install-shellutils \
1491 maybe-install-sid \
1492 maybe-install-sim \
1493 maybe-install-tar \
1494 maybe-install-texinfo \
1495 maybe-install-textutils \
1496 maybe-install-time \
1497 maybe-install-uudecode \
1498 maybe-install-wdiff \
1499 maybe-install-zip \
1500 maybe-install-zlib \
1501 maybe-install-gdb \
1502 maybe-install-expect \
1503 maybe-install-guile \
1504 maybe-install-tk \
1505 maybe-install-tix \
1506 maybe-install-libtermcap \
1507 maybe-install-utils
1509 .PHONY: install-host
1510 install-host: maybe-install-gcc \
1511 maybe-install-ash \
1512 maybe-install-autoconf \
1513 maybe-install-automake \
1514 maybe-install-bash \
1515 maybe-install-bfd \
1516 maybe-install-opcodes \
1517 maybe-install-binutils \
1518 maybe-install-bison \
1519 maybe-install-byacc \
1520 maybe-install-bzip2 \
1521 maybe-install-dejagnu \
1522 maybe-install-diff \
1523 maybe-install-dosutils \
1524 maybe-install-etc \
1525 maybe-install-fastjar \
1526 maybe-install-fileutils \
1527 maybe-install-findutils \
1528 maybe-install-find \
1529 maybe-install-flex \
1530 maybe-install-gas \
1531 maybe-install-gawk \
1532 maybe-install-gettext \
1533 maybe-install-gnuserv \
1534 maybe-install-gprof \
1535 maybe-install-gzip \
1536 maybe-install-hello \
1537 maybe-install-indent \
1538 maybe-install-intl \
1539 maybe-install-tcl \
1540 maybe-install-itcl \
1541 maybe-install-ld \
1542 maybe-install-libgui \
1543 maybe-install-libiberty \
1544 maybe-install-libtool \
1545 maybe-install-m4 \
1546 maybe-install-make \
1547 maybe-install-mmalloc \
1548 maybe-install-patch \
1549 maybe-install-perl \
1550 maybe-install-prms \
1551 maybe-install-rcs \
1552 maybe-install-readline \
1553 maybe-install-release \
1554 maybe-install-recode \
1555 maybe-install-sed \
1556 maybe-install-send-pr \
1557 maybe-install-shellutils \
1558 maybe-install-sid \
1559 maybe-install-sim \
1560 maybe-install-tar \
1561 maybe-install-texinfo \
1562 maybe-install-textutils \
1563 maybe-install-time \
1564 maybe-install-uudecode \
1565 maybe-install-wdiff \
1566 maybe-install-zip \
1567 maybe-install-zlib \
1568 maybe-install-gdb \
1569 maybe-install-expect \
1570 maybe-install-guile \
1571 maybe-install-tk \
1572 maybe-install-tix \
1573 maybe-install-libtermcap \
1574 maybe-install-utils
1576 .PHONY: install-target
1577 install-target: \
1578 maybe-install-target-libstdc++-v3 \
1579 maybe-install-target-newlib \
1580 maybe-install-target-libf2c \
1581 maybe-install-target-libobjc \
1582 maybe-install-target-libtermcap \
1583 maybe-install-target-winsup \
1584 maybe-install-target-libgloss \
1585 maybe-install-target-libiberty \
1586 maybe-install-target-gperf \
1587 maybe-install-target-examples \
1588 maybe-install-target-libffi \
1589 maybe-install-target-libjava \
1590 maybe-install-target-zlib \
1591 maybe-install-target-boehm-gc \
1592 maybe-install-target-qthreads \
1593 maybe-install-target-rda
1595 uninstall:
1596 @echo "the uninstall target is not supported in this tree"
1598 .PHONY: install.all
1599 install.all: install-no-fixedincludes
1600 @if [ -f ./gcc/Makefile ] ; then \
1601 r=`${PWD}` ; export r ; \
1602 $(SET_LIB_PATH) \
1603 (cd ./gcc && \
1604 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1605 else \
1606 true ; \
1609 # install-no-fixedincludes is used because Cygnus can not distribute
1610 # the fixed header files.
1611 .PHONY: install-no-fixedincludes
1612 install-no-fixedincludes: installdirs install-host-nogcc \
1613 install-target gcc-no-fixedincludes
1615 ### other supporting targets
1617 MAKEDIRS= \
1618 $(DESTDIR)$(prefix) \
1619 $(DESTDIR)$(exec_prefix)
1620 .PHONY: installdirs
1621 installdirs: mkinstalldirs
1622 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1624 dir.info: do-install-info
1625 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1626 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1627 mv -f dir.info.new dir.info ; \
1628 else true ; \
1631 dist:
1632 @echo "Building a full distribution of this tree isn't done"
1633 @echo "via 'make dist'. Check out the etc/ subdirectory"
1635 etags tags: TAGS
1637 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1638 # ability to use several tags files at once, so there is probably no need
1639 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1640 # (if we felt like it) have this Makefile write a piece of elisp which
1641 # the user could load to tell emacs19 where all the TAGS files we just
1642 # built are.
1643 TAGS: do-TAGS
1645 # --------------------------------------
1646 # Modules which run on the build machine
1647 # --------------------------------------
1649 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1650 maybe-configure-build-libiberty:
1651 configure-build-libiberty:
1652 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1653 [ -d $(BUILD_SUBDIR)/libiberty ] || \
1654 mkdir $(BUILD_SUBDIR)/libiberty;\
1655 r=`${PWD}`; export r; \
1656 s=`cd $(srcdir); ${PWD}`; export s; \
1657 AR="$(AR_FOR_BUILD)"; export AR; \
1658 AS="$(AS_FOR_BUILD)"; export AS; \
1659 CC="$(CC_FOR_BUILD)"; export CC; \
1660 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1661 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1662 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1663 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1664 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1665 LD="$(LD_FOR_BUILD)"; export LD; \
1666 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1667 NM="$(NM_FOR_BUILD)"; export NM; \
1668 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1669 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1670 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1671 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1672 case $(srcdir) in \
1673 /* | [A-Za-z]:[\\/]*) \
1674 topdir=$(srcdir) ;; \
1675 *) \
1676 case "$(BUILD_SUBDIR)" in \
1677 .) topdir="../$(srcdir)" ;; \
1678 *) topdir="../../$(srcdir)" ;; \
1679 esac ;; \
1680 esac; \
1681 if [ "$(srcdir)" = "." ] ; then \
1682 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1683 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1684 if [ -f Makefile ]; then \
1685 if $(MAKE) distclean; then \
1686 true; \
1687 else \
1688 exit 1; \
1689 fi; \
1690 else \
1691 true; \
1692 fi; \
1693 else \
1694 exit 1; \
1695 fi; \
1696 else \
1697 true; \
1698 fi; \
1699 srcdiroption="--srcdir=."; \
1700 libsrcdir="."; \
1701 else \
1702 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1703 libsrcdir="$$s/libiberty"; \
1704 fi; \
1705 rm -f no-such-file || : ; \
1706 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1707 $(BUILD_CONFIGARGS) $${srcdiroption} \
1708 --with-build-subdir="$(BUILD_SUBDIR)" \
1709 || exit 1
1711 .PHONY: all-build-libiberty maybe-all-build-libiberty
1712 maybe-all-build-libiberty:
1713 all-build-libiberty: configure-build-libiberty
1714 @r=`${PWD}`; export r; \
1715 s=`cd $(srcdir); ${PWD}`; export s; \
1716 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1719 # --------------------------------------
1720 # Modules which run on the host machine
1721 # --------------------------------------
1723 .PHONY: configure-ash maybe-configure-ash
1724 maybe-configure-ash:
1725 configure-ash:
1726 @test ! -f ash/Makefile || exit 0; \
1727 [ -d ash ] || mkdir ash; \
1728 r=`${PWD}`; export r; \
1729 s=`cd $(srcdir); ${PWD}`; export s; \
1730 CC="$(CC)"; export CC; \
1731 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1732 CXX="$(CXX)"; export CXX; \
1733 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1734 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1735 AR="$(AR)"; export AR; \
1736 AS="$(AS)"; export AS; \
1737 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1738 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1739 LD="$(LD)"; export LD; \
1740 NM="$(NM)"; export NM; \
1741 RANLIB="$(RANLIB)"; export RANLIB; \
1742 WINDRES="$(WINDRES)"; export WINDRES; \
1743 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1744 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1745 fi; \
1746 echo Configuring in ash; \
1747 cd ash || exit 1; \
1748 case $(srcdir) in \
1749 \.) \
1750 srcdiroption="--srcdir=."; \
1751 libsrcdir=".";; \
1752 /* | [A-Za-z]:[\\/]*) \
1753 srcdiroption="--srcdir=$(srcdir)/ash"; \
1754 libsrcdir="$$s/ash";; \
1755 *) \
1756 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1757 libsrcdir="$$s/ash";; \
1758 esac; \
1759 $(SHELL) $${libsrcdir}/configure \
1760 $(HOST_CONFIGARGS) $${srcdiroption} \
1761 || exit 1
1763 .PHONY: all-ash maybe-all-ash
1764 maybe-all-ash:
1765 all-ash: configure-ash
1766 @r=`${PWD}`; export r; \
1767 s=`cd $(srcdir); ${PWD}`; export s; \
1768 $(SET_LIB_PATH) \
1769 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
1771 .PHONY: check-ash maybe-check-ash
1772 maybe-check-ash:
1774 check-ash:
1775 @r=`${PWD}`; export r; \
1776 s=`cd $(srcdir); ${PWD}`; export s; \
1777 $(SET_LIB_PATH) \
1778 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1781 .PHONY: install-ash maybe-install-ash
1782 maybe-install-ash:
1784 install-ash: installdirs
1785 @r=`${PWD}`; export r; \
1786 s=`cd $(srcdir); ${PWD}`; export s; \
1787 $(SET_LIB_PATH) \
1788 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1791 .PHONY: configure-autoconf maybe-configure-autoconf
1792 maybe-configure-autoconf:
1793 configure-autoconf:
1794 @test ! -f autoconf/Makefile || exit 0; \
1795 [ -d autoconf ] || mkdir autoconf; \
1796 r=`${PWD}`; export r; \
1797 s=`cd $(srcdir); ${PWD}`; export s; \
1798 CC="$(CC)"; export CC; \
1799 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1800 CXX="$(CXX)"; export CXX; \
1801 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1802 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1803 AR="$(AR)"; export AR; \
1804 AS="$(AS)"; export AS; \
1805 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1806 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1807 LD="$(LD)"; export LD; \
1808 NM="$(NM)"; export NM; \
1809 RANLIB="$(RANLIB)"; export RANLIB; \
1810 WINDRES="$(WINDRES)"; export WINDRES; \
1811 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1812 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1813 fi; \
1814 echo Configuring in autoconf; \
1815 cd autoconf || exit 1; \
1816 case $(srcdir) in \
1817 \.) \
1818 srcdiroption="--srcdir=."; \
1819 libsrcdir=".";; \
1820 /* | [A-Za-z]:[\\/]*) \
1821 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1822 libsrcdir="$$s/autoconf";; \
1823 *) \
1824 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1825 libsrcdir="$$s/autoconf";; \
1826 esac; \
1827 $(SHELL) $${libsrcdir}/configure \
1828 $(HOST_CONFIGARGS) $${srcdiroption} \
1829 || exit 1
1831 .PHONY: all-autoconf maybe-all-autoconf
1832 maybe-all-autoconf:
1833 all-autoconf: configure-autoconf
1834 @r=`${PWD}`; export r; \
1835 s=`cd $(srcdir); ${PWD}`; export s; \
1836 $(SET_LIB_PATH) \
1837 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
1839 .PHONY: check-autoconf maybe-check-autoconf
1840 maybe-check-autoconf:
1842 check-autoconf:
1843 @r=`${PWD}`; export r; \
1844 s=`cd $(srcdir); ${PWD}`; export s; \
1845 $(SET_LIB_PATH) \
1846 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1849 .PHONY: install-autoconf maybe-install-autoconf
1850 maybe-install-autoconf:
1852 install-autoconf: installdirs
1853 @r=`${PWD}`; export r; \
1854 s=`cd $(srcdir); ${PWD}`; export s; \
1855 $(SET_LIB_PATH) \
1856 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1859 .PHONY: configure-automake maybe-configure-automake
1860 maybe-configure-automake:
1861 configure-automake:
1862 @test ! -f automake/Makefile || exit 0; \
1863 [ -d automake ] || mkdir automake; \
1864 r=`${PWD}`; export r; \
1865 s=`cd $(srcdir); ${PWD}`; export s; \
1866 CC="$(CC)"; export CC; \
1867 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1868 CXX="$(CXX)"; export CXX; \
1869 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1870 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1871 AR="$(AR)"; export AR; \
1872 AS="$(AS)"; export AS; \
1873 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1874 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1875 LD="$(LD)"; export LD; \
1876 NM="$(NM)"; export NM; \
1877 RANLIB="$(RANLIB)"; export RANLIB; \
1878 WINDRES="$(WINDRES)"; export WINDRES; \
1879 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1880 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1881 fi; \
1882 echo Configuring in automake; \
1883 cd automake || exit 1; \
1884 case $(srcdir) in \
1885 \.) \
1886 srcdiroption="--srcdir=."; \
1887 libsrcdir=".";; \
1888 /* | [A-Za-z]:[\\/]*) \
1889 srcdiroption="--srcdir=$(srcdir)/automake"; \
1890 libsrcdir="$$s/automake";; \
1891 *) \
1892 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1893 libsrcdir="$$s/automake";; \
1894 esac; \
1895 $(SHELL) $${libsrcdir}/configure \
1896 $(HOST_CONFIGARGS) $${srcdiroption} \
1897 || exit 1
1899 .PHONY: all-automake maybe-all-automake
1900 maybe-all-automake:
1901 all-automake: configure-automake
1902 @r=`${PWD}`; export r; \
1903 s=`cd $(srcdir); ${PWD}`; export s; \
1904 $(SET_LIB_PATH) \
1905 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
1907 .PHONY: check-automake maybe-check-automake
1908 maybe-check-automake:
1910 check-automake:
1911 @r=`${PWD}`; export r; \
1912 s=`cd $(srcdir); ${PWD}`; export s; \
1913 $(SET_LIB_PATH) \
1914 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1917 .PHONY: install-automake maybe-install-automake
1918 maybe-install-automake:
1920 install-automake: installdirs
1921 @r=`${PWD}`; export r; \
1922 s=`cd $(srcdir); ${PWD}`; export s; \
1923 $(SET_LIB_PATH) \
1924 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1927 .PHONY: configure-bash maybe-configure-bash
1928 maybe-configure-bash:
1929 configure-bash:
1930 @test ! -f bash/Makefile || exit 0; \
1931 [ -d bash ] || mkdir bash; \
1932 r=`${PWD}`; export r; \
1933 s=`cd $(srcdir); ${PWD}`; export s; \
1934 CC="$(CC)"; export CC; \
1935 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1936 CXX="$(CXX)"; export CXX; \
1937 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1938 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1939 AR="$(AR)"; export AR; \
1940 AS="$(AS)"; export AS; \
1941 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1942 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1943 LD="$(LD)"; export LD; \
1944 NM="$(NM)"; export NM; \
1945 RANLIB="$(RANLIB)"; export RANLIB; \
1946 WINDRES="$(WINDRES)"; export WINDRES; \
1947 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1948 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1949 fi; \
1950 echo Configuring in bash; \
1951 cd bash || exit 1; \
1952 case $(srcdir) in \
1953 \.) \
1954 srcdiroption="--srcdir=."; \
1955 libsrcdir=".";; \
1956 /* | [A-Za-z]:[\\/]*) \
1957 srcdiroption="--srcdir=$(srcdir)/bash"; \
1958 libsrcdir="$$s/bash";; \
1959 *) \
1960 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1961 libsrcdir="$$s/bash";; \
1962 esac; \
1963 $(SHELL) $${libsrcdir}/configure \
1964 $(HOST_CONFIGARGS) $${srcdiroption} \
1965 || exit 1
1967 .PHONY: all-bash maybe-all-bash
1968 maybe-all-bash:
1969 all-bash: configure-bash
1970 @r=`${PWD}`; export r; \
1971 s=`cd $(srcdir); ${PWD}`; export s; \
1972 $(SET_LIB_PATH) \
1973 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
1975 .PHONY: check-bash maybe-check-bash
1976 maybe-check-bash:
1978 check-bash:
1979 @r=`${PWD}`; export r; \
1980 s=`cd $(srcdir); ${PWD}`; export s; \
1981 $(SET_LIB_PATH) \
1982 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
1985 .PHONY: install-bash maybe-install-bash
1986 maybe-install-bash:
1988 install-bash: installdirs
1989 @r=`${PWD}`; export r; \
1990 s=`cd $(srcdir); ${PWD}`; export s; \
1991 $(SET_LIB_PATH) \
1992 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1995 .PHONY: configure-bfd maybe-configure-bfd
1996 maybe-configure-bfd:
1997 configure-bfd:
1998 @test ! -f bfd/Makefile || exit 0; \
1999 [ -d bfd ] || mkdir bfd; \
2000 r=`${PWD}`; export r; \
2001 s=`cd $(srcdir); ${PWD}`; export s; \
2002 CC="$(CC)"; export CC; \
2003 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2004 CXX="$(CXX)"; export CXX; \
2005 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2006 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2007 AR="$(AR)"; export AR; \
2008 AS="$(AS)"; export AS; \
2009 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2010 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2011 LD="$(LD)"; export LD; \
2012 NM="$(NM)"; export NM; \
2013 RANLIB="$(RANLIB)"; export RANLIB; \
2014 WINDRES="$(WINDRES)"; export WINDRES; \
2015 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2016 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2017 fi; \
2018 echo Configuring in bfd; \
2019 cd bfd || exit 1; \
2020 case $(srcdir) in \
2021 \.) \
2022 srcdiroption="--srcdir=."; \
2023 libsrcdir=".";; \
2024 /* | [A-Za-z]:[\\/]*) \
2025 srcdiroption="--srcdir=$(srcdir)/bfd"; \
2026 libsrcdir="$$s/bfd";; \
2027 *) \
2028 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
2029 libsrcdir="$$s/bfd";; \
2030 esac; \
2031 $(SHELL) $${libsrcdir}/configure \
2032 $(HOST_CONFIGARGS) $${srcdiroption} \
2033 || exit 1
2035 .PHONY: all-bfd maybe-all-bfd
2036 maybe-all-bfd:
2037 all-bfd: configure-bfd
2038 @r=`${PWD}`; export r; \
2039 s=`cd $(srcdir); ${PWD}`; export s; \
2040 $(SET_LIB_PATH) \
2041 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
2043 .PHONY: check-bfd maybe-check-bfd
2044 maybe-check-bfd:
2046 check-bfd:
2047 @r=`${PWD}`; export r; \
2048 s=`cd $(srcdir); ${PWD}`; export s; \
2049 $(SET_LIB_PATH) \
2050 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
2053 .PHONY: install-bfd maybe-install-bfd
2054 maybe-install-bfd:
2056 install-bfd: installdirs
2057 @r=`${PWD}`; export r; \
2058 s=`cd $(srcdir); ${PWD}`; export s; \
2059 $(SET_LIB_PATH) \
2060 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
2063 .PHONY: configure-opcodes maybe-configure-opcodes
2064 maybe-configure-opcodes:
2065 configure-opcodes:
2066 @test ! -f opcodes/Makefile || exit 0; \
2067 [ -d opcodes ] || mkdir opcodes; \
2068 r=`${PWD}`; export r; \
2069 s=`cd $(srcdir); ${PWD}`; export s; \
2070 CC="$(CC)"; export CC; \
2071 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2072 CXX="$(CXX)"; export CXX; \
2073 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2074 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2075 AR="$(AR)"; export AR; \
2076 AS="$(AS)"; export AS; \
2077 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2078 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2079 LD="$(LD)"; export LD; \
2080 NM="$(NM)"; export NM; \
2081 RANLIB="$(RANLIB)"; export RANLIB; \
2082 WINDRES="$(WINDRES)"; export WINDRES; \
2083 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2084 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2085 fi; \
2086 echo Configuring in opcodes; \
2087 cd opcodes || exit 1; \
2088 case $(srcdir) in \
2089 \.) \
2090 srcdiroption="--srcdir=."; \
2091 libsrcdir=".";; \
2092 /* | [A-Za-z]:[\\/]*) \
2093 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
2094 libsrcdir="$$s/opcodes";; \
2095 *) \
2096 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
2097 libsrcdir="$$s/opcodes";; \
2098 esac; \
2099 $(SHELL) $${libsrcdir}/configure \
2100 $(HOST_CONFIGARGS) $${srcdiroption} \
2101 || exit 1
2103 .PHONY: all-opcodes maybe-all-opcodes
2104 maybe-all-opcodes:
2105 all-opcodes: configure-opcodes
2106 @r=`${PWD}`; export r; \
2107 s=`cd $(srcdir); ${PWD}`; export s; \
2108 $(SET_LIB_PATH) \
2109 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
2111 .PHONY: check-opcodes maybe-check-opcodes
2112 maybe-check-opcodes:
2114 check-opcodes:
2115 @r=`${PWD}`; export r; \
2116 s=`cd $(srcdir); ${PWD}`; export s; \
2117 $(SET_LIB_PATH) \
2118 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
2121 .PHONY: install-opcodes maybe-install-opcodes
2122 maybe-install-opcodes:
2124 install-opcodes: installdirs
2125 @r=`${PWD}`; export r; \
2126 s=`cd $(srcdir); ${PWD}`; export s; \
2127 $(SET_LIB_PATH) \
2128 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
2131 .PHONY: configure-binutils maybe-configure-binutils
2132 maybe-configure-binutils:
2133 configure-binutils:
2134 @test ! -f binutils/Makefile || exit 0; \
2135 [ -d binutils ] || mkdir binutils; \
2136 r=`${PWD}`; export r; \
2137 s=`cd $(srcdir); ${PWD}`; export s; \
2138 CC="$(CC)"; export CC; \
2139 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2140 CXX="$(CXX)"; export CXX; \
2141 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2142 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2143 AR="$(AR)"; export AR; \
2144 AS="$(AS)"; export AS; \
2145 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2146 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2147 LD="$(LD)"; export LD; \
2148 NM="$(NM)"; export NM; \
2149 RANLIB="$(RANLIB)"; export RANLIB; \
2150 WINDRES="$(WINDRES)"; export WINDRES; \
2151 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2152 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2153 fi; \
2154 echo Configuring in binutils; \
2155 cd binutils || exit 1; \
2156 case $(srcdir) in \
2157 \.) \
2158 srcdiroption="--srcdir=."; \
2159 libsrcdir=".";; \
2160 /* | [A-Za-z]:[\\/]*) \
2161 srcdiroption="--srcdir=$(srcdir)/binutils"; \
2162 libsrcdir="$$s/binutils";; \
2163 *) \
2164 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
2165 libsrcdir="$$s/binutils";; \
2166 esac; \
2167 $(SHELL) $${libsrcdir}/configure \
2168 $(HOST_CONFIGARGS) $${srcdiroption} \
2169 || exit 1
2171 .PHONY: all-binutils maybe-all-binutils
2172 maybe-all-binutils:
2173 all-binutils: configure-binutils
2174 @r=`${PWD}`; export r; \
2175 s=`cd $(srcdir); ${PWD}`; export s; \
2176 $(SET_LIB_PATH) \
2177 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
2179 .PHONY: check-binutils maybe-check-binutils
2180 maybe-check-binutils:
2182 check-binutils:
2183 @r=`${PWD}`; export r; \
2184 s=`cd $(srcdir); ${PWD}`; export s; \
2185 $(SET_LIB_PATH) \
2186 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
2189 .PHONY: install-binutils maybe-install-binutils
2190 maybe-install-binutils:
2192 install-binutils: installdirs
2193 @r=`${PWD}`; export r; \
2194 s=`cd $(srcdir); ${PWD}`; export s; \
2195 $(SET_LIB_PATH) \
2196 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
2199 .PHONY: configure-bison maybe-configure-bison
2200 maybe-configure-bison:
2201 configure-bison:
2202 @test ! -f bison/Makefile || exit 0; \
2203 [ -d bison ] || mkdir bison; \
2204 r=`${PWD}`; export r; \
2205 s=`cd $(srcdir); ${PWD}`; export s; \
2206 CC="$(CC)"; export CC; \
2207 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2208 CXX="$(CXX)"; export CXX; \
2209 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2210 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2211 AR="$(AR)"; export AR; \
2212 AS="$(AS)"; export AS; \
2213 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2214 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2215 LD="$(LD)"; export LD; \
2216 NM="$(NM)"; export NM; \
2217 RANLIB="$(RANLIB)"; export RANLIB; \
2218 WINDRES="$(WINDRES)"; export WINDRES; \
2219 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2220 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2221 fi; \
2222 echo Configuring in bison; \
2223 cd bison || exit 1; \
2224 case $(srcdir) in \
2225 \.) \
2226 srcdiroption="--srcdir=."; \
2227 libsrcdir=".";; \
2228 /* | [A-Za-z]:[\\/]*) \
2229 srcdiroption="--srcdir=$(srcdir)/bison"; \
2230 libsrcdir="$$s/bison";; \
2231 *) \
2232 srcdiroption="--srcdir=../$(srcdir)/bison"; \
2233 libsrcdir="$$s/bison";; \
2234 esac; \
2235 $(SHELL) $${libsrcdir}/configure \
2236 $(HOST_CONFIGARGS) $${srcdiroption} \
2237 || exit 1
2239 .PHONY: all-bison maybe-all-bison
2240 maybe-all-bison:
2241 all-bison: configure-bison
2242 @r=`${PWD}`; export r; \
2243 s=`cd $(srcdir); ${PWD}`; export s; \
2244 $(SET_LIB_PATH) \
2245 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
2247 .PHONY: check-bison maybe-check-bison
2248 maybe-check-bison:
2250 # This module is only tested in a native toolchain.
2251 check-bison:
2252 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2253 r=`${PWD}`; export r; \
2254 s=`cd $(srcdir); ${PWD}`; export s; \
2255 $(SET_LIB_PATH) \
2256 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
2260 .PHONY: install-bison maybe-install-bison
2261 maybe-install-bison:
2263 install-bison: installdirs
2264 @r=`${PWD}`; export r; \
2265 s=`cd $(srcdir); ${PWD}`; export s; \
2266 $(SET_LIB_PATH) \
2267 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
2270 .PHONY: configure-byacc maybe-configure-byacc
2271 maybe-configure-byacc:
2272 configure-byacc:
2273 @test ! -f byacc/Makefile || exit 0; \
2274 [ -d byacc ] || mkdir byacc; \
2275 r=`${PWD}`; export r; \
2276 s=`cd $(srcdir); ${PWD}`; export s; \
2277 CC="$(CC)"; export CC; \
2278 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2279 CXX="$(CXX)"; export CXX; \
2280 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2281 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2282 AR="$(AR)"; export AR; \
2283 AS="$(AS)"; export AS; \
2284 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2285 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2286 LD="$(LD)"; export LD; \
2287 NM="$(NM)"; export NM; \
2288 RANLIB="$(RANLIB)"; export RANLIB; \
2289 WINDRES="$(WINDRES)"; export WINDRES; \
2290 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2291 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2292 fi; \
2293 echo Configuring in byacc; \
2294 cd byacc || exit 1; \
2295 case $(srcdir) in \
2296 \.) \
2297 srcdiroption="--srcdir=."; \
2298 libsrcdir=".";; \
2299 /* | [A-Za-z]:[\\/]*) \
2300 srcdiroption="--srcdir=$(srcdir)/byacc"; \
2301 libsrcdir="$$s/byacc";; \
2302 *) \
2303 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
2304 libsrcdir="$$s/byacc";; \
2305 esac; \
2306 $(SHELL) $${libsrcdir}/configure \
2307 $(HOST_CONFIGARGS) $${srcdiroption} \
2308 || exit 1
2310 .PHONY: all-byacc maybe-all-byacc
2311 maybe-all-byacc:
2312 all-byacc: configure-byacc
2313 @r=`${PWD}`; export r; \
2314 s=`cd $(srcdir); ${PWD}`; export s; \
2315 $(SET_LIB_PATH) \
2316 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
2318 .PHONY: check-byacc maybe-check-byacc
2319 maybe-check-byacc:
2321 # This module is only tested in a native toolchain.
2322 check-byacc:
2323 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2324 r=`${PWD}`; export r; \
2325 s=`cd $(srcdir); ${PWD}`; export s; \
2326 $(SET_LIB_PATH) \
2327 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
2331 .PHONY: install-byacc maybe-install-byacc
2332 maybe-install-byacc:
2334 install-byacc: installdirs
2335 @r=`${PWD}`; export r; \
2336 s=`cd $(srcdir); ${PWD}`; export s; \
2337 $(SET_LIB_PATH) \
2338 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
2341 .PHONY: configure-bzip2 maybe-configure-bzip2
2342 maybe-configure-bzip2:
2343 configure-bzip2:
2344 @test ! -f bzip2/Makefile || exit 0; \
2345 [ -d bzip2 ] || mkdir bzip2; \
2346 r=`${PWD}`; export r; \
2347 s=`cd $(srcdir); ${PWD}`; export s; \
2348 CC="$(CC)"; export CC; \
2349 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2350 CXX="$(CXX)"; export CXX; \
2351 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2352 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2353 AR="$(AR)"; export AR; \
2354 AS="$(AS)"; export AS; \
2355 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2356 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2357 LD="$(LD)"; export LD; \
2358 NM="$(NM)"; export NM; \
2359 RANLIB="$(RANLIB)"; export RANLIB; \
2360 WINDRES="$(WINDRES)"; export WINDRES; \
2361 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2362 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2363 fi; \
2364 echo Configuring in bzip2; \
2365 cd bzip2 || exit 1; \
2366 case $(srcdir) in \
2367 \.) \
2368 srcdiroption="--srcdir=."; \
2369 libsrcdir=".";; \
2370 /* | [A-Za-z]:[\\/]*) \
2371 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
2372 libsrcdir="$$s/bzip2";; \
2373 *) \
2374 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
2375 libsrcdir="$$s/bzip2";; \
2376 esac; \
2377 $(SHELL) $${libsrcdir}/configure \
2378 $(HOST_CONFIGARGS) $${srcdiroption} \
2379 || exit 1
2381 .PHONY: all-bzip2 maybe-all-bzip2
2382 maybe-all-bzip2:
2383 all-bzip2: configure-bzip2
2384 @r=`${PWD}`; export r; \
2385 s=`cd $(srcdir); ${PWD}`; export s; \
2386 $(SET_LIB_PATH) \
2387 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
2389 .PHONY: check-bzip2 maybe-check-bzip2
2390 maybe-check-bzip2:
2392 check-bzip2:
2393 @r=`${PWD}`; export r; \
2394 s=`cd $(srcdir); ${PWD}`; export s; \
2395 $(SET_LIB_PATH) \
2396 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
2399 .PHONY: install-bzip2 maybe-install-bzip2
2400 maybe-install-bzip2:
2402 install-bzip2: installdirs
2403 @r=`${PWD}`; export r; \
2404 s=`cd $(srcdir); ${PWD}`; export s; \
2405 $(SET_LIB_PATH) \
2406 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
2409 .PHONY: configure-dejagnu maybe-configure-dejagnu
2410 maybe-configure-dejagnu:
2411 configure-dejagnu:
2412 @test ! -f dejagnu/Makefile || exit 0; \
2413 [ -d dejagnu ] || mkdir dejagnu; \
2414 r=`${PWD}`; export r; \
2415 s=`cd $(srcdir); ${PWD}`; export s; \
2416 CC="$(CC)"; export CC; \
2417 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2418 CXX="$(CXX)"; export CXX; \
2419 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2420 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2421 AR="$(AR)"; export AR; \
2422 AS="$(AS)"; export AS; \
2423 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2424 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2425 LD="$(LD)"; export LD; \
2426 NM="$(NM)"; export NM; \
2427 RANLIB="$(RANLIB)"; export RANLIB; \
2428 WINDRES="$(WINDRES)"; export WINDRES; \
2429 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2430 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2431 fi; \
2432 echo Configuring in dejagnu; \
2433 cd dejagnu || exit 1; \
2434 case $(srcdir) in \
2435 \.) \
2436 srcdiroption="--srcdir=."; \
2437 libsrcdir=".";; \
2438 /* | [A-Za-z]:[\\/]*) \
2439 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2440 libsrcdir="$$s/dejagnu";; \
2441 *) \
2442 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2443 libsrcdir="$$s/dejagnu";; \
2444 esac; \
2445 $(SHELL) $${libsrcdir}/configure \
2446 $(HOST_CONFIGARGS) $${srcdiroption} \
2447 || exit 1
2449 .PHONY: all-dejagnu maybe-all-dejagnu
2450 maybe-all-dejagnu:
2451 all-dejagnu: configure-dejagnu
2452 @r=`${PWD}`; export r; \
2453 s=`cd $(srcdir); ${PWD}`; export s; \
2454 $(SET_LIB_PATH) \
2455 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
2457 .PHONY: check-dejagnu maybe-check-dejagnu
2458 maybe-check-dejagnu:
2460 check-dejagnu:
2461 @r=`${PWD}`; export r; \
2462 s=`cd $(srcdir); ${PWD}`; export s; \
2463 $(SET_LIB_PATH) \
2464 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
2467 .PHONY: install-dejagnu maybe-install-dejagnu
2468 maybe-install-dejagnu:
2470 install-dejagnu: installdirs
2471 @r=`${PWD}`; export r; \
2472 s=`cd $(srcdir); ${PWD}`; export s; \
2473 $(SET_LIB_PATH) \
2474 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
2477 .PHONY: configure-diff maybe-configure-diff
2478 maybe-configure-diff:
2479 configure-diff:
2480 @test ! -f diff/Makefile || exit 0; \
2481 [ -d diff ] || mkdir diff; \
2482 r=`${PWD}`; export r; \
2483 s=`cd $(srcdir); ${PWD}`; export s; \
2484 CC="$(CC)"; export CC; \
2485 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2486 CXX="$(CXX)"; export CXX; \
2487 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2488 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2489 AR="$(AR)"; export AR; \
2490 AS="$(AS)"; export AS; \
2491 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2492 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2493 LD="$(LD)"; export LD; \
2494 NM="$(NM)"; export NM; \
2495 RANLIB="$(RANLIB)"; export RANLIB; \
2496 WINDRES="$(WINDRES)"; export WINDRES; \
2497 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2498 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2499 fi; \
2500 echo Configuring in diff; \
2501 cd diff || exit 1; \
2502 case $(srcdir) in \
2503 \.) \
2504 srcdiroption="--srcdir=."; \
2505 libsrcdir=".";; \
2506 /* | [A-Za-z]:[\\/]*) \
2507 srcdiroption="--srcdir=$(srcdir)/diff"; \
2508 libsrcdir="$$s/diff";; \
2509 *) \
2510 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2511 libsrcdir="$$s/diff";; \
2512 esac; \
2513 $(SHELL) $${libsrcdir}/configure \
2514 $(HOST_CONFIGARGS) $${srcdiroption} \
2515 || exit 1
2517 .PHONY: all-diff maybe-all-diff
2518 maybe-all-diff:
2519 all-diff: configure-diff
2520 @r=`${PWD}`; export r; \
2521 s=`cd $(srcdir); ${PWD}`; export s; \
2522 $(SET_LIB_PATH) \
2523 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
2525 .PHONY: check-diff maybe-check-diff
2526 maybe-check-diff:
2528 check-diff:
2529 @r=`${PWD}`; export r; \
2530 s=`cd $(srcdir); ${PWD}`; export s; \
2531 $(SET_LIB_PATH) \
2532 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2535 .PHONY: install-diff maybe-install-diff
2536 maybe-install-diff:
2538 install-diff: installdirs
2539 @r=`${PWD}`; export r; \
2540 s=`cd $(srcdir); ${PWD}`; export s; \
2541 $(SET_LIB_PATH) \
2542 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2545 .PHONY: configure-dosutils maybe-configure-dosutils
2546 maybe-configure-dosutils:
2547 configure-dosutils:
2548 @test ! -f dosutils/Makefile || exit 0; \
2549 [ -d dosutils ] || mkdir dosutils; \
2550 r=`${PWD}`; export r; \
2551 s=`cd $(srcdir); ${PWD}`; export s; \
2552 CC="$(CC)"; export CC; \
2553 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2554 CXX="$(CXX)"; export CXX; \
2555 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2556 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2557 AR="$(AR)"; export AR; \
2558 AS="$(AS)"; export AS; \
2559 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2560 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2561 LD="$(LD)"; export LD; \
2562 NM="$(NM)"; export NM; \
2563 RANLIB="$(RANLIB)"; export RANLIB; \
2564 WINDRES="$(WINDRES)"; export WINDRES; \
2565 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2566 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2567 fi; \
2568 echo Configuring in dosutils; \
2569 cd dosutils || exit 1; \
2570 case $(srcdir) in \
2571 \.) \
2572 srcdiroption="--srcdir=."; \
2573 libsrcdir=".";; \
2574 /* | [A-Za-z]:[\\/]*) \
2575 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2576 libsrcdir="$$s/dosutils";; \
2577 *) \
2578 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2579 libsrcdir="$$s/dosutils";; \
2580 esac; \
2581 $(SHELL) $${libsrcdir}/configure \
2582 $(HOST_CONFIGARGS) $${srcdiroption} \
2583 || exit 1
2585 .PHONY: all-dosutils maybe-all-dosutils
2586 maybe-all-dosutils:
2587 all-dosutils: configure-dosutils
2588 @r=`${PWD}`; export r; \
2589 s=`cd $(srcdir); ${PWD}`; export s; \
2590 $(SET_LIB_PATH) \
2591 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
2593 .PHONY: check-dosutils maybe-check-dosutils
2594 maybe-check-dosutils:
2596 check-dosutils:
2599 .PHONY: install-dosutils maybe-install-dosutils
2600 maybe-install-dosutils:
2602 install-dosutils: installdirs
2603 @r=`${PWD}`; export r; \
2604 s=`cd $(srcdir); ${PWD}`; export s; \
2605 $(SET_LIB_PATH) \
2606 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2609 .PHONY: configure-etc maybe-configure-etc
2610 maybe-configure-etc:
2611 configure-etc:
2612 @test ! -f etc/Makefile || exit 0; \
2613 [ -d etc ] || mkdir etc; \
2614 r=`${PWD}`; export r; \
2615 s=`cd $(srcdir); ${PWD}`; export s; \
2616 CC="$(CC)"; export CC; \
2617 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2618 CXX="$(CXX)"; export CXX; \
2619 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2620 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2621 AR="$(AR)"; export AR; \
2622 AS="$(AS)"; export AS; \
2623 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2624 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2625 LD="$(LD)"; export LD; \
2626 NM="$(NM)"; export NM; \
2627 RANLIB="$(RANLIB)"; export RANLIB; \
2628 WINDRES="$(WINDRES)"; export WINDRES; \
2629 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2630 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2631 fi; \
2632 echo Configuring in etc; \
2633 cd etc || exit 1; \
2634 case $(srcdir) in \
2635 \.) \
2636 srcdiroption="--srcdir=."; \
2637 libsrcdir=".";; \
2638 /* | [A-Za-z]:[\\/]*) \
2639 srcdiroption="--srcdir=$(srcdir)/etc"; \
2640 libsrcdir="$$s/etc";; \
2641 *) \
2642 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2643 libsrcdir="$$s/etc";; \
2644 esac; \
2645 $(SHELL) $${libsrcdir}/configure \
2646 $(HOST_CONFIGARGS) $${srcdiroption} \
2647 || exit 1
2649 .PHONY: all-etc maybe-all-etc
2650 maybe-all-etc:
2651 all-etc: configure-etc
2652 @r=`${PWD}`; export r; \
2653 s=`cd $(srcdir); ${PWD}`; export s; \
2654 $(SET_LIB_PATH) \
2655 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
2657 .PHONY: check-etc maybe-check-etc
2658 maybe-check-etc:
2660 check-etc:
2661 @r=`${PWD}`; export r; \
2662 s=`cd $(srcdir); ${PWD}`; export s; \
2663 $(SET_LIB_PATH) \
2664 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
2667 .PHONY: install-etc maybe-install-etc
2668 maybe-install-etc:
2670 install-etc: installdirs
2671 @r=`${PWD}`; export r; \
2672 s=`cd $(srcdir); ${PWD}`; export s; \
2673 $(SET_LIB_PATH) \
2674 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
2677 .PHONY: configure-fastjar maybe-configure-fastjar
2678 maybe-configure-fastjar:
2679 configure-fastjar:
2680 @test ! -f fastjar/Makefile || exit 0; \
2681 [ -d fastjar ] || mkdir fastjar; \
2682 r=`${PWD}`; export r; \
2683 s=`cd $(srcdir); ${PWD}`; export s; \
2684 CC="$(CC)"; export CC; \
2685 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2686 CXX="$(CXX)"; export CXX; \
2687 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2688 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2689 AR="$(AR)"; export AR; \
2690 AS="$(AS)"; export AS; \
2691 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2692 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2693 LD="$(LD)"; export LD; \
2694 NM="$(NM)"; export NM; \
2695 RANLIB="$(RANLIB)"; export RANLIB; \
2696 WINDRES="$(WINDRES)"; export WINDRES; \
2697 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2698 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2699 fi; \
2700 echo Configuring in fastjar; \
2701 cd fastjar || exit 1; \
2702 case $(srcdir) in \
2703 \.) \
2704 srcdiroption="--srcdir=."; \
2705 libsrcdir=".";; \
2706 /* | [A-Za-z]:[\\/]*) \
2707 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2708 libsrcdir="$$s/fastjar";; \
2709 *) \
2710 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2711 libsrcdir="$$s/fastjar";; \
2712 esac; \
2713 $(SHELL) $${libsrcdir}/configure \
2714 $(HOST_CONFIGARGS) $${srcdiroption} \
2715 || exit 1
2717 .PHONY: all-fastjar maybe-all-fastjar
2718 maybe-all-fastjar:
2719 all-fastjar: configure-fastjar
2720 @r=`${PWD}`; export r; \
2721 s=`cd $(srcdir); ${PWD}`; export s; \
2722 $(SET_LIB_PATH) \
2723 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
2725 .PHONY: check-fastjar maybe-check-fastjar
2726 maybe-check-fastjar:
2728 # This module is only tested in a native toolchain.
2729 check-fastjar:
2730 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2731 r=`${PWD}`; export r; \
2732 s=`cd $(srcdir); ${PWD}`; export s; \
2733 $(SET_LIB_PATH) \
2734 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
2738 .PHONY: install-fastjar maybe-install-fastjar
2739 maybe-install-fastjar:
2741 install-fastjar: installdirs
2742 @r=`${PWD}`; export r; \
2743 s=`cd $(srcdir); ${PWD}`; export s; \
2744 $(SET_LIB_PATH) \
2745 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2748 .PHONY: configure-fileutils maybe-configure-fileutils
2749 maybe-configure-fileutils:
2750 configure-fileutils:
2751 @test ! -f fileutils/Makefile || exit 0; \
2752 [ -d fileutils ] || mkdir fileutils; \
2753 r=`${PWD}`; export r; \
2754 s=`cd $(srcdir); ${PWD}`; export s; \
2755 CC="$(CC)"; export CC; \
2756 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2757 CXX="$(CXX)"; export CXX; \
2758 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2759 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2760 AR="$(AR)"; export AR; \
2761 AS="$(AS)"; export AS; \
2762 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2763 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2764 LD="$(LD)"; export LD; \
2765 NM="$(NM)"; export NM; \
2766 RANLIB="$(RANLIB)"; export RANLIB; \
2767 WINDRES="$(WINDRES)"; export WINDRES; \
2768 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2769 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2770 fi; \
2771 echo Configuring in fileutils; \
2772 cd fileutils || exit 1; \
2773 case $(srcdir) in \
2774 \.) \
2775 srcdiroption="--srcdir=."; \
2776 libsrcdir=".";; \
2777 /* | [A-Za-z]:[\\/]*) \
2778 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2779 libsrcdir="$$s/fileutils";; \
2780 *) \
2781 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2782 libsrcdir="$$s/fileutils";; \
2783 esac; \
2784 $(SHELL) $${libsrcdir}/configure \
2785 $(HOST_CONFIGARGS) $${srcdiroption} \
2786 || exit 1
2788 .PHONY: all-fileutils maybe-all-fileutils
2789 maybe-all-fileutils:
2790 all-fileutils: configure-fileutils
2791 @r=`${PWD}`; export r; \
2792 s=`cd $(srcdir); ${PWD}`; export s; \
2793 $(SET_LIB_PATH) \
2794 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
2796 .PHONY: check-fileutils maybe-check-fileutils
2797 maybe-check-fileutils:
2799 check-fileutils:
2800 @r=`${PWD}`; export r; \
2801 s=`cd $(srcdir); ${PWD}`; export s; \
2802 $(SET_LIB_PATH) \
2803 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2806 .PHONY: install-fileutils maybe-install-fileutils
2807 maybe-install-fileutils:
2809 install-fileutils: installdirs
2810 @r=`${PWD}`; export r; \
2811 s=`cd $(srcdir); ${PWD}`; export s; \
2812 $(SET_LIB_PATH) \
2813 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2816 .PHONY: configure-findutils maybe-configure-findutils
2817 maybe-configure-findutils:
2818 configure-findutils:
2819 @test ! -f findutils/Makefile || exit 0; \
2820 [ -d findutils ] || mkdir findutils; \
2821 r=`${PWD}`; export r; \
2822 s=`cd $(srcdir); ${PWD}`; export s; \
2823 CC="$(CC)"; export CC; \
2824 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2825 CXX="$(CXX)"; export CXX; \
2826 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2827 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2828 AR="$(AR)"; export AR; \
2829 AS="$(AS)"; export AS; \
2830 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2831 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2832 LD="$(LD)"; export LD; \
2833 NM="$(NM)"; export NM; \
2834 RANLIB="$(RANLIB)"; export RANLIB; \
2835 WINDRES="$(WINDRES)"; export WINDRES; \
2836 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2837 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2838 fi; \
2839 echo Configuring in findutils; \
2840 cd findutils || exit 1; \
2841 case $(srcdir) in \
2842 \.) \
2843 srcdiroption="--srcdir=."; \
2844 libsrcdir=".";; \
2845 /* | [A-Za-z]:[\\/]*) \
2846 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2847 libsrcdir="$$s/findutils";; \
2848 *) \
2849 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2850 libsrcdir="$$s/findutils";; \
2851 esac; \
2852 $(SHELL) $${libsrcdir}/configure \
2853 $(HOST_CONFIGARGS) $${srcdiroption} \
2854 || exit 1
2856 .PHONY: all-findutils maybe-all-findutils
2857 maybe-all-findutils:
2858 all-findutils: configure-findutils
2859 @r=`${PWD}`; export r; \
2860 s=`cd $(srcdir); ${PWD}`; export s; \
2861 $(SET_LIB_PATH) \
2862 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
2864 .PHONY: check-findutils maybe-check-findutils
2865 maybe-check-findutils:
2867 check-findutils:
2868 @r=`${PWD}`; export r; \
2869 s=`cd $(srcdir); ${PWD}`; export s; \
2870 $(SET_LIB_PATH) \
2871 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2874 .PHONY: install-findutils maybe-install-findutils
2875 maybe-install-findutils:
2877 install-findutils: installdirs
2878 @r=`${PWD}`; export r; \
2879 s=`cd $(srcdir); ${PWD}`; export s; \
2880 $(SET_LIB_PATH) \
2881 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
2884 .PHONY: configure-find maybe-configure-find
2885 maybe-configure-find:
2886 configure-find:
2887 @test ! -f find/Makefile || exit 0; \
2888 [ -d find ] || mkdir find; \
2889 r=`${PWD}`; export r; \
2890 s=`cd $(srcdir); ${PWD}`; export s; \
2891 CC="$(CC)"; export CC; \
2892 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2893 CXX="$(CXX)"; export CXX; \
2894 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2895 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2896 AR="$(AR)"; export AR; \
2897 AS="$(AS)"; export AS; \
2898 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2899 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2900 LD="$(LD)"; export LD; \
2901 NM="$(NM)"; export NM; \
2902 RANLIB="$(RANLIB)"; export RANLIB; \
2903 WINDRES="$(WINDRES)"; export WINDRES; \
2904 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2905 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2906 fi; \
2907 echo Configuring in find; \
2908 cd find || exit 1; \
2909 case $(srcdir) in \
2910 \.) \
2911 srcdiroption="--srcdir=."; \
2912 libsrcdir=".";; \
2913 /* | [A-Za-z]:[\\/]*) \
2914 srcdiroption="--srcdir=$(srcdir)/find"; \
2915 libsrcdir="$$s/find";; \
2916 *) \
2917 srcdiroption="--srcdir=../$(srcdir)/find"; \
2918 libsrcdir="$$s/find";; \
2919 esac; \
2920 $(SHELL) $${libsrcdir}/configure \
2921 $(HOST_CONFIGARGS) $${srcdiroption} \
2922 || exit 1
2924 .PHONY: all-find maybe-all-find
2925 maybe-all-find:
2926 all-find: configure-find
2927 @r=`${PWD}`; export r; \
2928 s=`cd $(srcdir); ${PWD}`; export s; \
2929 $(SET_LIB_PATH) \
2930 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
2932 .PHONY: check-find maybe-check-find
2933 maybe-check-find:
2935 check-find:
2936 @r=`${PWD}`; export r; \
2937 s=`cd $(srcdir); ${PWD}`; export s; \
2938 $(SET_LIB_PATH) \
2939 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2942 .PHONY: install-find maybe-install-find
2943 maybe-install-find:
2945 install-find: installdirs
2946 @r=`${PWD}`; export r; \
2947 s=`cd $(srcdir); ${PWD}`; export s; \
2948 $(SET_LIB_PATH) \
2949 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
2952 .PHONY: configure-flex maybe-configure-flex
2953 maybe-configure-flex:
2954 configure-flex:
2955 @test ! -f flex/Makefile || exit 0; \
2956 [ -d flex ] || mkdir flex; \
2957 r=`${PWD}`; export r; \
2958 s=`cd $(srcdir); ${PWD}`; export s; \
2959 CC="$(CC)"; export CC; \
2960 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2961 CXX="$(CXX)"; export CXX; \
2962 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2963 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2964 AR="$(AR)"; export AR; \
2965 AS="$(AS)"; export AS; \
2966 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2967 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2968 LD="$(LD)"; export LD; \
2969 NM="$(NM)"; export NM; \
2970 RANLIB="$(RANLIB)"; export RANLIB; \
2971 WINDRES="$(WINDRES)"; export WINDRES; \
2972 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2973 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2974 fi; \
2975 echo Configuring in flex; \
2976 cd flex || exit 1; \
2977 case $(srcdir) in \
2978 \.) \
2979 srcdiroption="--srcdir=."; \
2980 libsrcdir=".";; \
2981 /* | [A-Za-z]:[\\/]*) \
2982 srcdiroption="--srcdir=$(srcdir)/flex"; \
2983 libsrcdir="$$s/flex";; \
2984 *) \
2985 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2986 libsrcdir="$$s/flex";; \
2987 esac; \
2988 $(SHELL) $${libsrcdir}/configure \
2989 $(HOST_CONFIGARGS) $${srcdiroption} \
2990 || exit 1
2992 .PHONY: all-flex maybe-all-flex
2993 maybe-all-flex:
2994 all-flex: configure-flex
2995 @r=`${PWD}`; export r; \
2996 s=`cd $(srcdir); ${PWD}`; export s; \
2997 $(SET_LIB_PATH) \
2998 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
3000 .PHONY: check-flex maybe-check-flex
3001 maybe-check-flex:
3003 # This module is only tested in a native toolchain.
3004 check-flex:
3005 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
3006 r=`${PWD}`; export r; \
3007 s=`cd $(srcdir); ${PWD}`; export s; \
3008 $(SET_LIB_PATH) \
3009 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
3013 .PHONY: install-flex maybe-install-flex
3014 maybe-install-flex:
3016 install-flex: installdirs
3017 @r=`${PWD}`; export r; \
3018 s=`cd $(srcdir); ${PWD}`; export s; \
3019 $(SET_LIB_PATH) \
3020 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
3023 .PHONY: configure-gas maybe-configure-gas
3024 maybe-configure-gas:
3025 configure-gas:
3026 @test ! -f gas/Makefile || exit 0; \
3027 [ -d gas ] || mkdir gas; \
3028 r=`${PWD}`; export r; \
3029 s=`cd $(srcdir); ${PWD}`; export s; \
3030 CC="$(CC)"; export CC; \
3031 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3032 CXX="$(CXX)"; export CXX; \
3033 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3034 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3035 AR="$(AR)"; export AR; \
3036 AS="$(AS)"; export AS; \
3037 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3038 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3039 LD="$(LD)"; export LD; \
3040 NM="$(NM)"; export NM; \
3041 RANLIB="$(RANLIB)"; export RANLIB; \
3042 WINDRES="$(WINDRES)"; export WINDRES; \
3043 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3044 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3045 fi; \
3046 echo Configuring in gas; \
3047 cd gas || exit 1; \
3048 case $(srcdir) in \
3049 \.) \
3050 srcdiroption="--srcdir=."; \
3051 libsrcdir=".";; \
3052 /* | [A-Za-z]:[\\/]*) \
3053 srcdiroption="--srcdir=$(srcdir)/gas"; \
3054 libsrcdir="$$s/gas";; \
3055 *) \
3056 srcdiroption="--srcdir=../$(srcdir)/gas"; \
3057 libsrcdir="$$s/gas";; \
3058 esac; \
3059 $(SHELL) $${libsrcdir}/configure \
3060 $(HOST_CONFIGARGS) $${srcdiroption} \
3061 || exit 1
3063 .PHONY: all-gas maybe-all-gas
3064 maybe-all-gas:
3065 all-gas: configure-gas
3066 @r=`${PWD}`; export r; \
3067 s=`cd $(srcdir); ${PWD}`; export s; \
3068 $(SET_LIB_PATH) \
3069 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
3071 .PHONY: check-gas maybe-check-gas
3072 maybe-check-gas:
3074 check-gas:
3075 @r=`${PWD}`; export r; \
3076 s=`cd $(srcdir); ${PWD}`; export s; \
3077 $(SET_LIB_PATH) \
3078 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
3081 .PHONY: install-gas maybe-install-gas
3082 maybe-install-gas:
3084 install-gas: installdirs
3085 @r=`${PWD}`; export r; \
3086 s=`cd $(srcdir); ${PWD}`; export s; \
3087 $(SET_LIB_PATH) \
3088 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
3091 .PHONY: configure-gawk maybe-configure-gawk
3092 maybe-configure-gawk:
3093 configure-gawk:
3094 @test ! -f gawk/Makefile || exit 0; \
3095 [ -d gawk ] || mkdir gawk; \
3096 r=`${PWD}`; export r; \
3097 s=`cd $(srcdir); ${PWD}`; export s; \
3098 CC="$(CC)"; export CC; \
3099 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3100 CXX="$(CXX)"; export CXX; \
3101 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3102 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3103 AR="$(AR)"; export AR; \
3104 AS="$(AS)"; export AS; \
3105 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3106 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3107 LD="$(LD)"; export LD; \
3108 NM="$(NM)"; export NM; \
3109 RANLIB="$(RANLIB)"; export RANLIB; \
3110 WINDRES="$(WINDRES)"; export WINDRES; \
3111 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3112 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3113 fi; \
3114 echo Configuring in gawk; \
3115 cd gawk || exit 1; \
3116 case $(srcdir) in \
3117 \.) \
3118 srcdiroption="--srcdir=."; \
3119 libsrcdir=".";; \
3120 /* | [A-Za-z]:[\\/]*) \
3121 srcdiroption="--srcdir=$(srcdir)/gawk"; \
3122 libsrcdir="$$s/gawk";; \
3123 *) \
3124 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
3125 libsrcdir="$$s/gawk";; \
3126 esac; \
3127 $(SHELL) $${libsrcdir}/configure \
3128 $(HOST_CONFIGARGS) $${srcdiroption} \
3129 || exit 1
3131 .PHONY: all-gawk maybe-all-gawk
3132 maybe-all-gawk:
3133 all-gawk: configure-gawk
3134 @r=`${PWD}`; export r; \
3135 s=`cd $(srcdir); ${PWD}`; export s; \
3136 $(SET_LIB_PATH) \
3137 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
3139 .PHONY: check-gawk maybe-check-gawk
3140 maybe-check-gawk:
3142 check-gawk:
3143 @r=`${PWD}`; export r; \
3144 s=`cd $(srcdir); ${PWD}`; export s; \
3145 $(SET_LIB_PATH) \
3146 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
3149 .PHONY: install-gawk maybe-install-gawk
3150 maybe-install-gawk:
3152 install-gawk: installdirs
3153 @r=`${PWD}`; export r; \
3154 s=`cd $(srcdir); ${PWD}`; export s; \
3155 $(SET_LIB_PATH) \
3156 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
3159 .PHONY: configure-gettext maybe-configure-gettext
3160 maybe-configure-gettext:
3161 configure-gettext:
3162 @test ! -f gettext/Makefile || exit 0; \
3163 [ -d gettext ] || mkdir gettext; \
3164 r=`${PWD}`; export r; \
3165 s=`cd $(srcdir); ${PWD}`; export s; \
3166 CC="$(CC)"; export CC; \
3167 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3168 CXX="$(CXX)"; export CXX; \
3169 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3170 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3171 AR="$(AR)"; export AR; \
3172 AS="$(AS)"; export AS; \
3173 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3174 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3175 LD="$(LD)"; export LD; \
3176 NM="$(NM)"; export NM; \
3177 RANLIB="$(RANLIB)"; export RANLIB; \
3178 WINDRES="$(WINDRES)"; export WINDRES; \
3179 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3180 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3181 fi; \
3182 echo Configuring in gettext; \
3183 cd gettext || exit 1; \
3184 case $(srcdir) in \
3185 \.) \
3186 srcdiroption="--srcdir=."; \
3187 libsrcdir=".";; \
3188 /* | [A-Za-z]:[\\/]*) \
3189 srcdiroption="--srcdir=$(srcdir)/gettext"; \
3190 libsrcdir="$$s/gettext";; \
3191 *) \
3192 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
3193 libsrcdir="$$s/gettext";; \
3194 esac; \
3195 $(SHELL) $${libsrcdir}/configure \
3196 $(HOST_CONFIGARGS) $${srcdiroption} \
3197 || exit 1
3199 .PHONY: all-gettext maybe-all-gettext
3200 maybe-all-gettext:
3201 all-gettext: configure-gettext
3202 @r=`${PWD}`; export r; \
3203 s=`cd $(srcdir); ${PWD}`; export s; \
3204 $(SET_LIB_PATH) \
3205 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
3207 .PHONY: check-gettext maybe-check-gettext
3208 maybe-check-gettext:
3210 check-gettext:
3211 @r=`${PWD}`; export r; \
3212 s=`cd $(srcdir); ${PWD}`; export s; \
3213 $(SET_LIB_PATH) \
3214 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
3217 .PHONY: install-gettext maybe-install-gettext
3218 maybe-install-gettext:
3220 install-gettext: installdirs
3221 @r=`${PWD}`; export r; \
3222 s=`cd $(srcdir); ${PWD}`; export s; \
3223 $(SET_LIB_PATH) \
3224 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
3227 .PHONY: configure-gnuserv maybe-configure-gnuserv
3228 maybe-configure-gnuserv:
3229 configure-gnuserv:
3230 @test ! -f gnuserv/Makefile || exit 0; \
3231 [ -d gnuserv ] || mkdir gnuserv; \
3232 r=`${PWD}`; export r; \
3233 s=`cd $(srcdir); ${PWD}`; export s; \
3234 CC="$(CC)"; export CC; \
3235 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3236 CXX="$(CXX)"; export CXX; \
3237 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3238 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3239 AR="$(AR)"; export AR; \
3240 AS="$(AS)"; export AS; \
3241 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3242 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3243 LD="$(LD)"; export LD; \
3244 NM="$(NM)"; export NM; \
3245 RANLIB="$(RANLIB)"; export RANLIB; \
3246 WINDRES="$(WINDRES)"; export WINDRES; \
3247 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3248 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3249 fi; \
3250 echo Configuring in gnuserv; \
3251 cd gnuserv || exit 1; \
3252 case $(srcdir) in \
3253 \.) \
3254 srcdiroption="--srcdir=."; \
3255 libsrcdir=".";; \
3256 /* | [A-Za-z]:[\\/]*) \
3257 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
3258 libsrcdir="$$s/gnuserv";; \
3259 *) \
3260 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
3261 libsrcdir="$$s/gnuserv";; \
3262 esac; \
3263 $(SHELL) $${libsrcdir}/configure \
3264 $(HOST_CONFIGARGS) $${srcdiroption} \
3265 || exit 1
3267 .PHONY: all-gnuserv maybe-all-gnuserv
3268 maybe-all-gnuserv:
3269 all-gnuserv: configure-gnuserv
3270 @r=`${PWD}`; export r; \
3271 s=`cd $(srcdir); ${PWD}`; export s; \
3272 $(SET_LIB_PATH) \
3273 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
3275 .PHONY: check-gnuserv maybe-check-gnuserv
3276 maybe-check-gnuserv:
3278 check-gnuserv:
3279 @r=`${PWD}`; export r; \
3280 s=`cd $(srcdir); ${PWD}`; export s; \
3281 $(SET_LIB_PATH) \
3282 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
3285 .PHONY: install-gnuserv maybe-install-gnuserv
3286 maybe-install-gnuserv:
3288 install-gnuserv: installdirs
3289 @r=`${PWD}`; export r; \
3290 s=`cd $(srcdir); ${PWD}`; export s; \
3291 $(SET_LIB_PATH) \
3292 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
3295 .PHONY: configure-gprof maybe-configure-gprof
3296 maybe-configure-gprof:
3297 configure-gprof:
3298 @test ! -f gprof/Makefile || exit 0; \
3299 [ -d gprof ] || mkdir gprof; \
3300 r=`${PWD}`; export r; \
3301 s=`cd $(srcdir); ${PWD}`; export s; \
3302 CC="$(CC)"; export CC; \
3303 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3304 CXX="$(CXX)"; export CXX; \
3305 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3306 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3307 AR="$(AR)"; export AR; \
3308 AS="$(AS)"; export AS; \
3309 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3310 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3311 LD="$(LD)"; export LD; \
3312 NM="$(NM)"; export NM; \
3313 RANLIB="$(RANLIB)"; export RANLIB; \
3314 WINDRES="$(WINDRES)"; export WINDRES; \
3315 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3316 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3317 fi; \
3318 echo Configuring in gprof; \
3319 cd gprof || exit 1; \
3320 case $(srcdir) in \
3321 \.) \
3322 srcdiroption="--srcdir=."; \
3323 libsrcdir=".";; \
3324 /* | [A-Za-z]:[\\/]*) \
3325 srcdiroption="--srcdir=$(srcdir)/gprof"; \
3326 libsrcdir="$$s/gprof";; \
3327 *) \
3328 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
3329 libsrcdir="$$s/gprof";; \
3330 esac; \
3331 $(SHELL) $${libsrcdir}/configure \
3332 $(HOST_CONFIGARGS) $${srcdiroption} \
3333 || exit 1
3335 .PHONY: all-gprof maybe-all-gprof
3336 maybe-all-gprof:
3337 all-gprof: configure-gprof
3338 @r=`${PWD}`; export r; \
3339 s=`cd $(srcdir); ${PWD}`; export s; \
3340 $(SET_LIB_PATH) \
3341 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
3343 .PHONY: check-gprof maybe-check-gprof
3344 maybe-check-gprof:
3346 check-gprof:
3347 @r=`${PWD}`; export r; \
3348 s=`cd $(srcdir); ${PWD}`; export s; \
3349 $(SET_LIB_PATH) \
3350 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
3353 .PHONY: install-gprof maybe-install-gprof
3354 maybe-install-gprof:
3356 install-gprof: installdirs
3357 @r=`${PWD}`; export r; \
3358 s=`cd $(srcdir); ${PWD}`; export s; \
3359 $(SET_LIB_PATH) \
3360 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
3363 .PHONY: configure-gzip maybe-configure-gzip
3364 maybe-configure-gzip:
3365 configure-gzip:
3366 @test ! -f gzip/Makefile || exit 0; \
3367 [ -d gzip ] || mkdir gzip; \
3368 r=`${PWD}`; export r; \
3369 s=`cd $(srcdir); ${PWD}`; export s; \
3370 CC="$(CC)"; export CC; \
3371 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3372 CXX="$(CXX)"; export CXX; \
3373 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3374 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3375 AR="$(AR)"; export AR; \
3376 AS="$(AS)"; export AS; \
3377 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3378 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3379 LD="$(LD)"; export LD; \
3380 NM="$(NM)"; export NM; \
3381 RANLIB="$(RANLIB)"; export RANLIB; \
3382 WINDRES="$(WINDRES)"; export WINDRES; \
3383 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3384 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3385 fi; \
3386 echo Configuring in gzip; \
3387 cd gzip || exit 1; \
3388 case $(srcdir) in \
3389 \.) \
3390 srcdiroption="--srcdir=."; \
3391 libsrcdir=".";; \
3392 /* | [A-Za-z]:[\\/]*) \
3393 srcdiroption="--srcdir=$(srcdir)/gzip"; \
3394 libsrcdir="$$s/gzip";; \
3395 *) \
3396 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
3397 libsrcdir="$$s/gzip";; \
3398 esac; \
3399 $(SHELL) $${libsrcdir}/configure \
3400 $(HOST_CONFIGARGS) $${srcdiroption} \
3401 || exit 1
3403 .PHONY: all-gzip maybe-all-gzip
3404 maybe-all-gzip:
3405 all-gzip: configure-gzip
3406 @r=`${PWD}`; export r; \
3407 s=`cd $(srcdir); ${PWD}`; export s; \
3408 $(SET_LIB_PATH) \
3409 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
3411 .PHONY: check-gzip maybe-check-gzip
3412 maybe-check-gzip:
3414 check-gzip:
3415 @r=`${PWD}`; export r; \
3416 s=`cd $(srcdir); ${PWD}`; export s; \
3417 $(SET_LIB_PATH) \
3418 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
3421 .PHONY: install-gzip maybe-install-gzip
3422 maybe-install-gzip:
3424 install-gzip: installdirs
3425 @r=`${PWD}`; export r; \
3426 s=`cd $(srcdir); ${PWD}`; export s; \
3427 $(SET_LIB_PATH) \
3428 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
3431 .PHONY: configure-hello maybe-configure-hello
3432 maybe-configure-hello:
3433 configure-hello:
3434 @test ! -f hello/Makefile || exit 0; \
3435 [ -d hello ] || mkdir hello; \
3436 r=`${PWD}`; export r; \
3437 s=`cd $(srcdir); ${PWD}`; export s; \
3438 CC="$(CC)"; export CC; \
3439 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3440 CXX="$(CXX)"; export CXX; \
3441 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3442 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3443 AR="$(AR)"; export AR; \
3444 AS="$(AS)"; export AS; \
3445 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3446 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3447 LD="$(LD)"; export LD; \
3448 NM="$(NM)"; export NM; \
3449 RANLIB="$(RANLIB)"; export RANLIB; \
3450 WINDRES="$(WINDRES)"; export WINDRES; \
3451 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3452 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3453 fi; \
3454 echo Configuring in hello; \
3455 cd hello || exit 1; \
3456 case $(srcdir) in \
3457 \.) \
3458 srcdiroption="--srcdir=."; \
3459 libsrcdir=".";; \
3460 /* | [A-Za-z]:[\\/]*) \
3461 srcdiroption="--srcdir=$(srcdir)/hello"; \
3462 libsrcdir="$$s/hello";; \
3463 *) \
3464 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3465 libsrcdir="$$s/hello";; \
3466 esac; \
3467 $(SHELL) $${libsrcdir}/configure \
3468 $(HOST_CONFIGARGS) $${srcdiroption} \
3469 || exit 1
3471 .PHONY: all-hello maybe-all-hello
3472 maybe-all-hello:
3473 all-hello: configure-hello
3474 @r=`${PWD}`; export r; \
3475 s=`cd $(srcdir); ${PWD}`; export s; \
3476 $(SET_LIB_PATH) \
3477 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
3479 .PHONY: check-hello maybe-check-hello
3480 maybe-check-hello:
3482 check-hello:
3483 @r=`${PWD}`; export r; \
3484 s=`cd $(srcdir); ${PWD}`; export s; \
3485 $(SET_LIB_PATH) \
3486 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
3489 .PHONY: install-hello maybe-install-hello
3490 maybe-install-hello:
3492 install-hello: installdirs
3493 @r=`${PWD}`; export r; \
3494 s=`cd $(srcdir); ${PWD}`; export s; \
3495 $(SET_LIB_PATH) \
3496 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
3499 .PHONY: configure-indent maybe-configure-indent
3500 maybe-configure-indent:
3501 configure-indent:
3502 @test ! -f indent/Makefile || exit 0; \
3503 [ -d indent ] || mkdir indent; \
3504 r=`${PWD}`; export r; \
3505 s=`cd $(srcdir); ${PWD}`; export s; \
3506 CC="$(CC)"; export CC; \
3507 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3508 CXX="$(CXX)"; export CXX; \
3509 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3510 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3511 AR="$(AR)"; export AR; \
3512 AS="$(AS)"; export AS; \
3513 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3514 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3515 LD="$(LD)"; export LD; \
3516 NM="$(NM)"; export NM; \
3517 RANLIB="$(RANLIB)"; export RANLIB; \
3518 WINDRES="$(WINDRES)"; export WINDRES; \
3519 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3520 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3521 fi; \
3522 echo Configuring in indent; \
3523 cd indent || exit 1; \
3524 case $(srcdir) in \
3525 \.) \
3526 srcdiroption="--srcdir=."; \
3527 libsrcdir=".";; \
3528 /* | [A-Za-z]:[\\/]*) \
3529 srcdiroption="--srcdir=$(srcdir)/indent"; \
3530 libsrcdir="$$s/indent";; \
3531 *) \
3532 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3533 libsrcdir="$$s/indent";; \
3534 esac; \
3535 $(SHELL) $${libsrcdir}/configure \
3536 $(HOST_CONFIGARGS) $${srcdiroption} \
3537 || exit 1
3539 .PHONY: all-indent maybe-all-indent
3540 maybe-all-indent:
3541 all-indent: configure-indent
3542 @r=`${PWD}`; export r; \
3543 s=`cd $(srcdir); ${PWD}`; export s; \
3544 $(SET_LIB_PATH) \
3545 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
3547 .PHONY: check-indent maybe-check-indent
3548 maybe-check-indent:
3550 check-indent:
3551 @r=`${PWD}`; export r; \
3552 s=`cd $(srcdir); ${PWD}`; export s; \
3553 $(SET_LIB_PATH) \
3554 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
3557 .PHONY: install-indent maybe-install-indent
3558 maybe-install-indent:
3560 install-indent: installdirs
3561 @r=`${PWD}`; export r; \
3562 s=`cd $(srcdir); ${PWD}`; export s; \
3563 $(SET_LIB_PATH) \
3564 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
3567 .PHONY: configure-intl maybe-configure-intl
3568 maybe-configure-intl:
3569 configure-intl:
3570 @test ! -f intl/Makefile || exit 0; \
3571 [ -d intl ] || mkdir intl; \
3572 r=`${PWD}`; export r; \
3573 s=`cd $(srcdir); ${PWD}`; export s; \
3574 CC="$(CC)"; export CC; \
3575 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3576 CXX="$(CXX)"; export CXX; \
3577 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3578 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3579 AR="$(AR)"; export AR; \
3580 AS="$(AS)"; export AS; \
3581 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3582 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3583 LD="$(LD)"; export LD; \
3584 NM="$(NM)"; export NM; \
3585 RANLIB="$(RANLIB)"; export RANLIB; \
3586 WINDRES="$(WINDRES)"; export WINDRES; \
3587 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3588 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3589 fi; \
3590 echo Configuring in intl; \
3591 cd intl || exit 1; \
3592 case $(srcdir) in \
3593 \.) \
3594 srcdiroption="--srcdir=."; \
3595 libsrcdir=".";; \
3596 /* | [A-Za-z]:[\\/]*) \
3597 srcdiroption="--srcdir=$(srcdir)/intl"; \
3598 libsrcdir="$$s/intl";; \
3599 *) \
3600 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3601 libsrcdir="$$s/intl";; \
3602 esac; \
3603 $(SHELL) $${libsrcdir}/configure \
3604 $(HOST_CONFIGARGS) $${srcdiroption} \
3605 || exit 1
3607 .PHONY: all-intl maybe-all-intl
3608 maybe-all-intl:
3609 all-intl: configure-intl
3610 @r=`${PWD}`; export r; \
3611 s=`cd $(srcdir); ${PWD}`; export s; \
3612 $(SET_LIB_PATH) \
3613 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
3615 .PHONY: check-intl maybe-check-intl
3616 maybe-check-intl:
3618 check-intl:
3619 @r=`${PWD}`; export r; \
3620 s=`cd $(srcdir); ${PWD}`; export s; \
3621 $(SET_LIB_PATH) \
3622 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
3625 .PHONY: install-intl maybe-install-intl
3626 maybe-install-intl:
3628 install-intl: installdirs
3629 @r=`${PWD}`; export r; \
3630 s=`cd $(srcdir); ${PWD}`; export s; \
3631 $(SET_LIB_PATH) \
3632 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
3635 .PHONY: configure-tcl maybe-configure-tcl
3636 maybe-configure-tcl:
3637 configure-tcl:
3638 @test ! -f tcl/Makefile || exit 0; \
3639 [ -d tcl ] || mkdir tcl; \
3640 r=`${PWD}`; export r; \
3641 s=`cd $(srcdir); ${PWD}`; export s; \
3642 CC="$(CC)"; export CC; \
3643 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3644 CXX="$(CXX)"; export CXX; \
3645 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3646 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3647 AR="$(AR)"; export AR; \
3648 AS="$(AS)"; export AS; \
3649 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3650 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3651 LD="$(LD)"; export LD; \
3652 NM="$(NM)"; export NM; \
3653 RANLIB="$(RANLIB)"; export RANLIB; \
3654 WINDRES="$(WINDRES)"; export WINDRES; \
3655 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3656 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3657 fi; \
3658 echo Configuring in tcl; \
3659 cd tcl || exit 1; \
3660 case $(srcdir) in \
3661 \.) \
3662 srcdiroption="--srcdir=."; \
3663 libsrcdir=".";; \
3664 /* | [A-Za-z]:[\\/]*) \
3665 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3666 libsrcdir="$$s/tcl";; \
3667 *) \
3668 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3669 libsrcdir="$$s/tcl";; \
3670 esac; \
3671 $(SHELL) $${libsrcdir}/configure \
3672 $(HOST_CONFIGARGS) $${srcdiroption} \
3673 || exit 1
3675 .PHONY: all-tcl maybe-all-tcl
3676 maybe-all-tcl:
3677 all-tcl: configure-tcl
3678 @r=`${PWD}`; export r; \
3679 s=`cd $(srcdir); ${PWD}`; export s; \
3680 $(SET_LIB_PATH) \
3681 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
3683 .PHONY: check-tcl maybe-check-tcl
3684 maybe-check-tcl:
3686 check-tcl:
3687 @r=`${PWD}`; export r; \
3688 s=`cd $(srcdir); ${PWD}`; export s; \
3689 $(SET_LIB_PATH) \
3690 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
3693 .PHONY: install-tcl maybe-install-tcl
3694 maybe-install-tcl:
3696 install-tcl: installdirs
3697 @r=`${PWD}`; export r; \
3698 s=`cd $(srcdir); ${PWD}`; export s; \
3699 $(SET_LIB_PATH) \
3700 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
3703 .PHONY: configure-itcl maybe-configure-itcl
3704 maybe-configure-itcl:
3705 configure-itcl:
3706 @test ! -f itcl/Makefile || exit 0; \
3707 [ -d itcl ] || mkdir itcl; \
3708 r=`${PWD}`; export r; \
3709 s=`cd $(srcdir); ${PWD}`; export s; \
3710 CC="$(CC)"; export CC; \
3711 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3712 CXX="$(CXX)"; export CXX; \
3713 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3714 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3715 AR="$(AR)"; export AR; \
3716 AS="$(AS)"; export AS; \
3717 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3718 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3719 LD="$(LD)"; export LD; \
3720 NM="$(NM)"; export NM; \
3721 RANLIB="$(RANLIB)"; export RANLIB; \
3722 WINDRES="$(WINDRES)"; export WINDRES; \
3723 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3724 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3725 fi; \
3726 echo Configuring in itcl; \
3727 cd itcl || exit 1; \
3728 case $(srcdir) in \
3729 \.) \
3730 srcdiroption="--srcdir=."; \
3731 libsrcdir=".";; \
3732 /* | [A-Za-z]:[\\/]*) \
3733 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3734 libsrcdir="$$s/itcl";; \
3735 *) \
3736 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3737 libsrcdir="$$s/itcl";; \
3738 esac; \
3739 $(SHELL) $${libsrcdir}/configure \
3740 $(HOST_CONFIGARGS) $${srcdiroption} \
3741 || exit 1
3743 .PHONY: all-itcl maybe-all-itcl
3744 maybe-all-itcl:
3745 all-itcl: configure-itcl
3746 @r=`${PWD}`; export r; \
3747 s=`cd $(srcdir); ${PWD}`; export s; \
3748 $(SET_LIB_PATH) \
3749 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
3751 .PHONY: check-itcl maybe-check-itcl
3752 maybe-check-itcl:
3754 check-itcl:
3755 @r=`${PWD}`; export r; \
3756 s=`cd $(srcdir); ${PWD}`; export s; \
3757 $(SET_LIB_PATH) \
3758 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
3761 .PHONY: install-itcl maybe-install-itcl
3762 maybe-install-itcl:
3764 install-itcl: installdirs
3765 @r=`${PWD}`; export r; \
3766 s=`cd $(srcdir); ${PWD}`; export s; \
3767 $(SET_LIB_PATH) \
3768 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
3771 .PHONY: configure-ld maybe-configure-ld
3772 maybe-configure-ld:
3773 configure-ld:
3774 @test ! -f ld/Makefile || exit 0; \
3775 [ -d ld ] || mkdir ld; \
3776 r=`${PWD}`; export r; \
3777 s=`cd $(srcdir); ${PWD}`; export s; \
3778 CC="$(CC)"; export CC; \
3779 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3780 CXX="$(CXX)"; export CXX; \
3781 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3782 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3783 AR="$(AR)"; export AR; \
3784 AS="$(AS)"; export AS; \
3785 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3786 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3787 LD="$(LD)"; export LD; \
3788 NM="$(NM)"; export NM; \
3789 RANLIB="$(RANLIB)"; export RANLIB; \
3790 WINDRES="$(WINDRES)"; export WINDRES; \
3791 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3792 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3793 fi; \
3794 echo Configuring in ld; \
3795 cd ld || exit 1; \
3796 case $(srcdir) in \
3797 \.) \
3798 srcdiroption="--srcdir=."; \
3799 libsrcdir=".";; \
3800 /* | [A-Za-z]:[\\/]*) \
3801 srcdiroption="--srcdir=$(srcdir)/ld"; \
3802 libsrcdir="$$s/ld";; \
3803 *) \
3804 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3805 libsrcdir="$$s/ld";; \
3806 esac; \
3807 $(SHELL) $${libsrcdir}/configure \
3808 $(HOST_CONFIGARGS) $${srcdiroption} \
3809 || exit 1
3811 .PHONY: all-ld maybe-all-ld
3812 maybe-all-ld:
3813 all-ld: configure-ld
3814 @r=`${PWD}`; export r; \
3815 s=`cd $(srcdir); ${PWD}`; export s; \
3816 $(SET_LIB_PATH) \
3817 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
3819 .PHONY: check-ld maybe-check-ld
3820 maybe-check-ld:
3822 check-ld:
3823 @r=`${PWD}`; export r; \
3824 s=`cd $(srcdir); ${PWD}`; export s; \
3825 $(SET_LIB_PATH) \
3826 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
3829 .PHONY: install-ld maybe-install-ld
3830 maybe-install-ld:
3832 install-ld: installdirs
3833 @r=`${PWD}`; export r; \
3834 s=`cd $(srcdir); ${PWD}`; export s; \
3835 $(SET_LIB_PATH) \
3836 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
3839 .PHONY: configure-libgui maybe-configure-libgui
3840 maybe-configure-libgui:
3841 configure-libgui:
3842 @test ! -f libgui/Makefile || exit 0; \
3843 [ -d libgui ] || mkdir libgui; \
3844 r=`${PWD}`; export r; \
3845 s=`cd $(srcdir); ${PWD}`; export s; \
3846 CC="$(CC)"; export CC; \
3847 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3848 CXX="$(CXX)"; export CXX; \
3849 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3850 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3851 AR="$(AR)"; export AR; \
3852 AS="$(AS)"; export AS; \
3853 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3854 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3855 LD="$(LD)"; export LD; \
3856 NM="$(NM)"; export NM; \
3857 RANLIB="$(RANLIB)"; export RANLIB; \
3858 WINDRES="$(WINDRES)"; export WINDRES; \
3859 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3860 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3861 fi; \
3862 echo Configuring in libgui; \
3863 cd libgui || exit 1; \
3864 case $(srcdir) in \
3865 \.) \
3866 srcdiroption="--srcdir=."; \
3867 libsrcdir=".";; \
3868 /* | [A-Za-z]:[\\/]*) \
3869 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3870 libsrcdir="$$s/libgui";; \
3871 *) \
3872 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3873 libsrcdir="$$s/libgui";; \
3874 esac; \
3875 $(SHELL) $${libsrcdir}/configure \
3876 $(HOST_CONFIGARGS) $${srcdiroption} \
3877 || exit 1
3879 .PHONY: all-libgui maybe-all-libgui
3880 maybe-all-libgui:
3881 all-libgui: configure-libgui
3882 @r=`${PWD}`; export r; \
3883 s=`cd $(srcdir); ${PWD}`; export s; \
3884 $(SET_LIB_PATH) \
3885 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
3887 .PHONY: check-libgui maybe-check-libgui
3888 maybe-check-libgui:
3890 check-libgui:
3891 @r=`${PWD}`; export r; \
3892 s=`cd $(srcdir); ${PWD}`; export s; \
3893 $(SET_LIB_PATH) \
3894 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
3897 .PHONY: install-libgui maybe-install-libgui
3898 maybe-install-libgui:
3900 install-libgui: installdirs
3901 @r=`${PWD}`; export r; \
3902 s=`cd $(srcdir); ${PWD}`; export s; \
3903 $(SET_LIB_PATH) \
3904 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
3907 .PHONY: configure-libiberty maybe-configure-libiberty
3908 maybe-configure-libiberty:
3909 configure-libiberty:
3910 @test ! -f libiberty/Makefile || exit 0; \
3911 [ -d libiberty ] || mkdir libiberty; \
3912 r=`${PWD}`; export r; \
3913 s=`cd $(srcdir); ${PWD}`; export s; \
3914 CC="$(CC)"; export CC; \
3915 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3916 CXX="$(CXX)"; export CXX; \
3917 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3918 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3919 AR="$(AR)"; export AR; \
3920 AS="$(AS)"; export AS; \
3921 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3922 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3923 LD="$(LD)"; export LD; \
3924 NM="$(NM)"; export NM; \
3925 RANLIB="$(RANLIB)"; export RANLIB; \
3926 WINDRES="$(WINDRES)"; export WINDRES; \
3927 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3928 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3929 fi; \
3930 echo Configuring in libiberty; \
3931 cd libiberty || exit 1; \
3932 case $(srcdir) in \
3933 \.) \
3934 srcdiroption="--srcdir=."; \
3935 libsrcdir=".";; \
3936 /* | [A-Za-z]:[\\/]*) \
3937 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3938 libsrcdir="$$s/libiberty";; \
3939 *) \
3940 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3941 libsrcdir="$$s/libiberty";; \
3942 esac; \
3943 $(SHELL) $${libsrcdir}/configure \
3944 $(HOST_CONFIGARGS) $${srcdiroption} \
3945 || exit 1
3947 .PHONY: all-libiberty maybe-all-libiberty
3948 maybe-all-libiberty:
3949 all-libiberty: configure-libiberty
3950 @r=`${PWD}`; export r; \
3951 s=`cd $(srcdir); ${PWD}`; export s; \
3952 $(SET_LIB_PATH) \
3953 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
3955 .PHONY: check-libiberty maybe-check-libiberty
3956 maybe-check-libiberty:
3958 check-libiberty:
3959 @r=`${PWD}`; export r; \
3960 s=`cd $(srcdir); ${PWD}`; export s; \
3961 $(SET_LIB_PATH) \
3962 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
3965 .PHONY: install-libiberty maybe-install-libiberty
3966 maybe-install-libiberty:
3968 install-libiberty: installdirs
3969 @r=`${PWD}`; export r; \
3970 s=`cd $(srcdir); ${PWD}`; export s; \
3971 $(SET_LIB_PATH) \
3972 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
3975 .PHONY: configure-libtool maybe-configure-libtool
3976 maybe-configure-libtool:
3977 configure-libtool:
3978 @test ! -f libtool/Makefile || exit 0; \
3979 [ -d libtool ] || mkdir libtool; \
3980 r=`${PWD}`; export r; \
3981 s=`cd $(srcdir); ${PWD}`; export s; \
3982 CC="$(CC)"; export CC; \
3983 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3984 CXX="$(CXX)"; export CXX; \
3985 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3986 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3987 AR="$(AR)"; export AR; \
3988 AS="$(AS)"; export AS; \
3989 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3990 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3991 LD="$(LD)"; export LD; \
3992 NM="$(NM)"; export NM; \
3993 RANLIB="$(RANLIB)"; export RANLIB; \
3994 WINDRES="$(WINDRES)"; export WINDRES; \
3995 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3996 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3997 fi; \
3998 echo Configuring in libtool; \
3999 cd libtool || exit 1; \
4000 case $(srcdir) in \
4001 \.) \
4002 srcdiroption="--srcdir=."; \
4003 libsrcdir=".";; \
4004 /* | [A-Za-z]:[\\/]*) \
4005 srcdiroption="--srcdir=$(srcdir)/libtool"; \
4006 libsrcdir="$$s/libtool";; \
4007 *) \
4008 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
4009 libsrcdir="$$s/libtool";; \
4010 esac; \
4011 $(SHELL) $${libsrcdir}/configure \
4012 $(HOST_CONFIGARGS) $${srcdiroption} \
4013 || exit 1
4015 .PHONY: all-libtool maybe-all-libtool
4016 maybe-all-libtool:
4017 all-libtool: configure-libtool
4018 @r=`${PWD}`; export r; \
4019 s=`cd $(srcdir); ${PWD}`; export s; \
4020 $(SET_LIB_PATH) \
4021 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
4023 .PHONY: check-libtool maybe-check-libtool
4024 maybe-check-libtool:
4026 check-libtool:
4027 @r=`${PWD}`; export r; \
4028 s=`cd $(srcdir); ${PWD}`; export s; \
4029 $(SET_LIB_PATH) \
4030 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
4033 .PHONY: install-libtool maybe-install-libtool
4034 maybe-install-libtool:
4036 install-libtool: installdirs
4037 @r=`${PWD}`; export r; \
4038 s=`cd $(srcdir); ${PWD}`; export s; \
4039 $(SET_LIB_PATH) \
4040 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
4043 .PHONY: configure-m4 maybe-configure-m4
4044 maybe-configure-m4:
4045 configure-m4:
4046 @test ! -f m4/Makefile || exit 0; \
4047 [ -d m4 ] || mkdir m4; \
4048 r=`${PWD}`; export r; \
4049 s=`cd $(srcdir); ${PWD}`; export s; \
4050 CC="$(CC)"; export CC; \
4051 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4052 CXX="$(CXX)"; export CXX; \
4053 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4054 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4055 AR="$(AR)"; export AR; \
4056 AS="$(AS)"; export AS; \
4057 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4058 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4059 LD="$(LD)"; export LD; \
4060 NM="$(NM)"; export NM; \
4061 RANLIB="$(RANLIB)"; export RANLIB; \
4062 WINDRES="$(WINDRES)"; export WINDRES; \
4063 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4064 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4065 fi; \
4066 echo Configuring in m4; \
4067 cd m4 || exit 1; \
4068 case $(srcdir) in \
4069 \.) \
4070 srcdiroption="--srcdir=."; \
4071 libsrcdir=".";; \
4072 /* | [A-Za-z]:[\\/]*) \
4073 srcdiroption="--srcdir=$(srcdir)/m4"; \
4074 libsrcdir="$$s/m4";; \
4075 *) \
4076 srcdiroption="--srcdir=../$(srcdir)/m4"; \
4077 libsrcdir="$$s/m4";; \
4078 esac; \
4079 $(SHELL) $${libsrcdir}/configure \
4080 $(HOST_CONFIGARGS) $${srcdiroption} \
4081 || exit 1
4083 .PHONY: all-m4 maybe-all-m4
4084 maybe-all-m4:
4085 all-m4: configure-m4
4086 @r=`${PWD}`; export r; \
4087 s=`cd $(srcdir); ${PWD}`; export s; \
4088 $(SET_LIB_PATH) \
4089 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
4091 .PHONY: check-m4 maybe-check-m4
4092 maybe-check-m4:
4094 check-m4:
4095 @r=`${PWD}`; export r; \
4096 s=`cd $(srcdir); ${PWD}`; export s; \
4097 $(SET_LIB_PATH) \
4098 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
4101 .PHONY: install-m4 maybe-install-m4
4102 maybe-install-m4:
4104 install-m4: installdirs
4105 @r=`${PWD}`; export r; \
4106 s=`cd $(srcdir); ${PWD}`; export s; \
4107 $(SET_LIB_PATH) \
4108 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
4111 .PHONY: configure-make maybe-configure-make
4112 maybe-configure-make:
4113 configure-make:
4114 @test ! -f make/Makefile || exit 0; \
4115 [ -d make ] || mkdir make; \
4116 r=`${PWD}`; export r; \
4117 s=`cd $(srcdir); ${PWD}`; export s; \
4118 CC="$(CC)"; export CC; \
4119 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4120 CXX="$(CXX)"; export CXX; \
4121 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4122 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4123 AR="$(AR)"; export AR; \
4124 AS="$(AS)"; export AS; \
4125 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4126 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4127 LD="$(LD)"; export LD; \
4128 NM="$(NM)"; export NM; \
4129 RANLIB="$(RANLIB)"; export RANLIB; \
4130 WINDRES="$(WINDRES)"; export WINDRES; \
4131 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4132 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4133 fi; \
4134 echo Configuring in make; \
4135 cd make || exit 1; \
4136 case $(srcdir) in \
4137 \.) \
4138 srcdiroption="--srcdir=."; \
4139 libsrcdir=".";; \
4140 /* | [A-Za-z]:[\\/]*) \
4141 srcdiroption="--srcdir=$(srcdir)/make"; \
4142 libsrcdir="$$s/make";; \
4143 *) \
4144 srcdiroption="--srcdir=../$(srcdir)/make"; \
4145 libsrcdir="$$s/make";; \
4146 esac; \
4147 $(SHELL) $${libsrcdir}/configure \
4148 $(HOST_CONFIGARGS) $${srcdiroption} \
4149 || exit 1
4151 .PHONY: all-make maybe-all-make
4152 maybe-all-make:
4153 all-make: configure-make
4154 @r=`${PWD}`; export r; \
4155 s=`cd $(srcdir); ${PWD}`; export s; \
4156 $(SET_LIB_PATH) \
4157 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
4159 .PHONY: check-make maybe-check-make
4160 maybe-check-make:
4162 check-make:
4163 @r=`${PWD}`; export r; \
4164 s=`cd $(srcdir); ${PWD}`; export s; \
4165 $(SET_LIB_PATH) \
4166 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
4169 .PHONY: install-make maybe-install-make
4170 maybe-install-make:
4172 install-make: installdirs
4173 @r=`${PWD}`; export r; \
4174 s=`cd $(srcdir); ${PWD}`; export s; \
4175 $(SET_LIB_PATH) \
4176 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
4179 .PHONY: configure-mmalloc maybe-configure-mmalloc
4180 maybe-configure-mmalloc:
4181 configure-mmalloc:
4182 @test ! -f mmalloc/Makefile || exit 0; \
4183 [ -d mmalloc ] || mkdir mmalloc; \
4184 r=`${PWD}`; export r; \
4185 s=`cd $(srcdir); ${PWD}`; export s; \
4186 CC="$(CC)"; export CC; \
4187 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4188 CXX="$(CXX)"; export CXX; \
4189 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4190 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4191 AR="$(AR)"; export AR; \
4192 AS="$(AS)"; export AS; \
4193 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4194 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4195 LD="$(LD)"; export LD; \
4196 NM="$(NM)"; export NM; \
4197 RANLIB="$(RANLIB)"; export RANLIB; \
4198 WINDRES="$(WINDRES)"; export WINDRES; \
4199 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4200 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4201 fi; \
4202 echo Configuring in mmalloc; \
4203 cd mmalloc || exit 1; \
4204 case $(srcdir) in \
4205 \.) \
4206 srcdiroption="--srcdir=."; \
4207 libsrcdir=".";; \
4208 /* | [A-Za-z]:[\\/]*) \
4209 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
4210 libsrcdir="$$s/mmalloc";; \
4211 *) \
4212 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
4213 libsrcdir="$$s/mmalloc";; \
4214 esac; \
4215 $(SHELL) $${libsrcdir}/configure \
4216 $(HOST_CONFIGARGS) $${srcdiroption} \
4217 || exit 1
4219 .PHONY: all-mmalloc maybe-all-mmalloc
4220 maybe-all-mmalloc:
4221 all-mmalloc: configure-mmalloc
4222 @r=`${PWD}`; export r; \
4223 s=`cd $(srcdir); ${PWD}`; export s; \
4224 $(SET_LIB_PATH) \
4225 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
4227 .PHONY: check-mmalloc maybe-check-mmalloc
4228 maybe-check-mmalloc:
4230 check-mmalloc:
4233 .PHONY: install-mmalloc maybe-install-mmalloc
4234 maybe-install-mmalloc:
4236 install-mmalloc: installdirs
4237 @r=`${PWD}`; export r; \
4238 s=`cd $(srcdir); ${PWD}`; export s; \
4239 $(SET_LIB_PATH) \
4240 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
4243 .PHONY: configure-patch maybe-configure-patch
4244 maybe-configure-patch:
4245 configure-patch:
4246 @test ! -f patch/Makefile || exit 0; \
4247 [ -d patch ] || mkdir patch; \
4248 r=`${PWD}`; export r; \
4249 s=`cd $(srcdir); ${PWD}`; export s; \
4250 CC="$(CC)"; export CC; \
4251 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4252 CXX="$(CXX)"; export CXX; \
4253 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4254 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4255 AR="$(AR)"; export AR; \
4256 AS="$(AS)"; export AS; \
4257 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4258 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4259 LD="$(LD)"; export LD; \
4260 NM="$(NM)"; export NM; \
4261 RANLIB="$(RANLIB)"; export RANLIB; \
4262 WINDRES="$(WINDRES)"; export WINDRES; \
4263 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4264 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4265 fi; \
4266 echo Configuring in patch; \
4267 cd patch || exit 1; \
4268 case $(srcdir) in \
4269 \.) \
4270 srcdiroption="--srcdir=."; \
4271 libsrcdir=".";; \
4272 /* | [A-Za-z]:[\\/]*) \
4273 srcdiroption="--srcdir=$(srcdir)/patch"; \
4274 libsrcdir="$$s/patch";; \
4275 *) \
4276 srcdiroption="--srcdir=../$(srcdir)/patch"; \
4277 libsrcdir="$$s/patch";; \
4278 esac; \
4279 $(SHELL) $${libsrcdir}/configure \
4280 $(HOST_CONFIGARGS) $${srcdiroption} \
4281 || exit 1
4283 .PHONY: all-patch maybe-all-patch
4284 maybe-all-patch:
4285 all-patch: configure-patch
4286 @r=`${PWD}`; export r; \
4287 s=`cd $(srcdir); ${PWD}`; export s; \
4288 $(SET_LIB_PATH) \
4289 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
4291 .PHONY: check-patch maybe-check-patch
4292 maybe-check-patch:
4294 check-patch:
4295 @r=`${PWD}`; export r; \
4296 s=`cd $(srcdir); ${PWD}`; export s; \
4297 $(SET_LIB_PATH) \
4298 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
4301 .PHONY: install-patch maybe-install-patch
4302 maybe-install-patch:
4304 install-patch: installdirs
4305 @r=`${PWD}`; export r; \
4306 s=`cd $(srcdir); ${PWD}`; export s; \
4307 $(SET_LIB_PATH) \
4308 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
4311 .PHONY: configure-perl maybe-configure-perl
4312 maybe-configure-perl:
4313 configure-perl:
4314 @test ! -f perl/Makefile || exit 0; \
4315 [ -d perl ] || mkdir perl; \
4316 r=`${PWD}`; export r; \
4317 s=`cd $(srcdir); ${PWD}`; export s; \
4318 CC="$(CC)"; export CC; \
4319 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4320 CXX="$(CXX)"; export CXX; \
4321 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4322 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4323 AR="$(AR)"; export AR; \
4324 AS="$(AS)"; export AS; \
4325 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4326 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4327 LD="$(LD)"; export LD; \
4328 NM="$(NM)"; export NM; \
4329 RANLIB="$(RANLIB)"; export RANLIB; \
4330 WINDRES="$(WINDRES)"; export WINDRES; \
4331 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4332 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4333 fi; \
4334 echo Configuring in perl; \
4335 cd perl || exit 1; \
4336 case $(srcdir) in \
4337 \.) \
4338 srcdiroption="--srcdir=."; \
4339 libsrcdir=".";; \
4340 /* | [A-Za-z]:[\\/]*) \
4341 srcdiroption="--srcdir=$(srcdir)/perl"; \
4342 libsrcdir="$$s/perl";; \
4343 *) \
4344 srcdiroption="--srcdir=../$(srcdir)/perl"; \
4345 libsrcdir="$$s/perl";; \
4346 esac; \
4347 $(SHELL) $${libsrcdir}/configure \
4348 $(HOST_CONFIGARGS) $${srcdiroption} \
4349 || exit 1
4351 .PHONY: all-perl maybe-all-perl
4352 maybe-all-perl:
4353 all-perl: configure-perl
4354 @r=`${PWD}`; export r; \
4355 s=`cd $(srcdir); ${PWD}`; export s; \
4356 $(SET_LIB_PATH) \
4357 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
4359 .PHONY: check-perl maybe-check-perl
4360 maybe-check-perl:
4362 check-perl:
4363 @r=`${PWD}`; export r; \
4364 s=`cd $(srcdir); ${PWD}`; export s; \
4365 $(SET_LIB_PATH) \
4366 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
4369 .PHONY: install-perl maybe-install-perl
4370 maybe-install-perl:
4372 install-perl: installdirs
4373 @r=`${PWD}`; export r; \
4374 s=`cd $(srcdir); ${PWD}`; export s; \
4375 $(SET_LIB_PATH) \
4376 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
4379 .PHONY: configure-prms maybe-configure-prms
4380 maybe-configure-prms:
4381 configure-prms:
4382 @test ! -f prms/Makefile || exit 0; \
4383 [ -d prms ] || mkdir prms; \
4384 r=`${PWD}`; export r; \
4385 s=`cd $(srcdir); ${PWD}`; export s; \
4386 CC="$(CC)"; export CC; \
4387 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4388 CXX="$(CXX)"; export CXX; \
4389 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4390 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4391 AR="$(AR)"; export AR; \
4392 AS="$(AS)"; export AS; \
4393 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4394 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4395 LD="$(LD)"; export LD; \
4396 NM="$(NM)"; export NM; \
4397 RANLIB="$(RANLIB)"; export RANLIB; \
4398 WINDRES="$(WINDRES)"; export WINDRES; \
4399 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4400 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4401 fi; \
4402 echo Configuring in prms; \
4403 cd prms || exit 1; \
4404 case $(srcdir) in \
4405 \.) \
4406 srcdiroption="--srcdir=."; \
4407 libsrcdir=".";; \
4408 /* | [A-Za-z]:[\\/]*) \
4409 srcdiroption="--srcdir=$(srcdir)/prms"; \
4410 libsrcdir="$$s/prms";; \
4411 *) \
4412 srcdiroption="--srcdir=../$(srcdir)/prms"; \
4413 libsrcdir="$$s/prms";; \
4414 esac; \
4415 $(SHELL) $${libsrcdir}/configure \
4416 $(HOST_CONFIGARGS) $${srcdiroption} \
4417 || exit 1
4419 .PHONY: all-prms maybe-all-prms
4420 maybe-all-prms:
4421 all-prms: configure-prms
4422 @r=`${PWD}`; export r; \
4423 s=`cd $(srcdir); ${PWD}`; export s; \
4424 $(SET_LIB_PATH) \
4425 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
4427 .PHONY: check-prms maybe-check-prms
4428 maybe-check-prms:
4430 check-prms:
4431 @r=`${PWD}`; export r; \
4432 s=`cd $(srcdir); ${PWD}`; export s; \
4433 $(SET_LIB_PATH) \
4434 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4437 .PHONY: install-prms maybe-install-prms
4438 maybe-install-prms:
4440 install-prms: installdirs
4441 @r=`${PWD}`; export r; \
4442 s=`cd $(srcdir); ${PWD}`; export s; \
4443 $(SET_LIB_PATH) \
4444 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4447 .PHONY: configure-rcs maybe-configure-rcs
4448 maybe-configure-rcs:
4449 configure-rcs:
4450 @test ! -f rcs/Makefile || exit 0; \
4451 [ -d rcs ] || mkdir rcs; \
4452 r=`${PWD}`; export r; \
4453 s=`cd $(srcdir); ${PWD}`; export s; \
4454 CC="$(CC)"; export CC; \
4455 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4456 CXX="$(CXX)"; export CXX; \
4457 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4458 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4459 AR="$(AR)"; export AR; \
4460 AS="$(AS)"; export AS; \
4461 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4462 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4463 LD="$(LD)"; export LD; \
4464 NM="$(NM)"; export NM; \
4465 RANLIB="$(RANLIB)"; export RANLIB; \
4466 WINDRES="$(WINDRES)"; export WINDRES; \
4467 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4468 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4469 fi; \
4470 echo Configuring in rcs; \
4471 cd rcs || exit 1; \
4472 case $(srcdir) in \
4473 \.) \
4474 srcdiroption="--srcdir=."; \
4475 libsrcdir=".";; \
4476 /* | [A-Za-z]:[\\/]*) \
4477 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4478 libsrcdir="$$s/rcs";; \
4479 *) \
4480 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4481 libsrcdir="$$s/rcs";; \
4482 esac; \
4483 $(SHELL) $${libsrcdir}/configure \
4484 $(HOST_CONFIGARGS) $${srcdiroption} \
4485 || exit 1
4487 .PHONY: all-rcs maybe-all-rcs
4488 maybe-all-rcs:
4489 all-rcs: configure-rcs
4490 @r=`${PWD}`; export r; \
4491 s=`cd $(srcdir); ${PWD}`; export s; \
4492 $(SET_LIB_PATH) \
4493 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
4495 .PHONY: check-rcs maybe-check-rcs
4496 maybe-check-rcs:
4498 check-rcs:
4499 @r=`${PWD}`; export r; \
4500 s=`cd $(srcdir); ${PWD}`; export s; \
4501 $(SET_LIB_PATH) \
4502 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4505 .PHONY: install-rcs maybe-install-rcs
4506 maybe-install-rcs:
4508 install-rcs: installdirs
4509 @r=`${PWD}`; export r; \
4510 s=`cd $(srcdir); ${PWD}`; export s; \
4511 $(SET_LIB_PATH) \
4512 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
4515 .PHONY: configure-readline maybe-configure-readline
4516 maybe-configure-readline:
4517 configure-readline:
4518 @test ! -f readline/Makefile || exit 0; \
4519 [ -d readline ] || mkdir readline; \
4520 r=`${PWD}`; export r; \
4521 s=`cd $(srcdir); ${PWD}`; export s; \
4522 CC="$(CC)"; export CC; \
4523 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4524 CXX="$(CXX)"; export CXX; \
4525 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4526 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4527 AR="$(AR)"; export AR; \
4528 AS="$(AS)"; export AS; \
4529 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4530 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4531 LD="$(LD)"; export LD; \
4532 NM="$(NM)"; export NM; \
4533 RANLIB="$(RANLIB)"; export RANLIB; \
4534 WINDRES="$(WINDRES)"; export WINDRES; \
4535 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4536 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4537 fi; \
4538 echo Configuring in readline; \
4539 cd readline || exit 1; \
4540 case $(srcdir) in \
4541 \.) \
4542 srcdiroption="--srcdir=."; \
4543 libsrcdir=".";; \
4544 /* | [A-Za-z]:[\\/]*) \
4545 srcdiroption="--srcdir=$(srcdir)/readline"; \
4546 libsrcdir="$$s/readline";; \
4547 *) \
4548 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4549 libsrcdir="$$s/readline";; \
4550 esac; \
4551 $(SHELL) $${libsrcdir}/configure \
4552 $(HOST_CONFIGARGS) $${srcdiroption} \
4553 || exit 1
4555 .PHONY: all-readline maybe-all-readline
4556 maybe-all-readline:
4557 all-readline: configure-readline
4558 @r=`${PWD}`; export r; \
4559 s=`cd $(srcdir); ${PWD}`; export s; \
4560 $(SET_LIB_PATH) \
4561 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
4563 .PHONY: check-readline maybe-check-readline
4564 maybe-check-readline:
4566 check-readline:
4567 @r=`${PWD}`; export r; \
4568 s=`cd $(srcdir); ${PWD}`; export s; \
4569 $(SET_LIB_PATH) \
4570 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4573 .PHONY: install-readline maybe-install-readline
4574 maybe-install-readline:
4576 install-readline: installdirs
4577 @r=`${PWD}`; export r; \
4578 s=`cd $(srcdir); ${PWD}`; export s; \
4579 $(SET_LIB_PATH) \
4580 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4583 .PHONY: configure-release maybe-configure-release
4584 maybe-configure-release:
4585 configure-release:
4586 @test ! -f release/Makefile || exit 0; \
4587 [ -d release ] || mkdir release; \
4588 r=`${PWD}`; export r; \
4589 s=`cd $(srcdir); ${PWD}`; export s; \
4590 CC="$(CC)"; export CC; \
4591 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4592 CXX="$(CXX)"; export CXX; \
4593 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4594 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4595 AR="$(AR)"; export AR; \
4596 AS="$(AS)"; export AS; \
4597 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4598 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4599 LD="$(LD)"; export LD; \
4600 NM="$(NM)"; export NM; \
4601 RANLIB="$(RANLIB)"; export RANLIB; \
4602 WINDRES="$(WINDRES)"; export WINDRES; \
4603 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4604 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4605 fi; \
4606 echo Configuring in release; \
4607 cd release || exit 1; \
4608 case $(srcdir) in \
4609 \.) \
4610 srcdiroption="--srcdir=."; \
4611 libsrcdir=".";; \
4612 /* | [A-Za-z]:[\\/]*) \
4613 srcdiroption="--srcdir=$(srcdir)/release"; \
4614 libsrcdir="$$s/release";; \
4615 *) \
4616 srcdiroption="--srcdir=../$(srcdir)/release"; \
4617 libsrcdir="$$s/release";; \
4618 esac; \
4619 $(SHELL) $${libsrcdir}/configure \
4620 $(HOST_CONFIGARGS) $${srcdiroption} \
4621 || exit 1
4623 .PHONY: all-release maybe-all-release
4624 maybe-all-release:
4625 all-release: configure-release
4626 @r=`${PWD}`; export r; \
4627 s=`cd $(srcdir); ${PWD}`; export s; \
4628 $(SET_LIB_PATH) \
4629 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
4631 .PHONY: check-release maybe-check-release
4632 maybe-check-release:
4634 check-release:
4637 .PHONY: install-release maybe-install-release
4638 maybe-install-release:
4640 install-release:
4643 .PHONY: configure-recode maybe-configure-recode
4644 maybe-configure-recode:
4645 configure-recode:
4646 @test ! -f recode/Makefile || exit 0; \
4647 [ -d recode ] || mkdir recode; \
4648 r=`${PWD}`; export r; \
4649 s=`cd $(srcdir); ${PWD}`; export s; \
4650 CC="$(CC)"; export CC; \
4651 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4652 CXX="$(CXX)"; export CXX; \
4653 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4654 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4655 AR="$(AR)"; export AR; \
4656 AS="$(AS)"; export AS; \
4657 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4658 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4659 LD="$(LD)"; export LD; \
4660 NM="$(NM)"; export NM; \
4661 RANLIB="$(RANLIB)"; export RANLIB; \
4662 WINDRES="$(WINDRES)"; export WINDRES; \
4663 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4664 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4665 fi; \
4666 echo Configuring in recode; \
4667 cd recode || exit 1; \
4668 case $(srcdir) in \
4669 \.) \
4670 srcdiroption="--srcdir=."; \
4671 libsrcdir=".";; \
4672 /* | [A-Za-z]:[\\/]*) \
4673 srcdiroption="--srcdir=$(srcdir)/recode"; \
4674 libsrcdir="$$s/recode";; \
4675 *) \
4676 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4677 libsrcdir="$$s/recode";; \
4678 esac; \
4679 $(SHELL) $${libsrcdir}/configure \
4680 $(HOST_CONFIGARGS) $${srcdiroption} \
4681 || exit 1
4683 .PHONY: all-recode maybe-all-recode
4684 maybe-all-recode:
4685 all-recode: configure-recode
4686 @r=`${PWD}`; export r; \
4687 s=`cd $(srcdir); ${PWD}`; export s; \
4688 $(SET_LIB_PATH) \
4689 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
4691 .PHONY: check-recode maybe-check-recode
4692 maybe-check-recode:
4694 check-recode:
4695 @r=`${PWD}`; export r; \
4696 s=`cd $(srcdir); ${PWD}`; export s; \
4697 $(SET_LIB_PATH) \
4698 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4701 .PHONY: install-recode maybe-install-recode
4702 maybe-install-recode:
4704 install-recode: installdirs
4705 @r=`${PWD}`; export r; \
4706 s=`cd $(srcdir); ${PWD}`; export s; \
4707 $(SET_LIB_PATH) \
4708 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4711 .PHONY: configure-sed maybe-configure-sed
4712 maybe-configure-sed:
4713 configure-sed:
4714 @test ! -f sed/Makefile || exit 0; \
4715 [ -d sed ] || mkdir sed; \
4716 r=`${PWD}`; export r; \
4717 s=`cd $(srcdir); ${PWD}`; export s; \
4718 CC="$(CC)"; export CC; \
4719 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4720 CXX="$(CXX)"; export CXX; \
4721 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4722 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4723 AR="$(AR)"; export AR; \
4724 AS="$(AS)"; export AS; \
4725 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4726 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4727 LD="$(LD)"; export LD; \
4728 NM="$(NM)"; export NM; \
4729 RANLIB="$(RANLIB)"; export RANLIB; \
4730 WINDRES="$(WINDRES)"; export WINDRES; \
4731 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4732 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4733 fi; \
4734 echo Configuring in sed; \
4735 cd sed || exit 1; \
4736 case $(srcdir) in \
4737 \.) \
4738 srcdiroption="--srcdir=."; \
4739 libsrcdir=".";; \
4740 /* | [A-Za-z]:[\\/]*) \
4741 srcdiroption="--srcdir=$(srcdir)/sed"; \
4742 libsrcdir="$$s/sed";; \
4743 *) \
4744 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4745 libsrcdir="$$s/sed";; \
4746 esac; \
4747 $(SHELL) $${libsrcdir}/configure \
4748 $(HOST_CONFIGARGS) $${srcdiroption} \
4749 || exit 1
4751 .PHONY: all-sed maybe-all-sed
4752 maybe-all-sed:
4753 all-sed: configure-sed
4754 @r=`${PWD}`; export r; \
4755 s=`cd $(srcdir); ${PWD}`; export s; \
4756 $(SET_LIB_PATH) \
4757 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
4759 .PHONY: check-sed maybe-check-sed
4760 maybe-check-sed:
4762 check-sed:
4763 @r=`${PWD}`; export r; \
4764 s=`cd $(srcdir); ${PWD}`; export s; \
4765 $(SET_LIB_PATH) \
4766 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4769 .PHONY: install-sed maybe-install-sed
4770 maybe-install-sed:
4772 install-sed: installdirs
4773 @r=`${PWD}`; export r; \
4774 s=`cd $(srcdir); ${PWD}`; export s; \
4775 $(SET_LIB_PATH) \
4776 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
4779 .PHONY: configure-send-pr maybe-configure-send-pr
4780 maybe-configure-send-pr:
4781 configure-send-pr:
4782 @test ! -f send-pr/Makefile || exit 0; \
4783 [ -d send-pr ] || mkdir send-pr; \
4784 r=`${PWD}`; export r; \
4785 s=`cd $(srcdir); ${PWD}`; export s; \
4786 CC="$(CC)"; export CC; \
4787 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4788 CXX="$(CXX)"; export CXX; \
4789 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4790 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4791 AR="$(AR)"; export AR; \
4792 AS="$(AS)"; export AS; \
4793 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4794 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4795 LD="$(LD)"; export LD; \
4796 NM="$(NM)"; export NM; \
4797 RANLIB="$(RANLIB)"; export RANLIB; \
4798 WINDRES="$(WINDRES)"; export WINDRES; \
4799 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4800 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4801 fi; \
4802 echo Configuring in send-pr; \
4803 cd send-pr || exit 1; \
4804 case $(srcdir) in \
4805 \.) \
4806 srcdiroption="--srcdir=."; \
4807 libsrcdir=".";; \
4808 /* | [A-Za-z]:[\\/]*) \
4809 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4810 libsrcdir="$$s/send-pr";; \
4811 *) \
4812 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4813 libsrcdir="$$s/send-pr";; \
4814 esac; \
4815 $(SHELL) $${libsrcdir}/configure \
4816 $(HOST_CONFIGARGS) $${srcdiroption} \
4817 || exit 1
4819 .PHONY: all-send-pr maybe-all-send-pr
4820 maybe-all-send-pr:
4821 all-send-pr: configure-send-pr
4822 @r=`${PWD}`; export r; \
4823 s=`cd $(srcdir); ${PWD}`; export s; \
4824 $(SET_LIB_PATH) \
4825 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
4827 .PHONY: check-send-pr maybe-check-send-pr
4828 maybe-check-send-pr:
4830 check-send-pr:
4831 @r=`${PWD}`; export r; \
4832 s=`cd $(srcdir); ${PWD}`; export s; \
4833 $(SET_LIB_PATH) \
4834 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4837 .PHONY: install-send-pr maybe-install-send-pr
4838 maybe-install-send-pr:
4840 install-send-pr: installdirs
4841 @r=`${PWD}`; export r; \
4842 s=`cd $(srcdir); ${PWD}`; export s; \
4843 $(SET_LIB_PATH) \
4844 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4847 .PHONY: configure-shellutils maybe-configure-shellutils
4848 maybe-configure-shellutils:
4849 configure-shellutils:
4850 @test ! -f shellutils/Makefile || exit 0; \
4851 [ -d shellutils ] || mkdir shellutils; \
4852 r=`${PWD}`; export r; \
4853 s=`cd $(srcdir); ${PWD}`; export s; \
4854 CC="$(CC)"; export CC; \
4855 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4856 CXX="$(CXX)"; export CXX; \
4857 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4858 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4859 AR="$(AR)"; export AR; \
4860 AS="$(AS)"; export AS; \
4861 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4862 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4863 LD="$(LD)"; export LD; \
4864 NM="$(NM)"; export NM; \
4865 RANLIB="$(RANLIB)"; export RANLIB; \
4866 WINDRES="$(WINDRES)"; export WINDRES; \
4867 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4868 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4869 fi; \
4870 echo Configuring in shellutils; \
4871 cd shellutils || exit 1; \
4872 case $(srcdir) in \
4873 \.) \
4874 srcdiroption="--srcdir=."; \
4875 libsrcdir=".";; \
4876 /* | [A-Za-z]:[\\/]*) \
4877 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4878 libsrcdir="$$s/shellutils";; \
4879 *) \
4880 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4881 libsrcdir="$$s/shellutils";; \
4882 esac; \
4883 $(SHELL) $${libsrcdir}/configure \
4884 $(HOST_CONFIGARGS) $${srcdiroption} \
4885 || exit 1
4887 .PHONY: all-shellutils maybe-all-shellutils
4888 maybe-all-shellutils:
4889 all-shellutils: configure-shellutils
4890 @r=`${PWD}`; export r; \
4891 s=`cd $(srcdir); ${PWD}`; export s; \
4892 $(SET_LIB_PATH) \
4893 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
4895 .PHONY: check-shellutils maybe-check-shellutils
4896 maybe-check-shellutils:
4898 check-shellutils:
4899 @r=`${PWD}`; export r; \
4900 s=`cd $(srcdir); ${PWD}`; export s; \
4901 $(SET_LIB_PATH) \
4902 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4905 .PHONY: install-shellutils maybe-install-shellutils
4906 maybe-install-shellutils:
4908 install-shellutils: installdirs
4909 @r=`${PWD}`; export r; \
4910 s=`cd $(srcdir); ${PWD}`; export s; \
4911 $(SET_LIB_PATH) \
4912 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4915 .PHONY: configure-sid maybe-configure-sid
4916 maybe-configure-sid:
4917 configure-sid:
4918 @test ! -f sid/Makefile || exit 0; \
4919 [ -d sid ] || mkdir sid; \
4920 r=`${PWD}`; export r; \
4921 s=`cd $(srcdir); ${PWD}`; export s; \
4922 CC="$(CC)"; export CC; \
4923 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4924 CXX="$(CXX)"; export CXX; \
4925 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4926 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4927 AR="$(AR)"; export AR; \
4928 AS="$(AS)"; export AS; \
4929 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4930 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4931 LD="$(LD)"; export LD; \
4932 NM="$(NM)"; export NM; \
4933 RANLIB="$(RANLIB)"; export RANLIB; \
4934 WINDRES="$(WINDRES)"; export WINDRES; \
4935 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4936 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4937 fi; \
4938 echo Configuring in sid; \
4939 cd sid || exit 1; \
4940 case $(srcdir) in \
4941 \.) \
4942 srcdiroption="--srcdir=."; \
4943 libsrcdir=".";; \
4944 /* | [A-Za-z]:[\\/]*) \
4945 srcdiroption="--srcdir=$(srcdir)/sid"; \
4946 libsrcdir="$$s/sid";; \
4947 *) \
4948 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4949 libsrcdir="$$s/sid";; \
4950 esac; \
4951 $(SHELL) $${libsrcdir}/configure \
4952 $(HOST_CONFIGARGS) $${srcdiroption} \
4953 || exit 1
4955 .PHONY: all-sid maybe-all-sid
4956 maybe-all-sid:
4957 all-sid: configure-sid
4958 @r=`${PWD}`; export r; \
4959 s=`cd $(srcdir); ${PWD}`; export s; \
4960 $(SET_LIB_PATH) \
4961 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
4963 .PHONY: check-sid maybe-check-sid
4964 maybe-check-sid:
4966 check-sid:
4967 @r=`${PWD}`; export r; \
4968 s=`cd $(srcdir); ${PWD}`; export s; \
4969 $(SET_LIB_PATH) \
4970 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4973 .PHONY: install-sid maybe-install-sid
4974 maybe-install-sid:
4976 install-sid: installdirs
4977 @r=`${PWD}`; export r; \
4978 s=`cd $(srcdir); ${PWD}`; export s; \
4979 $(SET_LIB_PATH) \
4980 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
4983 .PHONY: configure-sim maybe-configure-sim
4984 maybe-configure-sim:
4985 configure-sim:
4986 @test ! -f sim/Makefile || exit 0; \
4987 [ -d sim ] || mkdir sim; \
4988 r=`${PWD}`; export r; \
4989 s=`cd $(srcdir); ${PWD}`; export s; \
4990 CC="$(CC)"; export CC; \
4991 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4992 CXX="$(CXX)"; export CXX; \
4993 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4994 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4995 AR="$(AR)"; export AR; \
4996 AS="$(AS)"; export AS; \
4997 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4998 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4999 LD="$(LD)"; export LD; \
5000 NM="$(NM)"; export NM; \
5001 RANLIB="$(RANLIB)"; export RANLIB; \
5002 WINDRES="$(WINDRES)"; export WINDRES; \
5003 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5004 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5005 fi; \
5006 echo Configuring in sim; \
5007 cd sim || exit 1; \
5008 case $(srcdir) in \
5009 \.) \
5010 srcdiroption="--srcdir=."; \
5011 libsrcdir=".";; \
5012 /* | [A-Za-z]:[\\/]*) \
5013 srcdiroption="--srcdir=$(srcdir)/sim"; \
5014 libsrcdir="$$s/sim";; \
5015 *) \
5016 srcdiroption="--srcdir=../$(srcdir)/sim"; \
5017 libsrcdir="$$s/sim";; \
5018 esac; \
5019 $(SHELL) $${libsrcdir}/configure \
5020 $(HOST_CONFIGARGS) $${srcdiroption} \
5021 || exit 1
5023 .PHONY: all-sim maybe-all-sim
5024 maybe-all-sim:
5025 all-sim: configure-sim
5026 @r=`${PWD}`; export r; \
5027 s=`cd $(srcdir); ${PWD}`; export s; \
5028 $(SET_LIB_PATH) \
5029 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
5031 .PHONY: check-sim maybe-check-sim
5032 maybe-check-sim:
5034 check-sim:
5035 @r=`${PWD}`; export r; \
5036 s=`cd $(srcdir); ${PWD}`; export s; \
5037 $(SET_LIB_PATH) \
5038 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
5041 .PHONY: install-sim maybe-install-sim
5042 maybe-install-sim:
5044 install-sim: installdirs
5045 @r=`${PWD}`; export r; \
5046 s=`cd $(srcdir); ${PWD}`; export s; \
5047 $(SET_LIB_PATH) \
5048 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
5051 .PHONY: configure-tar maybe-configure-tar
5052 maybe-configure-tar:
5053 configure-tar:
5054 @test ! -f tar/Makefile || exit 0; \
5055 [ -d tar ] || mkdir tar; \
5056 r=`${PWD}`; export r; \
5057 s=`cd $(srcdir); ${PWD}`; export s; \
5058 CC="$(CC)"; export CC; \
5059 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5060 CXX="$(CXX)"; export CXX; \
5061 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5062 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5063 AR="$(AR)"; export AR; \
5064 AS="$(AS)"; export AS; \
5065 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5066 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5067 LD="$(LD)"; export LD; \
5068 NM="$(NM)"; export NM; \
5069 RANLIB="$(RANLIB)"; export RANLIB; \
5070 WINDRES="$(WINDRES)"; export WINDRES; \
5071 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5072 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5073 fi; \
5074 echo Configuring in tar; \
5075 cd tar || exit 1; \
5076 case $(srcdir) in \
5077 \.) \
5078 srcdiroption="--srcdir=."; \
5079 libsrcdir=".";; \
5080 /* | [A-Za-z]:[\\/]*) \
5081 srcdiroption="--srcdir=$(srcdir)/tar"; \
5082 libsrcdir="$$s/tar";; \
5083 *) \
5084 srcdiroption="--srcdir=../$(srcdir)/tar"; \
5085 libsrcdir="$$s/tar";; \
5086 esac; \
5087 $(SHELL) $${libsrcdir}/configure \
5088 $(HOST_CONFIGARGS) $${srcdiroption} \
5089 || exit 1
5091 .PHONY: all-tar maybe-all-tar
5092 maybe-all-tar:
5093 all-tar: configure-tar
5094 @r=`${PWD}`; export r; \
5095 s=`cd $(srcdir); ${PWD}`; export s; \
5096 $(SET_LIB_PATH) \
5097 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
5099 .PHONY: check-tar maybe-check-tar
5100 maybe-check-tar:
5102 check-tar:
5103 @r=`${PWD}`; export r; \
5104 s=`cd $(srcdir); ${PWD}`; export s; \
5105 $(SET_LIB_PATH) \
5106 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
5109 .PHONY: install-tar maybe-install-tar
5110 maybe-install-tar:
5112 install-tar: installdirs
5113 @r=`${PWD}`; export r; \
5114 s=`cd $(srcdir); ${PWD}`; export s; \
5115 $(SET_LIB_PATH) \
5116 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
5119 .PHONY: configure-texinfo maybe-configure-texinfo
5120 maybe-configure-texinfo:
5121 configure-texinfo:
5122 @test ! -f texinfo/Makefile || exit 0; \
5123 [ -d texinfo ] || mkdir texinfo; \
5124 r=`${PWD}`; export r; \
5125 s=`cd $(srcdir); ${PWD}`; export s; \
5126 CC="$(CC)"; export CC; \
5127 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5128 CXX="$(CXX)"; export CXX; \
5129 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5130 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5131 AR="$(AR)"; export AR; \
5132 AS="$(AS)"; export AS; \
5133 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5134 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5135 LD="$(LD)"; export LD; \
5136 NM="$(NM)"; export NM; \
5137 RANLIB="$(RANLIB)"; export RANLIB; \
5138 WINDRES="$(WINDRES)"; export WINDRES; \
5139 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5140 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5141 fi; \
5142 echo Configuring in texinfo; \
5143 cd texinfo || exit 1; \
5144 case $(srcdir) in \
5145 \.) \
5146 srcdiroption="--srcdir=."; \
5147 libsrcdir=".";; \
5148 /* | [A-Za-z]:[\\/]*) \
5149 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
5150 libsrcdir="$$s/texinfo";; \
5151 *) \
5152 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
5153 libsrcdir="$$s/texinfo";; \
5154 esac; \
5155 $(SHELL) $${libsrcdir}/configure \
5156 $(HOST_CONFIGARGS) $${srcdiroption} \
5157 || exit 1
5159 .PHONY: all-texinfo maybe-all-texinfo
5160 maybe-all-texinfo:
5161 all-texinfo: configure-texinfo
5162 @r=`${PWD}`; export r; \
5163 s=`cd $(srcdir); ${PWD}`; export s; \
5164 $(SET_LIB_PATH) \
5165 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
5167 .PHONY: check-texinfo maybe-check-texinfo
5168 maybe-check-texinfo:
5170 check-texinfo:
5171 @r=`${PWD}`; export r; \
5172 s=`cd $(srcdir); ${PWD}`; export s; \
5173 $(SET_LIB_PATH) \
5174 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
5177 .PHONY: install-texinfo maybe-install-texinfo
5178 maybe-install-texinfo:
5180 install-texinfo:
5183 .PHONY: configure-textutils maybe-configure-textutils
5184 maybe-configure-textutils:
5185 configure-textutils:
5186 @test ! -f textutils/Makefile || exit 0; \
5187 [ -d textutils ] || mkdir textutils; \
5188 r=`${PWD}`; export r; \
5189 s=`cd $(srcdir); ${PWD}`; export s; \
5190 CC="$(CC)"; export CC; \
5191 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5192 CXX="$(CXX)"; export CXX; \
5193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5194 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5195 AR="$(AR)"; export AR; \
5196 AS="$(AS)"; export AS; \
5197 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5198 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5199 LD="$(LD)"; export LD; \
5200 NM="$(NM)"; export NM; \
5201 RANLIB="$(RANLIB)"; export RANLIB; \
5202 WINDRES="$(WINDRES)"; export WINDRES; \
5203 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5204 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5205 fi; \
5206 echo Configuring in textutils; \
5207 cd textutils || exit 1; \
5208 case $(srcdir) in \
5209 \.) \
5210 srcdiroption="--srcdir=."; \
5211 libsrcdir=".";; \
5212 /* | [A-Za-z]:[\\/]*) \
5213 srcdiroption="--srcdir=$(srcdir)/textutils"; \
5214 libsrcdir="$$s/textutils";; \
5215 *) \
5216 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
5217 libsrcdir="$$s/textutils";; \
5218 esac; \
5219 $(SHELL) $${libsrcdir}/configure \
5220 $(HOST_CONFIGARGS) $${srcdiroption} \
5221 || exit 1
5223 .PHONY: all-textutils maybe-all-textutils
5224 maybe-all-textutils:
5225 all-textutils: configure-textutils
5226 @r=`${PWD}`; export r; \
5227 s=`cd $(srcdir); ${PWD}`; export s; \
5228 $(SET_LIB_PATH) \
5229 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
5231 .PHONY: check-textutils maybe-check-textutils
5232 maybe-check-textutils:
5234 check-textutils:
5235 @r=`${PWD}`; export r; \
5236 s=`cd $(srcdir); ${PWD}`; export s; \
5237 $(SET_LIB_PATH) \
5238 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
5241 .PHONY: install-textutils maybe-install-textutils
5242 maybe-install-textutils:
5244 install-textutils: installdirs
5245 @r=`${PWD}`; export r; \
5246 s=`cd $(srcdir); ${PWD}`; export s; \
5247 $(SET_LIB_PATH) \
5248 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
5251 .PHONY: configure-time maybe-configure-time
5252 maybe-configure-time:
5253 configure-time:
5254 @test ! -f time/Makefile || exit 0; \
5255 [ -d time ] || mkdir time; \
5256 r=`${PWD}`; export r; \
5257 s=`cd $(srcdir); ${PWD}`; export s; \
5258 CC="$(CC)"; export CC; \
5259 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5260 CXX="$(CXX)"; export CXX; \
5261 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5262 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5263 AR="$(AR)"; export AR; \
5264 AS="$(AS)"; export AS; \
5265 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5266 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5267 LD="$(LD)"; export LD; \
5268 NM="$(NM)"; export NM; \
5269 RANLIB="$(RANLIB)"; export RANLIB; \
5270 WINDRES="$(WINDRES)"; export WINDRES; \
5271 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5272 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5273 fi; \
5274 echo Configuring in time; \
5275 cd time || exit 1; \
5276 case $(srcdir) in \
5277 \.) \
5278 srcdiroption="--srcdir=."; \
5279 libsrcdir=".";; \
5280 /* | [A-Za-z]:[\\/]*) \
5281 srcdiroption="--srcdir=$(srcdir)/time"; \
5282 libsrcdir="$$s/time";; \
5283 *) \
5284 srcdiroption="--srcdir=../$(srcdir)/time"; \
5285 libsrcdir="$$s/time";; \
5286 esac; \
5287 $(SHELL) $${libsrcdir}/configure \
5288 $(HOST_CONFIGARGS) $${srcdiroption} \
5289 || exit 1
5291 .PHONY: all-time maybe-all-time
5292 maybe-all-time:
5293 all-time: configure-time
5294 @r=`${PWD}`; export r; \
5295 s=`cd $(srcdir); ${PWD}`; export s; \
5296 $(SET_LIB_PATH) \
5297 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
5299 .PHONY: check-time maybe-check-time
5300 maybe-check-time:
5302 check-time:
5303 @r=`${PWD}`; export r; \
5304 s=`cd $(srcdir); ${PWD}`; export s; \
5305 $(SET_LIB_PATH) \
5306 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
5309 .PHONY: install-time maybe-install-time
5310 maybe-install-time:
5312 install-time: installdirs
5313 @r=`${PWD}`; export r; \
5314 s=`cd $(srcdir); ${PWD}`; export s; \
5315 $(SET_LIB_PATH) \
5316 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
5319 .PHONY: configure-uudecode maybe-configure-uudecode
5320 maybe-configure-uudecode:
5321 configure-uudecode:
5322 @test ! -f uudecode/Makefile || exit 0; \
5323 [ -d uudecode ] || mkdir uudecode; \
5324 r=`${PWD}`; export r; \
5325 s=`cd $(srcdir); ${PWD}`; export s; \
5326 CC="$(CC)"; export CC; \
5327 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5328 CXX="$(CXX)"; export CXX; \
5329 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5330 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5331 AR="$(AR)"; export AR; \
5332 AS="$(AS)"; export AS; \
5333 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5334 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5335 LD="$(LD)"; export LD; \
5336 NM="$(NM)"; export NM; \
5337 RANLIB="$(RANLIB)"; export RANLIB; \
5338 WINDRES="$(WINDRES)"; export WINDRES; \
5339 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5340 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5341 fi; \
5342 echo Configuring in uudecode; \
5343 cd uudecode || exit 1; \
5344 case $(srcdir) in \
5345 \.) \
5346 srcdiroption="--srcdir=."; \
5347 libsrcdir=".";; \
5348 /* | [A-Za-z]:[\\/]*) \
5349 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
5350 libsrcdir="$$s/uudecode";; \
5351 *) \
5352 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
5353 libsrcdir="$$s/uudecode";; \
5354 esac; \
5355 $(SHELL) $${libsrcdir}/configure \
5356 $(HOST_CONFIGARGS) $${srcdiroption} \
5357 || exit 1
5359 .PHONY: all-uudecode maybe-all-uudecode
5360 maybe-all-uudecode:
5361 all-uudecode: configure-uudecode
5362 @r=`${PWD}`; export r; \
5363 s=`cd $(srcdir); ${PWD}`; export s; \
5364 $(SET_LIB_PATH) \
5365 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
5367 .PHONY: check-uudecode maybe-check-uudecode
5368 maybe-check-uudecode:
5370 check-uudecode:
5371 @r=`${PWD}`; export r; \
5372 s=`cd $(srcdir); ${PWD}`; export s; \
5373 $(SET_LIB_PATH) \
5374 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
5377 .PHONY: install-uudecode maybe-install-uudecode
5378 maybe-install-uudecode:
5380 install-uudecode: installdirs
5381 @r=`${PWD}`; export r; \
5382 s=`cd $(srcdir); ${PWD}`; export s; \
5383 $(SET_LIB_PATH) \
5384 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
5387 .PHONY: configure-wdiff maybe-configure-wdiff
5388 maybe-configure-wdiff:
5389 configure-wdiff:
5390 @test ! -f wdiff/Makefile || exit 0; \
5391 [ -d wdiff ] || mkdir wdiff; \
5392 r=`${PWD}`; export r; \
5393 s=`cd $(srcdir); ${PWD}`; export s; \
5394 CC="$(CC)"; export CC; \
5395 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5396 CXX="$(CXX)"; export CXX; \
5397 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5398 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5399 AR="$(AR)"; export AR; \
5400 AS="$(AS)"; export AS; \
5401 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5402 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5403 LD="$(LD)"; export LD; \
5404 NM="$(NM)"; export NM; \
5405 RANLIB="$(RANLIB)"; export RANLIB; \
5406 WINDRES="$(WINDRES)"; export WINDRES; \
5407 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5408 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5409 fi; \
5410 echo Configuring in wdiff; \
5411 cd wdiff || exit 1; \
5412 case $(srcdir) in \
5413 \.) \
5414 srcdiroption="--srcdir=."; \
5415 libsrcdir=".";; \
5416 /* | [A-Za-z]:[\\/]*) \
5417 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
5418 libsrcdir="$$s/wdiff";; \
5419 *) \
5420 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
5421 libsrcdir="$$s/wdiff";; \
5422 esac; \
5423 $(SHELL) $${libsrcdir}/configure \
5424 $(HOST_CONFIGARGS) $${srcdiroption} \
5425 || exit 1
5427 .PHONY: all-wdiff maybe-all-wdiff
5428 maybe-all-wdiff:
5429 all-wdiff: configure-wdiff
5430 @r=`${PWD}`; export r; \
5431 s=`cd $(srcdir); ${PWD}`; export s; \
5432 $(SET_LIB_PATH) \
5433 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
5435 .PHONY: check-wdiff maybe-check-wdiff
5436 maybe-check-wdiff:
5438 check-wdiff:
5439 @r=`${PWD}`; export r; \
5440 s=`cd $(srcdir); ${PWD}`; export s; \
5441 $(SET_LIB_PATH) \
5442 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
5445 .PHONY: install-wdiff maybe-install-wdiff
5446 maybe-install-wdiff:
5448 install-wdiff: installdirs
5449 @r=`${PWD}`; export r; \
5450 s=`cd $(srcdir); ${PWD}`; export s; \
5451 $(SET_LIB_PATH) \
5452 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
5455 .PHONY: configure-zip maybe-configure-zip
5456 maybe-configure-zip:
5457 configure-zip:
5458 @test ! -f zip/Makefile || exit 0; \
5459 [ -d zip ] || mkdir zip; \
5460 r=`${PWD}`; export r; \
5461 s=`cd $(srcdir); ${PWD}`; export s; \
5462 CC="$(CC)"; export CC; \
5463 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5464 CXX="$(CXX)"; export CXX; \
5465 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5466 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5467 AR="$(AR)"; export AR; \
5468 AS="$(AS)"; export AS; \
5469 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5470 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5471 LD="$(LD)"; export LD; \
5472 NM="$(NM)"; export NM; \
5473 RANLIB="$(RANLIB)"; export RANLIB; \
5474 WINDRES="$(WINDRES)"; export WINDRES; \
5475 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5476 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5477 fi; \
5478 echo Configuring in zip; \
5479 cd zip || exit 1; \
5480 case $(srcdir) in \
5481 \.) \
5482 srcdiroption="--srcdir=."; \
5483 libsrcdir=".";; \
5484 /* | [A-Za-z]:[\\/]*) \
5485 srcdiroption="--srcdir=$(srcdir)/zip"; \
5486 libsrcdir="$$s/zip";; \
5487 *) \
5488 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5489 libsrcdir="$$s/zip";; \
5490 esac; \
5491 $(SHELL) $${libsrcdir}/configure \
5492 $(HOST_CONFIGARGS) $${srcdiroption} \
5493 || exit 1
5495 .PHONY: all-zip maybe-all-zip
5496 maybe-all-zip:
5497 all-zip: configure-zip
5498 @r=`${PWD}`; export r; \
5499 s=`cd $(srcdir); ${PWD}`; export s; \
5500 $(SET_LIB_PATH) \
5501 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
5503 .PHONY: check-zip maybe-check-zip
5504 maybe-check-zip:
5506 # This module is only tested in a native toolchain.
5507 check-zip:
5508 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5509 r=`${PWD}`; export r; \
5510 s=`cd $(srcdir); ${PWD}`; export s; \
5511 $(SET_LIB_PATH) \
5512 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
5516 .PHONY: install-zip maybe-install-zip
5517 maybe-install-zip:
5519 install-zip: installdirs
5520 @r=`${PWD}`; export r; \
5521 s=`cd $(srcdir); ${PWD}`; export s; \
5522 $(SET_LIB_PATH) \
5523 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
5526 .PHONY: configure-zlib maybe-configure-zlib
5527 maybe-configure-zlib:
5528 configure-zlib:
5529 @test ! -f zlib/Makefile || exit 0; \
5530 [ -d zlib ] || mkdir zlib; \
5531 r=`${PWD}`; export r; \
5532 s=`cd $(srcdir); ${PWD}`; export s; \
5533 CC="$(CC)"; export CC; \
5534 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5535 CXX="$(CXX)"; export CXX; \
5536 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5537 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5538 AR="$(AR)"; export AR; \
5539 AS="$(AS)"; export AS; \
5540 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5541 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5542 LD="$(LD)"; export LD; \
5543 NM="$(NM)"; export NM; \
5544 RANLIB="$(RANLIB)"; export RANLIB; \
5545 WINDRES="$(WINDRES)"; export WINDRES; \
5546 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5547 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5548 fi; \
5549 echo Configuring in zlib; \
5550 cd zlib || exit 1; \
5551 case $(srcdir) in \
5552 \.) \
5553 srcdiroption="--srcdir=."; \
5554 libsrcdir=".";; \
5555 /* | [A-Za-z]:[\\/]*) \
5556 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5557 libsrcdir="$$s/zlib";; \
5558 *) \
5559 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5560 libsrcdir="$$s/zlib";; \
5561 esac; \
5562 $(SHELL) $${libsrcdir}/configure \
5563 $(HOST_CONFIGARGS) $${srcdiroption} \
5564 || exit 1
5566 .PHONY: all-zlib maybe-all-zlib
5567 maybe-all-zlib:
5568 all-zlib: configure-zlib
5569 @r=`${PWD}`; export r; \
5570 s=`cd $(srcdir); ${PWD}`; export s; \
5571 $(SET_LIB_PATH) \
5572 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
5574 .PHONY: check-zlib maybe-check-zlib
5575 maybe-check-zlib:
5577 check-zlib:
5580 .PHONY: install-zlib maybe-install-zlib
5581 maybe-install-zlib:
5583 install-zlib:
5586 .PHONY: configure-gdb maybe-configure-gdb
5587 maybe-configure-gdb:
5588 configure-gdb:
5589 @test ! -f gdb/Makefile || exit 0; \
5590 [ -d gdb ] || mkdir gdb; \
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 gdb; \
5610 cd gdb || exit 1; \
5611 case $(srcdir) in \
5612 \.) \
5613 srcdiroption="--srcdir=."; \
5614 libsrcdir=".";; \
5615 /* | [A-Za-z]:[\\/]*) \
5616 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5617 libsrcdir="$$s/gdb";; \
5618 *) \
5619 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5620 libsrcdir="$$s/gdb";; \
5621 esac; \
5622 $(SHELL) $${libsrcdir}/configure \
5623 $(HOST_CONFIGARGS) $${srcdiroption} \
5624 || exit 1
5626 .PHONY: all-gdb maybe-all-gdb
5627 maybe-all-gdb:
5628 all-gdb: configure-gdb
5629 @r=`${PWD}`; export r; \
5630 s=`cd $(srcdir); ${PWD}`; export s; \
5631 $(SET_LIB_PATH) \
5632 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5634 .PHONY: check-gdb maybe-check-gdb
5635 maybe-check-gdb:
5637 check-gdb:
5638 @r=`${PWD}`; export r; \
5639 s=`cd $(srcdir); ${PWD}`; export s; \
5640 $(SET_LIB_PATH) \
5641 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5644 .PHONY: install-gdb maybe-install-gdb
5645 maybe-install-gdb:
5647 install-gdb: installdirs
5648 @r=`${PWD}`; export r; \
5649 s=`cd $(srcdir); ${PWD}`; export s; \
5650 $(SET_LIB_PATH) \
5651 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5654 .PHONY: configure-expect maybe-configure-expect
5655 maybe-configure-expect:
5656 configure-expect:
5657 @test ! -f expect/Makefile || exit 0; \
5658 [ -d expect ] || mkdir expect; \
5659 r=`${PWD}`; export r; \
5660 s=`cd $(srcdir); ${PWD}`; export s; \
5661 CC="$(CC)"; export CC; \
5662 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5663 CXX="$(CXX)"; export CXX; \
5664 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5665 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5666 AR="$(AR)"; export AR; \
5667 AS="$(AS)"; export AS; \
5668 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5669 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5670 LD="$(LD)"; export LD; \
5671 NM="$(NM)"; export NM; \
5672 RANLIB="$(RANLIB)"; export RANLIB; \
5673 WINDRES="$(WINDRES)"; export WINDRES; \
5674 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5675 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5676 fi; \
5677 echo Configuring in expect; \
5678 cd expect || exit 1; \
5679 case $(srcdir) in \
5680 \.) \
5681 srcdiroption="--srcdir=."; \
5682 libsrcdir=".";; \
5683 /* | [A-Za-z]:[\\/]*) \
5684 srcdiroption="--srcdir=$(srcdir)/expect"; \
5685 libsrcdir="$$s/expect";; \
5686 *) \
5687 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5688 libsrcdir="$$s/expect";; \
5689 esac; \
5690 $(SHELL) $${libsrcdir}/configure \
5691 $(HOST_CONFIGARGS) $${srcdiroption} \
5692 || exit 1
5694 .PHONY: all-expect maybe-all-expect
5695 maybe-all-expect:
5696 all-expect: configure-expect
5697 @r=`${PWD}`; export r; \
5698 s=`cd $(srcdir); ${PWD}`; export s; \
5699 $(SET_LIB_PATH) \
5700 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5702 .PHONY: check-expect maybe-check-expect
5703 maybe-check-expect:
5705 check-expect:
5706 @r=`${PWD}`; export r; \
5707 s=`cd $(srcdir); ${PWD}`; export s; \
5708 $(SET_LIB_PATH) \
5709 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5712 .PHONY: install-expect maybe-install-expect
5713 maybe-install-expect:
5715 install-expect: installdirs
5716 @r=`${PWD}`; export r; \
5717 s=`cd $(srcdir); ${PWD}`; export s; \
5718 $(SET_LIB_PATH) \
5719 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5722 .PHONY: configure-guile maybe-configure-guile
5723 maybe-configure-guile:
5724 configure-guile:
5725 @test ! -f guile/Makefile || exit 0; \
5726 [ -d guile ] || mkdir guile; \
5727 r=`${PWD}`; export r; \
5728 s=`cd $(srcdir); ${PWD}`; export s; \
5729 CC="$(CC)"; export CC; \
5730 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5731 CXX="$(CXX)"; export CXX; \
5732 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5733 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5734 AR="$(AR)"; export AR; \
5735 AS="$(AS)"; export AS; \
5736 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5737 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5738 LD="$(LD)"; export LD; \
5739 NM="$(NM)"; export NM; \
5740 RANLIB="$(RANLIB)"; export RANLIB; \
5741 WINDRES="$(WINDRES)"; export WINDRES; \
5742 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5743 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5744 fi; \
5745 echo Configuring in guile; \
5746 cd guile || exit 1; \
5747 case $(srcdir) in \
5748 \.) \
5749 srcdiroption="--srcdir=."; \
5750 libsrcdir=".";; \
5751 /* | [A-Za-z]:[\\/]*) \
5752 srcdiroption="--srcdir=$(srcdir)/guile"; \
5753 libsrcdir="$$s/guile";; \
5754 *) \
5755 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5756 libsrcdir="$$s/guile";; \
5757 esac; \
5758 $(SHELL) $${libsrcdir}/configure \
5759 $(HOST_CONFIGARGS) $${srcdiroption} \
5760 || exit 1
5762 .PHONY: all-guile maybe-all-guile
5763 maybe-all-guile:
5764 all-guile: configure-guile
5765 @r=`${PWD}`; export r; \
5766 s=`cd $(srcdir); ${PWD}`; export s; \
5767 $(SET_LIB_PATH) \
5768 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5770 .PHONY: check-guile maybe-check-guile
5771 maybe-check-guile:
5773 check-guile:
5774 @r=`${PWD}`; export r; \
5775 s=`cd $(srcdir); ${PWD}`; export s; \
5776 $(SET_LIB_PATH) \
5777 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5780 .PHONY: install-guile maybe-install-guile
5781 maybe-install-guile:
5783 install-guile: installdirs
5784 @r=`${PWD}`; export r; \
5785 s=`cd $(srcdir); ${PWD}`; export s; \
5786 $(SET_LIB_PATH) \
5787 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5790 .PHONY: configure-tk maybe-configure-tk
5791 maybe-configure-tk:
5792 configure-tk:
5793 @test ! -f tk/Makefile || exit 0; \
5794 [ -d tk ] || mkdir tk; \
5795 r=`${PWD}`; export r; \
5796 s=`cd $(srcdir); ${PWD}`; export s; \
5797 CC="$(CC)"; export CC; \
5798 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5799 CXX="$(CXX)"; export CXX; \
5800 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5801 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5802 AR="$(AR)"; export AR; \
5803 AS="$(AS)"; export AS; \
5804 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5805 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5806 LD="$(LD)"; export LD; \
5807 NM="$(NM)"; export NM; \
5808 RANLIB="$(RANLIB)"; export RANLIB; \
5809 WINDRES="$(WINDRES)"; export WINDRES; \
5810 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5811 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5812 fi; \
5813 echo Configuring in tk; \
5814 cd tk || exit 1; \
5815 case $(srcdir) in \
5816 \.) \
5817 srcdiroption="--srcdir=."; \
5818 libsrcdir=".";; \
5819 /* | [A-Za-z]:[\\/]*) \
5820 srcdiroption="--srcdir=$(srcdir)/tk"; \
5821 libsrcdir="$$s/tk";; \
5822 *) \
5823 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5824 libsrcdir="$$s/tk";; \
5825 esac; \
5826 $(SHELL) $${libsrcdir}/configure \
5827 $(HOST_CONFIGARGS) $${srcdiroption} \
5828 || exit 1
5830 .PHONY: all-tk maybe-all-tk
5831 maybe-all-tk:
5832 all-tk: configure-tk
5833 @r=`${PWD}`; export r; \
5834 s=`cd $(srcdir); ${PWD}`; export s; \
5835 $(SET_LIB_PATH) \
5836 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5838 .PHONY: check-tk maybe-check-tk
5839 maybe-check-tk:
5841 check-tk:
5842 @r=`${PWD}`; export r; \
5843 s=`cd $(srcdir); ${PWD}`; export s; \
5844 $(SET_LIB_PATH) \
5845 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5848 .PHONY: install-tk maybe-install-tk
5849 maybe-install-tk:
5851 install-tk: installdirs
5852 @r=`${PWD}`; export r; \
5853 s=`cd $(srcdir); ${PWD}`; export s; \
5854 $(SET_LIB_PATH) \
5855 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5858 .PHONY: configure-tix maybe-configure-tix
5859 maybe-configure-tix:
5860 configure-tix:
5861 @test ! -f tix/Makefile || exit 0; \
5862 [ -d tix ] || mkdir tix; \
5863 r=`${PWD}`; export r; \
5864 s=`cd $(srcdir); ${PWD}`; export s; \
5865 CC="$(CC)"; export CC; \
5866 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5867 CXX="$(CXX)"; export CXX; \
5868 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5869 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5870 AR="$(AR)"; export AR; \
5871 AS="$(AS)"; export AS; \
5872 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5873 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5874 LD="$(LD)"; export LD; \
5875 NM="$(NM)"; export NM; \
5876 RANLIB="$(RANLIB)"; export RANLIB; \
5877 WINDRES="$(WINDRES)"; export WINDRES; \
5878 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5879 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5880 fi; \
5881 echo Configuring in tix; \
5882 cd tix || exit 1; \
5883 case $(srcdir) in \
5884 \.) \
5885 srcdiroption="--srcdir=."; \
5886 libsrcdir=".";; \
5887 /* | [A-Za-z]:[\\/]*) \
5888 srcdiroption="--srcdir=$(srcdir)/tix"; \
5889 libsrcdir="$$s/tix";; \
5890 *) \
5891 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5892 libsrcdir="$$s/tix";; \
5893 esac; \
5894 $(SHELL) $${libsrcdir}/configure \
5895 $(HOST_CONFIGARGS) $${srcdiroption} \
5896 || exit 1
5898 .PHONY: all-tix maybe-all-tix
5899 maybe-all-tix:
5900 all-tix: configure-tix
5901 @r=`${PWD}`; export r; \
5902 s=`cd $(srcdir); ${PWD}`; export s; \
5903 $(SET_LIB_PATH) \
5904 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5906 .PHONY: check-tix maybe-check-tix
5907 maybe-check-tix:
5909 check-tix:
5910 @r=`${PWD}`; export r; \
5911 s=`cd $(srcdir); ${PWD}`; export s; \
5912 $(SET_LIB_PATH) \
5913 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5916 .PHONY: install-tix maybe-install-tix
5917 maybe-install-tix:
5919 install-tix: installdirs
5920 @r=`${PWD}`; export r; \
5921 s=`cd $(srcdir); ${PWD}`; export s; \
5922 $(SET_LIB_PATH) \
5923 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5926 .PHONY: configure-libtermcap maybe-configure-libtermcap
5927 maybe-configure-libtermcap:
5928 configure-libtermcap:
5929 @test ! -f libtermcap/Makefile || exit 0; \
5930 [ -d libtermcap ] || mkdir libtermcap; \
5931 r=`${PWD}`; export r; \
5932 s=`cd $(srcdir); ${PWD}`; export s; \
5933 CC="$(CC)"; export CC; \
5934 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5935 CXX="$(CXX)"; export CXX; \
5936 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5937 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5938 AR="$(AR)"; export AR; \
5939 AS="$(AS)"; export AS; \
5940 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5941 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5942 LD="$(LD)"; export LD; \
5943 NM="$(NM)"; export NM; \
5944 RANLIB="$(RANLIB)"; export RANLIB; \
5945 WINDRES="$(WINDRES)"; export WINDRES; \
5946 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5947 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5948 fi; \
5949 echo Configuring in libtermcap; \
5950 cd libtermcap || exit 1; \
5951 case $(srcdir) in \
5952 \.) \
5953 srcdiroption="--srcdir=."; \
5954 libsrcdir=".";; \
5955 /* | [A-Za-z]:[\\/]*) \
5956 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5957 libsrcdir="$$s/libtermcap";; \
5958 *) \
5959 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5960 libsrcdir="$$s/libtermcap";; \
5961 esac; \
5962 $(SHELL) $${libsrcdir}/configure \
5963 $(HOST_CONFIGARGS) $${srcdiroption} \
5964 || exit 1
5966 .PHONY: all-libtermcap maybe-all-libtermcap
5967 maybe-all-libtermcap:
5968 all-libtermcap: configure-libtermcap
5969 @r=`${PWD}`; export r; \
5970 s=`cd $(srcdir); ${PWD}`; export s; \
5971 $(SET_LIB_PATH) \
5972 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
5974 .PHONY: check-libtermcap maybe-check-libtermcap
5975 maybe-check-libtermcap:
5977 check-libtermcap:
5980 .PHONY: install-libtermcap maybe-install-libtermcap
5981 maybe-install-libtermcap:
5983 install-libtermcap: installdirs
5984 @r=`${PWD}`; export r; \
5985 s=`cd $(srcdir); ${PWD}`; export s; \
5986 $(SET_LIB_PATH) \
5987 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
5990 .PHONY: configure-utils maybe-configure-utils
5991 maybe-configure-utils:
5992 configure-utils:
5993 @test ! -f utils/Makefile || exit 0; \
5994 [ -d utils ] || mkdir utils; \
5995 r=`${PWD}`; export r; \
5996 s=`cd $(srcdir); ${PWD}`; export s; \
5997 CC="$(CC)"; export CC; \
5998 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5999 CXX="$(CXX)"; export CXX; \
6000 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6001 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
6002 AR="$(AR)"; export AR; \
6003 AS="$(AS)"; export AS; \
6004 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6005 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6006 LD="$(LD)"; export LD; \
6007 NM="$(NM)"; export NM; \
6008 RANLIB="$(RANLIB)"; export RANLIB; \
6009 WINDRES="$(WINDRES)"; export WINDRES; \
6010 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6011 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6012 fi; \
6013 echo Configuring in utils; \
6014 cd utils || exit 1; \
6015 case $(srcdir) in \
6016 \.) \
6017 srcdiroption="--srcdir=."; \
6018 libsrcdir=".";; \
6019 /* | [A-Za-z]:[\\/]*) \
6020 srcdiroption="--srcdir=$(srcdir)/utils"; \
6021 libsrcdir="$$s/utils";; \
6022 *) \
6023 srcdiroption="--srcdir=../$(srcdir)/utils"; \
6024 libsrcdir="$$s/utils";; \
6025 esac; \
6026 $(SHELL) $${libsrcdir}/configure \
6027 $(HOST_CONFIGARGS) $${srcdiroption} \
6028 || exit 1
6030 .PHONY: all-utils maybe-all-utils
6031 maybe-all-utils:
6032 all-utils: configure-utils
6033 @r=`${PWD}`; export r; \
6034 s=`cd $(srcdir); ${PWD}`; export s; \
6035 $(SET_LIB_PATH) \
6036 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
6038 .PHONY: check-utils maybe-check-utils
6039 maybe-check-utils:
6041 check-utils:
6044 .PHONY: install-utils maybe-install-utils
6045 maybe-install-utils:
6047 install-utils: installdirs
6048 @r=`${PWD}`; export r; \
6049 s=`cd $(srcdir); ${PWD}`; export s; \
6050 $(SET_LIB_PATH) \
6051 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
6055 # ---------------------------------------
6056 # Modules which run on the target machine
6057 # ---------------------------------------
6059 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
6060 maybe-configure-target-libstdc++-v3:
6062 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6063 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
6064 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
6065 mkdir $(TARGET_SUBDIR)/libstdc++-v3; \
6066 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
6067 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
6069 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
6070 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
6071 [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \
6072 mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
6073 r=`${PWD}`; export r; \
6074 s=`cd $(srcdir); ${PWD}`; export s; \
6075 $(SET_LIB_PATH) \
6076 AR="$(AR_FOR_TARGET)"; export AR; \
6077 AS="$(AS_FOR_TARGET)"; export AS; \
6078 CC="$(CC_FOR_TARGET)"; export CC; \
6079 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6080 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6081 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
6082 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
6083 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6084 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6085 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6086 LD="$(LD_FOR_TARGET)"; export LD; \
6087 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6088 NM="$(NM_FOR_TARGET)"; export NM; \
6089 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6090 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6091 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
6092 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
6093 case $(srcdir) in \
6094 /* | [A-Za-z]:[\\/]*) \
6095 topdir=$(srcdir) ;; \
6096 *) \
6097 case "$(TARGET_SUBDIR)" in \
6098 .) topdir="../$(srcdir)" ;; \
6099 *) topdir="../../$(srcdir)" ;; \
6100 esac ;; \
6101 esac; \
6102 if [ "$(srcdir)" = "." ] ; then \
6103 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6104 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
6105 if [ -f Makefile ]; then \
6106 if $(MAKE) distclean; then \
6107 true; \
6108 else \
6109 exit 1; \
6110 fi; \
6111 else \
6112 true; \
6113 fi; \
6114 else \
6115 exit 1; \
6116 fi; \
6117 else \
6118 true; \
6119 fi; \
6120 srcdiroption="--srcdir=."; \
6121 libsrcdir="."; \
6122 else \
6123 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
6124 libsrcdir="$$s/libstdc++-v3"; \
6125 fi; \
6126 rm -f no-such-file || : ; \
6127 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6128 $(TARGET_CONFIGARGS) $${srcdiroption} \
6129 --with-target-subdir="$(TARGET_SUBDIR)" \
6130 || exit 1
6132 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
6133 maybe-all-target-libstdc++-v3:
6134 all-target-libstdc++-v3: configure-target-libstdc++-v3
6135 @r=`${PWD}`; export r; \
6136 s=`cd $(srcdir); ${PWD}`; export s; \
6137 $(SET_LIB_PATH) \
6138 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6139 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
6141 .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
6142 maybe-check-target-libstdc++-v3:
6144 check-target-libstdc++-v3:
6145 @r=`${PWD}`; export r; \
6146 s=`cd $(srcdir); ${PWD}`; export s; \
6147 $(SET_LIB_PATH) \
6148 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6149 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6152 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
6153 maybe-install-target-libstdc++-v3:
6155 install-target-libstdc++-v3: installdirs
6156 @r=`${PWD}`; export r; \
6157 s=`cd $(srcdir); ${PWD}`; export s; \
6158 $(SET_LIB_PATH) \
6159 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
6160 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6163 .PHONY: configure-target-newlib maybe-configure-target-newlib
6164 maybe-configure-target-newlib:
6166 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6167 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
6168 @[ -d $(TARGET_SUBDIR)/newlib ] || \
6169 mkdir $(TARGET_SUBDIR)/newlib; \
6170 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
6171 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
6173 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
6174 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
6175 [ -d $(TARGET_SUBDIR)/newlib ] || \
6176 mkdir $(TARGET_SUBDIR)/newlib;\
6177 r=`${PWD}`; export r; \
6178 s=`cd $(srcdir); ${PWD}`; export s; \
6179 $(SET_LIB_PATH) \
6180 AR="$(AR_FOR_TARGET)"; export AR; \
6181 AS="$(AS_FOR_TARGET)"; export AS; \
6182 CC="$(CC_FOR_TARGET)"; export CC; \
6183 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6184 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6185 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6186 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6187 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6188 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6189 LD="$(LD_FOR_TARGET)"; export LD; \
6190 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6191 NM="$(NM_FOR_TARGET)"; export NM; \
6192 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6193 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6194 echo Configuring in $(TARGET_SUBDIR)/newlib; \
6195 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
6196 case $(srcdir) in \
6197 /* | [A-Za-z]:[\\/]*) \
6198 topdir=$(srcdir) ;; \
6199 *) \
6200 case "$(TARGET_SUBDIR)" in \
6201 .) topdir="../$(srcdir)" ;; \
6202 *) topdir="../../$(srcdir)" ;; \
6203 esac ;; \
6204 esac; \
6205 if [ "$(srcdir)" = "." ] ; then \
6206 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6207 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
6208 if [ -f Makefile ]; then \
6209 if $(MAKE) distclean; then \
6210 true; \
6211 else \
6212 exit 1; \
6213 fi; \
6214 else \
6215 true; \
6216 fi; \
6217 else \
6218 exit 1; \
6219 fi; \
6220 else \
6221 true; \
6222 fi; \
6223 srcdiroption="--srcdir=."; \
6224 libsrcdir="."; \
6225 else \
6226 srcdiroption="--srcdir=$${topdir}/newlib"; \
6227 libsrcdir="$$s/newlib"; \
6228 fi; \
6229 rm -f no-such-file || : ; \
6230 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6231 $(TARGET_CONFIGARGS) $${srcdiroption} \
6232 --with-target-subdir="$(TARGET_SUBDIR)" \
6233 || exit 1
6235 .PHONY: all-target-newlib maybe-all-target-newlib
6236 maybe-all-target-newlib:
6237 all-target-newlib: configure-target-newlib
6238 @r=`${PWD}`; export r; \
6239 s=`cd $(srcdir); ${PWD}`; export s; \
6240 $(SET_LIB_PATH) \
6241 (cd $(TARGET_SUBDIR)/newlib && \
6242 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6244 .PHONY: check-target-newlib maybe-check-target-newlib
6245 maybe-check-target-newlib:
6247 check-target-newlib:
6248 @r=`${PWD}`; export r; \
6249 s=`cd $(srcdir); ${PWD}`; export s; \
6250 $(SET_LIB_PATH) \
6251 (cd $(TARGET_SUBDIR)/newlib && \
6252 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6255 .PHONY: install-target-newlib maybe-install-target-newlib
6256 maybe-install-target-newlib:
6258 install-target-newlib: installdirs
6259 @r=`${PWD}`; export r; \
6260 s=`cd $(srcdir); ${PWD}`; export s; \
6261 $(SET_LIB_PATH) \
6262 (cd $(TARGET_SUBDIR)/newlib && \
6263 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6266 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
6267 maybe-configure-target-libf2c:
6269 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6270 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
6271 @[ -d $(TARGET_SUBDIR)/libf2c ] || \
6272 mkdir $(TARGET_SUBDIR)/libf2c; \
6273 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
6274 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
6276 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
6277 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
6278 [ -d $(TARGET_SUBDIR)/libf2c ] || \
6279 mkdir $(TARGET_SUBDIR)/libf2c;\
6280 r=`${PWD}`; export r; \
6281 s=`cd $(srcdir); ${PWD}`; export s; \
6282 $(SET_LIB_PATH) \
6283 AR="$(AR_FOR_TARGET)"; export AR; \
6284 AS="$(AS_FOR_TARGET)"; export AS; \
6285 CC="$(CC_FOR_TARGET)"; export CC; \
6286 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6287 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6288 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6289 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6290 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6291 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6292 LD="$(LD_FOR_TARGET)"; export LD; \
6293 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6294 NM="$(NM_FOR_TARGET)"; export NM; \
6295 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6296 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6297 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
6298 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
6299 case $(srcdir) in \
6300 /* | [A-Za-z]:[\\/]*) \
6301 topdir=$(srcdir) ;; \
6302 *) \
6303 case "$(TARGET_SUBDIR)" in \
6304 .) topdir="../$(srcdir)" ;; \
6305 *) topdir="../../$(srcdir)" ;; \
6306 esac ;; \
6307 esac; \
6308 if [ "$(srcdir)" = "." ] ; then \
6309 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6310 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
6311 if [ -f Makefile ]; then \
6312 if $(MAKE) distclean; then \
6313 true; \
6314 else \
6315 exit 1; \
6316 fi; \
6317 else \
6318 true; \
6319 fi; \
6320 else \
6321 exit 1; \
6322 fi; \
6323 else \
6324 true; \
6325 fi; \
6326 srcdiroption="--srcdir=."; \
6327 libsrcdir="."; \
6328 else \
6329 srcdiroption="--srcdir=$${topdir}/libf2c"; \
6330 libsrcdir="$$s/libf2c"; \
6331 fi; \
6332 rm -f no-such-file || : ; \
6333 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6334 $(TARGET_CONFIGARGS) $${srcdiroption} \
6335 --with-target-subdir="$(TARGET_SUBDIR)" \
6336 || exit 1
6338 .PHONY: all-target-libf2c maybe-all-target-libf2c
6339 maybe-all-target-libf2c:
6340 all-target-libf2c: configure-target-libf2c
6341 @r=`${PWD}`; export r; \
6342 s=`cd $(srcdir); ${PWD}`; export s; \
6343 $(SET_LIB_PATH) \
6344 (cd $(TARGET_SUBDIR)/libf2c && \
6345 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6347 .PHONY: check-target-libf2c maybe-check-target-libf2c
6348 maybe-check-target-libf2c:
6350 check-target-libf2c:
6351 @r=`${PWD}`; export r; \
6352 s=`cd $(srcdir); ${PWD}`; export s; \
6353 $(SET_LIB_PATH) \
6354 (cd $(TARGET_SUBDIR)/libf2c && \
6355 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6358 .PHONY: install-target-libf2c maybe-install-target-libf2c
6359 maybe-install-target-libf2c:
6361 install-target-libf2c: installdirs
6362 @r=`${PWD}`; export r; \
6363 s=`cd $(srcdir); ${PWD}`; export s; \
6364 $(SET_LIB_PATH) \
6365 (cd $(TARGET_SUBDIR)/libf2c && \
6366 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6369 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
6370 maybe-configure-target-libobjc:
6372 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6373 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
6374 @[ -d $(TARGET_SUBDIR)/libobjc ] || \
6375 mkdir $(TARGET_SUBDIR)/libobjc; \
6376 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
6377 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
6379 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
6380 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
6381 [ -d $(TARGET_SUBDIR)/libobjc ] || \
6382 mkdir $(TARGET_SUBDIR)/libobjc;\
6383 r=`${PWD}`; export r; \
6384 s=`cd $(srcdir); ${PWD}`; export s; \
6385 $(SET_LIB_PATH) \
6386 AR="$(AR_FOR_TARGET)"; export AR; \
6387 AS="$(AS_FOR_TARGET)"; export AS; \
6388 CC="$(CC_FOR_TARGET)"; export CC; \
6389 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6390 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6391 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6392 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6393 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6394 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6395 LD="$(LD_FOR_TARGET)"; export LD; \
6396 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6397 NM="$(NM_FOR_TARGET)"; export NM; \
6398 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6399 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6400 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
6401 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
6402 case $(srcdir) in \
6403 /* | [A-Za-z]:[\\/]*) \
6404 topdir=$(srcdir) ;; \
6405 *) \
6406 case "$(TARGET_SUBDIR)" in \
6407 .) topdir="../$(srcdir)" ;; \
6408 *) topdir="../../$(srcdir)" ;; \
6409 esac ;; \
6410 esac; \
6411 if [ "$(srcdir)" = "." ] ; then \
6412 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6413 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
6414 if [ -f Makefile ]; then \
6415 if $(MAKE) distclean; then \
6416 true; \
6417 else \
6418 exit 1; \
6419 fi; \
6420 else \
6421 true; \
6422 fi; \
6423 else \
6424 exit 1; \
6425 fi; \
6426 else \
6427 true; \
6428 fi; \
6429 srcdiroption="--srcdir=."; \
6430 libsrcdir="."; \
6431 else \
6432 srcdiroption="--srcdir=$${topdir}/libobjc"; \
6433 libsrcdir="$$s/libobjc"; \
6434 fi; \
6435 rm -f no-such-file || : ; \
6436 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6437 $(TARGET_CONFIGARGS) $${srcdiroption} \
6438 --with-target-subdir="$(TARGET_SUBDIR)" \
6439 || exit 1
6441 .PHONY: all-target-libobjc maybe-all-target-libobjc
6442 maybe-all-target-libobjc:
6443 all-target-libobjc: configure-target-libobjc
6444 @r=`${PWD}`; export r; \
6445 s=`cd $(srcdir); ${PWD}`; export s; \
6446 $(SET_LIB_PATH) \
6447 (cd $(TARGET_SUBDIR)/libobjc && \
6448 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6450 .PHONY: check-target-libobjc maybe-check-target-libobjc
6451 maybe-check-target-libobjc:
6453 check-target-libobjc:
6454 @r=`${PWD}`; export r; \
6455 s=`cd $(srcdir); ${PWD}`; export s; \
6456 $(SET_LIB_PATH) \
6457 (cd $(TARGET_SUBDIR)/libobjc && \
6458 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6461 .PHONY: install-target-libobjc maybe-install-target-libobjc
6462 maybe-install-target-libobjc:
6464 install-target-libobjc: installdirs
6465 @r=`${PWD}`; export r; \
6466 s=`cd $(srcdir); ${PWD}`; export s; \
6467 $(SET_LIB_PATH) \
6468 (cd $(TARGET_SUBDIR)/libobjc && \
6469 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6472 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6473 maybe-configure-target-libtermcap:
6475 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6476 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
6477 @[ -d $(TARGET_SUBDIR)/libtermcap ] || \
6478 mkdir $(TARGET_SUBDIR)/libtermcap; \
6479 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
6480 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
6482 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
6483 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
6484 [ -d $(TARGET_SUBDIR)/libtermcap ] || \
6485 mkdir $(TARGET_SUBDIR)/libtermcap;\
6486 r=`${PWD}`; export r; \
6487 s=`cd $(srcdir); ${PWD}`; export s; \
6488 $(SET_LIB_PATH) \
6489 AR="$(AR_FOR_TARGET)"; export AR; \
6490 AS="$(AS_FOR_TARGET)"; export AS; \
6491 CC="$(CC_FOR_TARGET)"; export CC; \
6492 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6493 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6494 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6495 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6496 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6497 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6498 LD="$(LD_FOR_TARGET)"; export LD; \
6499 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6500 NM="$(NM_FOR_TARGET)"; export NM; \
6501 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6502 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6503 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6504 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6505 case $(srcdir) in \
6506 /* | [A-Za-z]:[\\/]*) \
6507 topdir=$(srcdir) ;; \
6508 *) \
6509 case "$(TARGET_SUBDIR)" in \
6510 .) topdir="../$(srcdir)" ;; \
6511 *) topdir="../../$(srcdir)" ;; \
6512 esac ;; \
6513 esac; \
6514 if [ "$(srcdir)" = "." ] ; then \
6515 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6516 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6517 if [ -f Makefile ]; then \
6518 if $(MAKE) distclean; then \
6519 true; \
6520 else \
6521 exit 1; \
6522 fi; \
6523 else \
6524 true; \
6525 fi; \
6526 else \
6527 exit 1; \
6528 fi; \
6529 else \
6530 true; \
6531 fi; \
6532 srcdiroption="--srcdir=."; \
6533 libsrcdir="."; \
6534 else \
6535 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6536 libsrcdir="$$s/libtermcap"; \
6537 fi; \
6538 rm -f no-such-file || : ; \
6539 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6540 $(TARGET_CONFIGARGS) $${srcdiroption} \
6541 --with-target-subdir="$(TARGET_SUBDIR)" \
6542 || exit 1
6544 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
6545 maybe-all-target-libtermcap:
6546 all-target-libtermcap: configure-target-libtermcap
6547 @r=`${PWD}`; export r; \
6548 s=`cd $(srcdir); ${PWD}`; export s; \
6549 $(SET_LIB_PATH) \
6550 (cd $(TARGET_SUBDIR)/libtermcap && \
6551 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6553 .PHONY: check-target-libtermcap maybe-check-target-libtermcap
6554 maybe-check-target-libtermcap:
6556 # Dummy target for uncheckable module.
6557 check-target-libtermcap:
6560 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
6561 maybe-install-target-libtermcap:
6563 install-target-libtermcap: installdirs
6564 @r=`${PWD}`; export r; \
6565 s=`cd $(srcdir); ${PWD}`; export s; \
6566 $(SET_LIB_PATH) \
6567 (cd $(TARGET_SUBDIR)/libtermcap && \
6568 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6571 .PHONY: configure-target-winsup maybe-configure-target-winsup
6572 maybe-configure-target-winsup:
6574 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6575 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
6576 @[ -d $(TARGET_SUBDIR)/winsup ] || \
6577 mkdir $(TARGET_SUBDIR)/winsup; \
6578 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
6579 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
6581 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
6582 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
6583 [ -d $(TARGET_SUBDIR)/winsup ] || \
6584 mkdir $(TARGET_SUBDIR)/winsup;\
6585 r=`${PWD}`; export r; \
6586 s=`cd $(srcdir); ${PWD}`; export s; \
6587 $(SET_LIB_PATH) \
6588 AR="$(AR_FOR_TARGET)"; export AR; \
6589 AS="$(AS_FOR_TARGET)"; export AS; \
6590 CC="$(CC_FOR_TARGET)"; export CC; \
6591 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6592 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6593 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6594 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6595 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6596 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6597 LD="$(LD_FOR_TARGET)"; export LD; \
6598 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6599 NM="$(NM_FOR_TARGET)"; export NM; \
6600 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6601 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6602 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6603 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6604 case $(srcdir) in \
6605 /* | [A-Za-z]:[\\/]*) \
6606 topdir=$(srcdir) ;; \
6607 *) \
6608 case "$(TARGET_SUBDIR)" in \
6609 .) topdir="../$(srcdir)" ;; \
6610 *) topdir="../../$(srcdir)" ;; \
6611 esac ;; \
6612 esac; \
6613 if [ "$(srcdir)" = "." ] ; then \
6614 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6615 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6616 if [ -f Makefile ]; then \
6617 if $(MAKE) distclean; then \
6618 true; \
6619 else \
6620 exit 1; \
6621 fi; \
6622 else \
6623 true; \
6624 fi; \
6625 else \
6626 exit 1; \
6627 fi; \
6628 else \
6629 true; \
6630 fi; \
6631 srcdiroption="--srcdir=."; \
6632 libsrcdir="."; \
6633 else \
6634 srcdiroption="--srcdir=$${topdir}/winsup"; \
6635 libsrcdir="$$s/winsup"; \
6636 fi; \
6637 rm -f no-such-file || : ; \
6638 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6639 $(TARGET_CONFIGARGS) $${srcdiroption} \
6640 --with-target-subdir="$(TARGET_SUBDIR)" \
6641 || exit 1
6643 .PHONY: all-target-winsup maybe-all-target-winsup
6644 maybe-all-target-winsup:
6645 all-target-winsup: configure-target-winsup
6646 @r=`${PWD}`; export r; \
6647 s=`cd $(srcdir); ${PWD}`; export s; \
6648 $(SET_LIB_PATH) \
6649 (cd $(TARGET_SUBDIR)/winsup && \
6650 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6652 .PHONY: check-target-winsup maybe-check-target-winsup
6653 maybe-check-target-winsup:
6655 check-target-winsup:
6656 @r=`${PWD}`; export r; \
6657 s=`cd $(srcdir); ${PWD}`; export s; \
6658 $(SET_LIB_PATH) \
6659 (cd $(TARGET_SUBDIR)/winsup && \
6660 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6663 .PHONY: install-target-winsup maybe-install-target-winsup
6664 maybe-install-target-winsup:
6666 install-target-winsup: installdirs
6667 @r=`${PWD}`; export r; \
6668 s=`cd $(srcdir); ${PWD}`; export s; \
6669 $(SET_LIB_PATH) \
6670 (cd $(TARGET_SUBDIR)/winsup && \
6671 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6674 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
6675 maybe-configure-target-libgloss:
6677 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6678 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
6679 @[ -d $(TARGET_SUBDIR)/libgloss ] || \
6680 mkdir $(TARGET_SUBDIR)/libgloss; \
6681 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
6682 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
6684 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
6685 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
6686 [ -d $(TARGET_SUBDIR)/libgloss ] || \
6687 mkdir $(TARGET_SUBDIR)/libgloss;\
6688 r=`${PWD}`; export r; \
6689 s=`cd $(srcdir); ${PWD}`; export s; \
6690 $(SET_LIB_PATH) \
6691 AR="$(AR_FOR_TARGET)"; export AR; \
6692 AS="$(AS_FOR_TARGET)"; export AS; \
6693 CC="$(CC_FOR_TARGET)"; export CC; \
6694 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6695 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6696 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6697 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6698 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6699 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6700 LD="$(LD_FOR_TARGET)"; export LD; \
6701 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6702 NM="$(NM_FOR_TARGET)"; export NM; \
6703 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6704 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6705 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6706 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6707 case $(srcdir) in \
6708 /* | [A-Za-z]:[\\/]*) \
6709 topdir=$(srcdir) ;; \
6710 *) \
6711 case "$(TARGET_SUBDIR)" in \
6712 .) topdir="../$(srcdir)" ;; \
6713 *) topdir="../../$(srcdir)" ;; \
6714 esac ;; \
6715 esac; \
6716 if [ "$(srcdir)" = "." ] ; then \
6717 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6718 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6719 if [ -f Makefile ]; then \
6720 if $(MAKE) distclean; then \
6721 true; \
6722 else \
6723 exit 1; \
6724 fi; \
6725 else \
6726 true; \
6727 fi; \
6728 else \
6729 exit 1; \
6730 fi; \
6731 else \
6732 true; \
6733 fi; \
6734 srcdiroption="--srcdir=."; \
6735 libsrcdir="."; \
6736 else \
6737 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6738 libsrcdir="$$s/libgloss"; \
6739 fi; \
6740 rm -f no-such-file || : ; \
6741 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6742 $(TARGET_CONFIGARGS) $${srcdiroption} \
6743 --with-target-subdir="$(TARGET_SUBDIR)" \
6744 || exit 1
6746 .PHONY: all-target-libgloss maybe-all-target-libgloss
6747 maybe-all-target-libgloss:
6748 all-target-libgloss: configure-target-libgloss
6749 @r=`${PWD}`; export r; \
6750 s=`cd $(srcdir); ${PWD}`; export s; \
6751 $(SET_LIB_PATH) \
6752 (cd $(TARGET_SUBDIR)/libgloss && \
6753 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6755 .PHONY: check-target-libgloss maybe-check-target-libgloss
6756 maybe-check-target-libgloss:
6758 # Dummy target for uncheckable module.
6759 check-target-libgloss:
6762 .PHONY: install-target-libgloss maybe-install-target-libgloss
6763 maybe-install-target-libgloss:
6765 install-target-libgloss: installdirs
6766 @r=`${PWD}`; export r; \
6767 s=`cd $(srcdir); ${PWD}`; export s; \
6768 $(SET_LIB_PATH) \
6769 (cd $(TARGET_SUBDIR)/libgloss && \
6770 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6773 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
6774 maybe-configure-target-libiberty:
6776 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6777 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
6778 @[ -d $(TARGET_SUBDIR)/libiberty ] || \
6779 mkdir $(TARGET_SUBDIR)/libiberty; \
6780 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
6781 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
6783 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
6784 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
6785 [ -d $(TARGET_SUBDIR)/libiberty ] || \
6786 mkdir $(TARGET_SUBDIR)/libiberty;\
6787 r=`${PWD}`; export r; \
6788 s=`cd $(srcdir); ${PWD}`; export s; \
6789 $(SET_LIB_PATH) \
6790 AR="$(AR_FOR_TARGET)"; export AR; \
6791 AS="$(AS_FOR_TARGET)"; export AS; \
6792 CC="$(CC_FOR_TARGET)"; export CC; \
6793 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6794 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6795 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6796 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6797 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6798 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6799 LD="$(LD_FOR_TARGET)"; export LD; \
6800 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6801 NM="$(NM_FOR_TARGET)"; export NM; \
6802 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6803 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6804 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6805 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6806 case $(srcdir) in \
6807 /* | [A-Za-z]:[\\/]*) \
6808 topdir=$(srcdir) ;; \
6809 *) \
6810 case "$(TARGET_SUBDIR)" in \
6811 .) topdir="../$(srcdir)" ;; \
6812 *) topdir="../../$(srcdir)" ;; \
6813 esac ;; \
6814 esac; \
6815 if [ "$(srcdir)" = "." ] ; then \
6816 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6817 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6818 if [ -f Makefile ]; then \
6819 if $(MAKE) distclean; then \
6820 true; \
6821 else \
6822 exit 1; \
6823 fi; \
6824 else \
6825 true; \
6826 fi; \
6827 else \
6828 exit 1; \
6829 fi; \
6830 else \
6831 true; \
6832 fi; \
6833 srcdiroption="--srcdir=."; \
6834 libsrcdir="."; \
6835 else \
6836 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6837 libsrcdir="$$s/libiberty"; \
6838 fi; \
6839 rm -f no-such-file || : ; \
6840 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6841 $(TARGET_CONFIGARGS) $${srcdiroption} \
6842 --with-target-subdir="$(TARGET_SUBDIR)" \
6843 || exit 1
6845 .PHONY: all-target-libiberty maybe-all-target-libiberty
6846 maybe-all-target-libiberty:
6847 all-target-libiberty: configure-target-libiberty
6848 @r=`${PWD}`; export r; \
6849 s=`cd $(srcdir); ${PWD}`; export s; \
6850 $(SET_LIB_PATH) \
6851 (cd $(TARGET_SUBDIR)/libiberty && \
6852 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6854 .PHONY: check-target-libiberty maybe-check-target-libiberty
6855 maybe-check-target-libiberty:
6857 check-target-libiberty:
6858 @r=`${PWD}`; export r; \
6859 s=`cd $(srcdir); ${PWD}`; export s; \
6860 $(SET_LIB_PATH) \
6861 (cd $(TARGET_SUBDIR)/libiberty && \
6862 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6865 .PHONY: install-target-libiberty maybe-install-target-libiberty
6866 maybe-install-target-libiberty:
6868 install-target-libiberty: installdirs
6869 @r=`${PWD}`; export r; \
6870 s=`cd $(srcdir); ${PWD}`; export s; \
6871 $(SET_LIB_PATH) \
6872 (cd $(TARGET_SUBDIR)/libiberty && \
6873 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6876 .PHONY: configure-target-gperf maybe-configure-target-gperf
6877 maybe-configure-target-gperf:
6879 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6880 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
6881 @[ -d $(TARGET_SUBDIR)/gperf ] || \
6882 mkdir $(TARGET_SUBDIR)/gperf; \
6883 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
6884 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
6886 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
6887 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
6888 [ -d $(TARGET_SUBDIR)/gperf ] || \
6889 mkdir $(TARGET_SUBDIR)/gperf;\
6890 r=`${PWD}`; export r; \
6891 s=`cd $(srcdir); ${PWD}`; export s; \
6892 $(SET_LIB_PATH) \
6893 AR="$(AR_FOR_TARGET)"; export AR; \
6894 AS="$(AS_FOR_TARGET)"; export AS; \
6895 CC="$(CC_FOR_TARGET)"; export CC; \
6896 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6897 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
6898 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6899 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6900 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6901 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6902 LD="$(LD_FOR_TARGET)"; export LD; \
6903 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6904 NM="$(NM_FOR_TARGET)"; export NM; \
6905 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6906 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6907 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6908 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6909 case $(srcdir) in \
6910 /* | [A-Za-z]:[\\/]*) \
6911 topdir=$(srcdir) ;; \
6912 *) \
6913 case "$(TARGET_SUBDIR)" in \
6914 .) topdir="../$(srcdir)" ;; \
6915 *) topdir="../../$(srcdir)" ;; \
6916 esac ;; \
6917 esac; \
6918 if [ "$(srcdir)" = "." ] ; then \
6919 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6920 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6921 if [ -f Makefile ]; then \
6922 if $(MAKE) distclean; then \
6923 true; \
6924 else \
6925 exit 1; \
6926 fi; \
6927 else \
6928 true; \
6929 fi; \
6930 else \
6931 exit 1; \
6932 fi; \
6933 else \
6934 true; \
6935 fi; \
6936 srcdiroption="--srcdir=."; \
6937 libsrcdir="."; \
6938 else \
6939 srcdiroption="--srcdir=$${topdir}/gperf"; \
6940 libsrcdir="$$s/gperf"; \
6941 fi; \
6942 rm -f no-such-file || : ; \
6943 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6944 $(TARGET_CONFIGARGS) $${srcdiroption} \
6945 --with-target-subdir="$(TARGET_SUBDIR)" \
6946 || exit 1
6948 .PHONY: all-target-gperf maybe-all-target-gperf
6949 maybe-all-target-gperf:
6950 all-target-gperf: configure-target-gperf
6951 @r=`${PWD}`; export r; \
6952 s=`cd $(srcdir); ${PWD}`; export s; \
6953 $(SET_LIB_PATH) \
6954 (cd $(TARGET_SUBDIR)/gperf && \
6955 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6957 .PHONY: check-target-gperf maybe-check-target-gperf
6958 maybe-check-target-gperf:
6960 check-target-gperf:
6961 @r=`${PWD}`; export r; \
6962 s=`cd $(srcdir); ${PWD}`; export s; \
6963 $(SET_LIB_PATH) \
6964 (cd $(TARGET_SUBDIR)/gperf && \
6965 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6968 .PHONY: install-target-gperf maybe-install-target-gperf
6969 maybe-install-target-gperf:
6971 install-target-gperf: installdirs
6972 @r=`${PWD}`; export r; \
6973 s=`cd $(srcdir); ${PWD}`; export s; \
6974 $(SET_LIB_PATH) \
6975 (cd $(TARGET_SUBDIR)/gperf && \
6976 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6979 .PHONY: configure-target-examples maybe-configure-target-examples
6980 maybe-configure-target-examples:
6982 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6983 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
6984 @[ -d $(TARGET_SUBDIR)/examples ] || \
6985 mkdir $(TARGET_SUBDIR)/examples; \
6986 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
6987 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
6989 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
6990 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
6991 [ -d $(TARGET_SUBDIR)/examples ] || \
6992 mkdir $(TARGET_SUBDIR)/examples;\
6993 r=`${PWD}`; export r; \
6994 s=`cd $(srcdir); ${PWD}`; export s; \
6995 $(SET_LIB_PATH) \
6996 AR="$(AR_FOR_TARGET)"; export AR; \
6997 AS="$(AS_FOR_TARGET)"; export AS; \
6998 CC="$(CC_FOR_TARGET)"; export CC; \
6999 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7000 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7001 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7002 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7003 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7004 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7005 LD="$(LD_FOR_TARGET)"; export LD; \
7006 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7007 NM="$(NM_FOR_TARGET)"; export NM; \
7008 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7009 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7010 echo Configuring in $(TARGET_SUBDIR)/examples; \
7011 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
7012 case $(srcdir) in \
7013 /* | [A-Za-z]:[\\/]*) \
7014 topdir=$(srcdir) ;; \
7015 *) \
7016 case "$(TARGET_SUBDIR)" in \
7017 .) topdir="../$(srcdir)" ;; \
7018 *) topdir="../../$(srcdir)" ;; \
7019 esac ;; \
7020 esac; \
7021 if [ "$(srcdir)" = "." ] ; then \
7022 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7023 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
7024 if [ -f Makefile ]; then \
7025 if $(MAKE) distclean; then \
7026 true; \
7027 else \
7028 exit 1; \
7029 fi; \
7030 else \
7031 true; \
7032 fi; \
7033 else \
7034 exit 1; \
7035 fi; \
7036 else \
7037 true; \
7038 fi; \
7039 srcdiroption="--srcdir=."; \
7040 libsrcdir="."; \
7041 else \
7042 srcdiroption="--srcdir=$${topdir}/examples"; \
7043 libsrcdir="$$s/examples"; \
7044 fi; \
7045 rm -f no-such-file || : ; \
7046 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7047 $(TARGET_CONFIGARGS) $${srcdiroption} \
7048 --with-target-subdir="$(TARGET_SUBDIR)" \
7049 || exit 1
7051 .PHONY: all-target-examples maybe-all-target-examples
7052 maybe-all-target-examples:
7053 all-target-examples: configure-target-examples
7054 @r=`${PWD}`; export r; \
7055 s=`cd $(srcdir); ${PWD}`; export s; \
7056 $(SET_LIB_PATH) \
7057 (cd $(TARGET_SUBDIR)/examples && \
7058 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7060 .PHONY: check-target-examples maybe-check-target-examples
7061 maybe-check-target-examples:
7063 # Dummy target for uncheckable module.
7064 check-target-examples:
7067 .PHONY: install-target-examples maybe-install-target-examples
7068 maybe-install-target-examples:
7070 # Dummy target for uninstallable.
7071 install-target-examples:
7074 .PHONY: configure-target-libffi maybe-configure-target-libffi
7075 maybe-configure-target-libffi:
7077 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7078 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
7079 @[ -d $(TARGET_SUBDIR)/libffi ] || \
7080 mkdir $(TARGET_SUBDIR)/libffi; \
7081 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
7082 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
7084 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
7085 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
7086 [ -d $(TARGET_SUBDIR)/libffi ] || \
7087 mkdir $(TARGET_SUBDIR)/libffi;\
7088 r=`${PWD}`; export r; \
7089 s=`cd $(srcdir); ${PWD}`; export s; \
7090 $(SET_LIB_PATH) \
7091 AR="$(AR_FOR_TARGET)"; export AR; \
7092 AS="$(AS_FOR_TARGET)"; export AS; \
7093 CC="$(CC_FOR_TARGET)"; export CC; \
7094 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7095 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7096 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7097 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7098 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7099 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7100 LD="$(LD_FOR_TARGET)"; export LD; \
7101 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7102 NM="$(NM_FOR_TARGET)"; export NM; \
7103 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7104 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7105 echo Configuring in $(TARGET_SUBDIR)/libffi; \
7106 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
7107 case $(srcdir) in \
7108 /* | [A-Za-z]:[\\/]*) \
7109 topdir=$(srcdir) ;; \
7110 *) \
7111 case "$(TARGET_SUBDIR)" in \
7112 .) topdir="../$(srcdir)" ;; \
7113 *) topdir="../../$(srcdir)" ;; \
7114 esac ;; \
7115 esac; \
7116 if [ "$(srcdir)" = "." ] ; then \
7117 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7118 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
7119 if [ -f Makefile ]; then \
7120 if $(MAKE) distclean; then \
7121 true; \
7122 else \
7123 exit 1; \
7124 fi; \
7125 else \
7126 true; \
7127 fi; \
7128 else \
7129 exit 1; \
7130 fi; \
7131 else \
7132 true; \
7133 fi; \
7134 srcdiroption="--srcdir=."; \
7135 libsrcdir="."; \
7136 else \
7137 srcdiroption="--srcdir=$${topdir}/libffi"; \
7138 libsrcdir="$$s/libffi"; \
7139 fi; \
7140 rm -f no-such-file || : ; \
7141 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7142 $(TARGET_CONFIGARGS) $${srcdiroption} \
7143 --with-target-subdir="$(TARGET_SUBDIR)" \
7144 || exit 1
7146 .PHONY: all-target-libffi maybe-all-target-libffi
7147 maybe-all-target-libffi:
7148 all-target-libffi: configure-target-libffi
7149 @r=`${PWD}`; export r; \
7150 s=`cd $(srcdir); ${PWD}`; export s; \
7151 $(SET_LIB_PATH) \
7152 (cd $(TARGET_SUBDIR)/libffi && \
7153 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7155 .PHONY: check-target-libffi maybe-check-target-libffi
7156 maybe-check-target-libffi:
7158 check-target-libffi:
7159 @r=`${PWD}`; export r; \
7160 s=`cd $(srcdir); ${PWD}`; export s; \
7161 $(SET_LIB_PATH) \
7162 (cd $(TARGET_SUBDIR)/libffi && \
7163 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7166 .PHONY: install-target-libffi maybe-install-target-libffi
7167 maybe-install-target-libffi:
7169 install-target-libffi: installdirs
7170 @r=`${PWD}`; export r; \
7171 s=`cd $(srcdir); ${PWD}`; export s; \
7172 $(SET_LIB_PATH) \
7173 (cd $(TARGET_SUBDIR)/libffi && \
7174 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7177 .PHONY: configure-target-libjava maybe-configure-target-libjava
7178 maybe-configure-target-libjava:
7180 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7181 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
7182 @[ -d $(TARGET_SUBDIR)/libjava ] || \
7183 mkdir $(TARGET_SUBDIR)/libjava; \
7184 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
7185 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
7187 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
7188 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
7189 [ -d $(TARGET_SUBDIR)/libjava ] || \
7190 mkdir $(TARGET_SUBDIR)/libjava;\
7191 r=`${PWD}`; export r; \
7192 s=`cd $(srcdir); ${PWD}`; export s; \
7193 $(SET_LIB_PATH) \
7194 AR="$(AR_FOR_TARGET)"; export AR; \
7195 AS="$(AS_FOR_TARGET)"; export AS; \
7196 CC="$(CC_FOR_TARGET)"; export CC; \
7197 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7198 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7199 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
7200 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
7201 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7202 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7203 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7204 LD="$(LD_FOR_TARGET)"; export LD; \
7205 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7206 NM="$(NM_FOR_TARGET)"; export NM; \
7207 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7208 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7209 echo Configuring in $(TARGET_SUBDIR)/libjava; \
7210 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
7211 case $(srcdir) in \
7212 /* | [A-Za-z]:[\\/]*) \
7213 topdir=$(srcdir) ;; \
7214 *) \
7215 case "$(TARGET_SUBDIR)" in \
7216 .) topdir="../$(srcdir)" ;; \
7217 *) topdir="../../$(srcdir)" ;; \
7218 esac ;; \
7219 esac; \
7220 if [ "$(srcdir)" = "." ] ; then \
7221 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7222 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
7223 if [ -f Makefile ]; then \
7224 if $(MAKE) distclean; then \
7225 true; \
7226 else \
7227 exit 1; \
7228 fi; \
7229 else \
7230 true; \
7231 fi; \
7232 else \
7233 exit 1; \
7234 fi; \
7235 else \
7236 true; \
7237 fi; \
7238 srcdiroption="--srcdir=."; \
7239 libsrcdir="."; \
7240 else \
7241 srcdiroption="--srcdir=$${topdir}/libjava"; \
7242 libsrcdir="$$s/libjava"; \
7243 fi; \
7244 rm -f no-such-file || : ; \
7245 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7246 $(TARGET_CONFIGARGS) $${srcdiroption} \
7247 --with-target-subdir="$(TARGET_SUBDIR)" \
7248 || exit 1
7250 .PHONY: all-target-libjava maybe-all-target-libjava
7251 maybe-all-target-libjava:
7252 all-target-libjava: configure-target-libjava
7253 @r=`${PWD}`; export r; \
7254 s=`cd $(srcdir); ${PWD}`; export s; \
7255 $(SET_LIB_PATH) \
7256 (cd $(TARGET_SUBDIR)/libjava && \
7257 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
7259 .PHONY: check-target-libjava maybe-check-target-libjava
7260 maybe-check-target-libjava:
7262 check-target-libjava:
7263 @r=`${PWD}`; export r; \
7264 s=`cd $(srcdir); ${PWD}`; export s; \
7265 $(SET_LIB_PATH) \
7266 (cd $(TARGET_SUBDIR)/libjava && \
7267 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
7270 .PHONY: install-target-libjava maybe-install-target-libjava
7271 maybe-install-target-libjava:
7273 install-target-libjava: installdirs
7274 @r=`${PWD}`; export r; \
7275 s=`cd $(srcdir); ${PWD}`; export s; \
7276 $(SET_LIB_PATH) \
7277 (cd $(TARGET_SUBDIR)/libjava && \
7278 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7281 .PHONY: configure-target-zlib maybe-configure-target-zlib
7282 maybe-configure-target-zlib:
7284 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7285 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
7286 @[ -d $(TARGET_SUBDIR)/zlib ] || \
7287 mkdir $(TARGET_SUBDIR)/zlib; \
7288 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
7289 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
7291 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
7292 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
7293 [ -d $(TARGET_SUBDIR)/zlib ] || \
7294 mkdir $(TARGET_SUBDIR)/zlib;\
7295 r=`${PWD}`; export r; \
7296 s=`cd $(srcdir); ${PWD}`; export s; \
7297 $(SET_LIB_PATH) \
7298 AR="$(AR_FOR_TARGET)"; export AR; \
7299 AS="$(AS_FOR_TARGET)"; export AS; \
7300 CC="$(CC_FOR_TARGET)"; export CC; \
7301 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7302 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7303 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7304 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7305 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7306 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7307 LD="$(LD_FOR_TARGET)"; export LD; \
7308 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7309 NM="$(NM_FOR_TARGET)"; export NM; \
7310 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7311 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7312 echo Configuring in $(TARGET_SUBDIR)/zlib; \
7313 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
7314 case $(srcdir) in \
7315 /* | [A-Za-z]:[\\/]*) \
7316 topdir=$(srcdir) ;; \
7317 *) \
7318 case "$(TARGET_SUBDIR)" in \
7319 .) topdir="../$(srcdir)" ;; \
7320 *) topdir="../../$(srcdir)" ;; \
7321 esac ;; \
7322 esac; \
7323 if [ "$(srcdir)" = "." ] ; then \
7324 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7325 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
7326 if [ -f Makefile ]; then \
7327 if $(MAKE) distclean; then \
7328 true; \
7329 else \
7330 exit 1; \
7331 fi; \
7332 else \
7333 true; \
7334 fi; \
7335 else \
7336 exit 1; \
7337 fi; \
7338 else \
7339 true; \
7340 fi; \
7341 srcdiroption="--srcdir=."; \
7342 libsrcdir="."; \
7343 else \
7344 srcdiroption="--srcdir=$${topdir}/zlib"; \
7345 libsrcdir="$$s/zlib"; \
7346 fi; \
7347 rm -f no-such-file || : ; \
7348 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7349 $(TARGET_CONFIGARGS) $${srcdiroption} \
7350 --with-target-subdir="$(TARGET_SUBDIR)" \
7351 || exit 1
7353 .PHONY: all-target-zlib maybe-all-target-zlib
7354 maybe-all-target-zlib:
7355 all-target-zlib: configure-target-zlib
7356 @r=`${PWD}`; export r; \
7357 s=`cd $(srcdir); ${PWD}`; export s; \
7358 $(SET_LIB_PATH) \
7359 (cd $(TARGET_SUBDIR)/zlib && \
7360 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7362 .PHONY: check-target-zlib maybe-check-target-zlib
7363 maybe-check-target-zlib:
7365 check-target-zlib:
7366 @r=`${PWD}`; export r; \
7367 s=`cd $(srcdir); ${PWD}`; export s; \
7368 $(SET_LIB_PATH) \
7369 (cd $(TARGET_SUBDIR)/zlib && \
7370 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7373 .PHONY: install-target-zlib maybe-install-target-zlib
7374 maybe-install-target-zlib:
7376 install-target-zlib: installdirs
7377 @r=`${PWD}`; export r; \
7378 s=`cd $(srcdir); ${PWD}`; export s; \
7379 $(SET_LIB_PATH) \
7380 (cd $(TARGET_SUBDIR)/zlib && \
7381 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7384 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
7385 maybe-configure-target-boehm-gc:
7387 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7388 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
7389 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || \
7390 mkdir $(TARGET_SUBDIR)/boehm-gc; \
7391 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
7392 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
7394 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
7395 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
7396 [ -d $(TARGET_SUBDIR)/boehm-gc ] || \
7397 mkdir $(TARGET_SUBDIR)/boehm-gc;\
7398 r=`${PWD}`; export r; \
7399 s=`cd $(srcdir); ${PWD}`; export s; \
7400 $(SET_LIB_PATH) \
7401 AR="$(AR_FOR_TARGET)"; export AR; \
7402 AS="$(AS_FOR_TARGET)"; export AS; \
7403 CC="$(CC_FOR_TARGET)"; export CC; \
7404 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7405 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7406 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7407 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7408 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7409 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7410 LD="$(LD_FOR_TARGET)"; export LD; \
7411 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7412 NM="$(NM_FOR_TARGET)"; export NM; \
7413 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7414 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7415 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
7416 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
7417 case $(srcdir) in \
7418 /* | [A-Za-z]:[\\/]*) \
7419 topdir=$(srcdir) ;; \
7420 *) \
7421 case "$(TARGET_SUBDIR)" in \
7422 .) topdir="../$(srcdir)" ;; \
7423 *) topdir="../../$(srcdir)" ;; \
7424 esac ;; \
7425 esac; \
7426 if [ "$(srcdir)" = "." ] ; then \
7427 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7428 if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \
7429 if [ -f Makefile ]; then \
7430 if $(MAKE) distclean; then \
7431 true; \
7432 else \
7433 exit 1; \
7434 fi; \
7435 else \
7436 true; \
7437 fi; \
7438 else \
7439 exit 1; \
7440 fi; \
7441 else \
7442 true; \
7443 fi; \
7444 srcdiroption="--srcdir=."; \
7445 libsrcdir="."; \
7446 else \
7447 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
7448 libsrcdir="$$s/boehm-gc"; \
7449 fi; \
7450 rm -f no-such-file || : ; \
7451 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7452 $(TARGET_CONFIGARGS) $${srcdiroption} \
7453 --with-target-subdir="$(TARGET_SUBDIR)" \
7454 || exit 1
7456 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
7457 maybe-all-target-boehm-gc:
7458 all-target-boehm-gc: configure-target-boehm-gc
7459 @r=`${PWD}`; export r; \
7460 s=`cd $(srcdir); ${PWD}`; export s; \
7461 $(SET_LIB_PATH) \
7462 (cd $(TARGET_SUBDIR)/boehm-gc && \
7463 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7465 .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
7466 maybe-check-target-boehm-gc:
7468 check-target-boehm-gc:
7469 @r=`${PWD}`; export r; \
7470 s=`cd $(srcdir); ${PWD}`; export s; \
7471 $(SET_LIB_PATH) \
7472 (cd $(TARGET_SUBDIR)/boehm-gc && \
7473 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7476 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
7477 maybe-install-target-boehm-gc:
7479 install-target-boehm-gc: installdirs
7480 @r=`${PWD}`; export r; \
7481 s=`cd $(srcdir); ${PWD}`; export s; \
7482 $(SET_LIB_PATH) \
7483 (cd $(TARGET_SUBDIR)/boehm-gc && \
7484 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7487 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
7488 maybe-configure-target-qthreads:
7490 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7491 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
7492 @[ -d $(TARGET_SUBDIR)/qthreads ] || \
7493 mkdir $(TARGET_SUBDIR)/qthreads; \
7494 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
7495 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
7497 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
7498 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
7499 [ -d $(TARGET_SUBDIR)/qthreads ] || \
7500 mkdir $(TARGET_SUBDIR)/qthreads;\
7501 r=`${PWD}`; export r; \
7502 s=`cd $(srcdir); ${PWD}`; export s; \
7503 $(SET_LIB_PATH) \
7504 AR="$(AR_FOR_TARGET)"; export AR; \
7505 AS="$(AS_FOR_TARGET)"; export AS; \
7506 CC="$(CC_FOR_TARGET)"; export CC; \
7507 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7508 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7509 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7510 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7511 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7512 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7513 LD="$(LD_FOR_TARGET)"; export LD; \
7514 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7515 NM="$(NM_FOR_TARGET)"; export NM; \
7516 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7517 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7518 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7519 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
7520 case $(srcdir) in \
7521 /* | [A-Za-z]:[\\/]*) \
7522 topdir=$(srcdir) ;; \
7523 *) \
7524 case "$(TARGET_SUBDIR)" in \
7525 .) topdir="../$(srcdir)" ;; \
7526 *) topdir="../../$(srcdir)" ;; \
7527 esac ;; \
7528 esac; \
7529 if [ "$(srcdir)" = "." ] ; then \
7530 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7531 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
7532 if [ -f Makefile ]; then \
7533 if $(MAKE) distclean; then \
7534 true; \
7535 else \
7536 exit 1; \
7537 fi; \
7538 else \
7539 true; \
7540 fi; \
7541 else \
7542 exit 1; \
7543 fi; \
7544 else \
7545 true; \
7546 fi; \
7547 srcdiroption="--srcdir=."; \
7548 libsrcdir="."; \
7549 else \
7550 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7551 libsrcdir="$$s/qthreads"; \
7552 fi; \
7553 rm -f no-such-file || : ; \
7554 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7555 $(TARGET_CONFIGARGS) $${srcdiroption} \
7556 --with-target-subdir="$(TARGET_SUBDIR)" \
7557 || exit 1
7559 .PHONY: all-target-qthreads maybe-all-target-qthreads
7560 maybe-all-target-qthreads:
7561 all-target-qthreads: configure-target-qthreads
7562 @r=`${PWD}`; export r; \
7563 s=`cd $(srcdir); ${PWD}`; export s; \
7564 $(SET_LIB_PATH) \
7565 (cd $(TARGET_SUBDIR)/qthreads && \
7566 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7568 .PHONY: check-target-qthreads maybe-check-target-qthreads
7569 maybe-check-target-qthreads:
7571 check-target-qthreads:
7572 @r=`${PWD}`; export r; \
7573 s=`cd $(srcdir); ${PWD}`; export s; \
7574 $(SET_LIB_PATH) \
7575 (cd $(TARGET_SUBDIR)/qthreads && \
7576 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7579 .PHONY: install-target-qthreads maybe-install-target-qthreads
7580 maybe-install-target-qthreads:
7582 install-target-qthreads: installdirs
7583 @r=`${PWD}`; export r; \
7584 s=`cd $(srcdir); ${PWD}`; export s; \
7585 $(SET_LIB_PATH) \
7586 (cd $(TARGET_SUBDIR)/qthreads && \
7587 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7590 .PHONY: configure-target-rda maybe-configure-target-rda
7591 maybe-configure-target-rda:
7593 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7594 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
7595 @[ -d $(TARGET_SUBDIR)/rda ] || \
7596 mkdir $(TARGET_SUBDIR)/rda; \
7597 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
7598 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
7600 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
7601 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
7602 [ -d $(TARGET_SUBDIR)/rda ] || \
7603 mkdir $(TARGET_SUBDIR)/rda;\
7604 r=`${PWD}`; export r; \
7605 s=`cd $(srcdir); ${PWD}`; export s; \
7606 $(SET_LIB_PATH) \
7607 AR="$(AR_FOR_TARGET)"; export AR; \
7608 AS="$(AS_FOR_TARGET)"; export AS; \
7609 CC="$(CC_FOR_TARGET)"; export CC; \
7610 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7611 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
7612 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7613 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7614 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7615 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7616 LD="$(LD_FOR_TARGET)"; export LD; \
7617 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7618 NM="$(NM_FOR_TARGET)"; export NM; \
7619 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7620 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7621 echo Configuring in $(TARGET_SUBDIR)/rda; \
7622 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
7623 case $(srcdir) in \
7624 /* | [A-Za-z]:[\\/]*) \
7625 topdir=$(srcdir) ;; \
7626 *) \
7627 case "$(TARGET_SUBDIR)" in \
7628 .) topdir="../$(srcdir)" ;; \
7629 *) topdir="../../$(srcdir)" ;; \
7630 esac ;; \
7631 esac; \
7632 if [ "$(srcdir)" = "." ] ; then \
7633 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7634 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
7635 if [ -f Makefile ]; then \
7636 if $(MAKE) distclean; then \
7637 true; \
7638 else \
7639 exit 1; \
7640 fi; \
7641 else \
7642 true; \
7643 fi; \
7644 else \
7645 exit 1; \
7646 fi; \
7647 else \
7648 true; \
7649 fi; \
7650 srcdiroption="--srcdir=."; \
7651 libsrcdir="."; \
7652 else \
7653 srcdiroption="--srcdir=$${topdir}/rda"; \
7654 libsrcdir="$$s/rda"; \
7655 fi; \
7656 rm -f no-such-file || : ; \
7657 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7658 $(TARGET_CONFIGARGS) $${srcdiroption} \
7659 --with-target-subdir="$(TARGET_SUBDIR)" \
7660 || exit 1
7662 .PHONY: all-target-rda maybe-all-target-rda
7663 maybe-all-target-rda:
7664 all-target-rda: configure-target-rda
7665 @r=`${PWD}`; export r; \
7666 s=`cd $(srcdir); ${PWD}`; export s; \
7667 $(SET_LIB_PATH) \
7668 (cd $(TARGET_SUBDIR)/rda && \
7669 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7671 .PHONY: check-target-rda maybe-check-target-rda
7672 maybe-check-target-rda:
7674 check-target-rda:
7675 @r=`${PWD}`; export r; \
7676 s=`cd $(srcdir); ${PWD}`; export s; \
7677 $(SET_LIB_PATH) \
7678 (cd $(TARGET_SUBDIR)/rda && \
7679 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7682 .PHONY: install-target-rda maybe-install-target-rda
7683 maybe-install-target-rda:
7685 install-target-rda: installdirs
7686 @r=`${PWD}`; export r; \
7687 s=`cd $(srcdir); ${PWD}`; export s; \
7688 $(SET_LIB_PATH) \
7689 (cd $(TARGET_SUBDIR)/rda && \
7690 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7694 # ----------
7695 # GCC module
7696 # ----------
7698 # Unfortunately, while gcc _should_ be a host module,
7699 # libgcc is a target module, and gen* programs are
7700 # build modules. So GCC is a sort of hybrid.
7702 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
7703 .PHONY: configure-gcc maybe-configure-gcc
7704 maybe-configure-gcc:
7705 configure-gcc:
7706 @test ! -f gcc/Makefile || exit 0; \
7707 [ -d gcc ] || mkdir gcc; \
7708 r=`${PWD}`; export r; \
7709 s=`cd $(srcdir); ${PWD}`; export s; \
7710 CC="$(CC)"; export CC; \
7711 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7712 CXX="$(CXX)"; export CXX; \
7713 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7714 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
7715 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7716 AR="$(AR)"; export AR; \
7717 AS="$(AS)"; export AS; \
7718 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7719 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7720 LD="$(LD)"; export LD; \
7721 NM="$(NM)"; export NM; \
7722 RANLIB="$(RANLIB)"; export RANLIB; \
7723 WINDRES="$(WINDRES)"; export WINDRES; \
7724 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7725 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7726 fi; \
7727 echo Configuring in gcc; \
7728 cd gcc || exit 1; \
7729 case $(srcdir) in \
7730 \.) \
7731 srcdiroption="--srcdir=."; \
7732 libsrcdir=".";; \
7733 /* | [A-Za-z]:[\\/]*) \
7734 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7735 libsrcdir="$$s/gcc";; \
7736 *) \
7737 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7738 libsrcdir="$$s/gcc";; \
7739 esac; \
7740 $(SHELL) $${libsrcdir}/configure \
7741 $(HOST_CONFIGARGS) $${srcdiroption} \
7742 || exit 1
7744 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
7745 # causes trouble. This wart will be fixed eventually by moving
7746 # the bootstrap behavior to this file.
7747 .PHONY: all-gcc maybe-all-gcc
7748 maybe-all-gcc:
7749 all-gcc: configure-gcc
7750 @if [ -f gcc/stage_last ] ; then \
7751 r=`${PWD}`; export r; \
7752 s=`cd $(srcdir); ${PWD}`; export s; \
7753 $(SET_LIB_PATH) \
7754 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
7755 else \
7756 r=`${PWD}`; export r; \
7757 s=`cd $(srcdir); ${PWD}`; export s; \
7758 $(SET_LIB_PATH) \
7759 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
7762 # Building GCC uses some tools for rebuilding "source" files
7763 # like texinfo, bison/byacc, etc. So we must depend on those.
7765 # While building GCC, it may be necessary to run various target
7766 # programs like the assembler, linker, etc. So we depend on
7767 # those too.
7769 # In theory, on an SMP all those dependencies can be resolved
7770 # in parallel.
7772 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
7773 .PHONY: $(GCC_STRAP_TARGETS)
7774 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
7775 @r=`${PWD}`; export r; \
7776 s=`cd $(srcdir); ${PWD}`; export s; \
7777 $(SET_LIB_PATH) \
7778 echo "Bootstrapping the compiler"; \
7779 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
7780 @r=`${PWD}`; export r; \
7781 s=`cd $(srcdir); ${PWD}`; export s; \
7782 case "$@" in \
7783 *bootstrap4-lean ) \
7784 msg="Comparing stage3 and stage4 of the compiler"; \
7785 compare=compare3-lean ;; \
7786 *bootstrap4 ) \
7787 msg="Comparing stage3 and stage4 of the compiler"; \
7788 compare=compare3 ;; \
7789 *-lean ) \
7790 msg="Comparing stage2 and stage3 of the compiler"; \
7791 compare=compare-lean ;; \
7792 * ) \
7793 msg="Comparing stage2 and stage3 of the compiler"; \
7794 compare=compare ;; \
7795 esac; \
7796 $(SET_LIB_PATH) \
7797 echo "$$msg"; \
7798 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
7799 @r=`${PWD}`; export r; \
7800 s=`cd $(srcdir); ${PWD}` ; export s; \
7801 $(SET_LIB_PATH) \
7802 echo "Building runtime libraries"; \
7803 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
7805 .PHONY: cross
7806 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
7807 @r=`${PWD}`; export r; \
7808 s=`cd $(srcdir); ${PWD}`; export s; \
7809 $(SET_LIB_PATH) \
7810 echo "Building the C and C++ compiler"; \
7811 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
7812 @r=`${PWD}`; export r; \
7813 s=`cd $(srcdir); ${PWD}` ; export s; \
7814 $(SET_LIB_PATH) \
7815 echo "Building runtime libraries"; \
7816 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7817 LANGUAGES="c c++" all
7819 .PHONY: check-gcc maybe-check-gcc
7820 maybe-check-gcc:
7821 check-gcc:
7822 @if [ -f ./gcc/Makefile ] ; then \
7823 r=`${PWD}`; export r; \
7824 s=`cd $(srcdir); ${PWD}`; export s; \
7825 $(SET_LIB_PATH) \
7826 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
7827 else \
7828 true; \
7831 .PHONY: check-gcc-c++
7832 check-gcc-c++:
7833 @if [ -f ./gcc/Makefile ] ; then \
7834 r=`${PWD}`; export r; \
7835 s=`cd $(srcdir); ${PWD}`; export s; \
7836 $(SET_LIB_PATH) \
7837 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
7838 else \
7839 true; \
7842 .PHONY: check-c++
7843 check-c++:
7844 $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
7846 .PHONY: install-gcc maybe-install-gcc
7847 maybe-install-gcc:
7848 install-gcc:
7849 @if [ -f ./gcc/Makefile ] ; then \
7850 r=`${PWD}`; export r; \
7851 s=`cd $(srcdir); ${PWD}`; export s; \
7852 $(SET_LIB_PATH) \
7853 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7854 else \
7855 true; \
7858 # Install the gcc headers files, but not the fixed include files,
7859 # which Cygnus is not allowed to distribute. This rule is very
7860 # dependent on the workings of the gcc Makefile.in.
7861 .PHONY: gcc-no-fixedincludes
7862 gcc-no-fixedincludes:
7863 @if [ -f ./gcc/Makefile ]; then \
7864 rm -rf gcc/tmp-include; \
7865 mv gcc/include gcc/tmp-include 2>/dev/null; \
7866 mkdir gcc/include; \
7867 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7868 touch gcc/stmp-fixinc gcc/include/fixed; \
7869 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
7870 r=`${PWD}`; export r; \
7871 s=`cd $(srcdir); ${PWD}` ; export s; \
7872 $(SET_LIB_PATH) \
7873 (cd ./gcc && \
7874 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7875 rm -rf gcc/include; \
7876 mv gcc/tmp-include gcc/include 2>/dev/null; \
7877 else true; fi
7879 # --------------------------------------
7880 # Dependencies between different modules
7881 # --------------------------------------
7883 # There are two types of dependencies here: 'hard' dependencies, where one
7884 # module simply won't build without the other; and 'soft' dependencies, where
7885 # if the depended-on module is missing, the depending module will do without
7886 # or find a substitute somewhere (perhaps installed). Soft dependencies
7887 # are specified by depending on a 'maybe-' target. If you're not sure,
7888 # it's safer to use a soft dependency.
7890 # Host modules specific to gcc.
7891 # GCC needs to identify certain tools.
7892 configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7893 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7894 # This is a slightly kludgy method of getting dependencies on
7895 # all-build-libiberty correct; it would be better to build it every time.
7896 all-gcc: maybe-all-build-libiberty
7897 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
7899 # Host modules specific to gdb.
7900 # GDB needs to know that the simulator is being built.
7901 configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
7902 GDB_TK = @GDB_TK@
7903 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)
7904 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
7905 configure-libgui: maybe-configure-tcl maybe-configure-tk
7906 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7908 # Host modules specific to binutils.
7909 configure-bfd: configure-libiberty
7910 all-bfd: maybe-all-libiberty maybe-all-intl
7911 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
7912 # We put install-opcodes before install-binutils because the installed
7913 # binutils might be on PATH, and they might need the shared opcodes
7914 # library.
7915 install-binutils: maybe-install-opcodes
7916 # libopcodes depends on libbfd
7917 install-opcodes: maybe-install-bfd
7918 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7919 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7920 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7921 all-opcodes: maybe-all-bfd maybe-all-libiberty
7923 # Other host modules in the 'src' repository.
7924 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7925 configure-expect: maybe-configure-tcl maybe-configure-tk
7926 all-expect: maybe-all-tcl maybe-all-tk
7927 configure-itcl: maybe-configure-tcl maybe-configure-tk
7928 all-itcl: maybe-all-tcl maybe-all-tk
7929 # We put install-tcl before install-itcl because itcl wants to run a
7930 # program on installation which uses the Tcl libraries.
7931 install-itcl: maybe-install-tcl
7932 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
7933 install-sid: maybe-install-tcl maybe-install-tk
7934 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
7935 configure-tk: maybe-configure-tcl
7936 all-tk: maybe-all-tcl
7937 configure-tix: maybe-configure-tcl maybe-configure-tk
7938 all-tix: maybe-all-tcl maybe-all-tk
7939 all-texinfo: maybe-all-libiberty
7941 # Other host modules. Warning, these are not well tested.
7942 all-autoconf: maybe-all-m4 maybe-all-texinfo
7943 all-automake: maybe-all-m4 maybe-all-texinfo
7944 all-bison: maybe-all-texinfo
7945 all-diff: maybe-all-libiberty
7946 all-fastjar: maybe-all-zlib maybe-all-libiberty
7947 all-fileutils: maybe-all-libiberty
7948 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7949 all-gzip: maybe-all-libiberty
7950 all-hello: maybe-all-libiberty
7951 all-m4: maybe-all-libiberty maybe-all-texinfo
7952 all-make: maybe-all-libiberty
7953 all-patch: maybe-all-libiberty
7954 all-prms: maybe-all-libiberty
7955 all-recode: maybe-all-libiberty
7956 all-sed: maybe-all-libiberty
7957 all-send-pr: maybe-all-prms
7958 all-tar: maybe-all-libiberty
7959 all-uudecode: maybe-all-libiberty
7961 ALL_GCC = maybe-all-gcc
7962 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7963 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7965 # Target modules specific to gcc.
7966 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
7967 configure-target-fastjar: maybe-configure-target-zlib
7968 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7969 configure-target-libf2c: $(ALL_GCC_C)
7970 all-target-libf2c: maybe-all-target-libiberty
7971 configure-target-libffi: $(ALL_GCC_C)
7972 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7973 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7974 configure-target-libobjc: $(ALL_GCC_C)
7975 all-target-libobjc: maybe-all-target-libiberty
7976 configure-target-libstdc++-v3: $(ALL_GCC_C)
7977 all-target-libstdc++-v3: maybe-all-target-libiberty
7978 configure-target-zlib: $(ALL_GCC_C)
7980 # Target modules in the 'src' repository.
7981 configure-target-examples: $(ALL_GCC_C)
7982 configure-target-libgloss: $(ALL_GCC)
7983 all-target-libgloss: maybe-configure-target-newlib
7984 configure-target-libiberty: $(ALL_GCC)
7985 configure-target-libtermcap: $(ALL_GCC_C)
7986 configure-target-newlib: $(ALL_GCC)
7987 configure-target-rda: $(ALL_GCC_C)
7988 configure-target-winsup: $(ALL_GCC_C)
7989 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
7991 # Other target modules. Warning, these are not well tested.
7992 configure-target-gperf: $(ALL_GCC_CXX)
7993 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7994 configure-target-qthreads: $(ALL_GCC_C)
7996 # Dependencies of maybe-foo on foo. These are used because, for example,
7997 # all-gcc only depends on all-gas if gas is present and being configured.
7998 @maybe_dependencies@
8000 # Serialization dependencies. Host configures don't work well in parallel to
8001 # each other, due to contention over config.cache. Target configures and
8002 # build configures are similar.
8003 @serialization_dependencies@
8005 # --------------------------------
8006 # Regenerating top level configury
8007 # --------------------------------
8009 # Multilib.out tells target dirs what multilibs they should build.
8010 # There is really only one copy. We use the 'timestamp' method to
8011 # work around various timestamp bugs on some systems.
8012 # We use move-if-change so that it's only considered updated when it
8013 # actually changes, because it has to depend on a phony target.
8014 multilib.out: maybe-all-gcc
8015 @r=`${PWD}`; export r; \
8016 echo "Checking multilib configuration..."; \
8017 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
8018 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
8020 # Rebuilding Makefile.in, using autogen.
8021 AUTOGEN = autogen
8022 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
8023 cd $(srcdir) && $(AUTOGEN) Makefile.def
8025 # Rebuilding Makefile.
8026 Makefile: $(srcdir)/Makefile.in config.status
8027 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
8029 config.status: configure $(gcc_version_trigger)
8030 $(SHELL) ./config.status --recheck
8032 # Rebuilding configure.
8033 AUTOCONF = autoconf
8034 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
8035 cd $(srcdir) && $(AUTOCONF)
8037 # ------------------------------
8038 # Special directives to GNU Make
8039 # ------------------------------
8041 # Tell GNU make 3.79 not to run the top level in parallel. This
8042 # prevents contention for $builddir/$target/config.cache, as well
8043 # as minimizing scatter in file system caches.
8044 NOTPARALLEL = .NOTPARALLEL
8045 $(NOTPARALLEL):
8047 # Don't pass command-line variables to submakes.
8048 .NOEXPORT:
8049 MAKEOVERRIDES=
8051 # end of Makefile.in