std_bitset.h (_Base_bitset::_M_do_left_shift, [...]): Expect a non-zero shift.
[official-gcc.git] / Makefile.in
blob5e0ae4d942dee3faa8ccd2681d1099a3b26543f9
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # Tell GNU make 3.79 not to run the top level in parallel. This
24 # prevents contention for $builddir/$target/config.cache, as well
25 # as minimizing scatter in file system caches.
26 NOTPARALLEL = .NOTPARALLEL
27 $(NOTPARALLEL):
29 VPATH=@srcdir@
30 links=@configlinks@
32 build_alias=@build_alias@
33 build_cpu=@build_cpu@
34 build_vendor=@build_vendor@
35 build_os=@build_os@
36 build_canonical=@build_cpu@-@build_vendor@-@build_os@
37 host_alias=@host_alias@
38 host_cpu=@host_cpu@
39 host_vendor=@host_vendor@
40 host_os=@host_os@
41 host_canonical=@host_cpu@-@host_vendor@-@host_os@
42 target_alias=@target_alias@
43 target_cpu=@target_cpu@
44 target_vendor=@target_vendor@
45 target_os=@target_os@
46 target_canonical=@target_cpu@-@target_vendor@-@target_os@
48 enable_shared = @enable_shared@
49 enable_threads = @enable_threads@
50 enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@
51 # The file containing GCC's version number.
52 gcc_version_trigger = @gcc_version_trigger@
53 gcc_version = @gcc_version@
55 srcdir = @srcdir@
57 prefix = @prefix@
58 exec_prefix = @exec_prefix@
60 bindir = @bindir@
61 sbindir = @sbindir@
62 libexecdir = @libexecdir@
63 datadir = @datadir@
64 sysconfdir = @sysconfdir@
65 sharedstatedir = @sharedstatedir@
66 localstatedir = @localstatedir@
67 libdir = @libdir@
68 includedir = @includedir@
69 oldincludedir = @oldincludedir@
70 infodir = @infodir@
71 mandir = @mandir@
72 gxx_include_dir = @gxx_include_dir@
73 libstdcxx_incdir = @libstdcxx_incdir@
75 tooldir = @tooldir@
76 build_tooldir = @build_tooldir@
78 program_transform_name = @program_transform_name@
80 man1dir = $(mandir)/man1
81 man2dir = $(mandir)/man2
82 man3dir = $(mandir)/man3
83 man4dir = $(mandir)/man4
84 man5dir = $(mandir)/man5
85 man6dir = $(mandir)/man6
86 man7dir = $(mandir)/man7
87 man8dir = $(mandir)/man8
88 man9dir = $(mandir)/man9
89 # Directory in which the compiler finds executables, libraries, etc.
90 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
91 GDB_NLM_DEPS =
93 SHELL = @config_shell@
95 # pwd command to use. Allow user to override default by setting PWDCMD in
96 # the environment to account for automounters. The make variable must not
97 # be called PWDCMD, otherwise the value set here is passed to make
98 # subprocesses and overrides the setting from the user's environment.
99 PWD = $${PWDCMD-pwd}
101 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
102 # cygwin host.
103 INSTALL_PROGRAM_ARGS =
105 INSTALL = $(SHELL) $$s/install-sh -c
106 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
107 INSTALL_SCRIPT = $(INSTALL)
108 INSTALL_DATA = $(INSTALL) -m 644
110 AS = @AS@
111 AR = @AR@
112 AR_FLAGS = rc
113 CC = @CC@
115 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
116 # here so that they can be overridden by Makefile fragments.
117 BUILD_CC = $(CC_FOR_BUILD)
118 BUILD_PREFIX = @BUILD_PREFIX@
119 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
121 CFLAGS = @CFLAGS@
122 CXXFLAGS = @CXXFLAGS@
124 LDFLAGS =
125 LIBCFLAGS = $(CFLAGS)
126 CFLAGS_FOR_BUILD = $(CFLAGS)
127 # During gcc bootstrap, if we use some random cc for stage1 then
128 # CFLAGS will be just -g. We want to ensure that TARGET libraries
129 # (which we know are built with gcc) are built with optimizations so
130 # prepend -O2 when setting CFLAGS_FOR_TARGET.
131 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
132 LDFLAGS_FOR_TARGET =
133 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
134 PICFLAG =
135 PICFLAG_FOR_TARGET =
137 CXX = @CXX@
139 # Use -O2 to stress test the compiler.
140 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
141 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
142 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
144 DLLTOOL = @DLLTOOL@
145 WINDRES = @WINDRES@
147 NM = @NM@
149 LD = @LD@
151 # These values are substituted by configure.
152 DEFAULT_YACC = @DEFAULT_YACC@
153 DEFAULT_LEX = @DEFAULT_LEX@
154 DEFAULT_M4 = @DEFAULT_M4@
156 BISON=@BISON@
157 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
158 echo $$r/bison/bison -L $$s/bison/ ; \
159 else \
160 echo bison ; \
163 YACC=@YACC@
164 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
165 echo $$r/bison/bison -y -L $$s/bison/ ; \
166 elif [ -f $$r/byacc/byacc ] ; then \
167 echo $$r/byacc/byacc ; \
168 else \
169 echo ${DEFAULT_YACC} ; \
172 LEX=@LEX@
173 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
174 then echo $$r/flex/flex ; \
175 else echo ${DEFAULT_LEX} ; fi`
177 M4 = `if [ -f $$r/m4/m4 ] ; \
178 then echo $$r/m4/m4 ; \
179 else echo ${DEFAULT_M4} ; fi`
181 # For an installed makeinfo, we require it to be from texinfo 4 or
182 # higher, else we use the "missing" dummy.
183 MAKEINFO=@MAKEINFO@
184 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
185 then echo $$r/texinfo/makeinfo/makeinfo ; \
186 else if (makeinfo --version \
187 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
188 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
190 # This just becomes part of the MAKEINFO definition passed down to
191 # sub-makes. It lets flags be given on the command line while still
192 # using the makeinfo from the object tree.
193 MAKEINFOFLAGS =
195 EXPECT = `if [ -f $$r/expect/expect ] ; \
196 then echo $$r/expect/expect ; \
197 else echo expect ; fi`
199 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
200 then echo $$s/dejagnu/runtest ; \
201 else echo runtest ; fi`
204 # compilers to use to create programs which must be run in the build
205 # environment.
206 CC_FOR_BUILD = @CC_FOR_BUILD@
207 CXX_FOR_BUILD = $(CXX)
209 SUBDIRS = @configdirs@
211 # This is set by the configure script to the list of directories which
212 # should be built using the target tools.
213 TARGET_CONFIGDIRS = @target_configdirs@
215 # Target libraries are put under this directory:
216 # Changed by configure to $(target_alias) if cross.
217 TARGET_SUBDIR = @target_subdir@
219 BUILD_CONFIGDIRS = libiberty
220 BUILD_SUBDIR = @build_subdir@
222 # This is set by the configure script to the arguments to use when configuring
223 # directories built for the build system.
224 BUILD_CONFIGARGS = @build_configargs@
226 # This is set by the configure script to the arguments to use when configuring
227 # directories built for the host system.
228 HOST_CONFIGARGS = @host_configargs@
230 # This is set by the configure script to the arguments to use when configuring
231 # directories built for the target.
232 TARGET_CONFIGARGS = @target_configargs@
234 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
235 # was used.
236 SET_LIB_PATH = @SET_LIB_PATH@
238 # This is the name of the environment variable used for the path to
239 # the libraries. This may be changed by configure.in.
240 RPATH_ENVVAR = @RPATH_ENVVAR@
242 # This is the list of directories that may be needed in RPATH_ENVVAR
243 # so that programs built for the host machine work.
244 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
246 # This is the list of directories that may be needed in RPATH_ENVVAR
247 # so that prorgams built for the target machine work.
248 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
250 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
251 # Some platforms don't like blank entries, so we remove duplicate,
252 # leading and trailing colons.
253 REALLY_SET_LIB_PATH = \
254 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
256 # Should be substed by configure.in
257 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
258 CC_FOR_TARGET = @CC_FOR_TARGET@
259 CXX_FOR_TARGET = @CXX_FOR_TARGET@
260 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
261 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
262 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
263 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
265 # If GCC_FOR_TARGET is not overriden on the command line, then this
266 # variable is passed down to the gcc Makefile, where it is used to
267 # build libgcc2.a. We define it here so that it can itself be
268 # overridden on the command line.
269 GCC_FOR_TARGET=@GCC_FOR_TARGET@
270 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
272 AS_FOR_TARGET=@AS_FOR_TARGET@
273 USUAL_AS_FOR_TARGET = ` \
274 if [ -f $$r/gas/as-new ] ; then \
275 echo $$r/gas/as-new ; \
276 elif [ -f $$r/gcc/xgcc ]; then \
277 $(CC_FOR_TARGET) -print-prog-name=as ; \
278 else \
279 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
280 echo $(AS); \
281 else \
282 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
283 fi; \
286 LD_FOR_TARGET=@LD_FOR_TARGET@
287 USUAL_LD_FOR_TARGET = ` \
288 if [ -f $$r/ld/ld-new ] ; then \
289 echo $$r/ld/ld-new ; \
290 elif [ -f $$r/gcc/xgcc ]; then \
291 $(CC_FOR_TARGET) -print-prog-name=ld ; \
292 else \
293 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
294 echo $(LD); \
295 else \
296 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
297 fi; \
300 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
301 USUAL_DLLTOOL_FOR_TARGET = ` \
302 if [ -f $$r/binutils/dlltool ] ; then \
303 echo $$r/binutils/dlltool ; \
304 else \
305 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
306 echo $(DLLTOOL); \
307 else \
308 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
309 fi; \
312 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
313 USUAL_WINDRES_FOR_TARGET = ` \
314 if [ -f $$r/binutils/windres ] ; then \
315 echo $$r/binutils/windres ; \
316 else \
317 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
318 echo $(WINDRES); \
319 else \
320 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
321 fi; \
324 AR_FOR_TARGET=@AR_FOR_TARGET@
325 USUAL_AR_FOR_TARGET = ` \
326 if [ -f $$r/binutils/ar ] ; then \
327 echo $$r/binutils/ar ; \
328 else \
329 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
330 echo $(AR); \
331 else \
332 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
333 fi; \
336 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
337 USUAL_RANLIB_FOR_TARGET = ` \
338 if [ -f $$r/binutils/ranlib ] ; then \
339 echo $$r/binutils/ranlib ; \
340 else \
341 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
342 if [ x'$(RANLIB)' != x ]; then \
343 echo $(RANLIB); \
344 else \
345 echo ranlib; \
346 fi; \
347 else \
348 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
349 fi; \
352 NM_FOR_TARGET=@NM_FOR_TARGET@
353 USUAL_NM_FOR_TARGET = ` \
354 if [ -f $$r/binutils/nm-new ] ; then \
355 echo $$r/binutils/nm-new ; \
356 elif [ -f $$r/gcc/xgcc ]; then \
357 $(CC_FOR_TARGET) -print-prog-name=nm ; \
358 else \
359 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
360 echo $(NM); \
361 else \
362 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
363 fi; \
366 # The first rule in the file had better be this one. Don't put any above it.
367 # This lives here to allow makefile fragments to contain dependencies.
368 all: all.normal
369 .PHONY: all
371 #### host and target specific makefile fragments come in here.
374 # Flags to pass down to all sub-makes.
375 # Please keep these in alphabetical order.
376 BASE_FLAGS_TO_PASS = \
377 "AR_FLAGS=$(AR_FLAGS)" \
378 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
379 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
380 "BISON=$(BISON)" \
381 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
382 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
383 "CFLAGS=$(CFLAGS)" \
384 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
385 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
386 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
387 "CXXFLAGS=$(CXXFLAGS)" \
388 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
389 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
390 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
391 "INSTALL=$(INSTALL)" \
392 "INSTALL_DATA=$(INSTALL_DATA)" \
393 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
394 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
395 "LDFLAGS=$(LDFLAGS)" \
396 "LEX=$(LEX)" \
397 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
398 "LIBCFLAGS=$(LIBCFLAGS)" \
399 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
400 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
401 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
402 "M4=$(M4)" \
403 "MAKE=$(MAKE)" \
404 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
405 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
406 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
407 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
408 "SHELL=$(SHELL)" \
409 "EXPECT=$(EXPECT)" \
410 "RUNTEST=$(RUNTEST)" \
411 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
412 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
413 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
414 "YACC=$(YACC)" \
415 "bindir=$(bindir)" \
416 "datadir=$(datadir)" \
417 "exec_prefix=$(exec_prefix)" \
418 "includedir=$(includedir)" \
419 "infodir=$(infodir)" \
420 "libdir=$(libdir)" \
421 "libexecdir=$(libexecdir)" \
422 "lispdir=$(lispdir)" \
423 "libstdcxx_incdir=$(libstdcxx_incdir)" \
424 "libsubdir=$(libsubdir)" \
425 "localstatedir=$(localstatedir)" \
426 "mandir=$(mandir)" \
427 "oldincludedir=$(oldincludedir)" \
428 "prefix=$(prefix)" \
429 "sbindir=$(sbindir)" \
430 "sharedstatedir=$(sharedstatedir)" \
431 "sysconfdir=$(sysconfdir)" \
432 "tooldir=$(tooldir)" \
433 "build_tooldir=$(build_tooldir)" \
434 "gxx_include_dir=$(gxx_include_dir)" \
435 "gcc_version=$(gcc_version)" \
436 "gcc_version_trigger=$(gcc_version_trigger)" \
437 "target_alias=$(target_alias)"
439 # For any flags above that may contain shell code that varies from one
440 # target library to another. When doing recursive invocations of the
441 # top-level Makefile, we don't want the outer make to evaluate them,
442 # so we pass these variables down unchanged. They must not contain
443 # single nor double quotes.
444 RECURSE_FLAGS = \
445 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
446 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
448 # Flags to pass down to most sub-makes, in which we're building with
449 # the host environment.
450 # If any variables are added here, they must be added to do-*, below.
451 EXTRA_HOST_FLAGS = \
452 'AR=$(AR)' \
453 'AS=$(AS)' \
454 'CC=$(CC)' \
455 'CXX=$(CXX)' \
456 'DLLTOOL=$(DLLTOOL)' \
457 'LD=$(LD)' \
458 'NM=$(NM)' \
459 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
460 'WINDRES=$(WINDRES)'
462 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
464 # Flags that are concerned with the location of the X11 include files
465 # and library files
467 # NOTE: until the top-level is getting the values via autoconf, it only
468 # causes problems to have this top-level Makefile overriding the autoconf-set
469 # values in child directories. Only variables that don't conflict with
470 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
472 X11_FLAGS_TO_PASS = \
473 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
474 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
476 # Flags to pass down to makes which are built with the target environment.
477 # The double $ decreases the length of the command line; the variables
478 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
479 # If any variables are added here, they must be added to do-*, below.
480 EXTRA_TARGET_FLAGS = \
481 'AR=$$(AR_FOR_TARGET)' \
482 'AS=$$(AS_FOR_TARGET)' \
483 'CC=$$(CC_FOR_TARGET)' \
484 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
485 'CXX=$$(CXX_FOR_TARGET)' \
486 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
487 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488 'LD=$$(LD_FOR_TARGET)' \
489 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
490 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
491 'NM=$$(NM_FOR_TARGET)' \
492 'RANLIB=$$(RANLIB_FOR_TARGET)' \
493 'WINDRES=$$(WINDRES_FOR_TARGET)'
495 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
497 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
498 # unfortunately needs the native compiler and the target ar and
499 # ranlib.
500 # If any variables are added here, they must be added to do-*, below.
501 # The HOST_* variables are a special case, which are used for the gcc
502 # cross-building scheme.
503 EXTRA_GCC_FLAGS = \
504 'AR=$(AR)' \
505 'AS=$(AS)' \
506 'CC=$(CC)' \
507 'CXX=$(CXX)' \
508 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
509 'BUILD_CC=$(CC_FOR_BUILD)' \
510 'BUILD_PREFIX=$(BUILD_PREFIX)' \
511 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
512 'NM=$(NM)' \
513 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
514 'WINDRES=$$(WINDRES_FOR_TARGET)' \
515 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
516 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
517 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
518 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
519 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
520 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
521 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
522 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
523 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
524 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
525 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
527 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
529 configure-host: @configure_host_modules@
530 configure-target: @configure_target_modules@
532 # This is a list of the targets for which we can do a clean-{target}.
533 CLEAN_MODULES = \
534 clean-ash \
535 clean-autoconf \
536 clean-automake \
537 clean-bash \
538 clean-bfd \
539 clean-opcodes \
540 clean-binutils \
541 clean-bison \
542 clean-byacc \
543 clean-bzip2 \
544 clean-db \
545 clean-dejagnu \
546 clean-diff \
547 clean-dosutils \
548 clean-etc \
549 clean-fastjar \
550 clean-fileutils \
551 clean-findutils \
552 clean-find \
553 clean-flex \
554 clean-gas \
555 clean-gawk \
556 clean-gettext \
557 clean-gnuserv \
558 clean-gprof \
559 clean-grep \
560 clean-gzip \
561 clean-hello \
562 clean-indent \
563 clean-intl \
564 clean-tcl \
565 clean-itcl \
566 clean-ld \
567 clean-libgui \
568 clean-libiberty \
569 clean-libtool \
570 clean-m4 \
571 clean-make \
572 clean-mmalloc \
573 clean-patch \
574 clean-perl \
575 clean-prms \
576 clean-rcs \
577 clean-readline \
578 clean-release \
579 clean-recode \
580 clean-sed \
581 clean-send-pr \
582 clean-shellutils \
583 clean-sid \
584 clean-sim \
585 clean-snavigator \
586 clean-tar \
587 clean-texinfo \
588 clean-textutils \
589 clean-time \
590 clean-uudecode \
591 clean-wdiff \
592 clean-zip \
593 clean-zlib \
594 clean-utils
596 # All of the target modules that can be cleaned
597 CLEAN_TARGET_MODULES = \
598 clean-target-libstdc++-v3 \
599 clean-target-newlib \
600 clean-target-libf2c \
601 clean-target-libobjc \
602 clean-target-winsup \
603 clean-target-libgloss \
604 clean-target-libiberty \
605 clean-target-gperf \
606 clean-target-examples \
607 clean-target-libffi \
608 clean-target-libjava \
609 clean-target-zlib \
610 clean-target-boehm-gc \
611 clean-target-qthreads \
612 clean-target-rda
614 # All of the x11 modules that can be cleaned
615 CLEAN_X11_MODULES = \
616 clean-gdb \
617 clean-expect \
618 clean-guile \
619 clean-tk \
620 clean-tix
622 # The target built for a native build.
623 # This list only includes modules actually being configured and built.
624 .PHONY: all.normal
625 all.normal: @all_build_modules@ \
626 @all_host_modules@ \
627 @all_target_modules@
629 all-host: @all_host_modules@
630 all-target: @all_target_modules@
632 # Do a target for all the subdirectories. A ``make do-X'' will do a
633 # ``make X'' in all subdirectories (because, in general, there is a
634 # dependency (below) of X upon do-X, a ``make X'' will also do this,
635 # but it may do additional work as well).
636 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
637 # because it is so large that it can easily overflow the command line
638 # length limit on some systems.
640 .PHONY: do-clean
641 do-clean:
642 @r=`${PWD}`; export r; \
643 s=`cd $(srcdir); ${PWD}`; export s; \
644 $(SET_LIB_PATH) \
645 for i in $(SUBDIRS) -dummy-; do \
646 if [ -f ./$$i/Makefile ]; then \
647 case $$i in \
648 gcc) \
649 for flag in $(EXTRA_GCC_FLAGS); do \
650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
651 done; \
652 ;; \
653 *) \
654 for flag in $(EXTRA_HOST_FLAGS); do \
655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
656 done; \
657 ;; \
658 esac ; \
659 (cd ./$$i && \
660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
662 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
664 clean) \
665 || exit 1; \
666 else true; fi; \
667 done
668 # Break into two pieces
669 r=`${PWD}`; export r; \
670 s=`cd $(srcdir); ${PWD}`; export s; \
671 $(SET_LIB_PATH) \
672 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
673 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
674 for flag in $(EXTRA_TARGET_FLAGS); do \
675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
676 done; \
677 (cd $(TARGET_SUBDIR)/$$i && \
678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
680 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
682 clean) \
683 || exit 1; \
684 else true; fi; \
685 done
687 .PHONY: do-distclean
688 do-distclean:
689 @r=`${PWD}`; export r; \
690 s=`cd $(srcdir); ${PWD}`; export s; \
691 $(SET_LIB_PATH) \
692 for i in $(SUBDIRS) -dummy-; do \
693 if [ -f ./$$i/Makefile ]; then \
694 case $$i in \
695 gcc) \
696 for flag in $(EXTRA_GCC_FLAGS); do \
697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
698 done; \
699 ;; \
700 *) \
701 for flag in $(EXTRA_HOST_FLAGS); do \
702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
703 done; \
704 ;; \
705 esac ; \
706 (cd ./$$i && \
707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
709 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
711 distclean) \
712 || exit 1; \
713 else true; fi; \
714 done
715 # Break into two pieces
716 r=`${PWD}`; export r; \
717 s=`cd $(srcdir); ${PWD}`; export s; \
718 $(SET_LIB_PATH) \
719 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
720 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
721 for flag in $(EXTRA_TARGET_FLAGS); do \
722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
723 done; \
724 (cd $(TARGET_SUBDIR)/$$i && \
725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
727 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
729 distclean) \
730 || exit 1; \
731 else true; fi; \
732 done
734 .PHONY: do-dvi
735 do-dvi:
736 @r=`${PWD}`; export r; \
737 s=`cd $(srcdir); ${PWD}`; export s; \
738 $(SET_LIB_PATH) \
739 for i in $(SUBDIRS) -dummy-; do \
740 if [ -f ./$$i/Makefile ]; then \
741 case $$i in \
742 gcc) \
743 for flag in $(EXTRA_GCC_FLAGS); do \
744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
745 done; \
746 ;; \
747 *) \
748 for flag in $(EXTRA_HOST_FLAGS); do \
749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
750 done; \
751 ;; \
752 esac ; \
753 (cd ./$$i && \
754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
756 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
758 dvi) \
759 || exit 1; \
760 else true; fi; \
761 done
762 # Break into two pieces
763 r=`${PWD}`; export r; \
764 s=`cd $(srcdir); ${PWD}`; export s; \
765 $(SET_LIB_PATH) \
766 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
767 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
768 for flag in $(EXTRA_TARGET_FLAGS); do \
769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
770 done; \
771 (cd $(TARGET_SUBDIR)/$$i && \
772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
774 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
776 dvi) \
777 || exit 1; \
778 else true; fi; \
779 done
781 .PHONY: do-info
782 do-info:
783 @r=`${PWD}`; export r; \
784 s=`cd $(srcdir); ${PWD}`; export s; \
785 $(SET_LIB_PATH) \
786 for i in $(SUBDIRS) -dummy-; do \
787 if [ -f ./$$i/Makefile ]; then \
788 case $$i in \
789 gcc) \
790 for flag in $(EXTRA_GCC_FLAGS); do \
791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
792 done; \
793 ;; \
794 *) \
795 for flag in $(EXTRA_HOST_FLAGS); do \
796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
797 done; \
798 ;; \
799 esac ; \
800 (cd ./$$i && \
801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
803 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
805 info) \
806 || exit 1; \
807 else true; fi; \
808 done
809 # Break into two pieces
810 r=`${PWD}`; export r; \
811 s=`cd $(srcdir); ${PWD}`; export s; \
812 $(SET_LIB_PATH) \
813 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
814 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
815 for flag in $(EXTRA_TARGET_FLAGS); do \
816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
817 done; \
818 (cd $(TARGET_SUBDIR)/$$i && \
819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
821 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
823 info) \
824 || exit 1; \
825 else true; fi; \
826 done
828 .PHONY: do-install-info
829 do-install-info:
830 @r=`${PWD}`; export r; \
831 s=`cd $(srcdir); ${PWD}`; export s; \
832 $(SET_LIB_PATH) \
833 for i in $(SUBDIRS) -dummy-; do \
834 if [ -f ./$$i/Makefile ]; then \
835 case $$i in \
836 gcc) \
837 for flag in $(EXTRA_GCC_FLAGS); do \
838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
839 done; \
840 ;; \
841 *) \
842 for flag in $(EXTRA_HOST_FLAGS); do \
843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
844 done; \
845 ;; \
846 esac ; \
847 (cd ./$$i && \
848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
850 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
852 install-info) \
853 || exit 1; \
854 else true; fi; \
855 done
856 # Break into two pieces
857 r=`${PWD}`; export r; \
858 s=`cd $(srcdir); ${PWD}`; export s; \
859 $(SET_LIB_PATH) \
860 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
861 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
862 for flag in $(EXTRA_TARGET_FLAGS); do \
863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
864 done; \
865 (cd $(TARGET_SUBDIR)/$$i && \
866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
868 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
870 install-info) \
871 || exit 1; \
872 else true; fi; \
873 done
875 .PHONY: do-installcheck
876 do-installcheck:
877 @r=`${PWD}`; export r; \
878 s=`cd $(srcdir); ${PWD}`; export s; \
879 $(SET_LIB_PATH) \
880 for i in $(SUBDIRS) -dummy-; do \
881 if [ -f ./$$i/Makefile ]; then \
882 case $$i in \
883 gcc) \
884 for flag in $(EXTRA_GCC_FLAGS); do \
885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
886 done; \
887 ;; \
888 *) \
889 for flag in $(EXTRA_HOST_FLAGS); do \
890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
891 done; \
892 ;; \
893 esac ; \
894 (cd ./$$i && \
895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
897 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
899 installcheck) \
900 || exit 1; \
901 else true; fi; \
902 done
903 # Break into two pieces
904 r=`${PWD}`; export r; \
905 s=`cd $(srcdir); ${PWD}`; export s; \
906 $(SET_LIB_PATH) \
907 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
908 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
909 for flag in $(EXTRA_TARGET_FLAGS); do \
910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
911 done; \
912 (cd $(TARGET_SUBDIR)/$$i && \
913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
915 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
917 installcheck) \
918 || exit 1; \
919 else true; fi; \
920 done
922 .PHONY: do-mostlyclean
923 do-mostlyclean:
924 @r=`${PWD}`; export r; \
925 s=`cd $(srcdir); ${PWD}`; export s; \
926 $(SET_LIB_PATH) \
927 for i in $(SUBDIRS) -dummy-; do \
928 if [ -f ./$$i/Makefile ]; then \
929 case $$i in \
930 gcc) \
931 for flag in $(EXTRA_GCC_FLAGS); do \
932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
933 done; \
934 ;; \
935 *) \
936 for flag in $(EXTRA_HOST_FLAGS); do \
937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
938 done; \
939 ;; \
940 esac ; \
941 (cd ./$$i && \
942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
944 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
946 mostlyclean) \
947 || exit 1; \
948 else true; fi; \
949 done
950 # Break into two pieces
951 r=`${PWD}`; export r; \
952 s=`cd $(srcdir); ${PWD}`; export s; \
953 $(SET_LIB_PATH) \
954 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
955 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
956 for flag in $(EXTRA_TARGET_FLAGS); do \
957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
958 done; \
959 (cd $(TARGET_SUBDIR)/$$i && \
960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
962 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
964 mostlyclean) \
965 || exit 1; \
966 else true; fi; \
967 done
969 .PHONY: do-maintainer-clean
970 do-maintainer-clean:
971 @r=`${PWD}`; export r; \
972 s=`cd $(srcdir); ${PWD}`; export s; \
973 $(SET_LIB_PATH) \
974 for i in $(SUBDIRS) -dummy-; do \
975 if [ -f ./$$i/Makefile ]; then \
976 case $$i in \
977 gcc) \
978 for flag in $(EXTRA_GCC_FLAGS); do \
979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
980 done; \
981 ;; \
982 *) \
983 for flag in $(EXTRA_HOST_FLAGS); do \
984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
985 done; \
986 ;; \
987 esac ; \
988 (cd ./$$i && \
989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
991 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
993 maintainer-clean) \
994 || exit 1; \
995 else true; fi; \
996 done
997 # Break into two pieces
998 r=`${PWD}`; export r; \
999 s=`cd $(srcdir); ${PWD}`; export s; \
1000 $(SET_LIB_PATH) \
1001 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1002 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1003 for flag in $(EXTRA_TARGET_FLAGS); do \
1004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1005 done; \
1006 (cd $(TARGET_SUBDIR)/$$i && \
1007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1009 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1011 maintainer-clean) \
1012 || exit 1; \
1013 else true; fi; \
1014 done
1016 .PHONY: do-TAGS
1017 do-TAGS:
1018 @r=`${PWD}`; export r; \
1019 s=`cd $(srcdir); ${PWD}`; export s; \
1020 $(SET_LIB_PATH) \
1021 for i in $(SUBDIRS) -dummy-; do \
1022 if [ -f ./$$i/Makefile ]; then \
1023 case $$i in \
1024 gcc) \
1025 for flag in $(EXTRA_GCC_FLAGS); do \
1026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 done; \
1028 ;; \
1029 *) \
1030 for flag in $(EXTRA_HOST_FLAGS); do \
1031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1032 done; \
1033 ;; \
1034 esac ; \
1035 (cd ./$$i && \
1036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1038 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1040 TAGS) \
1041 || exit 1; \
1042 else true; fi; \
1043 done
1044 # Break into two pieces
1045 r=`${PWD}`; export r; \
1046 s=`cd $(srcdir); ${PWD}`; export s; \
1047 $(SET_LIB_PATH) \
1048 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1049 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1050 for flag in $(EXTRA_TARGET_FLAGS); do \
1051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1052 done; \
1053 (cd $(TARGET_SUBDIR)/$$i && \
1054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1056 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1058 TAGS) \
1059 || exit 1; \
1060 else true; fi; \
1061 done
1065 # Here are the targets which correspond to the do-X targets.
1067 .PHONY: info installcheck dvi install-info
1068 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1069 .PHONY: local-clean local-distclean local-maintainer-clean
1070 info: do-info
1071 installcheck: do-installcheck
1072 dvi: do-dvi
1074 # Make sure makeinfo is built before we do a `make info', if we're
1075 # in fact building texinfo.
1076 do-info: maybe-all-texinfo
1078 install-info: do-install-info dir.info
1079 s=`cd $(srcdir); ${PWD}`; export s; \
1080 if [ -f dir.info ] ; then \
1081 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1082 else true ; fi
1084 local-clean:
1085 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1087 local-distclean:
1088 -rm -f Makefile config.status config.cache mh-frag mt-frag
1089 -rm -f multilib.out multilib.ts multilib.tmp
1090 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1091 rm -rf $(TARGET_SUBDIR); \
1092 else true; fi
1093 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1094 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1095 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1096 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1097 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1099 local-maintainer-clean:
1100 @echo "This command is intended for maintainers to use;"
1101 @echo "it deletes files that may require special tools to rebuild."
1103 clean: do-clean local-clean
1104 mostlyclean: do-mostlyclean local-clean
1105 distclean: do-distclean local-clean local-distclean
1106 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1107 maintainer-clean: local-distclean
1108 realclean: maintainer-clean
1110 # This rule is used to clean specific modules.
1111 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1112 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1113 @dir=`echo $@ | sed -e 's/clean-//'`; \
1114 if [ -f ./$${dir}/Makefile ] ; then \
1115 r=`${PWD}`; export r; \
1116 s=`cd $(srcdir); ${PWD}`; export s; \
1117 $(SET_LIB_PATH) \
1118 (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \
1119 else \
1120 true; \
1123 .PHONY: $(CLEAN_TARGET_MODULES)
1124 $(CLEAN_TARGET_MODULES):
1125 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1126 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1127 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1128 r=`${PWD}`; export r; \
1129 s=`cd $(srcdir); ${PWD}`; export s; \
1130 $(SET_LIB_PATH) \
1131 (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1132 else \
1133 true; \
1136 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1137 clean-target-libgcc:
1138 test ! -d gcc/libgcc || \
1139 (cd gcc/libgcc && find . -type d -print) | \
1140 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1141 -rm -rf gcc/libgcc
1143 # Check target.
1145 .PHONY: check do-check
1146 check:
1147 $(MAKE) do-check NOTPARALLEL=parallel-ok
1149 # Only include modules actually being configured and built.
1150 do-check: @check_host_modules@ \
1151 @check_target_modules@
1153 # Automated reporting of test results.
1155 warning.log: build.log
1156 $(srcdir)/contrib/warn_summary build.log > $@
1158 mail-report.log:
1159 if test x'$(BOOT_CFLAGS)' != x''; then \
1160 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1161 fi; \
1162 $(srcdir)/contrib/test_summary -t >$@
1163 chmod +x $@
1164 echo If you really want to send e-mail, run ./$@ now
1166 mail-report-with-warnings.log: warning.log
1167 if test x'$(BOOT_CFLAGS)' != x''; then \
1168 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1169 fi; \
1170 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1171 chmod +x $@
1172 echo If you really want to send e-mail, run ./$@ now
1174 # Installation targets.
1176 .PHONY: install uninstall
1177 install: installdirs @install_host_modules@ @install_target_modules@
1179 install-target: @install_target_modules@
1181 uninstall:
1182 @echo "the uninstall target is not supported in this tree"
1184 .PHONY: install.all
1185 install.all: install-no-fixedincludes
1186 @if [ -f ./gcc/Makefile ] ; then \
1187 r=`${PWD}` ; export r ; \
1188 $(SET_LIB_PATH) \
1189 (cd ./gcc && \
1190 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1191 else \
1192 true ; \
1195 # install-no-fixedincludes is used because Cygnus can not distribute
1196 # the fixed header files.
1197 .PHONY: install-no-fixedincludes
1198 install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \
1199 @install_target_modules@ gcc-no-fixedincludes
1201 ### other supporting targets
1203 MAKEDIRS= \
1204 $(DESTDIR)$(prefix) \
1205 $(DESTDIR)$(exec_prefix)
1206 .PHONY: installdirs
1207 installdirs: mkinstalldirs
1208 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1210 dir.info: do-install-info
1211 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1212 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1213 mv -f dir.info.new dir.info ; \
1214 else true ; \
1217 dist:
1218 @echo "Building a full distribution of this tree isn't done"
1219 @echo "via 'make dist'. Check out the etc/ subdirectory"
1221 etags tags: TAGS
1223 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1224 # ability to use several tags files at once, so there is probably no need
1225 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1226 # (if we felt like it) have this Makefile write a piece of elisp which
1227 # the user could load to tell emacs19 where all the TAGS files we just
1228 # built are.
1229 TAGS: do-TAGS
1231 # --------------------------------------
1232 # Modules which run on the build machine
1233 # --------------------------------------
1235 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1236 maybe-configure-build-libiberty:
1237 configure-build-libiberty: $(BUILD_SUBDIR)/libiberty/Makefile
1238 $(BUILD_SUBDIR)/libiberty/Makefile: config.status
1239 @[ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\
1240 r=`${PWD}`; export r; \
1241 s=`cd $(srcdir); ${PWD}`; export s; \
1242 AR="$(AR_FOR_BUILD)"; export AR; \
1243 AS="$(AS_FOR_BUILD)"; export AS; \
1244 CC="$(CC_FOR_BUILD)"; export CC; \
1245 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1246 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1247 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1248 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1249 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1250 LD="$(LD_FOR_BUILD)"; export LD; \
1251 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1252 NM="$(NM_FOR_BUILD)"; export NM; \
1253 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1254 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1255 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1256 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1257 case $(srcdir) in \
1258 /* | [A-Za-z]:[\\/]*) \
1259 topdir=$(srcdir) ;; \
1260 *) \
1261 case "$(BUILD_SUBDIR)" in \
1262 .) topdir="../$(srcdir)" ;; \
1263 *) topdir="../../$(srcdir)" ;; \
1264 esac ;; \
1265 esac; \
1266 if [ "$(srcdir)" = "." ] ; then \
1267 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1268 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1269 if [ -f Makefile ]; then \
1270 if $(MAKE) distclean; then \
1271 true; \
1272 else \
1273 exit 1; \
1274 fi; \
1275 else \
1276 true; \
1277 fi; \
1278 else \
1279 exit 1; \
1280 fi; \
1281 else \
1282 true; \
1283 fi; \
1284 srcdiroption="--srcdir=."; \
1285 libsrcdir="."; \
1286 else \
1287 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1288 libsrcdir="$$s/libiberty"; \
1289 fi; \
1290 rm -f no-such-file || : ; \
1291 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1292 $(BUILD_CONFIGARGS) $${srcdiroption} \
1293 --with-build-subdir="$(BUILD_SUBDIR)" \
1294 || exit 1
1296 .PHONY: all-build-libiberty maybe-all-build-libiberty
1297 maybe-all-build-libiberty:
1298 all-build-libiberty: configure-build-libiberty
1299 @r=`${PWD}`; export r; \
1300 s=`cd $(srcdir); ${PWD}`; export s; \
1301 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1304 # --------------------------------------
1305 # Modules which run on the host machine
1306 # --------------------------------------
1308 .PHONY: configure-ash maybe-configure-ash
1309 maybe-configure-ash:
1310 configure-ash: ash/Makefile
1312 ash/Makefile: config.status
1313 @[ -d ash ] || mkdir ash; \
1314 r=`${PWD}`; export r; \
1315 s=`cd $(srcdir); ${PWD}`; export s; \
1316 CC="$(CC)"; export CC; \
1317 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1318 CXX="$(CXX)"; export CXX; \
1319 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1320 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1321 AR="$(AR)"; export AR; \
1322 AS="$(AS)"; export AS; \
1323 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1324 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1325 LD="$(LD)"; export LD; \
1326 NM="$(NM)"; export NM; \
1327 RANLIB="$(RANLIB)"; export RANLIB; \
1328 WINDRES="$(WINDRES)"; export WINDRES; \
1329 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1330 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1331 fi; \
1332 echo Configuring in ash; \
1333 cd ash || exit 1; \
1334 case $(srcdir) in \
1335 \.) \
1336 srcdiroption="--srcdir=."; \
1337 libsrcdir=".";; \
1338 /* | [A-Za-z]:[\\/]*) \
1339 srcdiroption="--srcdir=$(srcdir)/ash"; \
1340 libsrcdir="$$s/ash";; \
1341 *) \
1342 srcdiroption="--srcdir=../$(srcdir)/ash"; \
1343 libsrcdir="$$s/ash";; \
1344 esac; \
1345 $(SHELL) $${libsrcdir}/configure \
1346 $(HOST_CONFIGARGS) $${srcdiroption} \
1347 || exit 1
1349 .PHONY: all-ash maybe-all-ash
1350 maybe-all-ash:
1351 all-ash: configure-ash
1352 @r=`${PWD}`; export r; \
1353 s=`cd $(srcdir); ${PWD}`; export s; \
1354 $(SET_LIB_PATH) \
1355 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
1358 .PHONY: check-ash
1359 check-ash:
1360 @r=`${PWD}`; export r; \
1361 s=`cd $(srcdir); ${PWD}`; export s; \
1362 $(SET_LIB_PATH) \
1363 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
1367 .PHONY: install-ash maybe-install-ash
1368 maybe-install-ash:
1369 install-ash: installdirs
1370 @r=`${PWD}`; export r; \
1371 s=`cd $(srcdir); ${PWD}`; export s; \
1372 $(SET_LIB_PATH) \
1373 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
1376 .PHONY: configure-autoconf maybe-configure-autoconf
1377 maybe-configure-autoconf:
1378 configure-autoconf: autoconf/Makefile
1380 autoconf/Makefile: config.status
1381 @[ -d autoconf ] || mkdir autoconf; \
1382 r=`${PWD}`; export r; \
1383 s=`cd $(srcdir); ${PWD}`; export s; \
1384 CC="$(CC)"; export CC; \
1385 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1386 CXX="$(CXX)"; export CXX; \
1387 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1388 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1389 AR="$(AR)"; export AR; \
1390 AS="$(AS)"; export AS; \
1391 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1392 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1393 LD="$(LD)"; export LD; \
1394 NM="$(NM)"; export NM; \
1395 RANLIB="$(RANLIB)"; export RANLIB; \
1396 WINDRES="$(WINDRES)"; export WINDRES; \
1397 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1398 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1399 fi; \
1400 echo Configuring in autoconf; \
1401 cd autoconf || exit 1; \
1402 case $(srcdir) in \
1403 \.) \
1404 srcdiroption="--srcdir=."; \
1405 libsrcdir=".";; \
1406 /* | [A-Za-z]:[\\/]*) \
1407 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
1408 libsrcdir="$$s/autoconf";; \
1409 *) \
1410 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
1411 libsrcdir="$$s/autoconf";; \
1412 esac; \
1413 $(SHELL) $${libsrcdir}/configure \
1414 $(HOST_CONFIGARGS) $${srcdiroption} \
1415 || exit 1
1417 .PHONY: all-autoconf maybe-all-autoconf
1418 maybe-all-autoconf:
1419 all-autoconf: configure-autoconf
1420 @r=`${PWD}`; export r; \
1421 s=`cd $(srcdir); ${PWD}`; export s; \
1422 $(SET_LIB_PATH) \
1423 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
1426 .PHONY: check-autoconf
1427 check-autoconf:
1428 @r=`${PWD}`; export r; \
1429 s=`cd $(srcdir); ${PWD}`; export s; \
1430 $(SET_LIB_PATH) \
1431 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
1435 .PHONY: install-autoconf maybe-install-autoconf
1436 maybe-install-autoconf:
1437 install-autoconf: installdirs
1438 @r=`${PWD}`; export r; \
1439 s=`cd $(srcdir); ${PWD}`; export s; \
1440 $(SET_LIB_PATH) \
1441 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
1444 .PHONY: configure-automake maybe-configure-automake
1445 maybe-configure-automake:
1446 configure-automake: automake/Makefile
1448 automake/Makefile: config.status
1449 @[ -d automake ] || mkdir automake; \
1450 r=`${PWD}`; export r; \
1451 s=`cd $(srcdir); ${PWD}`; export s; \
1452 CC="$(CC)"; export CC; \
1453 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1454 CXX="$(CXX)"; export CXX; \
1455 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1456 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1457 AR="$(AR)"; export AR; \
1458 AS="$(AS)"; export AS; \
1459 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1460 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1461 LD="$(LD)"; export LD; \
1462 NM="$(NM)"; export NM; \
1463 RANLIB="$(RANLIB)"; export RANLIB; \
1464 WINDRES="$(WINDRES)"; export WINDRES; \
1465 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1466 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1467 fi; \
1468 echo Configuring in automake; \
1469 cd automake || exit 1; \
1470 case $(srcdir) in \
1471 \.) \
1472 srcdiroption="--srcdir=."; \
1473 libsrcdir=".";; \
1474 /* | [A-Za-z]:[\\/]*) \
1475 srcdiroption="--srcdir=$(srcdir)/automake"; \
1476 libsrcdir="$$s/automake";; \
1477 *) \
1478 srcdiroption="--srcdir=../$(srcdir)/automake"; \
1479 libsrcdir="$$s/automake";; \
1480 esac; \
1481 $(SHELL) $${libsrcdir}/configure \
1482 $(HOST_CONFIGARGS) $${srcdiroption} \
1483 || exit 1
1485 .PHONY: all-automake maybe-all-automake
1486 maybe-all-automake:
1487 all-automake: configure-automake
1488 @r=`${PWD}`; export r; \
1489 s=`cd $(srcdir); ${PWD}`; export s; \
1490 $(SET_LIB_PATH) \
1491 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
1494 .PHONY: check-automake
1495 check-automake:
1496 @r=`${PWD}`; export r; \
1497 s=`cd $(srcdir); ${PWD}`; export s; \
1498 $(SET_LIB_PATH) \
1499 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
1503 .PHONY: install-automake maybe-install-automake
1504 maybe-install-automake:
1505 install-automake: installdirs
1506 @r=`${PWD}`; export r; \
1507 s=`cd $(srcdir); ${PWD}`; export s; \
1508 $(SET_LIB_PATH) \
1509 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
1512 .PHONY: configure-bash maybe-configure-bash
1513 maybe-configure-bash:
1514 configure-bash: bash/Makefile
1516 bash/Makefile: config.status
1517 @[ -d bash ] || mkdir bash; \
1518 r=`${PWD}`; export r; \
1519 s=`cd $(srcdir); ${PWD}`; export s; \
1520 CC="$(CC)"; export CC; \
1521 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1522 CXX="$(CXX)"; export CXX; \
1523 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1524 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1525 AR="$(AR)"; export AR; \
1526 AS="$(AS)"; export AS; \
1527 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1528 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1529 LD="$(LD)"; export LD; \
1530 NM="$(NM)"; export NM; \
1531 RANLIB="$(RANLIB)"; export RANLIB; \
1532 WINDRES="$(WINDRES)"; export WINDRES; \
1533 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1534 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1535 fi; \
1536 echo Configuring in bash; \
1537 cd bash || exit 1; \
1538 case $(srcdir) in \
1539 \.) \
1540 srcdiroption="--srcdir=."; \
1541 libsrcdir=".";; \
1542 /* | [A-Za-z]:[\\/]*) \
1543 srcdiroption="--srcdir=$(srcdir)/bash"; \
1544 libsrcdir="$$s/bash";; \
1545 *) \
1546 srcdiroption="--srcdir=../$(srcdir)/bash"; \
1547 libsrcdir="$$s/bash";; \
1548 esac; \
1549 $(SHELL) $${libsrcdir}/configure \
1550 $(HOST_CONFIGARGS) $${srcdiroption} \
1551 || exit 1
1553 .PHONY: all-bash maybe-all-bash
1554 maybe-all-bash:
1555 all-bash: configure-bash
1556 @r=`${PWD}`; export r; \
1557 s=`cd $(srcdir); ${PWD}`; export s; \
1558 $(SET_LIB_PATH) \
1559 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
1562 .PHONY: check-bash
1563 check-bash:
1564 @r=`${PWD}`; export r; \
1565 s=`cd $(srcdir); ${PWD}`; export s; \
1566 $(SET_LIB_PATH) \
1567 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
1571 .PHONY: install-bash maybe-install-bash
1572 maybe-install-bash:
1573 install-bash: installdirs
1574 @r=`${PWD}`; export r; \
1575 s=`cd $(srcdir); ${PWD}`; export s; \
1576 $(SET_LIB_PATH) \
1577 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
1580 .PHONY: configure-bfd maybe-configure-bfd
1581 maybe-configure-bfd:
1582 configure-bfd: bfd/Makefile
1584 bfd/Makefile: config.status
1585 @[ -d bfd ] || mkdir bfd; \
1586 r=`${PWD}`; export r; \
1587 s=`cd $(srcdir); ${PWD}`; export s; \
1588 CC="$(CC)"; export CC; \
1589 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1590 CXX="$(CXX)"; export CXX; \
1591 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1592 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1593 AR="$(AR)"; export AR; \
1594 AS="$(AS)"; export AS; \
1595 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1596 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1597 LD="$(LD)"; export LD; \
1598 NM="$(NM)"; export NM; \
1599 RANLIB="$(RANLIB)"; export RANLIB; \
1600 WINDRES="$(WINDRES)"; export WINDRES; \
1601 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1602 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1603 fi; \
1604 echo Configuring in bfd; \
1605 cd bfd || exit 1; \
1606 case $(srcdir) in \
1607 \.) \
1608 srcdiroption="--srcdir=."; \
1609 libsrcdir=".";; \
1610 /* | [A-Za-z]:[\\/]*) \
1611 srcdiroption="--srcdir=$(srcdir)/bfd"; \
1612 libsrcdir="$$s/bfd";; \
1613 *) \
1614 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
1615 libsrcdir="$$s/bfd";; \
1616 esac; \
1617 $(SHELL) $${libsrcdir}/configure \
1618 $(HOST_CONFIGARGS) $${srcdiroption} \
1619 || exit 1
1621 .PHONY: all-bfd maybe-all-bfd
1622 maybe-all-bfd:
1623 all-bfd: configure-bfd
1624 @r=`${PWD}`; export r; \
1625 s=`cd $(srcdir); ${PWD}`; export s; \
1626 $(SET_LIB_PATH) \
1627 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
1630 .PHONY: check-bfd
1631 check-bfd:
1632 @r=`${PWD}`; export r; \
1633 s=`cd $(srcdir); ${PWD}`; export s; \
1634 $(SET_LIB_PATH) \
1635 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
1639 .PHONY: install-bfd maybe-install-bfd
1640 maybe-install-bfd:
1641 install-bfd: installdirs
1642 @r=`${PWD}`; export r; \
1643 s=`cd $(srcdir); ${PWD}`; export s; \
1644 $(SET_LIB_PATH) \
1645 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
1648 .PHONY: configure-opcodes maybe-configure-opcodes
1649 maybe-configure-opcodes:
1650 configure-opcodes: opcodes/Makefile
1652 opcodes/Makefile: config.status
1653 @[ -d opcodes ] || mkdir opcodes; \
1654 r=`${PWD}`; export r; \
1655 s=`cd $(srcdir); ${PWD}`; export s; \
1656 CC="$(CC)"; export CC; \
1657 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1658 CXX="$(CXX)"; export CXX; \
1659 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1660 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1661 AR="$(AR)"; export AR; \
1662 AS="$(AS)"; export AS; \
1663 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1664 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1665 LD="$(LD)"; export LD; \
1666 NM="$(NM)"; export NM; \
1667 RANLIB="$(RANLIB)"; export RANLIB; \
1668 WINDRES="$(WINDRES)"; export WINDRES; \
1669 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1670 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1671 fi; \
1672 echo Configuring in opcodes; \
1673 cd opcodes || exit 1; \
1674 case $(srcdir) in \
1675 \.) \
1676 srcdiroption="--srcdir=."; \
1677 libsrcdir=".";; \
1678 /* | [A-Za-z]:[\\/]*) \
1679 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
1680 libsrcdir="$$s/opcodes";; \
1681 *) \
1682 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
1683 libsrcdir="$$s/opcodes";; \
1684 esac; \
1685 $(SHELL) $${libsrcdir}/configure \
1686 $(HOST_CONFIGARGS) $${srcdiroption} \
1687 || exit 1
1689 .PHONY: all-opcodes maybe-all-opcodes
1690 maybe-all-opcodes:
1691 all-opcodes: configure-opcodes
1692 @r=`${PWD}`; export r; \
1693 s=`cd $(srcdir); ${PWD}`; export s; \
1694 $(SET_LIB_PATH) \
1695 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
1698 .PHONY: check-opcodes
1699 check-opcodes:
1700 @r=`${PWD}`; export r; \
1701 s=`cd $(srcdir); ${PWD}`; export s; \
1702 $(SET_LIB_PATH) \
1703 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
1707 .PHONY: install-opcodes maybe-install-opcodes
1708 maybe-install-opcodes:
1709 install-opcodes: installdirs
1710 @r=`${PWD}`; export r; \
1711 s=`cd $(srcdir); ${PWD}`; export s; \
1712 $(SET_LIB_PATH) \
1713 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
1716 .PHONY: configure-binutils maybe-configure-binutils
1717 maybe-configure-binutils:
1718 configure-binutils: binutils/Makefile
1720 binutils/Makefile: config.status
1721 @[ -d binutils ] || mkdir binutils; \
1722 r=`${PWD}`; export r; \
1723 s=`cd $(srcdir); ${PWD}`; export s; \
1724 CC="$(CC)"; export CC; \
1725 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1726 CXX="$(CXX)"; export CXX; \
1727 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1728 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1729 AR="$(AR)"; export AR; \
1730 AS="$(AS)"; export AS; \
1731 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1732 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1733 LD="$(LD)"; export LD; \
1734 NM="$(NM)"; export NM; \
1735 RANLIB="$(RANLIB)"; export RANLIB; \
1736 WINDRES="$(WINDRES)"; export WINDRES; \
1737 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1738 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1739 fi; \
1740 echo Configuring in binutils; \
1741 cd binutils || exit 1; \
1742 case $(srcdir) in \
1743 \.) \
1744 srcdiroption="--srcdir=."; \
1745 libsrcdir=".";; \
1746 /* | [A-Za-z]:[\\/]*) \
1747 srcdiroption="--srcdir=$(srcdir)/binutils"; \
1748 libsrcdir="$$s/binutils";; \
1749 *) \
1750 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
1751 libsrcdir="$$s/binutils";; \
1752 esac; \
1753 $(SHELL) $${libsrcdir}/configure \
1754 $(HOST_CONFIGARGS) $${srcdiroption} \
1755 || exit 1
1757 .PHONY: all-binutils maybe-all-binutils
1758 maybe-all-binutils:
1759 all-binutils: configure-binutils
1760 @r=`${PWD}`; export r; \
1761 s=`cd $(srcdir); ${PWD}`; export s; \
1762 $(SET_LIB_PATH) \
1763 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
1766 .PHONY: check-binutils
1767 check-binutils:
1768 @r=`${PWD}`; export r; \
1769 s=`cd $(srcdir); ${PWD}`; export s; \
1770 $(SET_LIB_PATH) \
1771 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
1775 .PHONY: install-binutils maybe-install-binutils
1776 maybe-install-binutils:
1777 install-binutils: installdirs
1778 @r=`${PWD}`; export r; \
1779 s=`cd $(srcdir); ${PWD}`; export s; \
1780 $(SET_LIB_PATH) \
1781 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
1784 .PHONY: configure-bison maybe-configure-bison
1785 maybe-configure-bison:
1786 configure-bison: bison/Makefile
1788 bison/Makefile: config.status
1789 @[ -d bison ] || mkdir bison; \
1790 r=`${PWD}`; export r; \
1791 s=`cd $(srcdir); ${PWD}`; export s; \
1792 CC="$(CC)"; export CC; \
1793 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1794 CXX="$(CXX)"; export CXX; \
1795 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1796 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1797 AR="$(AR)"; export AR; \
1798 AS="$(AS)"; export AS; \
1799 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1800 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1801 LD="$(LD)"; export LD; \
1802 NM="$(NM)"; export NM; \
1803 RANLIB="$(RANLIB)"; export RANLIB; \
1804 WINDRES="$(WINDRES)"; export WINDRES; \
1805 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1806 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1807 fi; \
1808 echo Configuring in bison; \
1809 cd bison || exit 1; \
1810 case $(srcdir) in \
1811 \.) \
1812 srcdiroption="--srcdir=."; \
1813 libsrcdir=".";; \
1814 /* | [A-Za-z]:[\\/]*) \
1815 srcdiroption="--srcdir=$(srcdir)/bison"; \
1816 libsrcdir="$$s/bison";; \
1817 *) \
1818 srcdiroption="--srcdir=../$(srcdir)/bison"; \
1819 libsrcdir="$$s/bison";; \
1820 esac; \
1821 $(SHELL) $${libsrcdir}/configure \
1822 $(HOST_CONFIGARGS) $${srcdiroption} \
1823 || exit 1
1825 .PHONY: all-bison maybe-all-bison
1826 maybe-all-bison:
1827 all-bison: configure-bison
1828 @r=`${PWD}`; export r; \
1829 s=`cd $(srcdir); ${PWD}`; export s; \
1830 $(SET_LIB_PATH) \
1831 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
1834 .PHONY: check-bison
1835 # This module is only tested in a native toolchain.
1836 check-bison:
1837 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1838 r=`${PWD}`; export r; \
1839 s=`cd $(srcdir); ${PWD}`; export s; \
1840 $(SET_LIB_PATH) \
1841 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
1846 .PHONY: install-bison maybe-install-bison
1847 maybe-install-bison:
1848 install-bison: installdirs
1849 @r=`${PWD}`; export r; \
1850 s=`cd $(srcdir); ${PWD}`; export s; \
1851 $(SET_LIB_PATH) \
1852 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
1855 .PHONY: configure-byacc maybe-configure-byacc
1856 maybe-configure-byacc:
1857 configure-byacc: byacc/Makefile
1859 byacc/Makefile: config.status
1860 @[ -d byacc ] || mkdir byacc; \
1861 r=`${PWD}`; export r; \
1862 s=`cd $(srcdir); ${PWD}`; export s; \
1863 CC="$(CC)"; export CC; \
1864 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1865 CXX="$(CXX)"; export CXX; \
1866 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1867 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
1868 AR="$(AR)"; export AR; \
1869 AS="$(AS)"; export AS; \
1870 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1871 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1872 LD="$(LD)"; export LD; \
1873 NM="$(NM)"; export NM; \
1874 RANLIB="$(RANLIB)"; export RANLIB; \
1875 WINDRES="$(WINDRES)"; export WINDRES; \
1876 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1877 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1878 fi; \
1879 echo Configuring in byacc; \
1880 cd byacc || exit 1; \
1881 case $(srcdir) in \
1882 \.) \
1883 srcdiroption="--srcdir=."; \
1884 libsrcdir=".";; \
1885 /* | [A-Za-z]:[\\/]*) \
1886 srcdiroption="--srcdir=$(srcdir)/byacc"; \
1887 libsrcdir="$$s/byacc";; \
1888 *) \
1889 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
1890 libsrcdir="$$s/byacc";; \
1891 esac; \
1892 $(SHELL) $${libsrcdir}/configure \
1893 $(HOST_CONFIGARGS) $${srcdiroption} \
1894 || exit 1
1896 .PHONY: all-byacc maybe-all-byacc
1897 maybe-all-byacc:
1898 all-byacc: configure-byacc
1899 @r=`${PWD}`; export r; \
1900 s=`cd $(srcdir); ${PWD}`; export s; \
1901 $(SET_LIB_PATH) \
1902 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
1905 .PHONY: check-byacc
1906 # This module is only tested in a native toolchain.
1907 check-byacc:
1908 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1909 r=`${PWD}`; export r; \
1910 s=`cd $(srcdir); ${PWD}`; export s; \
1911 $(SET_LIB_PATH) \
1912 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
1917 .PHONY: install-byacc maybe-install-byacc
1918 maybe-install-byacc:
1919 install-byacc: installdirs
1920 @r=`${PWD}`; export r; \
1921 s=`cd $(srcdir); ${PWD}`; export s; \
1922 $(SET_LIB_PATH) \
1923 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
1926 .PHONY: configure-bzip2 maybe-configure-bzip2
1927 maybe-configure-bzip2:
1928 configure-bzip2: bzip2/Makefile
1930 bzip2/Makefile: config.status
1931 @[ -d bzip2 ] || mkdir bzip2; \
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 bzip2; \
1951 cd bzip2 || exit 1; \
1952 case $(srcdir) in \
1953 \.) \
1954 srcdiroption="--srcdir=."; \
1955 libsrcdir=".";; \
1956 /* | [A-Za-z]:[\\/]*) \
1957 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
1958 libsrcdir="$$s/bzip2";; \
1959 *) \
1960 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
1961 libsrcdir="$$s/bzip2";; \
1962 esac; \
1963 $(SHELL) $${libsrcdir}/configure \
1964 $(HOST_CONFIGARGS) $${srcdiroption} \
1965 || exit 1
1967 .PHONY: all-bzip2 maybe-all-bzip2
1968 maybe-all-bzip2:
1969 all-bzip2: configure-bzip2
1970 @r=`${PWD}`; export r; \
1971 s=`cd $(srcdir); ${PWD}`; export s; \
1972 $(SET_LIB_PATH) \
1973 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
1976 .PHONY: check-bzip2
1977 check-bzip2:
1978 @r=`${PWD}`; export r; \
1979 s=`cd $(srcdir); ${PWD}`; export s; \
1980 $(SET_LIB_PATH) \
1981 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
1985 .PHONY: install-bzip2 maybe-install-bzip2
1986 maybe-install-bzip2:
1987 install-bzip2: installdirs
1988 @r=`${PWD}`; export r; \
1989 s=`cd $(srcdir); ${PWD}`; export s; \
1990 $(SET_LIB_PATH) \
1991 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
1994 .PHONY: configure-db maybe-configure-db
1995 maybe-configure-db:
1996 configure-db: db/Makefile
1998 db/Makefile: config.status
1999 @[ -d db ] || mkdir db; \
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 db; \
2019 cd db || exit 1; \
2020 case $(srcdir) in \
2021 \.) \
2022 srcdiroption="--srcdir=."; \
2023 libsrcdir=".";; \
2024 /* | [A-Za-z]:[\\/]*) \
2025 srcdiroption="--srcdir=$(srcdir)/db"; \
2026 libsrcdir="$$s/db";; \
2027 *) \
2028 srcdiroption="--srcdir=../$(srcdir)/db"; \
2029 libsrcdir="$$s/db";; \
2030 esac; \
2031 $(SHELL) $${libsrcdir}/configure \
2032 $(HOST_CONFIGARGS) $${srcdiroption} \
2033 || exit 1
2035 .PHONY: all-db maybe-all-db
2036 maybe-all-db:
2037 all-db: configure-db
2038 @r=`${PWD}`; export r; \
2039 s=`cd $(srcdir); ${PWD}`; export s; \
2040 $(SET_LIB_PATH) \
2041 (cd db && $(MAKE) $(FLAGS_TO_PASS) all)
2044 .PHONY: check-db
2045 check-db:
2046 @r=`${PWD}`; export r; \
2047 s=`cd $(srcdir); ${PWD}`; export s; \
2048 $(SET_LIB_PATH) \
2049 (cd db && $(MAKE) $(FLAGS_TO_PASS) check)
2053 .PHONY: install-db maybe-install-db
2054 maybe-install-db:
2055 install-db: installdirs
2056 @r=`${PWD}`; export r; \
2057 s=`cd $(srcdir); ${PWD}`; export s; \
2058 $(SET_LIB_PATH) \
2059 (cd db && $(MAKE) $(FLAGS_TO_PASS) install)
2062 .PHONY: configure-dejagnu maybe-configure-dejagnu
2063 maybe-configure-dejagnu:
2064 configure-dejagnu: dejagnu/Makefile
2066 dejagnu/Makefile: config.status
2067 @[ -d dejagnu ] || mkdir dejagnu; \
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 dejagnu; \
2087 cd dejagnu || exit 1; \
2088 case $(srcdir) in \
2089 \.) \
2090 srcdiroption="--srcdir=."; \
2091 libsrcdir=".";; \
2092 /* | [A-Za-z]:[\\/]*) \
2093 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
2094 libsrcdir="$$s/dejagnu";; \
2095 *) \
2096 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
2097 libsrcdir="$$s/dejagnu";; \
2098 esac; \
2099 $(SHELL) $${libsrcdir}/configure \
2100 $(HOST_CONFIGARGS) $${srcdiroption} \
2101 || exit 1
2103 .PHONY: all-dejagnu maybe-all-dejagnu
2104 maybe-all-dejagnu:
2105 all-dejagnu: configure-dejagnu
2106 @r=`${PWD}`; export r; \
2107 s=`cd $(srcdir); ${PWD}`; export s; \
2108 $(SET_LIB_PATH) \
2109 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
2112 .PHONY: check-dejagnu
2113 check-dejagnu:
2114 @r=`${PWD}`; export r; \
2115 s=`cd $(srcdir); ${PWD}`; export s; \
2116 $(SET_LIB_PATH) \
2117 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
2121 .PHONY: install-dejagnu maybe-install-dejagnu
2122 maybe-install-dejagnu:
2123 install-dejagnu: installdirs
2124 @r=`${PWD}`; export r; \
2125 s=`cd $(srcdir); ${PWD}`; export s; \
2126 $(SET_LIB_PATH) \
2127 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
2130 .PHONY: configure-diff maybe-configure-diff
2131 maybe-configure-diff:
2132 configure-diff: diff/Makefile
2134 diff/Makefile: config.status
2135 @[ -d diff ] || mkdir diff; \
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 diff; \
2155 cd diff || exit 1; \
2156 case $(srcdir) in \
2157 \.) \
2158 srcdiroption="--srcdir=."; \
2159 libsrcdir=".";; \
2160 /* | [A-Za-z]:[\\/]*) \
2161 srcdiroption="--srcdir=$(srcdir)/diff"; \
2162 libsrcdir="$$s/diff";; \
2163 *) \
2164 srcdiroption="--srcdir=../$(srcdir)/diff"; \
2165 libsrcdir="$$s/diff";; \
2166 esac; \
2167 $(SHELL) $${libsrcdir}/configure \
2168 $(HOST_CONFIGARGS) $${srcdiroption} \
2169 || exit 1
2171 .PHONY: all-diff maybe-all-diff
2172 maybe-all-diff:
2173 all-diff: configure-diff
2174 @r=`${PWD}`; export r; \
2175 s=`cd $(srcdir); ${PWD}`; export s; \
2176 $(SET_LIB_PATH) \
2177 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
2180 .PHONY: check-diff
2181 check-diff:
2182 @r=`${PWD}`; export r; \
2183 s=`cd $(srcdir); ${PWD}`; export s; \
2184 $(SET_LIB_PATH) \
2185 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
2189 .PHONY: install-diff maybe-install-diff
2190 maybe-install-diff:
2191 install-diff: installdirs
2192 @r=`${PWD}`; export r; \
2193 s=`cd $(srcdir); ${PWD}`; export s; \
2194 $(SET_LIB_PATH) \
2195 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
2198 .PHONY: configure-dosutils maybe-configure-dosutils
2199 maybe-configure-dosutils:
2200 configure-dosutils: dosutils/Makefile
2202 dosutils/Makefile: config.status
2203 @[ -d dosutils ] || mkdir dosutils; \
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 dosutils; \
2223 cd dosutils || exit 1; \
2224 case $(srcdir) in \
2225 \.) \
2226 srcdiroption="--srcdir=."; \
2227 libsrcdir=".";; \
2228 /* | [A-Za-z]:[\\/]*) \
2229 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
2230 libsrcdir="$$s/dosutils";; \
2231 *) \
2232 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
2233 libsrcdir="$$s/dosutils";; \
2234 esac; \
2235 $(SHELL) $${libsrcdir}/configure \
2236 $(HOST_CONFIGARGS) $${srcdiroption} \
2237 || exit 1
2239 .PHONY: all-dosutils maybe-all-dosutils
2240 maybe-all-dosutils:
2241 all-dosutils: configure-dosutils
2242 @r=`${PWD}`; export r; \
2243 s=`cd $(srcdir); ${PWD}`; export s; \
2244 $(SET_LIB_PATH) \
2245 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
2248 .PHONY: check-dosutils
2249 check-dosutils:
2253 .PHONY: install-dosutils maybe-install-dosutils
2254 maybe-install-dosutils:
2255 install-dosutils: installdirs
2256 @r=`${PWD}`; export r; \
2257 s=`cd $(srcdir); ${PWD}`; export s; \
2258 $(SET_LIB_PATH) \
2259 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
2262 .PHONY: configure-etc maybe-configure-etc
2263 maybe-configure-etc:
2264 configure-etc: etc/Makefile
2266 etc/Makefile: config.status
2267 @[ -d etc ] || mkdir etc; \
2268 r=`${PWD}`; export r; \
2269 s=`cd $(srcdir); ${PWD}`; export s; \
2270 CC="$(CC)"; export CC; \
2271 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2272 CXX="$(CXX)"; export CXX; \
2273 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2274 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2275 AR="$(AR)"; export AR; \
2276 AS="$(AS)"; export AS; \
2277 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2278 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2279 LD="$(LD)"; export LD; \
2280 NM="$(NM)"; export NM; \
2281 RANLIB="$(RANLIB)"; export RANLIB; \
2282 WINDRES="$(WINDRES)"; export WINDRES; \
2283 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2284 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2285 fi; \
2286 echo Configuring in etc; \
2287 cd etc || exit 1; \
2288 case $(srcdir) in \
2289 \.) \
2290 srcdiroption="--srcdir=."; \
2291 libsrcdir=".";; \
2292 /* | [A-Za-z]:[\\/]*) \
2293 srcdiroption="--srcdir=$(srcdir)/etc"; \
2294 libsrcdir="$$s/etc";; \
2295 *) \
2296 srcdiroption="--srcdir=../$(srcdir)/etc"; \
2297 libsrcdir="$$s/etc";; \
2298 esac; \
2299 $(SHELL) $${libsrcdir}/configure \
2300 $(HOST_CONFIGARGS) $${srcdiroption} \
2301 || exit 1
2303 .PHONY: all-etc maybe-all-etc
2304 maybe-all-etc:
2305 all-etc: configure-etc
2306 @r=`${PWD}`; export r; \
2307 s=`cd $(srcdir); ${PWD}`; export s; \
2308 $(SET_LIB_PATH) \
2309 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
2312 .PHONY: check-etc
2313 check-etc:
2314 @r=`${PWD}`; export r; \
2315 s=`cd $(srcdir); ${PWD}`; export s; \
2316 $(SET_LIB_PATH) \
2317 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
2321 .PHONY: install-etc maybe-install-etc
2322 maybe-install-etc:
2323 install-etc: installdirs
2324 @r=`${PWD}`; export r; \
2325 s=`cd $(srcdir); ${PWD}`; export s; \
2326 $(SET_LIB_PATH) \
2327 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
2330 .PHONY: configure-fastjar maybe-configure-fastjar
2331 maybe-configure-fastjar:
2332 configure-fastjar: fastjar/Makefile
2334 fastjar/Makefile: config.status
2335 @[ -d fastjar ] || mkdir fastjar; \
2336 r=`${PWD}`; export r; \
2337 s=`cd $(srcdir); ${PWD}`; export s; \
2338 CC="$(CC)"; export CC; \
2339 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2340 CXX="$(CXX)"; export CXX; \
2341 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2342 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2343 AR="$(AR)"; export AR; \
2344 AS="$(AS)"; export AS; \
2345 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2346 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2347 LD="$(LD)"; export LD; \
2348 NM="$(NM)"; export NM; \
2349 RANLIB="$(RANLIB)"; export RANLIB; \
2350 WINDRES="$(WINDRES)"; export WINDRES; \
2351 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2352 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2353 fi; \
2354 echo Configuring in fastjar; \
2355 cd fastjar || exit 1; \
2356 case $(srcdir) in \
2357 \.) \
2358 srcdiroption="--srcdir=."; \
2359 libsrcdir=".";; \
2360 /* | [A-Za-z]:[\\/]*) \
2361 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
2362 libsrcdir="$$s/fastjar";; \
2363 *) \
2364 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
2365 libsrcdir="$$s/fastjar";; \
2366 esac; \
2367 $(SHELL) $${libsrcdir}/configure \
2368 $(HOST_CONFIGARGS) $${srcdiroption} \
2369 || exit 1
2371 .PHONY: all-fastjar maybe-all-fastjar
2372 maybe-all-fastjar:
2373 all-fastjar: configure-fastjar
2374 @r=`${PWD}`; export r; \
2375 s=`cd $(srcdir); ${PWD}`; export s; \
2376 $(SET_LIB_PATH) \
2377 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
2380 .PHONY: check-fastjar
2381 # This module is only tested in a native toolchain.
2382 check-fastjar:
2383 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2384 r=`${PWD}`; export r; \
2385 s=`cd $(srcdir); ${PWD}`; export s; \
2386 $(SET_LIB_PATH) \
2387 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
2392 .PHONY: install-fastjar maybe-install-fastjar
2393 maybe-install-fastjar:
2394 install-fastjar: installdirs
2395 @r=`${PWD}`; export r; \
2396 s=`cd $(srcdir); ${PWD}`; export s; \
2397 $(SET_LIB_PATH) \
2398 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
2401 .PHONY: configure-fileutils maybe-configure-fileutils
2402 maybe-configure-fileutils:
2403 configure-fileutils: fileutils/Makefile
2405 fileutils/Makefile: config.status
2406 @[ -d fileutils ] || mkdir fileutils; \
2407 r=`${PWD}`; export r; \
2408 s=`cd $(srcdir); ${PWD}`; export s; \
2409 CC="$(CC)"; export CC; \
2410 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2411 CXX="$(CXX)"; export CXX; \
2412 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2413 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2414 AR="$(AR)"; export AR; \
2415 AS="$(AS)"; export AS; \
2416 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2417 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2418 LD="$(LD)"; export LD; \
2419 NM="$(NM)"; export NM; \
2420 RANLIB="$(RANLIB)"; export RANLIB; \
2421 WINDRES="$(WINDRES)"; export WINDRES; \
2422 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2423 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2424 fi; \
2425 echo Configuring in fileutils; \
2426 cd fileutils || exit 1; \
2427 case $(srcdir) in \
2428 \.) \
2429 srcdiroption="--srcdir=."; \
2430 libsrcdir=".";; \
2431 /* | [A-Za-z]:[\\/]*) \
2432 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
2433 libsrcdir="$$s/fileutils";; \
2434 *) \
2435 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
2436 libsrcdir="$$s/fileutils";; \
2437 esac; \
2438 $(SHELL) $${libsrcdir}/configure \
2439 $(HOST_CONFIGARGS) $${srcdiroption} \
2440 || exit 1
2442 .PHONY: all-fileutils maybe-all-fileutils
2443 maybe-all-fileutils:
2444 all-fileutils: configure-fileutils
2445 @r=`${PWD}`; export r; \
2446 s=`cd $(srcdir); ${PWD}`; export s; \
2447 $(SET_LIB_PATH) \
2448 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
2451 .PHONY: check-fileutils
2452 check-fileutils:
2453 @r=`${PWD}`; export r; \
2454 s=`cd $(srcdir); ${PWD}`; export s; \
2455 $(SET_LIB_PATH) \
2456 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
2460 .PHONY: install-fileutils maybe-install-fileutils
2461 maybe-install-fileutils:
2462 install-fileutils: installdirs
2463 @r=`${PWD}`; export r; \
2464 s=`cd $(srcdir); ${PWD}`; export s; \
2465 $(SET_LIB_PATH) \
2466 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
2469 .PHONY: configure-findutils maybe-configure-findutils
2470 maybe-configure-findutils:
2471 configure-findutils: findutils/Makefile
2473 findutils/Makefile: config.status
2474 @[ -d findutils ] || mkdir findutils; \
2475 r=`${PWD}`; export r; \
2476 s=`cd $(srcdir); ${PWD}`; export s; \
2477 CC="$(CC)"; export CC; \
2478 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2479 CXX="$(CXX)"; export CXX; \
2480 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2481 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2482 AR="$(AR)"; export AR; \
2483 AS="$(AS)"; export AS; \
2484 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2485 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2486 LD="$(LD)"; export LD; \
2487 NM="$(NM)"; export NM; \
2488 RANLIB="$(RANLIB)"; export RANLIB; \
2489 WINDRES="$(WINDRES)"; export WINDRES; \
2490 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2491 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2492 fi; \
2493 echo Configuring in findutils; \
2494 cd findutils || exit 1; \
2495 case $(srcdir) in \
2496 \.) \
2497 srcdiroption="--srcdir=."; \
2498 libsrcdir=".";; \
2499 /* | [A-Za-z]:[\\/]*) \
2500 srcdiroption="--srcdir=$(srcdir)/findutils"; \
2501 libsrcdir="$$s/findutils";; \
2502 *) \
2503 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
2504 libsrcdir="$$s/findutils";; \
2505 esac; \
2506 $(SHELL) $${libsrcdir}/configure \
2507 $(HOST_CONFIGARGS) $${srcdiroption} \
2508 || exit 1
2510 .PHONY: all-findutils maybe-all-findutils
2511 maybe-all-findutils:
2512 all-findutils: configure-findutils
2513 @r=`${PWD}`; export r; \
2514 s=`cd $(srcdir); ${PWD}`; export s; \
2515 $(SET_LIB_PATH) \
2516 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
2519 .PHONY: check-findutils
2520 check-findutils:
2521 @r=`${PWD}`; export r; \
2522 s=`cd $(srcdir); ${PWD}`; export s; \
2523 $(SET_LIB_PATH) \
2524 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
2528 .PHONY: install-findutils maybe-install-findutils
2529 maybe-install-findutils:
2530 install-findutils: installdirs
2531 @r=`${PWD}`; export r; \
2532 s=`cd $(srcdir); ${PWD}`; export s; \
2533 $(SET_LIB_PATH) \
2534 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
2537 .PHONY: configure-find maybe-configure-find
2538 maybe-configure-find:
2539 configure-find: find/Makefile
2541 find/Makefile: config.status
2542 @[ -d find ] || mkdir find; \
2543 r=`${PWD}`; export r; \
2544 s=`cd $(srcdir); ${PWD}`; export s; \
2545 CC="$(CC)"; export CC; \
2546 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2547 CXX="$(CXX)"; export CXX; \
2548 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2549 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2550 AR="$(AR)"; export AR; \
2551 AS="$(AS)"; export AS; \
2552 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2553 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2554 LD="$(LD)"; export LD; \
2555 NM="$(NM)"; export NM; \
2556 RANLIB="$(RANLIB)"; export RANLIB; \
2557 WINDRES="$(WINDRES)"; export WINDRES; \
2558 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2559 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2560 fi; \
2561 echo Configuring in find; \
2562 cd find || exit 1; \
2563 case $(srcdir) in \
2564 \.) \
2565 srcdiroption="--srcdir=."; \
2566 libsrcdir=".";; \
2567 /* | [A-Za-z]:[\\/]*) \
2568 srcdiroption="--srcdir=$(srcdir)/find"; \
2569 libsrcdir="$$s/find";; \
2570 *) \
2571 srcdiroption="--srcdir=../$(srcdir)/find"; \
2572 libsrcdir="$$s/find";; \
2573 esac; \
2574 $(SHELL) $${libsrcdir}/configure \
2575 $(HOST_CONFIGARGS) $${srcdiroption} \
2576 || exit 1
2578 .PHONY: all-find maybe-all-find
2579 maybe-all-find:
2580 all-find: configure-find
2581 @r=`${PWD}`; export r; \
2582 s=`cd $(srcdir); ${PWD}`; export s; \
2583 $(SET_LIB_PATH) \
2584 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
2587 .PHONY: check-find
2588 check-find:
2589 @r=`${PWD}`; export r; \
2590 s=`cd $(srcdir); ${PWD}`; export s; \
2591 $(SET_LIB_PATH) \
2592 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
2596 .PHONY: install-find maybe-install-find
2597 maybe-install-find:
2598 install-find: installdirs
2599 @r=`${PWD}`; export r; \
2600 s=`cd $(srcdir); ${PWD}`; export s; \
2601 $(SET_LIB_PATH) \
2602 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
2605 .PHONY: configure-flex maybe-configure-flex
2606 maybe-configure-flex:
2607 configure-flex: flex/Makefile
2609 flex/Makefile: config.status
2610 @[ -d flex ] || mkdir flex; \
2611 r=`${PWD}`; export r; \
2612 s=`cd $(srcdir); ${PWD}`; export s; \
2613 CC="$(CC)"; export CC; \
2614 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2615 CXX="$(CXX)"; export CXX; \
2616 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2617 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2618 AR="$(AR)"; export AR; \
2619 AS="$(AS)"; export AS; \
2620 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2621 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2622 LD="$(LD)"; export LD; \
2623 NM="$(NM)"; export NM; \
2624 RANLIB="$(RANLIB)"; export RANLIB; \
2625 WINDRES="$(WINDRES)"; export WINDRES; \
2626 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2627 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2628 fi; \
2629 echo Configuring in flex; \
2630 cd flex || exit 1; \
2631 case $(srcdir) in \
2632 \.) \
2633 srcdiroption="--srcdir=."; \
2634 libsrcdir=".";; \
2635 /* | [A-Za-z]:[\\/]*) \
2636 srcdiroption="--srcdir=$(srcdir)/flex"; \
2637 libsrcdir="$$s/flex";; \
2638 *) \
2639 srcdiroption="--srcdir=../$(srcdir)/flex"; \
2640 libsrcdir="$$s/flex";; \
2641 esac; \
2642 $(SHELL) $${libsrcdir}/configure \
2643 $(HOST_CONFIGARGS) $${srcdiroption} \
2644 || exit 1
2646 .PHONY: all-flex maybe-all-flex
2647 maybe-all-flex:
2648 all-flex: configure-flex
2649 @r=`${PWD}`; export r; \
2650 s=`cd $(srcdir); ${PWD}`; export s; \
2651 $(SET_LIB_PATH) \
2652 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
2655 .PHONY: check-flex
2656 # This module is only tested in a native toolchain.
2657 check-flex:
2658 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
2659 r=`${PWD}`; export r; \
2660 s=`cd $(srcdir); ${PWD}`; export s; \
2661 $(SET_LIB_PATH) \
2662 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
2667 .PHONY: install-flex maybe-install-flex
2668 maybe-install-flex:
2669 install-flex: installdirs
2670 @r=`${PWD}`; export r; \
2671 s=`cd $(srcdir); ${PWD}`; export s; \
2672 $(SET_LIB_PATH) \
2673 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
2676 .PHONY: configure-gas maybe-configure-gas
2677 maybe-configure-gas:
2678 configure-gas: gas/Makefile
2680 gas/Makefile: config.status
2681 @[ -d gas ] || mkdir gas; \
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 gas; \
2701 cd gas || exit 1; \
2702 case $(srcdir) in \
2703 \.) \
2704 srcdiroption="--srcdir=."; \
2705 libsrcdir=".";; \
2706 /* | [A-Za-z]:[\\/]*) \
2707 srcdiroption="--srcdir=$(srcdir)/gas"; \
2708 libsrcdir="$$s/gas";; \
2709 *) \
2710 srcdiroption="--srcdir=../$(srcdir)/gas"; \
2711 libsrcdir="$$s/gas";; \
2712 esac; \
2713 $(SHELL) $${libsrcdir}/configure \
2714 $(HOST_CONFIGARGS) $${srcdiroption} \
2715 || exit 1
2717 .PHONY: all-gas maybe-all-gas
2718 maybe-all-gas:
2719 all-gas: configure-gas
2720 @r=`${PWD}`; export r; \
2721 s=`cd $(srcdir); ${PWD}`; export s; \
2722 $(SET_LIB_PATH) \
2723 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
2726 .PHONY: check-gas
2727 check-gas:
2728 @r=`${PWD}`; export r; \
2729 s=`cd $(srcdir); ${PWD}`; export s; \
2730 $(SET_LIB_PATH) \
2731 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
2735 .PHONY: install-gas maybe-install-gas
2736 maybe-install-gas:
2737 install-gas: installdirs
2738 @r=`${PWD}`; export r; \
2739 s=`cd $(srcdir); ${PWD}`; export s; \
2740 $(SET_LIB_PATH) \
2741 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
2744 .PHONY: configure-gawk maybe-configure-gawk
2745 maybe-configure-gawk:
2746 configure-gawk: gawk/Makefile
2748 gawk/Makefile: config.status
2749 @[ -d gawk ] || mkdir gawk; \
2750 r=`${PWD}`; export r; \
2751 s=`cd $(srcdir); ${PWD}`; export s; \
2752 CC="$(CC)"; export CC; \
2753 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2754 CXX="$(CXX)"; export CXX; \
2755 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2756 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2757 AR="$(AR)"; export AR; \
2758 AS="$(AS)"; export AS; \
2759 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2760 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2761 LD="$(LD)"; export LD; \
2762 NM="$(NM)"; export NM; \
2763 RANLIB="$(RANLIB)"; export RANLIB; \
2764 WINDRES="$(WINDRES)"; export WINDRES; \
2765 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2766 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2767 fi; \
2768 echo Configuring in gawk; \
2769 cd gawk || exit 1; \
2770 case $(srcdir) in \
2771 \.) \
2772 srcdiroption="--srcdir=."; \
2773 libsrcdir=".";; \
2774 /* | [A-Za-z]:[\\/]*) \
2775 srcdiroption="--srcdir=$(srcdir)/gawk"; \
2776 libsrcdir="$$s/gawk";; \
2777 *) \
2778 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
2779 libsrcdir="$$s/gawk";; \
2780 esac; \
2781 $(SHELL) $${libsrcdir}/configure \
2782 $(HOST_CONFIGARGS) $${srcdiroption} \
2783 || exit 1
2785 .PHONY: all-gawk maybe-all-gawk
2786 maybe-all-gawk:
2787 all-gawk: configure-gawk
2788 @r=`${PWD}`; export r; \
2789 s=`cd $(srcdir); ${PWD}`; export s; \
2790 $(SET_LIB_PATH) \
2791 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
2794 .PHONY: check-gawk
2795 check-gawk:
2796 @r=`${PWD}`; export r; \
2797 s=`cd $(srcdir); ${PWD}`; export s; \
2798 $(SET_LIB_PATH) \
2799 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
2803 .PHONY: install-gawk maybe-install-gawk
2804 maybe-install-gawk:
2805 install-gawk: installdirs
2806 @r=`${PWD}`; export r; \
2807 s=`cd $(srcdir); ${PWD}`; export s; \
2808 $(SET_LIB_PATH) \
2809 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
2812 .PHONY: configure-gettext maybe-configure-gettext
2813 maybe-configure-gettext:
2814 configure-gettext: gettext/Makefile
2816 gettext/Makefile: config.status
2817 @[ -d gettext ] || mkdir gettext; \
2818 r=`${PWD}`; export r; \
2819 s=`cd $(srcdir); ${PWD}`; export s; \
2820 CC="$(CC)"; export CC; \
2821 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2822 CXX="$(CXX)"; export CXX; \
2823 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2824 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2825 AR="$(AR)"; export AR; \
2826 AS="$(AS)"; export AS; \
2827 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2828 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2829 LD="$(LD)"; export LD; \
2830 NM="$(NM)"; export NM; \
2831 RANLIB="$(RANLIB)"; export RANLIB; \
2832 WINDRES="$(WINDRES)"; export WINDRES; \
2833 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2834 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2835 fi; \
2836 echo Configuring in gettext; \
2837 cd gettext || exit 1; \
2838 case $(srcdir) in \
2839 \.) \
2840 srcdiroption="--srcdir=."; \
2841 libsrcdir=".";; \
2842 /* | [A-Za-z]:[\\/]*) \
2843 srcdiroption="--srcdir=$(srcdir)/gettext"; \
2844 libsrcdir="$$s/gettext";; \
2845 *) \
2846 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
2847 libsrcdir="$$s/gettext";; \
2848 esac; \
2849 $(SHELL) $${libsrcdir}/configure \
2850 $(HOST_CONFIGARGS) $${srcdiroption} \
2851 || exit 1
2853 .PHONY: all-gettext maybe-all-gettext
2854 maybe-all-gettext:
2855 all-gettext: configure-gettext
2856 @r=`${PWD}`; export r; \
2857 s=`cd $(srcdir); ${PWD}`; export s; \
2858 $(SET_LIB_PATH) \
2859 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
2862 .PHONY: check-gettext
2863 check-gettext:
2864 @r=`${PWD}`; export r; \
2865 s=`cd $(srcdir); ${PWD}`; export s; \
2866 $(SET_LIB_PATH) \
2867 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
2871 .PHONY: install-gettext maybe-install-gettext
2872 maybe-install-gettext:
2873 install-gettext: installdirs
2874 @r=`${PWD}`; export r; \
2875 s=`cd $(srcdir); ${PWD}`; export s; \
2876 $(SET_LIB_PATH) \
2877 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
2880 .PHONY: configure-gnuserv maybe-configure-gnuserv
2881 maybe-configure-gnuserv:
2882 configure-gnuserv: gnuserv/Makefile
2884 gnuserv/Makefile: config.status
2885 @[ -d gnuserv ] || mkdir gnuserv; \
2886 r=`${PWD}`; export r; \
2887 s=`cd $(srcdir); ${PWD}`; export s; \
2888 CC="$(CC)"; export CC; \
2889 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2890 CXX="$(CXX)"; export CXX; \
2891 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2892 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2893 AR="$(AR)"; export AR; \
2894 AS="$(AS)"; export AS; \
2895 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2896 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2897 LD="$(LD)"; export LD; \
2898 NM="$(NM)"; export NM; \
2899 RANLIB="$(RANLIB)"; export RANLIB; \
2900 WINDRES="$(WINDRES)"; export WINDRES; \
2901 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2902 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2903 fi; \
2904 echo Configuring in gnuserv; \
2905 cd gnuserv || exit 1; \
2906 case $(srcdir) in \
2907 \.) \
2908 srcdiroption="--srcdir=."; \
2909 libsrcdir=".";; \
2910 /* | [A-Za-z]:[\\/]*) \
2911 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
2912 libsrcdir="$$s/gnuserv";; \
2913 *) \
2914 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
2915 libsrcdir="$$s/gnuserv";; \
2916 esac; \
2917 $(SHELL) $${libsrcdir}/configure \
2918 $(HOST_CONFIGARGS) $${srcdiroption} \
2919 || exit 1
2921 .PHONY: all-gnuserv maybe-all-gnuserv
2922 maybe-all-gnuserv:
2923 all-gnuserv: configure-gnuserv
2924 @r=`${PWD}`; export r; \
2925 s=`cd $(srcdir); ${PWD}`; export s; \
2926 $(SET_LIB_PATH) \
2927 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
2930 .PHONY: check-gnuserv
2931 check-gnuserv:
2932 @r=`${PWD}`; export r; \
2933 s=`cd $(srcdir); ${PWD}`; export s; \
2934 $(SET_LIB_PATH) \
2935 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
2939 .PHONY: install-gnuserv maybe-install-gnuserv
2940 maybe-install-gnuserv:
2941 install-gnuserv: installdirs
2942 @r=`${PWD}`; export r; \
2943 s=`cd $(srcdir); ${PWD}`; export s; \
2944 $(SET_LIB_PATH) \
2945 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
2948 .PHONY: configure-gprof maybe-configure-gprof
2949 maybe-configure-gprof:
2950 configure-gprof: gprof/Makefile
2952 gprof/Makefile: config.status
2953 @[ -d gprof ] || mkdir gprof; \
2954 r=`${PWD}`; export r; \
2955 s=`cd $(srcdir); ${PWD}`; export s; \
2956 CC="$(CC)"; export CC; \
2957 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2958 CXX="$(CXX)"; export CXX; \
2959 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2960 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
2961 AR="$(AR)"; export AR; \
2962 AS="$(AS)"; export AS; \
2963 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2964 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2965 LD="$(LD)"; export LD; \
2966 NM="$(NM)"; export NM; \
2967 RANLIB="$(RANLIB)"; export RANLIB; \
2968 WINDRES="$(WINDRES)"; export WINDRES; \
2969 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2970 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2971 fi; \
2972 echo Configuring in gprof; \
2973 cd gprof || exit 1; \
2974 case $(srcdir) in \
2975 \.) \
2976 srcdiroption="--srcdir=."; \
2977 libsrcdir=".";; \
2978 /* | [A-Za-z]:[\\/]*) \
2979 srcdiroption="--srcdir=$(srcdir)/gprof"; \
2980 libsrcdir="$$s/gprof";; \
2981 *) \
2982 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
2983 libsrcdir="$$s/gprof";; \
2984 esac; \
2985 $(SHELL) $${libsrcdir}/configure \
2986 $(HOST_CONFIGARGS) $${srcdiroption} \
2987 || exit 1
2989 .PHONY: all-gprof maybe-all-gprof
2990 maybe-all-gprof:
2991 all-gprof: configure-gprof
2992 @r=`${PWD}`; export r; \
2993 s=`cd $(srcdir); ${PWD}`; export s; \
2994 $(SET_LIB_PATH) \
2995 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
2998 .PHONY: check-gprof
2999 check-gprof:
3000 @r=`${PWD}`; export r; \
3001 s=`cd $(srcdir); ${PWD}`; export s; \
3002 $(SET_LIB_PATH) \
3003 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
3007 .PHONY: install-gprof maybe-install-gprof
3008 maybe-install-gprof:
3009 install-gprof: installdirs
3010 @r=`${PWD}`; export r; \
3011 s=`cd $(srcdir); ${PWD}`; export s; \
3012 $(SET_LIB_PATH) \
3013 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
3016 .PHONY: configure-grep maybe-configure-grep
3017 maybe-configure-grep:
3018 configure-grep: grep/Makefile
3020 grep/Makefile: config.status
3021 @[ -d grep ] || mkdir grep; \
3022 r=`${PWD}`; export r; \
3023 s=`cd $(srcdir); ${PWD}`; export s; \
3024 CC="$(CC)"; export CC; \
3025 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3026 CXX="$(CXX)"; export CXX; \
3027 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3028 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3029 AR="$(AR)"; export AR; \
3030 AS="$(AS)"; export AS; \
3031 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3032 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3033 LD="$(LD)"; export LD; \
3034 NM="$(NM)"; export NM; \
3035 RANLIB="$(RANLIB)"; export RANLIB; \
3036 WINDRES="$(WINDRES)"; export WINDRES; \
3037 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3038 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3039 fi; \
3040 echo Configuring in grep; \
3041 cd grep || exit 1; \
3042 case $(srcdir) in \
3043 \.) \
3044 srcdiroption="--srcdir=."; \
3045 libsrcdir=".";; \
3046 /* | [A-Za-z]:[\\/]*) \
3047 srcdiroption="--srcdir=$(srcdir)/grep"; \
3048 libsrcdir="$$s/grep";; \
3049 *) \
3050 srcdiroption="--srcdir=../$(srcdir)/grep"; \
3051 libsrcdir="$$s/grep";; \
3052 esac; \
3053 $(SHELL) $${libsrcdir}/configure \
3054 $(HOST_CONFIGARGS) $${srcdiroption} \
3055 || exit 1
3057 .PHONY: all-grep maybe-all-grep
3058 maybe-all-grep:
3059 all-grep: configure-grep
3060 @r=`${PWD}`; export r; \
3061 s=`cd $(srcdir); ${PWD}`; export s; \
3062 $(SET_LIB_PATH) \
3063 (cd grep && $(MAKE) $(FLAGS_TO_PASS) all)
3066 .PHONY: check-grep
3067 check-grep:
3068 @r=`${PWD}`; export r; \
3069 s=`cd $(srcdir); ${PWD}`; export s; \
3070 $(SET_LIB_PATH) \
3071 (cd grep && $(MAKE) $(FLAGS_TO_PASS) check)
3075 .PHONY: install-grep maybe-install-grep
3076 maybe-install-grep:
3077 install-grep: installdirs
3078 @r=`${PWD}`; export r; \
3079 s=`cd $(srcdir); ${PWD}`; export s; \
3080 $(SET_LIB_PATH) \
3081 (cd grep && $(MAKE) $(FLAGS_TO_PASS) install)
3084 .PHONY: configure-gzip maybe-configure-gzip
3085 maybe-configure-gzip:
3086 configure-gzip: gzip/Makefile
3088 gzip/Makefile: config.status
3089 @[ -d gzip ] || mkdir gzip; \
3090 r=`${PWD}`; export r; \
3091 s=`cd $(srcdir); ${PWD}`; export s; \
3092 CC="$(CC)"; export CC; \
3093 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3094 CXX="$(CXX)"; export CXX; \
3095 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3096 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3097 AR="$(AR)"; export AR; \
3098 AS="$(AS)"; export AS; \
3099 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3100 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3101 LD="$(LD)"; export LD; \
3102 NM="$(NM)"; export NM; \
3103 RANLIB="$(RANLIB)"; export RANLIB; \
3104 WINDRES="$(WINDRES)"; export WINDRES; \
3105 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3106 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3107 fi; \
3108 echo Configuring in gzip; \
3109 cd gzip || exit 1; \
3110 case $(srcdir) in \
3111 \.) \
3112 srcdiroption="--srcdir=."; \
3113 libsrcdir=".";; \
3114 /* | [A-Za-z]:[\\/]*) \
3115 srcdiroption="--srcdir=$(srcdir)/gzip"; \
3116 libsrcdir="$$s/gzip";; \
3117 *) \
3118 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
3119 libsrcdir="$$s/gzip";; \
3120 esac; \
3121 $(SHELL) $${libsrcdir}/configure \
3122 $(HOST_CONFIGARGS) $${srcdiroption} \
3123 || exit 1
3125 .PHONY: all-gzip maybe-all-gzip
3126 maybe-all-gzip:
3127 all-gzip: configure-gzip
3128 @r=`${PWD}`; export r; \
3129 s=`cd $(srcdir); ${PWD}`; export s; \
3130 $(SET_LIB_PATH) \
3131 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
3134 .PHONY: check-gzip
3135 check-gzip:
3136 @r=`${PWD}`; export r; \
3137 s=`cd $(srcdir); ${PWD}`; export s; \
3138 $(SET_LIB_PATH) \
3139 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
3143 .PHONY: install-gzip maybe-install-gzip
3144 maybe-install-gzip:
3145 install-gzip: installdirs
3146 @r=`${PWD}`; export r; \
3147 s=`cd $(srcdir); ${PWD}`; export s; \
3148 $(SET_LIB_PATH) \
3149 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
3152 .PHONY: configure-hello maybe-configure-hello
3153 maybe-configure-hello:
3154 configure-hello: hello/Makefile
3156 hello/Makefile: config.status
3157 @[ -d hello ] || mkdir hello; \
3158 r=`${PWD}`; export r; \
3159 s=`cd $(srcdir); ${PWD}`; export s; \
3160 CC="$(CC)"; export CC; \
3161 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3162 CXX="$(CXX)"; export CXX; \
3163 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3164 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3165 AR="$(AR)"; export AR; \
3166 AS="$(AS)"; export AS; \
3167 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3168 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3169 LD="$(LD)"; export LD; \
3170 NM="$(NM)"; export NM; \
3171 RANLIB="$(RANLIB)"; export RANLIB; \
3172 WINDRES="$(WINDRES)"; export WINDRES; \
3173 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3174 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3175 fi; \
3176 echo Configuring in hello; \
3177 cd hello || exit 1; \
3178 case $(srcdir) in \
3179 \.) \
3180 srcdiroption="--srcdir=."; \
3181 libsrcdir=".";; \
3182 /* | [A-Za-z]:[\\/]*) \
3183 srcdiroption="--srcdir=$(srcdir)/hello"; \
3184 libsrcdir="$$s/hello";; \
3185 *) \
3186 srcdiroption="--srcdir=../$(srcdir)/hello"; \
3187 libsrcdir="$$s/hello";; \
3188 esac; \
3189 $(SHELL) $${libsrcdir}/configure \
3190 $(HOST_CONFIGARGS) $${srcdiroption} \
3191 || exit 1
3193 .PHONY: all-hello maybe-all-hello
3194 maybe-all-hello:
3195 all-hello: configure-hello
3196 @r=`${PWD}`; export r; \
3197 s=`cd $(srcdir); ${PWD}`; export s; \
3198 $(SET_LIB_PATH) \
3199 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
3202 .PHONY: check-hello
3203 check-hello:
3204 @r=`${PWD}`; export r; \
3205 s=`cd $(srcdir); ${PWD}`; export s; \
3206 $(SET_LIB_PATH) \
3207 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
3211 .PHONY: install-hello maybe-install-hello
3212 maybe-install-hello:
3213 install-hello: installdirs
3214 @r=`${PWD}`; export r; \
3215 s=`cd $(srcdir); ${PWD}`; export s; \
3216 $(SET_LIB_PATH) \
3217 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
3220 .PHONY: configure-indent maybe-configure-indent
3221 maybe-configure-indent:
3222 configure-indent: indent/Makefile
3224 indent/Makefile: config.status
3225 @[ -d indent ] || mkdir indent; \
3226 r=`${PWD}`; export r; \
3227 s=`cd $(srcdir); ${PWD}`; export s; \
3228 CC="$(CC)"; export CC; \
3229 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3230 CXX="$(CXX)"; export CXX; \
3231 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3232 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3233 AR="$(AR)"; export AR; \
3234 AS="$(AS)"; export AS; \
3235 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3236 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3237 LD="$(LD)"; export LD; \
3238 NM="$(NM)"; export NM; \
3239 RANLIB="$(RANLIB)"; export RANLIB; \
3240 WINDRES="$(WINDRES)"; export WINDRES; \
3241 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3242 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3243 fi; \
3244 echo Configuring in indent; \
3245 cd indent || exit 1; \
3246 case $(srcdir) in \
3247 \.) \
3248 srcdiroption="--srcdir=."; \
3249 libsrcdir=".";; \
3250 /* | [A-Za-z]:[\\/]*) \
3251 srcdiroption="--srcdir=$(srcdir)/indent"; \
3252 libsrcdir="$$s/indent";; \
3253 *) \
3254 srcdiroption="--srcdir=../$(srcdir)/indent"; \
3255 libsrcdir="$$s/indent";; \
3256 esac; \
3257 $(SHELL) $${libsrcdir}/configure \
3258 $(HOST_CONFIGARGS) $${srcdiroption} \
3259 || exit 1
3261 .PHONY: all-indent maybe-all-indent
3262 maybe-all-indent:
3263 all-indent: configure-indent
3264 @r=`${PWD}`; export r; \
3265 s=`cd $(srcdir); ${PWD}`; export s; \
3266 $(SET_LIB_PATH) \
3267 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
3270 .PHONY: check-indent
3271 check-indent:
3272 @r=`${PWD}`; export r; \
3273 s=`cd $(srcdir); ${PWD}`; export s; \
3274 $(SET_LIB_PATH) \
3275 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
3279 .PHONY: install-indent maybe-install-indent
3280 maybe-install-indent:
3281 install-indent: installdirs
3282 @r=`${PWD}`; export r; \
3283 s=`cd $(srcdir); ${PWD}`; export s; \
3284 $(SET_LIB_PATH) \
3285 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
3288 .PHONY: configure-intl maybe-configure-intl
3289 maybe-configure-intl:
3290 configure-intl: intl/Makefile
3292 intl/Makefile: config.status
3293 @[ -d intl ] || mkdir intl; \
3294 r=`${PWD}`; export r; \
3295 s=`cd $(srcdir); ${PWD}`; export s; \
3296 CC="$(CC)"; export CC; \
3297 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3298 CXX="$(CXX)"; export CXX; \
3299 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3300 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3301 AR="$(AR)"; export AR; \
3302 AS="$(AS)"; export AS; \
3303 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3304 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3305 LD="$(LD)"; export LD; \
3306 NM="$(NM)"; export NM; \
3307 RANLIB="$(RANLIB)"; export RANLIB; \
3308 WINDRES="$(WINDRES)"; export WINDRES; \
3309 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3310 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3311 fi; \
3312 echo Configuring in intl; \
3313 cd intl || exit 1; \
3314 case $(srcdir) in \
3315 \.) \
3316 srcdiroption="--srcdir=."; \
3317 libsrcdir=".";; \
3318 /* | [A-Za-z]:[\\/]*) \
3319 srcdiroption="--srcdir=$(srcdir)/intl"; \
3320 libsrcdir="$$s/intl";; \
3321 *) \
3322 srcdiroption="--srcdir=../$(srcdir)/intl"; \
3323 libsrcdir="$$s/intl";; \
3324 esac; \
3325 $(SHELL) $${libsrcdir}/configure \
3326 $(HOST_CONFIGARGS) $${srcdiroption} \
3327 || exit 1
3329 .PHONY: all-intl maybe-all-intl
3330 maybe-all-intl:
3331 all-intl: configure-intl
3332 @r=`${PWD}`; export r; \
3333 s=`cd $(srcdir); ${PWD}`; export s; \
3334 $(SET_LIB_PATH) \
3335 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
3338 .PHONY: check-intl
3339 check-intl:
3340 @r=`${PWD}`; export r; \
3341 s=`cd $(srcdir); ${PWD}`; export s; \
3342 $(SET_LIB_PATH) \
3343 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
3347 .PHONY: install-intl maybe-install-intl
3348 maybe-install-intl:
3349 install-intl: installdirs
3350 @r=`${PWD}`; export r; \
3351 s=`cd $(srcdir); ${PWD}`; export s; \
3352 $(SET_LIB_PATH) \
3353 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
3356 .PHONY: configure-tcl maybe-configure-tcl
3357 maybe-configure-tcl:
3358 configure-tcl: tcl/Makefile
3360 tcl/Makefile: config.status
3361 @[ -d tcl ] || mkdir tcl; \
3362 r=`${PWD}`; export r; \
3363 s=`cd $(srcdir); ${PWD}`; export s; \
3364 CC="$(CC)"; export CC; \
3365 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3366 CXX="$(CXX)"; export CXX; \
3367 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3368 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3369 AR="$(AR)"; export AR; \
3370 AS="$(AS)"; export AS; \
3371 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3372 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3373 LD="$(LD)"; export LD; \
3374 NM="$(NM)"; export NM; \
3375 RANLIB="$(RANLIB)"; export RANLIB; \
3376 WINDRES="$(WINDRES)"; export WINDRES; \
3377 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3378 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3379 fi; \
3380 echo Configuring in tcl; \
3381 cd tcl || exit 1; \
3382 case $(srcdir) in \
3383 \.) \
3384 srcdiroption="--srcdir=."; \
3385 libsrcdir=".";; \
3386 /* | [A-Za-z]:[\\/]*) \
3387 srcdiroption="--srcdir=$(srcdir)/tcl"; \
3388 libsrcdir="$$s/tcl";; \
3389 *) \
3390 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
3391 libsrcdir="$$s/tcl";; \
3392 esac; \
3393 $(SHELL) $${libsrcdir}/configure \
3394 $(HOST_CONFIGARGS) $${srcdiroption} \
3395 || exit 1
3397 .PHONY: all-tcl maybe-all-tcl
3398 maybe-all-tcl:
3399 all-tcl: configure-tcl
3400 @r=`${PWD}`; export r; \
3401 s=`cd $(srcdir); ${PWD}`; export s; \
3402 $(SET_LIB_PATH) \
3403 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
3406 .PHONY: check-tcl
3407 check-tcl:
3408 @r=`${PWD}`; export r; \
3409 s=`cd $(srcdir); ${PWD}`; export s; \
3410 $(SET_LIB_PATH) \
3411 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
3415 .PHONY: install-tcl maybe-install-tcl
3416 maybe-install-tcl:
3417 install-tcl: installdirs
3418 @r=`${PWD}`; export r; \
3419 s=`cd $(srcdir); ${PWD}`; export s; \
3420 $(SET_LIB_PATH) \
3421 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
3424 .PHONY: configure-itcl maybe-configure-itcl
3425 maybe-configure-itcl:
3426 configure-itcl: itcl/Makefile
3428 itcl/Makefile: config.status
3429 @[ -d itcl ] || mkdir itcl; \
3430 r=`${PWD}`; export r; \
3431 s=`cd $(srcdir); ${PWD}`; export s; \
3432 CC="$(CC)"; export CC; \
3433 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3434 CXX="$(CXX)"; export CXX; \
3435 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3436 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3437 AR="$(AR)"; export AR; \
3438 AS="$(AS)"; export AS; \
3439 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3440 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3441 LD="$(LD)"; export LD; \
3442 NM="$(NM)"; export NM; \
3443 RANLIB="$(RANLIB)"; export RANLIB; \
3444 WINDRES="$(WINDRES)"; export WINDRES; \
3445 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3446 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3447 fi; \
3448 echo Configuring in itcl; \
3449 cd itcl || exit 1; \
3450 case $(srcdir) in \
3451 \.) \
3452 srcdiroption="--srcdir=."; \
3453 libsrcdir=".";; \
3454 /* | [A-Za-z]:[\\/]*) \
3455 srcdiroption="--srcdir=$(srcdir)/itcl"; \
3456 libsrcdir="$$s/itcl";; \
3457 *) \
3458 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
3459 libsrcdir="$$s/itcl";; \
3460 esac; \
3461 $(SHELL) $${libsrcdir}/configure \
3462 $(HOST_CONFIGARGS) $${srcdiroption} \
3463 || exit 1
3465 .PHONY: all-itcl maybe-all-itcl
3466 maybe-all-itcl:
3467 all-itcl: configure-itcl
3468 @r=`${PWD}`; export r; \
3469 s=`cd $(srcdir); ${PWD}`; export s; \
3470 $(SET_LIB_PATH) \
3471 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
3474 .PHONY: check-itcl
3475 check-itcl:
3476 @r=`${PWD}`; export r; \
3477 s=`cd $(srcdir); ${PWD}`; export s; \
3478 $(SET_LIB_PATH) \
3479 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
3483 .PHONY: install-itcl maybe-install-itcl
3484 maybe-install-itcl:
3485 install-itcl: installdirs
3486 @r=`${PWD}`; export r; \
3487 s=`cd $(srcdir); ${PWD}`; export s; \
3488 $(SET_LIB_PATH) \
3489 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
3492 .PHONY: configure-ld maybe-configure-ld
3493 maybe-configure-ld:
3494 configure-ld: ld/Makefile
3496 ld/Makefile: config.status
3497 @[ -d ld ] || mkdir ld; \
3498 r=`${PWD}`; export r; \
3499 s=`cd $(srcdir); ${PWD}`; export s; \
3500 CC="$(CC)"; export CC; \
3501 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3502 CXX="$(CXX)"; export CXX; \
3503 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3504 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3505 AR="$(AR)"; export AR; \
3506 AS="$(AS)"; export AS; \
3507 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3508 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3509 LD="$(LD)"; export LD; \
3510 NM="$(NM)"; export NM; \
3511 RANLIB="$(RANLIB)"; export RANLIB; \
3512 WINDRES="$(WINDRES)"; export WINDRES; \
3513 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3514 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3515 fi; \
3516 echo Configuring in ld; \
3517 cd ld || exit 1; \
3518 case $(srcdir) in \
3519 \.) \
3520 srcdiroption="--srcdir=."; \
3521 libsrcdir=".";; \
3522 /* | [A-Za-z]:[\\/]*) \
3523 srcdiroption="--srcdir=$(srcdir)/ld"; \
3524 libsrcdir="$$s/ld";; \
3525 *) \
3526 srcdiroption="--srcdir=../$(srcdir)/ld"; \
3527 libsrcdir="$$s/ld";; \
3528 esac; \
3529 $(SHELL) $${libsrcdir}/configure \
3530 $(HOST_CONFIGARGS) $${srcdiroption} \
3531 || exit 1
3533 .PHONY: all-ld maybe-all-ld
3534 maybe-all-ld:
3535 all-ld: configure-ld
3536 @r=`${PWD}`; export r; \
3537 s=`cd $(srcdir); ${PWD}`; export s; \
3538 $(SET_LIB_PATH) \
3539 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
3542 .PHONY: check-ld
3543 check-ld:
3544 @r=`${PWD}`; export r; \
3545 s=`cd $(srcdir); ${PWD}`; export s; \
3546 $(SET_LIB_PATH) \
3547 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
3551 .PHONY: install-ld maybe-install-ld
3552 maybe-install-ld:
3553 install-ld: installdirs
3554 @r=`${PWD}`; export r; \
3555 s=`cd $(srcdir); ${PWD}`; export s; \
3556 $(SET_LIB_PATH) \
3557 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
3560 .PHONY: configure-libgui maybe-configure-libgui
3561 maybe-configure-libgui:
3562 configure-libgui: libgui/Makefile
3564 libgui/Makefile: config.status
3565 @[ -d libgui ] || mkdir libgui; \
3566 r=`${PWD}`; export r; \
3567 s=`cd $(srcdir); ${PWD}`; export s; \
3568 CC="$(CC)"; export CC; \
3569 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3570 CXX="$(CXX)"; export CXX; \
3571 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3572 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3573 AR="$(AR)"; export AR; \
3574 AS="$(AS)"; export AS; \
3575 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3576 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3577 LD="$(LD)"; export LD; \
3578 NM="$(NM)"; export NM; \
3579 RANLIB="$(RANLIB)"; export RANLIB; \
3580 WINDRES="$(WINDRES)"; export WINDRES; \
3581 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3582 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3583 fi; \
3584 echo Configuring in libgui; \
3585 cd libgui || exit 1; \
3586 case $(srcdir) in \
3587 \.) \
3588 srcdiroption="--srcdir=."; \
3589 libsrcdir=".";; \
3590 /* | [A-Za-z]:[\\/]*) \
3591 srcdiroption="--srcdir=$(srcdir)/libgui"; \
3592 libsrcdir="$$s/libgui";; \
3593 *) \
3594 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
3595 libsrcdir="$$s/libgui";; \
3596 esac; \
3597 $(SHELL) $${libsrcdir}/configure \
3598 $(HOST_CONFIGARGS) $${srcdiroption} \
3599 || exit 1
3601 .PHONY: all-libgui maybe-all-libgui
3602 maybe-all-libgui:
3603 all-libgui: configure-libgui
3604 @r=`${PWD}`; export r; \
3605 s=`cd $(srcdir); ${PWD}`; export s; \
3606 $(SET_LIB_PATH) \
3607 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
3610 .PHONY: check-libgui
3611 check-libgui:
3612 @r=`${PWD}`; export r; \
3613 s=`cd $(srcdir); ${PWD}`; export s; \
3614 $(SET_LIB_PATH) \
3615 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
3619 .PHONY: install-libgui maybe-install-libgui
3620 maybe-install-libgui:
3621 install-libgui: installdirs
3622 @r=`${PWD}`; export r; \
3623 s=`cd $(srcdir); ${PWD}`; export s; \
3624 $(SET_LIB_PATH) \
3625 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
3628 .PHONY: configure-libiberty maybe-configure-libiberty
3629 maybe-configure-libiberty:
3630 configure-libiberty: libiberty/Makefile
3632 libiberty/Makefile: config.status
3633 @[ -d libiberty ] || mkdir libiberty; \
3634 r=`${PWD}`; export r; \
3635 s=`cd $(srcdir); ${PWD}`; export s; \
3636 CC="$(CC)"; export CC; \
3637 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3638 CXX="$(CXX)"; export CXX; \
3639 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3640 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3641 AR="$(AR)"; export AR; \
3642 AS="$(AS)"; export AS; \
3643 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3644 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3645 LD="$(LD)"; export LD; \
3646 NM="$(NM)"; export NM; \
3647 RANLIB="$(RANLIB)"; export RANLIB; \
3648 WINDRES="$(WINDRES)"; export WINDRES; \
3649 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3650 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3651 fi; \
3652 echo Configuring in libiberty; \
3653 cd libiberty || exit 1; \
3654 case $(srcdir) in \
3655 \.) \
3656 srcdiroption="--srcdir=."; \
3657 libsrcdir=".";; \
3658 /* | [A-Za-z]:[\\/]*) \
3659 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
3660 libsrcdir="$$s/libiberty";; \
3661 *) \
3662 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
3663 libsrcdir="$$s/libiberty";; \
3664 esac; \
3665 $(SHELL) $${libsrcdir}/configure \
3666 $(HOST_CONFIGARGS) $${srcdiroption} \
3667 || exit 1
3669 .PHONY: all-libiberty maybe-all-libiberty
3670 maybe-all-libiberty:
3671 all-libiberty: configure-libiberty
3672 @r=`${PWD}`; export r; \
3673 s=`cd $(srcdir); ${PWD}`; export s; \
3674 $(SET_LIB_PATH) \
3675 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
3678 .PHONY: check-libiberty
3679 check-libiberty:
3680 @r=`${PWD}`; export r; \
3681 s=`cd $(srcdir); ${PWD}`; export s; \
3682 $(SET_LIB_PATH) \
3683 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
3687 .PHONY: install-libiberty maybe-install-libiberty
3688 maybe-install-libiberty:
3689 install-libiberty: installdirs
3690 @r=`${PWD}`; export r; \
3691 s=`cd $(srcdir); ${PWD}`; export s; \
3692 $(SET_LIB_PATH) \
3693 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
3696 .PHONY: configure-libtool maybe-configure-libtool
3697 maybe-configure-libtool:
3698 configure-libtool: libtool/Makefile
3700 libtool/Makefile: config.status
3701 @[ -d libtool ] || mkdir libtool; \
3702 r=`${PWD}`; export r; \
3703 s=`cd $(srcdir); ${PWD}`; export s; \
3704 CC="$(CC)"; export CC; \
3705 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3706 CXX="$(CXX)"; export CXX; \
3707 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3708 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3709 AR="$(AR)"; export AR; \
3710 AS="$(AS)"; export AS; \
3711 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3712 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3713 LD="$(LD)"; export LD; \
3714 NM="$(NM)"; export NM; \
3715 RANLIB="$(RANLIB)"; export RANLIB; \
3716 WINDRES="$(WINDRES)"; export WINDRES; \
3717 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3718 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3719 fi; \
3720 echo Configuring in libtool; \
3721 cd libtool || exit 1; \
3722 case $(srcdir) in \
3723 \.) \
3724 srcdiroption="--srcdir=."; \
3725 libsrcdir=".";; \
3726 /* | [A-Za-z]:[\\/]*) \
3727 srcdiroption="--srcdir=$(srcdir)/libtool"; \
3728 libsrcdir="$$s/libtool";; \
3729 *) \
3730 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
3731 libsrcdir="$$s/libtool";; \
3732 esac; \
3733 $(SHELL) $${libsrcdir}/configure \
3734 $(HOST_CONFIGARGS) $${srcdiroption} \
3735 || exit 1
3737 .PHONY: all-libtool maybe-all-libtool
3738 maybe-all-libtool:
3739 all-libtool: configure-libtool
3740 @r=`${PWD}`; export r; \
3741 s=`cd $(srcdir); ${PWD}`; export s; \
3742 $(SET_LIB_PATH) \
3743 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
3746 .PHONY: check-libtool
3747 check-libtool:
3748 @r=`${PWD}`; export r; \
3749 s=`cd $(srcdir); ${PWD}`; export s; \
3750 $(SET_LIB_PATH) \
3751 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
3755 .PHONY: install-libtool maybe-install-libtool
3756 maybe-install-libtool:
3757 install-libtool: installdirs
3758 @r=`${PWD}`; export r; \
3759 s=`cd $(srcdir); ${PWD}`; export s; \
3760 $(SET_LIB_PATH) \
3761 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
3764 .PHONY: configure-m4 maybe-configure-m4
3765 maybe-configure-m4:
3766 configure-m4: m4/Makefile
3768 m4/Makefile: config.status
3769 @[ -d m4 ] || mkdir m4; \
3770 r=`${PWD}`; export r; \
3771 s=`cd $(srcdir); ${PWD}`; export s; \
3772 CC="$(CC)"; export CC; \
3773 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3774 CXX="$(CXX)"; export CXX; \
3775 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3776 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3777 AR="$(AR)"; export AR; \
3778 AS="$(AS)"; export AS; \
3779 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3780 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3781 LD="$(LD)"; export LD; \
3782 NM="$(NM)"; export NM; \
3783 RANLIB="$(RANLIB)"; export RANLIB; \
3784 WINDRES="$(WINDRES)"; export WINDRES; \
3785 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3786 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3787 fi; \
3788 echo Configuring in m4; \
3789 cd m4 || exit 1; \
3790 case $(srcdir) in \
3791 \.) \
3792 srcdiroption="--srcdir=."; \
3793 libsrcdir=".";; \
3794 /* | [A-Za-z]:[\\/]*) \
3795 srcdiroption="--srcdir=$(srcdir)/m4"; \
3796 libsrcdir="$$s/m4";; \
3797 *) \
3798 srcdiroption="--srcdir=../$(srcdir)/m4"; \
3799 libsrcdir="$$s/m4";; \
3800 esac; \
3801 $(SHELL) $${libsrcdir}/configure \
3802 $(HOST_CONFIGARGS) $${srcdiroption} \
3803 || exit 1
3805 .PHONY: all-m4 maybe-all-m4
3806 maybe-all-m4:
3807 all-m4: configure-m4
3808 @r=`${PWD}`; export r; \
3809 s=`cd $(srcdir); ${PWD}`; export s; \
3810 $(SET_LIB_PATH) \
3811 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
3814 .PHONY: check-m4
3815 check-m4:
3816 @r=`${PWD}`; export r; \
3817 s=`cd $(srcdir); ${PWD}`; export s; \
3818 $(SET_LIB_PATH) \
3819 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
3823 .PHONY: install-m4 maybe-install-m4
3824 maybe-install-m4:
3825 install-m4: installdirs
3826 @r=`${PWD}`; export r; \
3827 s=`cd $(srcdir); ${PWD}`; export s; \
3828 $(SET_LIB_PATH) \
3829 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
3832 .PHONY: configure-make maybe-configure-make
3833 maybe-configure-make:
3834 configure-make: make/Makefile
3836 make/Makefile: config.status
3837 @[ -d make ] || mkdir make; \
3838 r=`${PWD}`; export r; \
3839 s=`cd $(srcdir); ${PWD}`; export s; \
3840 CC="$(CC)"; export CC; \
3841 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3842 CXX="$(CXX)"; export CXX; \
3843 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3844 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3845 AR="$(AR)"; export AR; \
3846 AS="$(AS)"; export AS; \
3847 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3848 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3849 LD="$(LD)"; export LD; \
3850 NM="$(NM)"; export NM; \
3851 RANLIB="$(RANLIB)"; export RANLIB; \
3852 WINDRES="$(WINDRES)"; export WINDRES; \
3853 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3854 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3855 fi; \
3856 echo Configuring in make; \
3857 cd make || exit 1; \
3858 case $(srcdir) in \
3859 \.) \
3860 srcdiroption="--srcdir=."; \
3861 libsrcdir=".";; \
3862 /* | [A-Za-z]:[\\/]*) \
3863 srcdiroption="--srcdir=$(srcdir)/make"; \
3864 libsrcdir="$$s/make";; \
3865 *) \
3866 srcdiroption="--srcdir=../$(srcdir)/make"; \
3867 libsrcdir="$$s/make";; \
3868 esac; \
3869 $(SHELL) $${libsrcdir}/configure \
3870 $(HOST_CONFIGARGS) $${srcdiroption} \
3871 || exit 1
3873 .PHONY: all-make maybe-all-make
3874 maybe-all-make:
3875 all-make: configure-make
3876 @r=`${PWD}`; export r; \
3877 s=`cd $(srcdir); ${PWD}`; export s; \
3878 $(SET_LIB_PATH) \
3879 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
3882 .PHONY: check-make
3883 check-make:
3884 @r=`${PWD}`; export r; \
3885 s=`cd $(srcdir); ${PWD}`; export s; \
3886 $(SET_LIB_PATH) \
3887 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
3891 .PHONY: install-make maybe-install-make
3892 maybe-install-make:
3893 install-make: installdirs
3894 @r=`${PWD}`; export r; \
3895 s=`cd $(srcdir); ${PWD}`; export s; \
3896 $(SET_LIB_PATH) \
3897 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
3900 .PHONY: configure-mmalloc maybe-configure-mmalloc
3901 maybe-configure-mmalloc:
3902 configure-mmalloc: mmalloc/Makefile
3904 mmalloc/Makefile: config.status
3905 @[ -d mmalloc ] || mkdir mmalloc; \
3906 r=`${PWD}`; export r; \
3907 s=`cd $(srcdir); ${PWD}`; export s; \
3908 CC="$(CC)"; export CC; \
3909 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3910 CXX="$(CXX)"; export CXX; \
3911 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3912 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3913 AR="$(AR)"; export AR; \
3914 AS="$(AS)"; export AS; \
3915 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3916 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3917 LD="$(LD)"; export LD; \
3918 NM="$(NM)"; export NM; \
3919 RANLIB="$(RANLIB)"; export RANLIB; \
3920 WINDRES="$(WINDRES)"; export WINDRES; \
3921 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3922 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3923 fi; \
3924 echo Configuring in mmalloc; \
3925 cd mmalloc || exit 1; \
3926 case $(srcdir) in \
3927 \.) \
3928 srcdiroption="--srcdir=."; \
3929 libsrcdir=".";; \
3930 /* | [A-Za-z]:[\\/]*) \
3931 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
3932 libsrcdir="$$s/mmalloc";; \
3933 *) \
3934 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
3935 libsrcdir="$$s/mmalloc";; \
3936 esac; \
3937 $(SHELL) $${libsrcdir}/configure \
3938 $(HOST_CONFIGARGS) $${srcdiroption} \
3939 || exit 1
3941 .PHONY: all-mmalloc maybe-all-mmalloc
3942 maybe-all-mmalloc:
3943 all-mmalloc: configure-mmalloc
3944 @r=`${PWD}`; export r; \
3945 s=`cd $(srcdir); ${PWD}`; export s; \
3946 $(SET_LIB_PATH) \
3947 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
3950 .PHONY: check-mmalloc
3951 check-mmalloc:
3955 .PHONY: install-mmalloc maybe-install-mmalloc
3956 maybe-install-mmalloc:
3957 install-mmalloc: installdirs
3958 @r=`${PWD}`; export r; \
3959 s=`cd $(srcdir); ${PWD}`; export s; \
3960 $(SET_LIB_PATH) \
3961 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
3964 .PHONY: configure-patch maybe-configure-patch
3965 maybe-configure-patch:
3966 configure-patch: patch/Makefile
3968 patch/Makefile: config.status
3969 @[ -d patch ] || mkdir patch; \
3970 r=`${PWD}`; export r; \
3971 s=`cd $(srcdir); ${PWD}`; export s; \
3972 CC="$(CC)"; export CC; \
3973 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3974 CXX="$(CXX)"; export CXX; \
3975 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3976 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
3977 AR="$(AR)"; export AR; \
3978 AS="$(AS)"; export AS; \
3979 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3980 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3981 LD="$(LD)"; export LD; \
3982 NM="$(NM)"; export NM; \
3983 RANLIB="$(RANLIB)"; export RANLIB; \
3984 WINDRES="$(WINDRES)"; export WINDRES; \
3985 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3986 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3987 fi; \
3988 echo Configuring in patch; \
3989 cd patch || exit 1; \
3990 case $(srcdir) in \
3991 \.) \
3992 srcdiroption="--srcdir=."; \
3993 libsrcdir=".";; \
3994 /* | [A-Za-z]:[\\/]*) \
3995 srcdiroption="--srcdir=$(srcdir)/patch"; \
3996 libsrcdir="$$s/patch";; \
3997 *) \
3998 srcdiroption="--srcdir=../$(srcdir)/patch"; \
3999 libsrcdir="$$s/patch";; \
4000 esac; \
4001 $(SHELL) $${libsrcdir}/configure \
4002 $(HOST_CONFIGARGS) $${srcdiroption} \
4003 || exit 1
4005 .PHONY: all-patch maybe-all-patch
4006 maybe-all-patch:
4007 all-patch: configure-patch
4008 @r=`${PWD}`; export r; \
4009 s=`cd $(srcdir); ${PWD}`; export s; \
4010 $(SET_LIB_PATH) \
4011 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
4014 .PHONY: check-patch
4015 check-patch:
4016 @r=`${PWD}`; export r; \
4017 s=`cd $(srcdir); ${PWD}`; export s; \
4018 $(SET_LIB_PATH) \
4019 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
4023 .PHONY: install-patch maybe-install-patch
4024 maybe-install-patch:
4025 install-patch: installdirs
4026 @r=`${PWD}`; export r; \
4027 s=`cd $(srcdir); ${PWD}`; export s; \
4028 $(SET_LIB_PATH) \
4029 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
4032 .PHONY: configure-perl maybe-configure-perl
4033 maybe-configure-perl:
4034 configure-perl: perl/Makefile
4036 perl/Makefile: config.status
4037 @[ -d perl ] || mkdir perl; \
4038 r=`${PWD}`; export r; \
4039 s=`cd $(srcdir); ${PWD}`; export s; \
4040 CC="$(CC)"; export CC; \
4041 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4042 CXX="$(CXX)"; export CXX; \
4043 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4044 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4045 AR="$(AR)"; export AR; \
4046 AS="$(AS)"; export AS; \
4047 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4048 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4049 LD="$(LD)"; export LD; \
4050 NM="$(NM)"; export NM; \
4051 RANLIB="$(RANLIB)"; export RANLIB; \
4052 WINDRES="$(WINDRES)"; export WINDRES; \
4053 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4054 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4055 fi; \
4056 echo Configuring in perl; \
4057 cd perl || exit 1; \
4058 case $(srcdir) in \
4059 \.) \
4060 srcdiroption="--srcdir=."; \
4061 libsrcdir=".";; \
4062 /* | [A-Za-z]:[\\/]*) \
4063 srcdiroption="--srcdir=$(srcdir)/perl"; \
4064 libsrcdir="$$s/perl";; \
4065 *) \
4066 srcdiroption="--srcdir=../$(srcdir)/perl"; \
4067 libsrcdir="$$s/perl";; \
4068 esac; \
4069 $(SHELL) $${libsrcdir}/configure \
4070 $(HOST_CONFIGARGS) $${srcdiroption} \
4071 || exit 1
4073 .PHONY: all-perl maybe-all-perl
4074 maybe-all-perl:
4075 all-perl: configure-perl
4076 @r=`${PWD}`; export r; \
4077 s=`cd $(srcdir); ${PWD}`; export s; \
4078 $(SET_LIB_PATH) \
4079 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
4082 .PHONY: check-perl
4083 check-perl:
4084 @r=`${PWD}`; export r; \
4085 s=`cd $(srcdir); ${PWD}`; export s; \
4086 $(SET_LIB_PATH) \
4087 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
4091 .PHONY: install-perl maybe-install-perl
4092 maybe-install-perl:
4093 install-perl: installdirs
4094 @r=`${PWD}`; export r; \
4095 s=`cd $(srcdir); ${PWD}`; export s; \
4096 $(SET_LIB_PATH) \
4097 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
4100 .PHONY: configure-prms maybe-configure-prms
4101 maybe-configure-prms:
4102 configure-prms: prms/Makefile
4104 prms/Makefile: config.status
4105 @[ -d prms ] || mkdir prms; \
4106 r=`${PWD}`; export r; \
4107 s=`cd $(srcdir); ${PWD}`; export s; \
4108 CC="$(CC)"; export CC; \
4109 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4110 CXX="$(CXX)"; export CXX; \
4111 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4112 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4113 AR="$(AR)"; export AR; \
4114 AS="$(AS)"; export AS; \
4115 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4116 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4117 LD="$(LD)"; export LD; \
4118 NM="$(NM)"; export NM; \
4119 RANLIB="$(RANLIB)"; export RANLIB; \
4120 WINDRES="$(WINDRES)"; export WINDRES; \
4121 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4122 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4123 fi; \
4124 echo Configuring in prms; \
4125 cd prms || exit 1; \
4126 case $(srcdir) in \
4127 \.) \
4128 srcdiroption="--srcdir=."; \
4129 libsrcdir=".";; \
4130 /* | [A-Za-z]:[\\/]*) \
4131 srcdiroption="--srcdir=$(srcdir)/prms"; \
4132 libsrcdir="$$s/prms";; \
4133 *) \
4134 srcdiroption="--srcdir=../$(srcdir)/prms"; \
4135 libsrcdir="$$s/prms";; \
4136 esac; \
4137 $(SHELL) $${libsrcdir}/configure \
4138 $(HOST_CONFIGARGS) $${srcdiroption} \
4139 || exit 1
4141 .PHONY: all-prms maybe-all-prms
4142 maybe-all-prms:
4143 all-prms: configure-prms
4144 @r=`${PWD}`; export r; \
4145 s=`cd $(srcdir); ${PWD}`; export s; \
4146 $(SET_LIB_PATH) \
4147 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
4150 .PHONY: check-prms
4151 check-prms:
4152 @r=`${PWD}`; export r; \
4153 s=`cd $(srcdir); ${PWD}`; export s; \
4154 $(SET_LIB_PATH) \
4155 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
4159 .PHONY: install-prms maybe-install-prms
4160 maybe-install-prms:
4161 install-prms: installdirs
4162 @r=`${PWD}`; export r; \
4163 s=`cd $(srcdir); ${PWD}`; export s; \
4164 $(SET_LIB_PATH) \
4165 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
4168 .PHONY: configure-rcs maybe-configure-rcs
4169 maybe-configure-rcs:
4170 configure-rcs: rcs/Makefile
4172 rcs/Makefile: config.status
4173 @[ -d rcs ] || mkdir rcs; \
4174 r=`${PWD}`; export r; \
4175 s=`cd $(srcdir); ${PWD}`; export s; \
4176 CC="$(CC)"; export CC; \
4177 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4178 CXX="$(CXX)"; export CXX; \
4179 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4180 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4181 AR="$(AR)"; export AR; \
4182 AS="$(AS)"; export AS; \
4183 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4184 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4185 LD="$(LD)"; export LD; \
4186 NM="$(NM)"; export NM; \
4187 RANLIB="$(RANLIB)"; export RANLIB; \
4188 WINDRES="$(WINDRES)"; export WINDRES; \
4189 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4190 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4191 fi; \
4192 echo Configuring in rcs; \
4193 cd rcs || exit 1; \
4194 case $(srcdir) in \
4195 \.) \
4196 srcdiroption="--srcdir=."; \
4197 libsrcdir=".";; \
4198 /* | [A-Za-z]:[\\/]*) \
4199 srcdiroption="--srcdir=$(srcdir)/rcs"; \
4200 libsrcdir="$$s/rcs";; \
4201 *) \
4202 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
4203 libsrcdir="$$s/rcs";; \
4204 esac; \
4205 $(SHELL) $${libsrcdir}/configure \
4206 $(HOST_CONFIGARGS) $${srcdiroption} \
4207 || exit 1
4209 .PHONY: all-rcs maybe-all-rcs
4210 maybe-all-rcs:
4211 all-rcs: configure-rcs
4212 @r=`${PWD}`; export r; \
4213 s=`cd $(srcdir); ${PWD}`; export s; \
4214 $(SET_LIB_PATH) \
4215 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
4218 .PHONY: check-rcs
4219 check-rcs:
4220 @r=`${PWD}`; export r; \
4221 s=`cd $(srcdir); ${PWD}`; export s; \
4222 $(SET_LIB_PATH) \
4223 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
4227 .PHONY: install-rcs maybe-install-rcs
4228 maybe-install-rcs:
4229 install-rcs: installdirs
4230 @r=`${PWD}`; export r; \
4231 s=`cd $(srcdir); ${PWD}`; export s; \
4232 $(SET_LIB_PATH) \
4233 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
4236 .PHONY: configure-readline maybe-configure-readline
4237 maybe-configure-readline:
4238 configure-readline: readline/Makefile
4240 readline/Makefile: config.status
4241 @[ -d readline ] || mkdir readline; \
4242 r=`${PWD}`; export r; \
4243 s=`cd $(srcdir); ${PWD}`; export s; \
4244 CC="$(CC)"; export CC; \
4245 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4246 CXX="$(CXX)"; export CXX; \
4247 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4248 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4249 AR="$(AR)"; export AR; \
4250 AS="$(AS)"; export AS; \
4251 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4252 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4253 LD="$(LD)"; export LD; \
4254 NM="$(NM)"; export NM; \
4255 RANLIB="$(RANLIB)"; export RANLIB; \
4256 WINDRES="$(WINDRES)"; export WINDRES; \
4257 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4258 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4259 fi; \
4260 echo Configuring in readline; \
4261 cd readline || exit 1; \
4262 case $(srcdir) in \
4263 \.) \
4264 srcdiroption="--srcdir=."; \
4265 libsrcdir=".";; \
4266 /* | [A-Za-z]:[\\/]*) \
4267 srcdiroption="--srcdir=$(srcdir)/readline"; \
4268 libsrcdir="$$s/readline";; \
4269 *) \
4270 srcdiroption="--srcdir=../$(srcdir)/readline"; \
4271 libsrcdir="$$s/readline";; \
4272 esac; \
4273 $(SHELL) $${libsrcdir}/configure \
4274 $(HOST_CONFIGARGS) $${srcdiroption} \
4275 || exit 1
4277 .PHONY: all-readline maybe-all-readline
4278 maybe-all-readline:
4279 all-readline: configure-readline
4280 @r=`${PWD}`; export r; \
4281 s=`cd $(srcdir); ${PWD}`; export s; \
4282 $(SET_LIB_PATH) \
4283 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
4286 .PHONY: check-readline
4287 check-readline:
4288 @r=`${PWD}`; export r; \
4289 s=`cd $(srcdir); ${PWD}`; export s; \
4290 $(SET_LIB_PATH) \
4291 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
4295 .PHONY: install-readline maybe-install-readline
4296 maybe-install-readline:
4297 install-readline: installdirs
4298 @r=`${PWD}`; export r; \
4299 s=`cd $(srcdir); ${PWD}`; export s; \
4300 $(SET_LIB_PATH) \
4301 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
4304 .PHONY: configure-release maybe-configure-release
4305 maybe-configure-release:
4306 configure-release: release/Makefile
4308 release/Makefile: config.status
4309 @[ -d release ] || mkdir release; \
4310 r=`${PWD}`; export r; \
4311 s=`cd $(srcdir); ${PWD}`; export s; \
4312 CC="$(CC)"; export CC; \
4313 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4314 CXX="$(CXX)"; export CXX; \
4315 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4316 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4317 AR="$(AR)"; export AR; \
4318 AS="$(AS)"; export AS; \
4319 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4320 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4321 LD="$(LD)"; export LD; \
4322 NM="$(NM)"; export NM; \
4323 RANLIB="$(RANLIB)"; export RANLIB; \
4324 WINDRES="$(WINDRES)"; export WINDRES; \
4325 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4326 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4327 fi; \
4328 echo Configuring in release; \
4329 cd release || exit 1; \
4330 case $(srcdir) in \
4331 \.) \
4332 srcdiroption="--srcdir=."; \
4333 libsrcdir=".";; \
4334 /* | [A-Za-z]:[\\/]*) \
4335 srcdiroption="--srcdir=$(srcdir)/release"; \
4336 libsrcdir="$$s/release";; \
4337 *) \
4338 srcdiroption="--srcdir=../$(srcdir)/release"; \
4339 libsrcdir="$$s/release";; \
4340 esac; \
4341 $(SHELL) $${libsrcdir}/configure \
4342 $(HOST_CONFIGARGS) $${srcdiroption} \
4343 || exit 1
4345 .PHONY: all-release maybe-all-release
4346 maybe-all-release:
4347 all-release: configure-release
4348 @r=`${PWD}`; export r; \
4349 s=`cd $(srcdir); ${PWD}`; export s; \
4350 $(SET_LIB_PATH) \
4351 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
4354 .PHONY: check-release
4355 check-release:
4359 .PHONY: install-release maybe-install-release
4360 maybe-install-release:
4361 install-release:
4364 .PHONY: configure-recode maybe-configure-recode
4365 maybe-configure-recode:
4366 configure-recode: recode/Makefile
4368 recode/Makefile: config.status
4369 @[ -d recode ] || mkdir recode; \
4370 r=`${PWD}`; export r; \
4371 s=`cd $(srcdir); ${PWD}`; export s; \
4372 CC="$(CC)"; export CC; \
4373 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4374 CXX="$(CXX)"; export CXX; \
4375 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4376 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4377 AR="$(AR)"; export AR; \
4378 AS="$(AS)"; export AS; \
4379 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4380 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4381 LD="$(LD)"; export LD; \
4382 NM="$(NM)"; export NM; \
4383 RANLIB="$(RANLIB)"; export RANLIB; \
4384 WINDRES="$(WINDRES)"; export WINDRES; \
4385 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4386 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4387 fi; \
4388 echo Configuring in recode; \
4389 cd recode || exit 1; \
4390 case $(srcdir) in \
4391 \.) \
4392 srcdiroption="--srcdir=."; \
4393 libsrcdir=".";; \
4394 /* | [A-Za-z]:[\\/]*) \
4395 srcdiroption="--srcdir=$(srcdir)/recode"; \
4396 libsrcdir="$$s/recode";; \
4397 *) \
4398 srcdiroption="--srcdir=../$(srcdir)/recode"; \
4399 libsrcdir="$$s/recode";; \
4400 esac; \
4401 $(SHELL) $${libsrcdir}/configure \
4402 $(HOST_CONFIGARGS) $${srcdiroption} \
4403 || exit 1
4405 .PHONY: all-recode maybe-all-recode
4406 maybe-all-recode:
4407 all-recode: configure-recode
4408 @r=`${PWD}`; export r; \
4409 s=`cd $(srcdir); ${PWD}`; export s; \
4410 $(SET_LIB_PATH) \
4411 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
4414 .PHONY: check-recode
4415 check-recode:
4416 @r=`${PWD}`; export r; \
4417 s=`cd $(srcdir); ${PWD}`; export s; \
4418 $(SET_LIB_PATH) \
4419 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
4423 .PHONY: install-recode maybe-install-recode
4424 maybe-install-recode:
4425 install-recode: installdirs
4426 @r=`${PWD}`; export r; \
4427 s=`cd $(srcdir); ${PWD}`; export s; \
4428 $(SET_LIB_PATH) \
4429 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
4432 .PHONY: configure-sed maybe-configure-sed
4433 maybe-configure-sed:
4434 configure-sed: sed/Makefile
4436 sed/Makefile: config.status
4437 @[ -d sed ] || mkdir sed; \
4438 r=`${PWD}`; export r; \
4439 s=`cd $(srcdir); ${PWD}`; export s; \
4440 CC="$(CC)"; export CC; \
4441 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4442 CXX="$(CXX)"; export CXX; \
4443 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4444 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4445 AR="$(AR)"; export AR; \
4446 AS="$(AS)"; export AS; \
4447 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4448 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4449 LD="$(LD)"; export LD; \
4450 NM="$(NM)"; export NM; \
4451 RANLIB="$(RANLIB)"; export RANLIB; \
4452 WINDRES="$(WINDRES)"; export WINDRES; \
4453 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4454 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4455 fi; \
4456 echo Configuring in sed; \
4457 cd sed || exit 1; \
4458 case $(srcdir) in \
4459 \.) \
4460 srcdiroption="--srcdir=."; \
4461 libsrcdir=".";; \
4462 /* | [A-Za-z]:[\\/]*) \
4463 srcdiroption="--srcdir=$(srcdir)/sed"; \
4464 libsrcdir="$$s/sed";; \
4465 *) \
4466 srcdiroption="--srcdir=../$(srcdir)/sed"; \
4467 libsrcdir="$$s/sed";; \
4468 esac; \
4469 $(SHELL) $${libsrcdir}/configure \
4470 $(HOST_CONFIGARGS) $${srcdiroption} \
4471 || exit 1
4473 .PHONY: all-sed maybe-all-sed
4474 maybe-all-sed:
4475 all-sed: configure-sed
4476 @r=`${PWD}`; export r; \
4477 s=`cd $(srcdir); ${PWD}`; export s; \
4478 $(SET_LIB_PATH) \
4479 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
4482 .PHONY: check-sed
4483 check-sed:
4484 @r=`${PWD}`; export r; \
4485 s=`cd $(srcdir); ${PWD}`; export s; \
4486 $(SET_LIB_PATH) \
4487 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
4491 .PHONY: install-sed maybe-install-sed
4492 maybe-install-sed:
4493 install-sed: installdirs
4494 @r=`${PWD}`; export r; \
4495 s=`cd $(srcdir); ${PWD}`; export s; \
4496 $(SET_LIB_PATH) \
4497 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
4500 .PHONY: configure-send-pr maybe-configure-send-pr
4501 maybe-configure-send-pr:
4502 configure-send-pr: send-pr/Makefile
4504 send-pr/Makefile: config.status
4505 @[ -d send-pr ] || mkdir send-pr; \
4506 r=`${PWD}`; export r; \
4507 s=`cd $(srcdir); ${PWD}`; export s; \
4508 CC="$(CC)"; export CC; \
4509 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4510 CXX="$(CXX)"; export CXX; \
4511 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4512 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4513 AR="$(AR)"; export AR; \
4514 AS="$(AS)"; export AS; \
4515 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4516 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4517 LD="$(LD)"; export LD; \
4518 NM="$(NM)"; export NM; \
4519 RANLIB="$(RANLIB)"; export RANLIB; \
4520 WINDRES="$(WINDRES)"; export WINDRES; \
4521 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4522 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4523 fi; \
4524 echo Configuring in send-pr; \
4525 cd send-pr || exit 1; \
4526 case $(srcdir) in \
4527 \.) \
4528 srcdiroption="--srcdir=."; \
4529 libsrcdir=".";; \
4530 /* | [A-Za-z]:[\\/]*) \
4531 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
4532 libsrcdir="$$s/send-pr";; \
4533 *) \
4534 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
4535 libsrcdir="$$s/send-pr";; \
4536 esac; \
4537 $(SHELL) $${libsrcdir}/configure \
4538 $(HOST_CONFIGARGS) $${srcdiroption} \
4539 || exit 1
4541 .PHONY: all-send-pr maybe-all-send-pr
4542 maybe-all-send-pr:
4543 all-send-pr: configure-send-pr
4544 @r=`${PWD}`; export r; \
4545 s=`cd $(srcdir); ${PWD}`; export s; \
4546 $(SET_LIB_PATH) \
4547 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
4550 .PHONY: check-send-pr
4551 check-send-pr:
4552 @r=`${PWD}`; export r; \
4553 s=`cd $(srcdir); ${PWD}`; export s; \
4554 $(SET_LIB_PATH) \
4555 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
4559 .PHONY: install-send-pr maybe-install-send-pr
4560 maybe-install-send-pr:
4561 install-send-pr: installdirs
4562 @r=`${PWD}`; export r; \
4563 s=`cd $(srcdir); ${PWD}`; export s; \
4564 $(SET_LIB_PATH) \
4565 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
4568 .PHONY: configure-shellutils maybe-configure-shellutils
4569 maybe-configure-shellutils:
4570 configure-shellutils: shellutils/Makefile
4572 shellutils/Makefile: config.status
4573 @[ -d shellutils ] || mkdir shellutils; \
4574 r=`${PWD}`; export r; \
4575 s=`cd $(srcdir); ${PWD}`; export s; \
4576 CC="$(CC)"; export CC; \
4577 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4578 CXX="$(CXX)"; export CXX; \
4579 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4580 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4581 AR="$(AR)"; export AR; \
4582 AS="$(AS)"; export AS; \
4583 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4584 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4585 LD="$(LD)"; export LD; \
4586 NM="$(NM)"; export NM; \
4587 RANLIB="$(RANLIB)"; export RANLIB; \
4588 WINDRES="$(WINDRES)"; export WINDRES; \
4589 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4590 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4591 fi; \
4592 echo Configuring in shellutils; \
4593 cd shellutils || exit 1; \
4594 case $(srcdir) in \
4595 \.) \
4596 srcdiroption="--srcdir=."; \
4597 libsrcdir=".";; \
4598 /* | [A-Za-z]:[\\/]*) \
4599 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
4600 libsrcdir="$$s/shellutils";; \
4601 *) \
4602 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
4603 libsrcdir="$$s/shellutils";; \
4604 esac; \
4605 $(SHELL) $${libsrcdir}/configure \
4606 $(HOST_CONFIGARGS) $${srcdiroption} \
4607 || exit 1
4609 .PHONY: all-shellutils maybe-all-shellutils
4610 maybe-all-shellutils:
4611 all-shellutils: configure-shellutils
4612 @r=`${PWD}`; export r; \
4613 s=`cd $(srcdir); ${PWD}`; export s; \
4614 $(SET_LIB_PATH) \
4615 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
4618 .PHONY: check-shellutils
4619 check-shellutils:
4620 @r=`${PWD}`; export r; \
4621 s=`cd $(srcdir); ${PWD}`; export s; \
4622 $(SET_LIB_PATH) \
4623 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
4627 .PHONY: install-shellutils maybe-install-shellutils
4628 maybe-install-shellutils:
4629 install-shellutils: installdirs
4630 @r=`${PWD}`; export r; \
4631 s=`cd $(srcdir); ${PWD}`; export s; \
4632 $(SET_LIB_PATH) \
4633 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
4636 .PHONY: configure-sid maybe-configure-sid
4637 maybe-configure-sid:
4638 configure-sid: sid/Makefile
4640 sid/Makefile: config.status
4641 @[ -d sid ] || mkdir sid; \
4642 r=`${PWD}`; export r; \
4643 s=`cd $(srcdir); ${PWD}`; export s; \
4644 CC="$(CC)"; export CC; \
4645 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4646 CXX="$(CXX)"; export CXX; \
4647 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4648 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4649 AR="$(AR)"; export AR; \
4650 AS="$(AS)"; export AS; \
4651 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4652 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4653 LD="$(LD)"; export LD; \
4654 NM="$(NM)"; export NM; \
4655 RANLIB="$(RANLIB)"; export RANLIB; \
4656 WINDRES="$(WINDRES)"; export WINDRES; \
4657 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4658 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4659 fi; \
4660 echo Configuring in sid; \
4661 cd sid || exit 1; \
4662 case $(srcdir) in \
4663 \.) \
4664 srcdiroption="--srcdir=."; \
4665 libsrcdir=".";; \
4666 /* | [A-Za-z]:[\\/]*) \
4667 srcdiroption="--srcdir=$(srcdir)/sid"; \
4668 libsrcdir="$$s/sid";; \
4669 *) \
4670 srcdiroption="--srcdir=../$(srcdir)/sid"; \
4671 libsrcdir="$$s/sid";; \
4672 esac; \
4673 $(SHELL) $${libsrcdir}/configure \
4674 $(HOST_CONFIGARGS) $${srcdiroption} \
4675 || exit 1
4677 .PHONY: all-sid maybe-all-sid
4678 maybe-all-sid:
4679 all-sid: configure-sid
4680 @r=`${PWD}`; export r; \
4681 s=`cd $(srcdir); ${PWD}`; export s; \
4682 $(SET_LIB_PATH) \
4683 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
4686 .PHONY: check-sid
4687 check-sid:
4688 @r=`${PWD}`; export r; \
4689 s=`cd $(srcdir); ${PWD}`; export s; \
4690 $(SET_LIB_PATH) \
4691 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
4695 .PHONY: install-sid maybe-install-sid
4696 maybe-install-sid:
4697 install-sid: installdirs
4698 @r=`${PWD}`; export r; \
4699 s=`cd $(srcdir); ${PWD}`; export s; \
4700 $(SET_LIB_PATH) \
4701 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
4704 .PHONY: configure-sim maybe-configure-sim
4705 maybe-configure-sim:
4706 configure-sim: sim/Makefile
4708 sim/Makefile: config.status
4709 @[ -d sim ] || mkdir sim; \
4710 r=`${PWD}`; export r; \
4711 s=`cd $(srcdir); ${PWD}`; export s; \
4712 CC="$(CC)"; export CC; \
4713 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4714 CXX="$(CXX)"; export CXX; \
4715 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4716 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4717 AR="$(AR)"; export AR; \
4718 AS="$(AS)"; export AS; \
4719 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4720 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4721 LD="$(LD)"; export LD; \
4722 NM="$(NM)"; export NM; \
4723 RANLIB="$(RANLIB)"; export RANLIB; \
4724 WINDRES="$(WINDRES)"; export WINDRES; \
4725 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4726 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4727 fi; \
4728 echo Configuring in sim; \
4729 cd sim || exit 1; \
4730 case $(srcdir) in \
4731 \.) \
4732 srcdiroption="--srcdir=."; \
4733 libsrcdir=".";; \
4734 /* | [A-Za-z]:[\\/]*) \
4735 srcdiroption="--srcdir=$(srcdir)/sim"; \
4736 libsrcdir="$$s/sim";; \
4737 *) \
4738 srcdiroption="--srcdir=../$(srcdir)/sim"; \
4739 libsrcdir="$$s/sim";; \
4740 esac; \
4741 $(SHELL) $${libsrcdir}/configure \
4742 $(HOST_CONFIGARGS) $${srcdiroption} \
4743 || exit 1
4745 .PHONY: all-sim maybe-all-sim
4746 maybe-all-sim:
4747 all-sim: configure-sim
4748 @r=`${PWD}`; export r; \
4749 s=`cd $(srcdir); ${PWD}`; export s; \
4750 $(SET_LIB_PATH) \
4751 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
4754 .PHONY: check-sim
4755 check-sim:
4756 @r=`${PWD}`; export r; \
4757 s=`cd $(srcdir); ${PWD}`; export s; \
4758 $(SET_LIB_PATH) \
4759 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
4763 .PHONY: install-sim maybe-install-sim
4764 maybe-install-sim:
4765 install-sim: installdirs
4766 @r=`${PWD}`; export r; \
4767 s=`cd $(srcdir); ${PWD}`; export s; \
4768 $(SET_LIB_PATH) \
4769 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
4772 .PHONY: configure-snavigator maybe-configure-snavigator
4773 maybe-configure-snavigator:
4774 configure-snavigator: snavigator/Makefile
4776 snavigator/Makefile: config.status
4777 @[ -d snavigator ] || mkdir snavigator; \
4778 r=`${PWD}`; export r; \
4779 s=`cd $(srcdir); ${PWD}`; export s; \
4780 CC="$(CC)"; export CC; \
4781 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4782 CXX="$(CXX)"; export CXX; \
4783 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4784 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4785 AR="$(AR)"; export AR; \
4786 AS="$(AS)"; export AS; \
4787 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4788 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4789 LD="$(LD)"; export LD; \
4790 NM="$(NM)"; export NM; \
4791 RANLIB="$(RANLIB)"; export RANLIB; \
4792 WINDRES="$(WINDRES)"; export WINDRES; \
4793 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4794 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4795 fi; \
4796 echo Configuring in snavigator; \
4797 cd snavigator || exit 1; \
4798 case $(srcdir) in \
4799 \.) \
4800 srcdiroption="--srcdir=."; \
4801 libsrcdir=".";; \
4802 /* | [A-Za-z]:[\\/]*) \
4803 srcdiroption="--srcdir=$(srcdir)/snavigator"; \
4804 libsrcdir="$$s/snavigator";; \
4805 *) \
4806 srcdiroption="--srcdir=../$(srcdir)/snavigator"; \
4807 libsrcdir="$$s/snavigator";; \
4808 esac; \
4809 $(SHELL) $${libsrcdir}/configure \
4810 $(HOST_CONFIGARGS) $${srcdiroption} \
4811 || exit 1
4813 .PHONY: all-snavigator maybe-all-snavigator
4814 maybe-all-snavigator:
4815 all-snavigator: configure-snavigator
4816 @r=`${PWD}`; export r; \
4817 s=`cd $(srcdir); ${PWD}`; export s; \
4818 $(SET_LIB_PATH) \
4819 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) all)
4822 .PHONY: check-snavigator
4823 check-snavigator:
4824 @r=`${PWD}`; export r; \
4825 s=`cd $(srcdir); ${PWD}`; export s; \
4826 $(SET_LIB_PATH) \
4827 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) check)
4831 .PHONY: install-snavigator maybe-install-snavigator
4832 maybe-install-snavigator:
4833 install-snavigator: installdirs
4834 @r=`${PWD}`; export r; \
4835 s=`cd $(srcdir); ${PWD}`; export s; \
4836 $(SET_LIB_PATH) \
4837 (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) install)
4840 .PHONY: configure-tar maybe-configure-tar
4841 maybe-configure-tar:
4842 configure-tar: tar/Makefile
4844 tar/Makefile: config.status
4845 @[ -d tar ] || mkdir tar; \
4846 r=`${PWD}`; export r; \
4847 s=`cd $(srcdir); ${PWD}`; export s; \
4848 CC="$(CC)"; export CC; \
4849 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4850 CXX="$(CXX)"; export CXX; \
4851 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4852 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4853 AR="$(AR)"; export AR; \
4854 AS="$(AS)"; export AS; \
4855 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4856 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4857 LD="$(LD)"; export LD; \
4858 NM="$(NM)"; export NM; \
4859 RANLIB="$(RANLIB)"; export RANLIB; \
4860 WINDRES="$(WINDRES)"; export WINDRES; \
4861 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4862 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4863 fi; \
4864 echo Configuring in tar; \
4865 cd tar || exit 1; \
4866 case $(srcdir) in \
4867 \.) \
4868 srcdiroption="--srcdir=."; \
4869 libsrcdir=".";; \
4870 /* | [A-Za-z]:[\\/]*) \
4871 srcdiroption="--srcdir=$(srcdir)/tar"; \
4872 libsrcdir="$$s/tar";; \
4873 *) \
4874 srcdiroption="--srcdir=../$(srcdir)/tar"; \
4875 libsrcdir="$$s/tar";; \
4876 esac; \
4877 $(SHELL) $${libsrcdir}/configure \
4878 $(HOST_CONFIGARGS) $${srcdiroption} \
4879 || exit 1
4881 .PHONY: all-tar maybe-all-tar
4882 maybe-all-tar:
4883 all-tar: configure-tar
4884 @r=`${PWD}`; export r; \
4885 s=`cd $(srcdir); ${PWD}`; export s; \
4886 $(SET_LIB_PATH) \
4887 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
4890 .PHONY: check-tar
4891 check-tar:
4892 @r=`${PWD}`; export r; \
4893 s=`cd $(srcdir); ${PWD}`; export s; \
4894 $(SET_LIB_PATH) \
4895 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
4899 .PHONY: install-tar maybe-install-tar
4900 maybe-install-tar:
4901 install-tar: installdirs
4902 @r=`${PWD}`; export r; \
4903 s=`cd $(srcdir); ${PWD}`; export s; \
4904 $(SET_LIB_PATH) \
4905 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
4908 .PHONY: configure-texinfo maybe-configure-texinfo
4909 maybe-configure-texinfo:
4910 configure-texinfo: texinfo/Makefile
4912 texinfo/Makefile: config.status
4913 @[ -d texinfo ] || mkdir texinfo; \
4914 r=`${PWD}`; export r; \
4915 s=`cd $(srcdir); ${PWD}`; export s; \
4916 CC="$(CC)"; export CC; \
4917 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4918 CXX="$(CXX)"; export CXX; \
4919 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4920 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4921 AR="$(AR)"; export AR; \
4922 AS="$(AS)"; export AS; \
4923 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4924 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4925 LD="$(LD)"; export LD; \
4926 NM="$(NM)"; export NM; \
4927 RANLIB="$(RANLIB)"; export RANLIB; \
4928 WINDRES="$(WINDRES)"; export WINDRES; \
4929 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4930 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4931 fi; \
4932 echo Configuring in texinfo; \
4933 cd texinfo || exit 1; \
4934 case $(srcdir) in \
4935 \.) \
4936 srcdiroption="--srcdir=."; \
4937 libsrcdir=".";; \
4938 /* | [A-Za-z]:[\\/]*) \
4939 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
4940 libsrcdir="$$s/texinfo";; \
4941 *) \
4942 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
4943 libsrcdir="$$s/texinfo";; \
4944 esac; \
4945 $(SHELL) $${libsrcdir}/configure \
4946 $(HOST_CONFIGARGS) $${srcdiroption} \
4947 || exit 1
4949 .PHONY: all-texinfo maybe-all-texinfo
4950 maybe-all-texinfo:
4951 all-texinfo: configure-texinfo
4952 @r=`${PWD}`; export r; \
4953 s=`cd $(srcdir); ${PWD}`; export s; \
4954 $(SET_LIB_PATH) \
4955 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
4958 .PHONY: check-texinfo
4959 check-texinfo:
4960 @r=`${PWD}`; export r; \
4961 s=`cd $(srcdir); ${PWD}`; export s; \
4962 $(SET_LIB_PATH) \
4963 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
4967 .PHONY: install-texinfo maybe-install-texinfo
4968 maybe-install-texinfo:
4969 install-texinfo:
4972 .PHONY: configure-textutils maybe-configure-textutils
4973 maybe-configure-textutils:
4974 configure-textutils: textutils/Makefile
4976 textutils/Makefile: config.status
4977 @[ -d textutils ] || mkdir textutils; \
4978 r=`${PWD}`; export r; \
4979 s=`cd $(srcdir); ${PWD}`; export s; \
4980 CC="$(CC)"; export CC; \
4981 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4982 CXX="$(CXX)"; export CXX; \
4983 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4984 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
4985 AR="$(AR)"; export AR; \
4986 AS="$(AS)"; export AS; \
4987 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4988 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4989 LD="$(LD)"; export LD; \
4990 NM="$(NM)"; export NM; \
4991 RANLIB="$(RANLIB)"; export RANLIB; \
4992 WINDRES="$(WINDRES)"; export WINDRES; \
4993 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4994 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4995 fi; \
4996 echo Configuring in textutils; \
4997 cd textutils || exit 1; \
4998 case $(srcdir) in \
4999 \.) \
5000 srcdiroption="--srcdir=."; \
5001 libsrcdir=".";; \
5002 /* | [A-Za-z]:[\\/]*) \
5003 srcdiroption="--srcdir=$(srcdir)/textutils"; \
5004 libsrcdir="$$s/textutils";; \
5005 *) \
5006 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
5007 libsrcdir="$$s/textutils";; \
5008 esac; \
5009 $(SHELL) $${libsrcdir}/configure \
5010 $(HOST_CONFIGARGS) $${srcdiroption} \
5011 || exit 1
5013 .PHONY: all-textutils maybe-all-textutils
5014 maybe-all-textutils:
5015 all-textutils: configure-textutils
5016 @r=`${PWD}`; export r; \
5017 s=`cd $(srcdir); ${PWD}`; export s; \
5018 $(SET_LIB_PATH) \
5019 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
5022 .PHONY: check-textutils
5023 check-textutils:
5024 @r=`${PWD}`; export r; \
5025 s=`cd $(srcdir); ${PWD}`; export s; \
5026 $(SET_LIB_PATH) \
5027 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
5031 .PHONY: install-textutils maybe-install-textutils
5032 maybe-install-textutils:
5033 install-textutils: installdirs
5034 @r=`${PWD}`; export r; \
5035 s=`cd $(srcdir); ${PWD}`; export s; \
5036 $(SET_LIB_PATH) \
5037 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
5040 .PHONY: configure-time maybe-configure-time
5041 maybe-configure-time:
5042 configure-time: time/Makefile
5044 time/Makefile: config.status
5045 @[ -d time ] || mkdir time; \
5046 r=`${PWD}`; export r; \
5047 s=`cd $(srcdir); ${PWD}`; export s; \
5048 CC="$(CC)"; export CC; \
5049 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5050 CXX="$(CXX)"; export CXX; \
5051 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5052 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5053 AR="$(AR)"; export AR; \
5054 AS="$(AS)"; export AS; \
5055 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5056 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5057 LD="$(LD)"; export LD; \
5058 NM="$(NM)"; export NM; \
5059 RANLIB="$(RANLIB)"; export RANLIB; \
5060 WINDRES="$(WINDRES)"; export WINDRES; \
5061 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5062 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5063 fi; \
5064 echo Configuring in time; \
5065 cd time || exit 1; \
5066 case $(srcdir) in \
5067 \.) \
5068 srcdiroption="--srcdir=."; \
5069 libsrcdir=".";; \
5070 /* | [A-Za-z]:[\\/]*) \
5071 srcdiroption="--srcdir=$(srcdir)/time"; \
5072 libsrcdir="$$s/time";; \
5073 *) \
5074 srcdiroption="--srcdir=../$(srcdir)/time"; \
5075 libsrcdir="$$s/time";; \
5076 esac; \
5077 $(SHELL) $${libsrcdir}/configure \
5078 $(HOST_CONFIGARGS) $${srcdiroption} \
5079 || exit 1
5081 .PHONY: all-time maybe-all-time
5082 maybe-all-time:
5083 all-time: configure-time
5084 @r=`${PWD}`; export r; \
5085 s=`cd $(srcdir); ${PWD}`; export s; \
5086 $(SET_LIB_PATH) \
5087 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
5090 .PHONY: check-time
5091 check-time:
5092 @r=`${PWD}`; export r; \
5093 s=`cd $(srcdir); ${PWD}`; export s; \
5094 $(SET_LIB_PATH) \
5095 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
5099 .PHONY: install-time maybe-install-time
5100 maybe-install-time:
5101 install-time: installdirs
5102 @r=`${PWD}`; export r; \
5103 s=`cd $(srcdir); ${PWD}`; export s; \
5104 $(SET_LIB_PATH) \
5105 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
5108 .PHONY: configure-uudecode maybe-configure-uudecode
5109 maybe-configure-uudecode:
5110 configure-uudecode: uudecode/Makefile
5112 uudecode/Makefile: config.status
5113 @[ -d uudecode ] || mkdir uudecode; \
5114 r=`${PWD}`; export r; \
5115 s=`cd $(srcdir); ${PWD}`; export s; \
5116 CC="$(CC)"; export CC; \
5117 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5118 CXX="$(CXX)"; export CXX; \
5119 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5120 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5121 AR="$(AR)"; export AR; \
5122 AS="$(AS)"; export AS; \
5123 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5124 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5125 LD="$(LD)"; export LD; \
5126 NM="$(NM)"; export NM; \
5127 RANLIB="$(RANLIB)"; export RANLIB; \
5128 WINDRES="$(WINDRES)"; export WINDRES; \
5129 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5130 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5131 fi; \
5132 echo Configuring in uudecode; \
5133 cd uudecode || exit 1; \
5134 case $(srcdir) in \
5135 \.) \
5136 srcdiroption="--srcdir=."; \
5137 libsrcdir=".";; \
5138 /* | [A-Za-z]:[\\/]*) \
5139 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
5140 libsrcdir="$$s/uudecode";; \
5141 *) \
5142 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
5143 libsrcdir="$$s/uudecode";; \
5144 esac; \
5145 $(SHELL) $${libsrcdir}/configure \
5146 $(HOST_CONFIGARGS) $${srcdiroption} \
5147 || exit 1
5149 .PHONY: all-uudecode maybe-all-uudecode
5150 maybe-all-uudecode:
5151 all-uudecode: configure-uudecode
5152 @r=`${PWD}`; export r; \
5153 s=`cd $(srcdir); ${PWD}`; export s; \
5154 $(SET_LIB_PATH) \
5155 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
5158 .PHONY: check-uudecode
5159 check-uudecode:
5160 @r=`${PWD}`; export r; \
5161 s=`cd $(srcdir); ${PWD}`; export s; \
5162 $(SET_LIB_PATH) \
5163 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
5167 .PHONY: install-uudecode maybe-install-uudecode
5168 maybe-install-uudecode:
5169 install-uudecode: installdirs
5170 @r=`${PWD}`; export r; \
5171 s=`cd $(srcdir); ${PWD}`; export s; \
5172 $(SET_LIB_PATH) \
5173 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
5176 .PHONY: configure-wdiff maybe-configure-wdiff
5177 maybe-configure-wdiff:
5178 configure-wdiff: wdiff/Makefile
5180 wdiff/Makefile: config.status
5181 @[ -d wdiff ] || mkdir wdiff; \
5182 r=`${PWD}`; export r; \
5183 s=`cd $(srcdir); ${PWD}`; export s; \
5184 CC="$(CC)"; export CC; \
5185 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5186 CXX="$(CXX)"; export CXX; \
5187 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5188 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5189 AR="$(AR)"; export AR; \
5190 AS="$(AS)"; export AS; \
5191 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5192 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5193 LD="$(LD)"; export LD; \
5194 NM="$(NM)"; export NM; \
5195 RANLIB="$(RANLIB)"; export RANLIB; \
5196 WINDRES="$(WINDRES)"; export WINDRES; \
5197 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5198 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5199 fi; \
5200 echo Configuring in wdiff; \
5201 cd wdiff || exit 1; \
5202 case $(srcdir) in \
5203 \.) \
5204 srcdiroption="--srcdir=."; \
5205 libsrcdir=".";; \
5206 /* | [A-Za-z]:[\\/]*) \
5207 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
5208 libsrcdir="$$s/wdiff";; \
5209 *) \
5210 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
5211 libsrcdir="$$s/wdiff";; \
5212 esac; \
5213 $(SHELL) $${libsrcdir}/configure \
5214 $(HOST_CONFIGARGS) $${srcdiroption} \
5215 || exit 1
5217 .PHONY: all-wdiff maybe-all-wdiff
5218 maybe-all-wdiff:
5219 all-wdiff: configure-wdiff
5220 @r=`${PWD}`; export r; \
5221 s=`cd $(srcdir); ${PWD}`; export s; \
5222 $(SET_LIB_PATH) \
5223 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
5226 .PHONY: check-wdiff
5227 check-wdiff:
5228 @r=`${PWD}`; export r; \
5229 s=`cd $(srcdir); ${PWD}`; export s; \
5230 $(SET_LIB_PATH) \
5231 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
5235 .PHONY: install-wdiff maybe-install-wdiff
5236 maybe-install-wdiff:
5237 install-wdiff: installdirs
5238 @r=`${PWD}`; export r; \
5239 s=`cd $(srcdir); ${PWD}`; export s; \
5240 $(SET_LIB_PATH) \
5241 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
5244 .PHONY: configure-zip maybe-configure-zip
5245 maybe-configure-zip:
5246 configure-zip: zip/Makefile
5248 zip/Makefile: config.status
5249 @[ -d zip ] || mkdir zip; \
5250 r=`${PWD}`; export r; \
5251 s=`cd $(srcdir); ${PWD}`; export s; \
5252 CC="$(CC)"; export CC; \
5253 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5254 CXX="$(CXX)"; export CXX; \
5255 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5256 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5257 AR="$(AR)"; export AR; \
5258 AS="$(AS)"; export AS; \
5259 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5260 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5261 LD="$(LD)"; export LD; \
5262 NM="$(NM)"; export NM; \
5263 RANLIB="$(RANLIB)"; export RANLIB; \
5264 WINDRES="$(WINDRES)"; export WINDRES; \
5265 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5266 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5267 fi; \
5268 echo Configuring in zip; \
5269 cd zip || exit 1; \
5270 case $(srcdir) in \
5271 \.) \
5272 srcdiroption="--srcdir=."; \
5273 libsrcdir=".";; \
5274 /* | [A-Za-z]:[\\/]*) \
5275 srcdiroption="--srcdir=$(srcdir)/zip"; \
5276 libsrcdir="$$s/zip";; \
5277 *) \
5278 srcdiroption="--srcdir=../$(srcdir)/zip"; \
5279 libsrcdir="$$s/zip";; \
5280 esac; \
5281 $(SHELL) $${libsrcdir}/configure \
5282 $(HOST_CONFIGARGS) $${srcdiroption} \
5283 || exit 1
5285 .PHONY: all-zip maybe-all-zip
5286 maybe-all-zip:
5287 all-zip: configure-zip
5288 @r=`${PWD}`; export r; \
5289 s=`cd $(srcdir); ${PWD}`; export s; \
5290 $(SET_LIB_PATH) \
5291 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
5294 .PHONY: check-zip
5295 # This module is only tested in a native toolchain.
5296 check-zip:
5297 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
5298 r=`${PWD}`; export r; \
5299 s=`cd $(srcdir); ${PWD}`; export s; \
5300 $(SET_LIB_PATH) \
5301 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
5306 .PHONY: install-zip maybe-install-zip
5307 maybe-install-zip:
5308 install-zip: installdirs
5309 @r=`${PWD}`; export r; \
5310 s=`cd $(srcdir); ${PWD}`; export s; \
5311 $(SET_LIB_PATH) \
5312 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
5315 .PHONY: configure-zlib maybe-configure-zlib
5316 maybe-configure-zlib:
5317 configure-zlib: zlib/Makefile
5319 zlib/Makefile: config.status
5320 @[ -d zlib ] || mkdir zlib; \
5321 r=`${PWD}`; export r; \
5322 s=`cd $(srcdir); ${PWD}`; export s; \
5323 CC="$(CC)"; export CC; \
5324 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5325 CXX="$(CXX)"; export CXX; \
5326 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5327 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5328 AR="$(AR)"; export AR; \
5329 AS="$(AS)"; export AS; \
5330 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5331 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5332 LD="$(LD)"; export LD; \
5333 NM="$(NM)"; export NM; \
5334 RANLIB="$(RANLIB)"; export RANLIB; \
5335 WINDRES="$(WINDRES)"; export WINDRES; \
5336 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5337 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5338 fi; \
5339 echo Configuring in zlib; \
5340 cd zlib || exit 1; \
5341 case $(srcdir) in \
5342 \.) \
5343 srcdiroption="--srcdir=."; \
5344 libsrcdir=".";; \
5345 /* | [A-Za-z]:[\\/]*) \
5346 srcdiroption="--srcdir=$(srcdir)/zlib"; \
5347 libsrcdir="$$s/zlib";; \
5348 *) \
5349 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
5350 libsrcdir="$$s/zlib";; \
5351 esac; \
5352 $(SHELL) $${libsrcdir}/configure \
5353 $(HOST_CONFIGARGS) $${srcdiroption} \
5354 || exit 1
5356 .PHONY: all-zlib maybe-all-zlib
5357 maybe-all-zlib:
5358 all-zlib: configure-zlib
5359 @r=`${PWD}`; export r; \
5360 s=`cd $(srcdir); ${PWD}`; export s; \
5361 $(SET_LIB_PATH) \
5362 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
5365 .PHONY: check-zlib
5366 check-zlib:
5370 .PHONY: install-zlib maybe-install-zlib
5371 maybe-install-zlib:
5372 install-zlib:
5375 .PHONY: configure-gdb maybe-configure-gdb
5376 maybe-configure-gdb:
5377 configure-gdb: gdb/Makefile
5379 gdb/Makefile: config.status
5380 @[ -d gdb ] || mkdir gdb; \
5381 r=`${PWD}`; export r; \
5382 s=`cd $(srcdir); ${PWD}`; export s; \
5383 CC="$(CC)"; export CC; \
5384 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5385 CXX="$(CXX)"; export CXX; \
5386 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5387 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5388 AR="$(AR)"; export AR; \
5389 AS="$(AS)"; export AS; \
5390 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5391 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5392 LD="$(LD)"; export LD; \
5393 NM="$(NM)"; export NM; \
5394 RANLIB="$(RANLIB)"; export RANLIB; \
5395 WINDRES="$(WINDRES)"; export WINDRES; \
5396 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5397 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5398 fi; \
5399 echo Configuring in gdb; \
5400 cd gdb || exit 1; \
5401 case $(srcdir) in \
5402 \.) \
5403 srcdiroption="--srcdir=."; \
5404 libsrcdir=".";; \
5405 /* | [A-Za-z]:[\\/]*) \
5406 srcdiroption="--srcdir=$(srcdir)/gdb"; \
5407 libsrcdir="$$s/gdb";; \
5408 *) \
5409 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
5410 libsrcdir="$$s/gdb";; \
5411 esac; \
5412 $(SHELL) $${libsrcdir}/configure \
5413 $(HOST_CONFIGARGS) $${srcdiroption} \
5414 || exit 1
5416 .PHONY: all-gdb maybe-all-gdb
5417 maybe-all-gdb:
5418 all-gdb: configure-gdb
5419 @r=`${PWD}`; export r; \
5420 s=`cd $(srcdir); ${PWD}`; export s; \
5421 $(SET_LIB_PATH) \
5422 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5425 .PHONY: check-gdb
5426 check-gdb:
5427 @r=`${PWD}`; export r; \
5428 s=`cd $(srcdir); ${PWD}`; export s; \
5429 $(SET_LIB_PATH) \
5430 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5434 .PHONY: install-gdb maybe-install-gdb
5435 maybe-install-gdb:
5436 install-gdb: installdirs
5437 @r=`${PWD}`; export r; \
5438 s=`cd $(srcdir); ${PWD}`; export s; \
5439 $(SET_LIB_PATH) \
5440 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5443 .PHONY: configure-expect maybe-configure-expect
5444 maybe-configure-expect:
5445 configure-expect: expect/Makefile
5447 expect/Makefile: config.status
5448 @[ -d expect ] || mkdir expect; \
5449 r=`${PWD}`; export r; \
5450 s=`cd $(srcdir); ${PWD}`; export s; \
5451 CC="$(CC)"; export CC; \
5452 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5453 CXX="$(CXX)"; export CXX; \
5454 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5455 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5456 AR="$(AR)"; export AR; \
5457 AS="$(AS)"; export AS; \
5458 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5459 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5460 LD="$(LD)"; export LD; \
5461 NM="$(NM)"; export NM; \
5462 RANLIB="$(RANLIB)"; export RANLIB; \
5463 WINDRES="$(WINDRES)"; export WINDRES; \
5464 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5465 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5466 fi; \
5467 echo Configuring in expect; \
5468 cd expect || exit 1; \
5469 case $(srcdir) in \
5470 \.) \
5471 srcdiroption="--srcdir=."; \
5472 libsrcdir=".";; \
5473 /* | [A-Za-z]:[\\/]*) \
5474 srcdiroption="--srcdir=$(srcdir)/expect"; \
5475 libsrcdir="$$s/expect";; \
5476 *) \
5477 srcdiroption="--srcdir=../$(srcdir)/expect"; \
5478 libsrcdir="$$s/expect";; \
5479 esac; \
5480 $(SHELL) $${libsrcdir}/configure \
5481 $(HOST_CONFIGARGS) $${srcdiroption} \
5482 || exit 1
5484 .PHONY: all-expect maybe-all-expect
5485 maybe-all-expect:
5486 all-expect: configure-expect
5487 @r=`${PWD}`; export r; \
5488 s=`cd $(srcdir); ${PWD}`; export s; \
5489 $(SET_LIB_PATH) \
5490 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5493 .PHONY: check-expect
5494 check-expect:
5495 @r=`${PWD}`; export r; \
5496 s=`cd $(srcdir); ${PWD}`; export s; \
5497 $(SET_LIB_PATH) \
5498 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5502 .PHONY: install-expect maybe-install-expect
5503 maybe-install-expect:
5504 install-expect: installdirs
5505 @r=`${PWD}`; export r; \
5506 s=`cd $(srcdir); ${PWD}`; export s; \
5507 $(SET_LIB_PATH) \
5508 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5511 .PHONY: configure-guile maybe-configure-guile
5512 maybe-configure-guile:
5513 configure-guile: guile/Makefile
5515 guile/Makefile: config.status
5516 @[ -d guile ] || mkdir guile; \
5517 r=`${PWD}`; export r; \
5518 s=`cd $(srcdir); ${PWD}`; export s; \
5519 CC="$(CC)"; export CC; \
5520 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5521 CXX="$(CXX)"; export CXX; \
5522 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5523 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5524 AR="$(AR)"; export AR; \
5525 AS="$(AS)"; export AS; \
5526 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5527 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5528 LD="$(LD)"; export LD; \
5529 NM="$(NM)"; export NM; \
5530 RANLIB="$(RANLIB)"; export RANLIB; \
5531 WINDRES="$(WINDRES)"; export WINDRES; \
5532 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5533 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5534 fi; \
5535 echo Configuring in guile; \
5536 cd guile || exit 1; \
5537 case $(srcdir) in \
5538 \.) \
5539 srcdiroption="--srcdir=."; \
5540 libsrcdir=".";; \
5541 /* | [A-Za-z]:[\\/]*) \
5542 srcdiroption="--srcdir=$(srcdir)/guile"; \
5543 libsrcdir="$$s/guile";; \
5544 *) \
5545 srcdiroption="--srcdir=../$(srcdir)/guile"; \
5546 libsrcdir="$$s/guile";; \
5547 esac; \
5548 $(SHELL) $${libsrcdir}/configure \
5549 $(HOST_CONFIGARGS) $${srcdiroption} \
5550 || exit 1
5552 .PHONY: all-guile maybe-all-guile
5553 maybe-all-guile:
5554 all-guile: configure-guile
5555 @r=`${PWD}`; export r; \
5556 s=`cd $(srcdir); ${PWD}`; export s; \
5557 $(SET_LIB_PATH) \
5558 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5561 .PHONY: check-guile
5562 check-guile:
5563 @r=`${PWD}`; export r; \
5564 s=`cd $(srcdir); ${PWD}`; export s; \
5565 $(SET_LIB_PATH) \
5566 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5570 .PHONY: install-guile maybe-install-guile
5571 maybe-install-guile:
5572 install-guile: installdirs
5573 @r=`${PWD}`; export r; \
5574 s=`cd $(srcdir); ${PWD}`; export s; \
5575 $(SET_LIB_PATH) \
5576 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5579 .PHONY: configure-tk maybe-configure-tk
5580 maybe-configure-tk:
5581 configure-tk: tk/Makefile
5583 tk/Makefile: config.status
5584 @[ -d tk ] || mkdir tk; \
5585 r=`${PWD}`; export r; \
5586 s=`cd $(srcdir); ${PWD}`; export s; \
5587 CC="$(CC)"; export CC; \
5588 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5589 CXX="$(CXX)"; export CXX; \
5590 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5591 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5592 AR="$(AR)"; export AR; \
5593 AS="$(AS)"; export AS; \
5594 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5595 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5596 LD="$(LD)"; export LD; \
5597 NM="$(NM)"; export NM; \
5598 RANLIB="$(RANLIB)"; export RANLIB; \
5599 WINDRES="$(WINDRES)"; export WINDRES; \
5600 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5601 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5602 fi; \
5603 echo Configuring in tk; \
5604 cd tk || exit 1; \
5605 case $(srcdir) in \
5606 \.) \
5607 srcdiroption="--srcdir=."; \
5608 libsrcdir=".";; \
5609 /* | [A-Za-z]:[\\/]*) \
5610 srcdiroption="--srcdir=$(srcdir)/tk"; \
5611 libsrcdir="$$s/tk";; \
5612 *) \
5613 srcdiroption="--srcdir=../$(srcdir)/tk"; \
5614 libsrcdir="$$s/tk";; \
5615 esac; \
5616 $(SHELL) $${libsrcdir}/configure \
5617 $(HOST_CONFIGARGS) $${srcdiroption} \
5618 || exit 1
5620 .PHONY: all-tk maybe-all-tk
5621 maybe-all-tk:
5622 all-tk: configure-tk
5623 @r=`${PWD}`; export r; \
5624 s=`cd $(srcdir); ${PWD}`; export s; \
5625 $(SET_LIB_PATH) \
5626 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5629 .PHONY: check-tk
5630 check-tk:
5631 @r=`${PWD}`; export r; \
5632 s=`cd $(srcdir); ${PWD}`; export s; \
5633 $(SET_LIB_PATH) \
5634 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5638 .PHONY: install-tk maybe-install-tk
5639 maybe-install-tk:
5640 install-tk: installdirs
5641 @r=`${PWD}`; export r; \
5642 s=`cd $(srcdir); ${PWD}`; export s; \
5643 $(SET_LIB_PATH) \
5644 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5647 .PHONY: configure-tix maybe-configure-tix
5648 maybe-configure-tix:
5649 configure-tix: tix/Makefile
5651 tix/Makefile: config.status
5652 @[ -d tix ] || mkdir tix; \
5653 r=`${PWD}`; export r; \
5654 s=`cd $(srcdir); ${PWD}`; export s; \
5655 CC="$(CC)"; export CC; \
5656 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5657 CXX="$(CXX)"; export CXX; \
5658 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5659 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5660 AR="$(AR)"; export AR; \
5661 AS="$(AS)"; export AS; \
5662 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5663 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5664 LD="$(LD)"; export LD; \
5665 NM="$(NM)"; export NM; \
5666 RANLIB="$(RANLIB)"; export RANLIB; \
5667 WINDRES="$(WINDRES)"; export WINDRES; \
5668 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5669 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5670 fi; \
5671 echo Configuring in tix; \
5672 cd tix || exit 1; \
5673 case $(srcdir) in \
5674 \.) \
5675 srcdiroption="--srcdir=."; \
5676 libsrcdir=".";; \
5677 /* | [A-Za-z]:[\\/]*) \
5678 srcdiroption="--srcdir=$(srcdir)/tix"; \
5679 libsrcdir="$$s/tix";; \
5680 *) \
5681 srcdiroption="--srcdir=../$(srcdir)/tix"; \
5682 libsrcdir="$$s/tix";; \
5683 esac; \
5684 $(SHELL) $${libsrcdir}/configure \
5685 $(HOST_CONFIGARGS) $${srcdiroption} \
5686 || exit 1
5688 .PHONY: all-tix maybe-all-tix
5689 maybe-all-tix:
5690 all-tix: configure-tix
5691 @r=`${PWD}`; export r; \
5692 s=`cd $(srcdir); ${PWD}`; export s; \
5693 $(SET_LIB_PATH) \
5694 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
5697 .PHONY: check-tix
5698 check-tix:
5699 @r=`${PWD}`; export r; \
5700 s=`cd $(srcdir); ${PWD}`; export s; \
5701 $(SET_LIB_PATH) \
5702 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
5706 .PHONY: install-tix maybe-install-tix
5707 maybe-install-tix:
5708 install-tix: installdirs
5709 @r=`${PWD}`; export r; \
5710 s=`cd $(srcdir); ${PWD}`; export s; \
5711 $(SET_LIB_PATH) \
5712 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
5715 .PHONY: configure-libtermcap maybe-configure-libtermcap
5716 maybe-configure-libtermcap:
5717 configure-libtermcap: libtermcap/Makefile
5719 libtermcap/Makefile: config.status
5720 @[ -d libtermcap ] || mkdir libtermcap; \
5721 r=`${PWD}`; export r; \
5722 s=`cd $(srcdir); ${PWD}`; export s; \
5723 CC="$(CC)"; export CC; \
5724 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5725 CXX="$(CXX)"; export CXX; \
5726 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5727 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5728 AR="$(AR)"; export AR; \
5729 AS="$(AS)"; export AS; \
5730 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5731 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5732 LD="$(LD)"; export LD; \
5733 NM="$(NM)"; export NM; \
5734 RANLIB="$(RANLIB)"; export RANLIB; \
5735 WINDRES="$(WINDRES)"; export WINDRES; \
5736 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5737 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5738 fi; \
5739 echo Configuring in libtermcap; \
5740 cd libtermcap || exit 1; \
5741 case $(srcdir) in \
5742 \.) \
5743 srcdiroption="--srcdir=."; \
5744 libsrcdir=".";; \
5745 /* | [A-Za-z]:[\\/]*) \
5746 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
5747 libsrcdir="$$s/libtermcap";; \
5748 *) \
5749 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
5750 libsrcdir="$$s/libtermcap";; \
5751 esac; \
5752 $(SHELL) $${libsrcdir}/configure \
5753 $(HOST_CONFIGARGS) $${srcdiroption} \
5754 || exit 1
5756 .PHONY: all-libtermcap maybe-all-libtermcap
5757 maybe-all-libtermcap:
5758 all-libtermcap: configure-libtermcap
5759 @r=`${PWD}`; export r; \
5760 s=`cd $(srcdir); ${PWD}`; export s; \
5761 $(SET_LIB_PATH) \
5762 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
5765 .PHONY: check-libtermcap
5766 check-libtermcap:
5770 .PHONY: install-libtermcap maybe-install-libtermcap
5771 maybe-install-libtermcap:
5772 install-libtermcap: installdirs
5773 @r=`${PWD}`; export r; \
5774 s=`cd $(srcdir); ${PWD}`; export s; \
5775 $(SET_LIB_PATH) \
5776 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
5779 .PHONY: configure-utils maybe-configure-utils
5780 maybe-configure-utils:
5781 configure-utils: utils/Makefile
5783 utils/Makefile: config.status
5784 @[ -d utils ] || mkdir utils; \
5785 r=`${PWD}`; export r; \
5786 s=`cd $(srcdir); ${PWD}`; export s; \
5787 CC="$(CC)"; export CC; \
5788 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5789 CXX="$(CXX)"; export CXX; \
5790 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5791 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
5792 AR="$(AR)"; export AR; \
5793 AS="$(AS)"; export AS; \
5794 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5795 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5796 LD="$(LD)"; export LD; \
5797 NM="$(NM)"; export NM; \
5798 RANLIB="$(RANLIB)"; export RANLIB; \
5799 WINDRES="$(WINDRES)"; export WINDRES; \
5800 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5801 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5802 fi; \
5803 echo Configuring in utils; \
5804 cd utils || exit 1; \
5805 case $(srcdir) in \
5806 \.) \
5807 srcdiroption="--srcdir=."; \
5808 libsrcdir=".";; \
5809 /* | [A-Za-z]:[\\/]*) \
5810 srcdiroption="--srcdir=$(srcdir)/utils"; \
5811 libsrcdir="$$s/utils";; \
5812 *) \
5813 srcdiroption="--srcdir=../$(srcdir)/utils"; \
5814 libsrcdir="$$s/utils";; \
5815 esac; \
5816 $(SHELL) $${libsrcdir}/configure \
5817 $(HOST_CONFIGARGS) $${srcdiroption} \
5818 || exit 1
5820 .PHONY: all-utils maybe-all-utils
5821 maybe-all-utils:
5822 all-utils: configure-utils
5823 @r=`${PWD}`; export r; \
5824 s=`cd $(srcdir); ${PWD}`; export s; \
5825 $(SET_LIB_PATH) \
5826 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
5829 .PHONY: check-utils
5830 check-utils:
5834 .PHONY: install-utils maybe-install-utils
5835 maybe-install-utils:
5836 install-utils: installdirs
5837 @r=`${PWD}`; export r; \
5838 s=`cd $(srcdir); ${PWD}`; export s; \
5839 $(SET_LIB_PATH) \
5840 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
5844 # ---------------------------------------
5845 # Modules which run on the target machine
5846 # ---------------------------------------
5848 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
5849 maybe-configure-target-libstdc++-v3:
5850 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/Makefile
5852 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5853 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
5854 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5855 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5857 $(TARGET_SUBDIR)/libstdc++-v3/Makefile: config.status $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
5858 @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\
5859 r=`${PWD}`; export r; \
5860 s=`cd $(srcdir); ${PWD}`; export s; \
5861 $(SET_LIB_PATH) \
5862 AR="$(AR_FOR_TARGET)"; export AR; \
5863 AS="$(AS_FOR_TARGET)"; export AS; \
5864 CC="$(CC_FOR_TARGET)"; export CC; \
5865 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5866 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
5867 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
5868 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5869 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5870 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5871 LD="$(LD_FOR_TARGET)"; export LD; \
5872 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5873 NM="$(NM_FOR_TARGET)"; export NM; \
5874 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5875 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5876 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
5877 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
5878 case $(srcdir) in \
5879 /* | [A-Za-z]:[\\/]*) \
5880 topdir=$(srcdir) ;; \
5881 *) \
5882 case "$(TARGET_SUBDIR)" in \
5883 .) topdir="../$(srcdir)" ;; \
5884 *) topdir="../../$(srcdir)" ;; \
5885 esac ;; \
5886 esac; \
5887 if [ "$(srcdir)" = "." ] ; then \
5888 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5889 if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \
5890 if [ -f Makefile ]; then \
5891 if $(MAKE) distclean; then \
5892 true; \
5893 else \
5894 exit 1; \
5895 fi; \
5896 else \
5897 true; \
5898 fi; \
5899 else \
5900 exit 1; \
5901 fi; \
5902 else \
5903 true; \
5904 fi; \
5905 srcdiroption="--srcdir=."; \
5906 libsrcdir="."; \
5907 else \
5908 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
5909 libsrcdir="$$s/libstdc++-v3"; \
5910 fi; \
5911 rm -f no-such-file || : ; \
5912 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
5913 $(TARGET_CONFIGARGS) $${srcdiroption} \
5914 --with-target-subdir="$(TARGET_SUBDIR)" \
5915 || exit 1
5917 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
5918 maybe-all-target-libstdc++-v3:
5919 all-target-libstdc++-v3: configure-target-libstdc++-v3
5920 @r=`${PWD}`; export r; \
5921 s=`cd $(srcdir); ${PWD}`; export s; \
5922 $(SET_LIB_PATH) \
5923 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5924 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
5926 .PHONY: check-target-libstdc++-v3
5927 check-target-libstdc++-v3:
5928 @r=`${PWD}`; export r; \
5929 s=`cd $(srcdir); ${PWD}`; export s; \
5930 $(SET_LIB_PATH) \
5931 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5932 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
5935 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
5936 maybe-install-target-libstdc++-v3:
5937 install-target-libstdc++-v3: installdirs
5938 @r=`${PWD}`; export r; \
5939 s=`cd $(srcdir); ${PWD}`; export s; \
5940 $(SET_LIB_PATH) \
5941 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
5942 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
5945 .PHONY: configure-target-newlib maybe-configure-target-newlib
5946 maybe-configure-target-newlib:
5947 configure-target-newlib: $(TARGET_SUBDIR)/newlib/Makefile
5949 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
5950 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
5951 @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
5952 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
5954 $(TARGET_SUBDIR)/newlib/Makefile: config.status $(TARGET_SUBDIR)/newlib/multilib.out
5955 @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\
5956 r=`${PWD}`; export r; \
5957 s=`cd $(srcdir); ${PWD}`; export s; \
5958 $(SET_LIB_PATH) \
5959 AR="$(AR_FOR_TARGET)"; export AR; \
5960 AS="$(AS_FOR_TARGET)"; export AS; \
5961 CC="$(CC_FOR_TARGET)"; export CC; \
5962 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
5963 CXX="$(CXX_FOR_TARGET)"; export CXX; \
5964 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
5965 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
5966 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
5967 LD="$(LD_FOR_TARGET)"; export LD; \
5968 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
5969 NM="$(NM_FOR_TARGET)"; export NM; \
5970 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
5971 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
5972 echo Configuring in $(TARGET_SUBDIR)/newlib; \
5973 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
5974 case $(srcdir) in \
5975 /* | [A-Za-z]:[\\/]*) \
5976 topdir=$(srcdir) ;; \
5977 *) \
5978 case "$(TARGET_SUBDIR)" in \
5979 .) topdir="../$(srcdir)" ;; \
5980 *) topdir="../../$(srcdir)" ;; \
5981 esac ;; \
5982 esac; \
5983 if [ "$(srcdir)" = "." ] ; then \
5984 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
5985 if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \
5986 if [ -f Makefile ]; then \
5987 if $(MAKE) distclean; then \
5988 true; \
5989 else \
5990 exit 1; \
5991 fi; \
5992 else \
5993 true; \
5994 fi; \
5995 else \
5996 exit 1; \
5997 fi; \
5998 else \
5999 true; \
6000 fi; \
6001 srcdiroption="--srcdir=."; \
6002 libsrcdir="."; \
6003 else \
6004 srcdiroption="--srcdir=$${topdir}/newlib"; \
6005 libsrcdir="$$s/newlib"; \
6006 fi; \
6007 rm -f no-such-file || : ; \
6008 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6009 $(TARGET_CONFIGARGS) $${srcdiroption} \
6010 --with-target-subdir="$(TARGET_SUBDIR)" \
6011 || exit 1
6013 .PHONY: all-target-newlib maybe-all-target-newlib
6014 maybe-all-target-newlib:
6015 all-target-newlib: configure-target-newlib
6016 @r=`${PWD}`; export r; \
6017 s=`cd $(srcdir); ${PWD}`; export s; \
6018 $(SET_LIB_PATH) \
6019 (cd $(TARGET_SUBDIR)/newlib && \
6020 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6022 .PHONY: check-target-newlib
6023 check-target-newlib:
6024 @r=`${PWD}`; export r; \
6025 s=`cd $(srcdir); ${PWD}`; export s; \
6026 $(SET_LIB_PATH) \
6027 (cd $(TARGET_SUBDIR)/newlib && \
6028 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6031 .PHONY: install-target-newlib maybe-install-target-newlib
6032 maybe-install-target-newlib:
6033 install-target-newlib: installdirs
6034 @r=`${PWD}`; export r; \
6035 s=`cd $(srcdir); ${PWD}`; export s; \
6036 $(SET_LIB_PATH) \
6037 (cd $(TARGET_SUBDIR)/newlib && \
6038 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6041 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
6042 maybe-configure-target-libf2c:
6043 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/Makefile
6045 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6046 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
6047 @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
6048 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
6050 $(TARGET_SUBDIR)/libf2c/Makefile: config.status $(TARGET_SUBDIR)/libf2c/multilib.out
6051 @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\
6052 r=`${PWD}`; export r; \
6053 s=`cd $(srcdir); ${PWD}`; export s; \
6054 $(SET_LIB_PATH) \
6055 AR="$(AR_FOR_TARGET)"; export AR; \
6056 AS="$(AS_FOR_TARGET)"; export AS; \
6057 CC="$(CC_FOR_TARGET)"; export CC; \
6058 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6059 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6060 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6061 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6062 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6063 LD="$(LD_FOR_TARGET)"; export LD; \
6064 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6065 NM="$(NM_FOR_TARGET)"; export NM; \
6066 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6067 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6068 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
6069 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
6070 case $(srcdir) in \
6071 /* | [A-Za-z]:[\\/]*) \
6072 topdir=$(srcdir) ;; \
6073 *) \
6074 case "$(TARGET_SUBDIR)" in \
6075 .) topdir="../$(srcdir)" ;; \
6076 *) topdir="../../$(srcdir)" ;; \
6077 esac ;; \
6078 esac; \
6079 if [ "$(srcdir)" = "." ] ; then \
6080 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6081 if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \
6082 if [ -f Makefile ]; then \
6083 if $(MAKE) distclean; then \
6084 true; \
6085 else \
6086 exit 1; \
6087 fi; \
6088 else \
6089 true; \
6090 fi; \
6091 else \
6092 exit 1; \
6093 fi; \
6094 else \
6095 true; \
6096 fi; \
6097 srcdiroption="--srcdir=."; \
6098 libsrcdir="."; \
6099 else \
6100 srcdiroption="--srcdir=$${topdir}/libf2c"; \
6101 libsrcdir="$$s/libf2c"; \
6102 fi; \
6103 rm -f no-such-file || : ; \
6104 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6105 $(TARGET_CONFIGARGS) $${srcdiroption} \
6106 --with-target-subdir="$(TARGET_SUBDIR)" \
6107 || exit 1
6109 .PHONY: all-target-libf2c maybe-all-target-libf2c
6110 maybe-all-target-libf2c:
6111 all-target-libf2c: configure-target-libf2c
6112 @r=`${PWD}`; export r; \
6113 s=`cd $(srcdir); ${PWD}`; export s; \
6114 $(SET_LIB_PATH) \
6115 (cd $(TARGET_SUBDIR)/libf2c && \
6116 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6118 .PHONY: check-target-libf2c
6119 check-target-libf2c:
6120 @r=`${PWD}`; export r; \
6121 s=`cd $(srcdir); ${PWD}`; export s; \
6122 $(SET_LIB_PATH) \
6123 (cd $(TARGET_SUBDIR)/libf2c && \
6124 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6127 .PHONY: install-target-libf2c maybe-install-target-libf2c
6128 maybe-install-target-libf2c:
6129 install-target-libf2c: installdirs
6130 @r=`${PWD}`; export r; \
6131 s=`cd $(srcdir); ${PWD}`; export s; \
6132 $(SET_LIB_PATH) \
6133 (cd $(TARGET_SUBDIR)/libf2c && \
6134 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6137 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
6138 maybe-configure-target-libobjc:
6139 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/Makefile
6141 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6142 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
6143 @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
6144 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
6146 $(TARGET_SUBDIR)/libobjc/Makefile: config.status $(TARGET_SUBDIR)/libobjc/multilib.out
6147 @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\
6148 r=`${PWD}`; export r; \
6149 s=`cd $(srcdir); ${PWD}`; export s; \
6150 $(SET_LIB_PATH) \
6151 AR="$(AR_FOR_TARGET)"; export AR; \
6152 AS="$(AS_FOR_TARGET)"; export AS; \
6153 CC="$(CC_FOR_TARGET)"; export CC; \
6154 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6155 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6156 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6157 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6158 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6159 LD="$(LD_FOR_TARGET)"; export LD; \
6160 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6161 NM="$(NM_FOR_TARGET)"; export NM; \
6162 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6163 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6164 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
6165 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
6166 case $(srcdir) in \
6167 /* | [A-Za-z]:[\\/]*) \
6168 topdir=$(srcdir) ;; \
6169 *) \
6170 case "$(TARGET_SUBDIR)" in \
6171 .) topdir="../$(srcdir)" ;; \
6172 *) topdir="../../$(srcdir)" ;; \
6173 esac ;; \
6174 esac; \
6175 if [ "$(srcdir)" = "." ] ; then \
6176 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6177 if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \
6178 if [ -f Makefile ]; then \
6179 if $(MAKE) distclean; then \
6180 true; \
6181 else \
6182 exit 1; \
6183 fi; \
6184 else \
6185 true; \
6186 fi; \
6187 else \
6188 exit 1; \
6189 fi; \
6190 else \
6191 true; \
6192 fi; \
6193 srcdiroption="--srcdir=."; \
6194 libsrcdir="."; \
6195 else \
6196 srcdiroption="--srcdir=$${topdir}/libobjc"; \
6197 libsrcdir="$$s/libobjc"; \
6198 fi; \
6199 rm -f no-such-file || : ; \
6200 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6201 $(TARGET_CONFIGARGS) $${srcdiroption} \
6202 --with-target-subdir="$(TARGET_SUBDIR)" \
6203 || exit 1
6205 .PHONY: all-target-libobjc maybe-all-target-libobjc
6206 maybe-all-target-libobjc:
6207 all-target-libobjc: configure-target-libobjc
6208 @r=`${PWD}`; export r; \
6209 s=`cd $(srcdir); ${PWD}`; export s; \
6210 $(SET_LIB_PATH) \
6211 (cd $(TARGET_SUBDIR)/libobjc && \
6212 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6214 .PHONY: check-target-libobjc
6215 check-target-libobjc:
6216 @r=`${PWD}`; export r; \
6217 s=`cd $(srcdir); ${PWD}`; export s; \
6218 $(SET_LIB_PATH) \
6219 (cd $(TARGET_SUBDIR)/libobjc && \
6220 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6223 .PHONY: install-target-libobjc maybe-install-target-libobjc
6224 maybe-install-target-libobjc:
6225 install-target-libobjc: installdirs
6226 @r=`${PWD}`; export r; \
6227 s=`cd $(srcdir); ${PWD}`; export s; \
6228 $(SET_LIB_PATH) \
6229 (cd $(TARGET_SUBDIR)/libobjc && \
6230 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6233 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
6234 maybe-configure-target-libtermcap:
6235 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/Makefile
6237 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6238 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
6239 @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
6240 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
6242 $(TARGET_SUBDIR)/libtermcap/Makefile: config.status $(TARGET_SUBDIR)/libtermcap/multilib.out
6243 @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\
6244 r=`${PWD}`; export r; \
6245 s=`cd $(srcdir); ${PWD}`; export s; \
6246 $(SET_LIB_PATH) \
6247 AR="$(AR_FOR_TARGET)"; export AR; \
6248 AS="$(AS_FOR_TARGET)"; export AS; \
6249 CC="$(CC_FOR_TARGET)"; export CC; \
6250 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6251 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6252 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6253 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6254 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6255 LD="$(LD_FOR_TARGET)"; export LD; \
6256 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6257 NM="$(NM_FOR_TARGET)"; export NM; \
6258 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6259 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6260 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
6261 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
6262 case $(srcdir) in \
6263 /* | [A-Za-z]:[\\/]*) \
6264 topdir=$(srcdir) ;; \
6265 *) \
6266 case "$(TARGET_SUBDIR)" in \
6267 .) topdir="../$(srcdir)" ;; \
6268 *) topdir="../../$(srcdir)" ;; \
6269 esac ;; \
6270 esac; \
6271 if [ "$(srcdir)" = "." ] ; then \
6272 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6273 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
6274 if [ -f Makefile ]; then \
6275 if $(MAKE) distclean; then \
6276 true; \
6277 else \
6278 exit 1; \
6279 fi; \
6280 else \
6281 true; \
6282 fi; \
6283 else \
6284 exit 1; \
6285 fi; \
6286 else \
6287 true; \
6288 fi; \
6289 srcdiroption="--srcdir=."; \
6290 libsrcdir="."; \
6291 else \
6292 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
6293 libsrcdir="$$s/libtermcap"; \
6294 fi; \
6295 rm -f no-such-file || : ; \
6296 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6297 $(TARGET_CONFIGARGS) $${srcdiroption} \
6298 --with-target-subdir="$(TARGET_SUBDIR)" \
6299 || exit 1
6301 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
6302 maybe-all-target-libtermcap:
6303 all-target-libtermcap: configure-target-libtermcap
6304 @r=`${PWD}`; export r; \
6305 s=`cd $(srcdir); ${PWD}`; export s; \
6306 $(SET_LIB_PATH) \
6307 (cd $(TARGET_SUBDIR)/libtermcap && \
6308 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6310 # Dummy target for uncheckable module.
6311 .PHONY: check-target-libtermcap
6312 check-target-libtermcap:
6315 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
6316 maybe-install-target-libtermcap:
6317 install-target-libtermcap: installdirs
6318 @r=`${PWD}`; export r; \
6319 s=`cd $(srcdir); ${PWD}`; export s; \
6320 $(SET_LIB_PATH) \
6321 (cd $(TARGET_SUBDIR)/libtermcap && \
6322 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6325 .PHONY: configure-target-winsup maybe-configure-target-winsup
6326 maybe-configure-target-winsup:
6327 configure-target-winsup: $(TARGET_SUBDIR)/winsup/Makefile
6329 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6330 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
6331 @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
6332 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
6334 $(TARGET_SUBDIR)/winsup/Makefile: config.status $(TARGET_SUBDIR)/winsup/multilib.out
6335 @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\
6336 r=`${PWD}`; export r; \
6337 s=`cd $(srcdir); ${PWD}`; export s; \
6338 $(SET_LIB_PATH) \
6339 AR="$(AR_FOR_TARGET)"; export AR; \
6340 AS="$(AS_FOR_TARGET)"; export AS; \
6341 CC="$(CC_FOR_TARGET)"; export CC; \
6342 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6343 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6344 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6345 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6346 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6347 LD="$(LD_FOR_TARGET)"; export LD; \
6348 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6349 NM="$(NM_FOR_TARGET)"; export NM; \
6350 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6351 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6352 echo Configuring in $(TARGET_SUBDIR)/winsup; \
6353 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
6354 case $(srcdir) in \
6355 /* | [A-Za-z]:[\\/]*) \
6356 topdir=$(srcdir) ;; \
6357 *) \
6358 case "$(TARGET_SUBDIR)" in \
6359 .) topdir="../$(srcdir)" ;; \
6360 *) topdir="../../$(srcdir)" ;; \
6361 esac ;; \
6362 esac; \
6363 if [ "$(srcdir)" = "." ] ; then \
6364 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6365 if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \
6366 if [ -f Makefile ]; then \
6367 if $(MAKE) distclean; then \
6368 true; \
6369 else \
6370 exit 1; \
6371 fi; \
6372 else \
6373 true; \
6374 fi; \
6375 else \
6376 exit 1; \
6377 fi; \
6378 else \
6379 true; \
6380 fi; \
6381 srcdiroption="--srcdir=."; \
6382 libsrcdir="."; \
6383 else \
6384 srcdiroption="--srcdir=$${topdir}/winsup"; \
6385 libsrcdir="$$s/winsup"; \
6386 fi; \
6387 rm -f no-such-file || : ; \
6388 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6389 $(TARGET_CONFIGARGS) $${srcdiroption} \
6390 --with-target-subdir="$(TARGET_SUBDIR)" \
6391 || exit 1
6393 .PHONY: all-target-winsup maybe-all-target-winsup
6394 maybe-all-target-winsup:
6395 all-target-winsup: configure-target-winsup
6396 @r=`${PWD}`; export r; \
6397 s=`cd $(srcdir); ${PWD}`; export s; \
6398 $(SET_LIB_PATH) \
6399 (cd $(TARGET_SUBDIR)/winsup && \
6400 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6402 .PHONY: check-target-winsup
6403 check-target-winsup:
6404 @r=`${PWD}`; export r; \
6405 s=`cd $(srcdir); ${PWD}`; export s; \
6406 $(SET_LIB_PATH) \
6407 (cd $(TARGET_SUBDIR)/winsup && \
6408 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6411 .PHONY: install-target-winsup maybe-install-target-winsup
6412 maybe-install-target-winsup:
6413 install-target-winsup: installdirs
6414 @r=`${PWD}`; export r; \
6415 s=`cd $(srcdir); ${PWD}`; export s; \
6416 $(SET_LIB_PATH) \
6417 (cd $(TARGET_SUBDIR)/winsup && \
6418 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6421 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
6422 maybe-configure-target-libgloss:
6423 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/Makefile
6425 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6426 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
6427 @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
6428 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
6430 $(TARGET_SUBDIR)/libgloss/Makefile: config.status $(TARGET_SUBDIR)/libgloss/multilib.out
6431 @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\
6432 r=`${PWD}`; export r; \
6433 s=`cd $(srcdir); ${PWD}`; export s; \
6434 $(SET_LIB_PATH) \
6435 AR="$(AR_FOR_TARGET)"; export AR; \
6436 AS="$(AS_FOR_TARGET)"; export AS; \
6437 CC="$(CC_FOR_TARGET)"; export CC; \
6438 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6439 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6440 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6441 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6442 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6443 LD="$(LD_FOR_TARGET)"; export LD; \
6444 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6445 NM="$(NM_FOR_TARGET)"; export NM; \
6446 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6447 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6448 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
6449 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
6450 case $(srcdir) in \
6451 /* | [A-Za-z]:[\\/]*) \
6452 topdir=$(srcdir) ;; \
6453 *) \
6454 case "$(TARGET_SUBDIR)" in \
6455 .) topdir="../$(srcdir)" ;; \
6456 *) topdir="../../$(srcdir)" ;; \
6457 esac ;; \
6458 esac; \
6459 if [ "$(srcdir)" = "." ] ; then \
6460 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6461 if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \
6462 if [ -f Makefile ]; then \
6463 if $(MAKE) distclean; then \
6464 true; \
6465 else \
6466 exit 1; \
6467 fi; \
6468 else \
6469 true; \
6470 fi; \
6471 else \
6472 exit 1; \
6473 fi; \
6474 else \
6475 true; \
6476 fi; \
6477 srcdiroption="--srcdir=."; \
6478 libsrcdir="."; \
6479 else \
6480 srcdiroption="--srcdir=$${topdir}/libgloss"; \
6481 libsrcdir="$$s/libgloss"; \
6482 fi; \
6483 rm -f no-such-file || : ; \
6484 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6485 $(TARGET_CONFIGARGS) $${srcdiroption} \
6486 --with-target-subdir="$(TARGET_SUBDIR)" \
6487 || exit 1
6489 .PHONY: all-target-libgloss maybe-all-target-libgloss
6490 maybe-all-target-libgloss:
6491 all-target-libgloss: configure-target-libgloss
6492 @r=`${PWD}`; export r; \
6493 s=`cd $(srcdir); ${PWD}`; export s; \
6494 $(SET_LIB_PATH) \
6495 (cd $(TARGET_SUBDIR)/libgloss && \
6496 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6498 # Dummy target for uncheckable module.
6499 .PHONY: check-target-libgloss
6500 check-target-libgloss:
6503 .PHONY: install-target-libgloss maybe-install-target-libgloss
6504 maybe-install-target-libgloss:
6505 install-target-libgloss: installdirs
6506 @r=`${PWD}`; export r; \
6507 s=`cd $(srcdir); ${PWD}`; export s; \
6508 $(SET_LIB_PATH) \
6509 (cd $(TARGET_SUBDIR)/libgloss && \
6510 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6513 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
6514 maybe-configure-target-libiberty:
6515 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/Makefile
6517 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6518 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
6519 @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
6520 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
6522 $(TARGET_SUBDIR)/libiberty/Makefile: config.status $(TARGET_SUBDIR)/libiberty/multilib.out
6523 @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\
6524 r=`${PWD}`; export r; \
6525 s=`cd $(srcdir); ${PWD}`; export s; \
6526 $(SET_LIB_PATH) \
6527 AR="$(AR_FOR_TARGET)"; export AR; \
6528 AS="$(AS_FOR_TARGET)"; export AS; \
6529 CC="$(CC_FOR_TARGET)"; export CC; \
6530 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6531 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6532 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6533 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6534 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6535 LD="$(LD_FOR_TARGET)"; export LD; \
6536 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6537 NM="$(NM_FOR_TARGET)"; export NM; \
6538 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6539 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6540 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
6541 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
6542 case $(srcdir) in \
6543 /* | [A-Za-z]:[\\/]*) \
6544 topdir=$(srcdir) ;; \
6545 *) \
6546 case "$(TARGET_SUBDIR)" in \
6547 .) topdir="../$(srcdir)" ;; \
6548 *) topdir="../../$(srcdir)" ;; \
6549 esac ;; \
6550 esac; \
6551 if [ "$(srcdir)" = "." ] ; then \
6552 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6553 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
6554 if [ -f Makefile ]; then \
6555 if $(MAKE) distclean; then \
6556 true; \
6557 else \
6558 exit 1; \
6559 fi; \
6560 else \
6561 true; \
6562 fi; \
6563 else \
6564 exit 1; \
6565 fi; \
6566 else \
6567 true; \
6568 fi; \
6569 srcdiroption="--srcdir=."; \
6570 libsrcdir="."; \
6571 else \
6572 srcdiroption="--srcdir=$${topdir}/libiberty"; \
6573 libsrcdir="$$s/libiberty"; \
6574 fi; \
6575 rm -f no-such-file || : ; \
6576 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6577 $(TARGET_CONFIGARGS) $${srcdiroption} \
6578 --with-target-subdir="$(TARGET_SUBDIR)" \
6579 || exit 1
6581 .PHONY: all-target-libiberty maybe-all-target-libiberty
6582 maybe-all-target-libiberty:
6583 all-target-libiberty: configure-target-libiberty
6584 @r=`${PWD}`; export r; \
6585 s=`cd $(srcdir); ${PWD}`; export s; \
6586 $(SET_LIB_PATH) \
6587 (cd $(TARGET_SUBDIR)/libiberty && \
6588 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6590 .PHONY: check-target-libiberty
6591 check-target-libiberty:
6592 @r=`${PWD}`; export r; \
6593 s=`cd $(srcdir); ${PWD}`; export s; \
6594 $(SET_LIB_PATH) \
6595 (cd $(TARGET_SUBDIR)/libiberty && \
6596 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599 .PHONY: install-target-libiberty maybe-install-target-libiberty
6600 maybe-install-target-libiberty:
6601 install-target-libiberty: installdirs
6602 @r=`${PWD}`; export r; \
6603 s=`cd $(srcdir); ${PWD}`; export s; \
6604 $(SET_LIB_PATH) \
6605 (cd $(TARGET_SUBDIR)/libiberty && \
6606 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6609 .PHONY: configure-target-gperf maybe-configure-target-gperf
6610 maybe-configure-target-gperf:
6611 configure-target-gperf: $(TARGET_SUBDIR)/gperf/Makefile
6613 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6614 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
6615 @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
6616 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
6618 $(TARGET_SUBDIR)/gperf/Makefile: config.status $(TARGET_SUBDIR)/gperf/multilib.out
6619 @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\
6620 r=`${PWD}`; export r; \
6621 s=`cd $(srcdir); ${PWD}`; export s; \
6622 $(SET_LIB_PATH) \
6623 AR="$(AR_FOR_TARGET)"; export AR; \
6624 AS="$(AS_FOR_TARGET)"; export AS; \
6625 CC="$(CC_FOR_TARGET)"; export CC; \
6626 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6627 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6628 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6629 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6630 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6631 LD="$(LD_FOR_TARGET)"; export LD; \
6632 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6633 NM="$(NM_FOR_TARGET)"; export NM; \
6634 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6635 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6636 echo Configuring in $(TARGET_SUBDIR)/gperf; \
6637 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
6638 case $(srcdir) in \
6639 /* | [A-Za-z]:[\\/]*) \
6640 topdir=$(srcdir) ;; \
6641 *) \
6642 case "$(TARGET_SUBDIR)" in \
6643 .) topdir="../$(srcdir)" ;; \
6644 *) topdir="../../$(srcdir)" ;; \
6645 esac ;; \
6646 esac; \
6647 if [ "$(srcdir)" = "." ] ; then \
6648 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6649 if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \
6650 if [ -f Makefile ]; then \
6651 if $(MAKE) distclean; then \
6652 true; \
6653 else \
6654 exit 1; \
6655 fi; \
6656 else \
6657 true; \
6658 fi; \
6659 else \
6660 exit 1; \
6661 fi; \
6662 else \
6663 true; \
6664 fi; \
6665 srcdiroption="--srcdir=."; \
6666 libsrcdir="."; \
6667 else \
6668 srcdiroption="--srcdir=$${topdir}/gperf"; \
6669 libsrcdir="$$s/gperf"; \
6670 fi; \
6671 rm -f no-such-file || : ; \
6672 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6673 $(TARGET_CONFIGARGS) $${srcdiroption} \
6674 --with-target-subdir="$(TARGET_SUBDIR)" \
6675 || exit 1
6677 .PHONY: all-target-gperf maybe-all-target-gperf
6678 maybe-all-target-gperf:
6679 all-target-gperf: configure-target-gperf
6680 @r=`${PWD}`; export r; \
6681 s=`cd $(srcdir); ${PWD}`; export s; \
6682 $(SET_LIB_PATH) \
6683 (cd $(TARGET_SUBDIR)/gperf && \
6684 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6686 .PHONY: check-target-gperf
6687 check-target-gperf:
6688 @r=`${PWD}`; export r; \
6689 s=`cd $(srcdir); ${PWD}`; export s; \
6690 $(SET_LIB_PATH) \
6691 (cd $(TARGET_SUBDIR)/gperf && \
6692 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6695 .PHONY: install-target-gperf maybe-install-target-gperf
6696 maybe-install-target-gperf:
6697 install-target-gperf: installdirs
6698 @r=`${PWD}`; export r; \
6699 s=`cd $(srcdir); ${PWD}`; export s; \
6700 $(SET_LIB_PATH) \
6701 (cd $(TARGET_SUBDIR)/gperf && \
6702 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6705 .PHONY: configure-target-examples maybe-configure-target-examples
6706 maybe-configure-target-examples:
6707 configure-target-examples: $(TARGET_SUBDIR)/examples/Makefile
6709 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6710 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
6711 @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
6712 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
6714 $(TARGET_SUBDIR)/examples/Makefile: config.status $(TARGET_SUBDIR)/examples/multilib.out
6715 @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\
6716 r=`${PWD}`; export r; \
6717 s=`cd $(srcdir); ${PWD}`; export s; \
6718 $(SET_LIB_PATH) \
6719 AR="$(AR_FOR_TARGET)"; export AR; \
6720 AS="$(AS_FOR_TARGET)"; export AS; \
6721 CC="$(CC_FOR_TARGET)"; export CC; \
6722 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6723 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6724 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6725 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6726 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6727 LD="$(LD_FOR_TARGET)"; export LD; \
6728 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6729 NM="$(NM_FOR_TARGET)"; export NM; \
6730 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6731 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6732 echo Configuring in $(TARGET_SUBDIR)/examples; \
6733 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
6734 case $(srcdir) in \
6735 /* | [A-Za-z]:[\\/]*) \
6736 topdir=$(srcdir) ;; \
6737 *) \
6738 case "$(TARGET_SUBDIR)" in \
6739 .) topdir="../$(srcdir)" ;; \
6740 *) topdir="../../$(srcdir)" ;; \
6741 esac ;; \
6742 esac; \
6743 if [ "$(srcdir)" = "." ] ; then \
6744 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6745 if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \
6746 if [ -f Makefile ]; then \
6747 if $(MAKE) distclean; then \
6748 true; \
6749 else \
6750 exit 1; \
6751 fi; \
6752 else \
6753 true; \
6754 fi; \
6755 else \
6756 exit 1; \
6757 fi; \
6758 else \
6759 true; \
6760 fi; \
6761 srcdiroption="--srcdir=."; \
6762 libsrcdir="."; \
6763 else \
6764 srcdiroption="--srcdir=$${topdir}/examples"; \
6765 libsrcdir="$$s/examples"; \
6766 fi; \
6767 rm -f no-such-file || : ; \
6768 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6769 $(TARGET_CONFIGARGS) $${srcdiroption} \
6770 --with-target-subdir="$(TARGET_SUBDIR)" \
6771 || exit 1
6773 .PHONY: all-target-examples maybe-all-target-examples
6774 maybe-all-target-examples:
6775 all-target-examples: configure-target-examples
6776 @r=`${PWD}`; export r; \
6777 s=`cd $(srcdir); ${PWD}`; export s; \
6778 $(SET_LIB_PATH) \
6779 (cd $(TARGET_SUBDIR)/examples && \
6780 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6782 # Dummy target for uncheckable module.
6783 .PHONY: check-target-examples
6784 check-target-examples:
6787 .PHONY: install-target-examples maybe-install-target-examples
6788 maybe-install-target-examples:
6789 # Dummy target for uninstallable.
6790 install-target-examples:
6793 .PHONY: configure-target-libffi maybe-configure-target-libffi
6794 maybe-configure-target-libffi:
6795 configure-target-libffi: $(TARGET_SUBDIR)/libffi/Makefile
6797 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6798 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
6799 @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
6800 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
6802 $(TARGET_SUBDIR)/libffi/Makefile: config.status $(TARGET_SUBDIR)/libffi/multilib.out
6803 @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\
6804 r=`${PWD}`; export r; \
6805 s=`cd $(srcdir); ${PWD}`; export s; \
6806 $(SET_LIB_PATH) \
6807 AR="$(AR_FOR_TARGET)"; export AR; \
6808 AS="$(AS_FOR_TARGET)"; export AS; \
6809 CC="$(CC_FOR_TARGET)"; export CC; \
6810 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6811 CXX="$(CXX_FOR_TARGET)"; export CXX; \
6812 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6813 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6814 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6815 LD="$(LD_FOR_TARGET)"; export LD; \
6816 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6817 NM="$(NM_FOR_TARGET)"; export NM; \
6818 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6819 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6820 echo Configuring in $(TARGET_SUBDIR)/libffi; \
6821 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
6822 case $(srcdir) in \
6823 /* | [A-Za-z]:[\\/]*) \
6824 topdir=$(srcdir) ;; \
6825 *) \
6826 case "$(TARGET_SUBDIR)" in \
6827 .) topdir="../$(srcdir)" ;; \
6828 *) topdir="../../$(srcdir)" ;; \
6829 esac ;; \
6830 esac; \
6831 if [ "$(srcdir)" = "." ] ; then \
6832 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6833 if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \
6834 if [ -f Makefile ]; then \
6835 if $(MAKE) distclean; then \
6836 true; \
6837 else \
6838 exit 1; \
6839 fi; \
6840 else \
6841 true; \
6842 fi; \
6843 else \
6844 exit 1; \
6845 fi; \
6846 else \
6847 true; \
6848 fi; \
6849 srcdiroption="--srcdir=."; \
6850 libsrcdir="."; \
6851 else \
6852 srcdiroption="--srcdir=$${topdir}/libffi"; \
6853 libsrcdir="$$s/libffi"; \
6854 fi; \
6855 rm -f no-such-file || : ; \
6856 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6857 $(TARGET_CONFIGARGS) $${srcdiroption} \
6858 --with-target-subdir="$(TARGET_SUBDIR)" \
6859 || exit 1
6861 .PHONY: all-target-libffi maybe-all-target-libffi
6862 maybe-all-target-libffi:
6863 all-target-libffi: configure-target-libffi
6864 @r=`${PWD}`; export r; \
6865 s=`cd $(srcdir); ${PWD}`; export s; \
6866 $(SET_LIB_PATH) \
6867 (cd $(TARGET_SUBDIR)/libffi && \
6868 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
6870 .PHONY: check-target-libffi
6871 check-target-libffi:
6872 @r=`${PWD}`; export r; \
6873 s=`cd $(srcdir); ${PWD}`; export s; \
6874 $(SET_LIB_PATH) \
6875 (cd $(TARGET_SUBDIR)/libffi && \
6876 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6879 .PHONY: install-target-libffi maybe-install-target-libffi
6880 maybe-install-target-libffi:
6881 # Dummy target for uninstallable.
6882 install-target-libffi:
6885 .PHONY: configure-target-libjava maybe-configure-target-libjava
6886 maybe-configure-target-libjava:
6887 configure-target-libjava: $(TARGET_SUBDIR)/libjava/Makefile
6889 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6890 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
6891 @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
6892 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
6894 $(TARGET_SUBDIR)/libjava/Makefile: config.status $(TARGET_SUBDIR)/libjava/multilib.out
6895 @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\
6896 r=`${PWD}`; export r; \
6897 s=`cd $(srcdir); ${PWD}`; export s; \
6898 $(SET_LIB_PATH) \
6899 AR="$(AR_FOR_TARGET)"; export AR; \
6900 AS="$(AS_FOR_TARGET)"; export AS; \
6901 CC="$(CC_FOR_TARGET)"; export CC; \
6902 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
6903 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
6904 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
6905 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
6906 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
6907 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
6908 LD="$(LD_FOR_TARGET)"; export LD; \
6909 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
6910 NM="$(NM_FOR_TARGET)"; export NM; \
6911 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
6912 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
6913 echo Configuring in $(TARGET_SUBDIR)/libjava; \
6914 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
6915 case $(srcdir) in \
6916 /* | [A-Za-z]:[\\/]*) \
6917 topdir=$(srcdir) ;; \
6918 *) \
6919 case "$(TARGET_SUBDIR)" in \
6920 .) topdir="../$(srcdir)" ;; \
6921 *) topdir="../../$(srcdir)" ;; \
6922 esac ;; \
6923 esac; \
6924 if [ "$(srcdir)" = "." ] ; then \
6925 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
6926 if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \
6927 if [ -f Makefile ]; then \
6928 if $(MAKE) distclean; then \
6929 true; \
6930 else \
6931 exit 1; \
6932 fi; \
6933 else \
6934 true; \
6935 fi; \
6936 else \
6937 exit 1; \
6938 fi; \
6939 else \
6940 true; \
6941 fi; \
6942 srcdiroption="--srcdir=."; \
6943 libsrcdir="."; \
6944 else \
6945 srcdiroption="--srcdir=$${topdir}/libjava"; \
6946 libsrcdir="$$s/libjava"; \
6947 fi; \
6948 rm -f no-such-file || : ; \
6949 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6950 $(TARGET_CONFIGARGS) $${srcdiroption} \
6951 --with-target-subdir="$(TARGET_SUBDIR)" \
6952 || exit 1
6954 .PHONY: all-target-libjava maybe-all-target-libjava
6955 maybe-all-target-libjava:
6956 all-target-libjava: configure-target-libjava
6957 @r=`${PWD}`; export r; \
6958 s=`cd $(srcdir); ${PWD}`; export s; \
6959 $(SET_LIB_PATH) \
6960 (cd $(TARGET_SUBDIR)/libjava && \
6961 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
6963 .PHONY: check-target-libjava
6964 check-target-libjava:
6965 @r=`${PWD}`; export r; \
6966 s=`cd $(srcdir); ${PWD}`; export s; \
6967 $(SET_LIB_PATH) \
6968 (cd $(TARGET_SUBDIR)/libjava && \
6969 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
6972 .PHONY: install-target-libjava maybe-install-target-libjava
6973 maybe-install-target-libjava:
6974 install-target-libjava: installdirs
6975 @r=`${PWD}`; export r; \
6976 s=`cd $(srcdir); ${PWD}`; export s; \
6977 $(SET_LIB_PATH) \
6978 (cd $(TARGET_SUBDIR)/libjava && \
6979 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6982 .PHONY: configure-target-zlib maybe-configure-target-zlib
6983 maybe-configure-target-zlib:
6984 configure-target-zlib: $(TARGET_SUBDIR)/zlib/Makefile
6986 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
6987 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
6988 @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
6989 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
6991 $(TARGET_SUBDIR)/zlib/Makefile: config.status $(TARGET_SUBDIR)/zlib/multilib.out
6992 @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\
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 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7001 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7002 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7003 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7004 LD="$(LD_FOR_TARGET)"; export LD; \
7005 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7006 NM="$(NM_FOR_TARGET)"; export NM; \
7007 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7008 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7009 echo Configuring in $(TARGET_SUBDIR)/zlib; \
7010 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
7011 case $(srcdir) in \
7012 /* | [A-Za-z]:[\\/]*) \
7013 topdir=$(srcdir) ;; \
7014 *) \
7015 case "$(TARGET_SUBDIR)" in \
7016 .) topdir="../$(srcdir)" ;; \
7017 *) topdir="../../$(srcdir)" ;; \
7018 esac ;; \
7019 esac; \
7020 if [ "$(srcdir)" = "." ] ; then \
7021 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7022 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
7023 if [ -f Makefile ]; then \
7024 if $(MAKE) distclean; then \
7025 true; \
7026 else \
7027 exit 1; \
7028 fi; \
7029 else \
7030 true; \
7031 fi; \
7032 else \
7033 exit 1; \
7034 fi; \
7035 else \
7036 true; \
7037 fi; \
7038 srcdiroption="--srcdir=."; \
7039 libsrcdir="."; \
7040 else \
7041 srcdiroption="--srcdir=$${topdir}/zlib"; \
7042 libsrcdir="$$s/zlib"; \
7043 fi; \
7044 rm -f no-such-file || : ; \
7045 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7046 $(TARGET_CONFIGARGS) $${srcdiroption} \
7047 --with-target-subdir="$(TARGET_SUBDIR)" \
7048 || exit 1
7050 .PHONY: all-target-zlib maybe-all-target-zlib
7051 maybe-all-target-zlib:
7052 all-target-zlib: configure-target-zlib
7053 @r=`${PWD}`; export r; \
7054 s=`cd $(srcdir); ${PWD}`; export s; \
7055 $(SET_LIB_PATH) \
7056 (cd $(TARGET_SUBDIR)/zlib && \
7057 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7059 .PHONY: check-target-zlib
7060 check-target-zlib:
7061 @r=`${PWD}`; export r; \
7062 s=`cd $(srcdir); ${PWD}`; export s; \
7063 $(SET_LIB_PATH) \
7064 (cd $(TARGET_SUBDIR)/zlib && \
7065 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7068 .PHONY: install-target-zlib maybe-install-target-zlib
7069 maybe-install-target-zlib:
7070 install-target-zlib: installdirs
7071 @r=`${PWD}`; export r; \
7072 s=`cd $(srcdir); ${PWD}`; export s; \
7073 $(SET_LIB_PATH) \
7074 (cd $(TARGET_SUBDIR)/zlib && \
7075 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7078 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
7079 maybe-configure-target-boehm-gc:
7080 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/Makefile
7082 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7083 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
7084 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
7085 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
7087 $(TARGET_SUBDIR)/boehm-gc/Makefile: config.status $(TARGET_SUBDIR)/boehm-gc/multilib.out
7088 @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\
7089 r=`${PWD}`; export r; \
7090 s=`cd $(srcdir); ${PWD}`; export s; \
7091 $(SET_LIB_PATH) \
7092 AR="$(AR_FOR_TARGET)"; export AR; \
7093 AS="$(AS_FOR_TARGET)"; export AS; \
7094 CC="$(CC_FOR_TARGET)"; export CC; \
7095 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
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)/boehm-gc; \
7106 cd "$(TARGET_SUBDIR)/boehm-gc" || 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}/boehm-gc "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}/boehm-gc"; \
7138 libsrcdir="$$s/boehm-gc"; \
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-boehm-gc maybe-all-target-boehm-gc
7147 maybe-all-target-boehm-gc:
7148 all-target-boehm-gc: configure-target-boehm-gc
7149 @r=`${PWD}`; export r; \
7150 s=`cd $(srcdir); ${PWD}`; export s; \
7151 $(SET_LIB_PATH) \
7152 (cd $(TARGET_SUBDIR)/boehm-gc && \
7153 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7155 .PHONY: check-target-boehm-gc
7156 check-target-boehm-gc:
7157 @r=`${PWD}`; export r; \
7158 s=`cd $(srcdir); ${PWD}`; export s; \
7159 $(SET_LIB_PATH) \
7160 (cd $(TARGET_SUBDIR)/boehm-gc && \
7161 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7164 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
7165 maybe-install-target-boehm-gc:
7166 install-target-boehm-gc: installdirs
7167 @r=`${PWD}`; export r; \
7168 s=`cd $(srcdir); ${PWD}`; export s; \
7169 $(SET_LIB_PATH) \
7170 (cd $(TARGET_SUBDIR)/boehm-gc && \
7171 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7174 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
7175 maybe-configure-target-qthreads:
7176 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/Makefile
7178 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7179 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
7180 @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
7181 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
7183 $(TARGET_SUBDIR)/qthreads/Makefile: config.status $(TARGET_SUBDIR)/qthreads/multilib.out
7184 @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\
7185 r=`${PWD}`; export r; \
7186 s=`cd $(srcdir); ${PWD}`; export s; \
7187 $(SET_LIB_PATH) \
7188 AR="$(AR_FOR_TARGET)"; export AR; \
7189 AS="$(AS_FOR_TARGET)"; export AS; \
7190 CC="$(CC_FOR_TARGET)"; export CC; \
7191 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7192 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7193 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7194 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7195 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7196 LD="$(LD_FOR_TARGET)"; export LD; \
7197 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7198 NM="$(NM_FOR_TARGET)"; export NM; \
7199 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7200 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7201 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
7202 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
7203 case $(srcdir) in \
7204 /* | [A-Za-z]:[\\/]*) \
7205 topdir=$(srcdir) ;; \
7206 *) \
7207 case "$(TARGET_SUBDIR)" in \
7208 .) topdir="../$(srcdir)" ;; \
7209 *) topdir="../../$(srcdir)" ;; \
7210 esac ;; \
7211 esac; \
7212 if [ "$(srcdir)" = "." ] ; then \
7213 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7214 if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \
7215 if [ -f Makefile ]; then \
7216 if $(MAKE) distclean; then \
7217 true; \
7218 else \
7219 exit 1; \
7220 fi; \
7221 else \
7222 true; \
7223 fi; \
7224 else \
7225 exit 1; \
7226 fi; \
7227 else \
7228 true; \
7229 fi; \
7230 srcdiroption="--srcdir=."; \
7231 libsrcdir="."; \
7232 else \
7233 srcdiroption="--srcdir=$${topdir}/qthreads"; \
7234 libsrcdir="$$s/qthreads"; \
7235 fi; \
7236 rm -f no-such-file || : ; \
7237 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7238 $(TARGET_CONFIGARGS) $${srcdiroption} \
7239 --with-target-subdir="$(TARGET_SUBDIR)" \
7240 || exit 1
7242 .PHONY: all-target-qthreads maybe-all-target-qthreads
7243 maybe-all-target-qthreads:
7244 all-target-qthreads: configure-target-qthreads
7245 @r=`${PWD}`; export r; \
7246 s=`cd $(srcdir); ${PWD}`; export s; \
7247 $(SET_LIB_PATH) \
7248 (cd $(TARGET_SUBDIR)/qthreads && \
7249 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7251 .PHONY: check-target-qthreads
7252 check-target-qthreads:
7253 @r=`${PWD}`; export r; \
7254 s=`cd $(srcdir); ${PWD}`; export s; \
7255 $(SET_LIB_PATH) \
7256 (cd $(TARGET_SUBDIR)/qthreads && \
7257 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7260 .PHONY: install-target-qthreads maybe-install-target-qthreads
7261 maybe-install-target-qthreads:
7262 install-target-qthreads: installdirs
7263 @r=`${PWD}`; export r; \
7264 s=`cd $(srcdir); ${PWD}`; export s; \
7265 $(SET_LIB_PATH) \
7266 (cd $(TARGET_SUBDIR)/qthreads && \
7267 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7270 .PHONY: configure-target-rda maybe-configure-target-rda
7271 maybe-configure-target-rda:
7272 configure-target-rda: $(TARGET_SUBDIR)/rda/Makefile
7274 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
7275 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
7276 @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
7277 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
7279 $(TARGET_SUBDIR)/rda/Makefile: config.status $(TARGET_SUBDIR)/rda/multilib.out
7280 @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\
7281 r=`${PWD}`; export r; \
7282 s=`cd $(srcdir); ${PWD}`; export s; \
7283 $(SET_LIB_PATH) \
7284 AR="$(AR_FOR_TARGET)"; export AR; \
7285 AS="$(AS_FOR_TARGET)"; export AS; \
7286 CC="$(CC_FOR_TARGET)"; export CC; \
7287 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
7288 CXX="$(CXX_FOR_TARGET)"; export CXX; \
7289 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
7290 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
7291 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
7292 LD="$(LD_FOR_TARGET)"; export LD; \
7293 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
7294 NM="$(NM_FOR_TARGET)"; export NM; \
7295 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
7296 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
7297 echo Configuring in $(TARGET_SUBDIR)/rda; \
7298 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
7299 case $(srcdir) in \
7300 /* | [A-Za-z]:[\\/]*) \
7301 topdir=$(srcdir) ;; \
7302 *) \
7303 case "$(TARGET_SUBDIR)" in \
7304 .) topdir="../$(srcdir)" ;; \
7305 *) topdir="../../$(srcdir)" ;; \
7306 esac ;; \
7307 esac; \
7308 if [ "$(srcdir)" = "." ] ; then \
7309 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
7310 if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \
7311 if [ -f Makefile ]; then \
7312 if $(MAKE) distclean; then \
7313 true; \
7314 else \
7315 exit 1; \
7316 fi; \
7317 else \
7318 true; \
7319 fi; \
7320 else \
7321 exit 1; \
7322 fi; \
7323 else \
7324 true; \
7325 fi; \
7326 srcdiroption="--srcdir=."; \
7327 libsrcdir="."; \
7328 else \
7329 srcdiroption="--srcdir=$${topdir}/rda"; \
7330 libsrcdir="$$s/rda"; \
7331 fi; \
7332 rm -f no-such-file || : ; \
7333 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
7334 $(TARGET_CONFIGARGS) $${srcdiroption} \
7335 --with-target-subdir="$(TARGET_SUBDIR)" \
7336 || exit 1
7338 .PHONY: all-target-rda maybe-all-target-rda
7339 maybe-all-target-rda:
7340 all-target-rda: configure-target-rda
7341 @r=`${PWD}`; export r; \
7342 s=`cd $(srcdir); ${PWD}`; export s; \
7343 $(SET_LIB_PATH) \
7344 (cd $(TARGET_SUBDIR)/rda && \
7345 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
7347 .PHONY: check-target-rda
7348 check-target-rda:
7349 @r=`${PWD}`; export r; \
7350 s=`cd $(srcdir); ${PWD}`; export s; \
7351 $(SET_LIB_PATH) \
7352 (cd $(TARGET_SUBDIR)/rda && \
7353 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
7356 .PHONY: install-target-rda maybe-install-target-rda
7357 maybe-install-target-rda:
7358 install-target-rda: installdirs
7359 @r=`${PWD}`; export r; \
7360 s=`cd $(srcdir); ${PWD}`; export s; \
7361 $(SET_LIB_PATH) \
7362 (cd $(TARGET_SUBDIR)/rda && \
7363 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
7367 # ----------
7368 # GCC module
7369 # ----------
7371 # Unfortunately, while gcc _should_ be a host module,
7372 # libgcc is a target module, and gen* programs are
7373 # build modules. So GCC is a sort of hybrid.
7375 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
7376 .PHONY: configure-gcc maybe-configure-gcc
7377 maybe-configure-gcc:
7378 configure-gcc: gcc/Makefile
7380 gcc/Makefile: config.status
7381 @[ -d gcc ] || mkdir gcc; \
7382 r=`${PWD}`; export r; \
7383 s=`cd $(srcdir); ${PWD}`; export s; \
7384 CC="$(CC)"; export CC; \
7385 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7386 CXX="$(CXX)"; export CXX; \
7387 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7388 if [ z$(build_canonical) != z$(host_canoncial) ] ; then \
7389 AR="$(AR)"; export AR; \
7390 AS="$(AS)"; export AS; \
7391 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7392 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7393 LD="$(LD)"; export LD; \
7394 NM="$(NM)"; export NM; \
7395 RANLIB="$(RANLIB)"; export RANLIB; \
7396 WINDRES="$(WINDRES)"; export WINDRES; \
7397 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7398 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7399 fi; \
7400 echo Configuring in gcc; \
7401 cd gcc || exit 1; \
7402 case $(srcdir) in \
7403 \.) \
7404 srcdiroption="--srcdir=."; \
7405 libsrcdir=".";; \
7406 /* | [A-Za-z]:[\\/]*) \
7407 srcdiroption="--srcdir=$(srcdir)/gcc"; \
7408 libsrcdir="$$s/gcc";; \
7409 *) \
7410 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
7411 libsrcdir="$$s/gcc";; \
7412 esac; \
7413 $(SHELL) $${libsrcdir}/configure \
7414 $(HOST_CONFIGARGS) $${srcdiroption} \
7415 || exit 1
7417 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
7418 # causes trouble. This wart will be fixed eventually by moving
7419 # the bootstrap behavior to this file.
7420 .PHONY: all-gcc maybe-all-gcc
7421 maybe-all-gcc:
7422 all-gcc: configure-gcc
7423 @if [ -f gcc/stage_last ] ; then \
7424 r=`${PWD}`; export r; \
7425 s=`cd $(srcdir); ${PWD}`; export s; \
7426 $(SET_LIB_PATH) \
7427 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
7428 else \
7429 r=`${PWD}`; export r; \
7430 s=`cd $(srcdir); ${PWD}`; export s; \
7431 $(SET_LIB_PATH) \
7432 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
7435 # Building GCC uses some tools for rebuilding "source" files
7436 # like texinfo, bison/byacc, etc. So we must depend on those.
7438 # While building GCC, it may be necessary to run various target
7439 # programs like the assembler, linker, etc. So we depend on
7440 # those too.
7442 # In theory, on an SMP all those dependencies can be resolved
7443 # in parallel.
7445 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
7446 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc
7447 @r=`${PWD}`; export r; \
7448 s=`cd $(srcdir); ${PWD}`; export s; \
7449 $(SET_LIB_PATH) \
7450 echo "Bootstrapping the compiler"; \
7451 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
7452 @r=`${PWD}`; export r; \
7453 s=`cd $(srcdir); ${PWD}`; export s; \
7454 case "$@" in \
7455 *bootstrap4-lean ) \
7456 msg="Comparing stage3 and stage4 of the compiler"; \
7457 compare=compare3-lean ;; \
7458 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
7459 compare=compare3 ;; \
7460 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
7461 compare=compare-lean ;; \
7462 * ) msg="Comparing stage2 and stage3 of the compiler"; \
7463 compare=compare ;; \
7464 esac; \
7465 $(SET_LIB_PATH) \
7466 echo "$$msg"; \
7467 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
7468 @r=`${PWD}`; export r; \
7469 s=`cd $(srcdir); ${PWD}` ; export s; \
7470 $(SET_LIB_PATH) \
7471 echo "Building runtime libraries"; \
7472 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
7474 .PHONY: cross
7475 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
7476 @r=`${PWD}`; export r; \
7477 s=`cd $(srcdir); ${PWD}`; export s; \
7478 $(SET_LIB_PATH) \
7479 echo "Building the C and C++ compiler"; \
7480 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
7481 @r=`${PWD}`; export r; \
7482 s=`cd $(srcdir); ${PWD}` ; export s; \
7483 $(SET_LIB_PATH) \
7484 echo "Building runtime libraries"; \
7485 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
7486 LANGUAGES="c c++" all
7488 .PHONY: check-gcc
7489 check-gcc:
7490 @if [ -f ./gcc/Makefile ] ; then \
7491 r=`${PWD}`; export r; \
7492 s=`cd $(srcdir); ${PWD}`; export s; \
7493 $(SET_LIB_PATH) \
7494 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
7495 else \
7496 true; \
7499 .PHONY: check-gcc-c++
7500 check-gcc-c++:
7501 @if [ -f ./gcc/Makefile ] ; then \
7502 r=`${PWD}`; export r; \
7503 s=`cd $(srcdir); ${PWD}`; export s; \
7504 $(SET_LIB_PATH) \
7505 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
7506 else \
7507 true; \
7510 .PHONY: check-c++
7511 check-c++: check-target-libstdc++-v3 check-gcc-c++
7513 .PHONY: install-gcc maybe-install-gcc
7514 maybe-install-gcc:
7515 install-gcc:
7516 @if [ -f ./gcc/Makefile ] ; then \
7517 r=`${PWD}`; export r; \
7518 s=`cd $(srcdir); ${PWD}`; export s; \
7519 $(SET_LIB_PATH) \
7520 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7521 else \
7522 true; \
7525 # Install the gcc headers files, but not the fixed include files,
7526 # which Cygnus is not allowed to distribute. This rule is very
7527 # dependent on the workings of the gcc Makefile.in.
7528 .PHONY: gcc-no-fixedincludes
7529 gcc-no-fixedincludes:
7530 @if [ -f ./gcc/Makefile ]; then \
7531 rm -rf gcc/tmp-include; \
7532 mv gcc/include gcc/tmp-include 2>/dev/null; \
7533 mkdir gcc/include; \
7534 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
7535 touch gcc/stmp-fixinc gcc/include/fixed; \
7536 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
7537 r=`${PWD}`; export r; \
7538 s=`cd $(srcdir); ${PWD}` ; export s; \
7539 $(SET_LIB_PATH) \
7540 (cd ./gcc && \
7541 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
7542 rm -rf gcc/include; \
7543 mv gcc/tmp-include gcc/include 2>/dev/null; \
7544 else true; fi
7546 # --------------------------------------
7547 # Dependencies between different modules
7548 # --------------------------------------
7550 # There are two types of dependencies here: 'hard' dependencies, where one
7551 # module simply won't build without the other; and 'soft' dependencies, where
7552 # if the depended-on module is missing, the depending module will do without
7553 # or find a substitute somewhere (perhaps installed). Soft dependencies
7554 # are specified by depending on a 'maybe-' target. If you're not sure,
7555 # it's safer to use a soft dependency.
7557 # Host modules specific to gcc.
7558 # GCC needs to identify certain tools.
7559 configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
7560 all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
7561 # This is a slightly kludgy method of getting dependencies on
7562 # all-build-libiberty correct; it would be better to build it every time.
7563 all-gcc: maybe-all-build-libiberty
7564 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
7566 # Host modules specific to gdb.
7567 # GDB needs to know that the simulator is being built.
7568 configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim
7569 GDB_TK = @GDB_TK@
7570 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)
7571 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
7572 configure-libgui: maybe-configure-tcl maybe-configure-tk
7573 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
7575 # Host modules specific to binutils.
7576 configure-bfd: configure-libiberty
7577 all-bfd: maybe-all-libiberty maybe-all-intl
7578 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
7579 # We put install-opcodes before install-binutils because the installed
7580 # binutils might be on PATH, and they might need the shared opcodes
7581 # library.
7582 install-binutils: maybe-install-opcodes
7583 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
7584 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
7585 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
7586 all-opcodes: maybe-all-bfd maybe-all-libiberty
7588 # Other host modules in the 'src' repository.
7589 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
7590 configure-expect: maybe-configure-tcl maybe-configure-tk
7591 all-expect: maybe-all-tcl maybe-all-tk
7592 configure-itcl: maybe-configure-tcl maybe-configure-tk
7593 all-itcl: maybe-all-tcl maybe-all-tk
7594 # We put install-tcl before install-itcl because itcl wants to run a
7595 # program on installation which uses the Tcl libraries.
7596 install-itcl: maybe-install-tcl
7597 all-sid: maybe-all-tcl maybe-all-tk
7598 install-sid: maybe-install-tcl maybe-install-tk
7599 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
7600 configure-tk: maybe-configure-tcl
7601 all-tk: maybe-all-tcl
7602 configure-tix: maybe-configure-tcl maybe-configure-tk
7603 all-tix: maybe-all-tcl maybe-all-tk
7604 all-texinfo: maybe-all-libiberty
7606 # Other host modules. Warning, these are not well tested.
7607 all-autoconf: maybe-all-m4 maybe-all-texinfo
7608 all-automake: maybe-all-m4 maybe-all-texinfo
7609 all-bison: maybe-all-texinfo
7610 all-diff: maybe-all-libiberty
7611 all-fastjar: maybe-all-zlib maybe-all-libiberty
7612 all-fileutils: maybe-all-libiberty
7613 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
7614 all-grep: maybe-all-libiberty
7615 all-gzip: maybe-all-libiberty
7616 all-hello: maybe-all-libiberty
7617 all-m4: maybe-all-libiberty maybe-all-texinfo
7618 all-make: maybe-all-libiberty
7619 all-patch: maybe-all-libiberty
7620 all-prms: maybe-all-libiberty
7621 all-recode: maybe-all-libiberty
7622 all-sed: maybe-all-libiberty
7623 all-send-pr: maybe-all-prms
7624 all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui
7625 all-tar: maybe-all-libiberty
7626 all-uudecode: maybe-all-libiberty
7628 ALL_GCC = maybe-all-gcc
7629 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
7630 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
7632 # Target modules specific to gcc.
7633 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
7634 configure-target-fastjar: maybe-configure-target-zlib
7635 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
7636 configure-target-libf2c: $(ALL_GCC_C)
7637 all-target-libf2c: maybe-all-target-libiberty
7638 configure-target-libffi: $(ALL_GCC_C)
7639 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
7640 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
7641 configure-target-libobjc: $(ALL_GCC_C)
7642 all-target-libobjc: maybe-all-target-libiberty
7643 configure-target-libstdc++-v3: $(ALL_GCC_C)
7644 all-target-libstdc++-v3: maybe-all-target-libiberty
7645 configure-target-zlib: $(ALL_GCC_C)
7647 # Target modules in the 'src' repository.
7648 configure-target-examples: $(ALL_GCC_C)
7649 configure-target-libgloss: $(ALL_GCC)
7650 all-target-libgloss: maybe-configure-target-newlib
7651 configure-target-libiberty: $(ALL_GCC_C)
7652 configure-target-libtermcap: $(ALL_GCC_C)
7653 configure-target-newlib: $(ALL_GCC)
7654 configure-target-rda: $(ALL_GCC_C)
7655 configure-target-winsup: $(ALL_GCC_C)
7656 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
7658 # Other target modules. Warning, these are not well tested.
7659 configure-target-gperf: $(ALL_GCC_CXX)
7660 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
7661 configure-target-qthreads: $(ALL_GCC_C)
7663 # Dependencies of maybe-foo on foo. These are used because, for example,
7664 # all-gcc only depends on all-gas if gas is present and being configured.
7665 @maybe_dependencies@
7667 # Serialization dependencies. Host configures don't work well in parallel to
7668 # each other, due to contention over config.cache. Target configures and
7669 # build configures are similar.
7670 @serialization_dependencies@
7672 # --------------------------------
7673 # Regenerating top level configury
7674 # --------------------------------
7676 # Multilib.out tells target dirs what multilibs they should build.
7677 # There is really only one copy. We use the 'timestamp' method to
7678 # work around various timestamp bugs on some systems.
7679 # We use move-if-change so that it's only considered updated when it
7680 # actually changes, because it has to depend on a phony target.
7681 multilib.out: multilib.ts
7682 @if [ -f multilib.out ] ; then : else \
7683 rm -f multilib.ts; $(MAKE) multilib.ts; \
7686 multilib.ts: maybe-all-gcc
7687 @r=`${PWD}`; export r; \
7688 echo "Checking multilib configuration..."; \
7689 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
7690 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
7691 echo timestamp > multilib.ts
7693 # Rebuilding Makefile.in, using autogen.
7694 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
7695 cd $(srcdir) && autogen Makefile.def
7697 # with the gnu make, this is done automatically.
7699 host_makefile_frag=@host_makefile_frag@
7700 target_makefile_frag=@target_makefile_frag@
7702 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
7703 $(SHELL) ./config.status
7707 .NOEXPORT:
7708 MAKEOVERRIDES=
7710 # end of Makefile.in