* Makefile.tpl: Rearrange by moving recursive_targets rules
[binutils.git] / Makefile.in
blob68f43e6acb0e81d68210dd064aada4c702536791
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002, 2003 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
26 VPATH=@srcdir@
28 build_alias=@build_alias@
29 build=@build@
30 host_alias=@host_alias@
31 host=@host@
32 target_alias=@target_alias@
33 target=@target@
35 program_transform_name = @program_transform_name@
37 prefix = @prefix@
38 exec_prefix = @exec_prefix@
40 srcdir = @srcdir@
42 bindir = @bindir@
43 sbindir = @sbindir@
44 libexecdir = @libexecdir@
45 datadir = @datadir@
46 sysconfdir = @sysconfdir@
47 sharedstatedir = @sharedstatedir@
48 localstatedir = @localstatedir@
49 libdir = @libdir@
50 includedir = @includedir@
51 oldincludedir = @oldincludedir@
52 infodir = @infodir@
53 mandir = @mandir@
54 man1dir = $(mandir)/man1
55 man2dir = $(mandir)/man2
56 man3dir = $(mandir)/man3
57 man4dir = $(mandir)/man4
58 man5dir = $(mandir)/man5
59 man6dir = $(mandir)/man6
60 man7dir = $(mandir)/man7
61 man8dir = $(mandir)/man8
62 man9dir = $(mandir)/man9
64 INSTALL = @INSTALL@
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
69 # -------------------------------------------------
70 # Miscellaneous non-standard autoconf-set variables
71 # -------------------------------------------------
73 # The file containing GCC's version number.
74 gcc_version_trigger = @gcc_version_trigger@
75 gcc_version = @gcc_version@
77 # The gcc driver likes to know the arguments it was configured with.
78 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
80 gxx_include_dir = @gxx_include_dir@
81 libstdcxx_incdir = @libstdcxx_incdir@
83 tooldir = @tooldir@
84 build_tooldir = @build_tooldir@
86 # Directory in which the compiler finds executables, libraries, etc.
87 libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
88 GDB_NLM_DEPS =
90 # This is the name of the environment variable used for the path to
91 # the libraries.
92 RPATH_ENVVAR = @RPATH_ENVVAR@
94 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
95 # was used.
96 SET_LIB_PATH = @SET_LIB_PATH@
98 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
99 # Some platforms don't like blank entries, so we remove duplicate,
100 # leading and trailing colons.
101 REALLY_SET_LIB_PATH = \
102 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
104 # This is the list of directories to be built for the build system.
105 BUILD_CONFIGDIRS = libiberty
106 # Build programs are put under this directory.
107 BUILD_SUBDIR = @build_subdir@
108 # This is set by the configure script to the arguments to use when configuring
109 # directories built for the build system.
110 BUILD_CONFIGARGS = @build_configargs@
112 # This is the list of directories to built for the host system.
113 SUBDIRS = @configdirs@
114 # This is set by the configure script to the arguments to use when configuring
115 # directories built for the host system.
116 HOST_CONFIGARGS = @host_configargs@
118 # This is set by the configure script to the list of directories which
119 # should be built using the target tools.
120 TARGET_CONFIGDIRS = @target_configdirs@
121 # Target libraries are put under this directory:
122 TARGET_SUBDIR = @target_subdir@
123 # This is set by the configure script to the arguments to use when configuring
124 # directories built for the target.
125 TARGET_CONFIGARGS = @target_configargs@
127 # ----------------------------------------------
128 # Programs producing files for the BUILD machine
129 # ----------------------------------------------
131 SHELL = @config_shell@
133 # pwd command to use. Allow user to override default by setting PWDCMD in
134 # the environment to account for automounters. The make variable must not
135 # be called PWDCMD, otherwise the value set here is passed to make
136 # subprocesses and overrides the setting from the user's environment.
137 # Don't use PWD since it is a common shell environment variable and we
138 # don't want to corrupt it.
139 PWD_COMMAND = $${PWDCMD-pwd}
141 # compilers to use to create programs which must be run in the build
142 # environment.
143 CC_FOR_BUILD = @CC_FOR_BUILD@
144 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
146 CXX_FOR_BUILD = $(CXX)
148 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
149 # here so that they can be overridden by Makefile fragments.
150 BUILD_PREFIX = @BUILD_PREFIX@
151 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
153 BISON=@BISON@
154 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
155 echo $$r/bison/bison -L $$s/bison/ ; \
156 else \
157 echo bison ; \
160 DEFAULT_YACC = @DEFAULT_YACC@
161 YACC=@YACC@
162 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
163 echo $$r/bison/bison -y -L $$s/bison/ ; \
164 elif [ -f $$r/byacc/byacc ] ; then \
165 echo $$r/byacc/byacc ; \
166 else \
167 echo ${DEFAULT_YACC} ; \
170 DEFAULT_LEX = @DEFAULT_LEX@
171 LEX=@LEX@
172 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
173 then echo $$r/flex/flex ; \
174 else echo ${DEFAULT_LEX} ; fi`
176 DEFAULT_M4 = @DEFAULT_M4@
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.2 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\.[2-9]|[5-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 # (Default to avoid splitting info files by setting the threshold high.)
194 MAKEINFOFLAGS = --split-size=5000000
196 EXPECT = `if [ -f $$r/expect/expect ] ; \
197 then echo $$r/expect/expect ; \
198 else echo expect ; fi`
200 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
201 then echo $$s/dejagnu/runtest ; \
202 else echo runtest ; fi`
204 # ---------------------------------------------
205 # Programs producing files for the HOST machine
206 # ---------------------------------------------
208 # This is the list of directories that may be needed in RPATH_ENVVAR
209 # so that programs built for the host machine work.
210 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
212 AS = @AS@
214 AR = @AR@
215 AR_FLAGS = rc
217 CC = @CC@
218 CFLAGS = @CFLAGS@
219 LIBCFLAGS = $(CFLAGS)
221 CXX = @CXX@
222 CXXFLAGS = @CXXFLAGS@
223 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
225 DLLTOOL = @DLLTOOL@
227 NM = @NM@
229 LD = @LD@
230 LDFLAGS =
232 RANLIB = @RANLIB@
234 WINDRES = @WINDRES@
236 PICFLAG =
238 # -----------------------------------------------
239 # Programs producing files for the TARGET machine
240 # -----------------------------------------------
242 # This is the list of directories that may be needed in RPATH_ENVVAR
243 # so that prorgams built for the target machine work.
244 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
246 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
248 AR_FOR_TARGET=@AR_FOR_TARGET@
249 USUAL_AR_FOR_TARGET = ` \
250 if [ -f $$r/binutils/ar ] ; then \
251 echo $$r/binutils/ar ; \
252 else \
253 if [ '$(host)' = '$(target)' ] ; then \
254 echo $(AR); \
255 else \
256 echo ar | sed '$(program_transform_name)' ; \
257 fi; \
260 AS_FOR_TARGET=@AS_FOR_TARGET@
261 USUAL_AS_FOR_TARGET = ` \
262 if [ -f $$r/gas/as-new ] ; then \
263 echo $$r/gas/as-new ; \
264 elif [ -f $$r/gcc/xgcc ]; then \
265 $(CC_FOR_TARGET) -print-prog-name=as ; \
266 else \
267 if [ '$(host)' = '$(target)' ] ; then \
268 echo $(AS); \
269 else \
270 echo as | sed '$(program_transform_name)' ; \
271 fi; \
274 CC_FOR_TARGET = @CC_FOR_TARGET@
275 # During gcc bootstrap, if we use some random cc for stage1 then
276 # CFLAGS will be just -g. We want to ensure that TARGET libraries
277 # (which we know are built with gcc) are built with optimizations so
278 # prepend -O2 when setting CFLAGS_FOR_TARGET.
279 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
280 # If GCC_FOR_TARGET is not overriden on the command line, then this
281 # variable is passed down to the gcc Makefile, where it is used to
282 # build libgcc2.a. We define it here so that it can itself be
283 # overridden on the command line.
284 GCC_FOR_TARGET=@GCC_FOR_TARGET@
285 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
286 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
288 CXX_FOR_TARGET = @CXX_FOR_TARGET@
289 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
290 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
291 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
292 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
293 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
295 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
296 USUAL_DLLTOOL_FOR_TARGET = ` \
297 if [ -f $$r/binutils/dlltool ] ; then \
298 echo $$r/binutils/dlltool ; \
299 else \
300 if [ '$(host)' = '$(target)' ] ; then \
301 echo $(DLLTOOL); \
302 else \
303 echo dlltool | sed '$(program_transform_name)' ; \
304 fi; \
307 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
309 LD_FOR_TARGET=@LD_FOR_TARGET@
310 USUAL_LD_FOR_TARGET = ` \
311 if [ -f $$r/ld/ld-new ] ; then \
312 echo $$r/ld/ld-new ; \
313 elif [ -f $$r/gcc/xgcc ]; then \
314 $(CC_FOR_TARGET) -print-prog-name=ld ; \
315 else \
316 if [ '$(host)' = '$(target)' ] ; then \
317 echo $(LD); \
318 else \
319 echo ld | sed '$(program_transform_name)' ; \
320 fi; \
323 LDFLAGS_FOR_TARGET =
325 NM_FOR_TARGET=@NM_FOR_TARGET@
326 USUAL_NM_FOR_TARGET = ` \
327 if [ -f $$r/binutils/nm-new ] ; then \
328 echo $$r/binutils/nm-new ; \
329 elif [ -f $$r/gcc/xgcc ]; then \
330 $(CC_FOR_TARGET) -print-prog-name=nm ; \
331 else \
332 if [ '$(host)' = '$(target)' ] ; then \
333 echo $(NM); \
334 else \
335 echo nm | sed '$(program_transform_name)' ; \
336 fi; \
339 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
340 USUAL_RANLIB_FOR_TARGET = ` \
341 if [ -f $$r/binutils/ranlib ] ; then \
342 echo $$r/binutils/ranlib ; \
343 else \
344 if [ '$(host)' = '$(target)' ] ; then \
345 if [ x'$(RANLIB)' != x ]; then \
346 echo $(RANLIB); \
347 else \
348 echo ranlib; \
349 fi; \
350 else \
351 echo ranlib | sed '$(program_transform_name)' ; \
352 fi; \
355 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
356 USUAL_WINDRES_FOR_TARGET = ` \
357 if [ -f $$r/binutils/windres ] ; then \
358 echo $$r/binutils/windres ; \
359 else \
360 if [ '$(host)' = '$(target)' ] ; then \
361 echo $(WINDRES); \
362 else \
363 echo windres | sed '$(program_transform_name)' ; \
364 fi; \
367 PICFLAG_FOR_TARGET =
369 # ------------------------------------
370 # Miscellaneous targets and flag lists
371 # ------------------------------------
373 # The first rule in the file had better be this one. Don't put any above it.
374 # This lives here to allow makefile fragments to contain dependencies.
375 all: all.normal
376 .PHONY: all
378 #### host and target specific makefile fragments come in here.
379 @target_makefile_frag@
380 @alphaieee_frag@
381 @ospace_frag@
382 @host_makefile_frag@
385 # Flags to pass down to all sub-makes.
386 BASE_FLAGS_TO_PASS = \
387 "DESTDIR=$(DESTDIR)" \
388 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
389 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
390 "bindir=$(bindir)" \
391 "datadir=$(datadir)" \
392 "exec_prefix=$(exec_prefix)" \
393 "includedir=$(includedir)" \
394 "infodir=$(infodir)" \
395 "libdir=$(libdir)" \
396 "libexecdir=$(libexecdir)" \
397 "lispdir=$(lispdir)" \
398 "libstdcxx_incdir=$(libstdcxx_incdir)" \
399 "libsubdir=$(libsubdir)" \
400 "localstatedir=$(localstatedir)" \
401 "mandir=$(mandir)" \
402 "oldincludedir=$(oldincludedir)" \
403 "prefix=$(prefix)" \
404 "sbindir=$(sbindir)" \
405 "sharedstatedir=$(sharedstatedir)" \
406 "sysconfdir=$(sysconfdir)" \
407 "tooldir=$(tooldir)" \
408 "build_tooldir=$(build_tooldir)" \
409 "gxx_include_dir=$(gxx_include_dir)" \
410 "gcc_version=$(gcc_version)" \
411 "gcc_version_trigger=$(gcc_version_trigger)" \
412 "target_alias=$(target_alias)" \
413 "BISON=$(BISON)" \
414 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
415 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
416 "EXPECT=$(EXPECT)" \
417 "INSTALL=$(INSTALL)" \
418 "INSTALL_DATA=$(INSTALL_DATA)" \
419 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
420 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
421 "LEX=$(LEX)" \
422 "M4=$(M4)" \
423 "MAKE=$(MAKE)" \
424 "RUNTEST=$(RUNTEST)" \
425 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
426 "SHELL=$(SHELL)" \
427 "YACC=$(YACC)" \
428 "AR_FLAGS=$(AR_FLAGS)" \
429 "CFLAGS=$(CFLAGS)" \
430 "CXXFLAGS=$(CXXFLAGS)" \
431 "LDFLAGS=$(LDFLAGS)" \
432 "LIBCFLAGS=$(LIBCFLAGS)" \
433 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
434 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
435 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
436 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
437 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
438 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
439 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
440 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
441 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
442 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
443 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
444 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
445 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
446 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
447 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
448 "CONFIG_SHELL=$(SHELL)" \
449 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
451 # For any flags above that may contain shell code that varies from one
452 # target library to another. When doing recursive invocations of the
453 # top-level Makefile, we don't want the outer make to evaluate them,
454 # so we pass these variables down unchanged. They must not contain
455 # single nor double quotes.
456 RECURSE_FLAGS = \
457 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
458 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
460 # Flags to pass down to most sub-makes, in which we're building with
461 # the host environment.
462 EXTRA_HOST_FLAGS = \
463 'AR=$(AR)' \
464 'AS=$(AS)' \
465 'CC=$(CC)' \
466 'CXX=$(CXX)' \
467 'DLLTOOL=$(DLLTOOL)' \
468 'LD=$(LD)' \
469 'NM=$(NM)' \
470 'RANLIB=$(RANLIB)' \
471 'WINDRES=$(WINDRES)'
473 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
475 # Flags that are concerned with the location of the X11 include files
476 # and library files
478 # NOTE: until the top-level is getting the values via autoconf, it only
479 # causes problems to have this top-level Makefile overriding the autoconf-set
480 # values in child directories. Only variables that don't conflict with
481 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
483 X11_FLAGS_TO_PASS = \
484 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
485 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
487 # Flags to pass down to makes which are built with the target environment.
488 # The double $ decreases the length of the command line; the variables
489 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
490 EXTRA_TARGET_FLAGS = \
491 'AR=$$(AR_FOR_TARGET)' \
492 'AS=$$(AS_FOR_TARGET)' \
493 'CC=$$(CC_FOR_TARGET)' \
494 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
495 'CXX=$$(CXX_FOR_TARGET)' \
496 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
497 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
498 'LD=$$(LD_FOR_TARGET)' \
499 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
500 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
501 'NM=$$(NM_FOR_TARGET)' \
502 'RANLIB=$$(RANLIB_FOR_TARGET)' \
503 'WINDRES=$$(WINDRES_FOR_TARGET)'
505 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
507 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
508 # unfortunately needs the native compiler and the target ar and
509 # ranlib.
510 # If any variables are added here, they must be added to do-*, below.
511 # The BUILD_* variables are a special case, which are used for the gcc
512 # cross-building scheme.
513 EXTRA_GCC_FLAGS = \
514 'BUILD_PREFIX=$(BUILD_PREFIX)' \
515 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
516 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
517 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
518 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
519 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
520 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
521 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
522 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
523 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
524 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
525 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
526 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
528 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
530 .PHONY: configure-host
531 configure-host: maybe-configure-gcc \
532 maybe-configure-ash \
533 maybe-configure-autoconf \
534 maybe-configure-automake \
535 maybe-configure-bash \
536 maybe-configure-bfd \
537 maybe-configure-opcodes \
538 maybe-configure-binutils \
539 maybe-configure-bison \
540 maybe-configure-byacc \
541 maybe-configure-bzip2 \
542 maybe-configure-dejagnu \
543 maybe-configure-diff \
544 maybe-configure-dosutils \
545 maybe-configure-etc \
546 maybe-configure-fastjar \
547 maybe-configure-fileutils \
548 maybe-configure-findutils \
549 maybe-configure-find \
550 maybe-configure-flex \
551 maybe-configure-gas \
552 maybe-configure-gawk \
553 maybe-configure-gettext \
554 maybe-configure-gnuserv \
555 maybe-configure-gprof \
556 maybe-configure-gzip \
557 maybe-configure-hello \
558 maybe-configure-indent \
559 maybe-configure-intl \
560 maybe-configure-tcl \
561 maybe-configure-itcl \
562 maybe-configure-ld \
563 maybe-configure-libgui \
564 maybe-configure-libiberty \
565 maybe-configure-libtool \
566 maybe-configure-m4 \
567 maybe-configure-make \
568 maybe-configure-mmalloc \
569 maybe-configure-patch \
570 maybe-configure-perl \
571 maybe-configure-prms \
572 maybe-configure-rcs \
573 maybe-configure-readline \
574 maybe-configure-release \
575 maybe-configure-recode \
576 maybe-configure-sed \
577 maybe-configure-send-pr \
578 maybe-configure-shellutils \
579 maybe-configure-sid \
580 maybe-configure-sim \
581 maybe-configure-tar \
582 maybe-configure-texinfo \
583 maybe-configure-textutils \
584 maybe-configure-time \
585 maybe-configure-uudecode \
586 maybe-configure-wdiff \
587 maybe-configure-zip \
588 maybe-configure-zlib \
589 maybe-configure-gdb \
590 maybe-configure-expect \
591 maybe-configure-guile \
592 maybe-configure-tk \
593 maybe-configure-tix \
594 maybe-configure-libtermcap \
595 maybe-configure-utils
596 .PHONY: configure-target
597 configure-target: \
598 maybe-configure-target-libstdc++-v3 \
599 maybe-configure-target-newlib \
600 maybe-configure-target-libf2c \
601 maybe-configure-target-libobjc \
602 maybe-configure-target-libtermcap \
603 maybe-configure-target-winsup \
604 maybe-configure-target-libgloss \
605 maybe-configure-target-libiberty \
606 maybe-configure-target-gperf \
607 maybe-configure-target-examples \
608 maybe-configure-target-libffi \
609 maybe-configure-target-libjava \
610 maybe-configure-target-zlib \
611 maybe-configure-target-boehm-gc \
612 maybe-configure-target-qthreads \
613 maybe-configure-target-rda \
614 maybe-configure-target-libada
616 # The target built for a native build.
617 .PHONY: all.normal
618 all.normal: @all_build_modules@ all-host all-target
620 .PHONY: all-host
621 all-host: maybe-all-gcc \
622 maybe-all-ash \
623 maybe-all-autoconf \
624 maybe-all-automake \
625 maybe-all-bash \
626 maybe-all-bfd \
627 maybe-all-opcodes \
628 maybe-all-binutils \
629 maybe-all-bison \
630 maybe-all-byacc \
631 maybe-all-bzip2 \
632 maybe-all-dejagnu \
633 maybe-all-diff \
634 maybe-all-dosutils \
635 maybe-all-etc \
636 maybe-all-fastjar \
637 maybe-all-fileutils \
638 maybe-all-findutils \
639 maybe-all-find \
640 maybe-all-flex \
641 maybe-all-gas \
642 maybe-all-gawk \
643 maybe-all-gettext \
644 maybe-all-gnuserv \
645 maybe-all-gprof \
646 maybe-all-gzip \
647 maybe-all-hello \
648 maybe-all-indent \
649 maybe-all-intl \
650 maybe-all-tcl \
651 maybe-all-itcl \
652 maybe-all-ld \
653 maybe-all-libgui \
654 maybe-all-libiberty \
655 maybe-all-libtool \
656 maybe-all-m4 \
657 maybe-all-make \
658 maybe-all-mmalloc \
659 maybe-all-patch \
660 maybe-all-perl \
661 maybe-all-prms \
662 maybe-all-rcs \
663 maybe-all-readline \
664 maybe-all-release \
665 maybe-all-recode \
666 maybe-all-sed \
667 maybe-all-send-pr \
668 maybe-all-shellutils \
669 maybe-all-sid \
670 maybe-all-sim \
671 maybe-all-tar \
672 maybe-all-texinfo \
673 maybe-all-textutils \
674 maybe-all-time \
675 maybe-all-uudecode \
676 maybe-all-wdiff \
677 maybe-all-zip \
678 maybe-all-zlib \
679 maybe-all-gdb \
680 maybe-all-expect \
681 maybe-all-guile \
682 maybe-all-tk \
683 maybe-all-tix \
684 maybe-all-libtermcap \
685 maybe-all-utils
686 .PHONY: all-target
687 all-target: \
688 maybe-all-target-libstdc++-v3 \
689 maybe-all-target-newlib \
690 maybe-all-target-libf2c \
691 maybe-all-target-libobjc \
692 maybe-all-target-libtermcap \
693 maybe-all-target-winsup \
694 maybe-all-target-libgloss \
695 maybe-all-target-libiberty \
696 maybe-all-target-gperf \
697 maybe-all-target-examples \
698 maybe-all-target-libffi \
699 maybe-all-target-libjava \
700 maybe-all-target-zlib \
701 maybe-all-target-boehm-gc \
702 maybe-all-target-qthreads \
703 maybe-all-target-rda \
704 maybe-all-target-libada
706 # Do a target for all the subdirectories. A ``make do-X'' will do a
707 # ``make X'' in all subdirectories (because, in general, there is a
708 # dependency (below) of X upon do-X, a ``make X'' will also do this,
709 # but it may do additional work as well).
711 .PHONY: do-info
712 do-info: info-host info-target
714 .PHONY: info-host
715 info-host: maybe-info-gcc \
716 maybe-info-ash \
717 maybe-info-autoconf \
718 maybe-info-automake \
719 maybe-info-bash \
720 maybe-info-bfd \
721 maybe-info-opcodes \
722 maybe-info-binutils \
723 maybe-info-bison \
724 maybe-info-byacc \
725 maybe-info-bzip2 \
726 maybe-info-dejagnu \
727 maybe-info-diff \
728 maybe-info-dosutils \
729 maybe-info-etc \
730 maybe-info-fastjar \
731 maybe-info-fileutils \
732 maybe-info-findutils \
733 maybe-info-find \
734 maybe-info-flex \
735 maybe-info-gas \
736 maybe-info-gawk \
737 maybe-info-gettext \
738 maybe-info-gnuserv \
739 maybe-info-gprof \
740 maybe-info-gzip \
741 maybe-info-hello \
742 maybe-info-indent \
743 maybe-info-intl \
744 maybe-info-tcl \
745 maybe-info-itcl \
746 maybe-info-ld \
747 maybe-info-libgui \
748 maybe-info-libiberty \
749 maybe-info-libtool \
750 maybe-info-m4 \
751 maybe-info-make \
752 maybe-info-mmalloc \
753 maybe-info-patch \
754 maybe-info-perl \
755 maybe-info-prms \
756 maybe-info-rcs \
757 maybe-info-readline \
758 maybe-info-release \
759 maybe-info-recode \
760 maybe-info-sed \
761 maybe-info-send-pr \
762 maybe-info-shellutils \
763 maybe-info-sid \
764 maybe-info-sim \
765 maybe-info-tar \
766 maybe-info-texinfo \
767 maybe-info-textutils \
768 maybe-info-time \
769 maybe-info-uudecode \
770 maybe-info-wdiff \
771 maybe-info-zip \
772 maybe-info-zlib \
773 maybe-info-gdb \
774 maybe-info-expect \
775 maybe-info-guile \
776 maybe-info-tk \
777 maybe-info-tix \
778 maybe-info-libtermcap \
779 maybe-info-utils
781 .PHONY: info-target
782 info-target: \
783 maybe-info-target-libstdc++-v3 \
784 maybe-info-target-newlib \
785 maybe-info-target-libf2c \
786 maybe-info-target-libobjc \
787 maybe-info-target-libtermcap \
788 maybe-info-target-winsup \
789 maybe-info-target-libgloss \
790 maybe-info-target-libiberty \
791 maybe-info-target-gperf \
792 maybe-info-target-examples \
793 maybe-info-target-libffi \
794 maybe-info-target-libjava \
795 maybe-info-target-zlib \
796 maybe-info-target-boehm-gc \
797 maybe-info-target-qthreads \
798 maybe-info-target-rda \
799 maybe-info-target-libada
801 .PHONY: do-dvi
802 do-dvi: dvi-host dvi-target
804 .PHONY: dvi-host
805 dvi-host: maybe-dvi-gcc \
806 maybe-dvi-ash \
807 maybe-dvi-autoconf \
808 maybe-dvi-automake \
809 maybe-dvi-bash \
810 maybe-dvi-bfd \
811 maybe-dvi-opcodes \
812 maybe-dvi-binutils \
813 maybe-dvi-bison \
814 maybe-dvi-byacc \
815 maybe-dvi-bzip2 \
816 maybe-dvi-dejagnu \
817 maybe-dvi-diff \
818 maybe-dvi-dosutils \
819 maybe-dvi-etc \
820 maybe-dvi-fastjar \
821 maybe-dvi-fileutils \
822 maybe-dvi-findutils \
823 maybe-dvi-find \
824 maybe-dvi-flex \
825 maybe-dvi-gas \
826 maybe-dvi-gawk \
827 maybe-dvi-gettext \
828 maybe-dvi-gnuserv \
829 maybe-dvi-gprof \
830 maybe-dvi-gzip \
831 maybe-dvi-hello \
832 maybe-dvi-indent \
833 maybe-dvi-intl \
834 maybe-dvi-tcl \
835 maybe-dvi-itcl \
836 maybe-dvi-ld \
837 maybe-dvi-libgui \
838 maybe-dvi-libiberty \
839 maybe-dvi-libtool \
840 maybe-dvi-m4 \
841 maybe-dvi-make \
842 maybe-dvi-mmalloc \
843 maybe-dvi-patch \
844 maybe-dvi-perl \
845 maybe-dvi-prms \
846 maybe-dvi-rcs \
847 maybe-dvi-readline \
848 maybe-dvi-release \
849 maybe-dvi-recode \
850 maybe-dvi-sed \
851 maybe-dvi-send-pr \
852 maybe-dvi-shellutils \
853 maybe-dvi-sid \
854 maybe-dvi-sim \
855 maybe-dvi-tar \
856 maybe-dvi-texinfo \
857 maybe-dvi-textutils \
858 maybe-dvi-time \
859 maybe-dvi-uudecode \
860 maybe-dvi-wdiff \
861 maybe-dvi-zip \
862 maybe-dvi-zlib \
863 maybe-dvi-gdb \
864 maybe-dvi-expect \
865 maybe-dvi-guile \
866 maybe-dvi-tk \
867 maybe-dvi-tix \
868 maybe-dvi-libtermcap \
869 maybe-dvi-utils
871 .PHONY: dvi-target
872 dvi-target: \
873 maybe-dvi-target-libstdc++-v3 \
874 maybe-dvi-target-newlib \
875 maybe-dvi-target-libf2c \
876 maybe-dvi-target-libobjc \
877 maybe-dvi-target-libtermcap \
878 maybe-dvi-target-winsup \
879 maybe-dvi-target-libgloss \
880 maybe-dvi-target-libiberty \
881 maybe-dvi-target-gperf \
882 maybe-dvi-target-examples \
883 maybe-dvi-target-libffi \
884 maybe-dvi-target-libjava \
885 maybe-dvi-target-zlib \
886 maybe-dvi-target-boehm-gc \
887 maybe-dvi-target-qthreads \
888 maybe-dvi-target-rda \
889 maybe-dvi-target-libada
891 .PHONY: do-TAGS
892 do-TAGS: TAGS-host TAGS-target
894 .PHONY: TAGS-host
895 TAGS-host: maybe-TAGS-gcc \
896 maybe-TAGS-ash \
897 maybe-TAGS-autoconf \
898 maybe-TAGS-automake \
899 maybe-TAGS-bash \
900 maybe-TAGS-bfd \
901 maybe-TAGS-opcodes \
902 maybe-TAGS-binutils \
903 maybe-TAGS-bison \
904 maybe-TAGS-byacc \
905 maybe-TAGS-bzip2 \
906 maybe-TAGS-dejagnu \
907 maybe-TAGS-diff \
908 maybe-TAGS-dosutils \
909 maybe-TAGS-etc \
910 maybe-TAGS-fastjar \
911 maybe-TAGS-fileutils \
912 maybe-TAGS-findutils \
913 maybe-TAGS-find \
914 maybe-TAGS-flex \
915 maybe-TAGS-gas \
916 maybe-TAGS-gawk \
917 maybe-TAGS-gettext \
918 maybe-TAGS-gnuserv \
919 maybe-TAGS-gprof \
920 maybe-TAGS-gzip \
921 maybe-TAGS-hello \
922 maybe-TAGS-indent \
923 maybe-TAGS-intl \
924 maybe-TAGS-tcl \
925 maybe-TAGS-itcl \
926 maybe-TAGS-ld \
927 maybe-TAGS-libgui \
928 maybe-TAGS-libiberty \
929 maybe-TAGS-libtool \
930 maybe-TAGS-m4 \
931 maybe-TAGS-make \
932 maybe-TAGS-mmalloc \
933 maybe-TAGS-patch \
934 maybe-TAGS-perl \
935 maybe-TAGS-prms \
936 maybe-TAGS-rcs \
937 maybe-TAGS-readline \
938 maybe-TAGS-release \
939 maybe-TAGS-recode \
940 maybe-TAGS-sed \
941 maybe-TAGS-send-pr \
942 maybe-TAGS-shellutils \
943 maybe-TAGS-sid \
944 maybe-TAGS-sim \
945 maybe-TAGS-tar \
946 maybe-TAGS-texinfo \
947 maybe-TAGS-textutils \
948 maybe-TAGS-time \
949 maybe-TAGS-uudecode \
950 maybe-TAGS-wdiff \
951 maybe-TAGS-zip \
952 maybe-TAGS-zlib \
953 maybe-TAGS-gdb \
954 maybe-TAGS-expect \
955 maybe-TAGS-guile \
956 maybe-TAGS-tk \
957 maybe-TAGS-tix \
958 maybe-TAGS-libtermcap \
959 maybe-TAGS-utils
961 .PHONY: TAGS-target
962 TAGS-target: \
963 maybe-TAGS-target-libstdc++-v3 \
964 maybe-TAGS-target-newlib \
965 maybe-TAGS-target-libf2c \
966 maybe-TAGS-target-libobjc \
967 maybe-TAGS-target-libtermcap \
968 maybe-TAGS-target-winsup \
969 maybe-TAGS-target-libgloss \
970 maybe-TAGS-target-libiberty \
971 maybe-TAGS-target-gperf \
972 maybe-TAGS-target-examples \
973 maybe-TAGS-target-libffi \
974 maybe-TAGS-target-libjava \
975 maybe-TAGS-target-zlib \
976 maybe-TAGS-target-boehm-gc \
977 maybe-TAGS-target-qthreads \
978 maybe-TAGS-target-rda \
979 maybe-TAGS-target-libada
981 .PHONY: do-install-info
982 do-install-info: install-info-host install-info-target
984 .PHONY: install-info-host
985 install-info-host: maybe-install-info-gcc \
986 maybe-install-info-ash \
987 maybe-install-info-autoconf \
988 maybe-install-info-automake \
989 maybe-install-info-bash \
990 maybe-install-info-bfd \
991 maybe-install-info-opcodes \
992 maybe-install-info-binutils \
993 maybe-install-info-bison \
994 maybe-install-info-byacc \
995 maybe-install-info-bzip2 \
996 maybe-install-info-dejagnu \
997 maybe-install-info-diff \
998 maybe-install-info-dosutils \
999 maybe-install-info-etc \
1000 maybe-install-info-fastjar \
1001 maybe-install-info-fileutils \
1002 maybe-install-info-findutils \
1003 maybe-install-info-find \
1004 maybe-install-info-flex \
1005 maybe-install-info-gas \
1006 maybe-install-info-gawk \
1007 maybe-install-info-gettext \
1008 maybe-install-info-gnuserv \
1009 maybe-install-info-gprof \
1010 maybe-install-info-gzip \
1011 maybe-install-info-hello \
1012 maybe-install-info-indent \
1013 maybe-install-info-intl \
1014 maybe-install-info-tcl \
1015 maybe-install-info-itcl \
1016 maybe-install-info-ld \
1017 maybe-install-info-libgui \
1018 maybe-install-info-libiberty \
1019 maybe-install-info-libtool \
1020 maybe-install-info-m4 \
1021 maybe-install-info-make \
1022 maybe-install-info-mmalloc \
1023 maybe-install-info-patch \
1024 maybe-install-info-perl \
1025 maybe-install-info-prms \
1026 maybe-install-info-rcs \
1027 maybe-install-info-readline \
1028 maybe-install-info-release \
1029 maybe-install-info-recode \
1030 maybe-install-info-sed \
1031 maybe-install-info-send-pr \
1032 maybe-install-info-shellutils \
1033 maybe-install-info-sid \
1034 maybe-install-info-sim \
1035 maybe-install-info-tar \
1036 maybe-install-info-texinfo \
1037 maybe-install-info-textutils \
1038 maybe-install-info-time \
1039 maybe-install-info-uudecode \
1040 maybe-install-info-wdiff \
1041 maybe-install-info-zip \
1042 maybe-install-info-zlib \
1043 maybe-install-info-gdb \
1044 maybe-install-info-expect \
1045 maybe-install-info-guile \
1046 maybe-install-info-tk \
1047 maybe-install-info-tix \
1048 maybe-install-info-libtermcap \
1049 maybe-install-info-utils
1051 .PHONY: install-info-target
1052 install-info-target: \
1053 maybe-install-info-target-libstdc++-v3 \
1054 maybe-install-info-target-newlib \
1055 maybe-install-info-target-libf2c \
1056 maybe-install-info-target-libobjc \
1057 maybe-install-info-target-libtermcap \
1058 maybe-install-info-target-winsup \
1059 maybe-install-info-target-libgloss \
1060 maybe-install-info-target-libiberty \
1061 maybe-install-info-target-gperf \
1062 maybe-install-info-target-examples \
1063 maybe-install-info-target-libffi \
1064 maybe-install-info-target-libjava \
1065 maybe-install-info-target-zlib \
1066 maybe-install-info-target-boehm-gc \
1067 maybe-install-info-target-qthreads \
1068 maybe-install-info-target-rda \
1069 maybe-install-info-target-libada
1071 .PHONY: do-installcheck
1072 do-installcheck: installcheck-host installcheck-target
1074 .PHONY: installcheck-host
1075 installcheck-host: maybe-installcheck-gcc \
1076 maybe-installcheck-ash \
1077 maybe-installcheck-autoconf \
1078 maybe-installcheck-automake \
1079 maybe-installcheck-bash \
1080 maybe-installcheck-bfd \
1081 maybe-installcheck-opcodes \
1082 maybe-installcheck-binutils \
1083 maybe-installcheck-bison \
1084 maybe-installcheck-byacc \
1085 maybe-installcheck-bzip2 \
1086 maybe-installcheck-dejagnu \
1087 maybe-installcheck-diff \
1088 maybe-installcheck-dosutils \
1089 maybe-installcheck-etc \
1090 maybe-installcheck-fastjar \
1091 maybe-installcheck-fileutils \
1092 maybe-installcheck-findutils \
1093 maybe-installcheck-find \
1094 maybe-installcheck-flex \
1095 maybe-installcheck-gas \
1096 maybe-installcheck-gawk \
1097 maybe-installcheck-gettext \
1098 maybe-installcheck-gnuserv \
1099 maybe-installcheck-gprof \
1100 maybe-installcheck-gzip \
1101 maybe-installcheck-hello \
1102 maybe-installcheck-indent \
1103 maybe-installcheck-intl \
1104 maybe-installcheck-tcl \
1105 maybe-installcheck-itcl \
1106 maybe-installcheck-ld \
1107 maybe-installcheck-libgui \
1108 maybe-installcheck-libiberty \
1109 maybe-installcheck-libtool \
1110 maybe-installcheck-m4 \
1111 maybe-installcheck-make \
1112 maybe-installcheck-mmalloc \
1113 maybe-installcheck-patch \
1114 maybe-installcheck-perl \
1115 maybe-installcheck-prms \
1116 maybe-installcheck-rcs \
1117 maybe-installcheck-readline \
1118 maybe-installcheck-release \
1119 maybe-installcheck-recode \
1120 maybe-installcheck-sed \
1121 maybe-installcheck-send-pr \
1122 maybe-installcheck-shellutils \
1123 maybe-installcheck-sid \
1124 maybe-installcheck-sim \
1125 maybe-installcheck-tar \
1126 maybe-installcheck-texinfo \
1127 maybe-installcheck-textutils \
1128 maybe-installcheck-time \
1129 maybe-installcheck-uudecode \
1130 maybe-installcheck-wdiff \
1131 maybe-installcheck-zip \
1132 maybe-installcheck-zlib \
1133 maybe-installcheck-gdb \
1134 maybe-installcheck-expect \
1135 maybe-installcheck-guile \
1136 maybe-installcheck-tk \
1137 maybe-installcheck-tix \
1138 maybe-installcheck-libtermcap \
1139 maybe-installcheck-utils
1141 .PHONY: installcheck-target
1142 installcheck-target: \
1143 maybe-installcheck-target-libstdc++-v3 \
1144 maybe-installcheck-target-newlib \
1145 maybe-installcheck-target-libf2c \
1146 maybe-installcheck-target-libobjc \
1147 maybe-installcheck-target-libtermcap \
1148 maybe-installcheck-target-winsup \
1149 maybe-installcheck-target-libgloss \
1150 maybe-installcheck-target-libiberty \
1151 maybe-installcheck-target-gperf \
1152 maybe-installcheck-target-examples \
1153 maybe-installcheck-target-libffi \
1154 maybe-installcheck-target-libjava \
1155 maybe-installcheck-target-zlib \
1156 maybe-installcheck-target-boehm-gc \
1157 maybe-installcheck-target-qthreads \
1158 maybe-installcheck-target-rda \
1159 maybe-installcheck-target-libada
1161 .PHONY: do-mostlyclean
1162 do-mostlyclean: mostlyclean-host mostlyclean-target
1164 .PHONY: mostlyclean-host
1165 mostlyclean-host: maybe-mostlyclean-gcc \
1166 maybe-mostlyclean-ash \
1167 maybe-mostlyclean-autoconf \
1168 maybe-mostlyclean-automake \
1169 maybe-mostlyclean-bash \
1170 maybe-mostlyclean-bfd \
1171 maybe-mostlyclean-opcodes \
1172 maybe-mostlyclean-binutils \
1173 maybe-mostlyclean-bison \
1174 maybe-mostlyclean-byacc \
1175 maybe-mostlyclean-bzip2 \
1176 maybe-mostlyclean-dejagnu \
1177 maybe-mostlyclean-diff \
1178 maybe-mostlyclean-dosutils \
1179 maybe-mostlyclean-etc \
1180 maybe-mostlyclean-fastjar \
1181 maybe-mostlyclean-fileutils \
1182 maybe-mostlyclean-findutils \
1183 maybe-mostlyclean-find \
1184 maybe-mostlyclean-flex \
1185 maybe-mostlyclean-gas \
1186 maybe-mostlyclean-gawk \
1187 maybe-mostlyclean-gettext \
1188 maybe-mostlyclean-gnuserv \
1189 maybe-mostlyclean-gprof \
1190 maybe-mostlyclean-gzip \
1191 maybe-mostlyclean-hello \
1192 maybe-mostlyclean-indent \
1193 maybe-mostlyclean-intl \
1194 maybe-mostlyclean-tcl \
1195 maybe-mostlyclean-itcl \
1196 maybe-mostlyclean-ld \
1197 maybe-mostlyclean-libgui \
1198 maybe-mostlyclean-libiberty \
1199 maybe-mostlyclean-libtool \
1200 maybe-mostlyclean-m4 \
1201 maybe-mostlyclean-make \
1202 maybe-mostlyclean-mmalloc \
1203 maybe-mostlyclean-patch \
1204 maybe-mostlyclean-perl \
1205 maybe-mostlyclean-prms \
1206 maybe-mostlyclean-rcs \
1207 maybe-mostlyclean-readline \
1208 maybe-mostlyclean-release \
1209 maybe-mostlyclean-recode \
1210 maybe-mostlyclean-sed \
1211 maybe-mostlyclean-send-pr \
1212 maybe-mostlyclean-shellutils \
1213 maybe-mostlyclean-sid \
1214 maybe-mostlyclean-sim \
1215 maybe-mostlyclean-tar \
1216 maybe-mostlyclean-texinfo \
1217 maybe-mostlyclean-textutils \
1218 maybe-mostlyclean-time \
1219 maybe-mostlyclean-uudecode \
1220 maybe-mostlyclean-wdiff \
1221 maybe-mostlyclean-zip \
1222 maybe-mostlyclean-zlib \
1223 maybe-mostlyclean-gdb \
1224 maybe-mostlyclean-expect \
1225 maybe-mostlyclean-guile \
1226 maybe-mostlyclean-tk \
1227 maybe-mostlyclean-tix \
1228 maybe-mostlyclean-libtermcap \
1229 maybe-mostlyclean-utils
1231 .PHONY: mostlyclean-target
1232 mostlyclean-target: \
1233 maybe-mostlyclean-target-libstdc++-v3 \
1234 maybe-mostlyclean-target-newlib \
1235 maybe-mostlyclean-target-libf2c \
1236 maybe-mostlyclean-target-libobjc \
1237 maybe-mostlyclean-target-libtermcap \
1238 maybe-mostlyclean-target-winsup \
1239 maybe-mostlyclean-target-libgloss \
1240 maybe-mostlyclean-target-libiberty \
1241 maybe-mostlyclean-target-gperf \
1242 maybe-mostlyclean-target-examples \
1243 maybe-mostlyclean-target-libffi \
1244 maybe-mostlyclean-target-libjava \
1245 maybe-mostlyclean-target-zlib \
1246 maybe-mostlyclean-target-boehm-gc \
1247 maybe-mostlyclean-target-qthreads \
1248 maybe-mostlyclean-target-rda \
1249 maybe-mostlyclean-target-libada
1251 .PHONY: do-clean
1252 do-clean: clean-host clean-target
1254 .PHONY: clean-host
1255 clean-host: maybe-clean-gcc \
1256 maybe-clean-ash \
1257 maybe-clean-autoconf \
1258 maybe-clean-automake \
1259 maybe-clean-bash \
1260 maybe-clean-bfd \
1261 maybe-clean-opcodes \
1262 maybe-clean-binutils \
1263 maybe-clean-bison \
1264 maybe-clean-byacc \
1265 maybe-clean-bzip2 \
1266 maybe-clean-dejagnu \
1267 maybe-clean-diff \
1268 maybe-clean-dosutils \
1269 maybe-clean-etc \
1270 maybe-clean-fastjar \
1271 maybe-clean-fileutils \
1272 maybe-clean-findutils \
1273 maybe-clean-find \
1274 maybe-clean-flex \
1275 maybe-clean-gas \
1276 maybe-clean-gawk \
1277 maybe-clean-gettext \
1278 maybe-clean-gnuserv \
1279 maybe-clean-gprof \
1280 maybe-clean-gzip \
1281 maybe-clean-hello \
1282 maybe-clean-indent \
1283 maybe-clean-intl \
1284 maybe-clean-tcl \
1285 maybe-clean-itcl \
1286 maybe-clean-ld \
1287 maybe-clean-libgui \
1288 maybe-clean-libiberty \
1289 maybe-clean-libtool \
1290 maybe-clean-m4 \
1291 maybe-clean-make \
1292 maybe-clean-mmalloc \
1293 maybe-clean-patch \
1294 maybe-clean-perl \
1295 maybe-clean-prms \
1296 maybe-clean-rcs \
1297 maybe-clean-readline \
1298 maybe-clean-release \
1299 maybe-clean-recode \
1300 maybe-clean-sed \
1301 maybe-clean-send-pr \
1302 maybe-clean-shellutils \
1303 maybe-clean-sid \
1304 maybe-clean-sim \
1305 maybe-clean-tar \
1306 maybe-clean-texinfo \
1307 maybe-clean-textutils \
1308 maybe-clean-time \
1309 maybe-clean-uudecode \
1310 maybe-clean-wdiff \
1311 maybe-clean-zip \
1312 maybe-clean-zlib \
1313 maybe-clean-gdb \
1314 maybe-clean-expect \
1315 maybe-clean-guile \
1316 maybe-clean-tk \
1317 maybe-clean-tix \
1318 maybe-clean-libtermcap \
1319 maybe-clean-utils
1321 .PHONY: clean-target
1322 clean-target: \
1323 maybe-clean-target-libstdc++-v3 \
1324 maybe-clean-target-newlib \
1325 maybe-clean-target-libf2c \
1326 maybe-clean-target-libobjc \
1327 maybe-clean-target-libtermcap \
1328 maybe-clean-target-winsup \
1329 maybe-clean-target-libgloss \
1330 maybe-clean-target-libiberty \
1331 maybe-clean-target-gperf \
1332 maybe-clean-target-examples \
1333 maybe-clean-target-libffi \
1334 maybe-clean-target-libjava \
1335 maybe-clean-target-zlib \
1336 maybe-clean-target-boehm-gc \
1337 maybe-clean-target-qthreads \
1338 maybe-clean-target-rda \
1339 maybe-clean-target-libada
1341 .PHONY: do-distclean
1342 do-distclean: distclean-host distclean-target
1344 .PHONY: distclean-host
1345 distclean-host: maybe-distclean-gcc \
1346 maybe-distclean-ash \
1347 maybe-distclean-autoconf \
1348 maybe-distclean-automake \
1349 maybe-distclean-bash \
1350 maybe-distclean-bfd \
1351 maybe-distclean-opcodes \
1352 maybe-distclean-binutils \
1353 maybe-distclean-bison \
1354 maybe-distclean-byacc \
1355 maybe-distclean-bzip2 \
1356 maybe-distclean-dejagnu \
1357 maybe-distclean-diff \
1358 maybe-distclean-dosutils \
1359 maybe-distclean-etc \
1360 maybe-distclean-fastjar \
1361 maybe-distclean-fileutils \
1362 maybe-distclean-findutils \
1363 maybe-distclean-find \
1364 maybe-distclean-flex \
1365 maybe-distclean-gas \
1366 maybe-distclean-gawk \
1367 maybe-distclean-gettext \
1368 maybe-distclean-gnuserv \
1369 maybe-distclean-gprof \
1370 maybe-distclean-gzip \
1371 maybe-distclean-hello \
1372 maybe-distclean-indent \
1373 maybe-distclean-intl \
1374 maybe-distclean-tcl \
1375 maybe-distclean-itcl \
1376 maybe-distclean-ld \
1377 maybe-distclean-libgui \
1378 maybe-distclean-libiberty \
1379 maybe-distclean-libtool \
1380 maybe-distclean-m4 \
1381 maybe-distclean-make \
1382 maybe-distclean-mmalloc \
1383 maybe-distclean-patch \
1384 maybe-distclean-perl \
1385 maybe-distclean-prms \
1386 maybe-distclean-rcs \
1387 maybe-distclean-readline \
1388 maybe-distclean-release \
1389 maybe-distclean-recode \
1390 maybe-distclean-sed \
1391 maybe-distclean-send-pr \
1392 maybe-distclean-shellutils \
1393 maybe-distclean-sid \
1394 maybe-distclean-sim \
1395 maybe-distclean-tar \
1396 maybe-distclean-texinfo \
1397 maybe-distclean-textutils \
1398 maybe-distclean-time \
1399 maybe-distclean-uudecode \
1400 maybe-distclean-wdiff \
1401 maybe-distclean-zip \
1402 maybe-distclean-zlib \
1403 maybe-distclean-gdb \
1404 maybe-distclean-expect \
1405 maybe-distclean-guile \
1406 maybe-distclean-tk \
1407 maybe-distclean-tix \
1408 maybe-distclean-libtermcap \
1409 maybe-distclean-utils
1411 .PHONY: distclean-target
1412 distclean-target: \
1413 maybe-distclean-target-libstdc++-v3 \
1414 maybe-distclean-target-newlib \
1415 maybe-distclean-target-libf2c \
1416 maybe-distclean-target-libobjc \
1417 maybe-distclean-target-libtermcap \
1418 maybe-distclean-target-winsup \
1419 maybe-distclean-target-libgloss \
1420 maybe-distclean-target-libiberty \
1421 maybe-distclean-target-gperf \
1422 maybe-distclean-target-examples \
1423 maybe-distclean-target-libffi \
1424 maybe-distclean-target-libjava \
1425 maybe-distclean-target-zlib \
1426 maybe-distclean-target-boehm-gc \
1427 maybe-distclean-target-qthreads \
1428 maybe-distclean-target-rda \
1429 maybe-distclean-target-libada
1431 .PHONY: do-maintainer-clean
1432 do-maintainer-clean: maintainer-clean-host maintainer-clean-target
1434 .PHONY: maintainer-clean-host
1435 maintainer-clean-host: maybe-maintainer-clean-gcc \
1436 maybe-maintainer-clean-ash \
1437 maybe-maintainer-clean-autoconf \
1438 maybe-maintainer-clean-automake \
1439 maybe-maintainer-clean-bash \
1440 maybe-maintainer-clean-bfd \
1441 maybe-maintainer-clean-opcodes \
1442 maybe-maintainer-clean-binutils \
1443 maybe-maintainer-clean-bison \
1444 maybe-maintainer-clean-byacc \
1445 maybe-maintainer-clean-bzip2 \
1446 maybe-maintainer-clean-dejagnu \
1447 maybe-maintainer-clean-diff \
1448 maybe-maintainer-clean-dosutils \
1449 maybe-maintainer-clean-etc \
1450 maybe-maintainer-clean-fastjar \
1451 maybe-maintainer-clean-fileutils \
1452 maybe-maintainer-clean-findutils \
1453 maybe-maintainer-clean-find \
1454 maybe-maintainer-clean-flex \
1455 maybe-maintainer-clean-gas \
1456 maybe-maintainer-clean-gawk \
1457 maybe-maintainer-clean-gettext \
1458 maybe-maintainer-clean-gnuserv \
1459 maybe-maintainer-clean-gprof \
1460 maybe-maintainer-clean-gzip \
1461 maybe-maintainer-clean-hello \
1462 maybe-maintainer-clean-indent \
1463 maybe-maintainer-clean-intl \
1464 maybe-maintainer-clean-tcl \
1465 maybe-maintainer-clean-itcl \
1466 maybe-maintainer-clean-ld \
1467 maybe-maintainer-clean-libgui \
1468 maybe-maintainer-clean-libiberty \
1469 maybe-maintainer-clean-libtool \
1470 maybe-maintainer-clean-m4 \
1471 maybe-maintainer-clean-make \
1472 maybe-maintainer-clean-mmalloc \
1473 maybe-maintainer-clean-patch \
1474 maybe-maintainer-clean-perl \
1475 maybe-maintainer-clean-prms \
1476 maybe-maintainer-clean-rcs \
1477 maybe-maintainer-clean-readline \
1478 maybe-maintainer-clean-release \
1479 maybe-maintainer-clean-recode \
1480 maybe-maintainer-clean-sed \
1481 maybe-maintainer-clean-send-pr \
1482 maybe-maintainer-clean-shellutils \
1483 maybe-maintainer-clean-sid \
1484 maybe-maintainer-clean-sim \
1485 maybe-maintainer-clean-tar \
1486 maybe-maintainer-clean-texinfo \
1487 maybe-maintainer-clean-textutils \
1488 maybe-maintainer-clean-time \
1489 maybe-maintainer-clean-uudecode \
1490 maybe-maintainer-clean-wdiff \
1491 maybe-maintainer-clean-zip \
1492 maybe-maintainer-clean-zlib \
1493 maybe-maintainer-clean-gdb \
1494 maybe-maintainer-clean-expect \
1495 maybe-maintainer-clean-guile \
1496 maybe-maintainer-clean-tk \
1497 maybe-maintainer-clean-tix \
1498 maybe-maintainer-clean-libtermcap \
1499 maybe-maintainer-clean-utils
1501 .PHONY: maintainer-clean-target
1502 maintainer-clean-target: \
1503 maybe-maintainer-clean-target-libstdc++-v3 \
1504 maybe-maintainer-clean-target-newlib \
1505 maybe-maintainer-clean-target-libf2c \
1506 maybe-maintainer-clean-target-libobjc \
1507 maybe-maintainer-clean-target-libtermcap \
1508 maybe-maintainer-clean-target-winsup \
1509 maybe-maintainer-clean-target-libgloss \
1510 maybe-maintainer-clean-target-libiberty \
1511 maybe-maintainer-clean-target-gperf \
1512 maybe-maintainer-clean-target-examples \
1513 maybe-maintainer-clean-target-libffi \
1514 maybe-maintainer-clean-target-libjava \
1515 maybe-maintainer-clean-target-zlib \
1516 maybe-maintainer-clean-target-boehm-gc \
1517 maybe-maintainer-clean-target-qthreads \
1518 maybe-maintainer-clean-target-rda \
1519 maybe-maintainer-clean-target-libada
1522 # Here are the targets which correspond to the do-X targets.
1524 .PHONY: info installcheck dvi install-info
1525 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1526 .PHONY: local-clean local-distclean local-maintainer-clean
1527 info: do-info
1528 installcheck: do-installcheck
1529 dvi: do-dvi
1531 # Make sure makeinfo is built before we do a `make info', if we're
1532 # in fact building texinfo.
1533 do-info: maybe-all-texinfo
1535 install-info: do-install-info dir.info
1536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1537 if [ -f dir.info ] ; then \
1538 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1539 else true ; fi
1541 local-clean:
1542 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1544 local-distclean:
1545 -rm -f Makefile config.status config.cache mh-frag mt-frag
1546 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1547 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1548 rm -rf $(TARGET_SUBDIR); \
1549 else true; fi
1550 -rm -rf $(BUILD_SUBDIR)
1551 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1552 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1553 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1554 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1555 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1557 local-maintainer-clean:
1558 @echo "This command is intended for maintainers to use;"
1559 @echo "it deletes files that may require special tools to rebuild."
1561 clean: do-clean local-clean
1562 mostlyclean: do-mostlyclean local-clean
1563 distclean: do-distclean local-clean local-distclean
1564 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1565 maintainer-clean: local-distclean
1566 realclean: maintainer-clean
1568 # Extra dependency for clean-target, owing to the mixed nature of gcc
1569 clean-target: clean-target-libgcc
1570 clean-target-libgcc:
1571 test ! -d gcc/libgcc || \
1572 (cd gcc/libgcc && find . -type d -print) | \
1573 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1574 -rm -rf gcc/libgcc
1576 # Check target.
1578 .PHONY: check do-check
1579 check: do-check
1581 # Only include modules actually being configured and built.
1582 do-check: maybe-check-gcc \
1583 maybe-check-ash \
1584 maybe-check-autoconf \
1585 maybe-check-automake \
1586 maybe-check-bash \
1587 maybe-check-bfd \
1588 maybe-check-opcodes \
1589 maybe-check-binutils \
1590 maybe-check-bison \
1591 maybe-check-byacc \
1592 maybe-check-bzip2 \
1593 maybe-check-dejagnu \
1594 maybe-check-diff \
1595 maybe-check-dosutils \
1596 maybe-check-etc \
1597 maybe-check-fastjar \
1598 maybe-check-fileutils \
1599 maybe-check-findutils \
1600 maybe-check-find \
1601 maybe-check-flex \
1602 maybe-check-gas \
1603 maybe-check-gawk \
1604 maybe-check-gettext \
1605 maybe-check-gnuserv \
1606 maybe-check-gprof \
1607 maybe-check-gzip \
1608 maybe-check-hello \
1609 maybe-check-indent \
1610 maybe-check-intl \
1611 maybe-check-tcl \
1612 maybe-check-itcl \
1613 maybe-check-ld \
1614 maybe-check-libgui \
1615 maybe-check-libiberty \
1616 maybe-check-libtool \
1617 maybe-check-m4 \
1618 maybe-check-make \
1619 maybe-check-mmalloc \
1620 maybe-check-patch \
1621 maybe-check-perl \
1622 maybe-check-prms \
1623 maybe-check-rcs \
1624 maybe-check-readline \
1625 maybe-check-release \
1626 maybe-check-recode \
1627 maybe-check-sed \
1628 maybe-check-send-pr \
1629 maybe-check-shellutils \
1630 maybe-check-sid \
1631 maybe-check-sim \
1632 maybe-check-tar \
1633 maybe-check-texinfo \
1634 maybe-check-textutils \
1635 maybe-check-time \
1636 maybe-check-uudecode \
1637 maybe-check-wdiff \
1638 maybe-check-zip \
1639 maybe-check-zlib \
1640 maybe-check-gdb \
1641 maybe-check-expect \
1642 maybe-check-guile \
1643 maybe-check-tk \
1644 maybe-check-tix \
1645 maybe-check-libtermcap \
1646 maybe-check-utils \
1647 maybe-check-target-libstdc++-v3 \
1648 maybe-check-target-newlib \
1649 maybe-check-target-libf2c \
1650 maybe-check-target-libobjc \
1651 maybe-check-target-libtermcap \
1652 maybe-check-target-winsup \
1653 maybe-check-target-libgloss \
1654 maybe-check-target-libiberty \
1655 maybe-check-target-gperf \
1656 maybe-check-target-examples \
1657 maybe-check-target-libffi \
1658 maybe-check-target-libjava \
1659 maybe-check-target-zlib \
1660 maybe-check-target-boehm-gc \
1661 maybe-check-target-qthreads \
1662 maybe-check-target-rda \
1663 maybe-check-target-libada
1665 # Automated reporting of test results.
1667 warning.log: build.log
1668 $(srcdir)/contrib/warn_summary build.log > $@
1670 mail-report.log:
1671 if test x'$(BOOT_CFLAGS)' != x''; then \
1672 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1673 fi; \
1674 $(srcdir)/contrib/test_summary -t >$@
1675 chmod +x $@
1676 echo If you really want to send e-mail, run ./$@ now
1678 mail-report-with-warnings.log: warning.log
1679 if test x'$(BOOT_CFLAGS)' != x''; then \
1680 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1681 fi; \
1682 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1683 chmod +x $@
1684 echo If you really want to send e-mail, run ./$@ now
1686 # Installation targets.
1688 .PHONY: install uninstall
1689 install: installdirs install-host install-target
1691 .PHONY: install-host-nogcc
1692 install-host-nogcc: \
1693 maybe-install-ash \
1694 maybe-install-autoconf \
1695 maybe-install-automake \
1696 maybe-install-bash \
1697 maybe-install-bfd \
1698 maybe-install-opcodes \
1699 maybe-install-binutils \
1700 maybe-install-bison \
1701 maybe-install-byacc \
1702 maybe-install-bzip2 \
1703 maybe-install-dejagnu \
1704 maybe-install-diff \
1705 maybe-install-dosutils \
1706 maybe-install-etc \
1707 maybe-install-fastjar \
1708 maybe-install-fileutils \
1709 maybe-install-findutils \
1710 maybe-install-find \
1711 maybe-install-flex \
1712 maybe-install-gas \
1713 maybe-install-gawk \
1714 maybe-install-gettext \
1715 maybe-install-gnuserv \
1716 maybe-install-gprof \
1717 maybe-install-gzip \
1718 maybe-install-hello \
1719 maybe-install-indent \
1720 maybe-install-intl \
1721 maybe-install-tcl \
1722 maybe-install-itcl \
1723 maybe-install-ld \
1724 maybe-install-libgui \
1725 maybe-install-libiberty \
1726 maybe-install-libtool \
1727 maybe-install-m4 \
1728 maybe-install-make \
1729 maybe-install-mmalloc \
1730 maybe-install-patch \
1731 maybe-install-perl \
1732 maybe-install-prms \
1733 maybe-install-rcs \
1734 maybe-install-readline \
1735 maybe-install-release \
1736 maybe-install-recode \
1737 maybe-install-sed \
1738 maybe-install-send-pr \
1739 maybe-install-shellutils \
1740 maybe-install-sid \
1741 maybe-install-sim \
1742 maybe-install-tar \
1743 maybe-install-texinfo \
1744 maybe-install-textutils \
1745 maybe-install-time \
1746 maybe-install-uudecode \
1747 maybe-install-wdiff \
1748 maybe-install-zip \
1749 maybe-install-zlib \
1750 maybe-install-gdb \
1751 maybe-install-expect \
1752 maybe-install-guile \
1753 maybe-install-tk \
1754 maybe-install-tix \
1755 maybe-install-libtermcap \
1756 maybe-install-utils
1758 .PHONY: install-host
1759 install-host: maybe-install-gcc \
1760 maybe-install-ash \
1761 maybe-install-autoconf \
1762 maybe-install-automake \
1763 maybe-install-bash \
1764 maybe-install-bfd \
1765 maybe-install-opcodes \
1766 maybe-install-binutils \
1767 maybe-install-bison \
1768 maybe-install-byacc \
1769 maybe-install-bzip2 \
1770 maybe-install-dejagnu \
1771 maybe-install-diff \
1772 maybe-install-dosutils \
1773 maybe-install-etc \
1774 maybe-install-fastjar \
1775 maybe-install-fileutils \
1776 maybe-install-findutils \
1777 maybe-install-find \
1778 maybe-install-flex \
1779 maybe-install-gas \
1780 maybe-install-gawk \
1781 maybe-install-gettext \
1782 maybe-install-gnuserv \
1783 maybe-install-gprof \
1784 maybe-install-gzip \
1785 maybe-install-hello \
1786 maybe-install-indent \
1787 maybe-install-intl \
1788 maybe-install-tcl \
1789 maybe-install-itcl \
1790 maybe-install-ld \
1791 maybe-install-libgui \
1792 maybe-install-libiberty \
1793 maybe-install-libtool \
1794 maybe-install-m4 \
1795 maybe-install-make \
1796 maybe-install-mmalloc \
1797 maybe-install-patch \
1798 maybe-install-perl \
1799 maybe-install-prms \
1800 maybe-install-rcs \
1801 maybe-install-readline \
1802 maybe-install-release \
1803 maybe-install-recode \
1804 maybe-install-sed \
1805 maybe-install-send-pr \
1806 maybe-install-shellutils \
1807 maybe-install-sid \
1808 maybe-install-sim \
1809 maybe-install-tar \
1810 maybe-install-texinfo \
1811 maybe-install-textutils \
1812 maybe-install-time \
1813 maybe-install-uudecode \
1814 maybe-install-wdiff \
1815 maybe-install-zip \
1816 maybe-install-zlib \
1817 maybe-install-gdb \
1818 maybe-install-expect \
1819 maybe-install-guile \
1820 maybe-install-tk \
1821 maybe-install-tix \
1822 maybe-install-libtermcap \
1823 maybe-install-utils
1825 .PHONY: install-target
1826 install-target: \
1827 maybe-install-target-libstdc++-v3 \
1828 maybe-install-target-newlib \
1829 maybe-install-target-libf2c \
1830 maybe-install-target-libobjc \
1831 maybe-install-target-libtermcap \
1832 maybe-install-target-winsup \
1833 maybe-install-target-libgloss \
1834 maybe-install-target-libiberty \
1835 maybe-install-target-gperf \
1836 maybe-install-target-examples \
1837 maybe-install-target-libffi \
1838 maybe-install-target-libjava \
1839 maybe-install-target-zlib \
1840 maybe-install-target-boehm-gc \
1841 maybe-install-target-qthreads \
1842 maybe-install-target-rda \
1843 maybe-install-target-libada
1845 uninstall:
1846 @echo "the uninstall target is not supported in this tree"
1848 .PHONY: install.all
1849 install.all: install-no-fixedincludes
1850 @if [ -f ./gcc/Makefile ] ; then \
1851 r=`${PWD_COMMAND}` ; export r ; \
1852 $(SET_LIB_PATH) \
1853 (cd ./gcc && \
1854 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1855 else \
1856 true ; \
1859 # install-no-fixedincludes is used because Cygnus can not distribute
1860 # the fixed header files.
1861 .PHONY: install-no-fixedincludes
1862 install-no-fixedincludes: installdirs install-host-nogcc \
1863 install-target gcc-no-fixedincludes
1865 ### other supporting targets
1867 MAKEDIRS= \
1868 $(DESTDIR)$(prefix) \
1869 $(DESTDIR)$(exec_prefix)
1870 .PHONY: installdirs
1871 installdirs: mkinstalldirs
1872 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1874 dir.info: do-install-info
1875 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1876 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1877 mv -f dir.info.new dir.info ; \
1878 else true ; \
1881 dist:
1882 @echo "Building a full distribution of this tree isn't done"
1883 @echo "via 'make dist'. Check out the etc/ subdirectory"
1885 etags tags: TAGS
1887 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1888 # ability to use several tags files at once, so there is probably no need
1889 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1890 # (if we felt like it) have this Makefile write a piece of elisp which
1891 # the user could load to tell emacs19 where all the TAGS files we just
1892 # built are.
1893 TAGS: do-TAGS
1895 # --------------------------------------
1896 # Modules which run on the build machine
1897 # --------------------------------------
1899 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1900 maybe-configure-build-libiberty:
1901 configure-build-libiberty:
1902 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1903 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1904 r=`${PWD_COMMAND}`; export r; \
1905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1906 AR="$(AR_FOR_BUILD)"; export AR; \
1907 AS="$(AS_FOR_BUILD)"; export AS; \
1908 CC="$(CC_FOR_BUILD)"; export CC; \
1909 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1910 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1911 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1912 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1913 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1914 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1915 LD="$(LD_FOR_BUILD)"; export LD; \
1916 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1917 NM="$(NM_FOR_BUILD)"; export NM; \
1918 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1919 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1920 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1921 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1922 case $(srcdir) in \
1923 /* | [A-Za-z]:[\\/]*) \
1924 topdir=$(srcdir) ;; \
1925 *) \
1926 case "$(BUILD_SUBDIR)" in \
1927 .) topdir="../$(srcdir)" ;; \
1928 *) topdir="../../$(srcdir)" ;; \
1929 esac ;; \
1930 esac; \
1931 if [ "$(srcdir)" = "." ] ; then \
1932 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1933 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1934 if [ -f Makefile ]; then \
1935 if $(MAKE) distclean; then \
1936 true; \
1937 else \
1938 exit 1; \
1939 fi; \
1940 else \
1941 true; \
1942 fi; \
1943 else \
1944 exit 1; \
1945 fi; \
1946 else \
1947 true; \
1948 fi; \
1949 srcdiroption="--srcdir=."; \
1950 libsrcdir="."; \
1951 else \
1952 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1953 libsrcdir="$$s/libiberty"; \
1954 fi; \
1955 rm -f no-such-file || : ; \
1956 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1957 $(BUILD_CONFIGARGS) $${srcdiroption} \
1958 --with-build-subdir="$(BUILD_SUBDIR)" \
1959 || exit 1
1961 .PHONY: all-build-libiberty maybe-all-build-libiberty
1962 maybe-all-build-libiberty:
1963 all-build-libiberty: configure-build-libiberty
1964 @r=`${PWD_COMMAND}`; export r; \
1965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1966 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1969 # --------------------------------------
1970 # Modules which run on the host machine
1971 # --------------------------------------
1973 .PHONY: configure-ash maybe-configure-ash
1974 maybe-configure-ash:
1975 configure-ash:
1976 @test ! -f ash/Makefile || exit 0; \
1977 [ -d ash ] || mkdir ash; \
1978 r=`${PWD_COMMAND}`; export r; \
1979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1980 CC="$(CC)"; export CC; \
1981 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1982 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1983 CXX="$(CXX)"; export CXX; \
1984 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1985 AR="$(AR)"; export AR; \
1986 AS="$(AS)"; export AS; \
1987 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1988 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1989 LD="$(LD)"; export LD; \
1990 NM="$(NM)"; export NM; \
1991 RANLIB="$(RANLIB)"; export RANLIB; \
1992 WINDRES="$(WINDRES)"; export WINDRES; \
1993 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1994 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
1995 echo Configuring in ash; \
1996 cd ash || exit 1; \
1997 case $(srcdir) in \
1998 \.) \
1999 srcdiroption="--srcdir=."; \
2000 libsrcdir=".";; \
2001 /* | [A-Za-z]:[\\/]*) \
2002 srcdiroption="--srcdir=$(srcdir)/ash"; \
2003 libsrcdir="$$s/ash";; \
2004 *) \
2005 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2006 libsrcdir="$$s/ash";; \
2007 esac; \
2008 $(SHELL) $${libsrcdir}/configure \
2009 $(HOST_CONFIGARGS) $${srcdiroption} \
2010 || exit 1
2012 .PHONY: all-ash maybe-all-ash
2013 maybe-all-ash:
2014 all-ash: configure-ash
2015 @r=`${PWD_COMMAND}`; export r; \
2016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2017 $(SET_LIB_PATH) \
2018 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2020 .PHONY: check-ash maybe-check-ash
2021 maybe-check-ash:
2023 check-ash:
2024 @r=`${PWD_COMMAND}`; export r; \
2025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2026 $(SET_LIB_PATH) \
2027 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2030 .PHONY: install-ash maybe-install-ash
2031 maybe-install-ash:
2033 install-ash: installdirs
2034 @r=`${PWD_COMMAND}`; export r; \
2035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2036 $(SET_LIB_PATH) \
2037 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2040 # Other targets (info, dvi, etc.)
2042 .PHONY: maybe-info-ash info-ash
2043 maybe-info-ash:
2045 info-ash: \
2046 configure-ash
2047 @[ -f ./ash/Makefile ] || exit 0; \
2048 r=`${PWD_COMMAND}`; export r; \
2049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2050 $(SET_LIB_PATH) \
2051 for flag in $(EXTRA_HOST_FLAGS); do \
2052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2053 done; \
2054 echo "Doing info in ash" ; \
2055 (cd ash && \
2056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2058 "RANLIB=$${RANLIB}" \
2059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2060 info) \
2061 || exit 1
2064 .PHONY: maybe-dvi-ash dvi-ash
2065 maybe-dvi-ash:
2067 dvi-ash: \
2068 configure-ash
2069 @[ -f ./ash/Makefile ] || exit 0; \
2070 r=`${PWD_COMMAND}`; export r; \
2071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2072 $(SET_LIB_PATH) \
2073 for flag in $(EXTRA_HOST_FLAGS); do \
2074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2075 done; \
2076 echo "Doing dvi in ash" ; \
2077 (cd ash && \
2078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2080 "RANLIB=$${RANLIB}" \
2081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2082 dvi) \
2083 || exit 1
2086 .PHONY: maybe-TAGS-ash TAGS-ash
2087 maybe-TAGS-ash:
2089 TAGS-ash: \
2090 configure-ash
2091 @[ -f ./ash/Makefile ] || exit 0; \
2092 r=`${PWD_COMMAND}`; export r; \
2093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2094 $(SET_LIB_PATH) \
2095 for flag in $(EXTRA_HOST_FLAGS); do \
2096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2097 done; \
2098 echo "Doing TAGS in ash" ; \
2099 (cd ash && \
2100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2102 "RANLIB=$${RANLIB}" \
2103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2104 TAGS) \
2105 || exit 1
2108 .PHONY: maybe-install-info-ash install-info-ash
2109 maybe-install-info-ash:
2111 install-info-ash: \
2112 configure-ash \
2113 info-ash
2114 @[ -f ./ash/Makefile ] || exit 0; \
2115 r=`${PWD_COMMAND}`; export r; \
2116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2117 $(SET_LIB_PATH) \
2118 for flag in $(EXTRA_HOST_FLAGS); do \
2119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2120 done; \
2121 echo "Doing install-info in ash" ; \
2122 (cd ash && \
2123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2125 "RANLIB=$${RANLIB}" \
2126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2127 install-info) \
2128 || exit 1
2131 .PHONY: maybe-installcheck-ash installcheck-ash
2132 maybe-installcheck-ash:
2134 installcheck-ash: \
2135 configure-ash
2136 @[ -f ./ash/Makefile ] || exit 0; \
2137 r=`${PWD_COMMAND}`; export r; \
2138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2139 $(SET_LIB_PATH) \
2140 for flag in $(EXTRA_HOST_FLAGS); do \
2141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2142 done; \
2143 echo "Doing installcheck in ash" ; \
2144 (cd ash && \
2145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2147 "RANLIB=$${RANLIB}" \
2148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2149 installcheck) \
2150 || exit 1
2153 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2154 maybe-mostlyclean-ash:
2156 mostlyclean-ash:
2157 @[ -f ./ash/Makefile ] || exit 0; \
2158 r=`${PWD_COMMAND}`; export r; \
2159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2160 $(SET_LIB_PATH) \
2161 for flag in $(EXTRA_HOST_FLAGS); do \
2162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2163 done; \
2164 echo "Doing mostlyclean in ash" ; \
2165 (cd ash && \
2166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2168 "RANLIB=$${RANLIB}" \
2169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2170 mostlyclean) \
2171 || exit 1
2174 .PHONY: maybe-clean-ash clean-ash
2175 maybe-clean-ash:
2177 clean-ash:
2178 @[ -f ./ash/Makefile ] || exit 0; \
2179 r=`${PWD_COMMAND}`; export r; \
2180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2181 $(SET_LIB_PATH) \
2182 for flag in $(EXTRA_HOST_FLAGS); do \
2183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2184 done; \
2185 echo "Doing clean in ash" ; \
2186 (cd ash && \
2187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2189 "RANLIB=$${RANLIB}" \
2190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2191 clean) \
2192 || exit 1
2195 .PHONY: maybe-distclean-ash distclean-ash
2196 maybe-distclean-ash:
2198 distclean-ash:
2199 @[ -f ./ash/Makefile ] || exit 0; \
2200 r=`${PWD_COMMAND}`; export r; \
2201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2202 $(SET_LIB_PATH) \
2203 for flag in $(EXTRA_HOST_FLAGS); do \
2204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2205 done; \
2206 echo "Doing distclean in ash" ; \
2207 (cd ash && \
2208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2210 "RANLIB=$${RANLIB}" \
2211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2212 distclean) \
2213 || exit 1
2216 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2217 maybe-maintainer-clean-ash:
2219 maintainer-clean-ash:
2220 @[ -f ./ash/Makefile ] || exit 0; \
2221 r=`${PWD_COMMAND}`; export r; \
2222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2223 $(SET_LIB_PATH) \
2224 for flag in $(EXTRA_HOST_FLAGS); do \
2225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2226 done; \
2227 echo "Doing maintainer-clean in ash" ; \
2228 (cd ash && \
2229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2231 "RANLIB=$${RANLIB}" \
2232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2233 maintainer-clean) \
2234 || exit 1
2238 .PHONY: configure-autoconf maybe-configure-autoconf
2239 maybe-configure-autoconf:
2240 configure-autoconf:
2241 @test ! -f autoconf/Makefile || exit 0; \
2242 [ -d autoconf ] || mkdir autoconf; \
2243 r=`${PWD_COMMAND}`; export r; \
2244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2245 CC="$(CC)"; export CC; \
2246 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2247 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2248 CXX="$(CXX)"; export CXX; \
2249 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2250 AR="$(AR)"; export AR; \
2251 AS="$(AS)"; export AS; \
2252 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2253 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2254 LD="$(LD)"; export LD; \
2255 NM="$(NM)"; export NM; \
2256 RANLIB="$(RANLIB)"; export RANLIB; \
2257 WINDRES="$(WINDRES)"; export WINDRES; \
2258 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2259 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2260 echo Configuring in autoconf; \
2261 cd autoconf || exit 1; \
2262 case $(srcdir) in \
2263 \.) \
2264 srcdiroption="--srcdir=."; \
2265 libsrcdir=".";; \
2266 /* | [A-Za-z]:[\\/]*) \
2267 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2268 libsrcdir="$$s/autoconf";; \
2269 *) \
2270 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2271 libsrcdir="$$s/autoconf";; \
2272 esac; \
2273 $(SHELL) $${libsrcdir}/configure \
2274 $(HOST_CONFIGARGS) $${srcdiroption} \
2275 || exit 1
2277 .PHONY: all-autoconf maybe-all-autoconf
2278 maybe-all-autoconf:
2279 all-autoconf: configure-autoconf
2280 @r=`${PWD_COMMAND}`; export r; \
2281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2282 $(SET_LIB_PATH) \
2283 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2285 .PHONY: check-autoconf maybe-check-autoconf
2286 maybe-check-autoconf:
2288 check-autoconf:
2289 @r=`${PWD_COMMAND}`; export r; \
2290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2291 $(SET_LIB_PATH) \
2292 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2295 .PHONY: install-autoconf maybe-install-autoconf
2296 maybe-install-autoconf:
2298 install-autoconf: installdirs
2299 @r=`${PWD_COMMAND}`; export r; \
2300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2301 $(SET_LIB_PATH) \
2302 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2305 # Other targets (info, dvi, etc.)
2307 .PHONY: maybe-info-autoconf info-autoconf
2308 maybe-info-autoconf:
2310 info-autoconf: \
2311 configure-autoconf
2312 @[ -f ./autoconf/Makefile ] || exit 0; \
2313 r=`${PWD_COMMAND}`; export r; \
2314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2315 $(SET_LIB_PATH) \
2316 for flag in $(EXTRA_HOST_FLAGS); do \
2317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2318 done; \
2319 echo "Doing info in autoconf" ; \
2320 (cd autoconf && \
2321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2323 "RANLIB=$${RANLIB}" \
2324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2325 info) \
2326 || exit 1
2329 .PHONY: maybe-dvi-autoconf dvi-autoconf
2330 maybe-dvi-autoconf:
2332 dvi-autoconf: \
2333 configure-autoconf
2334 @[ -f ./autoconf/Makefile ] || exit 0; \
2335 r=`${PWD_COMMAND}`; export r; \
2336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2337 $(SET_LIB_PATH) \
2338 for flag in $(EXTRA_HOST_FLAGS); do \
2339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2340 done; \
2341 echo "Doing dvi in autoconf" ; \
2342 (cd autoconf && \
2343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2345 "RANLIB=$${RANLIB}" \
2346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2347 dvi) \
2348 || exit 1
2351 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2352 maybe-TAGS-autoconf:
2354 TAGS-autoconf: \
2355 configure-autoconf
2356 @[ -f ./autoconf/Makefile ] || exit 0; \
2357 r=`${PWD_COMMAND}`; export r; \
2358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2359 $(SET_LIB_PATH) \
2360 for flag in $(EXTRA_HOST_FLAGS); do \
2361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2362 done; \
2363 echo "Doing TAGS in autoconf" ; \
2364 (cd autoconf && \
2365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2367 "RANLIB=$${RANLIB}" \
2368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2369 TAGS) \
2370 || exit 1
2373 .PHONY: maybe-install-info-autoconf install-info-autoconf
2374 maybe-install-info-autoconf:
2376 install-info-autoconf: \
2377 configure-autoconf \
2378 info-autoconf
2379 @[ -f ./autoconf/Makefile ] || exit 0; \
2380 r=`${PWD_COMMAND}`; export r; \
2381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2382 $(SET_LIB_PATH) \
2383 for flag in $(EXTRA_HOST_FLAGS); do \
2384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2385 done; \
2386 echo "Doing install-info in autoconf" ; \
2387 (cd autoconf && \
2388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2390 "RANLIB=$${RANLIB}" \
2391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2392 install-info) \
2393 || exit 1
2396 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2397 maybe-installcheck-autoconf:
2399 installcheck-autoconf: \
2400 configure-autoconf
2401 @[ -f ./autoconf/Makefile ] || exit 0; \
2402 r=`${PWD_COMMAND}`; export r; \
2403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2404 $(SET_LIB_PATH) \
2405 for flag in $(EXTRA_HOST_FLAGS); do \
2406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2407 done; \
2408 echo "Doing installcheck in autoconf" ; \
2409 (cd autoconf && \
2410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2412 "RANLIB=$${RANLIB}" \
2413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2414 installcheck) \
2415 || exit 1
2418 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
2419 maybe-mostlyclean-autoconf:
2421 mostlyclean-autoconf:
2422 @[ -f ./autoconf/Makefile ] || exit 0; \
2423 r=`${PWD_COMMAND}`; export r; \
2424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2425 $(SET_LIB_PATH) \
2426 for flag in $(EXTRA_HOST_FLAGS); do \
2427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2428 done; \
2429 echo "Doing mostlyclean in autoconf" ; \
2430 (cd autoconf && \
2431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2433 "RANLIB=$${RANLIB}" \
2434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2435 mostlyclean) \
2436 || exit 1
2439 .PHONY: maybe-clean-autoconf clean-autoconf
2440 maybe-clean-autoconf:
2442 clean-autoconf:
2443 @[ -f ./autoconf/Makefile ] || exit 0; \
2444 r=`${PWD_COMMAND}`; export r; \
2445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2446 $(SET_LIB_PATH) \
2447 for flag in $(EXTRA_HOST_FLAGS); do \
2448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2449 done; \
2450 echo "Doing clean in autoconf" ; \
2451 (cd autoconf && \
2452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2454 "RANLIB=$${RANLIB}" \
2455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2456 clean) \
2457 || exit 1
2460 .PHONY: maybe-distclean-autoconf distclean-autoconf
2461 maybe-distclean-autoconf:
2463 distclean-autoconf:
2464 @[ -f ./autoconf/Makefile ] || exit 0; \
2465 r=`${PWD_COMMAND}`; export r; \
2466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2467 $(SET_LIB_PATH) \
2468 for flag in $(EXTRA_HOST_FLAGS); do \
2469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2470 done; \
2471 echo "Doing distclean in autoconf" ; \
2472 (cd autoconf && \
2473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2475 "RANLIB=$${RANLIB}" \
2476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2477 distclean) \
2478 || exit 1
2481 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
2482 maybe-maintainer-clean-autoconf:
2484 maintainer-clean-autoconf:
2485 @[ -f ./autoconf/Makefile ] || exit 0; \
2486 r=`${PWD_COMMAND}`; export r; \
2487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2488 $(SET_LIB_PATH) \
2489 for flag in $(EXTRA_HOST_FLAGS); do \
2490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2491 done; \
2492 echo "Doing maintainer-clean in autoconf" ; \
2493 (cd autoconf && \
2494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2496 "RANLIB=$${RANLIB}" \
2497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2498 maintainer-clean) \
2499 || exit 1
2503 .PHONY: configure-automake maybe-configure-automake
2504 maybe-configure-automake:
2505 configure-automake:
2506 @test ! -f automake/Makefile || exit 0; \
2507 [ -d automake ] || mkdir automake; \
2508 r=`${PWD_COMMAND}`; export r; \
2509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2510 CC="$(CC)"; export CC; \
2511 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2512 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2513 CXX="$(CXX)"; export CXX; \
2514 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2515 AR="$(AR)"; export AR; \
2516 AS="$(AS)"; export AS; \
2517 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2518 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2519 LD="$(LD)"; export LD; \
2520 NM="$(NM)"; export NM; \
2521 RANLIB="$(RANLIB)"; export RANLIB; \
2522 WINDRES="$(WINDRES)"; export WINDRES; \
2523 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2524 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2525 echo Configuring in automake; \
2526 cd automake || exit 1; \
2527 case $(srcdir) in \
2528 \.) \
2529 srcdiroption="--srcdir=."; \
2530 libsrcdir=".";; \
2531 /* | [A-Za-z]:[\\/]*) \
2532 srcdiroption="--srcdir=$(srcdir)/automake"; \
2533 libsrcdir="$$s/automake";; \
2534 *) \
2535 srcdiroption="--srcdir=../$(srcdir)/automake"; \
2536 libsrcdir="$$s/automake";; \
2537 esac; \
2538 $(SHELL) $${libsrcdir}/configure \
2539 $(HOST_CONFIGARGS) $${srcdiroption} \
2540 || exit 1
2542 .PHONY: all-automake maybe-all-automake
2543 maybe-all-automake:
2544 all-automake: configure-automake
2545 @r=`${PWD_COMMAND}`; export r; \
2546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2547 $(SET_LIB_PATH) \
2548 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
2550 .PHONY: check-automake maybe-check-automake
2551 maybe-check-automake:
2553 check-automake:
2554 @r=`${PWD_COMMAND}`; export r; \
2555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2556 $(SET_LIB_PATH) \
2557 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
2560 .PHONY: install-automake maybe-install-automake
2561 maybe-install-automake:
2563 install-automake: installdirs
2564 @r=`${PWD_COMMAND}`; export r; \
2565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2566 $(SET_LIB_PATH) \
2567 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2570 # Other targets (info, dvi, etc.)
2572 .PHONY: maybe-info-automake info-automake
2573 maybe-info-automake:
2575 info-automake: \
2576 configure-automake
2577 @[ -f ./automake/Makefile ] || exit 0; \
2578 r=`${PWD_COMMAND}`; export r; \
2579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2580 $(SET_LIB_PATH) \
2581 for flag in $(EXTRA_HOST_FLAGS); do \
2582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2583 done; \
2584 echo "Doing info in automake" ; \
2585 (cd automake && \
2586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2588 "RANLIB=$${RANLIB}" \
2589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2590 info) \
2591 || exit 1
2594 .PHONY: maybe-dvi-automake dvi-automake
2595 maybe-dvi-automake:
2597 dvi-automake: \
2598 configure-automake
2599 @[ -f ./automake/Makefile ] || exit 0; \
2600 r=`${PWD_COMMAND}`; export r; \
2601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2602 $(SET_LIB_PATH) \
2603 for flag in $(EXTRA_HOST_FLAGS); do \
2604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2605 done; \
2606 echo "Doing dvi in automake" ; \
2607 (cd automake && \
2608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2610 "RANLIB=$${RANLIB}" \
2611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2612 dvi) \
2613 || exit 1
2616 .PHONY: maybe-TAGS-automake TAGS-automake
2617 maybe-TAGS-automake:
2619 TAGS-automake: \
2620 configure-automake
2621 @[ -f ./automake/Makefile ] || exit 0; \
2622 r=`${PWD_COMMAND}`; export r; \
2623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2624 $(SET_LIB_PATH) \
2625 for flag in $(EXTRA_HOST_FLAGS); do \
2626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2627 done; \
2628 echo "Doing TAGS in automake" ; \
2629 (cd automake && \
2630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2632 "RANLIB=$${RANLIB}" \
2633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2634 TAGS) \
2635 || exit 1
2638 .PHONY: maybe-install-info-automake install-info-automake
2639 maybe-install-info-automake:
2641 install-info-automake: \
2642 configure-automake \
2643 info-automake
2644 @[ -f ./automake/Makefile ] || exit 0; \
2645 r=`${PWD_COMMAND}`; export r; \
2646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2647 $(SET_LIB_PATH) \
2648 for flag in $(EXTRA_HOST_FLAGS); do \
2649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2650 done; \
2651 echo "Doing install-info in automake" ; \
2652 (cd automake && \
2653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2655 "RANLIB=$${RANLIB}" \
2656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2657 install-info) \
2658 || exit 1
2661 .PHONY: maybe-installcheck-automake installcheck-automake
2662 maybe-installcheck-automake:
2664 installcheck-automake: \
2665 configure-automake
2666 @[ -f ./automake/Makefile ] || exit 0; \
2667 r=`${PWD_COMMAND}`; export r; \
2668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2669 $(SET_LIB_PATH) \
2670 for flag in $(EXTRA_HOST_FLAGS); do \
2671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2672 done; \
2673 echo "Doing installcheck in automake" ; \
2674 (cd automake && \
2675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2677 "RANLIB=$${RANLIB}" \
2678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2679 installcheck) \
2680 || exit 1
2683 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
2684 maybe-mostlyclean-automake:
2686 mostlyclean-automake:
2687 @[ -f ./automake/Makefile ] || exit 0; \
2688 r=`${PWD_COMMAND}`; export r; \
2689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2690 $(SET_LIB_PATH) \
2691 for flag in $(EXTRA_HOST_FLAGS); do \
2692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2693 done; \
2694 echo "Doing mostlyclean in automake" ; \
2695 (cd automake && \
2696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2698 "RANLIB=$${RANLIB}" \
2699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2700 mostlyclean) \
2701 || exit 1
2704 .PHONY: maybe-clean-automake clean-automake
2705 maybe-clean-automake:
2707 clean-automake:
2708 @[ -f ./automake/Makefile ] || exit 0; \
2709 r=`${PWD_COMMAND}`; export r; \
2710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2711 $(SET_LIB_PATH) \
2712 for flag in $(EXTRA_HOST_FLAGS); do \
2713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2714 done; \
2715 echo "Doing clean in automake" ; \
2716 (cd automake && \
2717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2719 "RANLIB=$${RANLIB}" \
2720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2721 clean) \
2722 || exit 1
2725 .PHONY: maybe-distclean-automake distclean-automake
2726 maybe-distclean-automake:
2728 distclean-automake:
2729 @[ -f ./automake/Makefile ] || exit 0; \
2730 r=`${PWD_COMMAND}`; export r; \
2731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2732 $(SET_LIB_PATH) \
2733 for flag in $(EXTRA_HOST_FLAGS); do \
2734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2735 done; \
2736 echo "Doing distclean in automake" ; \
2737 (cd automake && \
2738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2740 "RANLIB=$${RANLIB}" \
2741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2742 distclean) \
2743 || exit 1
2746 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
2747 maybe-maintainer-clean-automake:
2749 maintainer-clean-automake:
2750 @[ -f ./automake/Makefile ] || exit 0; \
2751 r=`${PWD_COMMAND}`; export r; \
2752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2753 $(SET_LIB_PATH) \
2754 for flag in $(EXTRA_HOST_FLAGS); do \
2755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2756 done; \
2757 echo "Doing maintainer-clean in automake" ; \
2758 (cd automake && \
2759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2761 "RANLIB=$${RANLIB}" \
2762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2763 maintainer-clean) \
2764 || exit 1
2768 .PHONY: configure-bash maybe-configure-bash
2769 maybe-configure-bash:
2770 configure-bash:
2771 @test ! -f bash/Makefile || exit 0; \
2772 [ -d bash ] || mkdir bash; \
2773 r=`${PWD_COMMAND}`; export r; \
2774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2775 CC="$(CC)"; export CC; \
2776 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2777 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2778 CXX="$(CXX)"; export CXX; \
2779 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2780 AR="$(AR)"; export AR; \
2781 AS="$(AS)"; export AS; \
2782 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2783 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2784 LD="$(LD)"; export LD; \
2785 NM="$(NM)"; export NM; \
2786 RANLIB="$(RANLIB)"; export RANLIB; \
2787 WINDRES="$(WINDRES)"; export WINDRES; \
2788 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2789 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2790 echo Configuring in bash; \
2791 cd bash || exit 1; \
2792 case $(srcdir) in \
2793 \.) \
2794 srcdiroption="--srcdir=."; \
2795 libsrcdir=".";; \
2796 /* | [A-Za-z]:[\\/]*) \
2797 srcdiroption="--srcdir=$(srcdir)/bash"; \
2798 libsrcdir="$$s/bash";; \
2799 *) \
2800 srcdiroption="--srcdir=../$(srcdir)/bash"; \
2801 libsrcdir="$$s/bash";; \
2802 esac; \
2803 $(SHELL) $${libsrcdir}/configure \
2804 $(HOST_CONFIGARGS) $${srcdiroption} \
2805 || exit 1
2807 .PHONY: all-bash maybe-all-bash
2808 maybe-all-bash:
2809 all-bash: configure-bash
2810 @r=`${PWD_COMMAND}`; export r; \
2811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2812 $(SET_LIB_PATH) \
2813 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
2815 .PHONY: check-bash maybe-check-bash
2816 maybe-check-bash:
2818 check-bash:
2819 @r=`${PWD_COMMAND}`; export r; \
2820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2821 $(SET_LIB_PATH) \
2822 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
2825 .PHONY: install-bash maybe-install-bash
2826 maybe-install-bash:
2828 install-bash: installdirs
2829 @r=`${PWD_COMMAND}`; export r; \
2830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2831 $(SET_LIB_PATH) \
2832 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
2835 # Other targets (info, dvi, etc.)
2837 .PHONY: maybe-info-bash info-bash
2838 maybe-info-bash:
2840 info-bash: \
2841 configure-bash
2842 @[ -f ./bash/Makefile ] || exit 0; \
2843 r=`${PWD_COMMAND}`; export r; \
2844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2845 $(SET_LIB_PATH) \
2846 for flag in $(EXTRA_HOST_FLAGS); do \
2847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2848 done; \
2849 echo "Doing info in bash" ; \
2850 (cd bash && \
2851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2853 "RANLIB=$${RANLIB}" \
2854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2855 info) \
2856 || exit 1
2859 .PHONY: maybe-dvi-bash dvi-bash
2860 maybe-dvi-bash:
2862 dvi-bash: \
2863 configure-bash
2864 @[ -f ./bash/Makefile ] || exit 0; \
2865 r=`${PWD_COMMAND}`; export r; \
2866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2867 $(SET_LIB_PATH) \
2868 for flag in $(EXTRA_HOST_FLAGS); do \
2869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2870 done; \
2871 echo "Doing dvi in bash" ; \
2872 (cd bash && \
2873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2875 "RANLIB=$${RANLIB}" \
2876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2877 dvi) \
2878 || exit 1
2881 .PHONY: maybe-TAGS-bash TAGS-bash
2882 maybe-TAGS-bash:
2884 TAGS-bash: \
2885 configure-bash
2886 @[ -f ./bash/Makefile ] || exit 0; \
2887 r=`${PWD_COMMAND}`; export r; \
2888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2889 $(SET_LIB_PATH) \
2890 for flag in $(EXTRA_HOST_FLAGS); do \
2891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2892 done; \
2893 echo "Doing TAGS in bash" ; \
2894 (cd bash && \
2895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2897 "RANLIB=$${RANLIB}" \
2898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2899 TAGS) \
2900 || exit 1
2903 .PHONY: maybe-install-info-bash install-info-bash
2904 maybe-install-info-bash:
2906 install-info-bash: \
2907 configure-bash \
2908 info-bash
2909 @[ -f ./bash/Makefile ] || exit 0; \
2910 r=`${PWD_COMMAND}`; export r; \
2911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2912 $(SET_LIB_PATH) \
2913 for flag in $(EXTRA_HOST_FLAGS); do \
2914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2915 done; \
2916 echo "Doing install-info in bash" ; \
2917 (cd bash && \
2918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2920 "RANLIB=$${RANLIB}" \
2921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2922 install-info) \
2923 || exit 1
2926 .PHONY: maybe-installcheck-bash installcheck-bash
2927 maybe-installcheck-bash:
2929 installcheck-bash: \
2930 configure-bash
2931 @[ -f ./bash/Makefile ] || exit 0; \
2932 r=`${PWD_COMMAND}`; export r; \
2933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2934 $(SET_LIB_PATH) \
2935 for flag in $(EXTRA_HOST_FLAGS); do \
2936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2937 done; \
2938 echo "Doing installcheck in bash" ; \
2939 (cd bash && \
2940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2942 "RANLIB=$${RANLIB}" \
2943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2944 installcheck) \
2945 || exit 1
2948 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
2949 maybe-mostlyclean-bash:
2951 mostlyclean-bash:
2952 @[ -f ./bash/Makefile ] || exit 0; \
2953 r=`${PWD_COMMAND}`; export r; \
2954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2955 $(SET_LIB_PATH) \
2956 for flag in $(EXTRA_HOST_FLAGS); do \
2957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2958 done; \
2959 echo "Doing mostlyclean in bash" ; \
2960 (cd bash && \
2961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2963 "RANLIB=$${RANLIB}" \
2964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2965 mostlyclean) \
2966 || exit 1
2969 .PHONY: maybe-clean-bash clean-bash
2970 maybe-clean-bash:
2972 clean-bash:
2973 @[ -f ./bash/Makefile ] || exit 0; \
2974 r=`${PWD_COMMAND}`; export r; \
2975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2976 $(SET_LIB_PATH) \
2977 for flag in $(EXTRA_HOST_FLAGS); do \
2978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2979 done; \
2980 echo "Doing clean in bash" ; \
2981 (cd bash && \
2982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2984 "RANLIB=$${RANLIB}" \
2985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2986 clean) \
2987 || exit 1
2990 .PHONY: maybe-distclean-bash distclean-bash
2991 maybe-distclean-bash:
2993 distclean-bash:
2994 @[ -f ./bash/Makefile ] || exit 0; \
2995 r=`${PWD_COMMAND}`; export r; \
2996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2997 $(SET_LIB_PATH) \
2998 for flag in $(EXTRA_HOST_FLAGS); do \
2999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3000 done; \
3001 echo "Doing distclean in bash" ; \
3002 (cd bash && \
3003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3005 "RANLIB=$${RANLIB}" \
3006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3007 distclean) \
3008 || exit 1
3011 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3012 maybe-maintainer-clean-bash:
3014 maintainer-clean-bash:
3015 @[ -f ./bash/Makefile ] || exit 0; \
3016 r=`${PWD_COMMAND}`; export r; \
3017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3018 $(SET_LIB_PATH) \
3019 for flag in $(EXTRA_HOST_FLAGS); do \
3020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3021 done; \
3022 echo "Doing maintainer-clean in bash" ; \
3023 (cd bash && \
3024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3026 "RANLIB=$${RANLIB}" \
3027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3028 maintainer-clean) \
3029 || exit 1
3033 .PHONY: configure-bfd maybe-configure-bfd
3034 maybe-configure-bfd:
3035 configure-bfd:
3036 @test ! -f bfd/Makefile || exit 0; \
3037 [ -d bfd ] || mkdir bfd; \
3038 r=`${PWD_COMMAND}`; export r; \
3039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3040 CC="$(CC)"; export CC; \
3041 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3042 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3043 CXX="$(CXX)"; export CXX; \
3044 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3045 AR="$(AR)"; export AR; \
3046 AS="$(AS)"; export AS; \
3047 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3048 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3049 LD="$(LD)"; export LD; \
3050 NM="$(NM)"; export NM; \
3051 RANLIB="$(RANLIB)"; export RANLIB; \
3052 WINDRES="$(WINDRES)"; export WINDRES; \
3053 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3054 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3055 echo Configuring in bfd; \
3056 cd bfd || exit 1; \
3057 case $(srcdir) in \
3058 \.) \
3059 srcdiroption="--srcdir=."; \
3060 libsrcdir=".";; \
3061 /* | [A-Za-z]:[\\/]*) \
3062 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3063 libsrcdir="$$s/bfd";; \
3064 *) \
3065 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3066 libsrcdir="$$s/bfd";; \
3067 esac; \
3068 $(SHELL) $${libsrcdir}/configure \
3069 $(HOST_CONFIGARGS) $${srcdiroption} \
3070 || exit 1
3072 .PHONY: all-bfd maybe-all-bfd
3073 maybe-all-bfd:
3074 all-bfd: configure-bfd
3075 @r=`${PWD_COMMAND}`; export r; \
3076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3077 $(SET_LIB_PATH) \
3078 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
3080 .PHONY: check-bfd maybe-check-bfd
3081 maybe-check-bfd:
3083 check-bfd:
3084 @r=`${PWD_COMMAND}`; export r; \
3085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3086 $(SET_LIB_PATH) \
3087 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
3090 .PHONY: install-bfd maybe-install-bfd
3091 maybe-install-bfd:
3093 install-bfd: installdirs
3094 @r=`${PWD_COMMAND}`; export r; \
3095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3096 $(SET_LIB_PATH) \
3097 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
3100 # Other targets (info, dvi, etc.)
3102 .PHONY: maybe-info-bfd info-bfd
3103 maybe-info-bfd:
3105 info-bfd: \
3106 configure-bfd
3107 @[ -f ./bfd/Makefile ] || exit 0; \
3108 r=`${PWD_COMMAND}`; export r; \
3109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3110 $(SET_LIB_PATH) \
3111 for flag in $(EXTRA_HOST_FLAGS); do \
3112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3113 done; \
3114 echo "Doing info in bfd" ; \
3115 (cd bfd && \
3116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3118 "RANLIB=$${RANLIB}" \
3119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3120 info) \
3121 || exit 1
3124 .PHONY: maybe-dvi-bfd dvi-bfd
3125 maybe-dvi-bfd:
3127 dvi-bfd: \
3128 configure-bfd
3129 @[ -f ./bfd/Makefile ] || exit 0; \
3130 r=`${PWD_COMMAND}`; export r; \
3131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3132 $(SET_LIB_PATH) \
3133 for flag in $(EXTRA_HOST_FLAGS); do \
3134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3135 done; \
3136 echo "Doing dvi in bfd" ; \
3137 (cd bfd && \
3138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3140 "RANLIB=$${RANLIB}" \
3141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3142 dvi) \
3143 || exit 1
3146 .PHONY: maybe-TAGS-bfd TAGS-bfd
3147 maybe-TAGS-bfd:
3149 TAGS-bfd: \
3150 configure-bfd
3151 @[ -f ./bfd/Makefile ] || exit 0; \
3152 r=`${PWD_COMMAND}`; export r; \
3153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3154 $(SET_LIB_PATH) \
3155 for flag in $(EXTRA_HOST_FLAGS); do \
3156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3157 done; \
3158 echo "Doing TAGS in bfd" ; \
3159 (cd bfd && \
3160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3162 "RANLIB=$${RANLIB}" \
3163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3164 TAGS) \
3165 || exit 1
3168 .PHONY: maybe-install-info-bfd install-info-bfd
3169 maybe-install-info-bfd:
3171 install-info-bfd: \
3172 configure-bfd \
3173 info-bfd
3174 @[ -f ./bfd/Makefile ] || exit 0; \
3175 r=`${PWD_COMMAND}`; export r; \
3176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3177 $(SET_LIB_PATH) \
3178 for flag in $(EXTRA_HOST_FLAGS); do \
3179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3180 done; \
3181 echo "Doing install-info in bfd" ; \
3182 (cd bfd && \
3183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3185 "RANLIB=$${RANLIB}" \
3186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3187 install-info) \
3188 || exit 1
3191 .PHONY: maybe-installcheck-bfd installcheck-bfd
3192 maybe-installcheck-bfd:
3194 installcheck-bfd: \
3195 configure-bfd
3196 @[ -f ./bfd/Makefile ] || exit 0; \
3197 r=`${PWD_COMMAND}`; export r; \
3198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3199 $(SET_LIB_PATH) \
3200 for flag in $(EXTRA_HOST_FLAGS); do \
3201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3202 done; \
3203 echo "Doing installcheck in bfd" ; \
3204 (cd bfd && \
3205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3207 "RANLIB=$${RANLIB}" \
3208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3209 installcheck) \
3210 || exit 1
3213 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3214 maybe-mostlyclean-bfd:
3216 mostlyclean-bfd:
3217 @[ -f ./bfd/Makefile ] || exit 0; \
3218 r=`${PWD_COMMAND}`; export r; \
3219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3220 $(SET_LIB_PATH) \
3221 for flag in $(EXTRA_HOST_FLAGS); do \
3222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3223 done; \
3224 echo "Doing mostlyclean in bfd" ; \
3225 (cd bfd && \
3226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3228 "RANLIB=$${RANLIB}" \
3229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3230 mostlyclean) \
3231 || exit 1
3234 .PHONY: maybe-clean-bfd clean-bfd
3235 maybe-clean-bfd:
3237 clean-bfd:
3238 @[ -f ./bfd/Makefile ] || exit 0; \
3239 r=`${PWD_COMMAND}`; export r; \
3240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3241 $(SET_LIB_PATH) \
3242 for flag in $(EXTRA_HOST_FLAGS); do \
3243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3244 done; \
3245 echo "Doing clean in bfd" ; \
3246 (cd bfd && \
3247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3249 "RANLIB=$${RANLIB}" \
3250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3251 clean) \
3252 || exit 1
3255 .PHONY: maybe-distclean-bfd distclean-bfd
3256 maybe-distclean-bfd:
3258 distclean-bfd:
3259 @[ -f ./bfd/Makefile ] || exit 0; \
3260 r=`${PWD_COMMAND}`; export r; \
3261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3262 $(SET_LIB_PATH) \
3263 for flag in $(EXTRA_HOST_FLAGS); do \
3264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3265 done; \
3266 echo "Doing distclean in bfd" ; \
3267 (cd bfd && \
3268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3270 "RANLIB=$${RANLIB}" \
3271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3272 distclean) \
3273 || exit 1
3276 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3277 maybe-maintainer-clean-bfd:
3279 maintainer-clean-bfd:
3280 @[ -f ./bfd/Makefile ] || exit 0; \
3281 r=`${PWD_COMMAND}`; export r; \
3282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3283 $(SET_LIB_PATH) \
3284 for flag in $(EXTRA_HOST_FLAGS); do \
3285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3286 done; \
3287 echo "Doing maintainer-clean in bfd" ; \
3288 (cd bfd && \
3289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3291 "RANLIB=$${RANLIB}" \
3292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3293 maintainer-clean) \
3294 || exit 1
3298 .PHONY: configure-opcodes maybe-configure-opcodes
3299 maybe-configure-opcodes:
3300 configure-opcodes:
3301 @test ! -f opcodes/Makefile || exit 0; \
3302 [ -d opcodes ] || mkdir opcodes; \
3303 r=`${PWD_COMMAND}`; export r; \
3304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3305 CC="$(CC)"; export CC; \
3306 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3307 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3308 CXX="$(CXX)"; export CXX; \
3309 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3310 AR="$(AR)"; export AR; \
3311 AS="$(AS)"; export AS; \
3312 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3313 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3314 LD="$(LD)"; export LD; \
3315 NM="$(NM)"; export NM; \
3316 RANLIB="$(RANLIB)"; export RANLIB; \
3317 WINDRES="$(WINDRES)"; export WINDRES; \
3318 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3319 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3320 echo Configuring in opcodes; \
3321 cd opcodes || exit 1; \
3322 case $(srcdir) in \
3323 \.) \
3324 srcdiroption="--srcdir=."; \
3325 libsrcdir=".";; \
3326 /* | [A-Za-z]:[\\/]*) \
3327 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
3328 libsrcdir="$$s/opcodes";; \
3329 *) \
3330 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
3331 libsrcdir="$$s/opcodes";; \
3332 esac; \
3333 $(SHELL) $${libsrcdir}/configure \
3334 $(HOST_CONFIGARGS) $${srcdiroption} \
3335 || exit 1
3337 .PHONY: all-opcodes maybe-all-opcodes
3338 maybe-all-opcodes:
3339 all-opcodes: configure-opcodes
3340 @r=`${PWD_COMMAND}`; export r; \
3341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3342 $(SET_LIB_PATH) \
3343 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
3345 .PHONY: check-opcodes maybe-check-opcodes
3346 maybe-check-opcodes:
3348 check-opcodes:
3349 @r=`${PWD_COMMAND}`; export r; \
3350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3351 $(SET_LIB_PATH) \
3352 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
3355 .PHONY: install-opcodes maybe-install-opcodes
3356 maybe-install-opcodes:
3358 install-opcodes: installdirs
3359 @r=`${PWD_COMMAND}`; export r; \
3360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3361 $(SET_LIB_PATH) \
3362 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
3365 # Other targets (info, dvi, etc.)
3367 .PHONY: maybe-info-opcodes info-opcodes
3368 maybe-info-opcodes:
3370 info-opcodes: \
3371 configure-opcodes
3372 @[ -f ./opcodes/Makefile ] || exit 0; \
3373 r=`${PWD_COMMAND}`; export r; \
3374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3375 $(SET_LIB_PATH) \
3376 for flag in $(EXTRA_HOST_FLAGS); do \
3377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3378 done; \
3379 echo "Doing info in opcodes" ; \
3380 (cd opcodes && \
3381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3383 "RANLIB=$${RANLIB}" \
3384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3385 info) \
3386 || exit 1
3389 .PHONY: maybe-dvi-opcodes dvi-opcodes
3390 maybe-dvi-opcodes:
3392 dvi-opcodes: \
3393 configure-opcodes
3394 @[ -f ./opcodes/Makefile ] || exit 0; \
3395 r=`${PWD_COMMAND}`; export r; \
3396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3397 $(SET_LIB_PATH) \
3398 for flag in $(EXTRA_HOST_FLAGS); do \
3399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3400 done; \
3401 echo "Doing dvi in opcodes" ; \
3402 (cd opcodes && \
3403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3405 "RANLIB=$${RANLIB}" \
3406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3407 dvi) \
3408 || exit 1
3411 .PHONY: maybe-TAGS-opcodes TAGS-opcodes
3412 maybe-TAGS-opcodes:
3414 TAGS-opcodes: \
3415 configure-opcodes
3416 @[ -f ./opcodes/Makefile ] || exit 0; \
3417 r=`${PWD_COMMAND}`; export r; \
3418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3419 $(SET_LIB_PATH) \
3420 for flag in $(EXTRA_HOST_FLAGS); do \
3421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3422 done; \
3423 echo "Doing TAGS in opcodes" ; \
3424 (cd opcodes && \
3425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3427 "RANLIB=$${RANLIB}" \
3428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3429 TAGS) \
3430 || exit 1
3433 .PHONY: maybe-install-info-opcodes install-info-opcodes
3434 maybe-install-info-opcodes:
3436 install-info-opcodes: \
3437 configure-opcodes \
3438 info-opcodes
3439 @[ -f ./opcodes/Makefile ] || exit 0; \
3440 r=`${PWD_COMMAND}`; export r; \
3441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3442 $(SET_LIB_PATH) \
3443 for flag in $(EXTRA_HOST_FLAGS); do \
3444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3445 done; \
3446 echo "Doing install-info in opcodes" ; \
3447 (cd opcodes && \
3448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3450 "RANLIB=$${RANLIB}" \
3451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3452 install-info) \
3453 || exit 1
3456 .PHONY: maybe-installcheck-opcodes installcheck-opcodes
3457 maybe-installcheck-opcodes:
3459 installcheck-opcodes: \
3460 configure-opcodes
3461 @[ -f ./opcodes/Makefile ] || exit 0; \
3462 r=`${PWD_COMMAND}`; export r; \
3463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3464 $(SET_LIB_PATH) \
3465 for flag in $(EXTRA_HOST_FLAGS); do \
3466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3467 done; \
3468 echo "Doing installcheck in opcodes" ; \
3469 (cd opcodes && \
3470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3472 "RANLIB=$${RANLIB}" \
3473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3474 installcheck) \
3475 || exit 1
3478 .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
3479 maybe-mostlyclean-opcodes:
3481 mostlyclean-opcodes:
3482 @[ -f ./opcodes/Makefile ] || exit 0; \
3483 r=`${PWD_COMMAND}`; export r; \
3484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3485 $(SET_LIB_PATH) \
3486 for flag in $(EXTRA_HOST_FLAGS); do \
3487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3488 done; \
3489 echo "Doing mostlyclean in opcodes" ; \
3490 (cd opcodes && \
3491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3493 "RANLIB=$${RANLIB}" \
3494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3495 mostlyclean) \
3496 || exit 1
3499 .PHONY: maybe-clean-opcodes clean-opcodes
3500 maybe-clean-opcodes:
3502 clean-opcodes:
3503 @[ -f ./opcodes/Makefile ] || exit 0; \
3504 r=`${PWD_COMMAND}`; export r; \
3505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3506 $(SET_LIB_PATH) \
3507 for flag in $(EXTRA_HOST_FLAGS); do \
3508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3509 done; \
3510 echo "Doing clean in opcodes" ; \
3511 (cd opcodes && \
3512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3514 "RANLIB=$${RANLIB}" \
3515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3516 clean) \
3517 || exit 1
3520 .PHONY: maybe-distclean-opcodes distclean-opcodes
3521 maybe-distclean-opcodes:
3523 distclean-opcodes:
3524 @[ -f ./opcodes/Makefile ] || exit 0; \
3525 r=`${PWD_COMMAND}`; export r; \
3526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3527 $(SET_LIB_PATH) \
3528 for flag in $(EXTRA_HOST_FLAGS); do \
3529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3530 done; \
3531 echo "Doing distclean in opcodes" ; \
3532 (cd opcodes && \
3533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3535 "RANLIB=$${RANLIB}" \
3536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3537 distclean) \
3538 || exit 1
3541 .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
3542 maybe-maintainer-clean-opcodes:
3544 maintainer-clean-opcodes:
3545 @[ -f ./opcodes/Makefile ] || exit 0; \
3546 r=`${PWD_COMMAND}`; export r; \
3547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3548 $(SET_LIB_PATH) \
3549 for flag in $(EXTRA_HOST_FLAGS); do \
3550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3551 done; \
3552 echo "Doing maintainer-clean in opcodes" ; \
3553 (cd opcodes && \
3554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3556 "RANLIB=$${RANLIB}" \
3557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3558 maintainer-clean) \
3559 || exit 1
3563 .PHONY: configure-binutils maybe-configure-binutils
3564 maybe-configure-binutils:
3565 configure-binutils:
3566 @test ! -f binutils/Makefile || exit 0; \
3567 [ -d binutils ] || mkdir binutils; \
3568 r=`${PWD_COMMAND}`; export r; \
3569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3570 CC="$(CC)"; export CC; \
3571 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3572 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3573 CXX="$(CXX)"; export CXX; \
3574 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3575 AR="$(AR)"; export AR; \
3576 AS="$(AS)"; export AS; \
3577 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3578 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3579 LD="$(LD)"; export LD; \
3580 NM="$(NM)"; export NM; \
3581 RANLIB="$(RANLIB)"; export RANLIB; \
3582 WINDRES="$(WINDRES)"; export WINDRES; \
3583 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3584 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3585 echo Configuring in binutils; \
3586 cd binutils || exit 1; \
3587 case $(srcdir) in \
3588 \.) \
3589 srcdiroption="--srcdir=."; \
3590 libsrcdir=".";; \
3591 /* | [A-Za-z]:[\\/]*) \
3592 srcdiroption="--srcdir=$(srcdir)/binutils"; \
3593 libsrcdir="$$s/binutils";; \
3594 *) \
3595 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
3596 libsrcdir="$$s/binutils";; \
3597 esac; \
3598 $(SHELL) $${libsrcdir}/configure \
3599 $(HOST_CONFIGARGS) $${srcdiroption} \
3600 || exit 1
3602 .PHONY: all-binutils maybe-all-binutils
3603 maybe-all-binutils:
3604 all-binutils: configure-binutils
3605 @r=`${PWD_COMMAND}`; export r; \
3606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3607 $(SET_LIB_PATH) \
3608 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
3610 .PHONY: check-binutils maybe-check-binutils
3611 maybe-check-binutils:
3613 check-binutils:
3614 @r=`${PWD_COMMAND}`; export r; \
3615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3616 $(SET_LIB_PATH) \
3617 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
3620 .PHONY: install-binutils maybe-install-binutils
3621 maybe-install-binutils:
3623 install-binutils: installdirs
3624 @r=`${PWD_COMMAND}`; export r; \
3625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3626 $(SET_LIB_PATH) \
3627 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
3630 # Other targets (info, dvi, etc.)
3632 .PHONY: maybe-info-binutils info-binutils
3633 maybe-info-binutils:
3635 info-binutils: \
3636 configure-binutils
3637 @[ -f ./binutils/Makefile ] || exit 0; \
3638 r=`${PWD_COMMAND}`; export r; \
3639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3640 $(SET_LIB_PATH) \
3641 for flag in $(EXTRA_HOST_FLAGS); do \
3642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3643 done; \
3644 echo "Doing info in binutils" ; \
3645 (cd binutils && \
3646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3648 "RANLIB=$${RANLIB}" \
3649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3650 info) \
3651 || exit 1
3654 .PHONY: maybe-dvi-binutils dvi-binutils
3655 maybe-dvi-binutils:
3657 dvi-binutils: \
3658 configure-binutils
3659 @[ -f ./binutils/Makefile ] || exit 0; \
3660 r=`${PWD_COMMAND}`; export r; \
3661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3662 $(SET_LIB_PATH) \
3663 for flag in $(EXTRA_HOST_FLAGS); do \
3664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3665 done; \
3666 echo "Doing dvi in binutils" ; \
3667 (cd binutils && \
3668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3670 "RANLIB=$${RANLIB}" \
3671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3672 dvi) \
3673 || exit 1
3676 .PHONY: maybe-TAGS-binutils TAGS-binutils
3677 maybe-TAGS-binutils:
3679 TAGS-binutils: \
3680 configure-binutils
3681 @[ -f ./binutils/Makefile ] || exit 0; \
3682 r=`${PWD_COMMAND}`; export r; \
3683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3684 $(SET_LIB_PATH) \
3685 for flag in $(EXTRA_HOST_FLAGS); do \
3686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3687 done; \
3688 echo "Doing TAGS in binutils" ; \
3689 (cd binutils && \
3690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3692 "RANLIB=$${RANLIB}" \
3693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3694 TAGS) \
3695 || exit 1
3698 .PHONY: maybe-install-info-binutils install-info-binutils
3699 maybe-install-info-binutils:
3701 install-info-binutils: \
3702 configure-binutils \
3703 info-binutils
3704 @[ -f ./binutils/Makefile ] || exit 0; \
3705 r=`${PWD_COMMAND}`; export r; \
3706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3707 $(SET_LIB_PATH) \
3708 for flag in $(EXTRA_HOST_FLAGS); do \
3709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3710 done; \
3711 echo "Doing install-info in binutils" ; \
3712 (cd binutils && \
3713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3715 "RANLIB=$${RANLIB}" \
3716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3717 install-info) \
3718 || exit 1
3721 .PHONY: maybe-installcheck-binutils installcheck-binutils
3722 maybe-installcheck-binutils:
3724 installcheck-binutils: \
3725 configure-binutils
3726 @[ -f ./binutils/Makefile ] || exit 0; \
3727 r=`${PWD_COMMAND}`; export r; \
3728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3729 $(SET_LIB_PATH) \
3730 for flag in $(EXTRA_HOST_FLAGS); do \
3731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3732 done; \
3733 echo "Doing installcheck in binutils" ; \
3734 (cd binutils && \
3735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3737 "RANLIB=$${RANLIB}" \
3738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3739 installcheck) \
3740 || exit 1
3743 .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
3744 maybe-mostlyclean-binutils:
3746 mostlyclean-binutils:
3747 @[ -f ./binutils/Makefile ] || exit 0; \
3748 r=`${PWD_COMMAND}`; export r; \
3749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3750 $(SET_LIB_PATH) \
3751 for flag in $(EXTRA_HOST_FLAGS); do \
3752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3753 done; \
3754 echo "Doing mostlyclean in binutils" ; \
3755 (cd binutils && \
3756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3758 "RANLIB=$${RANLIB}" \
3759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3760 mostlyclean) \
3761 || exit 1
3764 .PHONY: maybe-clean-binutils clean-binutils
3765 maybe-clean-binutils:
3767 clean-binutils:
3768 @[ -f ./binutils/Makefile ] || exit 0; \
3769 r=`${PWD_COMMAND}`; export r; \
3770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3771 $(SET_LIB_PATH) \
3772 for flag in $(EXTRA_HOST_FLAGS); do \
3773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3774 done; \
3775 echo "Doing clean in binutils" ; \
3776 (cd binutils && \
3777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3779 "RANLIB=$${RANLIB}" \
3780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3781 clean) \
3782 || exit 1
3785 .PHONY: maybe-distclean-binutils distclean-binutils
3786 maybe-distclean-binutils:
3788 distclean-binutils:
3789 @[ -f ./binutils/Makefile ] || exit 0; \
3790 r=`${PWD_COMMAND}`; export r; \
3791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3792 $(SET_LIB_PATH) \
3793 for flag in $(EXTRA_HOST_FLAGS); do \
3794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3795 done; \
3796 echo "Doing distclean in binutils" ; \
3797 (cd binutils && \
3798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3800 "RANLIB=$${RANLIB}" \
3801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3802 distclean) \
3803 || exit 1
3806 .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
3807 maybe-maintainer-clean-binutils:
3809 maintainer-clean-binutils:
3810 @[ -f ./binutils/Makefile ] || exit 0; \
3811 r=`${PWD_COMMAND}`; export r; \
3812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3813 $(SET_LIB_PATH) \
3814 for flag in $(EXTRA_HOST_FLAGS); do \
3815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3816 done; \
3817 echo "Doing maintainer-clean in binutils" ; \
3818 (cd binutils && \
3819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3821 "RANLIB=$${RANLIB}" \
3822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3823 maintainer-clean) \
3824 || exit 1
3828 .PHONY: configure-bison maybe-configure-bison
3829 maybe-configure-bison:
3830 configure-bison:
3831 @test ! -f bison/Makefile || exit 0; \
3832 [ -d bison ] || mkdir bison; \
3833 r=`${PWD_COMMAND}`; export r; \
3834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3835 CC="$(CC)"; export CC; \
3836 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3837 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3838 CXX="$(CXX)"; export CXX; \
3839 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3840 AR="$(AR)"; export AR; \
3841 AS="$(AS)"; export AS; \
3842 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3843 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3844 LD="$(LD)"; export LD; \
3845 NM="$(NM)"; export NM; \
3846 RANLIB="$(RANLIB)"; export RANLIB; \
3847 WINDRES="$(WINDRES)"; export WINDRES; \
3848 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3849 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3850 echo Configuring in bison; \
3851 cd bison || exit 1; \
3852 case $(srcdir) in \
3853 \.) \
3854 srcdiroption="--srcdir=."; \
3855 libsrcdir=".";; \
3856 /* | [A-Za-z]:[\\/]*) \
3857 srcdiroption="--srcdir=$(srcdir)/bison"; \
3858 libsrcdir="$$s/bison";; \
3859 *) \
3860 srcdiroption="--srcdir=../$(srcdir)/bison"; \
3861 libsrcdir="$$s/bison";; \
3862 esac; \
3863 $(SHELL) $${libsrcdir}/configure \
3864 $(HOST_CONFIGARGS) $${srcdiroption} \
3865 || exit 1
3867 .PHONY: all-bison maybe-all-bison
3868 maybe-all-bison:
3869 all-bison: configure-bison
3870 @r=`${PWD_COMMAND}`; export r; \
3871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3872 $(SET_LIB_PATH) \
3873 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
3875 .PHONY: check-bison maybe-check-bison
3876 maybe-check-bison:
3878 # This module is only tested in a native toolchain.
3879 check-bison:
3880 @if [ '$(host)' = '$(target)' ] ; then \
3881 r=`${PWD_COMMAND}`; export r; \
3882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3883 $(SET_LIB_PATH) \
3884 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
3888 .PHONY: install-bison maybe-install-bison
3889 maybe-install-bison:
3891 install-bison: installdirs
3892 @r=`${PWD_COMMAND}`; export r; \
3893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3894 $(SET_LIB_PATH) \
3895 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
3898 # Other targets (info, dvi, etc.)
3900 .PHONY: maybe-info-bison info-bison
3901 maybe-info-bison:
3903 info-bison: \
3904 configure-bison
3905 @[ -f ./bison/Makefile ] || exit 0; \
3906 r=`${PWD_COMMAND}`; export r; \
3907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3908 $(SET_LIB_PATH) \
3909 for flag in $(EXTRA_HOST_FLAGS); do \
3910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3911 done; \
3912 echo "Doing info in bison" ; \
3913 (cd bison && \
3914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3916 "RANLIB=$${RANLIB}" \
3917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3918 info) \
3919 || exit 1
3922 .PHONY: maybe-dvi-bison dvi-bison
3923 maybe-dvi-bison:
3925 dvi-bison: \
3926 configure-bison
3927 @[ -f ./bison/Makefile ] || exit 0; \
3928 r=`${PWD_COMMAND}`; export r; \
3929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3930 $(SET_LIB_PATH) \
3931 for flag in $(EXTRA_HOST_FLAGS); do \
3932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3933 done; \
3934 echo "Doing dvi in bison" ; \
3935 (cd bison && \
3936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3938 "RANLIB=$${RANLIB}" \
3939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3940 dvi) \
3941 || exit 1
3944 .PHONY: maybe-TAGS-bison TAGS-bison
3945 maybe-TAGS-bison:
3947 TAGS-bison: \
3948 configure-bison
3949 @[ -f ./bison/Makefile ] || exit 0; \
3950 r=`${PWD_COMMAND}`; export r; \
3951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3952 $(SET_LIB_PATH) \
3953 for flag in $(EXTRA_HOST_FLAGS); do \
3954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3955 done; \
3956 echo "Doing TAGS in bison" ; \
3957 (cd bison && \
3958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3960 "RANLIB=$${RANLIB}" \
3961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3962 TAGS) \
3963 || exit 1
3966 .PHONY: maybe-install-info-bison install-info-bison
3967 maybe-install-info-bison:
3969 install-info-bison: \
3970 configure-bison \
3971 info-bison
3972 @[ -f ./bison/Makefile ] || exit 0; \
3973 r=`${PWD_COMMAND}`; export r; \
3974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3975 $(SET_LIB_PATH) \
3976 for flag in $(EXTRA_HOST_FLAGS); do \
3977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3978 done; \
3979 echo "Doing install-info in bison" ; \
3980 (cd bison && \
3981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3983 "RANLIB=$${RANLIB}" \
3984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3985 install-info) \
3986 || exit 1
3989 .PHONY: maybe-installcheck-bison installcheck-bison
3990 maybe-installcheck-bison:
3992 installcheck-bison: \
3993 configure-bison
3994 @[ -f ./bison/Makefile ] || exit 0; \
3995 r=`${PWD_COMMAND}`; export r; \
3996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3997 $(SET_LIB_PATH) \
3998 for flag in $(EXTRA_HOST_FLAGS); do \
3999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4000 done; \
4001 echo "Doing installcheck in bison" ; \
4002 (cd bison && \
4003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4005 "RANLIB=$${RANLIB}" \
4006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4007 installcheck) \
4008 || exit 1
4011 .PHONY: maybe-mostlyclean-bison mostlyclean-bison
4012 maybe-mostlyclean-bison:
4014 mostlyclean-bison:
4015 @[ -f ./bison/Makefile ] || exit 0; \
4016 r=`${PWD_COMMAND}`; export r; \
4017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4018 $(SET_LIB_PATH) \
4019 for flag in $(EXTRA_HOST_FLAGS); do \
4020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4021 done; \
4022 echo "Doing mostlyclean in bison" ; \
4023 (cd bison && \
4024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4026 "RANLIB=$${RANLIB}" \
4027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4028 mostlyclean) \
4029 || exit 1
4032 .PHONY: maybe-clean-bison clean-bison
4033 maybe-clean-bison:
4035 clean-bison:
4036 @[ -f ./bison/Makefile ] || exit 0; \
4037 r=`${PWD_COMMAND}`; export r; \
4038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4039 $(SET_LIB_PATH) \
4040 for flag in $(EXTRA_HOST_FLAGS); do \
4041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4042 done; \
4043 echo "Doing clean in bison" ; \
4044 (cd bison && \
4045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4047 "RANLIB=$${RANLIB}" \
4048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4049 clean) \
4050 || exit 1
4053 .PHONY: maybe-distclean-bison distclean-bison
4054 maybe-distclean-bison:
4056 distclean-bison:
4057 @[ -f ./bison/Makefile ] || exit 0; \
4058 r=`${PWD_COMMAND}`; export r; \
4059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4060 $(SET_LIB_PATH) \
4061 for flag in $(EXTRA_HOST_FLAGS); do \
4062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4063 done; \
4064 echo "Doing distclean in bison" ; \
4065 (cd bison && \
4066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4068 "RANLIB=$${RANLIB}" \
4069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4070 distclean) \
4071 || exit 1
4074 .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
4075 maybe-maintainer-clean-bison:
4077 maintainer-clean-bison:
4078 @[ -f ./bison/Makefile ] || exit 0; \
4079 r=`${PWD_COMMAND}`; export r; \
4080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4081 $(SET_LIB_PATH) \
4082 for flag in $(EXTRA_HOST_FLAGS); do \
4083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4084 done; \
4085 echo "Doing maintainer-clean in bison" ; \
4086 (cd bison && \
4087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4089 "RANLIB=$${RANLIB}" \
4090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4091 maintainer-clean) \
4092 || exit 1
4096 .PHONY: configure-byacc maybe-configure-byacc
4097 maybe-configure-byacc:
4098 configure-byacc:
4099 @test ! -f byacc/Makefile || exit 0; \
4100 [ -d byacc ] || mkdir byacc; \
4101 r=`${PWD_COMMAND}`; export r; \
4102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4103 CC="$(CC)"; export CC; \
4104 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4105 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4106 CXX="$(CXX)"; export CXX; \
4107 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4108 AR="$(AR)"; export AR; \
4109 AS="$(AS)"; export AS; \
4110 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4111 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4112 LD="$(LD)"; export LD; \
4113 NM="$(NM)"; export NM; \
4114 RANLIB="$(RANLIB)"; export RANLIB; \
4115 WINDRES="$(WINDRES)"; export WINDRES; \
4116 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4117 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4118 echo Configuring in byacc; \
4119 cd byacc || exit 1; \
4120 case $(srcdir) in \
4121 \.) \
4122 srcdiroption="--srcdir=."; \
4123 libsrcdir=".";; \
4124 /* | [A-Za-z]:[\\/]*) \
4125 srcdiroption="--srcdir=$(srcdir)/byacc"; \
4126 libsrcdir="$$s/byacc";; \
4127 *) \
4128 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
4129 libsrcdir="$$s/byacc";; \
4130 esac; \
4131 $(SHELL) $${libsrcdir}/configure \
4132 $(HOST_CONFIGARGS) $${srcdiroption} \
4133 || exit 1
4135 .PHONY: all-byacc maybe-all-byacc
4136 maybe-all-byacc:
4137 all-byacc: configure-byacc
4138 @r=`${PWD_COMMAND}`; export r; \
4139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4140 $(SET_LIB_PATH) \
4141 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
4143 .PHONY: check-byacc maybe-check-byacc
4144 maybe-check-byacc:
4146 # This module is only tested in a native toolchain.
4147 check-byacc:
4148 @if [ '$(host)' = '$(target)' ] ; then \
4149 r=`${PWD_COMMAND}`; export r; \
4150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4151 $(SET_LIB_PATH) \
4152 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
4156 .PHONY: install-byacc maybe-install-byacc
4157 maybe-install-byacc:
4159 install-byacc: installdirs
4160 @r=`${PWD_COMMAND}`; export r; \
4161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4162 $(SET_LIB_PATH) \
4163 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
4166 # Other targets (info, dvi, etc.)
4168 .PHONY: maybe-info-byacc info-byacc
4169 maybe-info-byacc:
4171 info-byacc: \
4172 configure-byacc
4173 @[ -f ./byacc/Makefile ] || exit 0; \
4174 r=`${PWD_COMMAND}`; export r; \
4175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4176 $(SET_LIB_PATH) \
4177 for flag in $(EXTRA_HOST_FLAGS); do \
4178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4179 done; \
4180 echo "Doing info in byacc" ; \
4181 (cd byacc && \
4182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4184 "RANLIB=$${RANLIB}" \
4185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4186 info) \
4187 || exit 1
4190 .PHONY: maybe-dvi-byacc dvi-byacc
4191 maybe-dvi-byacc:
4193 dvi-byacc: \
4194 configure-byacc
4195 @[ -f ./byacc/Makefile ] || exit 0; \
4196 r=`${PWD_COMMAND}`; export r; \
4197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4198 $(SET_LIB_PATH) \
4199 for flag in $(EXTRA_HOST_FLAGS); do \
4200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4201 done; \
4202 echo "Doing dvi in byacc" ; \
4203 (cd byacc && \
4204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4206 "RANLIB=$${RANLIB}" \
4207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4208 dvi) \
4209 || exit 1
4212 .PHONY: maybe-TAGS-byacc TAGS-byacc
4213 maybe-TAGS-byacc:
4215 TAGS-byacc: \
4216 configure-byacc
4217 @[ -f ./byacc/Makefile ] || exit 0; \
4218 r=`${PWD_COMMAND}`; export r; \
4219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4220 $(SET_LIB_PATH) \
4221 for flag in $(EXTRA_HOST_FLAGS); do \
4222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4223 done; \
4224 echo "Doing TAGS in byacc" ; \
4225 (cd byacc && \
4226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4228 "RANLIB=$${RANLIB}" \
4229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4230 TAGS) \
4231 || exit 1
4234 .PHONY: maybe-install-info-byacc install-info-byacc
4235 maybe-install-info-byacc:
4237 install-info-byacc: \
4238 configure-byacc \
4239 info-byacc
4240 @[ -f ./byacc/Makefile ] || exit 0; \
4241 r=`${PWD_COMMAND}`; export r; \
4242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4243 $(SET_LIB_PATH) \
4244 for flag in $(EXTRA_HOST_FLAGS); do \
4245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4246 done; \
4247 echo "Doing install-info in byacc" ; \
4248 (cd byacc && \
4249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4251 "RANLIB=$${RANLIB}" \
4252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4253 install-info) \
4254 || exit 1
4257 .PHONY: maybe-installcheck-byacc installcheck-byacc
4258 maybe-installcheck-byacc:
4260 installcheck-byacc: \
4261 configure-byacc
4262 @[ -f ./byacc/Makefile ] || exit 0; \
4263 r=`${PWD_COMMAND}`; export r; \
4264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4265 $(SET_LIB_PATH) \
4266 for flag in $(EXTRA_HOST_FLAGS); do \
4267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4268 done; \
4269 echo "Doing installcheck in byacc" ; \
4270 (cd byacc && \
4271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4273 "RANLIB=$${RANLIB}" \
4274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4275 installcheck) \
4276 || exit 1
4279 .PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
4280 maybe-mostlyclean-byacc:
4282 mostlyclean-byacc:
4283 @[ -f ./byacc/Makefile ] || exit 0; \
4284 r=`${PWD_COMMAND}`; export r; \
4285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4286 $(SET_LIB_PATH) \
4287 for flag in $(EXTRA_HOST_FLAGS); do \
4288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4289 done; \
4290 echo "Doing mostlyclean in byacc" ; \
4291 (cd byacc && \
4292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4294 "RANLIB=$${RANLIB}" \
4295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4296 mostlyclean) \
4297 || exit 1
4300 .PHONY: maybe-clean-byacc clean-byacc
4301 maybe-clean-byacc:
4303 clean-byacc:
4304 @[ -f ./byacc/Makefile ] || exit 0; \
4305 r=`${PWD_COMMAND}`; export r; \
4306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4307 $(SET_LIB_PATH) \
4308 for flag in $(EXTRA_HOST_FLAGS); do \
4309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4310 done; \
4311 echo "Doing clean in byacc" ; \
4312 (cd byacc && \
4313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4315 "RANLIB=$${RANLIB}" \
4316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4317 clean) \
4318 || exit 1
4321 .PHONY: maybe-distclean-byacc distclean-byacc
4322 maybe-distclean-byacc:
4324 distclean-byacc:
4325 @[ -f ./byacc/Makefile ] || exit 0; \
4326 r=`${PWD_COMMAND}`; export r; \
4327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4328 $(SET_LIB_PATH) \
4329 for flag in $(EXTRA_HOST_FLAGS); do \
4330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4331 done; \
4332 echo "Doing distclean in byacc" ; \
4333 (cd byacc && \
4334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4336 "RANLIB=$${RANLIB}" \
4337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4338 distclean) \
4339 || exit 1
4342 .PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
4343 maybe-maintainer-clean-byacc:
4345 maintainer-clean-byacc:
4346 @[ -f ./byacc/Makefile ] || exit 0; \
4347 r=`${PWD_COMMAND}`; export r; \
4348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4349 $(SET_LIB_PATH) \
4350 for flag in $(EXTRA_HOST_FLAGS); do \
4351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4352 done; \
4353 echo "Doing maintainer-clean in byacc" ; \
4354 (cd byacc && \
4355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4357 "RANLIB=$${RANLIB}" \
4358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4359 maintainer-clean) \
4360 || exit 1
4364 .PHONY: configure-bzip2 maybe-configure-bzip2
4365 maybe-configure-bzip2:
4366 configure-bzip2:
4367 @test ! -f bzip2/Makefile || exit 0; \
4368 [ -d bzip2 ] || mkdir bzip2; \
4369 r=`${PWD_COMMAND}`; export r; \
4370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4371 CC="$(CC)"; export CC; \
4372 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4373 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4374 CXX="$(CXX)"; export CXX; \
4375 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4376 AR="$(AR)"; export AR; \
4377 AS="$(AS)"; export AS; \
4378 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4379 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4380 LD="$(LD)"; export LD; \
4381 NM="$(NM)"; export NM; \
4382 RANLIB="$(RANLIB)"; export RANLIB; \
4383 WINDRES="$(WINDRES)"; export WINDRES; \
4384 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4385 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4386 echo Configuring in bzip2; \
4387 cd bzip2 || exit 1; \
4388 case $(srcdir) in \
4389 \.) \
4390 srcdiroption="--srcdir=."; \
4391 libsrcdir=".";; \
4392 /* | [A-Za-z]:[\\/]*) \
4393 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
4394 libsrcdir="$$s/bzip2";; \
4395 *) \
4396 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
4397 libsrcdir="$$s/bzip2";; \
4398 esac; \
4399 $(SHELL) $${libsrcdir}/configure \
4400 $(HOST_CONFIGARGS) $${srcdiroption} \
4401 || exit 1
4403 .PHONY: all-bzip2 maybe-all-bzip2
4404 maybe-all-bzip2:
4405 all-bzip2: configure-bzip2
4406 @r=`${PWD_COMMAND}`; export r; \
4407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4408 $(SET_LIB_PATH) \
4409 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
4411 .PHONY: check-bzip2 maybe-check-bzip2
4412 maybe-check-bzip2:
4414 check-bzip2:
4415 @r=`${PWD_COMMAND}`; export r; \
4416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4417 $(SET_LIB_PATH) \
4418 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
4421 .PHONY: install-bzip2 maybe-install-bzip2
4422 maybe-install-bzip2:
4424 install-bzip2: installdirs
4425 @r=`${PWD_COMMAND}`; export r; \
4426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4427 $(SET_LIB_PATH) \
4428 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
4431 # Other targets (info, dvi, etc.)
4433 .PHONY: maybe-info-bzip2 info-bzip2
4434 maybe-info-bzip2:
4436 info-bzip2: \
4437 configure-bzip2
4438 @[ -f ./bzip2/Makefile ] || exit 0; \
4439 r=`${PWD_COMMAND}`; export r; \
4440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4441 $(SET_LIB_PATH) \
4442 for flag in $(EXTRA_HOST_FLAGS); do \
4443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4444 done; \
4445 echo "Doing info in bzip2" ; \
4446 (cd bzip2 && \
4447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4449 "RANLIB=$${RANLIB}" \
4450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4451 info) \
4452 || exit 1
4455 .PHONY: maybe-dvi-bzip2 dvi-bzip2
4456 maybe-dvi-bzip2:
4458 dvi-bzip2: \
4459 configure-bzip2
4460 @[ -f ./bzip2/Makefile ] || exit 0; \
4461 r=`${PWD_COMMAND}`; export r; \
4462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4463 $(SET_LIB_PATH) \
4464 for flag in $(EXTRA_HOST_FLAGS); do \
4465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4466 done; \
4467 echo "Doing dvi in bzip2" ; \
4468 (cd bzip2 && \
4469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4471 "RANLIB=$${RANLIB}" \
4472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4473 dvi) \
4474 || exit 1
4477 .PHONY: maybe-TAGS-bzip2 TAGS-bzip2
4478 maybe-TAGS-bzip2:
4480 TAGS-bzip2: \
4481 configure-bzip2
4482 @[ -f ./bzip2/Makefile ] || exit 0; \
4483 r=`${PWD_COMMAND}`; export r; \
4484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4485 $(SET_LIB_PATH) \
4486 for flag in $(EXTRA_HOST_FLAGS); do \
4487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4488 done; \
4489 echo "Doing TAGS in bzip2" ; \
4490 (cd bzip2 && \
4491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4493 "RANLIB=$${RANLIB}" \
4494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4495 TAGS) \
4496 || exit 1
4499 .PHONY: maybe-install-info-bzip2 install-info-bzip2
4500 maybe-install-info-bzip2:
4502 install-info-bzip2: \
4503 configure-bzip2 \
4504 info-bzip2
4505 @[ -f ./bzip2/Makefile ] || exit 0; \
4506 r=`${PWD_COMMAND}`; export r; \
4507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4508 $(SET_LIB_PATH) \
4509 for flag in $(EXTRA_HOST_FLAGS); do \
4510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4511 done; \
4512 echo "Doing install-info in bzip2" ; \
4513 (cd bzip2 && \
4514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4516 "RANLIB=$${RANLIB}" \
4517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4518 install-info) \
4519 || exit 1
4522 .PHONY: maybe-installcheck-bzip2 installcheck-bzip2
4523 maybe-installcheck-bzip2:
4525 installcheck-bzip2: \
4526 configure-bzip2
4527 @[ -f ./bzip2/Makefile ] || exit 0; \
4528 r=`${PWD_COMMAND}`; export r; \
4529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4530 $(SET_LIB_PATH) \
4531 for flag in $(EXTRA_HOST_FLAGS); do \
4532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4533 done; \
4534 echo "Doing installcheck in bzip2" ; \
4535 (cd bzip2 && \
4536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4538 "RANLIB=$${RANLIB}" \
4539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4540 installcheck) \
4541 || exit 1
4544 .PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
4545 maybe-mostlyclean-bzip2:
4547 mostlyclean-bzip2:
4548 @[ -f ./bzip2/Makefile ] || exit 0; \
4549 r=`${PWD_COMMAND}`; export r; \
4550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4551 $(SET_LIB_PATH) \
4552 for flag in $(EXTRA_HOST_FLAGS); do \
4553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4554 done; \
4555 echo "Doing mostlyclean in bzip2" ; \
4556 (cd bzip2 && \
4557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4559 "RANLIB=$${RANLIB}" \
4560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4561 mostlyclean) \
4562 || exit 1
4565 .PHONY: maybe-clean-bzip2 clean-bzip2
4566 maybe-clean-bzip2:
4568 clean-bzip2:
4569 @[ -f ./bzip2/Makefile ] || exit 0; \
4570 r=`${PWD_COMMAND}`; export r; \
4571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4572 $(SET_LIB_PATH) \
4573 for flag in $(EXTRA_HOST_FLAGS); do \
4574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4575 done; \
4576 echo "Doing clean in bzip2" ; \
4577 (cd bzip2 && \
4578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4580 "RANLIB=$${RANLIB}" \
4581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4582 clean) \
4583 || exit 1
4586 .PHONY: maybe-distclean-bzip2 distclean-bzip2
4587 maybe-distclean-bzip2:
4589 distclean-bzip2:
4590 @[ -f ./bzip2/Makefile ] || exit 0; \
4591 r=`${PWD_COMMAND}`; export r; \
4592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4593 $(SET_LIB_PATH) \
4594 for flag in $(EXTRA_HOST_FLAGS); do \
4595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4596 done; \
4597 echo "Doing distclean in bzip2" ; \
4598 (cd bzip2 && \
4599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4601 "RANLIB=$${RANLIB}" \
4602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4603 distclean) \
4604 || exit 1
4607 .PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
4608 maybe-maintainer-clean-bzip2:
4610 maintainer-clean-bzip2:
4611 @[ -f ./bzip2/Makefile ] || exit 0; \
4612 r=`${PWD_COMMAND}`; export r; \
4613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4614 $(SET_LIB_PATH) \
4615 for flag in $(EXTRA_HOST_FLAGS); do \
4616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4617 done; \
4618 echo "Doing maintainer-clean in bzip2" ; \
4619 (cd bzip2 && \
4620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4622 "RANLIB=$${RANLIB}" \
4623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4624 maintainer-clean) \
4625 || exit 1
4629 .PHONY: configure-dejagnu maybe-configure-dejagnu
4630 maybe-configure-dejagnu:
4631 configure-dejagnu:
4632 @test ! -f dejagnu/Makefile || exit 0; \
4633 [ -d dejagnu ] || mkdir dejagnu; \
4634 r=`${PWD_COMMAND}`; export r; \
4635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4636 CC="$(CC)"; export CC; \
4637 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4638 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4639 CXX="$(CXX)"; export CXX; \
4640 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4641 AR="$(AR)"; export AR; \
4642 AS="$(AS)"; export AS; \
4643 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4644 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4645 LD="$(LD)"; export LD; \
4646 NM="$(NM)"; export NM; \
4647 RANLIB="$(RANLIB)"; export RANLIB; \
4648 WINDRES="$(WINDRES)"; export WINDRES; \
4649 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4650 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4651 echo Configuring in dejagnu; \
4652 cd dejagnu || exit 1; \
4653 case $(srcdir) in \
4654 \.) \
4655 srcdiroption="--srcdir=."; \
4656 libsrcdir=".";; \
4657 /* | [A-Za-z]:[\\/]*) \
4658 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
4659 libsrcdir="$$s/dejagnu";; \
4660 *) \
4661 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
4662 libsrcdir="$$s/dejagnu";; \
4663 esac; \
4664 $(SHELL) $${libsrcdir}/configure \
4665 $(HOST_CONFIGARGS) $${srcdiroption} \
4666 || exit 1
4668 .PHONY: all-dejagnu maybe-all-dejagnu
4669 maybe-all-dejagnu:
4670 all-dejagnu: configure-dejagnu
4671 @r=`${PWD_COMMAND}`; export r; \
4672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4673 $(SET_LIB_PATH) \
4674 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
4676 .PHONY: check-dejagnu maybe-check-dejagnu
4677 maybe-check-dejagnu:
4679 check-dejagnu:
4680 @r=`${PWD_COMMAND}`; export r; \
4681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4682 $(SET_LIB_PATH) \
4683 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
4686 .PHONY: install-dejagnu maybe-install-dejagnu
4687 maybe-install-dejagnu:
4689 install-dejagnu: installdirs
4690 @r=`${PWD_COMMAND}`; export r; \
4691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4692 $(SET_LIB_PATH) \
4693 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
4696 # Other targets (info, dvi, etc.)
4698 .PHONY: maybe-info-dejagnu info-dejagnu
4699 maybe-info-dejagnu:
4701 info-dejagnu: \
4702 configure-dejagnu
4703 @[ -f ./dejagnu/Makefile ] || exit 0; \
4704 r=`${PWD_COMMAND}`; export r; \
4705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4706 $(SET_LIB_PATH) \
4707 for flag in $(EXTRA_HOST_FLAGS); do \
4708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4709 done; \
4710 echo "Doing info in dejagnu" ; \
4711 (cd dejagnu && \
4712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4714 "RANLIB=$${RANLIB}" \
4715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4716 info) \
4717 || exit 1
4720 .PHONY: maybe-dvi-dejagnu dvi-dejagnu
4721 maybe-dvi-dejagnu:
4723 dvi-dejagnu: \
4724 configure-dejagnu
4725 @[ -f ./dejagnu/Makefile ] || exit 0; \
4726 r=`${PWD_COMMAND}`; export r; \
4727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4728 $(SET_LIB_PATH) \
4729 for flag in $(EXTRA_HOST_FLAGS); do \
4730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4731 done; \
4732 echo "Doing dvi in dejagnu" ; \
4733 (cd dejagnu && \
4734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4736 "RANLIB=$${RANLIB}" \
4737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4738 dvi) \
4739 || exit 1
4742 .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
4743 maybe-TAGS-dejagnu:
4745 TAGS-dejagnu: \
4746 configure-dejagnu
4747 @[ -f ./dejagnu/Makefile ] || exit 0; \
4748 r=`${PWD_COMMAND}`; export r; \
4749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4750 $(SET_LIB_PATH) \
4751 for flag in $(EXTRA_HOST_FLAGS); do \
4752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4753 done; \
4754 echo "Doing TAGS in dejagnu" ; \
4755 (cd dejagnu && \
4756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4758 "RANLIB=$${RANLIB}" \
4759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4760 TAGS) \
4761 || exit 1
4764 .PHONY: maybe-install-info-dejagnu install-info-dejagnu
4765 maybe-install-info-dejagnu:
4767 install-info-dejagnu: \
4768 configure-dejagnu \
4769 info-dejagnu
4770 @[ -f ./dejagnu/Makefile ] || exit 0; \
4771 r=`${PWD_COMMAND}`; export r; \
4772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4773 $(SET_LIB_PATH) \
4774 for flag in $(EXTRA_HOST_FLAGS); do \
4775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4776 done; \
4777 echo "Doing install-info in dejagnu" ; \
4778 (cd dejagnu && \
4779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4781 "RANLIB=$${RANLIB}" \
4782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4783 install-info) \
4784 || exit 1
4787 .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
4788 maybe-installcheck-dejagnu:
4790 installcheck-dejagnu: \
4791 configure-dejagnu
4792 @[ -f ./dejagnu/Makefile ] || exit 0; \
4793 r=`${PWD_COMMAND}`; export r; \
4794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4795 $(SET_LIB_PATH) \
4796 for flag in $(EXTRA_HOST_FLAGS); do \
4797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4798 done; \
4799 echo "Doing installcheck in dejagnu" ; \
4800 (cd dejagnu && \
4801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4803 "RANLIB=$${RANLIB}" \
4804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4805 installcheck) \
4806 || exit 1
4809 .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
4810 maybe-mostlyclean-dejagnu:
4812 mostlyclean-dejagnu:
4813 @[ -f ./dejagnu/Makefile ] || exit 0; \
4814 r=`${PWD_COMMAND}`; export r; \
4815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4816 $(SET_LIB_PATH) \
4817 for flag in $(EXTRA_HOST_FLAGS); do \
4818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4819 done; \
4820 echo "Doing mostlyclean in dejagnu" ; \
4821 (cd dejagnu && \
4822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4824 "RANLIB=$${RANLIB}" \
4825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4826 mostlyclean) \
4827 || exit 1
4830 .PHONY: maybe-clean-dejagnu clean-dejagnu
4831 maybe-clean-dejagnu:
4833 clean-dejagnu:
4834 @[ -f ./dejagnu/Makefile ] || exit 0; \
4835 r=`${PWD_COMMAND}`; export r; \
4836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4837 $(SET_LIB_PATH) \
4838 for flag in $(EXTRA_HOST_FLAGS); do \
4839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4840 done; \
4841 echo "Doing clean in dejagnu" ; \
4842 (cd dejagnu && \
4843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4845 "RANLIB=$${RANLIB}" \
4846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4847 clean) \
4848 || exit 1
4851 .PHONY: maybe-distclean-dejagnu distclean-dejagnu
4852 maybe-distclean-dejagnu:
4854 distclean-dejagnu:
4855 @[ -f ./dejagnu/Makefile ] || exit 0; \
4856 r=`${PWD_COMMAND}`; export r; \
4857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4858 $(SET_LIB_PATH) \
4859 for flag in $(EXTRA_HOST_FLAGS); do \
4860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4861 done; \
4862 echo "Doing distclean in dejagnu" ; \
4863 (cd dejagnu && \
4864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4866 "RANLIB=$${RANLIB}" \
4867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4868 distclean) \
4869 || exit 1
4872 .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
4873 maybe-maintainer-clean-dejagnu:
4875 maintainer-clean-dejagnu:
4876 @[ -f ./dejagnu/Makefile ] || exit 0; \
4877 r=`${PWD_COMMAND}`; export r; \
4878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4879 $(SET_LIB_PATH) \
4880 for flag in $(EXTRA_HOST_FLAGS); do \
4881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4882 done; \
4883 echo "Doing maintainer-clean in dejagnu" ; \
4884 (cd dejagnu && \
4885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4887 "RANLIB=$${RANLIB}" \
4888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4889 maintainer-clean) \
4890 || exit 1
4894 .PHONY: configure-diff maybe-configure-diff
4895 maybe-configure-diff:
4896 configure-diff:
4897 @test ! -f diff/Makefile || exit 0; \
4898 [ -d diff ] || mkdir diff; \
4899 r=`${PWD_COMMAND}`; export r; \
4900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4901 CC="$(CC)"; export CC; \
4902 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4903 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4904 CXX="$(CXX)"; export CXX; \
4905 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4906 AR="$(AR)"; export AR; \
4907 AS="$(AS)"; export AS; \
4908 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4909 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4910 LD="$(LD)"; export LD; \
4911 NM="$(NM)"; export NM; \
4912 RANLIB="$(RANLIB)"; export RANLIB; \
4913 WINDRES="$(WINDRES)"; export WINDRES; \
4914 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4915 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4916 echo Configuring in diff; \
4917 cd diff || exit 1; \
4918 case $(srcdir) in \
4919 \.) \
4920 srcdiroption="--srcdir=."; \
4921 libsrcdir=".";; \
4922 /* | [A-Za-z]:[\\/]*) \
4923 srcdiroption="--srcdir=$(srcdir)/diff"; \
4924 libsrcdir="$$s/diff";; \
4925 *) \
4926 srcdiroption="--srcdir=../$(srcdir)/diff"; \
4927 libsrcdir="$$s/diff";; \
4928 esac; \
4929 $(SHELL) $${libsrcdir}/configure \
4930 $(HOST_CONFIGARGS) $${srcdiroption} \
4931 || exit 1
4933 .PHONY: all-diff maybe-all-diff
4934 maybe-all-diff:
4935 all-diff: configure-diff
4936 @r=`${PWD_COMMAND}`; export r; \
4937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4938 $(SET_LIB_PATH) \
4939 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
4941 .PHONY: check-diff maybe-check-diff
4942 maybe-check-diff:
4944 check-diff:
4945 @r=`${PWD_COMMAND}`; export r; \
4946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4947 $(SET_LIB_PATH) \
4948 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
4951 .PHONY: install-diff maybe-install-diff
4952 maybe-install-diff:
4954 install-diff: installdirs
4955 @r=`${PWD_COMMAND}`; export r; \
4956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4957 $(SET_LIB_PATH) \
4958 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
4961 # Other targets (info, dvi, etc.)
4963 .PHONY: maybe-info-diff info-diff
4964 maybe-info-diff:
4966 info-diff: \
4967 configure-diff
4968 @[ -f ./diff/Makefile ] || exit 0; \
4969 r=`${PWD_COMMAND}`; export r; \
4970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4971 $(SET_LIB_PATH) \
4972 for flag in $(EXTRA_HOST_FLAGS); do \
4973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4974 done; \
4975 echo "Doing info in diff" ; \
4976 (cd diff && \
4977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4979 "RANLIB=$${RANLIB}" \
4980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4981 info) \
4982 || exit 1
4985 .PHONY: maybe-dvi-diff dvi-diff
4986 maybe-dvi-diff:
4988 dvi-diff: \
4989 configure-diff
4990 @[ -f ./diff/Makefile ] || exit 0; \
4991 r=`${PWD_COMMAND}`; export r; \
4992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4993 $(SET_LIB_PATH) \
4994 for flag in $(EXTRA_HOST_FLAGS); do \
4995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4996 done; \
4997 echo "Doing dvi in diff" ; \
4998 (cd diff && \
4999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5001 "RANLIB=$${RANLIB}" \
5002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5003 dvi) \
5004 || exit 1
5007 .PHONY: maybe-TAGS-diff TAGS-diff
5008 maybe-TAGS-diff:
5010 TAGS-diff: \
5011 configure-diff
5012 @[ -f ./diff/Makefile ] || exit 0; \
5013 r=`${PWD_COMMAND}`; export r; \
5014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5015 $(SET_LIB_PATH) \
5016 for flag in $(EXTRA_HOST_FLAGS); do \
5017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5018 done; \
5019 echo "Doing TAGS in diff" ; \
5020 (cd diff && \
5021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5023 "RANLIB=$${RANLIB}" \
5024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5025 TAGS) \
5026 || exit 1
5029 .PHONY: maybe-install-info-diff install-info-diff
5030 maybe-install-info-diff:
5032 install-info-diff: \
5033 configure-diff \
5034 info-diff
5035 @[ -f ./diff/Makefile ] || exit 0; \
5036 r=`${PWD_COMMAND}`; export r; \
5037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5038 $(SET_LIB_PATH) \
5039 for flag in $(EXTRA_HOST_FLAGS); do \
5040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5041 done; \
5042 echo "Doing install-info in diff" ; \
5043 (cd diff && \
5044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5046 "RANLIB=$${RANLIB}" \
5047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5048 install-info) \
5049 || exit 1
5052 .PHONY: maybe-installcheck-diff installcheck-diff
5053 maybe-installcheck-diff:
5055 installcheck-diff: \
5056 configure-diff
5057 @[ -f ./diff/Makefile ] || exit 0; \
5058 r=`${PWD_COMMAND}`; export r; \
5059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5060 $(SET_LIB_PATH) \
5061 for flag in $(EXTRA_HOST_FLAGS); do \
5062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5063 done; \
5064 echo "Doing installcheck in diff" ; \
5065 (cd diff && \
5066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5068 "RANLIB=$${RANLIB}" \
5069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5070 installcheck) \
5071 || exit 1
5074 .PHONY: maybe-mostlyclean-diff mostlyclean-diff
5075 maybe-mostlyclean-diff:
5077 mostlyclean-diff:
5078 @[ -f ./diff/Makefile ] || exit 0; \
5079 r=`${PWD_COMMAND}`; export r; \
5080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5081 $(SET_LIB_PATH) \
5082 for flag in $(EXTRA_HOST_FLAGS); do \
5083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5084 done; \
5085 echo "Doing mostlyclean in diff" ; \
5086 (cd diff && \
5087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5089 "RANLIB=$${RANLIB}" \
5090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5091 mostlyclean) \
5092 || exit 1
5095 .PHONY: maybe-clean-diff clean-diff
5096 maybe-clean-diff:
5098 clean-diff:
5099 @[ -f ./diff/Makefile ] || exit 0; \
5100 r=`${PWD_COMMAND}`; export r; \
5101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5102 $(SET_LIB_PATH) \
5103 for flag in $(EXTRA_HOST_FLAGS); do \
5104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5105 done; \
5106 echo "Doing clean in diff" ; \
5107 (cd diff && \
5108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5110 "RANLIB=$${RANLIB}" \
5111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5112 clean) \
5113 || exit 1
5116 .PHONY: maybe-distclean-diff distclean-diff
5117 maybe-distclean-diff:
5119 distclean-diff:
5120 @[ -f ./diff/Makefile ] || exit 0; \
5121 r=`${PWD_COMMAND}`; export r; \
5122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5123 $(SET_LIB_PATH) \
5124 for flag in $(EXTRA_HOST_FLAGS); do \
5125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5126 done; \
5127 echo "Doing distclean in diff" ; \
5128 (cd diff && \
5129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5131 "RANLIB=$${RANLIB}" \
5132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5133 distclean) \
5134 || exit 1
5137 .PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
5138 maybe-maintainer-clean-diff:
5140 maintainer-clean-diff:
5141 @[ -f ./diff/Makefile ] || exit 0; \
5142 r=`${PWD_COMMAND}`; export r; \
5143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5144 $(SET_LIB_PATH) \
5145 for flag in $(EXTRA_HOST_FLAGS); do \
5146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5147 done; \
5148 echo "Doing maintainer-clean in diff" ; \
5149 (cd diff && \
5150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5152 "RANLIB=$${RANLIB}" \
5153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5154 maintainer-clean) \
5155 || exit 1
5159 .PHONY: configure-dosutils maybe-configure-dosutils
5160 maybe-configure-dosutils:
5161 configure-dosutils:
5162 @test ! -f dosutils/Makefile || exit 0; \
5163 [ -d dosutils ] || mkdir dosutils; \
5164 r=`${PWD_COMMAND}`; export r; \
5165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5166 CC="$(CC)"; export CC; \
5167 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5168 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5169 CXX="$(CXX)"; export CXX; \
5170 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5171 AR="$(AR)"; export AR; \
5172 AS="$(AS)"; export AS; \
5173 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5174 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5175 LD="$(LD)"; export LD; \
5176 NM="$(NM)"; export NM; \
5177 RANLIB="$(RANLIB)"; export RANLIB; \
5178 WINDRES="$(WINDRES)"; export WINDRES; \
5179 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5180 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5181 echo Configuring in dosutils; \
5182 cd dosutils || exit 1; \
5183 case $(srcdir) in \
5184 \.) \
5185 srcdiroption="--srcdir=."; \
5186 libsrcdir=".";; \
5187 /* | [A-Za-z]:[\\/]*) \
5188 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
5189 libsrcdir="$$s/dosutils";; \
5190 *) \
5191 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
5192 libsrcdir="$$s/dosutils";; \
5193 esac; \
5194 $(SHELL) $${libsrcdir}/configure \
5195 $(HOST_CONFIGARGS) $${srcdiroption} \
5196 || exit 1
5198 .PHONY: all-dosutils maybe-all-dosutils
5199 maybe-all-dosutils:
5200 all-dosutils: configure-dosutils
5201 @r=`${PWD_COMMAND}`; export r; \
5202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5203 $(SET_LIB_PATH) \
5204 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
5206 .PHONY: check-dosutils maybe-check-dosutils
5207 maybe-check-dosutils:
5209 check-dosutils:
5212 .PHONY: install-dosutils maybe-install-dosutils
5213 maybe-install-dosutils:
5215 install-dosutils: installdirs
5216 @r=`${PWD_COMMAND}`; export r; \
5217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5218 $(SET_LIB_PATH) \
5219 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
5222 # Other targets (info, dvi, etc.)
5224 .PHONY: maybe-info-dosutils info-dosutils
5225 maybe-info-dosutils:
5227 info-dosutils: \
5228 configure-dosutils
5229 @[ -f ./dosutils/Makefile ] || exit 0; \
5230 r=`${PWD_COMMAND}`; export r; \
5231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5232 $(SET_LIB_PATH) \
5233 for flag in $(EXTRA_HOST_FLAGS); do \
5234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5235 done; \
5236 echo "Doing info in dosutils" ; \
5237 (cd dosutils && \
5238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5240 "RANLIB=$${RANLIB}" \
5241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5242 info) \
5243 || exit 1
5246 .PHONY: maybe-dvi-dosutils dvi-dosutils
5247 maybe-dvi-dosutils:
5249 dvi-dosutils: \
5250 configure-dosutils
5251 @[ -f ./dosutils/Makefile ] || exit 0; \
5252 r=`${PWD_COMMAND}`; export r; \
5253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5254 $(SET_LIB_PATH) \
5255 for flag in $(EXTRA_HOST_FLAGS); do \
5256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5257 done; \
5258 echo "Doing dvi in dosutils" ; \
5259 (cd dosutils && \
5260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5262 "RANLIB=$${RANLIB}" \
5263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5264 dvi) \
5265 || exit 1
5268 .PHONY: maybe-TAGS-dosutils TAGS-dosutils
5269 maybe-TAGS-dosutils:
5271 TAGS-dosutils: \
5272 configure-dosutils
5273 @[ -f ./dosutils/Makefile ] || exit 0; \
5274 r=`${PWD_COMMAND}`; export r; \
5275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5276 $(SET_LIB_PATH) \
5277 for flag in $(EXTRA_HOST_FLAGS); do \
5278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5279 done; \
5280 echo "Doing TAGS in dosutils" ; \
5281 (cd dosutils && \
5282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5284 "RANLIB=$${RANLIB}" \
5285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5286 TAGS) \
5287 || exit 1
5290 .PHONY: maybe-install-info-dosutils install-info-dosutils
5291 maybe-install-info-dosutils:
5293 install-info-dosutils: \
5294 configure-dosutils \
5295 info-dosutils
5296 @[ -f ./dosutils/Makefile ] || exit 0; \
5297 r=`${PWD_COMMAND}`; export r; \
5298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5299 $(SET_LIB_PATH) \
5300 for flag in $(EXTRA_HOST_FLAGS); do \
5301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5302 done; \
5303 echo "Doing install-info in dosutils" ; \
5304 (cd dosutils && \
5305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5307 "RANLIB=$${RANLIB}" \
5308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5309 install-info) \
5310 || exit 1
5313 .PHONY: maybe-installcheck-dosutils installcheck-dosutils
5314 maybe-installcheck-dosutils:
5316 installcheck-dosutils: \
5317 configure-dosutils
5318 @[ -f ./dosutils/Makefile ] || exit 0; \
5319 r=`${PWD_COMMAND}`; export r; \
5320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5321 $(SET_LIB_PATH) \
5322 for flag in $(EXTRA_HOST_FLAGS); do \
5323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5324 done; \
5325 echo "Doing installcheck in dosutils" ; \
5326 (cd dosutils && \
5327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5329 "RANLIB=$${RANLIB}" \
5330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5331 installcheck) \
5332 || exit 1
5335 .PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
5336 maybe-mostlyclean-dosutils:
5338 mostlyclean-dosutils:
5339 @[ -f ./dosutils/Makefile ] || exit 0; \
5340 r=`${PWD_COMMAND}`; export r; \
5341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5342 $(SET_LIB_PATH) \
5343 for flag in $(EXTRA_HOST_FLAGS); do \
5344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5345 done; \
5346 echo "Doing mostlyclean in dosutils" ; \
5347 (cd dosutils && \
5348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5350 "RANLIB=$${RANLIB}" \
5351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5352 mostlyclean) \
5353 || exit 1
5356 .PHONY: maybe-clean-dosutils clean-dosutils
5357 maybe-clean-dosutils:
5359 clean-dosutils:
5360 @[ -f ./dosutils/Makefile ] || exit 0; \
5361 r=`${PWD_COMMAND}`; export r; \
5362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5363 $(SET_LIB_PATH) \
5364 for flag in $(EXTRA_HOST_FLAGS); do \
5365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5366 done; \
5367 echo "Doing clean in dosutils" ; \
5368 (cd dosutils && \
5369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5371 "RANLIB=$${RANLIB}" \
5372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5373 clean) \
5374 || exit 1
5377 .PHONY: maybe-distclean-dosutils distclean-dosutils
5378 maybe-distclean-dosutils:
5380 distclean-dosutils:
5381 @[ -f ./dosutils/Makefile ] || exit 0; \
5382 r=`${PWD_COMMAND}`; export r; \
5383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5384 $(SET_LIB_PATH) \
5385 for flag in $(EXTRA_HOST_FLAGS); do \
5386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5387 done; \
5388 echo "Doing distclean in dosutils" ; \
5389 (cd dosutils && \
5390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5392 "RANLIB=$${RANLIB}" \
5393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5394 distclean) \
5395 || exit 1
5398 .PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
5399 maybe-maintainer-clean-dosutils:
5401 maintainer-clean-dosutils:
5402 @[ -f ./dosutils/Makefile ] || exit 0; \
5403 r=`${PWD_COMMAND}`; export r; \
5404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5405 $(SET_LIB_PATH) \
5406 for flag in $(EXTRA_HOST_FLAGS); do \
5407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5408 done; \
5409 echo "Doing maintainer-clean in dosutils" ; \
5410 (cd dosutils && \
5411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5413 "RANLIB=$${RANLIB}" \
5414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5415 maintainer-clean) \
5416 || exit 1
5420 .PHONY: configure-etc maybe-configure-etc
5421 maybe-configure-etc:
5422 configure-etc:
5423 @test ! -f etc/Makefile || exit 0; \
5424 [ -d etc ] || mkdir etc; \
5425 r=`${PWD_COMMAND}`; export r; \
5426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5427 CC="$(CC)"; export CC; \
5428 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5429 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5430 CXX="$(CXX)"; export CXX; \
5431 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5432 AR="$(AR)"; export AR; \
5433 AS="$(AS)"; export AS; \
5434 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5435 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5436 LD="$(LD)"; export LD; \
5437 NM="$(NM)"; export NM; \
5438 RANLIB="$(RANLIB)"; export RANLIB; \
5439 WINDRES="$(WINDRES)"; export WINDRES; \
5440 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5441 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5442 echo Configuring in etc; \
5443 cd etc || exit 1; \
5444 case $(srcdir) in \
5445 \.) \
5446 srcdiroption="--srcdir=."; \
5447 libsrcdir=".";; \
5448 /* | [A-Za-z]:[\\/]*) \
5449 srcdiroption="--srcdir=$(srcdir)/etc"; \
5450 libsrcdir="$$s/etc";; \
5451 *) \
5452 srcdiroption="--srcdir=../$(srcdir)/etc"; \
5453 libsrcdir="$$s/etc";; \
5454 esac; \
5455 $(SHELL) $${libsrcdir}/configure \
5456 $(HOST_CONFIGARGS) $${srcdiroption} \
5457 || exit 1
5459 .PHONY: all-etc maybe-all-etc
5460 maybe-all-etc:
5461 all-etc: configure-etc
5462 @r=`${PWD_COMMAND}`; export r; \
5463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5464 $(SET_LIB_PATH) \
5465 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
5467 .PHONY: check-etc maybe-check-etc
5468 maybe-check-etc:
5470 check-etc:
5471 @r=`${PWD_COMMAND}`; export r; \
5472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5473 $(SET_LIB_PATH) \
5474 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
5477 .PHONY: install-etc maybe-install-etc
5478 maybe-install-etc:
5480 install-etc: installdirs
5481 @r=`${PWD_COMMAND}`; export r; \
5482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5483 $(SET_LIB_PATH) \
5484 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
5487 # Other targets (info, dvi, etc.)
5489 .PHONY: maybe-info-etc info-etc
5490 maybe-info-etc:
5492 info-etc: \
5493 configure-etc
5494 @[ -f ./etc/Makefile ] || exit 0; \
5495 r=`${PWD_COMMAND}`; export r; \
5496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5497 $(SET_LIB_PATH) \
5498 for flag in $(EXTRA_HOST_FLAGS); do \
5499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5500 done; \
5501 echo "Doing info in etc" ; \
5502 (cd etc && \
5503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5505 "RANLIB=$${RANLIB}" \
5506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5507 info) \
5508 || exit 1
5511 .PHONY: maybe-dvi-etc dvi-etc
5512 maybe-dvi-etc:
5514 dvi-etc: \
5515 configure-etc
5516 @[ -f ./etc/Makefile ] || exit 0; \
5517 r=`${PWD_COMMAND}`; export r; \
5518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5519 $(SET_LIB_PATH) \
5520 for flag in $(EXTRA_HOST_FLAGS); do \
5521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5522 done; \
5523 echo "Doing dvi in etc" ; \
5524 (cd etc && \
5525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5527 "RANLIB=$${RANLIB}" \
5528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5529 dvi) \
5530 || exit 1
5533 .PHONY: maybe-TAGS-etc TAGS-etc
5534 maybe-TAGS-etc:
5536 TAGS-etc: \
5537 configure-etc
5538 @[ -f ./etc/Makefile ] || exit 0; \
5539 r=`${PWD_COMMAND}`; export r; \
5540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5541 $(SET_LIB_PATH) \
5542 for flag in $(EXTRA_HOST_FLAGS); do \
5543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5544 done; \
5545 echo "Doing TAGS in etc" ; \
5546 (cd etc && \
5547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5549 "RANLIB=$${RANLIB}" \
5550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5551 TAGS) \
5552 || exit 1
5555 .PHONY: maybe-install-info-etc install-info-etc
5556 maybe-install-info-etc:
5558 install-info-etc: \
5559 configure-etc \
5560 info-etc
5561 @[ -f ./etc/Makefile ] || exit 0; \
5562 r=`${PWD_COMMAND}`; export r; \
5563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5564 $(SET_LIB_PATH) \
5565 for flag in $(EXTRA_HOST_FLAGS); do \
5566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5567 done; \
5568 echo "Doing install-info in etc" ; \
5569 (cd etc && \
5570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5572 "RANLIB=$${RANLIB}" \
5573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5574 install-info) \
5575 || exit 1
5578 .PHONY: maybe-installcheck-etc installcheck-etc
5579 maybe-installcheck-etc:
5581 installcheck-etc: \
5582 configure-etc
5583 @[ -f ./etc/Makefile ] || exit 0; \
5584 r=`${PWD_COMMAND}`; export r; \
5585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5586 $(SET_LIB_PATH) \
5587 for flag in $(EXTRA_HOST_FLAGS); do \
5588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5589 done; \
5590 echo "Doing installcheck in etc" ; \
5591 (cd etc && \
5592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5594 "RANLIB=$${RANLIB}" \
5595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5596 installcheck) \
5597 || exit 1
5600 .PHONY: maybe-mostlyclean-etc mostlyclean-etc
5601 maybe-mostlyclean-etc:
5603 mostlyclean-etc:
5604 @[ -f ./etc/Makefile ] || exit 0; \
5605 r=`${PWD_COMMAND}`; export r; \
5606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5607 $(SET_LIB_PATH) \
5608 for flag in $(EXTRA_HOST_FLAGS); do \
5609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5610 done; \
5611 echo "Doing mostlyclean in etc" ; \
5612 (cd etc && \
5613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5615 "RANLIB=$${RANLIB}" \
5616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5617 mostlyclean) \
5618 || exit 1
5621 .PHONY: maybe-clean-etc clean-etc
5622 maybe-clean-etc:
5624 clean-etc:
5625 @[ -f ./etc/Makefile ] || exit 0; \
5626 r=`${PWD_COMMAND}`; export r; \
5627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5628 $(SET_LIB_PATH) \
5629 for flag in $(EXTRA_HOST_FLAGS); do \
5630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5631 done; \
5632 echo "Doing clean in etc" ; \
5633 (cd etc && \
5634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5636 "RANLIB=$${RANLIB}" \
5637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5638 clean) \
5639 || exit 1
5642 .PHONY: maybe-distclean-etc distclean-etc
5643 maybe-distclean-etc:
5645 distclean-etc:
5646 @[ -f ./etc/Makefile ] || exit 0; \
5647 r=`${PWD_COMMAND}`; export r; \
5648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5649 $(SET_LIB_PATH) \
5650 for flag in $(EXTRA_HOST_FLAGS); do \
5651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5652 done; \
5653 echo "Doing distclean in etc" ; \
5654 (cd etc && \
5655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5657 "RANLIB=$${RANLIB}" \
5658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5659 distclean) \
5660 || exit 1
5663 .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
5664 maybe-maintainer-clean-etc:
5666 maintainer-clean-etc:
5667 @[ -f ./etc/Makefile ] || exit 0; \
5668 r=`${PWD_COMMAND}`; export r; \
5669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5670 $(SET_LIB_PATH) \
5671 for flag in $(EXTRA_HOST_FLAGS); do \
5672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5673 done; \
5674 echo "Doing maintainer-clean in etc" ; \
5675 (cd etc && \
5676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5678 "RANLIB=$${RANLIB}" \
5679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5680 maintainer-clean) \
5681 || exit 1
5685 .PHONY: configure-fastjar maybe-configure-fastjar
5686 maybe-configure-fastjar:
5687 configure-fastjar:
5688 @test ! -f fastjar/Makefile || exit 0; \
5689 [ -d fastjar ] || mkdir fastjar; \
5690 r=`${PWD_COMMAND}`; export r; \
5691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5692 CC="$(CC)"; export CC; \
5693 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5694 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5695 CXX="$(CXX)"; export CXX; \
5696 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5697 AR="$(AR)"; export AR; \
5698 AS="$(AS)"; export AS; \
5699 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5700 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5701 LD="$(LD)"; export LD; \
5702 NM="$(NM)"; export NM; \
5703 RANLIB="$(RANLIB)"; export RANLIB; \
5704 WINDRES="$(WINDRES)"; export WINDRES; \
5705 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5706 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5707 echo Configuring in fastjar; \
5708 cd fastjar || exit 1; \
5709 case $(srcdir) in \
5710 \.) \
5711 srcdiroption="--srcdir=."; \
5712 libsrcdir=".";; \
5713 /* | [A-Za-z]:[\\/]*) \
5714 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
5715 libsrcdir="$$s/fastjar";; \
5716 *) \
5717 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
5718 libsrcdir="$$s/fastjar";; \
5719 esac; \
5720 $(SHELL) $${libsrcdir}/configure \
5721 $(HOST_CONFIGARGS) $${srcdiroption} \
5722 || exit 1
5724 .PHONY: all-fastjar maybe-all-fastjar
5725 maybe-all-fastjar:
5726 all-fastjar: configure-fastjar
5727 @r=`${PWD_COMMAND}`; export r; \
5728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5729 $(SET_LIB_PATH) \
5730 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
5732 .PHONY: check-fastjar maybe-check-fastjar
5733 maybe-check-fastjar:
5735 # This module is only tested in a native toolchain.
5736 check-fastjar:
5737 @if [ '$(host)' = '$(target)' ] ; then \
5738 r=`${PWD_COMMAND}`; export r; \
5739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5740 $(SET_LIB_PATH) \
5741 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
5745 .PHONY: install-fastjar maybe-install-fastjar
5746 maybe-install-fastjar:
5748 install-fastjar: installdirs
5749 @r=`${PWD_COMMAND}`; export r; \
5750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5751 $(SET_LIB_PATH) \
5752 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
5755 # Other targets (info, dvi, etc.)
5757 .PHONY: maybe-info-fastjar info-fastjar
5758 maybe-info-fastjar:
5760 info-fastjar: \
5761 configure-fastjar
5762 @[ -f ./fastjar/Makefile ] || exit 0; \
5763 r=`${PWD_COMMAND}`; export r; \
5764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5765 $(SET_LIB_PATH) \
5766 for flag in $(EXTRA_HOST_FLAGS); do \
5767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5768 done; \
5769 echo "Doing info in fastjar" ; \
5770 (cd fastjar && \
5771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5773 "RANLIB=$${RANLIB}" \
5774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5775 info) \
5776 || exit 1
5779 .PHONY: maybe-dvi-fastjar dvi-fastjar
5780 maybe-dvi-fastjar:
5782 dvi-fastjar: \
5783 configure-fastjar
5784 @[ -f ./fastjar/Makefile ] || exit 0; \
5785 r=`${PWD_COMMAND}`; export r; \
5786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5787 $(SET_LIB_PATH) \
5788 for flag in $(EXTRA_HOST_FLAGS); do \
5789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5790 done; \
5791 echo "Doing dvi in fastjar" ; \
5792 (cd fastjar && \
5793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5795 "RANLIB=$${RANLIB}" \
5796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5797 dvi) \
5798 || exit 1
5801 .PHONY: maybe-TAGS-fastjar TAGS-fastjar
5802 maybe-TAGS-fastjar:
5804 TAGS-fastjar: \
5805 configure-fastjar
5806 @[ -f ./fastjar/Makefile ] || exit 0; \
5807 r=`${PWD_COMMAND}`; export r; \
5808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5809 $(SET_LIB_PATH) \
5810 for flag in $(EXTRA_HOST_FLAGS); do \
5811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5812 done; \
5813 echo "Doing TAGS in fastjar" ; \
5814 (cd fastjar && \
5815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5817 "RANLIB=$${RANLIB}" \
5818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5819 TAGS) \
5820 || exit 1
5823 .PHONY: maybe-install-info-fastjar install-info-fastjar
5824 maybe-install-info-fastjar:
5826 install-info-fastjar: \
5827 configure-fastjar \
5828 info-fastjar
5829 @[ -f ./fastjar/Makefile ] || exit 0; \
5830 r=`${PWD_COMMAND}`; export r; \
5831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5832 $(SET_LIB_PATH) \
5833 for flag in $(EXTRA_HOST_FLAGS); do \
5834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5835 done; \
5836 echo "Doing install-info in fastjar" ; \
5837 (cd fastjar && \
5838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5840 "RANLIB=$${RANLIB}" \
5841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5842 install-info) \
5843 || exit 1
5846 .PHONY: maybe-installcheck-fastjar installcheck-fastjar
5847 maybe-installcheck-fastjar:
5849 installcheck-fastjar: \
5850 configure-fastjar
5851 @[ -f ./fastjar/Makefile ] || exit 0; \
5852 r=`${PWD_COMMAND}`; export r; \
5853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5854 $(SET_LIB_PATH) \
5855 for flag in $(EXTRA_HOST_FLAGS); do \
5856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5857 done; \
5858 echo "Doing installcheck in fastjar" ; \
5859 (cd fastjar && \
5860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5862 "RANLIB=$${RANLIB}" \
5863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5864 installcheck) \
5865 || exit 1
5868 .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
5869 maybe-mostlyclean-fastjar:
5871 mostlyclean-fastjar:
5872 @[ -f ./fastjar/Makefile ] || exit 0; \
5873 r=`${PWD_COMMAND}`; export r; \
5874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5875 $(SET_LIB_PATH) \
5876 for flag in $(EXTRA_HOST_FLAGS); do \
5877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5878 done; \
5879 echo "Doing mostlyclean in fastjar" ; \
5880 (cd fastjar && \
5881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5883 "RANLIB=$${RANLIB}" \
5884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5885 mostlyclean) \
5886 || exit 1
5889 .PHONY: maybe-clean-fastjar clean-fastjar
5890 maybe-clean-fastjar:
5892 clean-fastjar:
5893 @[ -f ./fastjar/Makefile ] || exit 0; \
5894 r=`${PWD_COMMAND}`; export r; \
5895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5896 $(SET_LIB_PATH) \
5897 for flag in $(EXTRA_HOST_FLAGS); do \
5898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5899 done; \
5900 echo "Doing clean in fastjar" ; \
5901 (cd fastjar && \
5902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5904 "RANLIB=$${RANLIB}" \
5905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5906 clean) \
5907 || exit 1
5910 .PHONY: maybe-distclean-fastjar distclean-fastjar
5911 maybe-distclean-fastjar:
5913 distclean-fastjar:
5914 @[ -f ./fastjar/Makefile ] || exit 0; \
5915 r=`${PWD_COMMAND}`; export r; \
5916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5917 $(SET_LIB_PATH) \
5918 for flag in $(EXTRA_HOST_FLAGS); do \
5919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5920 done; \
5921 echo "Doing distclean in fastjar" ; \
5922 (cd fastjar && \
5923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5925 "RANLIB=$${RANLIB}" \
5926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5927 distclean) \
5928 || exit 1
5931 .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
5932 maybe-maintainer-clean-fastjar:
5934 maintainer-clean-fastjar:
5935 @[ -f ./fastjar/Makefile ] || exit 0; \
5936 r=`${PWD_COMMAND}`; export r; \
5937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5938 $(SET_LIB_PATH) \
5939 for flag in $(EXTRA_HOST_FLAGS); do \
5940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5941 done; \
5942 echo "Doing maintainer-clean in fastjar" ; \
5943 (cd fastjar && \
5944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5946 "RANLIB=$${RANLIB}" \
5947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5948 maintainer-clean) \
5949 || exit 1
5953 .PHONY: configure-fileutils maybe-configure-fileutils
5954 maybe-configure-fileutils:
5955 configure-fileutils:
5956 @test ! -f fileutils/Makefile || exit 0; \
5957 [ -d fileutils ] || mkdir fileutils; \
5958 r=`${PWD_COMMAND}`; export r; \
5959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5960 CC="$(CC)"; export CC; \
5961 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5962 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5963 CXX="$(CXX)"; export CXX; \
5964 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5965 AR="$(AR)"; export AR; \
5966 AS="$(AS)"; export AS; \
5967 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5968 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5969 LD="$(LD)"; export LD; \
5970 NM="$(NM)"; export NM; \
5971 RANLIB="$(RANLIB)"; export RANLIB; \
5972 WINDRES="$(WINDRES)"; export WINDRES; \
5973 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5974 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5975 echo Configuring in fileutils; \
5976 cd fileutils || exit 1; \
5977 case $(srcdir) in \
5978 \.) \
5979 srcdiroption="--srcdir=."; \
5980 libsrcdir=".";; \
5981 /* | [A-Za-z]:[\\/]*) \
5982 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
5983 libsrcdir="$$s/fileutils";; \
5984 *) \
5985 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
5986 libsrcdir="$$s/fileutils";; \
5987 esac; \
5988 $(SHELL) $${libsrcdir}/configure \
5989 $(HOST_CONFIGARGS) $${srcdiroption} \
5990 || exit 1
5992 .PHONY: all-fileutils maybe-all-fileutils
5993 maybe-all-fileutils:
5994 all-fileutils: configure-fileutils
5995 @r=`${PWD_COMMAND}`; export r; \
5996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5997 $(SET_LIB_PATH) \
5998 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
6000 .PHONY: check-fileutils maybe-check-fileutils
6001 maybe-check-fileutils:
6003 check-fileutils:
6004 @r=`${PWD_COMMAND}`; export r; \
6005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6006 $(SET_LIB_PATH) \
6007 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
6010 .PHONY: install-fileutils maybe-install-fileutils
6011 maybe-install-fileutils:
6013 install-fileutils: installdirs
6014 @r=`${PWD_COMMAND}`; export r; \
6015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6016 $(SET_LIB_PATH) \
6017 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
6020 # Other targets (info, dvi, etc.)
6022 .PHONY: maybe-info-fileutils info-fileutils
6023 maybe-info-fileutils:
6025 info-fileutils: \
6026 configure-fileutils
6027 @[ -f ./fileutils/Makefile ] || exit 0; \
6028 r=`${PWD_COMMAND}`; export r; \
6029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6030 $(SET_LIB_PATH) \
6031 for flag in $(EXTRA_HOST_FLAGS); do \
6032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6033 done; \
6034 echo "Doing info in fileutils" ; \
6035 (cd fileutils && \
6036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6038 "RANLIB=$${RANLIB}" \
6039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6040 info) \
6041 || exit 1
6044 .PHONY: maybe-dvi-fileutils dvi-fileutils
6045 maybe-dvi-fileutils:
6047 dvi-fileutils: \
6048 configure-fileutils
6049 @[ -f ./fileutils/Makefile ] || exit 0; \
6050 r=`${PWD_COMMAND}`; export r; \
6051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6052 $(SET_LIB_PATH) \
6053 for flag in $(EXTRA_HOST_FLAGS); do \
6054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6055 done; \
6056 echo "Doing dvi in fileutils" ; \
6057 (cd fileutils && \
6058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6060 "RANLIB=$${RANLIB}" \
6061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6062 dvi) \
6063 || exit 1
6066 .PHONY: maybe-TAGS-fileutils TAGS-fileutils
6067 maybe-TAGS-fileutils:
6069 TAGS-fileutils: \
6070 configure-fileutils
6071 @[ -f ./fileutils/Makefile ] || exit 0; \
6072 r=`${PWD_COMMAND}`; export r; \
6073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6074 $(SET_LIB_PATH) \
6075 for flag in $(EXTRA_HOST_FLAGS); do \
6076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6077 done; \
6078 echo "Doing TAGS in fileutils" ; \
6079 (cd fileutils && \
6080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6082 "RANLIB=$${RANLIB}" \
6083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6084 TAGS) \
6085 || exit 1
6088 .PHONY: maybe-install-info-fileutils install-info-fileutils
6089 maybe-install-info-fileutils:
6091 install-info-fileutils: \
6092 configure-fileutils \
6093 info-fileutils
6094 @[ -f ./fileutils/Makefile ] || exit 0; \
6095 r=`${PWD_COMMAND}`; export r; \
6096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6097 $(SET_LIB_PATH) \
6098 for flag in $(EXTRA_HOST_FLAGS); do \
6099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6100 done; \
6101 echo "Doing install-info in fileutils" ; \
6102 (cd fileutils && \
6103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6105 "RANLIB=$${RANLIB}" \
6106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6107 install-info) \
6108 || exit 1
6111 .PHONY: maybe-installcheck-fileutils installcheck-fileutils
6112 maybe-installcheck-fileutils:
6114 installcheck-fileutils: \
6115 configure-fileutils
6116 @[ -f ./fileutils/Makefile ] || exit 0; \
6117 r=`${PWD_COMMAND}`; export r; \
6118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6119 $(SET_LIB_PATH) \
6120 for flag in $(EXTRA_HOST_FLAGS); do \
6121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6122 done; \
6123 echo "Doing installcheck in fileutils" ; \
6124 (cd fileutils && \
6125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6127 "RANLIB=$${RANLIB}" \
6128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6129 installcheck) \
6130 || exit 1
6133 .PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
6134 maybe-mostlyclean-fileutils:
6136 mostlyclean-fileutils:
6137 @[ -f ./fileutils/Makefile ] || exit 0; \
6138 r=`${PWD_COMMAND}`; export r; \
6139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6140 $(SET_LIB_PATH) \
6141 for flag in $(EXTRA_HOST_FLAGS); do \
6142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6143 done; \
6144 echo "Doing mostlyclean in fileutils" ; \
6145 (cd fileutils && \
6146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6148 "RANLIB=$${RANLIB}" \
6149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6150 mostlyclean) \
6151 || exit 1
6154 .PHONY: maybe-clean-fileutils clean-fileutils
6155 maybe-clean-fileutils:
6157 clean-fileutils:
6158 @[ -f ./fileutils/Makefile ] || exit 0; \
6159 r=`${PWD_COMMAND}`; export r; \
6160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6161 $(SET_LIB_PATH) \
6162 for flag in $(EXTRA_HOST_FLAGS); do \
6163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6164 done; \
6165 echo "Doing clean in fileutils" ; \
6166 (cd fileutils && \
6167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6169 "RANLIB=$${RANLIB}" \
6170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6171 clean) \
6172 || exit 1
6175 .PHONY: maybe-distclean-fileutils distclean-fileutils
6176 maybe-distclean-fileutils:
6178 distclean-fileutils:
6179 @[ -f ./fileutils/Makefile ] || exit 0; \
6180 r=`${PWD_COMMAND}`; export r; \
6181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6182 $(SET_LIB_PATH) \
6183 for flag in $(EXTRA_HOST_FLAGS); do \
6184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6185 done; \
6186 echo "Doing distclean in fileutils" ; \
6187 (cd fileutils && \
6188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6190 "RANLIB=$${RANLIB}" \
6191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6192 distclean) \
6193 || exit 1
6196 .PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
6197 maybe-maintainer-clean-fileutils:
6199 maintainer-clean-fileutils:
6200 @[ -f ./fileutils/Makefile ] || exit 0; \
6201 r=`${PWD_COMMAND}`; export r; \
6202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6203 $(SET_LIB_PATH) \
6204 for flag in $(EXTRA_HOST_FLAGS); do \
6205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6206 done; \
6207 echo "Doing maintainer-clean in fileutils" ; \
6208 (cd fileutils && \
6209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6211 "RANLIB=$${RANLIB}" \
6212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6213 maintainer-clean) \
6214 || exit 1
6218 .PHONY: configure-findutils maybe-configure-findutils
6219 maybe-configure-findutils:
6220 configure-findutils:
6221 @test ! -f findutils/Makefile || exit 0; \
6222 [ -d findutils ] || mkdir findutils; \
6223 r=`${PWD_COMMAND}`; export r; \
6224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6225 CC="$(CC)"; export CC; \
6226 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6227 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6228 CXX="$(CXX)"; export CXX; \
6229 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6230 AR="$(AR)"; export AR; \
6231 AS="$(AS)"; export AS; \
6232 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6233 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6234 LD="$(LD)"; export LD; \
6235 NM="$(NM)"; export NM; \
6236 RANLIB="$(RANLIB)"; export RANLIB; \
6237 WINDRES="$(WINDRES)"; export WINDRES; \
6238 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6239 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6240 echo Configuring in findutils; \
6241 cd findutils || exit 1; \
6242 case $(srcdir) in \
6243 \.) \
6244 srcdiroption="--srcdir=."; \
6245 libsrcdir=".";; \
6246 /* | [A-Za-z]:[\\/]*) \
6247 srcdiroption="--srcdir=$(srcdir)/findutils"; \
6248 libsrcdir="$$s/findutils";; \
6249 *) \
6250 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
6251 libsrcdir="$$s/findutils";; \
6252 esac; \
6253 $(SHELL) $${libsrcdir}/configure \
6254 $(HOST_CONFIGARGS) $${srcdiroption} \
6255 || exit 1
6257 .PHONY: all-findutils maybe-all-findutils
6258 maybe-all-findutils:
6259 all-findutils: configure-findutils
6260 @r=`${PWD_COMMAND}`; export r; \
6261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6262 $(SET_LIB_PATH) \
6263 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
6265 .PHONY: check-findutils maybe-check-findutils
6266 maybe-check-findutils:
6268 check-findutils:
6269 @r=`${PWD_COMMAND}`; export r; \
6270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6271 $(SET_LIB_PATH) \
6272 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
6275 .PHONY: install-findutils maybe-install-findutils
6276 maybe-install-findutils:
6278 install-findutils: installdirs
6279 @r=`${PWD_COMMAND}`; export r; \
6280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6281 $(SET_LIB_PATH) \
6282 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
6285 # Other targets (info, dvi, etc.)
6287 .PHONY: maybe-info-findutils info-findutils
6288 maybe-info-findutils:
6290 info-findutils: \
6291 configure-findutils
6292 @[ -f ./findutils/Makefile ] || exit 0; \
6293 r=`${PWD_COMMAND}`; export r; \
6294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6295 $(SET_LIB_PATH) \
6296 for flag in $(EXTRA_HOST_FLAGS); do \
6297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6298 done; \
6299 echo "Doing info in findutils" ; \
6300 (cd findutils && \
6301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6303 "RANLIB=$${RANLIB}" \
6304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6305 info) \
6306 || exit 1
6309 .PHONY: maybe-dvi-findutils dvi-findutils
6310 maybe-dvi-findutils:
6312 dvi-findutils: \
6313 configure-findutils
6314 @[ -f ./findutils/Makefile ] || exit 0; \
6315 r=`${PWD_COMMAND}`; export r; \
6316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6317 $(SET_LIB_PATH) \
6318 for flag in $(EXTRA_HOST_FLAGS); do \
6319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6320 done; \
6321 echo "Doing dvi in findutils" ; \
6322 (cd findutils && \
6323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6325 "RANLIB=$${RANLIB}" \
6326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6327 dvi) \
6328 || exit 1
6331 .PHONY: maybe-TAGS-findutils TAGS-findutils
6332 maybe-TAGS-findutils:
6334 TAGS-findutils: \
6335 configure-findutils
6336 @[ -f ./findutils/Makefile ] || exit 0; \
6337 r=`${PWD_COMMAND}`; export r; \
6338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6339 $(SET_LIB_PATH) \
6340 for flag in $(EXTRA_HOST_FLAGS); do \
6341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6342 done; \
6343 echo "Doing TAGS in findutils" ; \
6344 (cd findutils && \
6345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6347 "RANLIB=$${RANLIB}" \
6348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6349 TAGS) \
6350 || exit 1
6353 .PHONY: maybe-install-info-findutils install-info-findutils
6354 maybe-install-info-findutils:
6356 install-info-findutils: \
6357 configure-findutils \
6358 info-findutils
6359 @[ -f ./findutils/Makefile ] || exit 0; \
6360 r=`${PWD_COMMAND}`; export r; \
6361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6362 $(SET_LIB_PATH) \
6363 for flag in $(EXTRA_HOST_FLAGS); do \
6364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6365 done; \
6366 echo "Doing install-info in findutils" ; \
6367 (cd findutils && \
6368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6370 "RANLIB=$${RANLIB}" \
6371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6372 install-info) \
6373 || exit 1
6376 .PHONY: maybe-installcheck-findutils installcheck-findutils
6377 maybe-installcheck-findutils:
6379 installcheck-findutils: \
6380 configure-findutils
6381 @[ -f ./findutils/Makefile ] || exit 0; \
6382 r=`${PWD_COMMAND}`; export r; \
6383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6384 $(SET_LIB_PATH) \
6385 for flag in $(EXTRA_HOST_FLAGS); do \
6386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6387 done; \
6388 echo "Doing installcheck in findutils" ; \
6389 (cd findutils && \
6390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6392 "RANLIB=$${RANLIB}" \
6393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6394 installcheck) \
6395 || exit 1
6398 .PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
6399 maybe-mostlyclean-findutils:
6401 mostlyclean-findutils:
6402 @[ -f ./findutils/Makefile ] || exit 0; \
6403 r=`${PWD_COMMAND}`; export r; \
6404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6405 $(SET_LIB_PATH) \
6406 for flag in $(EXTRA_HOST_FLAGS); do \
6407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6408 done; \
6409 echo "Doing mostlyclean in findutils" ; \
6410 (cd findutils && \
6411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6413 "RANLIB=$${RANLIB}" \
6414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6415 mostlyclean) \
6416 || exit 1
6419 .PHONY: maybe-clean-findutils clean-findutils
6420 maybe-clean-findutils:
6422 clean-findutils:
6423 @[ -f ./findutils/Makefile ] || exit 0; \
6424 r=`${PWD_COMMAND}`; export r; \
6425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6426 $(SET_LIB_PATH) \
6427 for flag in $(EXTRA_HOST_FLAGS); do \
6428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6429 done; \
6430 echo "Doing clean in findutils" ; \
6431 (cd findutils && \
6432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6434 "RANLIB=$${RANLIB}" \
6435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6436 clean) \
6437 || exit 1
6440 .PHONY: maybe-distclean-findutils distclean-findutils
6441 maybe-distclean-findutils:
6443 distclean-findutils:
6444 @[ -f ./findutils/Makefile ] || exit 0; \
6445 r=`${PWD_COMMAND}`; export r; \
6446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6447 $(SET_LIB_PATH) \
6448 for flag in $(EXTRA_HOST_FLAGS); do \
6449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6450 done; \
6451 echo "Doing distclean in findutils" ; \
6452 (cd findutils && \
6453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6455 "RANLIB=$${RANLIB}" \
6456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6457 distclean) \
6458 || exit 1
6461 .PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
6462 maybe-maintainer-clean-findutils:
6464 maintainer-clean-findutils:
6465 @[ -f ./findutils/Makefile ] || exit 0; \
6466 r=`${PWD_COMMAND}`; export r; \
6467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6468 $(SET_LIB_PATH) \
6469 for flag in $(EXTRA_HOST_FLAGS); do \
6470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6471 done; \
6472 echo "Doing maintainer-clean in findutils" ; \
6473 (cd findutils && \
6474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6476 "RANLIB=$${RANLIB}" \
6477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6478 maintainer-clean) \
6479 || exit 1
6483 .PHONY: configure-find maybe-configure-find
6484 maybe-configure-find:
6485 configure-find:
6486 @test ! -f find/Makefile || exit 0; \
6487 [ -d find ] || mkdir find; \
6488 r=`${PWD_COMMAND}`; export r; \
6489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6490 CC="$(CC)"; export CC; \
6491 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6492 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6493 CXX="$(CXX)"; export CXX; \
6494 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6495 AR="$(AR)"; export AR; \
6496 AS="$(AS)"; export AS; \
6497 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6498 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6499 LD="$(LD)"; export LD; \
6500 NM="$(NM)"; export NM; \
6501 RANLIB="$(RANLIB)"; export RANLIB; \
6502 WINDRES="$(WINDRES)"; export WINDRES; \
6503 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6504 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6505 echo Configuring in find; \
6506 cd find || exit 1; \
6507 case $(srcdir) in \
6508 \.) \
6509 srcdiroption="--srcdir=."; \
6510 libsrcdir=".";; \
6511 /* | [A-Za-z]:[\\/]*) \
6512 srcdiroption="--srcdir=$(srcdir)/find"; \
6513 libsrcdir="$$s/find";; \
6514 *) \
6515 srcdiroption="--srcdir=../$(srcdir)/find"; \
6516 libsrcdir="$$s/find";; \
6517 esac; \
6518 $(SHELL) $${libsrcdir}/configure \
6519 $(HOST_CONFIGARGS) $${srcdiroption} \
6520 || exit 1
6522 .PHONY: all-find maybe-all-find
6523 maybe-all-find:
6524 all-find: configure-find
6525 @r=`${PWD_COMMAND}`; export r; \
6526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6527 $(SET_LIB_PATH) \
6528 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
6530 .PHONY: check-find maybe-check-find
6531 maybe-check-find:
6533 check-find:
6534 @r=`${PWD_COMMAND}`; export r; \
6535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6536 $(SET_LIB_PATH) \
6537 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
6540 .PHONY: install-find maybe-install-find
6541 maybe-install-find:
6543 install-find: installdirs
6544 @r=`${PWD_COMMAND}`; export r; \
6545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6546 $(SET_LIB_PATH) \
6547 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
6550 # Other targets (info, dvi, etc.)
6552 .PHONY: maybe-info-find info-find
6553 maybe-info-find:
6555 info-find: \
6556 configure-find
6557 @[ -f ./find/Makefile ] || exit 0; \
6558 r=`${PWD_COMMAND}`; export r; \
6559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6560 $(SET_LIB_PATH) \
6561 for flag in $(EXTRA_HOST_FLAGS); do \
6562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6563 done; \
6564 echo "Doing info in find" ; \
6565 (cd find && \
6566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6568 "RANLIB=$${RANLIB}" \
6569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6570 info) \
6571 || exit 1
6574 .PHONY: maybe-dvi-find dvi-find
6575 maybe-dvi-find:
6577 dvi-find: \
6578 configure-find
6579 @[ -f ./find/Makefile ] || exit 0; \
6580 r=`${PWD_COMMAND}`; export r; \
6581 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6582 $(SET_LIB_PATH) \
6583 for flag in $(EXTRA_HOST_FLAGS); do \
6584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6585 done; \
6586 echo "Doing dvi in find" ; \
6587 (cd find && \
6588 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6589 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6590 "RANLIB=$${RANLIB}" \
6591 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6592 dvi) \
6593 || exit 1
6596 .PHONY: maybe-TAGS-find TAGS-find
6597 maybe-TAGS-find:
6599 TAGS-find: \
6600 configure-find
6601 @[ -f ./find/Makefile ] || exit 0; \
6602 r=`${PWD_COMMAND}`; export r; \
6603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6604 $(SET_LIB_PATH) \
6605 for flag in $(EXTRA_HOST_FLAGS); do \
6606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6607 done; \
6608 echo "Doing TAGS in find" ; \
6609 (cd find && \
6610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6612 "RANLIB=$${RANLIB}" \
6613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6614 TAGS) \
6615 || exit 1
6618 .PHONY: maybe-install-info-find install-info-find
6619 maybe-install-info-find:
6621 install-info-find: \
6622 configure-find \
6623 info-find
6624 @[ -f ./find/Makefile ] || exit 0; \
6625 r=`${PWD_COMMAND}`; export r; \
6626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6627 $(SET_LIB_PATH) \
6628 for flag in $(EXTRA_HOST_FLAGS); do \
6629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6630 done; \
6631 echo "Doing install-info in find" ; \
6632 (cd find && \
6633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6635 "RANLIB=$${RANLIB}" \
6636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6637 install-info) \
6638 || exit 1
6641 .PHONY: maybe-installcheck-find installcheck-find
6642 maybe-installcheck-find:
6644 installcheck-find: \
6645 configure-find
6646 @[ -f ./find/Makefile ] || exit 0; \
6647 r=`${PWD_COMMAND}`; export r; \
6648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6649 $(SET_LIB_PATH) \
6650 for flag in $(EXTRA_HOST_FLAGS); do \
6651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6652 done; \
6653 echo "Doing installcheck in find" ; \
6654 (cd find && \
6655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6657 "RANLIB=$${RANLIB}" \
6658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6659 installcheck) \
6660 || exit 1
6663 .PHONY: maybe-mostlyclean-find mostlyclean-find
6664 maybe-mostlyclean-find:
6666 mostlyclean-find:
6667 @[ -f ./find/Makefile ] || exit 0; \
6668 r=`${PWD_COMMAND}`; export r; \
6669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6670 $(SET_LIB_PATH) \
6671 for flag in $(EXTRA_HOST_FLAGS); do \
6672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6673 done; \
6674 echo "Doing mostlyclean in find" ; \
6675 (cd find && \
6676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6678 "RANLIB=$${RANLIB}" \
6679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6680 mostlyclean) \
6681 || exit 1
6684 .PHONY: maybe-clean-find clean-find
6685 maybe-clean-find:
6687 clean-find:
6688 @[ -f ./find/Makefile ] || exit 0; \
6689 r=`${PWD_COMMAND}`; export r; \
6690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6691 $(SET_LIB_PATH) \
6692 for flag in $(EXTRA_HOST_FLAGS); do \
6693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6694 done; \
6695 echo "Doing clean in find" ; \
6696 (cd find && \
6697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6699 "RANLIB=$${RANLIB}" \
6700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6701 clean) \
6702 || exit 1
6705 .PHONY: maybe-distclean-find distclean-find
6706 maybe-distclean-find:
6708 distclean-find:
6709 @[ -f ./find/Makefile ] || exit 0; \
6710 r=`${PWD_COMMAND}`; export r; \
6711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6712 $(SET_LIB_PATH) \
6713 for flag in $(EXTRA_HOST_FLAGS); do \
6714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6715 done; \
6716 echo "Doing distclean in find" ; \
6717 (cd find && \
6718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6720 "RANLIB=$${RANLIB}" \
6721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6722 distclean) \
6723 || exit 1
6726 .PHONY: maybe-maintainer-clean-find maintainer-clean-find
6727 maybe-maintainer-clean-find:
6729 maintainer-clean-find:
6730 @[ -f ./find/Makefile ] || exit 0; \
6731 r=`${PWD_COMMAND}`; export r; \
6732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6733 $(SET_LIB_PATH) \
6734 for flag in $(EXTRA_HOST_FLAGS); do \
6735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6736 done; \
6737 echo "Doing maintainer-clean in find" ; \
6738 (cd find && \
6739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6741 "RANLIB=$${RANLIB}" \
6742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6743 maintainer-clean) \
6744 || exit 1
6748 .PHONY: configure-flex maybe-configure-flex
6749 maybe-configure-flex:
6750 configure-flex:
6751 @test ! -f flex/Makefile || exit 0; \
6752 [ -d flex ] || mkdir flex; \
6753 r=`${PWD_COMMAND}`; export r; \
6754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6755 CC="$(CC)"; export CC; \
6756 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6757 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6758 CXX="$(CXX)"; export CXX; \
6759 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6760 AR="$(AR)"; export AR; \
6761 AS="$(AS)"; export AS; \
6762 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6763 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6764 LD="$(LD)"; export LD; \
6765 NM="$(NM)"; export NM; \
6766 RANLIB="$(RANLIB)"; export RANLIB; \
6767 WINDRES="$(WINDRES)"; export WINDRES; \
6768 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6769 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6770 echo Configuring in flex; \
6771 cd flex || exit 1; \
6772 case $(srcdir) in \
6773 \.) \
6774 srcdiroption="--srcdir=."; \
6775 libsrcdir=".";; \
6776 /* | [A-Za-z]:[\\/]*) \
6777 srcdiroption="--srcdir=$(srcdir)/flex"; \
6778 libsrcdir="$$s/flex";; \
6779 *) \
6780 srcdiroption="--srcdir=../$(srcdir)/flex"; \
6781 libsrcdir="$$s/flex";; \
6782 esac; \
6783 $(SHELL) $${libsrcdir}/configure \
6784 $(HOST_CONFIGARGS) $${srcdiroption} \
6785 || exit 1
6787 .PHONY: all-flex maybe-all-flex
6788 maybe-all-flex:
6789 all-flex: configure-flex
6790 @r=`${PWD_COMMAND}`; export r; \
6791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6792 $(SET_LIB_PATH) \
6793 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
6795 .PHONY: check-flex maybe-check-flex
6796 maybe-check-flex:
6798 # This module is only tested in a native toolchain.
6799 check-flex:
6800 @if [ '$(host)' = '$(target)' ] ; then \
6801 r=`${PWD_COMMAND}`; export r; \
6802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6803 $(SET_LIB_PATH) \
6804 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
6808 .PHONY: install-flex maybe-install-flex
6809 maybe-install-flex:
6811 install-flex: installdirs
6812 @r=`${PWD_COMMAND}`; export r; \
6813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6814 $(SET_LIB_PATH) \
6815 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
6818 # Other targets (info, dvi, etc.)
6820 .PHONY: maybe-info-flex info-flex
6821 maybe-info-flex:
6823 info-flex: \
6824 configure-flex
6825 @[ -f ./flex/Makefile ] || exit 0; \
6826 r=`${PWD_COMMAND}`; export r; \
6827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6828 $(SET_LIB_PATH) \
6829 for flag in $(EXTRA_HOST_FLAGS); do \
6830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6831 done; \
6832 echo "Doing info in flex" ; \
6833 (cd flex && \
6834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6836 "RANLIB=$${RANLIB}" \
6837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6838 info) \
6839 || exit 1
6842 .PHONY: maybe-dvi-flex dvi-flex
6843 maybe-dvi-flex:
6845 dvi-flex: \
6846 configure-flex
6847 @[ -f ./flex/Makefile ] || exit 0; \
6848 r=`${PWD_COMMAND}`; export r; \
6849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6850 $(SET_LIB_PATH) \
6851 for flag in $(EXTRA_HOST_FLAGS); do \
6852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6853 done; \
6854 echo "Doing dvi in flex" ; \
6855 (cd flex && \
6856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6858 "RANLIB=$${RANLIB}" \
6859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6860 dvi) \
6861 || exit 1
6864 .PHONY: maybe-TAGS-flex TAGS-flex
6865 maybe-TAGS-flex:
6867 TAGS-flex: \
6868 configure-flex
6869 @[ -f ./flex/Makefile ] || exit 0; \
6870 r=`${PWD_COMMAND}`; export r; \
6871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6872 $(SET_LIB_PATH) \
6873 for flag in $(EXTRA_HOST_FLAGS); do \
6874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6875 done; \
6876 echo "Doing TAGS in flex" ; \
6877 (cd flex && \
6878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6880 "RANLIB=$${RANLIB}" \
6881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6882 TAGS) \
6883 || exit 1
6886 .PHONY: maybe-install-info-flex install-info-flex
6887 maybe-install-info-flex:
6889 install-info-flex: \
6890 configure-flex \
6891 info-flex
6892 @[ -f ./flex/Makefile ] || exit 0; \
6893 r=`${PWD_COMMAND}`; export r; \
6894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6895 $(SET_LIB_PATH) \
6896 for flag in $(EXTRA_HOST_FLAGS); do \
6897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6898 done; \
6899 echo "Doing install-info in flex" ; \
6900 (cd flex && \
6901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6903 "RANLIB=$${RANLIB}" \
6904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6905 install-info) \
6906 || exit 1
6909 .PHONY: maybe-installcheck-flex installcheck-flex
6910 maybe-installcheck-flex:
6912 installcheck-flex: \
6913 configure-flex
6914 @[ -f ./flex/Makefile ] || exit 0; \
6915 r=`${PWD_COMMAND}`; export r; \
6916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6917 $(SET_LIB_PATH) \
6918 for flag in $(EXTRA_HOST_FLAGS); do \
6919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6920 done; \
6921 echo "Doing installcheck in flex" ; \
6922 (cd flex && \
6923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6925 "RANLIB=$${RANLIB}" \
6926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6927 installcheck) \
6928 || exit 1
6931 .PHONY: maybe-mostlyclean-flex mostlyclean-flex
6932 maybe-mostlyclean-flex:
6934 mostlyclean-flex:
6935 @[ -f ./flex/Makefile ] || exit 0; \
6936 r=`${PWD_COMMAND}`; export r; \
6937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6938 $(SET_LIB_PATH) \
6939 for flag in $(EXTRA_HOST_FLAGS); do \
6940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6941 done; \
6942 echo "Doing mostlyclean in flex" ; \
6943 (cd flex && \
6944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6946 "RANLIB=$${RANLIB}" \
6947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6948 mostlyclean) \
6949 || exit 1
6952 .PHONY: maybe-clean-flex clean-flex
6953 maybe-clean-flex:
6955 clean-flex:
6956 @[ -f ./flex/Makefile ] || exit 0; \
6957 r=`${PWD_COMMAND}`; export r; \
6958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6959 $(SET_LIB_PATH) \
6960 for flag in $(EXTRA_HOST_FLAGS); do \
6961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6962 done; \
6963 echo "Doing clean in flex" ; \
6964 (cd flex && \
6965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6967 "RANLIB=$${RANLIB}" \
6968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6969 clean) \
6970 || exit 1
6973 .PHONY: maybe-distclean-flex distclean-flex
6974 maybe-distclean-flex:
6976 distclean-flex:
6977 @[ -f ./flex/Makefile ] || exit 0; \
6978 r=`${PWD_COMMAND}`; export r; \
6979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6980 $(SET_LIB_PATH) \
6981 for flag in $(EXTRA_HOST_FLAGS); do \
6982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6983 done; \
6984 echo "Doing distclean in flex" ; \
6985 (cd flex && \
6986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6988 "RANLIB=$${RANLIB}" \
6989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6990 distclean) \
6991 || exit 1
6994 .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
6995 maybe-maintainer-clean-flex:
6997 maintainer-clean-flex:
6998 @[ -f ./flex/Makefile ] || exit 0; \
6999 r=`${PWD_COMMAND}`; export r; \
7000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7001 $(SET_LIB_PATH) \
7002 for flag in $(EXTRA_HOST_FLAGS); do \
7003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7004 done; \
7005 echo "Doing maintainer-clean in flex" ; \
7006 (cd flex && \
7007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7009 "RANLIB=$${RANLIB}" \
7010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7011 maintainer-clean) \
7012 || exit 1
7016 .PHONY: configure-gas maybe-configure-gas
7017 maybe-configure-gas:
7018 configure-gas:
7019 @test ! -f gas/Makefile || exit 0; \
7020 [ -d gas ] || mkdir gas; \
7021 r=`${PWD_COMMAND}`; export r; \
7022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7023 CC="$(CC)"; export CC; \
7024 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7025 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7026 CXX="$(CXX)"; export CXX; \
7027 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7028 AR="$(AR)"; export AR; \
7029 AS="$(AS)"; export AS; \
7030 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7031 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7032 LD="$(LD)"; export LD; \
7033 NM="$(NM)"; export NM; \
7034 RANLIB="$(RANLIB)"; export RANLIB; \
7035 WINDRES="$(WINDRES)"; export WINDRES; \
7036 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7037 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7038 echo Configuring in gas; \
7039 cd gas || exit 1; \
7040 case $(srcdir) in \
7041 \.) \
7042 srcdiroption="--srcdir=."; \
7043 libsrcdir=".";; \
7044 /* | [A-Za-z]:[\\/]*) \
7045 srcdiroption="--srcdir=$(srcdir)/gas"; \
7046 libsrcdir="$$s/gas";; \
7047 *) \
7048 srcdiroption="--srcdir=../$(srcdir)/gas"; \
7049 libsrcdir="$$s/gas";; \
7050 esac; \
7051 $(SHELL) $${libsrcdir}/configure \
7052 $(HOST_CONFIGARGS) $${srcdiroption} \
7053 || exit 1
7055 .PHONY: all-gas maybe-all-gas
7056 maybe-all-gas:
7057 all-gas: configure-gas
7058 @r=`${PWD_COMMAND}`; export r; \
7059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7060 $(SET_LIB_PATH) \
7061 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
7063 .PHONY: check-gas maybe-check-gas
7064 maybe-check-gas:
7066 check-gas:
7067 @r=`${PWD_COMMAND}`; export r; \
7068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7069 $(SET_LIB_PATH) \
7070 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
7073 .PHONY: install-gas maybe-install-gas
7074 maybe-install-gas:
7076 install-gas: installdirs
7077 @r=`${PWD_COMMAND}`; export r; \
7078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7079 $(SET_LIB_PATH) \
7080 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
7083 # Other targets (info, dvi, etc.)
7085 .PHONY: maybe-info-gas info-gas
7086 maybe-info-gas:
7088 info-gas: \
7089 configure-gas
7090 @[ -f ./gas/Makefile ] || exit 0; \
7091 r=`${PWD_COMMAND}`; export r; \
7092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7093 $(SET_LIB_PATH) \
7094 for flag in $(EXTRA_HOST_FLAGS); do \
7095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7096 done; \
7097 echo "Doing info in gas" ; \
7098 (cd gas && \
7099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7101 "RANLIB=$${RANLIB}" \
7102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7103 info) \
7104 || exit 1
7107 .PHONY: maybe-dvi-gas dvi-gas
7108 maybe-dvi-gas:
7110 dvi-gas: \
7111 configure-gas
7112 @[ -f ./gas/Makefile ] || exit 0; \
7113 r=`${PWD_COMMAND}`; export r; \
7114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7115 $(SET_LIB_PATH) \
7116 for flag in $(EXTRA_HOST_FLAGS); do \
7117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7118 done; \
7119 echo "Doing dvi in gas" ; \
7120 (cd gas && \
7121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7123 "RANLIB=$${RANLIB}" \
7124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7125 dvi) \
7126 || exit 1
7129 .PHONY: maybe-TAGS-gas TAGS-gas
7130 maybe-TAGS-gas:
7132 TAGS-gas: \
7133 configure-gas
7134 @[ -f ./gas/Makefile ] || exit 0; \
7135 r=`${PWD_COMMAND}`; export r; \
7136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7137 $(SET_LIB_PATH) \
7138 for flag in $(EXTRA_HOST_FLAGS); do \
7139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7140 done; \
7141 echo "Doing TAGS in gas" ; \
7142 (cd gas && \
7143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7145 "RANLIB=$${RANLIB}" \
7146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7147 TAGS) \
7148 || exit 1
7151 .PHONY: maybe-install-info-gas install-info-gas
7152 maybe-install-info-gas:
7154 install-info-gas: \
7155 configure-gas \
7156 info-gas
7157 @[ -f ./gas/Makefile ] || exit 0; \
7158 r=`${PWD_COMMAND}`; export r; \
7159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7160 $(SET_LIB_PATH) \
7161 for flag in $(EXTRA_HOST_FLAGS); do \
7162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7163 done; \
7164 echo "Doing install-info in gas" ; \
7165 (cd gas && \
7166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7168 "RANLIB=$${RANLIB}" \
7169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7170 install-info) \
7171 || exit 1
7174 .PHONY: maybe-installcheck-gas installcheck-gas
7175 maybe-installcheck-gas:
7177 installcheck-gas: \
7178 configure-gas
7179 @[ -f ./gas/Makefile ] || exit 0; \
7180 r=`${PWD_COMMAND}`; export r; \
7181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7182 $(SET_LIB_PATH) \
7183 for flag in $(EXTRA_HOST_FLAGS); do \
7184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7185 done; \
7186 echo "Doing installcheck in gas" ; \
7187 (cd gas && \
7188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7190 "RANLIB=$${RANLIB}" \
7191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7192 installcheck) \
7193 || exit 1
7196 .PHONY: maybe-mostlyclean-gas mostlyclean-gas
7197 maybe-mostlyclean-gas:
7199 mostlyclean-gas:
7200 @[ -f ./gas/Makefile ] || exit 0; \
7201 r=`${PWD_COMMAND}`; export r; \
7202 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7203 $(SET_LIB_PATH) \
7204 for flag in $(EXTRA_HOST_FLAGS); do \
7205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7206 done; \
7207 echo "Doing mostlyclean in gas" ; \
7208 (cd gas && \
7209 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7210 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7211 "RANLIB=$${RANLIB}" \
7212 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7213 mostlyclean) \
7214 || exit 1
7217 .PHONY: maybe-clean-gas clean-gas
7218 maybe-clean-gas:
7220 clean-gas:
7221 @[ -f ./gas/Makefile ] || exit 0; \
7222 r=`${PWD_COMMAND}`; export r; \
7223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7224 $(SET_LIB_PATH) \
7225 for flag in $(EXTRA_HOST_FLAGS); do \
7226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7227 done; \
7228 echo "Doing clean in gas" ; \
7229 (cd gas && \
7230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7232 "RANLIB=$${RANLIB}" \
7233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7234 clean) \
7235 || exit 1
7238 .PHONY: maybe-distclean-gas distclean-gas
7239 maybe-distclean-gas:
7241 distclean-gas:
7242 @[ -f ./gas/Makefile ] || exit 0; \
7243 r=`${PWD_COMMAND}`; export r; \
7244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7245 $(SET_LIB_PATH) \
7246 for flag in $(EXTRA_HOST_FLAGS); do \
7247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7248 done; \
7249 echo "Doing distclean in gas" ; \
7250 (cd gas && \
7251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7253 "RANLIB=$${RANLIB}" \
7254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7255 distclean) \
7256 || exit 1
7259 .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
7260 maybe-maintainer-clean-gas:
7262 maintainer-clean-gas:
7263 @[ -f ./gas/Makefile ] || exit 0; \
7264 r=`${PWD_COMMAND}`; export r; \
7265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7266 $(SET_LIB_PATH) \
7267 for flag in $(EXTRA_HOST_FLAGS); do \
7268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7269 done; \
7270 echo "Doing maintainer-clean in gas" ; \
7271 (cd gas && \
7272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7274 "RANLIB=$${RANLIB}" \
7275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7276 maintainer-clean) \
7277 || exit 1
7281 .PHONY: configure-gawk maybe-configure-gawk
7282 maybe-configure-gawk:
7283 configure-gawk:
7284 @test ! -f gawk/Makefile || exit 0; \
7285 [ -d gawk ] || mkdir gawk; \
7286 r=`${PWD_COMMAND}`; export r; \
7287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7288 CC="$(CC)"; export CC; \
7289 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7290 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7291 CXX="$(CXX)"; export CXX; \
7292 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7293 AR="$(AR)"; export AR; \
7294 AS="$(AS)"; export AS; \
7295 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7296 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7297 LD="$(LD)"; export LD; \
7298 NM="$(NM)"; export NM; \
7299 RANLIB="$(RANLIB)"; export RANLIB; \
7300 WINDRES="$(WINDRES)"; export WINDRES; \
7301 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7302 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7303 echo Configuring in gawk; \
7304 cd gawk || exit 1; \
7305 case $(srcdir) in \
7306 \.) \
7307 srcdiroption="--srcdir=."; \
7308 libsrcdir=".";; \
7309 /* | [A-Za-z]:[\\/]*) \
7310 srcdiroption="--srcdir=$(srcdir)/gawk"; \
7311 libsrcdir="$$s/gawk";; \
7312 *) \
7313 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
7314 libsrcdir="$$s/gawk";; \
7315 esac; \
7316 $(SHELL) $${libsrcdir}/configure \
7317 $(HOST_CONFIGARGS) $${srcdiroption} \
7318 || exit 1
7320 .PHONY: all-gawk maybe-all-gawk
7321 maybe-all-gawk:
7322 all-gawk: configure-gawk
7323 @r=`${PWD_COMMAND}`; export r; \
7324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7325 $(SET_LIB_PATH) \
7326 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
7328 .PHONY: check-gawk maybe-check-gawk
7329 maybe-check-gawk:
7331 check-gawk:
7332 @r=`${PWD_COMMAND}`; export r; \
7333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7334 $(SET_LIB_PATH) \
7335 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
7338 .PHONY: install-gawk maybe-install-gawk
7339 maybe-install-gawk:
7341 install-gawk: installdirs
7342 @r=`${PWD_COMMAND}`; export r; \
7343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7344 $(SET_LIB_PATH) \
7345 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
7348 # Other targets (info, dvi, etc.)
7350 .PHONY: maybe-info-gawk info-gawk
7351 maybe-info-gawk:
7353 info-gawk: \
7354 configure-gawk
7355 @[ -f ./gawk/Makefile ] || exit 0; \
7356 r=`${PWD_COMMAND}`; export r; \
7357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7358 $(SET_LIB_PATH) \
7359 for flag in $(EXTRA_HOST_FLAGS); do \
7360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7361 done; \
7362 echo "Doing info in gawk" ; \
7363 (cd gawk && \
7364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7366 "RANLIB=$${RANLIB}" \
7367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7368 info) \
7369 || exit 1
7372 .PHONY: maybe-dvi-gawk dvi-gawk
7373 maybe-dvi-gawk:
7375 dvi-gawk: \
7376 configure-gawk
7377 @[ -f ./gawk/Makefile ] || exit 0; \
7378 r=`${PWD_COMMAND}`; export r; \
7379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7380 $(SET_LIB_PATH) \
7381 for flag in $(EXTRA_HOST_FLAGS); do \
7382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7383 done; \
7384 echo "Doing dvi in gawk" ; \
7385 (cd gawk && \
7386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7388 "RANLIB=$${RANLIB}" \
7389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7390 dvi) \
7391 || exit 1
7394 .PHONY: maybe-TAGS-gawk TAGS-gawk
7395 maybe-TAGS-gawk:
7397 TAGS-gawk: \
7398 configure-gawk
7399 @[ -f ./gawk/Makefile ] || exit 0; \
7400 r=`${PWD_COMMAND}`; export r; \
7401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7402 $(SET_LIB_PATH) \
7403 for flag in $(EXTRA_HOST_FLAGS); do \
7404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7405 done; \
7406 echo "Doing TAGS in gawk" ; \
7407 (cd gawk && \
7408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7410 "RANLIB=$${RANLIB}" \
7411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7412 TAGS) \
7413 || exit 1
7416 .PHONY: maybe-install-info-gawk install-info-gawk
7417 maybe-install-info-gawk:
7419 install-info-gawk: \
7420 configure-gawk \
7421 info-gawk
7422 @[ -f ./gawk/Makefile ] || exit 0; \
7423 r=`${PWD_COMMAND}`; export r; \
7424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7425 $(SET_LIB_PATH) \
7426 for flag in $(EXTRA_HOST_FLAGS); do \
7427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7428 done; \
7429 echo "Doing install-info in gawk" ; \
7430 (cd gawk && \
7431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7433 "RANLIB=$${RANLIB}" \
7434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7435 install-info) \
7436 || exit 1
7439 .PHONY: maybe-installcheck-gawk installcheck-gawk
7440 maybe-installcheck-gawk:
7442 installcheck-gawk: \
7443 configure-gawk
7444 @[ -f ./gawk/Makefile ] || exit 0; \
7445 r=`${PWD_COMMAND}`; export r; \
7446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7447 $(SET_LIB_PATH) \
7448 for flag in $(EXTRA_HOST_FLAGS); do \
7449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7450 done; \
7451 echo "Doing installcheck in gawk" ; \
7452 (cd gawk && \
7453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7455 "RANLIB=$${RANLIB}" \
7456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7457 installcheck) \
7458 || exit 1
7461 .PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
7462 maybe-mostlyclean-gawk:
7464 mostlyclean-gawk:
7465 @[ -f ./gawk/Makefile ] || exit 0; \
7466 r=`${PWD_COMMAND}`; export r; \
7467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7468 $(SET_LIB_PATH) \
7469 for flag in $(EXTRA_HOST_FLAGS); do \
7470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7471 done; \
7472 echo "Doing mostlyclean in gawk" ; \
7473 (cd gawk && \
7474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7476 "RANLIB=$${RANLIB}" \
7477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7478 mostlyclean) \
7479 || exit 1
7482 .PHONY: maybe-clean-gawk clean-gawk
7483 maybe-clean-gawk:
7485 clean-gawk:
7486 @[ -f ./gawk/Makefile ] || exit 0; \
7487 r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7489 $(SET_LIB_PATH) \
7490 for flag in $(EXTRA_HOST_FLAGS); do \
7491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7492 done; \
7493 echo "Doing clean in gawk" ; \
7494 (cd gawk && \
7495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7497 "RANLIB=$${RANLIB}" \
7498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7499 clean) \
7500 || exit 1
7503 .PHONY: maybe-distclean-gawk distclean-gawk
7504 maybe-distclean-gawk:
7506 distclean-gawk:
7507 @[ -f ./gawk/Makefile ] || exit 0; \
7508 r=`${PWD_COMMAND}`; export r; \
7509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7510 $(SET_LIB_PATH) \
7511 for flag in $(EXTRA_HOST_FLAGS); do \
7512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7513 done; \
7514 echo "Doing distclean in gawk" ; \
7515 (cd gawk && \
7516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7518 "RANLIB=$${RANLIB}" \
7519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7520 distclean) \
7521 || exit 1
7524 .PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
7525 maybe-maintainer-clean-gawk:
7527 maintainer-clean-gawk:
7528 @[ -f ./gawk/Makefile ] || exit 0; \
7529 r=`${PWD_COMMAND}`; export r; \
7530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7531 $(SET_LIB_PATH) \
7532 for flag in $(EXTRA_HOST_FLAGS); do \
7533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7534 done; \
7535 echo "Doing maintainer-clean in gawk" ; \
7536 (cd gawk && \
7537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7539 "RANLIB=$${RANLIB}" \
7540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7541 maintainer-clean) \
7542 || exit 1
7546 .PHONY: configure-gettext maybe-configure-gettext
7547 maybe-configure-gettext:
7548 configure-gettext:
7549 @test ! -f gettext/Makefile || exit 0; \
7550 [ -d gettext ] || mkdir gettext; \
7551 r=`${PWD_COMMAND}`; export r; \
7552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7553 CC="$(CC)"; export CC; \
7554 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7555 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7556 CXX="$(CXX)"; export CXX; \
7557 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7558 AR="$(AR)"; export AR; \
7559 AS="$(AS)"; export AS; \
7560 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7561 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7562 LD="$(LD)"; export LD; \
7563 NM="$(NM)"; export NM; \
7564 RANLIB="$(RANLIB)"; export RANLIB; \
7565 WINDRES="$(WINDRES)"; export WINDRES; \
7566 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7567 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7568 echo Configuring in gettext; \
7569 cd gettext || exit 1; \
7570 case $(srcdir) in \
7571 \.) \
7572 srcdiroption="--srcdir=."; \
7573 libsrcdir=".";; \
7574 /* | [A-Za-z]:[\\/]*) \
7575 srcdiroption="--srcdir=$(srcdir)/gettext"; \
7576 libsrcdir="$$s/gettext";; \
7577 *) \
7578 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
7579 libsrcdir="$$s/gettext";; \
7580 esac; \
7581 $(SHELL) $${libsrcdir}/configure \
7582 $(HOST_CONFIGARGS) $${srcdiroption} \
7583 || exit 1
7585 .PHONY: all-gettext maybe-all-gettext
7586 maybe-all-gettext:
7587 all-gettext: configure-gettext
7588 @r=`${PWD_COMMAND}`; export r; \
7589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7590 $(SET_LIB_PATH) \
7591 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
7593 .PHONY: check-gettext maybe-check-gettext
7594 maybe-check-gettext:
7596 check-gettext:
7597 @r=`${PWD_COMMAND}`; export r; \
7598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7599 $(SET_LIB_PATH) \
7600 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
7603 .PHONY: install-gettext maybe-install-gettext
7604 maybe-install-gettext:
7606 install-gettext: installdirs
7607 @r=`${PWD_COMMAND}`; export r; \
7608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7609 $(SET_LIB_PATH) \
7610 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
7613 # Other targets (info, dvi, etc.)
7615 .PHONY: maybe-info-gettext info-gettext
7616 maybe-info-gettext:
7618 info-gettext: \
7619 configure-gettext
7620 @[ -f ./gettext/Makefile ] || exit 0; \
7621 r=`${PWD_COMMAND}`; export r; \
7622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7623 $(SET_LIB_PATH) \
7624 for flag in $(EXTRA_HOST_FLAGS); do \
7625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7626 done; \
7627 echo "Doing info in gettext" ; \
7628 (cd gettext && \
7629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7631 "RANLIB=$${RANLIB}" \
7632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7633 info) \
7634 || exit 1
7637 .PHONY: maybe-dvi-gettext dvi-gettext
7638 maybe-dvi-gettext:
7640 dvi-gettext: \
7641 configure-gettext
7642 @[ -f ./gettext/Makefile ] || exit 0; \
7643 r=`${PWD_COMMAND}`; export r; \
7644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7645 $(SET_LIB_PATH) \
7646 for flag in $(EXTRA_HOST_FLAGS); do \
7647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7648 done; \
7649 echo "Doing dvi in gettext" ; \
7650 (cd gettext && \
7651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7653 "RANLIB=$${RANLIB}" \
7654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7655 dvi) \
7656 || exit 1
7659 .PHONY: maybe-TAGS-gettext TAGS-gettext
7660 maybe-TAGS-gettext:
7662 TAGS-gettext: \
7663 configure-gettext
7664 @[ -f ./gettext/Makefile ] || exit 0; \
7665 r=`${PWD_COMMAND}`; export r; \
7666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7667 $(SET_LIB_PATH) \
7668 for flag in $(EXTRA_HOST_FLAGS); do \
7669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7670 done; \
7671 echo "Doing TAGS in gettext" ; \
7672 (cd gettext && \
7673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7675 "RANLIB=$${RANLIB}" \
7676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7677 TAGS) \
7678 || exit 1
7681 .PHONY: maybe-install-info-gettext install-info-gettext
7682 maybe-install-info-gettext:
7684 install-info-gettext: \
7685 configure-gettext \
7686 info-gettext
7687 @[ -f ./gettext/Makefile ] || exit 0; \
7688 r=`${PWD_COMMAND}`; export r; \
7689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7690 $(SET_LIB_PATH) \
7691 for flag in $(EXTRA_HOST_FLAGS); do \
7692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7693 done; \
7694 echo "Doing install-info in gettext" ; \
7695 (cd gettext && \
7696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7698 "RANLIB=$${RANLIB}" \
7699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7700 install-info) \
7701 || exit 1
7704 .PHONY: maybe-installcheck-gettext installcheck-gettext
7705 maybe-installcheck-gettext:
7707 installcheck-gettext: \
7708 configure-gettext
7709 @[ -f ./gettext/Makefile ] || exit 0; \
7710 r=`${PWD_COMMAND}`; export r; \
7711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7712 $(SET_LIB_PATH) \
7713 for flag in $(EXTRA_HOST_FLAGS); do \
7714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7715 done; \
7716 echo "Doing installcheck in gettext" ; \
7717 (cd gettext && \
7718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7720 "RANLIB=$${RANLIB}" \
7721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7722 installcheck) \
7723 || exit 1
7726 .PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
7727 maybe-mostlyclean-gettext:
7729 mostlyclean-gettext:
7730 @[ -f ./gettext/Makefile ] || exit 0; \
7731 r=`${PWD_COMMAND}`; export r; \
7732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7733 $(SET_LIB_PATH) \
7734 for flag in $(EXTRA_HOST_FLAGS); do \
7735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7736 done; \
7737 echo "Doing mostlyclean in gettext" ; \
7738 (cd gettext && \
7739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7741 "RANLIB=$${RANLIB}" \
7742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7743 mostlyclean) \
7744 || exit 1
7747 .PHONY: maybe-clean-gettext clean-gettext
7748 maybe-clean-gettext:
7750 clean-gettext:
7751 @[ -f ./gettext/Makefile ] || exit 0; \
7752 r=`${PWD_COMMAND}`; export r; \
7753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7754 $(SET_LIB_PATH) \
7755 for flag in $(EXTRA_HOST_FLAGS); do \
7756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7757 done; \
7758 echo "Doing clean in gettext" ; \
7759 (cd gettext && \
7760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7762 "RANLIB=$${RANLIB}" \
7763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7764 clean) \
7765 || exit 1
7768 .PHONY: maybe-distclean-gettext distclean-gettext
7769 maybe-distclean-gettext:
7771 distclean-gettext:
7772 @[ -f ./gettext/Makefile ] || exit 0; \
7773 r=`${PWD_COMMAND}`; export r; \
7774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7775 $(SET_LIB_PATH) \
7776 for flag in $(EXTRA_HOST_FLAGS); do \
7777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7778 done; \
7779 echo "Doing distclean in gettext" ; \
7780 (cd gettext && \
7781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7783 "RANLIB=$${RANLIB}" \
7784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7785 distclean) \
7786 || exit 1
7789 .PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
7790 maybe-maintainer-clean-gettext:
7792 maintainer-clean-gettext:
7793 @[ -f ./gettext/Makefile ] || exit 0; \
7794 r=`${PWD_COMMAND}`; export r; \
7795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7796 $(SET_LIB_PATH) \
7797 for flag in $(EXTRA_HOST_FLAGS); do \
7798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7799 done; \
7800 echo "Doing maintainer-clean in gettext" ; \
7801 (cd gettext && \
7802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7804 "RANLIB=$${RANLIB}" \
7805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7806 maintainer-clean) \
7807 || exit 1
7811 .PHONY: configure-gnuserv maybe-configure-gnuserv
7812 maybe-configure-gnuserv:
7813 configure-gnuserv:
7814 @test ! -f gnuserv/Makefile || exit 0; \
7815 [ -d gnuserv ] || mkdir gnuserv; \
7816 r=`${PWD_COMMAND}`; export r; \
7817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7818 CC="$(CC)"; export CC; \
7819 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7820 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7821 CXX="$(CXX)"; export CXX; \
7822 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7823 AR="$(AR)"; export AR; \
7824 AS="$(AS)"; export AS; \
7825 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7826 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7827 LD="$(LD)"; export LD; \
7828 NM="$(NM)"; export NM; \
7829 RANLIB="$(RANLIB)"; export RANLIB; \
7830 WINDRES="$(WINDRES)"; export WINDRES; \
7831 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7832 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7833 echo Configuring in gnuserv; \
7834 cd gnuserv || exit 1; \
7835 case $(srcdir) in \
7836 \.) \
7837 srcdiroption="--srcdir=."; \
7838 libsrcdir=".";; \
7839 /* | [A-Za-z]:[\\/]*) \
7840 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
7841 libsrcdir="$$s/gnuserv";; \
7842 *) \
7843 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
7844 libsrcdir="$$s/gnuserv";; \
7845 esac; \
7846 $(SHELL) $${libsrcdir}/configure \
7847 $(HOST_CONFIGARGS) $${srcdiroption} \
7848 || exit 1
7850 .PHONY: all-gnuserv maybe-all-gnuserv
7851 maybe-all-gnuserv:
7852 all-gnuserv: configure-gnuserv
7853 @r=`${PWD_COMMAND}`; export r; \
7854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7855 $(SET_LIB_PATH) \
7856 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
7858 .PHONY: check-gnuserv maybe-check-gnuserv
7859 maybe-check-gnuserv:
7861 check-gnuserv:
7862 @r=`${PWD_COMMAND}`; export r; \
7863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7864 $(SET_LIB_PATH) \
7865 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
7868 .PHONY: install-gnuserv maybe-install-gnuserv
7869 maybe-install-gnuserv:
7871 install-gnuserv: installdirs
7872 @r=`${PWD_COMMAND}`; export r; \
7873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7874 $(SET_LIB_PATH) \
7875 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
7878 # Other targets (info, dvi, etc.)
7880 .PHONY: maybe-info-gnuserv info-gnuserv
7881 maybe-info-gnuserv:
7883 info-gnuserv: \
7884 configure-gnuserv
7885 @[ -f ./gnuserv/Makefile ] || exit 0; \
7886 r=`${PWD_COMMAND}`; export r; \
7887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7888 $(SET_LIB_PATH) \
7889 for flag in $(EXTRA_HOST_FLAGS); do \
7890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7891 done; \
7892 echo "Doing info in gnuserv" ; \
7893 (cd gnuserv && \
7894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7896 "RANLIB=$${RANLIB}" \
7897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7898 info) \
7899 || exit 1
7902 .PHONY: maybe-dvi-gnuserv dvi-gnuserv
7903 maybe-dvi-gnuserv:
7905 dvi-gnuserv: \
7906 configure-gnuserv
7907 @[ -f ./gnuserv/Makefile ] || exit 0; \
7908 r=`${PWD_COMMAND}`; export r; \
7909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7910 $(SET_LIB_PATH) \
7911 for flag in $(EXTRA_HOST_FLAGS); do \
7912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7913 done; \
7914 echo "Doing dvi in gnuserv" ; \
7915 (cd gnuserv && \
7916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7918 "RANLIB=$${RANLIB}" \
7919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7920 dvi) \
7921 || exit 1
7924 .PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
7925 maybe-TAGS-gnuserv:
7927 TAGS-gnuserv: \
7928 configure-gnuserv
7929 @[ -f ./gnuserv/Makefile ] || exit 0; \
7930 r=`${PWD_COMMAND}`; export r; \
7931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7932 $(SET_LIB_PATH) \
7933 for flag in $(EXTRA_HOST_FLAGS); do \
7934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7935 done; \
7936 echo "Doing TAGS in gnuserv" ; \
7937 (cd gnuserv && \
7938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7940 "RANLIB=$${RANLIB}" \
7941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7942 TAGS) \
7943 || exit 1
7946 .PHONY: maybe-install-info-gnuserv install-info-gnuserv
7947 maybe-install-info-gnuserv:
7949 install-info-gnuserv: \
7950 configure-gnuserv \
7951 info-gnuserv
7952 @[ -f ./gnuserv/Makefile ] || exit 0; \
7953 r=`${PWD_COMMAND}`; export r; \
7954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7955 $(SET_LIB_PATH) \
7956 for flag in $(EXTRA_HOST_FLAGS); do \
7957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7958 done; \
7959 echo "Doing install-info in gnuserv" ; \
7960 (cd gnuserv && \
7961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7963 "RANLIB=$${RANLIB}" \
7964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7965 install-info) \
7966 || exit 1
7969 .PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
7970 maybe-installcheck-gnuserv:
7972 installcheck-gnuserv: \
7973 configure-gnuserv
7974 @[ -f ./gnuserv/Makefile ] || exit 0; \
7975 r=`${PWD_COMMAND}`; export r; \
7976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7977 $(SET_LIB_PATH) \
7978 for flag in $(EXTRA_HOST_FLAGS); do \
7979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7980 done; \
7981 echo "Doing installcheck in gnuserv" ; \
7982 (cd gnuserv && \
7983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7985 "RANLIB=$${RANLIB}" \
7986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7987 installcheck) \
7988 || exit 1
7991 .PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
7992 maybe-mostlyclean-gnuserv:
7994 mostlyclean-gnuserv:
7995 @[ -f ./gnuserv/Makefile ] || exit 0; \
7996 r=`${PWD_COMMAND}`; export r; \
7997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7998 $(SET_LIB_PATH) \
7999 for flag in $(EXTRA_HOST_FLAGS); do \
8000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8001 done; \
8002 echo "Doing mostlyclean in gnuserv" ; \
8003 (cd gnuserv && \
8004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8006 "RANLIB=$${RANLIB}" \
8007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8008 mostlyclean) \
8009 || exit 1
8012 .PHONY: maybe-clean-gnuserv clean-gnuserv
8013 maybe-clean-gnuserv:
8015 clean-gnuserv:
8016 @[ -f ./gnuserv/Makefile ] || exit 0; \
8017 r=`${PWD_COMMAND}`; export r; \
8018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8019 $(SET_LIB_PATH) \
8020 for flag in $(EXTRA_HOST_FLAGS); do \
8021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8022 done; \
8023 echo "Doing clean in gnuserv" ; \
8024 (cd gnuserv && \
8025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8027 "RANLIB=$${RANLIB}" \
8028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8029 clean) \
8030 || exit 1
8033 .PHONY: maybe-distclean-gnuserv distclean-gnuserv
8034 maybe-distclean-gnuserv:
8036 distclean-gnuserv:
8037 @[ -f ./gnuserv/Makefile ] || exit 0; \
8038 r=`${PWD_COMMAND}`; export r; \
8039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8040 $(SET_LIB_PATH) \
8041 for flag in $(EXTRA_HOST_FLAGS); do \
8042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8043 done; \
8044 echo "Doing distclean in gnuserv" ; \
8045 (cd gnuserv && \
8046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8048 "RANLIB=$${RANLIB}" \
8049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8050 distclean) \
8051 || exit 1
8054 .PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
8055 maybe-maintainer-clean-gnuserv:
8057 maintainer-clean-gnuserv:
8058 @[ -f ./gnuserv/Makefile ] || exit 0; \
8059 r=`${PWD_COMMAND}`; export r; \
8060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8061 $(SET_LIB_PATH) \
8062 for flag in $(EXTRA_HOST_FLAGS); do \
8063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8064 done; \
8065 echo "Doing maintainer-clean in gnuserv" ; \
8066 (cd gnuserv && \
8067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8069 "RANLIB=$${RANLIB}" \
8070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8071 maintainer-clean) \
8072 || exit 1
8076 .PHONY: configure-gprof maybe-configure-gprof
8077 maybe-configure-gprof:
8078 configure-gprof:
8079 @test ! -f gprof/Makefile || exit 0; \
8080 [ -d gprof ] || mkdir gprof; \
8081 r=`${PWD_COMMAND}`; export r; \
8082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8083 CC="$(CC)"; export CC; \
8084 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8085 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8086 CXX="$(CXX)"; export CXX; \
8087 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8088 AR="$(AR)"; export AR; \
8089 AS="$(AS)"; export AS; \
8090 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8091 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8092 LD="$(LD)"; export LD; \
8093 NM="$(NM)"; export NM; \
8094 RANLIB="$(RANLIB)"; export RANLIB; \
8095 WINDRES="$(WINDRES)"; export WINDRES; \
8096 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8097 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8098 echo Configuring in gprof; \
8099 cd gprof || exit 1; \
8100 case $(srcdir) in \
8101 \.) \
8102 srcdiroption="--srcdir=."; \
8103 libsrcdir=".";; \
8104 /* | [A-Za-z]:[\\/]*) \
8105 srcdiroption="--srcdir=$(srcdir)/gprof"; \
8106 libsrcdir="$$s/gprof";; \
8107 *) \
8108 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
8109 libsrcdir="$$s/gprof";; \
8110 esac; \
8111 $(SHELL) $${libsrcdir}/configure \
8112 $(HOST_CONFIGARGS) $${srcdiroption} \
8113 || exit 1
8115 .PHONY: all-gprof maybe-all-gprof
8116 maybe-all-gprof:
8117 all-gprof: configure-gprof
8118 @r=`${PWD_COMMAND}`; export r; \
8119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8120 $(SET_LIB_PATH) \
8121 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
8123 .PHONY: check-gprof maybe-check-gprof
8124 maybe-check-gprof:
8126 check-gprof:
8127 @r=`${PWD_COMMAND}`; export r; \
8128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8129 $(SET_LIB_PATH) \
8130 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
8133 .PHONY: install-gprof maybe-install-gprof
8134 maybe-install-gprof:
8136 install-gprof: installdirs
8137 @r=`${PWD_COMMAND}`; export r; \
8138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8139 $(SET_LIB_PATH) \
8140 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
8143 # Other targets (info, dvi, etc.)
8145 .PHONY: maybe-info-gprof info-gprof
8146 maybe-info-gprof:
8148 info-gprof: \
8149 configure-gprof
8150 @[ -f ./gprof/Makefile ] || exit 0; \
8151 r=`${PWD_COMMAND}`; export r; \
8152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8153 $(SET_LIB_PATH) \
8154 for flag in $(EXTRA_HOST_FLAGS); do \
8155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8156 done; \
8157 echo "Doing info in gprof" ; \
8158 (cd gprof && \
8159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8161 "RANLIB=$${RANLIB}" \
8162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8163 info) \
8164 || exit 1
8167 .PHONY: maybe-dvi-gprof dvi-gprof
8168 maybe-dvi-gprof:
8170 dvi-gprof: \
8171 configure-gprof
8172 @[ -f ./gprof/Makefile ] || exit 0; \
8173 r=`${PWD_COMMAND}`; export r; \
8174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8175 $(SET_LIB_PATH) \
8176 for flag in $(EXTRA_HOST_FLAGS); do \
8177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8178 done; \
8179 echo "Doing dvi in gprof" ; \
8180 (cd gprof && \
8181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8183 "RANLIB=$${RANLIB}" \
8184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8185 dvi) \
8186 || exit 1
8189 .PHONY: maybe-TAGS-gprof TAGS-gprof
8190 maybe-TAGS-gprof:
8192 TAGS-gprof: \
8193 configure-gprof
8194 @[ -f ./gprof/Makefile ] || exit 0; \
8195 r=`${PWD_COMMAND}`; export r; \
8196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8197 $(SET_LIB_PATH) \
8198 for flag in $(EXTRA_HOST_FLAGS); do \
8199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8200 done; \
8201 echo "Doing TAGS in gprof" ; \
8202 (cd gprof && \
8203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8205 "RANLIB=$${RANLIB}" \
8206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8207 TAGS) \
8208 || exit 1
8211 .PHONY: maybe-install-info-gprof install-info-gprof
8212 maybe-install-info-gprof:
8214 install-info-gprof: \
8215 configure-gprof \
8216 info-gprof
8217 @[ -f ./gprof/Makefile ] || exit 0; \
8218 r=`${PWD_COMMAND}`; export r; \
8219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8220 $(SET_LIB_PATH) \
8221 for flag in $(EXTRA_HOST_FLAGS); do \
8222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8223 done; \
8224 echo "Doing install-info in gprof" ; \
8225 (cd gprof && \
8226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8228 "RANLIB=$${RANLIB}" \
8229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8230 install-info) \
8231 || exit 1
8234 .PHONY: maybe-installcheck-gprof installcheck-gprof
8235 maybe-installcheck-gprof:
8237 installcheck-gprof: \
8238 configure-gprof
8239 @[ -f ./gprof/Makefile ] || exit 0; \
8240 r=`${PWD_COMMAND}`; export r; \
8241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8242 $(SET_LIB_PATH) \
8243 for flag in $(EXTRA_HOST_FLAGS); do \
8244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8245 done; \
8246 echo "Doing installcheck in gprof" ; \
8247 (cd gprof && \
8248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8250 "RANLIB=$${RANLIB}" \
8251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8252 installcheck) \
8253 || exit 1
8256 .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
8257 maybe-mostlyclean-gprof:
8259 mostlyclean-gprof:
8260 @[ -f ./gprof/Makefile ] || exit 0; \
8261 r=`${PWD_COMMAND}`; export r; \
8262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8263 $(SET_LIB_PATH) \
8264 for flag in $(EXTRA_HOST_FLAGS); do \
8265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8266 done; \
8267 echo "Doing mostlyclean in gprof" ; \
8268 (cd gprof && \
8269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8271 "RANLIB=$${RANLIB}" \
8272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8273 mostlyclean) \
8274 || exit 1
8277 .PHONY: maybe-clean-gprof clean-gprof
8278 maybe-clean-gprof:
8280 clean-gprof:
8281 @[ -f ./gprof/Makefile ] || exit 0; \
8282 r=`${PWD_COMMAND}`; export r; \
8283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8284 $(SET_LIB_PATH) \
8285 for flag in $(EXTRA_HOST_FLAGS); do \
8286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8287 done; \
8288 echo "Doing clean in gprof" ; \
8289 (cd gprof && \
8290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8292 "RANLIB=$${RANLIB}" \
8293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8294 clean) \
8295 || exit 1
8298 .PHONY: maybe-distclean-gprof distclean-gprof
8299 maybe-distclean-gprof:
8301 distclean-gprof:
8302 @[ -f ./gprof/Makefile ] || exit 0; \
8303 r=`${PWD_COMMAND}`; export r; \
8304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8305 $(SET_LIB_PATH) \
8306 for flag in $(EXTRA_HOST_FLAGS); do \
8307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8308 done; \
8309 echo "Doing distclean in gprof" ; \
8310 (cd gprof && \
8311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8313 "RANLIB=$${RANLIB}" \
8314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8315 distclean) \
8316 || exit 1
8319 .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
8320 maybe-maintainer-clean-gprof:
8322 maintainer-clean-gprof:
8323 @[ -f ./gprof/Makefile ] || exit 0; \
8324 r=`${PWD_COMMAND}`; export r; \
8325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8326 $(SET_LIB_PATH) \
8327 for flag in $(EXTRA_HOST_FLAGS); do \
8328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8329 done; \
8330 echo "Doing maintainer-clean in gprof" ; \
8331 (cd gprof && \
8332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8334 "RANLIB=$${RANLIB}" \
8335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8336 maintainer-clean) \
8337 || exit 1
8341 .PHONY: configure-gzip maybe-configure-gzip
8342 maybe-configure-gzip:
8343 configure-gzip:
8344 @test ! -f gzip/Makefile || exit 0; \
8345 [ -d gzip ] || mkdir gzip; \
8346 r=`${PWD_COMMAND}`; export r; \
8347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8348 CC="$(CC)"; export CC; \
8349 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8350 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8351 CXX="$(CXX)"; export CXX; \
8352 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8353 AR="$(AR)"; export AR; \
8354 AS="$(AS)"; export AS; \
8355 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8356 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8357 LD="$(LD)"; export LD; \
8358 NM="$(NM)"; export NM; \
8359 RANLIB="$(RANLIB)"; export RANLIB; \
8360 WINDRES="$(WINDRES)"; export WINDRES; \
8361 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8362 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8363 echo Configuring in gzip; \
8364 cd gzip || exit 1; \
8365 case $(srcdir) in \
8366 \.) \
8367 srcdiroption="--srcdir=."; \
8368 libsrcdir=".";; \
8369 /* | [A-Za-z]:[\\/]*) \
8370 srcdiroption="--srcdir=$(srcdir)/gzip"; \
8371 libsrcdir="$$s/gzip";; \
8372 *) \
8373 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
8374 libsrcdir="$$s/gzip";; \
8375 esac; \
8376 $(SHELL) $${libsrcdir}/configure \
8377 $(HOST_CONFIGARGS) $${srcdiroption} \
8378 || exit 1
8380 .PHONY: all-gzip maybe-all-gzip
8381 maybe-all-gzip:
8382 all-gzip: configure-gzip
8383 @r=`${PWD_COMMAND}`; export r; \
8384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8385 $(SET_LIB_PATH) \
8386 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
8388 .PHONY: check-gzip maybe-check-gzip
8389 maybe-check-gzip:
8391 check-gzip:
8392 @r=`${PWD_COMMAND}`; export r; \
8393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8394 $(SET_LIB_PATH) \
8395 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
8398 .PHONY: install-gzip maybe-install-gzip
8399 maybe-install-gzip:
8401 install-gzip: installdirs
8402 @r=`${PWD_COMMAND}`; export r; \
8403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8404 $(SET_LIB_PATH) \
8405 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
8408 # Other targets (info, dvi, etc.)
8410 .PHONY: maybe-info-gzip info-gzip
8411 maybe-info-gzip:
8413 info-gzip: \
8414 configure-gzip
8415 @[ -f ./gzip/Makefile ] || exit 0; \
8416 r=`${PWD_COMMAND}`; export r; \
8417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8418 $(SET_LIB_PATH) \
8419 for flag in $(EXTRA_HOST_FLAGS); do \
8420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8421 done; \
8422 echo "Doing info in gzip" ; \
8423 (cd gzip && \
8424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8426 "RANLIB=$${RANLIB}" \
8427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8428 info) \
8429 || exit 1
8432 .PHONY: maybe-dvi-gzip dvi-gzip
8433 maybe-dvi-gzip:
8435 dvi-gzip: \
8436 configure-gzip
8437 @[ -f ./gzip/Makefile ] || exit 0; \
8438 r=`${PWD_COMMAND}`; export r; \
8439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8440 $(SET_LIB_PATH) \
8441 for flag in $(EXTRA_HOST_FLAGS); do \
8442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8443 done; \
8444 echo "Doing dvi in gzip" ; \
8445 (cd gzip && \
8446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8448 "RANLIB=$${RANLIB}" \
8449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8450 dvi) \
8451 || exit 1
8454 .PHONY: maybe-TAGS-gzip TAGS-gzip
8455 maybe-TAGS-gzip:
8457 TAGS-gzip: \
8458 configure-gzip
8459 @[ -f ./gzip/Makefile ] || exit 0; \
8460 r=`${PWD_COMMAND}`; export r; \
8461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8462 $(SET_LIB_PATH) \
8463 for flag in $(EXTRA_HOST_FLAGS); do \
8464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8465 done; \
8466 echo "Doing TAGS in gzip" ; \
8467 (cd gzip && \
8468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8470 "RANLIB=$${RANLIB}" \
8471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8472 TAGS) \
8473 || exit 1
8476 .PHONY: maybe-install-info-gzip install-info-gzip
8477 maybe-install-info-gzip:
8479 install-info-gzip: \
8480 configure-gzip \
8481 info-gzip
8482 @[ -f ./gzip/Makefile ] || exit 0; \
8483 r=`${PWD_COMMAND}`; export r; \
8484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8485 $(SET_LIB_PATH) \
8486 for flag in $(EXTRA_HOST_FLAGS); do \
8487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8488 done; \
8489 echo "Doing install-info in gzip" ; \
8490 (cd gzip && \
8491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8493 "RANLIB=$${RANLIB}" \
8494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8495 install-info) \
8496 || exit 1
8499 .PHONY: maybe-installcheck-gzip installcheck-gzip
8500 maybe-installcheck-gzip:
8502 installcheck-gzip: \
8503 configure-gzip
8504 @[ -f ./gzip/Makefile ] || exit 0; \
8505 r=`${PWD_COMMAND}`; export r; \
8506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8507 $(SET_LIB_PATH) \
8508 for flag in $(EXTRA_HOST_FLAGS); do \
8509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8510 done; \
8511 echo "Doing installcheck in gzip" ; \
8512 (cd gzip && \
8513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8515 "RANLIB=$${RANLIB}" \
8516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8517 installcheck) \
8518 || exit 1
8521 .PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
8522 maybe-mostlyclean-gzip:
8524 mostlyclean-gzip:
8525 @[ -f ./gzip/Makefile ] || exit 0; \
8526 r=`${PWD_COMMAND}`; export r; \
8527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8528 $(SET_LIB_PATH) \
8529 for flag in $(EXTRA_HOST_FLAGS); do \
8530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8531 done; \
8532 echo "Doing mostlyclean in gzip" ; \
8533 (cd gzip && \
8534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8536 "RANLIB=$${RANLIB}" \
8537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8538 mostlyclean) \
8539 || exit 1
8542 .PHONY: maybe-clean-gzip clean-gzip
8543 maybe-clean-gzip:
8545 clean-gzip:
8546 @[ -f ./gzip/Makefile ] || exit 0; \
8547 r=`${PWD_COMMAND}`; export r; \
8548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8549 $(SET_LIB_PATH) \
8550 for flag in $(EXTRA_HOST_FLAGS); do \
8551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8552 done; \
8553 echo "Doing clean in gzip" ; \
8554 (cd gzip && \
8555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8557 "RANLIB=$${RANLIB}" \
8558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8559 clean) \
8560 || exit 1
8563 .PHONY: maybe-distclean-gzip distclean-gzip
8564 maybe-distclean-gzip:
8566 distclean-gzip:
8567 @[ -f ./gzip/Makefile ] || exit 0; \
8568 r=`${PWD_COMMAND}`; export r; \
8569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8570 $(SET_LIB_PATH) \
8571 for flag in $(EXTRA_HOST_FLAGS); do \
8572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8573 done; \
8574 echo "Doing distclean in gzip" ; \
8575 (cd gzip && \
8576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8578 "RANLIB=$${RANLIB}" \
8579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8580 distclean) \
8581 || exit 1
8584 .PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
8585 maybe-maintainer-clean-gzip:
8587 maintainer-clean-gzip:
8588 @[ -f ./gzip/Makefile ] || exit 0; \
8589 r=`${PWD_COMMAND}`; export r; \
8590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8591 $(SET_LIB_PATH) \
8592 for flag in $(EXTRA_HOST_FLAGS); do \
8593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8594 done; \
8595 echo "Doing maintainer-clean in gzip" ; \
8596 (cd gzip && \
8597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8599 "RANLIB=$${RANLIB}" \
8600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8601 maintainer-clean) \
8602 || exit 1
8606 .PHONY: configure-hello maybe-configure-hello
8607 maybe-configure-hello:
8608 configure-hello:
8609 @test ! -f hello/Makefile || exit 0; \
8610 [ -d hello ] || mkdir hello; \
8611 r=`${PWD_COMMAND}`; export r; \
8612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8613 CC="$(CC)"; export CC; \
8614 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8615 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8616 CXX="$(CXX)"; export CXX; \
8617 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8618 AR="$(AR)"; export AR; \
8619 AS="$(AS)"; export AS; \
8620 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8621 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8622 LD="$(LD)"; export LD; \
8623 NM="$(NM)"; export NM; \
8624 RANLIB="$(RANLIB)"; export RANLIB; \
8625 WINDRES="$(WINDRES)"; export WINDRES; \
8626 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8627 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8628 echo Configuring in hello; \
8629 cd hello || exit 1; \
8630 case $(srcdir) in \
8631 \.) \
8632 srcdiroption="--srcdir=."; \
8633 libsrcdir=".";; \
8634 /* | [A-Za-z]:[\\/]*) \
8635 srcdiroption="--srcdir=$(srcdir)/hello"; \
8636 libsrcdir="$$s/hello";; \
8637 *) \
8638 srcdiroption="--srcdir=../$(srcdir)/hello"; \
8639 libsrcdir="$$s/hello";; \
8640 esac; \
8641 $(SHELL) $${libsrcdir}/configure \
8642 $(HOST_CONFIGARGS) $${srcdiroption} \
8643 || exit 1
8645 .PHONY: all-hello maybe-all-hello
8646 maybe-all-hello:
8647 all-hello: configure-hello
8648 @r=`${PWD_COMMAND}`; export r; \
8649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8650 $(SET_LIB_PATH) \
8651 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
8653 .PHONY: check-hello maybe-check-hello
8654 maybe-check-hello:
8656 check-hello:
8657 @r=`${PWD_COMMAND}`; export r; \
8658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8659 $(SET_LIB_PATH) \
8660 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
8663 .PHONY: install-hello maybe-install-hello
8664 maybe-install-hello:
8666 install-hello: installdirs
8667 @r=`${PWD_COMMAND}`; export r; \
8668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8669 $(SET_LIB_PATH) \
8670 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
8673 # Other targets (info, dvi, etc.)
8675 .PHONY: maybe-info-hello info-hello
8676 maybe-info-hello:
8678 info-hello: \
8679 configure-hello
8680 @[ -f ./hello/Makefile ] || exit 0; \
8681 r=`${PWD_COMMAND}`; export r; \
8682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8683 $(SET_LIB_PATH) \
8684 for flag in $(EXTRA_HOST_FLAGS); do \
8685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8686 done; \
8687 echo "Doing info in hello" ; \
8688 (cd hello && \
8689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8691 "RANLIB=$${RANLIB}" \
8692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8693 info) \
8694 || exit 1
8697 .PHONY: maybe-dvi-hello dvi-hello
8698 maybe-dvi-hello:
8700 dvi-hello: \
8701 configure-hello
8702 @[ -f ./hello/Makefile ] || exit 0; \
8703 r=`${PWD_COMMAND}`; export r; \
8704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8705 $(SET_LIB_PATH) \
8706 for flag in $(EXTRA_HOST_FLAGS); do \
8707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8708 done; \
8709 echo "Doing dvi in hello" ; \
8710 (cd hello && \
8711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8713 "RANLIB=$${RANLIB}" \
8714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8715 dvi) \
8716 || exit 1
8719 .PHONY: maybe-TAGS-hello TAGS-hello
8720 maybe-TAGS-hello:
8722 TAGS-hello: \
8723 configure-hello
8724 @[ -f ./hello/Makefile ] || exit 0; \
8725 r=`${PWD_COMMAND}`; export r; \
8726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8727 $(SET_LIB_PATH) \
8728 for flag in $(EXTRA_HOST_FLAGS); do \
8729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8730 done; \
8731 echo "Doing TAGS in hello" ; \
8732 (cd hello && \
8733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8735 "RANLIB=$${RANLIB}" \
8736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8737 TAGS) \
8738 || exit 1
8741 .PHONY: maybe-install-info-hello install-info-hello
8742 maybe-install-info-hello:
8744 install-info-hello: \
8745 configure-hello \
8746 info-hello
8747 @[ -f ./hello/Makefile ] || exit 0; \
8748 r=`${PWD_COMMAND}`; export r; \
8749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8750 $(SET_LIB_PATH) \
8751 for flag in $(EXTRA_HOST_FLAGS); do \
8752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8753 done; \
8754 echo "Doing install-info in hello" ; \
8755 (cd hello && \
8756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8758 "RANLIB=$${RANLIB}" \
8759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8760 install-info) \
8761 || exit 1
8764 .PHONY: maybe-installcheck-hello installcheck-hello
8765 maybe-installcheck-hello:
8767 installcheck-hello: \
8768 configure-hello
8769 @[ -f ./hello/Makefile ] || exit 0; \
8770 r=`${PWD_COMMAND}`; export r; \
8771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8772 $(SET_LIB_PATH) \
8773 for flag in $(EXTRA_HOST_FLAGS); do \
8774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8775 done; \
8776 echo "Doing installcheck in hello" ; \
8777 (cd hello && \
8778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8780 "RANLIB=$${RANLIB}" \
8781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8782 installcheck) \
8783 || exit 1
8786 .PHONY: maybe-mostlyclean-hello mostlyclean-hello
8787 maybe-mostlyclean-hello:
8789 mostlyclean-hello:
8790 @[ -f ./hello/Makefile ] || exit 0; \
8791 r=`${PWD_COMMAND}`; export r; \
8792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8793 $(SET_LIB_PATH) \
8794 for flag in $(EXTRA_HOST_FLAGS); do \
8795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8796 done; \
8797 echo "Doing mostlyclean in hello" ; \
8798 (cd hello && \
8799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8801 "RANLIB=$${RANLIB}" \
8802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8803 mostlyclean) \
8804 || exit 1
8807 .PHONY: maybe-clean-hello clean-hello
8808 maybe-clean-hello:
8810 clean-hello:
8811 @[ -f ./hello/Makefile ] || exit 0; \
8812 r=`${PWD_COMMAND}`; export r; \
8813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8814 $(SET_LIB_PATH) \
8815 for flag in $(EXTRA_HOST_FLAGS); do \
8816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8817 done; \
8818 echo "Doing clean in hello" ; \
8819 (cd hello && \
8820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8822 "RANLIB=$${RANLIB}" \
8823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8824 clean) \
8825 || exit 1
8828 .PHONY: maybe-distclean-hello distclean-hello
8829 maybe-distclean-hello:
8831 distclean-hello:
8832 @[ -f ./hello/Makefile ] || exit 0; \
8833 r=`${PWD_COMMAND}`; export r; \
8834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8835 $(SET_LIB_PATH) \
8836 for flag in $(EXTRA_HOST_FLAGS); do \
8837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8838 done; \
8839 echo "Doing distclean in hello" ; \
8840 (cd hello && \
8841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8843 "RANLIB=$${RANLIB}" \
8844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8845 distclean) \
8846 || exit 1
8849 .PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
8850 maybe-maintainer-clean-hello:
8852 maintainer-clean-hello:
8853 @[ -f ./hello/Makefile ] || exit 0; \
8854 r=`${PWD_COMMAND}`; export r; \
8855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8856 $(SET_LIB_PATH) \
8857 for flag in $(EXTRA_HOST_FLAGS); do \
8858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8859 done; \
8860 echo "Doing maintainer-clean in hello" ; \
8861 (cd hello && \
8862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8864 "RANLIB=$${RANLIB}" \
8865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8866 maintainer-clean) \
8867 || exit 1
8871 .PHONY: configure-indent maybe-configure-indent
8872 maybe-configure-indent:
8873 configure-indent:
8874 @test ! -f indent/Makefile || exit 0; \
8875 [ -d indent ] || mkdir indent; \
8876 r=`${PWD_COMMAND}`; export r; \
8877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8878 CC="$(CC)"; export CC; \
8879 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8880 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8881 CXX="$(CXX)"; export CXX; \
8882 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8883 AR="$(AR)"; export AR; \
8884 AS="$(AS)"; export AS; \
8885 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8886 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8887 LD="$(LD)"; export LD; \
8888 NM="$(NM)"; export NM; \
8889 RANLIB="$(RANLIB)"; export RANLIB; \
8890 WINDRES="$(WINDRES)"; export WINDRES; \
8891 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8892 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8893 echo Configuring in indent; \
8894 cd indent || exit 1; \
8895 case $(srcdir) in \
8896 \.) \
8897 srcdiroption="--srcdir=."; \
8898 libsrcdir=".";; \
8899 /* | [A-Za-z]:[\\/]*) \
8900 srcdiroption="--srcdir=$(srcdir)/indent"; \
8901 libsrcdir="$$s/indent";; \
8902 *) \
8903 srcdiroption="--srcdir=../$(srcdir)/indent"; \
8904 libsrcdir="$$s/indent";; \
8905 esac; \
8906 $(SHELL) $${libsrcdir}/configure \
8907 $(HOST_CONFIGARGS) $${srcdiroption} \
8908 || exit 1
8910 .PHONY: all-indent maybe-all-indent
8911 maybe-all-indent:
8912 all-indent: configure-indent
8913 @r=`${PWD_COMMAND}`; export r; \
8914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8915 $(SET_LIB_PATH) \
8916 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
8918 .PHONY: check-indent maybe-check-indent
8919 maybe-check-indent:
8921 check-indent:
8922 @r=`${PWD_COMMAND}`; export r; \
8923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8924 $(SET_LIB_PATH) \
8925 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
8928 .PHONY: install-indent maybe-install-indent
8929 maybe-install-indent:
8931 install-indent: installdirs
8932 @r=`${PWD_COMMAND}`; export r; \
8933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8934 $(SET_LIB_PATH) \
8935 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
8938 # Other targets (info, dvi, etc.)
8940 .PHONY: maybe-info-indent info-indent
8941 maybe-info-indent:
8943 info-indent: \
8944 configure-indent
8945 @[ -f ./indent/Makefile ] || exit 0; \
8946 r=`${PWD_COMMAND}`; export r; \
8947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8948 $(SET_LIB_PATH) \
8949 for flag in $(EXTRA_HOST_FLAGS); do \
8950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8951 done; \
8952 echo "Doing info in indent" ; \
8953 (cd indent && \
8954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8956 "RANLIB=$${RANLIB}" \
8957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8958 info) \
8959 || exit 1
8962 .PHONY: maybe-dvi-indent dvi-indent
8963 maybe-dvi-indent:
8965 dvi-indent: \
8966 configure-indent
8967 @[ -f ./indent/Makefile ] || exit 0; \
8968 r=`${PWD_COMMAND}`; export r; \
8969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8970 $(SET_LIB_PATH) \
8971 for flag in $(EXTRA_HOST_FLAGS); do \
8972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8973 done; \
8974 echo "Doing dvi in indent" ; \
8975 (cd indent && \
8976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8978 "RANLIB=$${RANLIB}" \
8979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8980 dvi) \
8981 || exit 1
8984 .PHONY: maybe-TAGS-indent TAGS-indent
8985 maybe-TAGS-indent:
8987 TAGS-indent: \
8988 configure-indent
8989 @[ -f ./indent/Makefile ] || exit 0; \
8990 r=`${PWD_COMMAND}`; export r; \
8991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8992 $(SET_LIB_PATH) \
8993 for flag in $(EXTRA_HOST_FLAGS); do \
8994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8995 done; \
8996 echo "Doing TAGS in indent" ; \
8997 (cd indent && \
8998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9000 "RANLIB=$${RANLIB}" \
9001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9002 TAGS) \
9003 || exit 1
9006 .PHONY: maybe-install-info-indent install-info-indent
9007 maybe-install-info-indent:
9009 install-info-indent: \
9010 configure-indent \
9011 info-indent
9012 @[ -f ./indent/Makefile ] || exit 0; \
9013 r=`${PWD_COMMAND}`; export r; \
9014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9015 $(SET_LIB_PATH) \
9016 for flag in $(EXTRA_HOST_FLAGS); do \
9017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9018 done; \
9019 echo "Doing install-info in indent" ; \
9020 (cd indent && \
9021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9023 "RANLIB=$${RANLIB}" \
9024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9025 install-info) \
9026 || exit 1
9029 .PHONY: maybe-installcheck-indent installcheck-indent
9030 maybe-installcheck-indent:
9032 installcheck-indent: \
9033 configure-indent
9034 @[ -f ./indent/Makefile ] || exit 0; \
9035 r=`${PWD_COMMAND}`; export r; \
9036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9037 $(SET_LIB_PATH) \
9038 for flag in $(EXTRA_HOST_FLAGS); do \
9039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9040 done; \
9041 echo "Doing installcheck in indent" ; \
9042 (cd indent && \
9043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9045 "RANLIB=$${RANLIB}" \
9046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9047 installcheck) \
9048 || exit 1
9051 .PHONY: maybe-mostlyclean-indent mostlyclean-indent
9052 maybe-mostlyclean-indent:
9054 mostlyclean-indent:
9055 @[ -f ./indent/Makefile ] || exit 0; \
9056 r=`${PWD_COMMAND}`; export r; \
9057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9058 $(SET_LIB_PATH) \
9059 for flag in $(EXTRA_HOST_FLAGS); do \
9060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9061 done; \
9062 echo "Doing mostlyclean in indent" ; \
9063 (cd indent && \
9064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9066 "RANLIB=$${RANLIB}" \
9067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9068 mostlyclean) \
9069 || exit 1
9072 .PHONY: maybe-clean-indent clean-indent
9073 maybe-clean-indent:
9075 clean-indent:
9076 @[ -f ./indent/Makefile ] || exit 0; \
9077 r=`${PWD_COMMAND}`; export r; \
9078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9079 $(SET_LIB_PATH) \
9080 for flag in $(EXTRA_HOST_FLAGS); do \
9081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9082 done; \
9083 echo "Doing clean in indent" ; \
9084 (cd indent && \
9085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9087 "RANLIB=$${RANLIB}" \
9088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9089 clean) \
9090 || exit 1
9093 .PHONY: maybe-distclean-indent distclean-indent
9094 maybe-distclean-indent:
9096 distclean-indent:
9097 @[ -f ./indent/Makefile ] || exit 0; \
9098 r=`${PWD_COMMAND}`; export r; \
9099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9100 $(SET_LIB_PATH) \
9101 for flag in $(EXTRA_HOST_FLAGS); do \
9102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9103 done; \
9104 echo "Doing distclean in indent" ; \
9105 (cd indent && \
9106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9108 "RANLIB=$${RANLIB}" \
9109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9110 distclean) \
9111 || exit 1
9114 .PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
9115 maybe-maintainer-clean-indent:
9117 maintainer-clean-indent:
9118 @[ -f ./indent/Makefile ] || exit 0; \
9119 r=`${PWD_COMMAND}`; export r; \
9120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9121 $(SET_LIB_PATH) \
9122 for flag in $(EXTRA_HOST_FLAGS); do \
9123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9124 done; \
9125 echo "Doing maintainer-clean in indent" ; \
9126 (cd indent && \
9127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9129 "RANLIB=$${RANLIB}" \
9130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9131 maintainer-clean) \
9132 || exit 1
9136 .PHONY: configure-intl maybe-configure-intl
9137 maybe-configure-intl:
9138 configure-intl:
9139 @test ! -f intl/Makefile || exit 0; \
9140 [ -d intl ] || mkdir intl; \
9141 r=`${PWD_COMMAND}`; export r; \
9142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9143 CC="$(CC)"; export CC; \
9144 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9145 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9146 CXX="$(CXX)"; export CXX; \
9147 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9148 AR="$(AR)"; export AR; \
9149 AS="$(AS)"; export AS; \
9150 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9151 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9152 LD="$(LD)"; export LD; \
9153 NM="$(NM)"; export NM; \
9154 RANLIB="$(RANLIB)"; export RANLIB; \
9155 WINDRES="$(WINDRES)"; export WINDRES; \
9156 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9157 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9158 echo Configuring in intl; \
9159 cd intl || exit 1; \
9160 case $(srcdir) in \
9161 \.) \
9162 srcdiroption="--srcdir=."; \
9163 libsrcdir=".";; \
9164 /* | [A-Za-z]:[\\/]*) \
9165 srcdiroption="--srcdir=$(srcdir)/intl"; \
9166 libsrcdir="$$s/intl";; \
9167 *) \
9168 srcdiroption="--srcdir=../$(srcdir)/intl"; \
9169 libsrcdir="$$s/intl";; \
9170 esac; \
9171 $(SHELL) $${libsrcdir}/configure \
9172 $(HOST_CONFIGARGS) $${srcdiroption} \
9173 || exit 1
9175 .PHONY: all-intl maybe-all-intl
9176 maybe-all-intl:
9177 all-intl: configure-intl
9178 @r=`${PWD_COMMAND}`; export r; \
9179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9180 $(SET_LIB_PATH) \
9181 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
9183 .PHONY: check-intl maybe-check-intl
9184 maybe-check-intl:
9186 check-intl:
9187 @r=`${PWD_COMMAND}`; export r; \
9188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9189 $(SET_LIB_PATH) \
9190 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
9193 .PHONY: install-intl maybe-install-intl
9194 maybe-install-intl:
9196 install-intl: installdirs
9197 @r=`${PWD_COMMAND}`; export r; \
9198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9199 $(SET_LIB_PATH) \
9200 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
9203 # Other targets (info, dvi, etc.)
9205 .PHONY: maybe-info-intl info-intl
9206 maybe-info-intl:
9208 info-intl: \
9209 configure-intl
9210 @[ -f ./intl/Makefile ] || exit 0; \
9211 r=`${PWD_COMMAND}`; export r; \
9212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9213 $(SET_LIB_PATH) \
9214 for flag in $(EXTRA_HOST_FLAGS); do \
9215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9216 done; \
9217 echo "Doing info in intl" ; \
9218 (cd intl && \
9219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9221 "RANLIB=$${RANLIB}" \
9222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9223 info) \
9224 || exit 1
9227 .PHONY: maybe-dvi-intl dvi-intl
9228 maybe-dvi-intl:
9230 dvi-intl: \
9231 configure-intl
9232 @[ -f ./intl/Makefile ] || exit 0; \
9233 r=`${PWD_COMMAND}`; export r; \
9234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9235 $(SET_LIB_PATH) \
9236 for flag in $(EXTRA_HOST_FLAGS); do \
9237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9238 done; \
9239 echo "Doing dvi in intl" ; \
9240 (cd intl && \
9241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9243 "RANLIB=$${RANLIB}" \
9244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9245 dvi) \
9246 || exit 1
9249 .PHONY: maybe-TAGS-intl TAGS-intl
9250 maybe-TAGS-intl:
9252 TAGS-intl: \
9253 configure-intl
9254 @[ -f ./intl/Makefile ] || exit 0; \
9255 r=`${PWD_COMMAND}`; export r; \
9256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9257 $(SET_LIB_PATH) \
9258 for flag in $(EXTRA_HOST_FLAGS); do \
9259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9260 done; \
9261 echo "Doing TAGS in intl" ; \
9262 (cd intl && \
9263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9265 "RANLIB=$${RANLIB}" \
9266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9267 TAGS) \
9268 || exit 1
9271 .PHONY: maybe-install-info-intl install-info-intl
9272 maybe-install-info-intl:
9274 install-info-intl: \
9275 configure-intl \
9276 info-intl
9277 @[ -f ./intl/Makefile ] || exit 0; \
9278 r=`${PWD_COMMAND}`; export r; \
9279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9280 $(SET_LIB_PATH) \
9281 for flag in $(EXTRA_HOST_FLAGS); do \
9282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9283 done; \
9284 echo "Doing install-info in intl" ; \
9285 (cd intl && \
9286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9288 "RANLIB=$${RANLIB}" \
9289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9290 install-info) \
9291 || exit 1
9294 .PHONY: maybe-installcheck-intl installcheck-intl
9295 maybe-installcheck-intl:
9297 installcheck-intl: \
9298 configure-intl
9299 @[ -f ./intl/Makefile ] || exit 0; \
9300 r=`${PWD_COMMAND}`; export r; \
9301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9302 $(SET_LIB_PATH) \
9303 for flag in $(EXTRA_HOST_FLAGS); do \
9304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9305 done; \
9306 echo "Doing installcheck in intl" ; \
9307 (cd intl && \
9308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9310 "RANLIB=$${RANLIB}" \
9311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9312 installcheck) \
9313 || exit 1
9316 .PHONY: maybe-mostlyclean-intl mostlyclean-intl
9317 maybe-mostlyclean-intl:
9319 mostlyclean-intl:
9320 @[ -f ./intl/Makefile ] || exit 0; \
9321 r=`${PWD_COMMAND}`; export r; \
9322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9323 $(SET_LIB_PATH) \
9324 for flag in $(EXTRA_HOST_FLAGS); do \
9325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9326 done; \
9327 echo "Doing mostlyclean in intl" ; \
9328 (cd intl && \
9329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9331 "RANLIB=$${RANLIB}" \
9332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9333 mostlyclean) \
9334 || exit 1
9337 .PHONY: maybe-clean-intl clean-intl
9338 maybe-clean-intl:
9340 clean-intl:
9341 @[ -f ./intl/Makefile ] || exit 0; \
9342 r=`${PWD_COMMAND}`; export r; \
9343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9344 $(SET_LIB_PATH) \
9345 for flag in $(EXTRA_HOST_FLAGS); do \
9346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9347 done; \
9348 echo "Doing clean in intl" ; \
9349 (cd intl && \
9350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9352 "RANLIB=$${RANLIB}" \
9353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9354 clean) \
9355 || exit 1
9358 .PHONY: maybe-distclean-intl distclean-intl
9359 maybe-distclean-intl:
9361 distclean-intl:
9362 @[ -f ./intl/Makefile ] || exit 0; \
9363 r=`${PWD_COMMAND}`; export r; \
9364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9365 $(SET_LIB_PATH) \
9366 for flag in $(EXTRA_HOST_FLAGS); do \
9367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9368 done; \
9369 echo "Doing distclean in intl" ; \
9370 (cd intl && \
9371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9373 "RANLIB=$${RANLIB}" \
9374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9375 distclean) \
9376 || exit 1
9379 .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
9380 maybe-maintainer-clean-intl:
9382 maintainer-clean-intl:
9383 @[ -f ./intl/Makefile ] || exit 0; \
9384 r=`${PWD_COMMAND}`; export r; \
9385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9386 $(SET_LIB_PATH) \
9387 for flag in $(EXTRA_HOST_FLAGS); do \
9388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9389 done; \
9390 echo "Doing maintainer-clean in intl" ; \
9391 (cd intl && \
9392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9394 "RANLIB=$${RANLIB}" \
9395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9396 maintainer-clean) \
9397 || exit 1
9401 .PHONY: configure-tcl maybe-configure-tcl
9402 maybe-configure-tcl:
9403 configure-tcl:
9404 @test ! -f tcl/Makefile || exit 0; \
9405 [ -d tcl ] || mkdir tcl; \
9406 r=`${PWD_COMMAND}`; export r; \
9407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9408 CC="$(CC)"; export CC; \
9409 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9410 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9411 CXX="$(CXX)"; export CXX; \
9412 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9413 AR="$(AR)"; export AR; \
9414 AS="$(AS)"; export AS; \
9415 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9416 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9417 LD="$(LD)"; export LD; \
9418 NM="$(NM)"; export NM; \
9419 RANLIB="$(RANLIB)"; export RANLIB; \
9420 WINDRES="$(WINDRES)"; export WINDRES; \
9421 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9422 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9423 echo Configuring in tcl; \
9424 cd tcl || exit 1; \
9425 case $(srcdir) in \
9426 \.) \
9427 srcdiroption="--srcdir=."; \
9428 libsrcdir=".";; \
9429 /* | [A-Za-z]:[\\/]*) \
9430 srcdiroption="--srcdir=$(srcdir)/tcl"; \
9431 libsrcdir="$$s/tcl";; \
9432 *) \
9433 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
9434 libsrcdir="$$s/tcl";; \
9435 esac; \
9436 $(SHELL) $${libsrcdir}/configure \
9437 $(HOST_CONFIGARGS) $${srcdiroption} \
9438 || exit 1
9440 .PHONY: all-tcl maybe-all-tcl
9441 maybe-all-tcl:
9442 all-tcl: configure-tcl
9443 @r=`${PWD_COMMAND}`; export r; \
9444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9445 $(SET_LIB_PATH) \
9446 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
9448 .PHONY: check-tcl maybe-check-tcl
9449 maybe-check-tcl:
9451 check-tcl:
9452 @r=`${PWD_COMMAND}`; export r; \
9453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9454 $(SET_LIB_PATH) \
9455 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
9458 .PHONY: install-tcl maybe-install-tcl
9459 maybe-install-tcl:
9461 install-tcl: installdirs
9462 @r=`${PWD_COMMAND}`; export r; \
9463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9464 $(SET_LIB_PATH) \
9465 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
9468 # Other targets (info, dvi, etc.)
9470 .PHONY: maybe-info-tcl info-tcl
9471 maybe-info-tcl:
9473 info-tcl: \
9474 configure-tcl
9475 @[ -f ./tcl/Makefile ] || exit 0; \
9476 r=`${PWD_COMMAND}`; export r; \
9477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9478 $(SET_LIB_PATH) \
9479 for flag in $(EXTRA_HOST_FLAGS); do \
9480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9481 done; \
9482 echo "Doing info in tcl" ; \
9483 (cd tcl && \
9484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9486 "RANLIB=$${RANLIB}" \
9487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9488 info) \
9489 || exit 1
9492 .PHONY: maybe-dvi-tcl dvi-tcl
9493 maybe-dvi-tcl:
9495 dvi-tcl: \
9496 configure-tcl
9497 @[ -f ./tcl/Makefile ] || exit 0; \
9498 r=`${PWD_COMMAND}`; export r; \
9499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9500 $(SET_LIB_PATH) \
9501 for flag in $(EXTRA_HOST_FLAGS); do \
9502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9503 done; \
9504 echo "Doing dvi in tcl" ; \
9505 (cd tcl && \
9506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9508 "RANLIB=$${RANLIB}" \
9509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9510 dvi) \
9511 || exit 1
9514 .PHONY: maybe-TAGS-tcl TAGS-tcl
9515 maybe-TAGS-tcl:
9517 TAGS-tcl: \
9518 configure-tcl
9519 @[ -f ./tcl/Makefile ] || exit 0; \
9520 r=`${PWD_COMMAND}`; export r; \
9521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9522 $(SET_LIB_PATH) \
9523 for flag in $(EXTRA_HOST_FLAGS); do \
9524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9525 done; \
9526 echo "Doing TAGS in tcl" ; \
9527 (cd tcl && \
9528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9530 "RANLIB=$${RANLIB}" \
9531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9532 TAGS) \
9533 || exit 1
9536 .PHONY: maybe-install-info-tcl install-info-tcl
9537 maybe-install-info-tcl:
9539 install-info-tcl: \
9540 configure-tcl \
9541 info-tcl
9542 @[ -f ./tcl/Makefile ] || exit 0; \
9543 r=`${PWD_COMMAND}`; export r; \
9544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9545 $(SET_LIB_PATH) \
9546 for flag in $(EXTRA_HOST_FLAGS); do \
9547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9548 done; \
9549 echo "Doing install-info in tcl" ; \
9550 (cd tcl && \
9551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9553 "RANLIB=$${RANLIB}" \
9554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9555 install-info) \
9556 || exit 1
9559 .PHONY: maybe-installcheck-tcl installcheck-tcl
9560 maybe-installcheck-tcl:
9562 installcheck-tcl: \
9563 configure-tcl
9564 @[ -f ./tcl/Makefile ] || exit 0; \
9565 r=`${PWD_COMMAND}`; export r; \
9566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9567 $(SET_LIB_PATH) \
9568 for flag in $(EXTRA_HOST_FLAGS); do \
9569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9570 done; \
9571 echo "Doing installcheck in tcl" ; \
9572 (cd tcl && \
9573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9575 "RANLIB=$${RANLIB}" \
9576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9577 installcheck) \
9578 || exit 1
9581 .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
9582 maybe-mostlyclean-tcl:
9584 # tcl doesn't support mostlyclean.
9585 mostlyclean-tcl:
9588 .PHONY: maybe-clean-tcl clean-tcl
9589 maybe-clean-tcl:
9591 clean-tcl:
9592 @[ -f ./tcl/Makefile ] || exit 0; \
9593 r=`${PWD_COMMAND}`; export r; \
9594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9595 $(SET_LIB_PATH) \
9596 for flag in $(EXTRA_HOST_FLAGS); do \
9597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9598 done; \
9599 echo "Doing clean in tcl" ; \
9600 (cd tcl && \
9601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9603 "RANLIB=$${RANLIB}" \
9604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9605 clean) \
9606 || exit 1
9609 .PHONY: maybe-distclean-tcl distclean-tcl
9610 maybe-distclean-tcl:
9612 distclean-tcl:
9613 @[ -f ./tcl/Makefile ] || exit 0; \
9614 r=`${PWD_COMMAND}`; export r; \
9615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9616 $(SET_LIB_PATH) \
9617 for flag in $(EXTRA_HOST_FLAGS); do \
9618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9619 done; \
9620 echo "Doing distclean in tcl" ; \
9621 (cd tcl && \
9622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9624 "RANLIB=$${RANLIB}" \
9625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9626 distclean) \
9627 || exit 1
9630 .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
9631 maybe-maintainer-clean-tcl:
9633 maintainer-clean-tcl:
9634 @[ -f ./tcl/Makefile ] || exit 0; \
9635 r=`${PWD_COMMAND}`; export r; \
9636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9637 $(SET_LIB_PATH) \
9638 for flag in $(EXTRA_HOST_FLAGS); do \
9639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9640 done; \
9641 echo "Doing maintainer-clean in tcl" ; \
9642 (cd tcl && \
9643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9645 "RANLIB=$${RANLIB}" \
9646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9647 maintainer-clean) \
9648 || exit 1
9652 .PHONY: configure-itcl maybe-configure-itcl
9653 maybe-configure-itcl:
9654 configure-itcl:
9655 @test ! -f itcl/Makefile || exit 0; \
9656 [ -d itcl ] || mkdir itcl; \
9657 r=`${PWD_COMMAND}`; export r; \
9658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9659 CC="$(CC)"; export CC; \
9660 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9661 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9662 CXX="$(CXX)"; export CXX; \
9663 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9664 AR="$(AR)"; export AR; \
9665 AS="$(AS)"; export AS; \
9666 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9667 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9668 LD="$(LD)"; export LD; \
9669 NM="$(NM)"; export NM; \
9670 RANLIB="$(RANLIB)"; export RANLIB; \
9671 WINDRES="$(WINDRES)"; export WINDRES; \
9672 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9673 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9674 echo Configuring in itcl; \
9675 cd itcl || exit 1; \
9676 case $(srcdir) in \
9677 \.) \
9678 srcdiroption="--srcdir=."; \
9679 libsrcdir=".";; \
9680 /* | [A-Za-z]:[\\/]*) \
9681 srcdiroption="--srcdir=$(srcdir)/itcl"; \
9682 libsrcdir="$$s/itcl";; \
9683 *) \
9684 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
9685 libsrcdir="$$s/itcl";; \
9686 esac; \
9687 $(SHELL) $${libsrcdir}/configure \
9688 $(HOST_CONFIGARGS) $${srcdiroption} \
9689 || exit 1
9691 .PHONY: all-itcl maybe-all-itcl
9692 maybe-all-itcl:
9693 all-itcl: configure-itcl
9694 @r=`${PWD_COMMAND}`; export r; \
9695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9696 $(SET_LIB_PATH) \
9697 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
9699 .PHONY: check-itcl maybe-check-itcl
9700 maybe-check-itcl:
9702 check-itcl:
9703 @r=`${PWD_COMMAND}`; export r; \
9704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9705 $(SET_LIB_PATH) \
9706 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
9709 .PHONY: install-itcl maybe-install-itcl
9710 maybe-install-itcl:
9712 install-itcl: installdirs
9713 @r=`${PWD_COMMAND}`; export r; \
9714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9715 $(SET_LIB_PATH) \
9716 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
9719 # Other targets (info, dvi, etc.)
9721 .PHONY: maybe-info-itcl info-itcl
9722 maybe-info-itcl:
9724 info-itcl: \
9725 configure-itcl
9726 @[ -f ./itcl/Makefile ] || exit 0; \
9727 r=`${PWD_COMMAND}`; export r; \
9728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9729 $(SET_LIB_PATH) \
9730 for flag in $(EXTRA_HOST_FLAGS); do \
9731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9732 done; \
9733 echo "Doing info in itcl" ; \
9734 (cd itcl && \
9735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9737 "RANLIB=$${RANLIB}" \
9738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9739 info) \
9740 || exit 1
9743 .PHONY: maybe-dvi-itcl dvi-itcl
9744 maybe-dvi-itcl:
9746 dvi-itcl: \
9747 configure-itcl
9748 @[ -f ./itcl/Makefile ] || exit 0; \
9749 r=`${PWD_COMMAND}`; export r; \
9750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9751 $(SET_LIB_PATH) \
9752 for flag in $(EXTRA_HOST_FLAGS); do \
9753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9754 done; \
9755 echo "Doing dvi in itcl" ; \
9756 (cd itcl && \
9757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9759 "RANLIB=$${RANLIB}" \
9760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9761 dvi) \
9762 || exit 1
9765 .PHONY: maybe-TAGS-itcl TAGS-itcl
9766 maybe-TAGS-itcl:
9768 TAGS-itcl: \
9769 configure-itcl
9770 @[ -f ./itcl/Makefile ] || exit 0; \
9771 r=`${PWD_COMMAND}`; export r; \
9772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9773 $(SET_LIB_PATH) \
9774 for flag in $(EXTRA_HOST_FLAGS); do \
9775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9776 done; \
9777 echo "Doing TAGS in itcl" ; \
9778 (cd itcl && \
9779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9781 "RANLIB=$${RANLIB}" \
9782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9783 TAGS) \
9784 || exit 1
9787 .PHONY: maybe-install-info-itcl install-info-itcl
9788 maybe-install-info-itcl:
9790 install-info-itcl: \
9791 configure-itcl \
9792 info-itcl
9793 @[ -f ./itcl/Makefile ] || exit 0; \
9794 r=`${PWD_COMMAND}`; export r; \
9795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9796 $(SET_LIB_PATH) \
9797 for flag in $(EXTRA_HOST_FLAGS); do \
9798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9799 done; \
9800 echo "Doing install-info in itcl" ; \
9801 (cd itcl && \
9802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9804 "RANLIB=$${RANLIB}" \
9805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9806 install-info) \
9807 || exit 1
9810 .PHONY: maybe-installcheck-itcl installcheck-itcl
9811 maybe-installcheck-itcl:
9813 installcheck-itcl: \
9814 configure-itcl
9815 @[ -f ./itcl/Makefile ] || exit 0; \
9816 r=`${PWD_COMMAND}`; export r; \
9817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9818 $(SET_LIB_PATH) \
9819 for flag in $(EXTRA_HOST_FLAGS); do \
9820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9821 done; \
9822 echo "Doing installcheck in itcl" ; \
9823 (cd itcl && \
9824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9826 "RANLIB=$${RANLIB}" \
9827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9828 installcheck) \
9829 || exit 1
9832 .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
9833 maybe-mostlyclean-itcl:
9835 mostlyclean-itcl:
9836 @[ -f ./itcl/Makefile ] || exit 0; \
9837 r=`${PWD_COMMAND}`; export r; \
9838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9839 $(SET_LIB_PATH) \
9840 for flag in $(EXTRA_HOST_FLAGS); do \
9841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9842 done; \
9843 echo "Doing mostlyclean in itcl" ; \
9844 (cd itcl && \
9845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9847 "RANLIB=$${RANLIB}" \
9848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9849 mostlyclean) \
9850 || exit 1
9853 .PHONY: maybe-clean-itcl clean-itcl
9854 maybe-clean-itcl:
9856 clean-itcl:
9857 @[ -f ./itcl/Makefile ] || exit 0; \
9858 r=`${PWD_COMMAND}`; export r; \
9859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9860 $(SET_LIB_PATH) \
9861 for flag in $(EXTRA_HOST_FLAGS); do \
9862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9863 done; \
9864 echo "Doing clean in itcl" ; \
9865 (cd itcl && \
9866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9868 "RANLIB=$${RANLIB}" \
9869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9870 clean) \
9871 || exit 1
9874 .PHONY: maybe-distclean-itcl distclean-itcl
9875 maybe-distclean-itcl:
9877 distclean-itcl:
9878 @[ -f ./itcl/Makefile ] || exit 0; \
9879 r=`${PWD_COMMAND}`; export r; \
9880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9881 $(SET_LIB_PATH) \
9882 for flag in $(EXTRA_HOST_FLAGS); do \
9883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9884 done; \
9885 echo "Doing distclean in itcl" ; \
9886 (cd itcl && \
9887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9889 "RANLIB=$${RANLIB}" \
9890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9891 distclean) \
9892 || exit 1
9895 .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
9896 maybe-maintainer-clean-itcl:
9898 maintainer-clean-itcl:
9899 @[ -f ./itcl/Makefile ] || exit 0; \
9900 r=`${PWD_COMMAND}`; export r; \
9901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9902 $(SET_LIB_PATH) \
9903 for flag in $(EXTRA_HOST_FLAGS); do \
9904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9905 done; \
9906 echo "Doing maintainer-clean in itcl" ; \
9907 (cd itcl && \
9908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9910 "RANLIB=$${RANLIB}" \
9911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9912 maintainer-clean) \
9913 || exit 1
9917 .PHONY: configure-ld maybe-configure-ld
9918 maybe-configure-ld:
9919 configure-ld:
9920 @test ! -f ld/Makefile || exit 0; \
9921 [ -d ld ] || mkdir ld; \
9922 r=`${PWD_COMMAND}`; export r; \
9923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9924 CC="$(CC)"; export CC; \
9925 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9926 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9927 CXX="$(CXX)"; export CXX; \
9928 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9929 AR="$(AR)"; export AR; \
9930 AS="$(AS)"; export AS; \
9931 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9932 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9933 LD="$(LD)"; export LD; \
9934 NM="$(NM)"; export NM; \
9935 RANLIB="$(RANLIB)"; export RANLIB; \
9936 WINDRES="$(WINDRES)"; export WINDRES; \
9937 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9938 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9939 echo Configuring in ld; \
9940 cd ld || exit 1; \
9941 case $(srcdir) in \
9942 \.) \
9943 srcdiroption="--srcdir=."; \
9944 libsrcdir=".";; \
9945 /* | [A-Za-z]:[\\/]*) \
9946 srcdiroption="--srcdir=$(srcdir)/ld"; \
9947 libsrcdir="$$s/ld";; \
9948 *) \
9949 srcdiroption="--srcdir=../$(srcdir)/ld"; \
9950 libsrcdir="$$s/ld";; \
9951 esac; \
9952 $(SHELL) $${libsrcdir}/configure \
9953 $(HOST_CONFIGARGS) $${srcdiroption} \
9954 || exit 1
9956 .PHONY: all-ld maybe-all-ld
9957 maybe-all-ld:
9958 all-ld: configure-ld
9959 @r=`${PWD_COMMAND}`; export r; \
9960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9961 $(SET_LIB_PATH) \
9962 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
9964 .PHONY: check-ld maybe-check-ld
9965 maybe-check-ld:
9967 check-ld:
9968 @r=`${PWD_COMMAND}`; export r; \
9969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9970 $(SET_LIB_PATH) \
9971 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
9974 .PHONY: install-ld maybe-install-ld
9975 maybe-install-ld:
9977 install-ld: installdirs
9978 @r=`${PWD_COMMAND}`; export r; \
9979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9980 $(SET_LIB_PATH) \
9981 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
9984 # Other targets (info, dvi, etc.)
9986 .PHONY: maybe-info-ld info-ld
9987 maybe-info-ld:
9989 info-ld: \
9990 configure-ld
9991 @[ -f ./ld/Makefile ] || exit 0; \
9992 r=`${PWD_COMMAND}`; export r; \
9993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9994 $(SET_LIB_PATH) \
9995 for flag in $(EXTRA_HOST_FLAGS); do \
9996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9997 done; \
9998 echo "Doing info in ld" ; \
9999 (cd ld && \
10000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10002 "RANLIB=$${RANLIB}" \
10003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10004 info) \
10005 || exit 1
10008 .PHONY: maybe-dvi-ld dvi-ld
10009 maybe-dvi-ld:
10011 dvi-ld: \
10012 configure-ld
10013 @[ -f ./ld/Makefile ] || exit 0; \
10014 r=`${PWD_COMMAND}`; export r; \
10015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10016 $(SET_LIB_PATH) \
10017 for flag in $(EXTRA_HOST_FLAGS); do \
10018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10019 done; \
10020 echo "Doing dvi in ld" ; \
10021 (cd ld && \
10022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10024 "RANLIB=$${RANLIB}" \
10025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10026 dvi) \
10027 || exit 1
10030 .PHONY: maybe-TAGS-ld TAGS-ld
10031 maybe-TAGS-ld:
10033 TAGS-ld: \
10034 configure-ld
10035 @[ -f ./ld/Makefile ] || exit 0; \
10036 r=`${PWD_COMMAND}`; export r; \
10037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10038 $(SET_LIB_PATH) \
10039 for flag in $(EXTRA_HOST_FLAGS); do \
10040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10041 done; \
10042 echo "Doing TAGS in ld" ; \
10043 (cd ld && \
10044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10046 "RANLIB=$${RANLIB}" \
10047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10048 TAGS) \
10049 || exit 1
10052 .PHONY: maybe-install-info-ld install-info-ld
10053 maybe-install-info-ld:
10055 install-info-ld: \
10056 configure-ld \
10057 info-ld
10058 @[ -f ./ld/Makefile ] || exit 0; \
10059 r=`${PWD_COMMAND}`; export r; \
10060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10061 $(SET_LIB_PATH) \
10062 for flag in $(EXTRA_HOST_FLAGS); do \
10063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10064 done; \
10065 echo "Doing install-info in ld" ; \
10066 (cd ld && \
10067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10069 "RANLIB=$${RANLIB}" \
10070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10071 install-info) \
10072 || exit 1
10075 .PHONY: maybe-installcheck-ld installcheck-ld
10076 maybe-installcheck-ld:
10078 installcheck-ld: \
10079 configure-ld
10080 @[ -f ./ld/Makefile ] || exit 0; \
10081 r=`${PWD_COMMAND}`; export r; \
10082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10083 $(SET_LIB_PATH) \
10084 for flag in $(EXTRA_HOST_FLAGS); do \
10085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10086 done; \
10087 echo "Doing installcheck in ld" ; \
10088 (cd ld && \
10089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10091 "RANLIB=$${RANLIB}" \
10092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10093 installcheck) \
10094 || exit 1
10097 .PHONY: maybe-mostlyclean-ld mostlyclean-ld
10098 maybe-mostlyclean-ld:
10100 mostlyclean-ld:
10101 @[ -f ./ld/Makefile ] || exit 0; \
10102 r=`${PWD_COMMAND}`; export r; \
10103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10104 $(SET_LIB_PATH) \
10105 for flag in $(EXTRA_HOST_FLAGS); do \
10106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10107 done; \
10108 echo "Doing mostlyclean in ld" ; \
10109 (cd ld && \
10110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10112 "RANLIB=$${RANLIB}" \
10113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10114 mostlyclean) \
10115 || exit 1
10118 .PHONY: maybe-clean-ld clean-ld
10119 maybe-clean-ld:
10121 clean-ld:
10122 @[ -f ./ld/Makefile ] || exit 0; \
10123 r=`${PWD_COMMAND}`; export r; \
10124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10125 $(SET_LIB_PATH) \
10126 for flag in $(EXTRA_HOST_FLAGS); do \
10127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10128 done; \
10129 echo "Doing clean in ld" ; \
10130 (cd ld && \
10131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10133 "RANLIB=$${RANLIB}" \
10134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10135 clean) \
10136 || exit 1
10139 .PHONY: maybe-distclean-ld distclean-ld
10140 maybe-distclean-ld:
10142 distclean-ld:
10143 @[ -f ./ld/Makefile ] || exit 0; \
10144 r=`${PWD_COMMAND}`; export r; \
10145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10146 $(SET_LIB_PATH) \
10147 for flag in $(EXTRA_HOST_FLAGS); do \
10148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10149 done; \
10150 echo "Doing distclean in ld" ; \
10151 (cd ld && \
10152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10154 "RANLIB=$${RANLIB}" \
10155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10156 distclean) \
10157 || exit 1
10160 .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
10161 maybe-maintainer-clean-ld:
10163 maintainer-clean-ld:
10164 @[ -f ./ld/Makefile ] || exit 0; \
10165 r=`${PWD_COMMAND}`; export r; \
10166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10167 $(SET_LIB_PATH) \
10168 for flag in $(EXTRA_HOST_FLAGS); do \
10169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10170 done; \
10171 echo "Doing maintainer-clean in ld" ; \
10172 (cd ld && \
10173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10175 "RANLIB=$${RANLIB}" \
10176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10177 maintainer-clean) \
10178 || exit 1
10182 .PHONY: configure-libgui maybe-configure-libgui
10183 maybe-configure-libgui:
10184 configure-libgui:
10185 @test ! -f libgui/Makefile || exit 0; \
10186 [ -d libgui ] || mkdir libgui; \
10187 r=`${PWD_COMMAND}`; export r; \
10188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10189 CC="$(CC)"; export CC; \
10190 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10191 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10192 CXX="$(CXX)"; export CXX; \
10193 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10194 AR="$(AR)"; export AR; \
10195 AS="$(AS)"; export AS; \
10196 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10197 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10198 LD="$(LD)"; export LD; \
10199 NM="$(NM)"; export NM; \
10200 RANLIB="$(RANLIB)"; export RANLIB; \
10201 WINDRES="$(WINDRES)"; export WINDRES; \
10202 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10203 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10204 echo Configuring in libgui; \
10205 cd libgui || exit 1; \
10206 case $(srcdir) in \
10207 \.) \
10208 srcdiroption="--srcdir=."; \
10209 libsrcdir=".";; \
10210 /* | [A-Za-z]:[\\/]*) \
10211 srcdiroption="--srcdir=$(srcdir)/libgui"; \
10212 libsrcdir="$$s/libgui";; \
10213 *) \
10214 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
10215 libsrcdir="$$s/libgui";; \
10216 esac; \
10217 $(SHELL) $${libsrcdir}/configure \
10218 $(HOST_CONFIGARGS) $${srcdiroption} \
10219 || exit 1
10221 .PHONY: all-libgui maybe-all-libgui
10222 maybe-all-libgui:
10223 all-libgui: configure-libgui
10224 @r=`${PWD_COMMAND}`; export r; \
10225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10226 $(SET_LIB_PATH) \
10227 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
10229 .PHONY: check-libgui maybe-check-libgui
10230 maybe-check-libgui:
10232 check-libgui:
10233 @r=`${PWD_COMMAND}`; export r; \
10234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10235 $(SET_LIB_PATH) \
10236 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
10239 .PHONY: install-libgui maybe-install-libgui
10240 maybe-install-libgui:
10242 install-libgui: installdirs
10243 @r=`${PWD_COMMAND}`; export r; \
10244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10245 $(SET_LIB_PATH) \
10246 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
10249 # Other targets (info, dvi, etc.)
10251 .PHONY: maybe-info-libgui info-libgui
10252 maybe-info-libgui:
10254 info-libgui: \
10255 configure-libgui
10256 @[ -f ./libgui/Makefile ] || exit 0; \
10257 r=`${PWD_COMMAND}`; export r; \
10258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10259 $(SET_LIB_PATH) \
10260 for flag in $(EXTRA_HOST_FLAGS); do \
10261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10262 done; \
10263 echo "Doing info in libgui" ; \
10264 (cd libgui && \
10265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10267 "RANLIB=$${RANLIB}" \
10268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10269 info) \
10270 || exit 1
10273 .PHONY: maybe-dvi-libgui dvi-libgui
10274 maybe-dvi-libgui:
10276 dvi-libgui: \
10277 configure-libgui
10278 @[ -f ./libgui/Makefile ] || exit 0; \
10279 r=`${PWD_COMMAND}`; export r; \
10280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10281 $(SET_LIB_PATH) \
10282 for flag in $(EXTRA_HOST_FLAGS); do \
10283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10284 done; \
10285 echo "Doing dvi in libgui" ; \
10286 (cd libgui && \
10287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10289 "RANLIB=$${RANLIB}" \
10290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10291 dvi) \
10292 || exit 1
10295 .PHONY: maybe-TAGS-libgui TAGS-libgui
10296 maybe-TAGS-libgui:
10298 TAGS-libgui: \
10299 configure-libgui
10300 @[ -f ./libgui/Makefile ] || exit 0; \
10301 r=`${PWD_COMMAND}`; export r; \
10302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10303 $(SET_LIB_PATH) \
10304 for flag in $(EXTRA_HOST_FLAGS); do \
10305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10306 done; \
10307 echo "Doing TAGS in libgui" ; \
10308 (cd libgui && \
10309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10311 "RANLIB=$${RANLIB}" \
10312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10313 TAGS) \
10314 || exit 1
10317 .PHONY: maybe-install-info-libgui install-info-libgui
10318 maybe-install-info-libgui:
10320 install-info-libgui: \
10321 configure-libgui \
10322 info-libgui
10323 @[ -f ./libgui/Makefile ] || exit 0; \
10324 r=`${PWD_COMMAND}`; export r; \
10325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10326 $(SET_LIB_PATH) \
10327 for flag in $(EXTRA_HOST_FLAGS); do \
10328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10329 done; \
10330 echo "Doing install-info in libgui" ; \
10331 (cd libgui && \
10332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10334 "RANLIB=$${RANLIB}" \
10335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10336 install-info) \
10337 || exit 1
10340 .PHONY: maybe-installcheck-libgui installcheck-libgui
10341 maybe-installcheck-libgui:
10343 installcheck-libgui: \
10344 configure-libgui
10345 @[ -f ./libgui/Makefile ] || exit 0; \
10346 r=`${PWD_COMMAND}`; export r; \
10347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10348 $(SET_LIB_PATH) \
10349 for flag in $(EXTRA_HOST_FLAGS); do \
10350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10351 done; \
10352 echo "Doing installcheck in libgui" ; \
10353 (cd libgui && \
10354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10356 "RANLIB=$${RANLIB}" \
10357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10358 installcheck) \
10359 || exit 1
10362 .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
10363 maybe-mostlyclean-libgui:
10365 mostlyclean-libgui:
10366 @[ -f ./libgui/Makefile ] || exit 0; \
10367 r=`${PWD_COMMAND}`; export r; \
10368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10369 $(SET_LIB_PATH) \
10370 for flag in $(EXTRA_HOST_FLAGS); do \
10371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10372 done; \
10373 echo "Doing mostlyclean in libgui" ; \
10374 (cd libgui && \
10375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10377 "RANLIB=$${RANLIB}" \
10378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10379 mostlyclean) \
10380 || exit 1
10383 .PHONY: maybe-clean-libgui clean-libgui
10384 maybe-clean-libgui:
10386 clean-libgui:
10387 @[ -f ./libgui/Makefile ] || exit 0; \
10388 r=`${PWD_COMMAND}`; export r; \
10389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10390 $(SET_LIB_PATH) \
10391 for flag in $(EXTRA_HOST_FLAGS); do \
10392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10393 done; \
10394 echo "Doing clean in libgui" ; \
10395 (cd libgui && \
10396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10398 "RANLIB=$${RANLIB}" \
10399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10400 clean) \
10401 || exit 1
10404 .PHONY: maybe-distclean-libgui distclean-libgui
10405 maybe-distclean-libgui:
10407 distclean-libgui:
10408 @[ -f ./libgui/Makefile ] || exit 0; \
10409 r=`${PWD_COMMAND}`; export r; \
10410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10411 $(SET_LIB_PATH) \
10412 for flag in $(EXTRA_HOST_FLAGS); do \
10413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10414 done; \
10415 echo "Doing distclean in libgui" ; \
10416 (cd libgui && \
10417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10419 "RANLIB=$${RANLIB}" \
10420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10421 distclean) \
10422 || exit 1
10425 .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
10426 maybe-maintainer-clean-libgui:
10428 maintainer-clean-libgui:
10429 @[ -f ./libgui/Makefile ] || exit 0; \
10430 r=`${PWD_COMMAND}`; export r; \
10431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10432 $(SET_LIB_PATH) \
10433 for flag in $(EXTRA_HOST_FLAGS); do \
10434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10435 done; \
10436 echo "Doing maintainer-clean in libgui" ; \
10437 (cd libgui && \
10438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10440 "RANLIB=$${RANLIB}" \
10441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10442 maintainer-clean) \
10443 || exit 1
10447 .PHONY: configure-libiberty maybe-configure-libiberty
10448 maybe-configure-libiberty:
10449 configure-libiberty:
10450 @test ! -f libiberty/Makefile || exit 0; \
10451 [ -d libiberty ] || mkdir libiberty; \
10452 r=`${PWD_COMMAND}`; export r; \
10453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10454 CC="$(CC)"; export CC; \
10455 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10456 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10457 CXX="$(CXX)"; export CXX; \
10458 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10459 AR="$(AR)"; export AR; \
10460 AS="$(AS)"; export AS; \
10461 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10462 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10463 LD="$(LD)"; export LD; \
10464 NM="$(NM)"; export NM; \
10465 RANLIB="$(RANLIB)"; export RANLIB; \
10466 WINDRES="$(WINDRES)"; export WINDRES; \
10467 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10468 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10469 echo Configuring in libiberty; \
10470 cd libiberty || exit 1; \
10471 case $(srcdir) in \
10472 \.) \
10473 srcdiroption="--srcdir=."; \
10474 libsrcdir=".";; \
10475 /* | [A-Za-z]:[\\/]*) \
10476 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
10477 libsrcdir="$$s/libiberty";; \
10478 *) \
10479 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
10480 libsrcdir="$$s/libiberty";; \
10481 esac; \
10482 $(SHELL) $${libsrcdir}/configure \
10483 $(HOST_CONFIGARGS) $${srcdiroption} \
10484 || exit 1
10486 .PHONY: all-libiberty maybe-all-libiberty
10487 maybe-all-libiberty:
10488 all-libiberty: configure-libiberty
10489 @r=`${PWD_COMMAND}`; export r; \
10490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10491 $(SET_LIB_PATH) \
10492 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
10494 .PHONY: check-libiberty maybe-check-libiberty
10495 maybe-check-libiberty:
10497 check-libiberty:
10498 @r=`${PWD_COMMAND}`; export r; \
10499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10500 $(SET_LIB_PATH) \
10501 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
10504 .PHONY: install-libiberty maybe-install-libiberty
10505 maybe-install-libiberty:
10507 install-libiberty: installdirs
10508 @r=`${PWD_COMMAND}`; export r; \
10509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10510 $(SET_LIB_PATH) \
10511 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
10514 # Other targets (info, dvi, etc.)
10516 .PHONY: maybe-info-libiberty info-libiberty
10517 maybe-info-libiberty:
10519 info-libiberty: \
10520 configure-libiberty
10521 @[ -f ./libiberty/Makefile ] || exit 0; \
10522 r=`${PWD_COMMAND}`; export r; \
10523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10524 $(SET_LIB_PATH) \
10525 for flag in $(EXTRA_HOST_FLAGS); do \
10526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10527 done; \
10528 echo "Doing info in libiberty" ; \
10529 (cd libiberty && \
10530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10532 "RANLIB=$${RANLIB}" \
10533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10534 info) \
10535 || exit 1
10538 .PHONY: maybe-dvi-libiberty dvi-libiberty
10539 maybe-dvi-libiberty:
10541 dvi-libiberty: \
10542 configure-libiberty
10543 @[ -f ./libiberty/Makefile ] || exit 0; \
10544 r=`${PWD_COMMAND}`; export r; \
10545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10546 $(SET_LIB_PATH) \
10547 for flag in $(EXTRA_HOST_FLAGS); do \
10548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10549 done; \
10550 echo "Doing dvi in libiberty" ; \
10551 (cd libiberty && \
10552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10554 "RANLIB=$${RANLIB}" \
10555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10556 dvi) \
10557 || exit 1
10560 .PHONY: maybe-TAGS-libiberty TAGS-libiberty
10561 maybe-TAGS-libiberty:
10563 TAGS-libiberty: \
10564 configure-libiberty
10565 @[ -f ./libiberty/Makefile ] || exit 0; \
10566 r=`${PWD_COMMAND}`; export r; \
10567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10568 $(SET_LIB_PATH) \
10569 for flag in $(EXTRA_HOST_FLAGS); do \
10570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10571 done; \
10572 echo "Doing TAGS in libiberty" ; \
10573 (cd libiberty && \
10574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10576 "RANLIB=$${RANLIB}" \
10577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10578 TAGS) \
10579 || exit 1
10582 .PHONY: maybe-install-info-libiberty install-info-libiberty
10583 maybe-install-info-libiberty:
10585 install-info-libiberty: \
10586 configure-libiberty \
10587 info-libiberty
10588 @[ -f ./libiberty/Makefile ] || exit 0; \
10589 r=`${PWD_COMMAND}`; export r; \
10590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10591 $(SET_LIB_PATH) \
10592 for flag in $(EXTRA_HOST_FLAGS); do \
10593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10594 done; \
10595 echo "Doing install-info in libiberty" ; \
10596 (cd libiberty && \
10597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10599 "RANLIB=$${RANLIB}" \
10600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10601 install-info) \
10602 || exit 1
10605 .PHONY: maybe-installcheck-libiberty installcheck-libiberty
10606 maybe-installcheck-libiberty:
10608 installcheck-libiberty: \
10609 configure-libiberty
10610 @[ -f ./libiberty/Makefile ] || exit 0; \
10611 r=`${PWD_COMMAND}`; export r; \
10612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10613 $(SET_LIB_PATH) \
10614 for flag in $(EXTRA_HOST_FLAGS); do \
10615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10616 done; \
10617 echo "Doing installcheck in libiberty" ; \
10618 (cd libiberty && \
10619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10621 "RANLIB=$${RANLIB}" \
10622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10623 installcheck) \
10624 || exit 1
10627 .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
10628 maybe-mostlyclean-libiberty:
10630 mostlyclean-libiberty:
10631 @[ -f ./libiberty/Makefile ] || exit 0; \
10632 r=`${PWD_COMMAND}`; export r; \
10633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10634 $(SET_LIB_PATH) \
10635 for flag in $(EXTRA_HOST_FLAGS); do \
10636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10637 done; \
10638 echo "Doing mostlyclean in libiberty" ; \
10639 (cd libiberty && \
10640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10642 "RANLIB=$${RANLIB}" \
10643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10644 mostlyclean) \
10645 || exit 1
10648 .PHONY: maybe-clean-libiberty clean-libiberty
10649 maybe-clean-libiberty:
10651 clean-libiberty:
10652 @[ -f ./libiberty/Makefile ] || exit 0; \
10653 r=`${PWD_COMMAND}`; export r; \
10654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10655 $(SET_LIB_PATH) \
10656 for flag in $(EXTRA_HOST_FLAGS); do \
10657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10658 done; \
10659 echo "Doing clean in libiberty" ; \
10660 (cd libiberty && \
10661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10663 "RANLIB=$${RANLIB}" \
10664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10665 clean) \
10666 || exit 1
10669 .PHONY: maybe-distclean-libiberty distclean-libiberty
10670 maybe-distclean-libiberty:
10672 distclean-libiberty:
10673 @[ -f ./libiberty/Makefile ] || exit 0; \
10674 r=`${PWD_COMMAND}`; export r; \
10675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10676 $(SET_LIB_PATH) \
10677 for flag in $(EXTRA_HOST_FLAGS); do \
10678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10679 done; \
10680 echo "Doing distclean in libiberty" ; \
10681 (cd libiberty && \
10682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10684 "RANLIB=$${RANLIB}" \
10685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10686 distclean) \
10687 || exit 1
10690 .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
10691 maybe-maintainer-clean-libiberty:
10693 maintainer-clean-libiberty:
10694 @[ -f ./libiberty/Makefile ] || exit 0; \
10695 r=`${PWD_COMMAND}`; export r; \
10696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10697 $(SET_LIB_PATH) \
10698 for flag in $(EXTRA_HOST_FLAGS); do \
10699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10700 done; \
10701 echo "Doing maintainer-clean in libiberty" ; \
10702 (cd libiberty && \
10703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10705 "RANLIB=$${RANLIB}" \
10706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10707 maintainer-clean) \
10708 || exit 1
10712 .PHONY: configure-libtool maybe-configure-libtool
10713 maybe-configure-libtool:
10714 configure-libtool:
10715 @test ! -f libtool/Makefile || exit 0; \
10716 [ -d libtool ] || mkdir libtool; \
10717 r=`${PWD_COMMAND}`; export r; \
10718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10719 CC="$(CC)"; export CC; \
10720 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10721 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10722 CXX="$(CXX)"; export CXX; \
10723 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10724 AR="$(AR)"; export AR; \
10725 AS="$(AS)"; export AS; \
10726 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10727 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10728 LD="$(LD)"; export LD; \
10729 NM="$(NM)"; export NM; \
10730 RANLIB="$(RANLIB)"; export RANLIB; \
10731 WINDRES="$(WINDRES)"; export WINDRES; \
10732 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10733 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10734 echo Configuring in libtool; \
10735 cd libtool || exit 1; \
10736 case $(srcdir) in \
10737 \.) \
10738 srcdiroption="--srcdir=."; \
10739 libsrcdir=".";; \
10740 /* | [A-Za-z]:[\\/]*) \
10741 srcdiroption="--srcdir=$(srcdir)/libtool"; \
10742 libsrcdir="$$s/libtool";; \
10743 *) \
10744 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
10745 libsrcdir="$$s/libtool";; \
10746 esac; \
10747 $(SHELL) $${libsrcdir}/configure \
10748 $(HOST_CONFIGARGS) $${srcdiroption} \
10749 || exit 1
10751 .PHONY: all-libtool maybe-all-libtool
10752 maybe-all-libtool:
10753 all-libtool: configure-libtool
10754 @r=`${PWD_COMMAND}`; export r; \
10755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10756 $(SET_LIB_PATH) \
10757 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
10759 .PHONY: check-libtool maybe-check-libtool
10760 maybe-check-libtool:
10762 check-libtool:
10763 @r=`${PWD_COMMAND}`; export r; \
10764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10765 $(SET_LIB_PATH) \
10766 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
10769 .PHONY: install-libtool maybe-install-libtool
10770 maybe-install-libtool:
10772 install-libtool: installdirs
10773 @r=`${PWD_COMMAND}`; export r; \
10774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10775 $(SET_LIB_PATH) \
10776 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
10779 # Other targets (info, dvi, etc.)
10781 .PHONY: maybe-info-libtool info-libtool
10782 maybe-info-libtool:
10784 info-libtool: \
10785 configure-libtool
10786 @[ -f ./libtool/Makefile ] || exit 0; \
10787 r=`${PWD_COMMAND}`; export r; \
10788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10789 $(SET_LIB_PATH) \
10790 for flag in $(EXTRA_HOST_FLAGS); do \
10791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10792 done; \
10793 echo "Doing info in libtool" ; \
10794 (cd libtool && \
10795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10797 "RANLIB=$${RANLIB}" \
10798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10799 info) \
10800 || exit 1
10803 .PHONY: maybe-dvi-libtool dvi-libtool
10804 maybe-dvi-libtool:
10806 dvi-libtool: \
10807 configure-libtool
10808 @[ -f ./libtool/Makefile ] || exit 0; \
10809 r=`${PWD_COMMAND}`; export r; \
10810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10811 $(SET_LIB_PATH) \
10812 for flag in $(EXTRA_HOST_FLAGS); do \
10813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10814 done; \
10815 echo "Doing dvi in libtool" ; \
10816 (cd libtool && \
10817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10819 "RANLIB=$${RANLIB}" \
10820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10821 dvi) \
10822 || exit 1
10825 .PHONY: maybe-TAGS-libtool TAGS-libtool
10826 maybe-TAGS-libtool:
10828 TAGS-libtool: \
10829 configure-libtool
10830 @[ -f ./libtool/Makefile ] || exit 0; \
10831 r=`${PWD_COMMAND}`; export r; \
10832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10833 $(SET_LIB_PATH) \
10834 for flag in $(EXTRA_HOST_FLAGS); do \
10835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10836 done; \
10837 echo "Doing TAGS in libtool" ; \
10838 (cd libtool && \
10839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10841 "RANLIB=$${RANLIB}" \
10842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10843 TAGS) \
10844 || exit 1
10847 .PHONY: maybe-install-info-libtool install-info-libtool
10848 maybe-install-info-libtool:
10850 install-info-libtool: \
10851 configure-libtool \
10852 info-libtool
10853 @[ -f ./libtool/Makefile ] || exit 0; \
10854 r=`${PWD_COMMAND}`; export r; \
10855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10856 $(SET_LIB_PATH) \
10857 for flag in $(EXTRA_HOST_FLAGS); do \
10858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10859 done; \
10860 echo "Doing install-info in libtool" ; \
10861 (cd libtool && \
10862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10864 "RANLIB=$${RANLIB}" \
10865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10866 install-info) \
10867 || exit 1
10870 .PHONY: maybe-installcheck-libtool installcheck-libtool
10871 maybe-installcheck-libtool:
10873 installcheck-libtool: \
10874 configure-libtool
10875 @[ -f ./libtool/Makefile ] || exit 0; \
10876 r=`${PWD_COMMAND}`; export r; \
10877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10878 $(SET_LIB_PATH) \
10879 for flag in $(EXTRA_HOST_FLAGS); do \
10880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10881 done; \
10882 echo "Doing installcheck in libtool" ; \
10883 (cd libtool && \
10884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10886 "RANLIB=$${RANLIB}" \
10887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10888 installcheck) \
10889 || exit 1
10892 .PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
10893 maybe-mostlyclean-libtool:
10895 mostlyclean-libtool:
10896 @[ -f ./libtool/Makefile ] || exit 0; \
10897 r=`${PWD_COMMAND}`; export r; \
10898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10899 $(SET_LIB_PATH) \
10900 for flag in $(EXTRA_HOST_FLAGS); do \
10901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10902 done; \
10903 echo "Doing mostlyclean in libtool" ; \
10904 (cd libtool && \
10905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10907 "RANLIB=$${RANLIB}" \
10908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10909 mostlyclean) \
10910 || exit 1
10913 .PHONY: maybe-clean-libtool clean-libtool
10914 maybe-clean-libtool:
10916 clean-libtool:
10917 @[ -f ./libtool/Makefile ] || exit 0; \
10918 r=`${PWD_COMMAND}`; export r; \
10919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10920 $(SET_LIB_PATH) \
10921 for flag in $(EXTRA_HOST_FLAGS); do \
10922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10923 done; \
10924 echo "Doing clean in libtool" ; \
10925 (cd libtool && \
10926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10928 "RANLIB=$${RANLIB}" \
10929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10930 clean) \
10931 || exit 1
10934 .PHONY: maybe-distclean-libtool distclean-libtool
10935 maybe-distclean-libtool:
10937 distclean-libtool:
10938 @[ -f ./libtool/Makefile ] || exit 0; \
10939 r=`${PWD_COMMAND}`; export r; \
10940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10941 $(SET_LIB_PATH) \
10942 for flag in $(EXTRA_HOST_FLAGS); do \
10943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10944 done; \
10945 echo "Doing distclean in libtool" ; \
10946 (cd libtool && \
10947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10949 "RANLIB=$${RANLIB}" \
10950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10951 distclean) \
10952 || exit 1
10955 .PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
10956 maybe-maintainer-clean-libtool:
10958 maintainer-clean-libtool:
10959 @[ -f ./libtool/Makefile ] || exit 0; \
10960 r=`${PWD_COMMAND}`; export r; \
10961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10962 $(SET_LIB_PATH) \
10963 for flag in $(EXTRA_HOST_FLAGS); do \
10964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10965 done; \
10966 echo "Doing maintainer-clean in libtool" ; \
10967 (cd libtool && \
10968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10970 "RANLIB=$${RANLIB}" \
10971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10972 maintainer-clean) \
10973 || exit 1
10977 .PHONY: configure-m4 maybe-configure-m4
10978 maybe-configure-m4:
10979 configure-m4:
10980 @test ! -f m4/Makefile || exit 0; \
10981 [ -d m4 ] || mkdir m4; \
10982 r=`${PWD_COMMAND}`; export r; \
10983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10984 CC="$(CC)"; export CC; \
10985 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10986 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10987 CXX="$(CXX)"; export CXX; \
10988 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10989 AR="$(AR)"; export AR; \
10990 AS="$(AS)"; export AS; \
10991 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10992 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10993 LD="$(LD)"; export LD; \
10994 NM="$(NM)"; export NM; \
10995 RANLIB="$(RANLIB)"; export RANLIB; \
10996 WINDRES="$(WINDRES)"; export WINDRES; \
10997 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10998 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10999 echo Configuring in m4; \
11000 cd m4 || exit 1; \
11001 case $(srcdir) in \
11002 \.) \
11003 srcdiroption="--srcdir=."; \
11004 libsrcdir=".";; \
11005 /* | [A-Za-z]:[\\/]*) \
11006 srcdiroption="--srcdir=$(srcdir)/m4"; \
11007 libsrcdir="$$s/m4";; \
11008 *) \
11009 srcdiroption="--srcdir=../$(srcdir)/m4"; \
11010 libsrcdir="$$s/m4";; \
11011 esac; \
11012 $(SHELL) $${libsrcdir}/configure \
11013 $(HOST_CONFIGARGS) $${srcdiroption} \
11014 || exit 1
11016 .PHONY: all-m4 maybe-all-m4
11017 maybe-all-m4:
11018 all-m4: configure-m4
11019 @r=`${PWD_COMMAND}`; export r; \
11020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11021 $(SET_LIB_PATH) \
11022 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
11024 .PHONY: check-m4 maybe-check-m4
11025 maybe-check-m4:
11027 check-m4:
11028 @r=`${PWD_COMMAND}`; export r; \
11029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11030 $(SET_LIB_PATH) \
11031 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
11034 .PHONY: install-m4 maybe-install-m4
11035 maybe-install-m4:
11037 install-m4: installdirs
11038 @r=`${PWD_COMMAND}`; export r; \
11039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11040 $(SET_LIB_PATH) \
11041 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
11044 # Other targets (info, dvi, etc.)
11046 .PHONY: maybe-info-m4 info-m4
11047 maybe-info-m4:
11049 info-m4: \
11050 configure-m4
11051 @[ -f ./m4/Makefile ] || exit 0; \
11052 r=`${PWD_COMMAND}`; export r; \
11053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11054 $(SET_LIB_PATH) \
11055 for flag in $(EXTRA_HOST_FLAGS); do \
11056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11057 done; \
11058 echo "Doing info in m4" ; \
11059 (cd m4 && \
11060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11062 "RANLIB=$${RANLIB}" \
11063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11064 info) \
11065 || exit 1
11068 .PHONY: maybe-dvi-m4 dvi-m4
11069 maybe-dvi-m4:
11071 dvi-m4: \
11072 configure-m4
11073 @[ -f ./m4/Makefile ] || exit 0; \
11074 r=`${PWD_COMMAND}`; export r; \
11075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11076 $(SET_LIB_PATH) \
11077 for flag in $(EXTRA_HOST_FLAGS); do \
11078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11079 done; \
11080 echo "Doing dvi in m4" ; \
11081 (cd m4 && \
11082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11084 "RANLIB=$${RANLIB}" \
11085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11086 dvi) \
11087 || exit 1
11090 .PHONY: maybe-TAGS-m4 TAGS-m4
11091 maybe-TAGS-m4:
11093 TAGS-m4: \
11094 configure-m4
11095 @[ -f ./m4/Makefile ] || exit 0; \
11096 r=`${PWD_COMMAND}`; export r; \
11097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11098 $(SET_LIB_PATH) \
11099 for flag in $(EXTRA_HOST_FLAGS); do \
11100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11101 done; \
11102 echo "Doing TAGS in m4" ; \
11103 (cd m4 && \
11104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11106 "RANLIB=$${RANLIB}" \
11107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11108 TAGS) \
11109 || exit 1
11112 .PHONY: maybe-install-info-m4 install-info-m4
11113 maybe-install-info-m4:
11115 install-info-m4: \
11116 configure-m4 \
11117 info-m4
11118 @[ -f ./m4/Makefile ] || exit 0; \
11119 r=`${PWD_COMMAND}`; export r; \
11120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11121 $(SET_LIB_PATH) \
11122 for flag in $(EXTRA_HOST_FLAGS); do \
11123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11124 done; \
11125 echo "Doing install-info in m4" ; \
11126 (cd m4 && \
11127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11129 "RANLIB=$${RANLIB}" \
11130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11131 install-info) \
11132 || exit 1
11135 .PHONY: maybe-installcheck-m4 installcheck-m4
11136 maybe-installcheck-m4:
11138 installcheck-m4: \
11139 configure-m4
11140 @[ -f ./m4/Makefile ] || exit 0; \
11141 r=`${PWD_COMMAND}`; export r; \
11142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11143 $(SET_LIB_PATH) \
11144 for flag in $(EXTRA_HOST_FLAGS); do \
11145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11146 done; \
11147 echo "Doing installcheck in m4" ; \
11148 (cd m4 && \
11149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11151 "RANLIB=$${RANLIB}" \
11152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11153 installcheck) \
11154 || exit 1
11157 .PHONY: maybe-mostlyclean-m4 mostlyclean-m4
11158 maybe-mostlyclean-m4:
11160 mostlyclean-m4:
11161 @[ -f ./m4/Makefile ] || exit 0; \
11162 r=`${PWD_COMMAND}`; export r; \
11163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11164 $(SET_LIB_PATH) \
11165 for flag in $(EXTRA_HOST_FLAGS); do \
11166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11167 done; \
11168 echo "Doing mostlyclean in m4" ; \
11169 (cd m4 && \
11170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11172 "RANLIB=$${RANLIB}" \
11173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11174 mostlyclean) \
11175 || exit 1
11178 .PHONY: maybe-clean-m4 clean-m4
11179 maybe-clean-m4:
11181 clean-m4:
11182 @[ -f ./m4/Makefile ] || exit 0; \
11183 r=`${PWD_COMMAND}`; export r; \
11184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11185 $(SET_LIB_PATH) \
11186 for flag in $(EXTRA_HOST_FLAGS); do \
11187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11188 done; \
11189 echo "Doing clean in m4" ; \
11190 (cd m4 && \
11191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11193 "RANLIB=$${RANLIB}" \
11194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11195 clean) \
11196 || exit 1
11199 .PHONY: maybe-distclean-m4 distclean-m4
11200 maybe-distclean-m4:
11202 distclean-m4:
11203 @[ -f ./m4/Makefile ] || exit 0; \
11204 r=`${PWD_COMMAND}`; export r; \
11205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11206 $(SET_LIB_PATH) \
11207 for flag in $(EXTRA_HOST_FLAGS); do \
11208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11209 done; \
11210 echo "Doing distclean in m4" ; \
11211 (cd m4 && \
11212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11214 "RANLIB=$${RANLIB}" \
11215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11216 distclean) \
11217 || exit 1
11220 .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
11221 maybe-maintainer-clean-m4:
11223 maintainer-clean-m4:
11224 @[ -f ./m4/Makefile ] || exit 0; \
11225 r=`${PWD_COMMAND}`; export r; \
11226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11227 $(SET_LIB_PATH) \
11228 for flag in $(EXTRA_HOST_FLAGS); do \
11229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11230 done; \
11231 echo "Doing maintainer-clean in m4" ; \
11232 (cd m4 && \
11233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11235 "RANLIB=$${RANLIB}" \
11236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11237 maintainer-clean) \
11238 || exit 1
11242 .PHONY: configure-make maybe-configure-make
11243 maybe-configure-make:
11244 configure-make:
11245 @test ! -f make/Makefile || exit 0; \
11246 [ -d make ] || mkdir make; \
11247 r=`${PWD_COMMAND}`; export r; \
11248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11249 CC="$(CC)"; export CC; \
11250 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11251 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11252 CXX="$(CXX)"; export CXX; \
11253 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11254 AR="$(AR)"; export AR; \
11255 AS="$(AS)"; export AS; \
11256 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11257 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11258 LD="$(LD)"; export LD; \
11259 NM="$(NM)"; export NM; \
11260 RANLIB="$(RANLIB)"; export RANLIB; \
11261 WINDRES="$(WINDRES)"; export WINDRES; \
11262 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11263 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11264 echo Configuring in make; \
11265 cd make || exit 1; \
11266 case $(srcdir) in \
11267 \.) \
11268 srcdiroption="--srcdir=."; \
11269 libsrcdir=".";; \
11270 /* | [A-Za-z]:[\\/]*) \
11271 srcdiroption="--srcdir=$(srcdir)/make"; \
11272 libsrcdir="$$s/make";; \
11273 *) \
11274 srcdiroption="--srcdir=../$(srcdir)/make"; \
11275 libsrcdir="$$s/make";; \
11276 esac; \
11277 $(SHELL) $${libsrcdir}/configure \
11278 $(HOST_CONFIGARGS) $${srcdiroption} \
11279 || exit 1
11281 .PHONY: all-make maybe-all-make
11282 maybe-all-make:
11283 all-make: configure-make
11284 @r=`${PWD_COMMAND}`; export r; \
11285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11286 $(SET_LIB_PATH) \
11287 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
11289 .PHONY: check-make maybe-check-make
11290 maybe-check-make:
11292 check-make:
11293 @r=`${PWD_COMMAND}`; export r; \
11294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11295 $(SET_LIB_PATH) \
11296 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
11299 .PHONY: install-make maybe-install-make
11300 maybe-install-make:
11302 install-make: installdirs
11303 @r=`${PWD_COMMAND}`; export r; \
11304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11305 $(SET_LIB_PATH) \
11306 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
11309 # Other targets (info, dvi, etc.)
11311 .PHONY: maybe-info-make info-make
11312 maybe-info-make:
11314 info-make: \
11315 configure-make
11316 @[ -f ./make/Makefile ] || exit 0; \
11317 r=`${PWD_COMMAND}`; export r; \
11318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11319 $(SET_LIB_PATH) \
11320 for flag in $(EXTRA_HOST_FLAGS); do \
11321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11322 done; \
11323 echo "Doing info in make" ; \
11324 (cd make && \
11325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11327 "RANLIB=$${RANLIB}" \
11328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11329 info) \
11330 || exit 1
11333 .PHONY: maybe-dvi-make dvi-make
11334 maybe-dvi-make:
11336 dvi-make: \
11337 configure-make
11338 @[ -f ./make/Makefile ] || exit 0; \
11339 r=`${PWD_COMMAND}`; export r; \
11340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11341 $(SET_LIB_PATH) \
11342 for flag in $(EXTRA_HOST_FLAGS); do \
11343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11344 done; \
11345 echo "Doing dvi in make" ; \
11346 (cd make && \
11347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11349 "RANLIB=$${RANLIB}" \
11350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11351 dvi) \
11352 || exit 1
11355 .PHONY: maybe-TAGS-make TAGS-make
11356 maybe-TAGS-make:
11358 TAGS-make: \
11359 configure-make
11360 @[ -f ./make/Makefile ] || exit 0; \
11361 r=`${PWD_COMMAND}`; export r; \
11362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11363 $(SET_LIB_PATH) \
11364 for flag in $(EXTRA_HOST_FLAGS); do \
11365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11366 done; \
11367 echo "Doing TAGS in make" ; \
11368 (cd make && \
11369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11371 "RANLIB=$${RANLIB}" \
11372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11373 TAGS) \
11374 || exit 1
11377 .PHONY: maybe-install-info-make install-info-make
11378 maybe-install-info-make:
11380 install-info-make: \
11381 configure-make \
11382 info-make
11383 @[ -f ./make/Makefile ] || exit 0; \
11384 r=`${PWD_COMMAND}`; export r; \
11385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11386 $(SET_LIB_PATH) \
11387 for flag in $(EXTRA_HOST_FLAGS); do \
11388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11389 done; \
11390 echo "Doing install-info in make" ; \
11391 (cd make && \
11392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11394 "RANLIB=$${RANLIB}" \
11395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11396 install-info) \
11397 || exit 1
11400 .PHONY: maybe-installcheck-make installcheck-make
11401 maybe-installcheck-make:
11403 installcheck-make: \
11404 configure-make
11405 @[ -f ./make/Makefile ] || exit 0; \
11406 r=`${PWD_COMMAND}`; export r; \
11407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11408 $(SET_LIB_PATH) \
11409 for flag in $(EXTRA_HOST_FLAGS); do \
11410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11411 done; \
11412 echo "Doing installcheck in make" ; \
11413 (cd make && \
11414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11416 "RANLIB=$${RANLIB}" \
11417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11418 installcheck) \
11419 || exit 1
11422 .PHONY: maybe-mostlyclean-make mostlyclean-make
11423 maybe-mostlyclean-make:
11425 mostlyclean-make:
11426 @[ -f ./make/Makefile ] || exit 0; \
11427 r=`${PWD_COMMAND}`; export r; \
11428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11429 $(SET_LIB_PATH) \
11430 for flag in $(EXTRA_HOST_FLAGS); do \
11431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11432 done; \
11433 echo "Doing mostlyclean in make" ; \
11434 (cd make && \
11435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11437 "RANLIB=$${RANLIB}" \
11438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11439 mostlyclean) \
11440 || exit 1
11443 .PHONY: maybe-clean-make clean-make
11444 maybe-clean-make:
11446 clean-make:
11447 @[ -f ./make/Makefile ] || exit 0; \
11448 r=`${PWD_COMMAND}`; export r; \
11449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11450 $(SET_LIB_PATH) \
11451 for flag in $(EXTRA_HOST_FLAGS); do \
11452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11453 done; \
11454 echo "Doing clean in make" ; \
11455 (cd make && \
11456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11458 "RANLIB=$${RANLIB}" \
11459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11460 clean) \
11461 || exit 1
11464 .PHONY: maybe-distclean-make distclean-make
11465 maybe-distclean-make:
11467 distclean-make:
11468 @[ -f ./make/Makefile ] || exit 0; \
11469 r=`${PWD_COMMAND}`; export r; \
11470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11471 $(SET_LIB_PATH) \
11472 for flag in $(EXTRA_HOST_FLAGS); do \
11473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11474 done; \
11475 echo "Doing distclean in make" ; \
11476 (cd make && \
11477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11479 "RANLIB=$${RANLIB}" \
11480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11481 distclean) \
11482 || exit 1
11485 .PHONY: maybe-maintainer-clean-make maintainer-clean-make
11486 maybe-maintainer-clean-make:
11488 maintainer-clean-make:
11489 @[ -f ./make/Makefile ] || exit 0; \
11490 r=`${PWD_COMMAND}`; export r; \
11491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11492 $(SET_LIB_PATH) \
11493 for flag in $(EXTRA_HOST_FLAGS); do \
11494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11495 done; \
11496 echo "Doing maintainer-clean in make" ; \
11497 (cd make && \
11498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11500 "RANLIB=$${RANLIB}" \
11501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11502 maintainer-clean) \
11503 || exit 1
11507 .PHONY: configure-mmalloc maybe-configure-mmalloc
11508 maybe-configure-mmalloc:
11509 configure-mmalloc:
11510 @test ! -f mmalloc/Makefile || exit 0; \
11511 [ -d mmalloc ] || mkdir mmalloc; \
11512 r=`${PWD_COMMAND}`; export r; \
11513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11514 CC="$(CC)"; export CC; \
11515 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11516 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11517 CXX="$(CXX)"; export CXX; \
11518 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11519 AR="$(AR)"; export AR; \
11520 AS="$(AS)"; export AS; \
11521 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11522 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11523 LD="$(LD)"; export LD; \
11524 NM="$(NM)"; export NM; \
11525 RANLIB="$(RANLIB)"; export RANLIB; \
11526 WINDRES="$(WINDRES)"; export WINDRES; \
11527 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11528 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11529 echo Configuring in mmalloc; \
11530 cd mmalloc || exit 1; \
11531 case $(srcdir) in \
11532 \.) \
11533 srcdiroption="--srcdir=."; \
11534 libsrcdir=".";; \
11535 /* | [A-Za-z]:[\\/]*) \
11536 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
11537 libsrcdir="$$s/mmalloc";; \
11538 *) \
11539 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
11540 libsrcdir="$$s/mmalloc";; \
11541 esac; \
11542 $(SHELL) $${libsrcdir}/configure \
11543 $(HOST_CONFIGARGS) $${srcdiroption} \
11544 || exit 1
11546 .PHONY: all-mmalloc maybe-all-mmalloc
11547 maybe-all-mmalloc:
11548 all-mmalloc: configure-mmalloc
11549 @r=`${PWD_COMMAND}`; export r; \
11550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11551 $(SET_LIB_PATH) \
11552 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
11554 .PHONY: check-mmalloc maybe-check-mmalloc
11555 maybe-check-mmalloc:
11557 check-mmalloc:
11560 .PHONY: install-mmalloc maybe-install-mmalloc
11561 maybe-install-mmalloc:
11563 install-mmalloc: installdirs
11564 @r=`${PWD_COMMAND}`; export r; \
11565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11566 $(SET_LIB_PATH) \
11567 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
11570 # Other targets (info, dvi, etc.)
11572 .PHONY: maybe-info-mmalloc info-mmalloc
11573 maybe-info-mmalloc:
11575 info-mmalloc: \
11576 configure-mmalloc
11577 @[ -f ./mmalloc/Makefile ] || exit 0; \
11578 r=`${PWD_COMMAND}`; export r; \
11579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11580 $(SET_LIB_PATH) \
11581 for flag in $(EXTRA_HOST_FLAGS); do \
11582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11583 done; \
11584 echo "Doing info in mmalloc" ; \
11585 (cd mmalloc && \
11586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11588 "RANLIB=$${RANLIB}" \
11589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11590 info) \
11591 || exit 1
11594 .PHONY: maybe-dvi-mmalloc dvi-mmalloc
11595 maybe-dvi-mmalloc:
11597 dvi-mmalloc: \
11598 configure-mmalloc
11599 @[ -f ./mmalloc/Makefile ] || exit 0; \
11600 r=`${PWD_COMMAND}`; export r; \
11601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11602 $(SET_LIB_PATH) \
11603 for flag in $(EXTRA_HOST_FLAGS); do \
11604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11605 done; \
11606 echo "Doing dvi in mmalloc" ; \
11607 (cd mmalloc && \
11608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11610 "RANLIB=$${RANLIB}" \
11611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11612 dvi) \
11613 || exit 1
11616 .PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
11617 maybe-TAGS-mmalloc:
11619 TAGS-mmalloc: \
11620 configure-mmalloc
11621 @[ -f ./mmalloc/Makefile ] || exit 0; \
11622 r=`${PWD_COMMAND}`; export r; \
11623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11624 $(SET_LIB_PATH) \
11625 for flag in $(EXTRA_HOST_FLAGS); do \
11626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11627 done; \
11628 echo "Doing TAGS in mmalloc" ; \
11629 (cd mmalloc && \
11630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11632 "RANLIB=$${RANLIB}" \
11633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11634 TAGS) \
11635 || exit 1
11638 .PHONY: maybe-install-info-mmalloc install-info-mmalloc
11639 maybe-install-info-mmalloc:
11641 install-info-mmalloc: \
11642 configure-mmalloc \
11643 info-mmalloc
11644 @[ -f ./mmalloc/Makefile ] || exit 0; \
11645 r=`${PWD_COMMAND}`; export r; \
11646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11647 $(SET_LIB_PATH) \
11648 for flag in $(EXTRA_HOST_FLAGS); do \
11649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11650 done; \
11651 echo "Doing install-info in mmalloc" ; \
11652 (cd mmalloc && \
11653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11655 "RANLIB=$${RANLIB}" \
11656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11657 install-info) \
11658 || exit 1
11661 .PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
11662 maybe-installcheck-mmalloc:
11664 installcheck-mmalloc: \
11665 configure-mmalloc
11666 @[ -f ./mmalloc/Makefile ] || exit 0; \
11667 r=`${PWD_COMMAND}`; export r; \
11668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11669 $(SET_LIB_PATH) \
11670 for flag in $(EXTRA_HOST_FLAGS); do \
11671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11672 done; \
11673 echo "Doing installcheck in mmalloc" ; \
11674 (cd mmalloc && \
11675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11677 "RANLIB=$${RANLIB}" \
11678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11679 installcheck) \
11680 || exit 1
11683 .PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
11684 maybe-mostlyclean-mmalloc:
11686 mostlyclean-mmalloc:
11687 @[ -f ./mmalloc/Makefile ] || exit 0; \
11688 r=`${PWD_COMMAND}`; export r; \
11689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11690 $(SET_LIB_PATH) \
11691 for flag in $(EXTRA_HOST_FLAGS); do \
11692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11693 done; \
11694 echo "Doing mostlyclean in mmalloc" ; \
11695 (cd mmalloc && \
11696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11698 "RANLIB=$${RANLIB}" \
11699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11700 mostlyclean) \
11701 || exit 1
11704 .PHONY: maybe-clean-mmalloc clean-mmalloc
11705 maybe-clean-mmalloc:
11707 clean-mmalloc:
11708 @[ -f ./mmalloc/Makefile ] || exit 0; \
11709 r=`${PWD_COMMAND}`; export r; \
11710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11711 $(SET_LIB_PATH) \
11712 for flag in $(EXTRA_HOST_FLAGS); do \
11713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11714 done; \
11715 echo "Doing clean in mmalloc" ; \
11716 (cd mmalloc && \
11717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11719 "RANLIB=$${RANLIB}" \
11720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11721 clean) \
11722 || exit 1
11725 .PHONY: maybe-distclean-mmalloc distclean-mmalloc
11726 maybe-distclean-mmalloc:
11728 distclean-mmalloc:
11729 @[ -f ./mmalloc/Makefile ] || exit 0; \
11730 r=`${PWD_COMMAND}`; export r; \
11731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11732 $(SET_LIB_PATH) \
11733 for flag in $(EXTRA_HOST_FLAGS); do \
11734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11735 done; \
11736 echo "Doing distclean in mmalloc" ; \
11737 (cd mmalloc && \
11738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11740 "RANLIB=$${RANLIB}" \
11741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11742 distclean) \
11743 || exit 1
11746 .PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
11747 maybe-maintainer-clean-mmalloc:
11749 maintainer-clean-mmalloc:
11750 @[ -f ./mmalloc/Makefile ] || exit 0; \
11751 r=`${PWD_COMMAND}`; export r; \
11752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11753 $(SET_LIB_PATH) \
11754 for flag in $(EXTRA_HOST_FLAGS); do \
11755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11756 done; \
11757 echo "Doing maintainer-clean in mmalloc" ; \
11758 (cd mmalloc && \
11759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11761 "RANLIB=$${RANLIB}" \
11762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11763 maintainer-clean) \
11764 || exit 1
11768 .PHONY: configure-patch maybe-configure-patch
11769 maybe-configure-patch:
11770 configure-patch:
11771 @test ! -f patch/Makefile || exit 0; \
11772 [ -d patch ] || mkdir patch; \
11773 r=`${PWD_COMMAND}`; export r; \
11774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11775 CC="$(CC)"; export CC; \
11776 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11777 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11778 CXX="$(CXX)"; export CXX; \
11779 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11780 AR="$(AR)"; export AR; \
11781 AS="$(AS)"; export AS; \
11782 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11783 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11784 LD="$(LD)"; export LD; \
11785 NM="$(NM)"; export NM; \
11786 RANLIB="$(RANLIB)"; export RANLIB; \
11787 WINDRES="$(WINDRES)"; export WINDRES; \
11788 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11789 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11790 echo Configuring in patch; \
11791 cd patch || exit 1; \
11792 case $(srcdir) in \
11793 \.) \
11794 srcdiroption="--srcdir=."; \
11795 libsrcdir=".";; \
11796 /* | [A-Za-z]:[\\/]*) \
11797 srcdiroption="--srcdir=$(srcdir)/patch"; \
11798 libsrcdir="$$s/patch";; \
11799 *) \
11800 srcdiroption="--srcdir=../$(srcdir)/patch"; \
11801 libsrcdir="$$s/patch";; \
11802 esac; \
11803 $(SHELL) $${libsrcdir}/configure \
11804 $(HOST_CONFIGARGS) $${srcdiroption} \
11805 || exit 1
11807 .PHONY: all-patch maybe-all-patch
11808 maybe-all-patch:
11809 all-patch: configure-patch
11810 @r=`${PWD_COMMAND}`; export r; \
11811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11812 $(SET_LIB_PATH) \
11813 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
11815 .PHONY: check-patch maybe-check-patch
11816 maybe-check-patch:
11818 check-patch:
11819 @r=`${PWD_COMMAND}`; export r; \
11820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11821 $(SET_LIB_PATH) \
11822 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
11825 .PHONY: install-patch maybe-install-patch
11826 maybe-install-patch:
11828 install-patch: installdirs
11829 @r=`${PWD_COMMAND}`; export r; \
11830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11831 $(SET_LIB_PATH) \
11832 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
11835 # Other targets (info, dvi, etc.)
11837 .PHONY: maybe-info-patch info-patch
11838 maybe-info-patch:
11840 info-patch: \
11841 configure-patch
11842 @[ -f ./patch/Makefile ] || exit 0; \
11843 r=`${PWD_COMMAND}`; export r; \
11844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11845 $(SET_LIB_PATH) \
11846 for flag in $(EXTRA_HOST_FLAGS); do \
11847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11848 done; \
11849 echo "Doing info in patch" ; \
11850 (cd patch && \
11851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11853 "RANLIB=$${RANLIB}" \
11854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11855 info) \
11856 || exit 1
11859 .PHONY: maybe-dvi-patch dvi-patch
11860 maybe-dvi-patch:
11862 dvi-patch: \
11863 configure-patch
11864 @[ -f ./patch/Makefile ] || exit 0; \
11865 r=`${PWD_COMMAND}`; export r; \
11866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11867 $(SET_LIB_PATH) \
11868 for flag in $(EXTRA_HOST_FLAGS); do \
11869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11870 done; \
11871 echo "Doing dvi in patch" ; \
11872 (cd patch && \
11873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11875 "RANLIB=$${RANLIB}" \
11876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11877 dvi) \
11878 || exit 1
11881 .PHONY: maybe-TAGS-patch TAGS-patch
11882 maybe-TAGS-patch:
11884 TAGS-patch: \
11885 configure-patch
11886 @[ -f ./patch/Makefile ] || exit 0; \
11887 r=`${PWD_COMMAND}`; export r; \
11888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11889 $(SET_LIB_PATH) \
11890 for flag in $(EXTRA_HOST_FLAGS); do \
11891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11892 done; \
11893 echo "Doing TAGS in patch" ; \
11894 (cd patch && \
11895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11897 "RANLIB=$${RANLIB}" \
11898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11899 TAGS) \
11900 || exit 1
11903 .PHONY: maybe-install-info-patch install-info-patch
11904 maybe-install-info-patch:
11906 install-info-patch: \
11907 configure-patch \
11908 info-patch
11909 @[ -f ./patch/Makefile ] || exit 0; \
11910 r=`${PWD_COMMAND}`; export r; \
11911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11912 $(SET_LIB_PATH) \
11913 for flag in $(EXTRA_HOST_FLAGS); do \
11914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11915 done; \
11916 echo "Doing install-info in patch" ; \
11917 (cd patch && \
11918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11920 "RANLIB=$${RANLIB}" \
11921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11922 install-info) \
11923 || exit 1
11926 .PHONY: maybe-installcheck-patch installcheck-patch
11927 maybe-installcheck-patch:
11929 installcheck-patch: \
11930 configure-patch
11931 @[ -f ./patch/Makefile ] || exit 0; \
11932 r=`${PWD_COMMAND}`; export r; \
11933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11934 $(SET_LIB_PATH) \
11935 for flag in $(EXTRA_HOST_FLAGS); do \
11936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11937 done; \
11938 echo "Doing installcheck in patch" ; \
11939 (cd patch && \
11940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11942 "RANLIB=$${RANLIB}" \
11943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11944 installcheck) \
11945 || exit 1
11948 .PHONY: maybe-mostlyclean-patch mostlyclean-patch
11949 maybe-mostlyclean-patch:
11951 mostlyclean-patch:
11952 @[ -f ./patch/Makefile ] || exit 0; \
11953 r=`${PWD_COMMAND}`; export r; \
11954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11955 $(SET_LIB_PATH) \
11956 for flag in $(EXTRA_HOST_FLAGS); do \
11957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11958 done; \
11959 echo "Doing mostlyclean in patch" ; \
11960 (cd patch && \
11961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11963 "RANLIB=$${RANLIB}" \
11964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11965 mostlyclean) \
11966 || exit 1
11969 .PHONY: maybe-clean-patch clean-patch
11970 maybe-clean-patch:
11972 clean-patch:
11973 @[ -f ./patch/Makefile ] || exit 0; \
11974 r=`${PWD_COMMAND}`; export r; \
11975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11976 $(SET_LIB_PATH) \
11977 for flag in $(EXTRA_HOST_FLAGS); do \
11978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11979 done; \
11980 echo "Doing clean in patch" ; \
11981 (cd patch && \
11982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11984 "RANLIB=$${RANLIB}" \
11985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11986 clean) \
11987 || exit 1
11990 .PHONY: maybe-distclean-patch distclean-patch
11991 maybe-distclean-patch:
11993 distclean-patch:
11994 @[ -f ./patch/Makefile ] || exit 0; \
11995 r=`${PWD_COMMAND}`; export r; \
11996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11997 $(SET_LIB_PATH) \
11998 for flag in $(EXTRA_HOST_FLAGS); do \
11999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12000 done; \
12001 echo "Doing distclean in patch" ; \
12002 (cd patch && \
12003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12005 "RANLIB=$${RANLIB}" \
12006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12007 distclean) \
12008 || exit 1
12011 .PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
12012 maybe-maintainer-clean-patch:
12014 maintainer-clean-patch:
12015 @[ -f ./patch/Makefile ] || exit 0; \
12016 r=`${PWD_COMMAND}`; export r; \
12017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12018 $(SET_LIB_PATH) \
12019 for flag in $(EXTRA_HOST_FLAGS); do \
12020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12021 done; \
12022 echo "Doing maintainer-clean in patch" ; \
12023 (cd patch && \
12024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12026 "RANLIB=$${RANLIB}" \
12027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12028 maintainer-clean) \
12029 || exit 1
12033 .PHONY: configure-perl maybe-configure-perl
12034 maybe-configure-perl:
12035 configure-perl:
12036 @test ! -f perl/Makefile || exit 0; \
12037 [ -d perl ] || mkdir perl; \
12038 r=`${PWD_COMMAND}`; export r; \
12039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12040 CC="$(CC)"; export CC; \
12041 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12042 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12043 CXX="$(CXX)"; export CXX; \
12044 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12045 AR="$(AR)"; export AR; \
12046 AS="$(AS)"; export AS; \
12047 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12048 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12049 LD="$(LD)"; export LD; \
12050 NM="$(NM)"; export NM; \
12051 RANLIB="$(RANLIB)"; export RANLIB; \
12052 WINDRES="$(WINDRES)"; export WINDRES; \
12053 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12054 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12055 echo Configuring in perl; \
12056 cd perl || exit 1; \
12057 case $(srcdir) in \
12058 \.) \
12059 srcdiroption="--srcdir=."; \
12060 libsrcdir=".";; \
12061 /* | [A-Za-z]:[\\/]*) \
12062 srcdiroption="--srcdir=$(srcdir)/perl"; \
12063 libsrcdir="$$s/perl";; \
12064 *) \
12065 srcdiroption="--srcdir=../$(srcdir)/perl"; \
12066 libsrcdir="$$s/perl";; \
12067 esac; \
12068 $(SHELL) $${libsrcdir}/configure \
12069 $(HOST_CONFIGARGS) $${srcdiroption} \
12070 || exit 1
12072 .PHONY: all-perl maybe-all-perl
12073 maybe-all-perl:
12074 all-perl: configure-perl
12075 @r=`${PWD_COMMAND}`; export r; \
12076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12077 $(SET_LIB_PATH) \
12078 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
12080 .PHONY: check-perl maybe-check-perl
12081 maybe-check-perl:
12083 check-perl:
12084 @r=`${PWD_COMMAND}`; export r; \
12085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12086 $(SET_LIB_PATH) \
12087 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
12090 .PHONY: install-perl maybe-install-perl
12091 maybe-install-perl:
12093 install-perl: installdirs
12094 @r=`${PWD_COMMAND}`; export r; \
12095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12096 $(SET_LIB_PATH) \
12097 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
12100 # Other targets (info, dvi, etc.)
12102 .PHONY: maybe-info-perl info-perl
12103 maybe-info-perl:
12105 info-perl: \
12106 configure-perl
12107 @[ -f ./perl/Makefile ] || exit 0; \
12108 r=`${PWD_COMMAND}`; export r; \
12109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12110 $(SET_LIB_PATH) \
12111 for flag in $(EXTRA_HOST_FLAGS); do \
12112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12113 done; \
12114 echo "Doing info in perl" ; \
12115 (cd perl && \
12116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12118 "RANLIB=$${RANLIB}" \
12119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12120 info) \
12121 || exit 1
12124 .PHONY: maybe-dvi-perl dvi-perl
12125 maybe-dvi-perl:
12127 dvi-perl: \
12128 configure-perl
12129 @[ -f ./perl/Makefile ] || exit 0; \
12130 r=`${PWD_COMMAND}`; export r; \
12131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12132 $(SET_LIB_PATH) \
12133 for flag in $(EXTRA_HOST_FLAGS); do \
12134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12135 done; \
12136 echo "Doing dvi in perl" ; \
12137 (cd perl && \
12138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12140 "RANLIB=$${RANLIB}" \
12141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12142 dvi) \
12143 || exit 1
12146 .PHONY: maybe-TAGS-perl TAGS-perl
12147 maybe-TAGS-perl:
12149 TAGS-perl: \
12150 configure-perl
12151 @[ -f ./perl/Makefile ] || exit 0; \
12152 r=`${PWD_COMMAND}`; export r; \
12153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12154 $(SET_LIB_PATH) \
12155 for flag in $(EXTRA_HOST_FLAGS); do \
12156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12157 done; \
12158 echo "Doing TAGS in perl" ; \
12159 (cd perl && \
12160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12162 "RANLIB=$${RANLIB}" \
12163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12164 TAGS) \
12165 || exit 1
12168 .PHONY: maybe-install-info-perl install-info-perl
12169 maybe-install-info-perl:
12171 install-info-perl: \
12172 configure-perl \
12173 info-perl
12174 @[ -f ./perl/Makefile ] || exit 0; \
12175 r=`${PWD_COMMAND}`; export r; \
12176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12177 $(SET_LIB_PATH) \
12178 for flag in $(EXTRA_HOST_FLAGS); do \
12179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12180 done; \
12181 echo "Doing install-info in perl" ; \
12182 (cd perl && \
12183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12185 "RANLIB=$${RANLIB}" \
12186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12187 install-info) \
12188 || exit 1
12191 .PHONY: maybe-installcheck-perl installcheck-perl
12192 maybe-installcheck-perl:
12194 installcheck-perl: \
12195 configure-perl
12196 @[ -f ./perl/Makefile ] || exit 0; \
12197 r=`${PWD_COMMAND}`; export r; \
12198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12199 $(SET_LIB_PATH) \
12200 for flag in $(EXTRA_HOST_FLAGS); do \
12201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12202 done; \
12203 echo "Doing installcheck in perl" ; \
12204 (cd perl && \
12205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12207 "RANLIB=$${RANLIB}" \
12208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12209 installcheck) \
12210 || exit 1
12213 .PHONY: maybe-mostlyclean-perl mostlyclean-perl
12214 maybe-mostlyclean-perl:
12216 mostlyclean-perl:
12217 @[ -f ./perl/Makefile ] || exit 0; \
12218 r=`${PWD_COMMAND}`; export r; \
12219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12220 $(SET_LIB_PATH) \
12221 for flag in $(EXTRA_HOST_FLAGS); do \
12222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12223 done; \
12224 echo "Doing mostlyclean in perl" ; \
12225 (cd perl && \
12226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12228 "RANLIB=$${RANLIB}" \
12229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12230 mostlyclean) \
12231 || exit 1
12234 .PHONY: maybe-clean-perl clean-perl
12235 maybe-clean-perl:
12237 clean-perl:
12238 @[ -f ./perl/Makefile ] || exit 0; \
12239 r=`${PWD_COMMAND}`; export r; \
12240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12241 $(SET_LIB_PATH) \
12242 for flag in $(EXTRA_HOST_FLAGS); do \
12243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12244 done; \
12245 echo "Doing clean in perl" ; \
12246 (cd perl && \
12247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12249 "RANLIB=$${RANLIB}" \
12250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12251 clean) \
12252 || exit 1
12255 .PHONY: maybe-distclean-perl distclean-perl
12256 maybe-distclean-perl:
12258 distclean-perl:
12259 @[ -f ./perl/Makefile ] || exit 0; \
12260 r=`${PWD_COMMAND}`; export r; \
12261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12262 $(SET_LIB_PATH) \
12263 for flag in $(EXTRA_HOST_FLAGS); do \
12264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12265 done; \
12266 echo "Doing distclean in perl" ; \
12267 (cd perl && \
12268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12270 "RANLIB=$${RANLIB}" \
12271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12272 distclean) \
12273 || exit 1
12276 .PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
12277 maybe-maintainer-clean-perl:
12279 maintainer-clean-perl:
12280 @[ -f ./perl/Makefile ] || exit 0; \
12281 r=`${PWD_COMMAND}`; export r; \
12282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12283 $(SET_LIB_PATH) \
12284 for flag in $(EXTRA_HOST_FLAGS); do \
12285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12286 done; \
12287 echo "Doing maintainer-clean in perl" ; \
12288 (cd perl && \
12289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12291 "RANLIB=$${RANLIB}" \
12292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12293 maintainer-clean) \
12294 || exit 1
12298 .PHONY: configure-prms maybe-configure-prms
12299 maybe-configure-prms:
12300 configure-prms:
12301 @test ! -f prms/Makefile || exit 0; \
12302 [ -d prms ] || mkdir prms; \
12303 r=`${PWD_COMMAND}`; export r; \
12304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12305 CC="$(CC)"; export CC; \
12306 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12307 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12308 CXX="$(CXX)"; export CXX; \
12309 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12310 AR="$(AR)"; export AR; \
12311 AS="$(AS)"; export AS; \
12312 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12313 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12314 LD="$(LD)"; export LD; \
12315 NM="$(NM)"; export NM; \
12316 RANLIB="$(RANLIB)"; export RANLIB; \
12317 WINDRES="$(WINDRES)"; export WINDRES; \
12318 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12319 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12320 echo Configuring in prms; \
12321 cd prms || exit 1; \
12322 case $(srcdir) in \
12323 \.) \
12324 srcdiroption="--srcdir=."; \
12325 libsrcdir=".";; \
12326 /* | [A-Za-z]:[\\/]*) \
12327 srcdiroption="--srcdir=$(srcdir)/prms"; \
12328 libsrcdir="$$s/prms";; \
12329 *) \
12330 srcdiroption="--srcdir=../$(srcdir)/prms"; \
12331 libsrcdir="$$s/prms";; \
12332 esac; \
12333 $(SHELL) $${libsrcdir}/configure \
12334 $(HOST_CONFIGARGS) $${srcdiroption} \
12335 || exit 1
12337 .PHONY: all-prms maybe-all-prms
12338 maybe-all-prms:
12339 all-prms: configure-prms
12340 @r=`${PWD_COMMAND}`; export r; \
12341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12342 $(SET_LIB_PATH) \
12343 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
12345 .PHONY: check-prms maybe-check-prms
12346 maybe-check-prms:
12348 check-prms:
12349 @r=`${PWD_COMMAND}`; export r; \
12350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12351 $(SET_LIB_PATH) \
12352 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
12355 .PHONY: install-prms maybe-install-prms
12356 maybe-install-prms:
12358 install-prms: installdirs
12359 @r=`${PWD_COMMAND}`; export r; \
12360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12361 $(SET_LIB_PATH) \
12362 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
12365 # Other targets (info, dvi, etc.)
12367 .PHONY: maybe-info-prms info-prms
12368 maybe-info-prms:
12370 info-prms: \
12371 configure-prms
12372 @[ -f ./prms/Makefile ] || exit 0; \
12373 r=`${PWD_COMMAND}`; export r; \
12374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12375 $(SET_LIB_PATH) \
12376 for flag in $(EXTRA_HOST_FLAGS); do \
12377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12378 done; \
12379 echo "Doing info in prms" ; \
12380 (cd prms && \
12381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12383 "RANLIB=$${RANLIB}" \
12384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12385 info) \
12386 || exit 1
12389 .PHONY: maybe-dvi-prms dvi-prms
12390 maybe-dvi-prms:
12392 dvi-prms: \
12393 configure-prms
12394 @[ -f ./prms/Makefile ] || exit 0; \
12395 r=`${PWD_COMMAND}`; export r; \
12396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12397 $(SET_LIB_PATH) \
12398 for flag in $(EXTRA_HOST_FLAGS); do \
12399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12400 done; \
12401 echo "Doing dvi in prms" ; \
12402 (cd prms && \
12403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12405 "RANLIB=$${RANLIB}" \
12406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12407 dvi) \
12408 || exit 1
12411 .PHONY: maybe-TAGS-prms TAGS-prms
12412 maybe-TAGS-prms:
12414 TAGS-prms: \
12415 configure-prms
12416 @[ -f ./prms/Makefile ] || exit 0; \
12417 r=`${PWD_COMMAND}`; export r; \
12418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12419 $(SET_LIB_PATH) \
12420 for flag in $(EXTRA_HOST_FLAGS); do \
12421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12422 done; \
12423 echo "Doing TAGS in prms" ; \
12424 (cd prms && \
12425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12427 "RANLIB=$${RANLIB}" \
12428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12429 TAGS) \
12430 || exit 1
12433 .PHONY: maybe-install-info-prms install-info-prms
12434 maybe-install-info-prms:
12436 install-info-prms: \
12437 configure-prms \
12438 info-prms
12439 @[ -f ./prms/Makefile ] || exit 0; \
12440 r=`${PWD_COMMAND}`; export r; \
12441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12442 $(SET_LIB_PATH) \
12443 for flag in $(EXTRA_HOST_FLAGS); do \
12444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12445 done; \
12446 echo "Doing install-info in prms" ; \
12447 (cd prms && \
12448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12450 "RANLIB=$${RANLIB}" \
12451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12452 install-info) \
12453 || exit 1
12456 .PHONY: maybe-installcheck-prms installcheck-prms
12457 maybe-installcheck-prms:
12459 installcheck-prms: \
12460 configure-prms
12461 @[ -f ./prms/Makefile ] || exit 0; \
12462 r=`${PWD_COMMAND}`; export r; \
12463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12464 $(SET_LIB_PATH) \
12465 for flag in $(EXTRA_HOST_FLAGS); do \
12466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12467 done; \
12468 echo "Doing installcheck in prms" ; \
12469 (cd prms && \
12470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12472 "RANLIB=$${RANLIB}" \
12473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12474 installcheck) \
12475 || exit 1
12478 .PHONY: maybe-mostlyclean-prms mostlyclean-prms
12479 maybe-mostlyclean-prms:
12481 mostlyclean-prms:
12482 @[ -f ./prms/Makefile ] || exit 0; \
12483 r=`${PWD_COMMAND}`; export r; \
12484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12485 $(SET_LIB_PATH) \
12486 for flag in $(EXTRA_HOST_FLAGS); do \
12487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12488 done; \
12489 echo "Doing mostlyclean in prms" ; \
12490 (cd prms && \
12491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12493 "RANLIB=$${RANLIB}" \
12494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12495 mostlyclean) \
12496 || exit 1
12499 .PHONY: maybe-clean-prms clean-prms
12500 maybe-clean-prms:
12502 clean-prms:
12503 @[ -f ./prms/Makefile ] || exit 0; \
12504 r=`${PWD_COMMAND}`; export r; \
12505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12506 $(SET_LIB_PATH) \
12507 for flag in $(EXTRA_HOST_FLAGS); do \
12508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12509 done; \
12510 echo "Doing clean in prms" ; \
12511 (cd prms && \
12512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12514 "RANLIB=$${RANLIB}" \
12515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12516 clean) \
12517 || exit 1
12520 .PHONY: maybe-distclean-prms distclean-prms
12521 maybe-distclean-prms:
12523 distclean-prms:
12524 @[ -f ./prms/Makefile ] || exit 0; \
12525 r=`${PWD_COMMAND}`; export r; \
12526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12527 $(SET_LIB_PATH) \
12528 for flag in $(EXTRA_HOST_FLAGS); do \
12529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12530 done; \
12531 echo "Doing distclean in prms" ; \
12532 (cd prms && \
12533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12535 "RANLIB=$${RANLIB}" \
12536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12537 distclean) \
12538 || exit 1
12541 .PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
12542 maybe-maintainer-clean-prms:
12544 maintainer-clean-prms:
12545 @[ -f ./prms/Makefile ] || exit 0; \
12546 r=`${PWD_COMMAND}`; export r; \
12547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12548 $(SET_LIB_PATH) \
12549 for flag in $(EXTRA_HOST_FLAGS); do \
12550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12551 done; \
12552 echo "Doing maintainer-clean in prms" ; \
12553 (cd prms && \
12554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12556 "RANLIB=$${RANLIB}" \
12557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12558 maintainer-clean) \
12559 || exit 1
12563 .PHONY: configure-rcs maybe-configure-rcs
12564 maybe-configure-rcs:
12565 configure-rcs:
12566 @test ! -f rcs/Makefile || exit 0; \
12567 [ -d rcs ] || mkdir rcs; \
12568 r=`${PWD_COMMAND}`; export r; \
12569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12570 CC="$(CC)"; export CC; \
12571 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12572 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12573 CXX="$(CXX)"; export CXX; \
12574 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12575 AR="$(AR)"; export AR; \
12576 AS="$(AS)"; export AS; \
12577 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12578 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12579 LD="$(LD)"; export LD; \
12580 NM="$(NM)"; export NM; \
12581 RANLIB="$(RANLIB)"; export RANLIB; \
12582 WINDRES="$(WINDRES)"; export WINDRES; \
12583 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12584 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12585 echo Configuring in rcs; \
12586 cd rcs || exit 1; \
12587 case $(srcdir) in \
12588 \.) \
12589 srcdiroption="--srcdir=."; \
12590 libsrcdir=".";; \
12591 /* | [A-Za-z]:[\\/]*) \
12592 srcdiroption="--srcdir=$(srcdir)/rcs"; \
12593 libsrcdir="$$s/rcs";; \
12594 *) \
12595 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
12596 libsrcdir="$$s/rcs";; \
12597 esac; \
12598 $(SHELL) $${libsrcdir}/configure \
12599 $(HOST_CONFIGARGS) $${srcdiroption} \
12600 || exit 1
12602 .PHONY: all-rcs maybe-all-rcs
12603 maybe-all-rcs:
12604 all-rcs: configure-rcs
12605 @r=`${PWD_COMMAND}`; export r; \
12606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12607 $(SET_LIB_PATH) \
12608 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
12610 .PHONY: check-rcs maybe-check-rcs
12611 maybe-check-rcs:
12613 check-rcs:
12614 @r=`${PWD_COMMAND}`; export r; \
12615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12616 $(SET_LIB_PATH) \
12617 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
12620 .PHONY: install-rcs maybe-install-rcs
12621 maybe-install-rcs:
12623 install-rcs: installdirs
12624 @r=`${PWD_COMMAND}`; export r; \
12625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12626 $(SET_LIB_PATH) \
12627 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
12630 # Other targets (info, dvi, etc.)
12632 .PHONY: maybe-info-rcs info-rcs
12633 maybe-info-rcs:
12635 info-rcs: \
12636 configure-rcs
12637 @[ -f ./rcs/Makefile ] || exit 0; \
12638 r=`${PWD_COMMAND}`; export r; \
12639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12640 $(SET_LIB_PATH) \
12641 for flag in $(EXTRA_HOST_FLAGS); do \
12642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12643 done; \
12644 echo "Doing info in rcs" ; \
12645 (cd rcs && \
12646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12648 "RANLIB=$${RANLIB}" \
12649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12650 info) \
12651 || exit 1
12654 .PHONY: maybe-dvi-rcs dvi-rcs
12655 maybe-dvi-rcs:
12657 dvi-rcs: \
12658 configure-rcs
12659 @[ -f ./rcs/Makefile ] || exit 0; \
12660 r=`${PWD_COMMAND}`; export r; \
12661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12662 $(SET_LIB_PATH) \
12663 for flag in $(EXTRA_HOST_FLAGS); do \
12664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12665 done; \
12666 echo "Doing dvi in rcs" ; \
12667 (cd rcs && \
12668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12670 "RANLIB=$${RANLIB}" \
12671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12672 dvi) \
12673 || exit 1
12676 .PHONY: maybe-TAGS-rcs TAGS-rcs
12677 maybe-TAGS-rcs:
12679 TAGS-rcs: \
12680 configure-rcs
12681 @[ -f ./rcs/Makefile ] || exit 0; \
12682 r=`${PWD_COMMAND}`; export r; \
12683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12684 $(SET_LIB_PATH) \
12685 for flag in $(EXTRA_HOST_FLAGS); do \
12686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12687 done; \
12688 echo "Doing TAGS in rcs" ; \
12689 (cd rcs && \
12690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12692 "RANLIB=$${RANLIB}" \
12693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12694 TAGS) \
12695 || exit 1
12698 .PHONY: maybe-install-info-rcs install-info-rcs
12699 maybe-install-info-rcs:
12701 install-info-rcs: \
12702 configure-rcs \
12703 info-rcs
12704 @[ -f ./rcs/Makefile ] || exit 0; \
12705 r=`${PWD_COMMAND}`; export r; \
12706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12707 $(SET_LIB_PATH) \
12708 for flag in $(EXTRA_HOST_FLAGS); do \
12709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12710 done; \
12711 echo "Doing install-info in rcs" ; \
12712 (cd rcs && \
12713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12715 "RANLIB=$${RANLIB}" \
12716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12717 install-info) \
12718 || exit 1
12721 .PHONY: maybe-installcheck-rcs installcheck-rcs
12722 maybe-installcheck-rcs:
12724 installcheck-rcs: \
12725 configure-rcs
12726 @[ -f ./rcs/Makefile ] || exit 0; \
12727 r=`${PWD_COMMAND}`; export r; \
12728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12729 $(SET_LIB_PATH) \
12730 for flag in $(EXTRA_HOST_FLAGS); do \
12731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12732 done; \
12733 echo "Doing installcheck in rcs" ; \
12734 (cd rcs && \
12735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12737 "RANLIB=$${RANLIB}" \
12738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12739 installcheck) \
12740 || exit 1
12743 .PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
12744 maybe-mostlyclean-rcs:
12746 mostlyclean-rcs:
12747 @[ -f ./rcs/Makefile ] || exit 0; \
12748 r=`${PWD_COMMAND}`; export r; \
12749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12750 $(SET_LIB_PATH) \
12751 for flag in $(EXTRA_HOST_FLAGS); do \
12752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12753 done; \
12754 echo "Doing mostlyclean in rcs" ; \
12755 (cd rcs && \
12756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12758 "RANLIB=$${RANLIB}" \
12759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12760 mostlyclean) \
12761 || exit 1
12764 .PHONY: maybe-clean-rcs clean-rcs
12765 maybe-clean-rcs:
12767 clean-rcs:
12768 @[ -f ./rcs/Makefile ] || exit 0; \
12769 r=`${PWD_COMMAND}`; export r; \
12770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12771 $(SET_LIB_PATH) \
12772 for flag in $(EXTRA_HOST_FLAGS); do \
12773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12774 done; \
12775 echo "Doing clean in rcs" ; \
12776 (cd rcs && \
12777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12779 "RANLIB=$${RANLIB}" \
12780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12781 clean) \
12782 || exit 1
12785 .PHONY: maybe-distclean-rcs distclean-rcs
12786 maybe-distclean-rcs:
12788 distclean-rcs:
12789 @[ -f ./rcs/Makefile ] || exit 0; \
12790 r=`${PWD_COMMAND}`; export r; \
12791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12792 $(SET_LIB_PATH) \
12793 for flag in $(EXTRA_HOST_FLAGS); do \
12794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12795 done; \
12796 echo "Doing distclean in rcs" ; \
12797 (cd rcs && \
12798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12800 "RANLIB=$${RANLIB}" \
12801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12802 distclean) \
12803 || exit 1
12806 .PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
12807 maybe-maintainer-clean-rcs:
12809 maintainer-clean-rcs:
12810 @[ -f ./rcs/Makefile ] || exit 0; \
12811 r=`${PWD_COMMAND}`; export r; \
12812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12813 $(SET_LIB_PATH) \
12814 for flag in $(EXTRA_HOST_FLAGS); do \
12815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12816 done; \
12817 echo "Doing maintainer-clean in rcs" ; \
12818 (cd rcs && \
12819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12821 "RANLIB=$${RANLIB}" \
12822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12823 maintainer-clean) \
12824 || exit 1
12828 .PHONY: configure-readline maybe-configure-readline
12829 maybe-configure-readline:
12830 configure-readline:
12831 @test ! -f readline/Makefile || exit 0; \
12832 [ -d readline ] || mkdir readline; \
12833 r=`${PWD_COMMAND}`; export r; \
12834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12835 CC="$(CC)"; export CC; \
12836 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12837 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12838 CXX="$(CXX)"; export CXX; \
12839 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12840 AR="$(AR)"; export AR; \
12841 AS="$(AS)"; export AS; \
12842 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12843 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12844 LD="$(LD)"; export LD; \
12845 NM="$(NM)"; export NM; \
12846 RANLIB="$(RANLIB)"; export RANLIB; \
12847 WINDRES="$(WINDRES)"; export WINDRES; \
12848 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12849 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12850 echo Configuring in readline; \
12851 cd readline || exit 1; \
12852 case $(srcdir) in \
12853 \.) \
12854 srcdiroption="--srcdir=."; \
12855 libsrcdir=".";; \
12856 /* | [A-Za-z]:[\\/]*) \
12857 srcdiroption="--srcdir=$(srcdir)/readline"; \
12858 libsrcdir="$$s/readline";; \
12859 *) \
12860 srcdiroption="--srcdir=../$(srcdir)/readline"; \
12861 libsrcdir="$$s/readline";; \
12862 esac; \
12863 $(SHELL) $${libsrcdir}/configure \
12864 $(HOST_CONFIGARGS) $${srcdiroption} \
12865 || exit 1
12867 .PHONY: all-readline maybe-all-readline
12868 maybe-all-readline:
12869 all-readline: configure-readline
12870 @r=`${PWD_COMMAND}`; export r; \
12871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12872 $(SET_LIB_PATH) \
12873 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
12875 .PHONY: check-readline maybe-check-readline
12876 maybe-check-readline:
12878 check-readline:
12879 @r=`${PWD_COMMAND}`; export r; \
12880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12881 $(SET_LIB_PATH) \
12882 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
12885 .PHONY: install-readline maybe-install-readline
12886 maybe-install-readline:
12888 install-readline: installdirs
12889 @r=`${PWD_COMMAND}`; export r; \
12890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12891 $(SET_LIB_PATH) \
12892 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
12895 # Other targets (info, dvi, etc.)
12897 .PHONY: maybe-info-readline info-readline
12898 maybe-info-readline:
12900 info-readline: \
12901 configure-readline
12902 @[ -f ./readline/Makefile ] || exit 0; \
12903 r=`${PWD_COMMAND}`; export r; \
12904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12905 $(SET_LIB_PATH) \
12906 for flag in $(EXTRA_HOST_FLAGS); do \
12907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12908 done; \
12909 echo "Doing info in readline" ; \
12910 (cd readline && \
12911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12913 "RANLIB=$${RANLIB}" \
12914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12915 info) \
12916 || exit 1
12919 .PHONY: maybe-dvi-readline dvi-readline
12920 maybe-dvi-readline:
12922 dvi-readline: \
12923 configure-readline
12924 @[ -f ./readline/Makefile ] || exit 0; \
12925 r=`${PWD_COMMAND}`; export r; \
12926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12927 $(SET_LIB_PATH) \
12928 for flag in $(EXTRA_HOST_FLAGS); do \
12929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12930 done; \
12931 echo "Doing dvi in readline" ; \
12932 (cd readline && \
12933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12935 "RANLIB=$${RANLIB}" \
12936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12937 dvi) \
12938 || exit 1
12941 .PHONY: maybe-TAGS-readline TAGS-readline
12942 maybe-TAGS-readline:
12944 TAGS-readline: \
12945 configure-readline
12946 @[ -f ./readline/Makefile ] || exit 0; \
12947 r=`${PWD_COMMAND}`; export r; \
12948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12949 $(SET_LIB_PATH) \
12950 for flag in $(EXTRA_HOST_FLAGS); do \
12951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12952 done; \
12953 echo "Doing TAGS in readline" ; \
12954 (cd readline && \
12955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12957 "RANLIB=$${RANLIB}" \
12958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12959 TAGS) \
12960 || exit 1
12963 .PHONY: maybe-install-info-readline install-info-readline
12964 maybe-install-info-readline:
12966 install-info-readline: \
12967 configure-readline \
12968 info-readline
12969 @[ -f ./readline/Makefile ] || exit 0; \
12970 r=`${PWD_COMMAND}`; export r; \
12971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12972 $(SET_LIB_PATH) \
12973 for flag in $(EXTRA_HOST_FLAGS); do \
12974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12975 done; \
12976 echo "Doing install-info in readline" ; \
12977 (cd readline && \
12978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12980 "RANLIB=$${RANLIB}" \
12981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12982 install-info) \
12983 || exit 1
12986 .PHONY: maybe-installcheck-readline installcheck-readline
12987 maybe-installcheck-readline:
12989 installcheck-readline: \
12990 configure-readline
12991 @[ -f ./readline/Makefile ] || exit 0; \
12992 r=`${PWD_COMMAND}`; export r; \
12993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12994 $(SET_LIB_PATH) \
12995 for flag in $(EXTRA_HOST_FLAGS); do \
12996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12997 done; \
12998 echo "Doing installcheck in readline" ; \
12999 (cd readline && \
13000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13002 "RANLIB=$${RANLIB}" \
13003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13004 installcheck) \
13005 || exit 1
13008 .PHONY: maybe-mostlyclean-readline mostlyclean-readline
13009 maybe-mostlyclean-readline:
13011 mostlyclean-readline:
13012 @[ -f ./readline/Makefile ] || exit 0; \
13013 r=`${PWD_COMMAND}`; export r; \
13014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13015 $(SET_LIB_PATH) \
13016 for flag in $(EXTRA_HOST_FLAGS); do \
13017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13018 done; \
13019 echo "Doing mostlyclean in readline" ; \
13020 (cd readline && \
13021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13023 "RANLIB=$${RANLIB}" \
13024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13025 mostlyclean) \
13026 || exit 1
13029 .PHONY: maybe-clean-readline clean-readline
13030 maybe-clean-readline:
13032 clean-readline:
13033 @[ -f ./readline/Makefile ] || exit 0; \
13034 r=`${PWD_COMMAND}`; export r; \
13035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13036 $(SET_LIB_PATH) \
13037 for flag in $(EXTRA_HOST_FLAGS); do \
13038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13039 done; \
13040 echo "Doing clean in readline" ; \
13041 (cd readline && \
13042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13044 "RANLIB=$${RANLIB}" \
13045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13046 clean) \
13047 || exit 1
13050 .PHONY: maybe-distclean-readline distclean-readline
13051 maybe-distclean-readline:
13053 distclean-readline:
13054 @[ -f ./readline/Makefile ] || exit 0; \
13055 r=`${PWD_COMMAND}`; export r; \
13056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13057 $(SET_LIB_PATH) \
13058 for flag in $(EXTRA_HOST_FLAGS); do \
13059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13060 done; \
13061 echo "Doing distclean in readline" ; \
13062 (cd readline && \
13063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13065 "RANLIB=$${RANLIB}" \
13066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13067 distclean) \
13068 || exit 1
13071 .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
13072 maybe-maintainer-clean-readline:
13074 maintainer-clean-readline:
13075 @[ -f ./readline/Makefile ] || exit 0; \
13076 r=`${PWD_COMMAND}`; export r; \
13077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13078 $(SET_LIB_PATH) \
13079 for flag in $(EXTRA_HOST_FLAGS); do \
13080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13081 done; \
13082 echo "Doing maintainer-clean in readline" ; \
13083 (cd readline && \
13084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13086 "RANLIB=$${RANLIB}" \
13087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13088 maintainer-clean) \
13089 || exit 1
13093 .PHONY: configure-release maybe-configure-release
13094 maybe-configure-release:
13095 configure-release:
13096 @test ! -f release/Makefile || exit 0; \
13097 [ -d release ] || mkdir release; \
13098 r=`${PWD_COMMAND}`; export r; \
13099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13100 CC="$(CC)"; export CC; \
13101 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13102 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13103 CXX="$(CXX)"; export CXX; \
13104 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13105 AR="$(AR)"; export AR; \
13106 AS="$(AS)"; export AS; \
13107 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13108 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13109 LD="$(LD)"; export LD; \
13110 NM="$(NM)"; export NM; \
13111 RANLIB="$(RANLIB)"; export RANLIB; \
13112 WINDRES="$(WINDRES)"; export WINDRES; \
13113 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13114 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13115 echo Configuring in release; \
13116 cd release || exit 1; \
13117 case $(srcdir) in \
13118 \.) \
13119 srcdiroption="--srcdir=."; \
13120 libsrcdir=".";; \
13121 /* | [A-Za-z]:[\\/]*) \
13122 srcdiroption="--srcdir=$(srcdir)/release"; \
13123 libsrcdir="$$s/release";; \
13124 *) \
13125 srcdiroption="--srcdir=../$(srcdir)/release"; \
13126 libsrcdir="$$s/release";; \
13127 esac; \
13128 $(SHELL) $${libsrcdir}/configure \
13129 $(HOST_CONFIGARGS) $${srcdiroption} \
13130 || exit 1
13132 .PHONY: all-release maybe-all-release
13133 maybe-all-release:
13134 all-release: configure-release
13135 @r=`${PWD_COMMAND}`; export r; \
13136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13137 $(SET_LIB_PATH) \
13138 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
13140 .PHONY: check-release maybe-check-release
13141 maybe-check-release:
13143 check-release:
13146 .PHONY: install-release maybe-install-release
13147 maybe-install-release:
13149 install-release:
13152 # Other targets (info, dvi, etc.)
13154 .PHONY: maybe-info-release info-release
13155 maybe-info-release:
13157 info-release: \
13158 configure-release
13159 @[ -f ./release/Makefile ] || exit 0; \
13160 r=`${PWD_COMMAND}`; export r; \
13161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13162 $(SET_LIB_PATH) \
13163 for flag in $(EXTRA_HOST_FLAGS); do \
13164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13165 done; \
13166 echo "Doing info in release" ; \
13167 (cd release && \
13168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13170 "RANLIB=$${RANLIB}" \
13171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13172 info) \
13173 || exit 1
13176 .PHONY: maybe-dvi-release dvi-release
13177 maybe-dvi-release:
13179 dvi-release: \
13180 configure-release
13181 @[ -f ./release/Makefile ] || exit 0; \
13182 r=`${PWD_COMMAND}`; export r; \
13183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13184 $(SET_LIB_PATH) \
13185 for flag in $(EXTRA_HOST_FLAGS); do \
13186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13187 done; \
13188 echo "Doing dvi in release" ; \
13189 (cd release && \
13190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13192 "RANLIB=$${RANLIB}" \
13193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13194 dvi) \
13195 || exit 1
13198 .PHONY: maybe-TAGS-release TAGS-release
13199 maybe-TAGS-release:
13201 TAGS-release: \
13202 configure-release
13203 @[ -f ./release/Makefile ] || exit 0; \
13204 r=`${PWD_COMMAND}`; export r; \
13205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13206 $(SET_LIB_PATH) \
13207 for flag in $(EXTRA_HOST_FLAGS); do \
13208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13209 done; \
13210 echo "Doing TAGS in release" ; \
13211 (cd release && \
13212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13214 "RANLIB=$${RANLIB}" \
13215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13216 TAGS) \
13217 || exit 1
13220 .PHONY: maybe-install-info-release install-info-release
13221 maybe-install-info-release:
13223 install-info-release: \
13224 configure-release \
13225 info-release
13226 @[ -f ./release/Makefile ] || exit 0; \
13227 r=`${PWD_COMMAND}`; export r; \
13228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13229 $(SET_LIB_PATH) \
13230 for flag in $(EXTRA_HOST_FLAGS); do \
13231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13232 done; \
13233 echo "Doing install-info in release" ; \
13234 (cd release && \
13235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13237 "RANLIB=$${RANLIB}" \
13238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13239 install-info) \
13240 || exit 1
13243 .PHONY: maybe-installcheck-release installcheck-release
13244 maybe-installcheck-release:
13246 installcheck-release: \
13247 configure-release
13248 @[ -f ./release/Makefile ] || exit 0; \
13249 r=`${PWD_COMMAND}`; export r; \
13250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13251 $(SET_LIB_PATH) \
13252 for flag in $(EXTRA_HOST_FLAGS); do \
13253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13254 done; \
13255 echo "Doing installcheck in release" ; \
13256 (cd release && \
13257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13259 "RANLIB=$${RANLIB}" \
13260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13261 installcheck) \
13262 || exit 1
13265 .PHONY: maybe-mostlyclean-release mostlyclean-release
13266 maybe-mostlyclean-release:
13268 mostlyclean-release:
13269 @[ -f ./release/Makefile ] || exit 0; \
13270 r=`${PWD_COMMAND}`; export r; \
13271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13272 $(SET_LIB_PATH) \
13273 for flag in $(EXTRA_HOST_FLAGS); do \
13274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13275 done; \
13276 echo "Doing mostlyclean in release" ; \
13277 (cd release && \
13278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13280 "RANLIB=$${RANLIB}" \
13281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13282 mostlyclean) \
13283 || exit 1
13286 .PHONY: maybe-clean-release clean-release
13287 maybe-clean-release:
13289 clean-release:
13290 @[ -f ./release/Makefile ] || exit 0; \
13291 r=`${PWD_COMMAND}`; export r; \
13292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13293 $(SET_LIB_PATH) \
13294 for flag in $(EXTRA_HOST_FLAGS); do \
13295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13296 done; \
13297 echo "Doing clean in release" ; \
13298 (cd release && \
13299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13301 "RANLIB=$${RANLIB}" \
13302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13303 clean) \
13304 || exit 1
13307 .PHONY: maybe-distclean-release distclean-release
13308 maybe-distclean-release:
13310 distclean-release:
13311 @[ -f ./release/Makefile ] || exit 0; \
13312 r=`${PWD_COMMAND}`; export r; \
13313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13314 $(SET_LIB_PATH) \
13315 for flag in $(EXTRA_HOST_FLAGS); do \
13316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13317 done; \
13318 echo "Doing distclean in release" ; \
13319 (cd release && \
13320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13322 "RANLIB=$${RANLIB}" \
13323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13324 distclean) \
13325 || exit 1
13328 .PHONY: maybe-maintainer-clean-release maintainer-clean-release
13329 maybe-maintainer-clean-release:
13331 maintainer-clean-release:
13332 @[ -f ./release/Makefile ] || exit 0; \
13333 r=`${PWD_COMMAND}`; export r; \
13334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13335 $(SET_LIB_PATH) \
13336 for flag in $(EXTRA_HOST_FLAGS); do \
13337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13338 done; \
13339 echo "Doing maintainer-clean in release" ; \
13340 (cd release && \
13341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13343 "RANLIB=$${RANLIB}" \
13344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13345 maintainer-clean) \
13346 || exit 1
13350 .PHONY: configure-recode maybe-configure-recode
13351 maybe-configure-recode:
13352 configure-recode:
13353 @test ! -f recode/Makefile || exit 0; \
13354 [ -d recode ] || mkdir recode; \
13355 r=`${PWD_COMMAND}`; export r; \
13356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13357 CC="$(CC)"; export CC; \
13358 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13359 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13360 CXX="$(CXX)"; export CXX; \
13361 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13362 AR="$(AR)"; export AR; \
13363 AS="$(AS)"; export AS; \
13364 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13365 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13366 LD="$(LD)"; export LD; \
13367 NM="$(NM)"; export NM; \
13368 RANLIB="$(RANLIB)"; export RANLIB; \
13369 WINDRES="$(WINDRES)"; export WINDRES; \
13370 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13371 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13372 echo Configuring in recode; \
13373 cd recode || exit 1; \
13374 case $(srcdir) in \
13375 \.) \
13376 srcdiroption="--srcdir=."; \
13377 libsrcdir=".";; \
13378 /* | [A-Za-z]:[\\/]*) \
13379 srcdiroption="--srcdir=$(srcdir)/recode"; \
13380 libsrcdir="$$s/recode";; \
13381 *) \
13382 srcdiroption="--srcdir=../$(srcdir)/recode"; \
13383 libsrcdir="$$s/recode";; \
13384 esac; \
13385 $(SHELL) $${libsrcdir}/configure \
13386 $(HOST_CONFIGARGS) $${srcdiroption} \
13387 || exit 1
13389 .PHONY: all-recode maybe-all-recode
13390 maybe-all-recode:
13391 all-recode: configure-recode
13392 @r=`${PWD_COMMAND}`; export r; \
13393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13394 $(SET_LIB_PATH) \
13395 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
13397 .PHONY: check-recode maybe-check-recode
13398 maybe-check-recode:
13400 check-recode:
13401 @r=`${PWD_COMMAND}`; export r; \
13402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13403 $(SET_LIB_PATH) \
13404 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
13407 .PHONY: install-recode maybe-install-recode
13408 maybe-install-recode:
13410 install-recode: installdirs
13411 @r=`${PWD_COMMAND}`; export r; \
13412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13413 $(SET_LIB_PATH) \
13414 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
13417 # Other targets (info, dvi, etc.)
13419 .PHONY: maybe-info-recode info-recode
13420 maybe-info-recode:
13422 info-recode: \
13423 configure-recode
13424 @[ -f ./recode/Makefile ] || exit 0; \
13425 r=`${PWD_COMMAND}`; export r; \
13426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13427 $(SET_LIB_PATH) \
13428 for flag in $(EXTRA_HOST_FLAGS); do \
13429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13430 done; \
13431 echo "Doing info in recode" ; \
13432 (cd recode && \
13433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13435 "RANLIB=$${RANLIB}" \
13436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13437 info) \
13438 || exit 1
13441 .PHONY: maybe-dvi-recode dvi-recode
13442 maybe-dvi-recode:
13444 dvi-recode: \
13445 configure-recode
13446 @[ -f ./recode/Makefile ] || exit 0; \
13447 r=`${PWD_COMMAND}`; export r; \
13448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13449 $(SET_LIB_PATH) \
13450 for flag in $(EXTRA_HOST_FLAGS); do \
13451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13452 done; \
13453 echo "Doing dvi in recode" ; \
13454 (cd recode && \
13455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13457 "RANLIB=$${RANLIB}" \
13458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13459 dvi) \
13460 || exit 1
13463 .PHONY: maybe-TAGS-recode TAGS-recode
13464 maybe-TAGS-recode:
13466 TAGS-recode: \
13467 configure-recode
13468 @[ -f ./recode/Makefile ] || exit 0; \
13469 r=`${PWD_COMMAND}`; export r; \
13470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13471 $(SET_LIB_PATH) \
13472 for flag in $(EXTRA_HOST_FLAGS); do \
13473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13474 done; \
13475 echo "Doing TAGS in recode" ; \
13476 (cd recode && \
13477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13479 "RANLIB=$${RANLIB}" \
13480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13481 TAGS) \
13482 || exit 1
13485 .PHONY: maybe-install-info-recode install-info-recode
13486 maybe-install-info-recode:
13488 install-info-recode: \
13489 configure-recode \
13490 info-recode
13491 @[ -f ./recode/Makefile ] || exit 0; \
13492 r=`${PWD_COMMAND}`; export r; \
13493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13494 $(SET_LIB_PATH) \
13495 for flag in $(EXTRA_HOST_FLAGS); do \
13496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13497 done; \
13498 echo "Doing install-info in recode" ; \
13499 (cd recode && \
13500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13502 "RANLIB=$${RANLIB}" \
13503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13504 install-info) \
13505 || exit 1
13508 .PHONY: maybe-installcheck-recode installcheck-recode
13509 maybe-installcheck-recode:
13511 installcheck-recode: \
13512 configure-recode
13513 @[ -f ./recode/Makefile ] || exit 0; \
13514 r=`${PWD_COMMAND}`; export r; \
13515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13516 $(SET_LIB_PATH) \
13517 for flag in $(EXTRA_HOST_FLAGS); do \
13518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13519 done; \
13520 echo "Doing installcheck in recode" ; \
13521 (cd recode && \
13522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13524 "RANLIB=$${RANLIB}" \
13525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13526 installcheck) \
13527 || exit 1
13530 .PHONY: maybe-mostlyclean-recode mostlyclean-recode
13531 maybe-mostlyclean-recode:
13533 mostlyclean-recode:
13534 @[ -f ./recode/Makefile ] || exit 0; \
13535 r=`${PWD_COMMAND}`; export r; \
13536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13537 $(SET_LIB_PATH) \
13538 for flag in $(EXTRA_HOST_FLAGS); do \
13539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13540 done; \
13541 echo "Doing mostlyclean in recode" ; \
13542 (cd recode && \
13543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13545 "RANLIB=$${RANLIB}" \
13546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13547 mostlyclean) \
13548 || exit 1
13551 .PHONY: maybe-clean-recode clean-recode
13552 maybe-clean-recode:
13554 clean-recode:
13555 @[ -f ./recode/Makefile ] || exit 0; \
13556 r=`${PWD_COMMAND}`; export r; \
13557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13558 $(SET_LIB_PATH) \
13559 for flag in $(EXTRA_HOST_FLAGS); do \
13560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13561 done; \
13562 echo "Doing clean in recode" ; \
13563 (cd recode && \
13564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13566 "RANLIB=$${RANLIB}" \
13567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13568 clean) \
13569 || exit 1
13572 .PHONY: maybe-distclean-recode distclean-recode
13573 maybe-distclean-recode:
13575 distclean-recode:
13576 @[ -f ./recode/Makefile ] || exit 0; \
13577 r=`${PWD_COMMAND}`; export r; \
13578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13579 $(SET_LIB_PATH) \
13580 for flag in $(EXTRA_HOST_FLAGS); do \
13581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13582 done; \
13583 echo "Doing distclean in recode" ; \
13584 (cd recode && \
13585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13587 "RANLIB=$${RANLIB}" \
13588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13589 distclean) \
13590 || exit 1
13593 .PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
13594 maybe-maintainer-clean-recode:
13596 maintainer-clean-recode:
13597 @[ -f ./recode/Makefile ] || exit 0; \
13598 r=`${PWD_COMMAND}`; export r; \
13599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13600 $(SET_LIB_PATH) \
13601 for flag in $(EXTRA_HOST_FLAGS); do \
13602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13603 done; \
13604 echo "Doing maintainer-clean in recode" ; \
13605 (cd recode && \
13606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13608 "RANLIB=$${RANLIB}" \
13609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13610 maintainer-clean) \
13611 || exit 1
13615 .PHONY: configure-sed maybe-configure-sed
13616 maybe-configure-sed:
13617 configure-sed:
13618 @test ! -f sed/Makefile || exit 0; \
13619 [ -d sed ] || mkdir sed; \
13620 r=`${PWD_COMMAND}`; export r; \
13621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13622 CC="$(CC)"; export CC; \
13623 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13624 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13625 CXX="$(CXX)"; export CXX; \
13626 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13627 AR="$(AR)"; export AR; \
13628 AS="$(AS)"; export AS; \
13629 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13630 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13631 LD="$(LD)"; export LD; \
13632 NM="$(NM)"; export NM; \
13633 RANLIB="$(RANLIB)"; export RANLIB; \
13634 WINDRES="$(WINDRES)"; export WINDRES; \
13635 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13636 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13637 echo Configuring in sed; \
13638 cd sed || exit 1; \
13639 case $(srcdir) in \
13640 \.) \
13641 srcdiroption="--srcdir=."; \
13642 libsrcdir=".";; \
13643 /* | [A-Za-z]:[\\/]*) \
13644 srcdiroption="--srcdir=$(srcdir)/sed"; \
13645 libsrcdir="$$s/sed";; \
13646 *) \
13647 srcdiroption="--srcdir=../$(srcdir)/sed"; \
13648 libsrcdir="$$s/sed";; \
13649 esac; \
13650 $(SHELL) $${libsrcdir}/configure \
13651 $(HOST_CONFIGARGS) $${srcdiroption} \
13652 || exit 1
13654 .PHONY: all-sed maybe-all-sed
13655 maybe-all-sed:
13656 all-sed: configure-sed
13657 @r=`${PWD_COMMAND}`; export r; \
13658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13659 $(SET_LIB_PATH) \
13660 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
13662 .PHONY: check-sed maybe-check-sed
13663 maybe-check-sed:
13665 check-sed:
13666 @r=`${PWD_COMMAND}`; export r; \
13667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13668 $(SET_LIB_PATH) \
13669 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
13672 .PHONY: install-sed maybe-install-sed
13673 maybe-install-sed:
13675 install-sed: installdirs
13676 @r=`${PWD_COMMAND}`; export r; \
13677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13678 $(SET_LIB_PATH) \
13679 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
13682 # Other targets (info, dvi, etc.)
13684 .PHONY: maybe-info-sed info-sed
13685 maybe-info-sed:
13687 info-sed: \
13688 configure-sed
13689 @[ -f ./sed/Makefile ] || exit 0; \
13690 r=`${PWD_COMMAND}`; export r; \
13691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13692 $(SET_LIB_PATH) \
13693 for flag in $(EXTRA_HOST_FLAGS); do \
13694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13695 done; \
13696 echo "Doing info in sed" ; \
13697 (cd sed && \
13698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13700 "RANLIB=$${RANLIB}" \
13701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13702 info) \
13703 || exit 1
13706 .PHONY: maybe-dvi-sed dvi-sed
13707 maybe-dvi-sed:
13709 dvi-sed: \
13710 configure-sed
13711 @[ -f ./sed/Makefile ] || exit 0; \
13712 r=`${PWD_COMMAND}`; export r; \
13713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13714 $(SET_LIB_PATH) \
13715 for flag in $(EXTRA_HOST_FLAGS); do \
13716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13717 done; \
13718 echo "Doing dvi in sed" ; \
13719 (cd sed && \
13720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13722 "RANLIB=$${RANLIB}" \
13723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13724 dvi) \
13725 || exit 1
13728 .PHONY: maybe-TAGS-sed TAGS-sed
13729 maybe-TAGS-sed:
13731 TAGS-sed: \
13732 configure-sed
13733 @[ -f ./sed/Makefile ] || exit 0; \
13734 r=`${PWD_COMMAND}`; export r; \
13735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13736 $(SET_LIB_PATH) \
13737 for flag in $(EXTRA_HOST_FLAGS); do \
13738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13739 done; \
13740 echo "Doing TAGS in sed" ; \
13741 (cd sed && \
13742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13744 "RANLIB=$${RANLIB}" \
13745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13746 TAGS) \
13747 || exit 1
13750 .PHONY: maybe-install-info-sed install-info-sed
13751 maybe-install-info-sed:
13753 install-info-sed: \
13754 configure-sed \
13755 info-sed
13756 @[ -f ./sed/Makefile ] || exit 0; \
13757 r=`${PWD_COMMAND}`; export r; \
13758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13759 $(SET_LIB_PATH) \
13760 for flag in $(EXTRA_HOST_FLAGS); do \
13761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13762 done; \
13763 echo "Doing install-info in sed" ; \
13764 (cd sed && \
13765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13767 "RANLIB=$${RANLIB}" \
13768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13769 install-info) \
13770 || exit 1
13773 .PHONY: maybe-installcheck-sed installcheck-sed
13774 maybe-installcheck-sed:
13776 installcheck-sed: \
13777 configure-sed
13778 @[ -f ./sed/Makefile ] || exit 0; \
13779 r=`${PWD_COMMAND}`; export r; \
13780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13781 $(SET_LIB_PATH) \
13782 for flag in $(EXTRA_HOST_FLAGS); do \
13783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13784 done; \
13785 echo "Doing installcheck in sed" ; \
13786 (cd sed && \
13787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13789 "RANLIB=$${RANLIB}" \
13790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13791 installcheck) \
13792 || exit 1
13795 .PHONY: maybe-mostlyclean-sed mostlyclean-sed
13796 maybe-mostlyclean-sed:
13798 mostlyclean-sed:
13799 @[ -f ./sed/Makefile ] || exit 0; \
13800 r=`${PWD_COMMAND}`; export r; \
13801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13802 $(SET_LIB_PATH) \
13803 for flag in $(EXTRA_HOST_FLAGS); do \
13804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13805 done; \
13806 echo "Doing mostlyclean in sed" ; \
13807 (cd sed && \
13808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13810 "RANLIB=$${RANLIB}" \
13811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13812 mostlyclean) \
13813 || exit 1
13816 .PHONY: maybe-clean-sed clean-sed
13817 maybe-clean-sed:
13819 clean-sed:
13820 @[ -f ./sed/Makefile ] || exit 0; \
13821 r=`${PWD_COMMAND}`; export r; \
13822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13823 $(SET_LIB_PATH) \
13824 for flag in $(EXTRA_HOST_FLAGS); do \
13825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13826 done; \
13827 echo "Doing clean in sed" ; \
13828 (cd sed && \
13829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13831 "RANLIB=$${RANLIB}" \
13832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13833 clean) \
13834 || exit 1
13837 .PHONY: maybe-distclean-sed distclean-sed
13838 maybe-distclean-sed:
13840 distclean-sed:
13841 @[ -f ./sed/Makefile ] || exit 0; \
13842 r=`${PWD_COMMAND}`; export r; \
13843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13844 $(SET_LIB_PATH) \
13845 for flag in $(EXTRA_HOST_FLAGS); do \
13846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13847 done; \
13848 echo "Doing distclean in sed" ; \
13849 (cd sed && \
13850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13852 "RANLIB=$${RANLIB}" \
13853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13854 distclean) \
13855 || exit 1
13858 .PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
13859 maybe-maintainer-clean-sed:
13861 maintainer-clean-sed:
13862 @[ -f ./sed/Makefile ] || exit 0; \
13863 r=`${PWD_COMMAND}`; export r; \
13864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13865 $(SET_LIB_PATH) \
13866 for flag in $(EXTRA_HOST_FLAGS); do \
13867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13868 done; \
13869 echo "Doing maintainer-clean in sed" ; \
13870 (cd sed && \
13871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13873 "RANLIB=$${RANLIB}" \
13874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13875 maintainer-clean) \
13876 || exit 1
13880 .PHONY: configure-send-pr maybe-configure-send-pr
13881 maybe-configure-send-pr:
13882 configure-send-pr:
13883 @test ! -f send-pr/Makefile || exit 0; \
13884 [ -d send-pr ] || mkdir send-pr; \
13885 r=`${PWD_COMMAND}`; export r; \
13886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13887 CC="$(CC)"; export CC; \
13888 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13889 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13890 CXX="$(CXX)"; export CXX; \
13891 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13892 AR="$(AR)"; export AR; \
13893 AS="$(AS)"; export AS; \
13894 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13895 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13896 LD="$(LD)"; export LD; \
13897 NM="$(NM)"; export NM; \
13898 RANLIB="$(RANLIB)"; export RANLIB; \
13899 WINDRES="$(WINDRES)"; export WINDRES; \
13900 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13901 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13902 echo Configuring in send-pr; \
13903 cd send-pr || exit 1; \
13904 case $(srcdir) in \
13905 \.) \
13906 srcdiroption="--srcdir=."; \
13907 libsrcdir=".";; \
13908 /* | [A-Za-z]:[\\/]*) \
13909 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
13910 libsrcdir="$$s/send-pr";; \
13911 *) \
13912 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
13913 libsrcdir="$$s/send-pr";; \
13914 esac; \
13915 $(SHELL) $${libsrcdir}/configure \
13916 $(HOST_CONFIGARGS) $${srcdiroption} \
13917 || exit 1
13919 .PHONY: all-send-pr maybe-all-send-pr
13920 maybe-all-send-pr:
13921 all-send-pr: configure-send-pr
13922 @r=`${PWD_COMMAND}`; export r; \
13923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13924 $(SET_LIB_PATH) \
13925 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
13927 .PHONY: check-send-pr maybe-check-send-pr
13928 maybe-check-send-pr:
13930 check-send-pr:
13931 @r=`${PWD_COMMAND}`; export r; \
13932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13933 $(SET_LIB_PATH) \
13934 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
13937 .PHONY: install-send-pr maybe-install-send-pr
13938 maybe-install-send-pr:
13940 install-send-pr: installdirs
13941 @r=`${PWD_COMMAND}`; export r; \
13942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13943 $(SET_LIB_PATH) \
13944 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
13947 # Other targets (info, dvi, etc.)
13949 .PHONY: maybe-info-send-pr info-send-pr
13950 maybe-info-send-pr:
13952 info-send-pr: \
13953 configure-send-pr
13954 @[ -f ./send-pr/Makefile ] || exit 0; \
13955 r=`${PWD_COMMAND}`; export r; \
13956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13957 $(SET_LIB_PATH) \
13958 for flag in $(EXTRA_HOST_FLAGS); do \
13959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13960 done; \
13961 echo "Doing info in send-pr" ; \
13962 (cd send-pr && \
13963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13965 "RANLIB=$${RANLIB}" \
13966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13967 info) \
13968 || exit 1
13971 .PHONY: maybe-dvi-send-pr dvi-send-pr
13972 maybe-dvi-send-pr:
13974 dvi-send-pr: \
13975 configure-send-pr
13976 @[ -f ./send-pr/Makefile ] || exit 0; \
13977 r=`${PWD_COMMAND}`; export r; \
13978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13979 $(SET_LIB_PATH) \
13980 for flag in $(EXTRA_HOST_FLAGS); do \
13981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13982 done; \
13983 echo "Doing dvi in send-pr" ; \
13984 (cd send-pr && \
13985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13987 "RANLIB=$${RANLIB}" \
13988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13989 dvi) \
13990 || exit 1
13993 .PHONY: maybe-TAGS-send-pr TAGS-send-pr
13994 maybe-TAGS-send-pr:
13996 TAGS-send-pr: \
13997 configure-send-pr
13998 @[ -f ./send-pr/Makefile ] || exit 0; \
13999 r=`${PWD_COMMAND}`; export r; \
14000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14001 $(SET_LIB_PATH) \
14002 for flag in $(EXTRA_HOST_FLAGS); do \
14003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14004 done; \
14005 echo "Doing TAGS in send-pr" ; \
14006 (cd send-pr && \
14007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14009 "RANLIB=$${RANLIB}" \
14010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14011 TAGS) \
14012 || exit 1
14015 .PHONY: maybe-install-info-send-pr install-info-send-pr
14016 maybe-install-info-send-pr:
14018 install-info-send-pr: \
14019 configure-send-pr \
14020 info-send-pr
14021 @[ -f ./send-pr/Makefile ] || exit 0; \
14022 r=`${PWD_COMMAND}`; export r; \
14023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14024 $(SET_LIB_PATH) \
14025 for flag in $(EXTRA_HOST_FLAGS); do \
14026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14027 done; \
14028 echo "Doing install-info in send-pr" ; \
14029 (cd send-pr && \
14030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14032 "RANLIB=$${RANLIB}" \
14033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14034 install-info) \
14035 || exit 1
14038 .PHONY: maybe-installcheck-send-pr installcheck-send-pr
14039 maybe-installcheck-send-pr:
14041 installcheck-send-pr: \
14042 configure-send-pr
14043 @[ -f ./send-pr/Makefile ] || exit 0; \
14044 r=`${PWD_COMMAND}`; export r; \
14045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14046 $(SET_LIB_PATH) \
14047 for flag in $(EXTRA_HOST_FLAGS); do \
14048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14049 done; \
14050 echo "Doing installcheck in send-pr" ; \
14051 (cd send-pr && \
14052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14054 "RANLIB=$${RANLIB}" \
14055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14056 installcheck) \
14057 || exit 1
14060 .PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
14061 maybe-mostlyclean-send-pr:
14063 mostlyclean-send-pr:
14064 @[ -f ./send-pr/Makefile ] || exit 0; \
14065 r=`${PWD_COMMAND}`; export r; \
14066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14067 $(SET_LIB_PATH) \
14068 for flag in $(EXTRA_HOST_FLAGS); do \
14069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14070 done; \
14071 echo "Doing mostlyclean in send-pr" ; \
14072 (cd send-pr && \
14073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14075 "RANLIB=$${RANLIB}" \
14076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14077 mostlyclean) \
14078 || exit 1
14081 .PHONY: maybe-clean-send-pr clean-send-pr
14082 maybe-clean-send-pr:
14084 clean-send-pr:
14085 @[ -f ./send-pr/Makefile ] || exit 0; \
14086 r=`${PWD_COMMAND}`; export r; \
14087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14088 $(SET_LIB_PATH) \
14089 for flag in $(EXTRA_HOST_FLAGS); do \
14090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14091 done; \
14092 echo "Doing clean in send-pr" ; \
14093 (cd send-pr && \
14094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14096 "RANLIB=$${RANLIB}" \
14097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14098 clean) \
14099 || exit 1
14102 .PHONY: maybe-distclean-send-pr distclean-send-pr
14103 maybe-distclean-send-pr:
14105 distclean-send-pr:
14106 @[ -f ./send-pr/Makefile ] || exit 0; \
14107 r=`${PWD_COMMAND}`; export r; \
14108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14109 $(SET_LIB_PATH) \
14110 for flag in $(EXTRA_HOST_FLAGS); do \
14111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14112 done; \
14113 echo "Doing distclean in send-pr" ; \
14114 (cd send-pr && \
14115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14117 "RANLIB=$${RANLIB}" \
14118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14119 distclean) \
14120 || exit 1
14123 .PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
14124 maybe-maintainer-clean-send-pr:
14126 maintainer-clean-send-pr:
14127 @[ -f ./send-pr/Makefile ] || exit 0; \
14128 r=`${PWD_COMMAND}`; export r; \
14129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14130 $(SET_LIB_PATH) \
14131 for flag in $(EXTRA_HOST_FLAGS); do \
14132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14133 done; \
14134 echo "Doing maintainer-clean in send-pr" ; \
14135 (cd send-pr && \
14136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14138 "RANLIB=$${RANLIB}" \
14139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14140 maintainer-clean) \
14141 || exit 1
14145 .PHONY: configure-shellutils maybe-configure-shellutils
14146 maybe-configure-shellutils:
14147 configure-shellutils:
14148 @test ! -f shellutils/Makefile || exit 0; \
14149 [ -d shellutils ] || mkdir shellutils; \
14150 r=`${PWD_COMMAND}`; export r; \
14151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14152 CC="$(CC)"; export CC; \
14153 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14155 CXX="$(CXX)"; export CXX; \
14156 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14157 AR="$(AR)"; export AR; \
14158 AS="$(AS)"; export AS; \
14159 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14160 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14161 LD="$(LD)"; export LD; \
14162 NM="$(NM)"; export NM; \
14163 RANLIB="$(RANLIB)"; export RANLIB; \
14164 WINDRES="$(WINDRES)"; export WINDRES; \
14165 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14166 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14167 echo Configuring in shellutils; \
14168 cd shellutils || exit 1; \
14169 case $(srcdir) in \
14170 \.) \
14171 srcdiroption="--srcdir=."; \
14172 libsrcdir=".";; \
14173 /* | [A-Za-z]:[\\/]*) \
14174 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
14175 libsrcdir="$$s/shellutils";; \
14176 *) \
14177 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
14178 libsrcdir="$$s/shellutils";; \
14179 esac; \
14180 $(SHELL) $${libsrcdir}/configure \
14181 $(HOST_CONFIGARGS) $${srcdiroption} \
14182 || exit 1
14184 .PHONY: all-shellutils maybe-all-shellutils
14185 maybe-all-shellutils:
14186 all-shellutils: configure-shellutils
14187 @r=`${PWD_COMMAND}`; export r; \
14188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14189 $(SET_LIB_PATH) \
14190 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
14192 .PHONY: check-shellutils maybe-check-shellutils
14193 maybe-check-shellutils:
14195 check-shellutils:
14196 @r=`${PWD_COMMAND}`; export r; \
14197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14198 $(SET_LIB_PATH) \
14199 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
14202 .PHONY: install-shellutils maybe-install-shellutils
14203 maybe-install-shellutils:
14205 install-shellutils: installdirs
14206 @r=`${PWD_COMMAND}`; export r; \
14207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14208 $(SET_LIB_PATH) \
14209 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
14212 # Other targets (info, dvi, etc.)
14214 .PHONY: maybe-info-shellutils info-shellutils
14215 maybe-info-shellutils:
14217 info-shellutils: \
14218 configure-shellutils
14219 @[ -f ./shellutils/Makefile ] || exit 0; \
14220 r=`${PWD_COMMAND}`; export r; \
14221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14222 $(SET_LIB_PATH) \
14223 for flag in $(EXTRA_HOST_FLAGS); do \
14224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14225 done; \
14226 echo "Doing info in shellutils" ; \
14227 (cd shellutils && \
14228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14230 "RANLIB=$${RANLIB}" \
14231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14232 info) \
14233 || exit 1
14236 .PHONY: maybe-dvi-shellutils dvi-shellutils
14237 maybe-dvi-shellutils:
14239 dvi-shellutils: \
14240 configure-shellutils
14241 @[ -f ./shellutils/Makefile ] || exit 0; \
14242 r=`${PWD_COMMAND}`; export r; \
14243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14244 $(SET_LIB_PATH) \
14245 for flag in $(EXTRA_HOST_FLAGS); do \
14246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14247 done; \
14248 echo "Doing dvi in shellutils" ; \
14249 (cd shellutils && \
14250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14252 "RANLIB=$${RANLIB}" \
14253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14254 dvi) \
14255 || exit 1
14258 .PHONY: maybe-TAGS-shellutils TAGS-shellutils
14259 maybe-TAGS-shellutils:
14261 TAGS-shellutils: \
14262 configure-shellutils
14263 @[ -f ./shellutils/Makefile ] || exit 0; \
14264 r=`${PWD_COMMAND}`; export r; \
14265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14266 $(SET_LIB_PATH) \
14267 for flag in $(EXTRA_HOST_FLAGS); do \
14268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14269 done; \
14270 echo "Doing TAGS in shellutils" ; \
14271 (cd shellutils && \
14272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14274 "RANLIB=$${RANLIB}" \
14275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14276 TAGS) \
14277 || exit 1
14280 .PHONY: maybe-install-info-shellutils install-info-shellutils
14281 maybe-install-info-shellutils:
14283 install-info-shellutils: \
14284 configure-shellutils \
14285 info-shellutils
14286 @[ -f ./shellutils/Makefile ] || exit 0; \
14287 r=`${PWD_COMMAND}`; export r; \
14288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14289 $(SET_LIB_PATH) \
14290 for flag in $(EXTRA_HOST_FLAGS); do \
14291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14292 done; \
14293 echo "Doing install-info in shellutils" ; \
14294 (cd shellutils && \
14295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14297 "RANLIB=$${RANLIB}" \
14298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14299 install-info) \
14300 || exit 1
14303 .PHONY: maybe-installcheck-shellutils installcheck-shellutils
14304 maybe-installcheck-shellutils:
14306 installcheck-shellutils: \
14307 configure-shellutils
14308 @[ -f ./shellutils/Makefile ] || exit 0; \
14309 r=`${PWD_COMMAND}`; export r; \
14310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14311 $(SET_LIB_PATH) \
14312 for flag in $(EXTRA_HOST_FLAGS); do \
14313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14314 done; \
14315 echo "Doing installcheck in shellutils" ; \
14316 (cd shellutils && \
14317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14319 "RANLIB=$${RANLIB}" \
14320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14321 installcheck) \
14322 || exit 1
14325 .PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
14326 maybe-mostlyclean-shellutils:
14328 mostlyclean-shellutils:
14329 @[ -f ./shellutils/Makefile ] || exit 0; \
14330 r=`${PWD_COMMAND}`; export r; \
14331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14332 $(SET_LIB_PATH) \
14333 for flag in $(EXTRA_HOST_FLAGS); do \
14334 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14335 done; \
14336 echo "Doing mostlyclean in shellutils" ; \
14337 (cd shellutils && \
14338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14340 "RANLIB=$${RANLIB}" \
14341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14342 mostlyclean) \
14343 || exit 1
14346 .PHONY: maybe-clean-shellutils clean-shellutils
14347 maybe-clean-shellutils:
14349 clean-shellutils:
14350 @[ -f ./shellutils/Makefile ] || exit 0; \
14351 r=`${PWD_COMMAND}`; export r; \
14352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14353 $(SET_LIB_PATH) \
14354 for flag in $(EXTRA_HOST_FLAGS); do \
14355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14356 done; \
14357 echo "Doing clean in shellutils" ; \
14358 (cd shellutils && \
14359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14361 "RANLIB=$${RANLIB}" \
14362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14363 clean) \
14364 || exit 1
14367 .PHONY: maybe-distclean-shellutils distclean-shellutils
14368 maybe-distclean-shellutils:
14370 distclean-shellutils:
14371 @[ -f ./shellutils/Makefile ] || exit 0; \
14372 r=`${PWD_COMMAND}`; export r; \
14373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14374 $(SET_LIB_PATH) \
14375 for flag in $(EXTRA_HOST_FLAGS); do \
14376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14377 done; \
14378 echo "Doing distclean in shellutils" ; \
14379 (cd shellutils && \
14380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14382 "RANLIB=$${RANLIB}" \
14383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14384 distclean) \
14385 || exit 1
14388 .PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
14389 maybe-maintainer-clean-shellutils:
14391 maintainer-clean-shellutils:
14392 @[ -f ./shellutils/Makefile ] || exit 0; \
14393 r=`${PWD_COMMAND}`; export r; \
14394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14395 $(SET_LIB_PATH) \
14396 for flag in $(EXTRA_HOST_FLAGS); do \
14397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14398 done; \
14399 echo "Doing maintainer-clean in shellutils" ; \
14400 (cd shellutils && \
14401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14403 "RANLIB=$${RANLIB}" \
14404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14405 maintainer-clean) \
14406 || exit 1
14410 .PHONY: configure-sid maybe-configure-sid
14411 maybe-configure-sid:
14412 configure-sid:
14413 @test ! -f sid/Makefile || exit 0; \
14414 [ -d sid ] || mkdir sid; \
14415 r=`${PWD_COMMAND}`; export r; \
14416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14417 CC="$(CC)"; export CC; \
14418 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14419 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14420 CXX="$(CXX)"; export CXX; \
14421 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14422 AR="$(AR)"; export AR; \
14423 AS="$(AS)"; export AS; \
14424 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14425 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14426 LD="$(LD)"; export LD; \
14427 NM="$(NM)"; export NM; \
14428 RANLIB="$(RANLIB)"; export RANLIB; \
14429 WINDRES="$(WINDRES)"; export WINDRES; \
14430 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14431 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14432 echo Configuring in sid; \
14433 cd sid || exit 1; \
14434 case $(srcdir) in \
14435 \.) \
14436 srcdiroption="--srcdir=."; \
14437 libsrcdir=".";; \
14438 /* | [A-Za-z]:[\\/]*) \
14439 srcdiroption="--srcdir=$(srcdir)/sid"; \
14440 libsrcdir="$$s/sid";; \
14441 *) \
14442 srcdiroption="--srcdir=../$(srcdir)/sid"; \
14443 libsrcdir="$$s/sid";; \
14444 esac; \
14445 $(SHELL) $${libsrcdir}/configure \
14446 $(HOST_CONFIGARGS) $${srcdiroption} \
14447 || exit 1
14449 .PHONY: all-sid maybe-all-sid
14450 maybe-all-sid:
14451 all-sid: configure-sid
14452 @r=`${PWD_COMMAND}`; export r; \
14453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14454 $(SET_LIB_PATH) \
14455 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
14457 .PHONY: check-sid maybe-check-sid
14458 maybe-check-sid:
14460 check-sid:
14461 @r=`${PWD_COMMAND}`; export r; \
14462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14463 $(SET_LIB_PATH) \
14464 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
14467 .PHONY: install-sid maybe-install-sid
14468 maybe-install-sid:
14470 install-sid: installdirs
14471 @r=`${PWD_COMMAND}`; export r; \
14472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14473 $(SET_LIB_PATH) \
14474 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
14477 # Other targets (info, dvi, etc.)
14479 .PHONY: maybe-info-sid info-sid
14480 maybe-info-sid:
14482 info-sid: \
14483 configure-sid
14484 @[ -f ./sid/Makefile ] || exit 0; \
14485 r=`${PWD_COMMAND}`; export r; \
14486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14487 $(SET_LIB_PATH) \
14488 for flag in $(EXTRA_HOST_FLAGS); do \
14489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14490 done; \
14491 echo "Doing info in sid" ; \
14492 (cd sid && \
14493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14495 "RANLIB=$${RANLIB}" \
14496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14497 info) \
14498 || exit 1
14501 .PHONY: maybe-dvi-sid dvi-sid
14502 maybe-dvi-sid:
14504 dvi-sid: \
14505 configure-sid
14506 @[ -f ./sid/Makefile ] || exit 0; \
14507 r=`${PWD_COMMAND}`; export r; \
14508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14509 $(SET_LIB_PATH) \
14510 for flag in $(EXTRA_HOST_FLAGS); do \
14511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14512 done; \
14513 echo "Doing dvi in sid" ; \
14514 (cd sid && \
14515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14517 "RANLIB=$${RANLIB}" \
14518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14519 dvi) \
14520 || exit 1
14523 .PHONY: maybe-TAGS-sid TAGS-sid
14524 maybe-TAGS-sid:
14526 TAGS-sid: \
14527 configure-sid
14528 @[ -f ./sid/Makefile ] || exit 0; \
14529 r=`${PWD_COMMAND}`; export r; \
14530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14531 $(SET_LIB_PATH) \
14532 for flag in $(EXTRA_HOST_FLAGS); do \
14533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14534 done; \
14535 echo "Doing TAGS in sid" ; \
14536 (cd sid && \
14537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14539 "RANLIB=$${RANLIB}" \
14540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14541 TAGS) \
14542 || exit 1
14545 .PHONY: maybe-install-info-sid install-info-sid
14546 maybe-install-info-sid:
14548 install-info-sid: \
14549 configure-sid \
14550 info-sid
14551 @[ -f ./sid/Makefile ] || exit 0; \
14552 r=`${PWD_COMMAND}`; export r; \
14553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14554 $(SET_LIB_PATH) \
14555 for flag in $(EXTRA_HOST_FLAGS); do \
14556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14557 done; \
14558 echo "Doing install-info in sid" ; \
14559 (cd sid && \
14560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14562 "RANLIB=$${RANLIB}" \
14563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14564 install-info) \
14565 || exit 1
14568 .PHONY: maybe-installcheck-sid installcheck-sid
14569 maybe-installcheck-sid:
14571 installcheck-sid: \
14572 configure-sid
14573 @[ -f ./sid/Makefile ] || exit 0; \
14574 r=`${PWD_COMMAND}`; export r; \
14575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14576 $(SET_LIB_PATH) \
14577 for flag in $(EXTRA_HOST_FLAGS); do \
14578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14579 done; \
14580 echo "Doing installcheck in sid" ; \
14581 (cd sid && \
14582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14584 "RANLIB=$${RANLIB}" \
14585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14586 installcheck) \
14587 || exit 1
14590 .PHONY: maybe-mostlyclean-sid mostlyclean-sid
14591 maybe-mostlyclean-sid:
14593 mostlyclean-sid:
14594 @[ -f ./sid/Makefile ] || exit 0; \
14595 r=`${PWD_COMMAND}`; export r; \
14596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14597 $(SET_LIB_PATH) \
14598 for flag in $(EXTRA_HOST_FLAGS); do \
14599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14600 done; \
14601 echo "Doing mostlyclean in sid" ; \
14602 (cd sid && \
14603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14605 "RANLIB=$${RANLIB}" \
14606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14607 mostlyclean) \
14608 || exit 1
14611 .PHONY: maybe-clean-sid clean-sid
14612 maybe-clean-sid:
14614 clean-sid:
14615 @[ -f ./sid/Makefile ] || exit 0; \
14616 r=`${PWD_COMMAND}`; export r; \
14617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14618 $(SET_LIB_PATH) \
14619 for flag in $(EXTRA_HOST_FLAGS); do \
14620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14621 done; \
14622 echo "Doing clean in sid" ; \
14623 (cd sid && \
14624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14626 "RANLIB=$${RANLIB}" \
14627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14628 clean) \
14629 || exit 1
14632 .PHONY: maybe-distclean-sid distclean-sid
14633 maybe-distclean-sid:
14635 distclean-sid:
14636 @[ -f ./sid/Makefile ] || exit 0; \
14637 r=`${PWD_COMMAND}`; export r; \
14638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14639 $(SET_LIB_PATH) \
14640 for flag in $(EXTRA_HOST_FLAGS); do \
14641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14642 done; \
14643 echo "Doing distclean in sid" ; \
14644 (cd sid && \
14645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14647 "RANLIB=$${RANLIB}" \
14648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14649 distclean) \
14650 || exit 1
14653 .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
14654 maybe-maintainer-clean-sid:
14656 maintainer-clean-sid:
14657 @[ -f ./sid/Makefile ] || exit 0; \
14658 r=`${PWD_COMMAND}`; export r; \
14659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14660 $(SET_LIB_PATH) \
14661 for flag in $(EXTRA_HOST_FLAGS); do \
14662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14663 done; \
14664 echo "Doing maintainer-clean in sid" ; \
14665 (cd sid && \
14666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14668 "RANLIB=$${RANLIB}" \
14669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14670 maintainer-clean) \
14671 || exit 1
14675 .PHONY: configure-sim maybe-configure-sim
14676 maybe-configure-sim:
14677 configure-sim:
14678 @test ! -f sim/Makefile || exit 0; \
14679 [ -d sim ] || mkdir sim; \
14680 r=`${PWD_COMMAND}`; export r; \
14681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14682 CC="$(CC)"; export CC; \
14683 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14684 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14685 CXX="$(CXX)"; export CXX; \
14686 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14687 AR="$(AR)"; export AR; \
14688 AS="$(AS)"; export AS; \
14689 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14690 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14691 LD="$(LD)"; export LD; \
14692 NM="$(NM)"; export NM; \
14693 RANLIB="$(RANLIB)"; export RANLIB; \
14694 WINDRES="$(WINDRES)"; export WINDRES; \
14695 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14696 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14697 echo Configuring in sim; \
14698 cd sim || exit 1; \
14699 case $(srcdir) in \
14700 \.) \
14701 srcdiroption="--srcdir=."; \
14702 libsrcdir=".";; \
14703 /* | [A-Za-z]:[\\/]*) \
14704 srcdiroption="--srcdir=$(srcdir)/sim"; \
14705 libsrcdir="$$s/sim";; \
14706 *) \
14707 srcdiroption="--srcdir=../$(srcdir)/sim"; \
14708 libsrcdir="$$s/sim";; \
14709 esac; \
14710 $(SHELL) $${libsrcdir}/configure \
14711 $(HOST_CONFIGARGS) $${srcdiroption} \
14712 || exit 1
14714 .PHONY: all-sim maybe-all-sim
14715 maybe-all-sim:
14716 all-sim: configure-sim
14717 @r=`${PWD_COMMAND}`; export r; \
14718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14719 $(SET_LIB_PATH) \
14720 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
14722 .PHONY: check-sim maybe-check-sim
14723 maybe-check-sim:
14725 check-sim:
14726 @r=`${PWD_COMMAND}`; export r; \
14727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14728 $(SET_LIB_PATH) \
14729 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
14732 .PHONY: install-sim maybe-install-sim
14733 maybe-install-sim:
14735 install-sim: installdirs
14736 @r=`${PWD_COMMAND}`; export r; \
14737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14738 $(SET_LIB_PATH) \
14739 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
14742 # Other targets (info, dvi, etc.)
14744 .PHONY: maybe-info-sim info-sim
14745 maybe-info-sim:
14747 info-sim: \
14748 configure-sim
14749 @[ -f ./sim/Makefile ] || exit 0; \
14750 r=`${PWD_COMMAND}`; export r; \
14751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14752 $(SET_LIB_PATH) \
14753 for flag in $(EXTRA_HOST_FLAGS); do \
14754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14755 done; \
14756 echo "Doing info in sim" ; \
14757 (cd sim && \
14758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14760 "RANLIB=$${RANLIB}" \
14761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14762 info) \
14763 || exit 1
14766 .PHONY: maybe-dvi-sim dvi-sim
14767 maybe-dvi-sim:
14769 dvi-sim: \
14770 configure-sim
14771 @[ -f ./sim/Makefile ] || exit 0; \
14772 r=`${PWD_COMMAND}`; export r; \
14773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14774 $(SET_LIB_PATH) \
14775 for flag in $(EXTRA_HOST_FLAGS); do \
14776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14777 done; \
14778 echo "Doing dvi in sim" ; \
14779 (cd sim && \
14780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14782 "RANLIB=$${RANLIB}" \
14783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14784 dvi) \
14785 || exit 1
14788 .PHONY: maybe-TAGS-sim TAGS-sim
14789 maybe-TAGS-sim:
14791 TAGS-sim: \
14792 configure-sim
14793 @[ -f ./sim/Makefile ] || exit 0; \
14794 r=`${PWD_COMMAND}`; export r; \
14795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14796 $(SET_LIB_PATH) \
14797 for flag in $(EXTRA_HOST_FLAGS); do \
14798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14799 done; \
14800 echo "Doing TAGS in sim" ; \
14801 (cd sim && \
14802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14804 "RANLIB=$${RANLIB}" \
14805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14806 TAGS) \
14807 || exit 1
14810 .PHONY: maybe-install-info-sim install-info-sim
14811 maybe-install-info-sim:
14813 install-info-sim: \
14814 configure-sim \
14815 info-sim
14816 @[ -f ./sim/Makefile ] || exit 0; \
14817 r=`${PWD_COMMAND}`; export r; \
14818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14819 $(SET_LIB_PATH) \
14820 for flag in $(EXTRA_HOST_FLAGS); do \
14821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14822 done; \
14823 echo "Doing install-info in sim" ; \
14824 (cd sim && \
14825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14827 "RANLIB=$${RANLIB}" \
14828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14829 install-info) \
14830 || exit 1
14833 .PHONY: maybe-installcheck-sim installcheck-sim
14834 maybe-installcheck-sim:
14836 installcheck-sim: \
14837 configure-sim
14838 @[ -f ./sim/Makefile ] || exit 0; \
14839 r=`${PWD_COMMAND}`; export r; \
14840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14841 $(SET_LIB_PATH) \
14842 for flag in $(EXTRA_HOST_FLAGS); do \
14843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14844 done; \
14845 echo "Doing installcheck in sim" ; \
14846 (cd sim && \
14847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14849 "RANLIB=$${RANLIB}" \
14850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14851 installcheck) \
14852 || exit 1
14855 .PHONY: maybe-mostlyclean-sim mostlyclean-sim
14856 maybe-mostlyclean-sim:
14858 mostlyclean-sim:
14859 @[ -f ./sim/Makefile ] || exit 0; \
14860 r=`${PWD_COMMAND}`; export r; \
14861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14862 $(SET_LIB_PATH) \
14863 for flag in $(EXTRA_HOST_FLAGS); do \
14864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14865 done; \
14866 echo "Doing mostlyclean in sim" ; \
14867 (cd sim && \
14868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14870 "RANLIB=$${RANLIB}" \
14871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14872 mostlyclean) \
14873 || exit 1
14876 .PHONY: maybe-clean-sim clean-sim
14877 maybe-clean-sim:
14879 clean-sim:
14880 @[ -f ./sim/Makefile ] || exit 0; \
14881 r=`${PWD_COMMAND}`; export r; \
14882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14883 $(SET_LIB_PATH) \
14884 for flag in $(EXTRA_HOST_FLAGS); do \
14885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14886 done; \
14887 echo "Doing clean in sim" ; \
14888 (cd sim && \
14889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14891 "RANLIB=$${RANLIB}" \
14892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14893 clean) \
14894 || exit 1
14897 .PHONY: maybe-distclean-sim distclean-sim
14898 maybe-distclean-sim:
14900 distclean-sim:
14901 @[ -f ./sim/Makefile ] || exit 0; \
14902 r=`${PWD_COMMAND}`; export r; \
14903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14904 $(SET_LIB_PATH) \
14905 for flag in $(EXTRA_HOST_FLAGS); do \
14906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14907 done; \
14908 echo "Doing distclean in sim" ; \
14909 (cd sim && \
14910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14912 "RANLIB=$${RANLIB}" \
14913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14914 distclean) \
14915 || exit 1
14918 .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
14919 maybe-maintainer-clean-sim:
14921 maintainer-clean-sim:
14922 @[ -f ./sim/Makefile ] || exit 0; \
14923 r=`${PWD_COMMAND}`; export r; \
14924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14925 $(SET_LIB_PATH) \
14926 for flag in $(EXTRA_HOST_FLAGS); do \
14927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14928 done; \
14929 echo "Doing maintainer-clean in sim" ; \
14930 (cd sim && \
14931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14933 "RANLIB=$${RANLIB}" \
14934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14935 maintainer-clean) \
14936 || exit 1
14940 .PHONY: configure-tar maybe-configure-tar
14941 maybe-configure-tar:
14942 configure-tar:
14943 @test ! -f tar/Makefile || exit 0; \
14944 [ -d tar ] || mkdir tar; \
14945 r=`${PWD_COMMAND}`; export r; \
14946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14947 CC="$(CC)"; export CC; \
14948 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14949 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14950 CXX="$(CXX)"; export CXX; \
14951 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14952 AR="$(AR)"; export AR; \
14953 AS="$(AS)"; export AS; \
14954 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14955 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14956 LD="$(LD)"; export LD; \
14957 NM="$(NM)"; export NM; \
14958 RANLIB="$(RANLIB)"; export RANLIB; \
14959 WINDRES="$(WINDRES)"; export WINDRES; \
14960 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14961 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14962 echo Configuring in tar; \
14963 cd tar || exit 1; \
14964 case $(srcdir) in \
14965 \.) \
14966 srcdiroption="--srcdir=."; \
14967 libsrcdir=".";; \
14968 /* | [A-Za-z]:[\\/]*) \
14969 srcdiroption="--srcdir=$(srcdir)/tar"; \
14970 libsrcdir="$$s/tar";; \
14971 *) \
14972 srcdiroption="--srcdir=../$(srcdir)/tar"; \
14973 libsrcdir="$$s/tar";; \
14974 esac; \
14975 $(SHELL) $${libsrcdir}/configure \
14976 $(HOST_CONFIGARGS) $${srcdiroption} \
14977 || exit 1
14979 .PHONY: all-tar maybe-all-tar
14980 maybe-all-tar:
14981 all-tar: configure-tar
14982 @r=`${PWD_COMMAND}`; export r; \
14983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14984 $(SET_LIB_PATH) \
14985 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
14987 .PHONY: check-tar maybe-check-tar
14988 maybe-check-tar:
14990 check-tar:
14991 @r=`${PWD_COMMAND}`; export r; \
14992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14993 $(SET_LIB_PATH) \
14994 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
14997 .PHONY: install-tar maybe-install-tar
14998 maybe-install-tar:
15000 install-tar: installdirs
15001 @r=`${PWD_COMMAND}`; export r; \
15002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15003 $(SET_LIB_PATH) \
15004 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
15007 # Other targets (info, dvi, etc.)
15009 .PHONY: maybe-info-tar info-tar
15010 maybe-info-tar:
15012 info-tar: \
15013 configure-tar
15014 @[ -f ./tar/Makefile ] || exit 0; \
15015 r=`${PWD_COMMAND}`; export r; \
15016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15017 $(SET_LIB_PATH) \
15018 for flag in $(EXTRA_HOST_FLAGS); do \
15019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15020 done; \
15021 echo "Doing info in tar" ; \
15022 (cd tar && \
15023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15025 "RANLIB=$${RANLIB}" \
15026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15027 info) \
15028 || exit 1
15031 .PHONY: maybe-dvi-tar dvi-tar
15032 maybe-dvi-tar:
15034 dvi-tar: \
15035 configure-tar
15036 @[ -f ./tar/Makefile ] || exit 0; \
15037 r=`${PWD_COMMAND}`; export r; \
15038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15039 $(SET_LIB_PATH) \
15040 for flag in $(EXTRA_HOST_FLAGS); do \
15041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15042 done; \
15043 echo "Doing dvi in tar" ; \
15044 (cd tar && \
15045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15047 "RANLIB=$${RANLIB}" \
15048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15049 dvi) \
15050 || exit 1
15053 .PHONY: maybe-TAGS-tar TAGS-tar
15054 maybe-TAGS-tar:
15056 TAGS-tar: \
15057 configure-tar
15058 @[ -f ./tar/Makefile ] || exit 0; \
15059 r=`${PWD_COMMAND}`; export r; \
15060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15061 $(SET_LIB_PATH) \
15062 for flag in $(EXTRA_HOST_FLAGS); do \
15063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15064 done; \
15065 echo "Doing TAGS in tar" ; \
15066 (cd tar && \
15067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15069 "RANLIB=$${RANLIB}" \
15070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15071 TAGS) \
15072 || exit 1
15075 .PHONY: maybe-install-info-tar install-info-tar
15076 maybe-install-info-tar:
15078 install-info-tar: \
15079 configure-tar \
15080 info-tar
15081 @[ -f ./tar/Makefile ] || exit 0; \
15082 r=`${PWD_COMMAND}`; export r; \
15083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15084 $(SET_LIB_PATH) \
15085 for flag in $(EXTRA_HOST_FLAGS); do \
15086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15087 done; \
15088 echo "Doing install-info in tar" ; \
15089 (cd tar && \
15090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15092 "RANLIB=$${RANLIB}" \
15093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15094 install-info) \
15095 || exit 1
15098 .PHONY: maybe-installcheck-tar installcheck-tar
15099 maybe-installcheck-tar:
15101 installcheck-tar: \
15102 configure-tar
15103 @[ -f ./tar/Makefile ] || exit 0; \
15104 r=`${PWD_COMMAND}`; export r; \
15105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15106 $(SET_LIB_PATH) \
15107 for flag in $(EXTRA_HOST_FLAGS); do \
15108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15109 done; \
15110 echo "Doing installcheck in tar" ; \
15111 (cd tar && \
15112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15114 "RANLIB=$${RANLIB}" \
15115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15116 installcheck) \
15117 || exit 1
15120 .PHONY: maybe-mostlyclean-tar mostlyclean-tar
15121 maybe-mostlyclean-tar:
15123 mostlyclean-tar:
15124 @[ -f ./tar/Makefile ] || exit 0; \
15125 r=`${PWD_COMMAND}`; export r; \
15126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15127 $(SET_LIB_PATH) \
15128 for flag in $(EXTRA_HOST_FLAGS); do \
15129 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15130 done; \
15131 echo "Doing mostlyclean in tar" ; \
15132 (cd tar && \
15133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15135 "RANLIB=$${RANLIB}" \
15136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15137 mostlyclean) \
15138 || exit 1
15141 .PHONY: maybe-clean-tar clean-tar
15142 maybe-clean-tar:
15144 clean-tar:
15145 @[ -f ./tar/Makefile ] || exit 0; \
15146 r=`${PWD_COMMAND}`; export r; \
15147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15148 $(SET_LIB_PATH) \
15149 for flag in $(EXTRA_HOST_FLAGS); do \
15150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15151 done; \
15152 echo "Doing clean in tar" ; \
15153 (cd tar && \
15154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15156 "RANLIB=$${RANLIB}" \
15157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15158 clean) \
15159 || exit 1
15162 .PHONY: maybe-distclean-tar distclean-tar
15163 maybe-distclean-tar:
15165 distclean-tar:
15166 @[ -f ./tar/Makefile ] || exit 0; \
15167 r=`${PWD_COMMAND}`; export r; \
15168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15169 $(SET_LIB_PATH) \
15170 for flag in $(EXTRA_HOST_FLAGS); do \
15171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15172 done; \
15173 echo "Doing distclean in tar" ; \
15174 (cd tar && \
15175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15177 "RANLIB=$${RANLIB}" \
15178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15179 distclean) \
15180 || exit 1
15183 .PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
15184 maybe-maintainer-clean-tar:
15186 maintainer-clean-tar:
15187 @[ -f ./tar/Makefile ] || exit 0; \
15188 r=`${PWD_COMMAND}`; export r; \
15189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15190 $(SET_LIB_PATH) \
15191 for flag in $(EXTRA_HOST_FLAGS); do \
15192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15193 done; \
15194 echo "Doing maintainer-clean in tar" ; \
15195 (cd tar && \
15196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15198 "RANLIB=$${RANLIB}" \
15199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15200 maintainer-clean) \
15201 || exit 1
15205 .PHONY: configure-texinfo maybe-configure-texinfo
15206 maybe-configure-texinfo:
15207 configure-texinfo:
15208 @test ! -f texinfo/Makefile || exit 0; \
15209 [ -d texinfo ] || mkdir texinfo; \
15210 r=`${PWD_COMMAND}`; export r; \
15211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15212 CC="$(CC)"; export CC; \
15213 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15214 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15215 CXX="$(CXX)"; export CXX; \
15216 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15217 AR="$(AR)"; export AR; \
15218 AS="$(AS)"; export AS; \
15219 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15220 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15221 LD="$(LD)"; export LD; \
15222 NM="$(NM)"; export NM; \
15223 RANLIB="$(RANLIB)"; export RANLIB; \
15224 WINDRES="$(WINDRES)"; export WINDRES; \
15225 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15226 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15227 echo Configuring in texinfo; \
15228 cd texinfo || exit 1; \
15229 case $(srcdir) in \
15230 \.) \
15231 srcdiroption="--srcdir=."; \
15232 libsrcdir=".";; \
15233 /* | [A-Za-z]:[\\/]*) \
15234 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
15235 libsrcdir="$$s/texinfo";; \
15236 *) \
15237 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
15238 libsrcdir="$$s/texinfo";; \
15239 esac; \
15240 $(SHELL) $${libsrcdir}/configure \
15241 $(HOST_CONFIGARGS) $${srcdiroption} \
15242 || exit 1
15244 .PHONY: all-texinfo maybe-all-texinfo
15245 maybe-all-texinfo:
15246 all-texinfo: configure-texinfo
15247 @r=`${PWD_COMMAND}`; export r; \
15248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15249 $(SET_LIB_PATH) \
15250 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
15252 .PHONY: check-texinfo maybe-check-texinfo
15253 maybe-check-texinfo:
15255 check-texinfo:
15256 @r=`${PWD_COMMAND}`; export r; \
15257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15258 $(SET_LIB_PATH) \
15259 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
15262 .PHONY: install-texinfo maybe-install-texinfo
15263 maybe-install-texinfo:
15265 install-texinfo:
15268 # Other targets (info, dvi, etc.)
15270 .PHONY: maybe-info-texinfo info-texinfo
15271 maybe-info-texinfo:
15273 info-texinfo: \
15274 configure-texinfo
15275 @[ -f ./texinfo/Makefile ] || exit 0; \
15276 r=`${PWD_COMMAND}`; export r; \
15277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15278 $(SET_LIB_PATH) \
15279 for flag in $(EXTRA_HOST_FLAGS); do \
15280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15281 done; \
15282 echo "Doing info in texinfo" ; \
15283 (cd texinfo && \
15284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15286 "RANLIB=$${RANLIB}" \
15287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15288 info) \
15289 || exit 1
15292 .PHONY: maybe-dvi-texinfo dvi-texinfo
15293 maybe-dvi-texinfo:
15295 dvi-texinfo: \
15296 configure-texinfo
15297 @[ -f ./texinfo/Makefile ] || exit 0; \
15298 r=`${PWD_COMMAND}`; export r; \
15299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15300 $(SET_LIB_PATH) \
15301 for flag in $(EXTRA_HOST_FLAGS); do \
15302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15303 done; \
15304 echo "Doing dvi in texinfo" ; \
15305 (cd texinfo && \
15306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15308 "RANLIB=$${RANLIB}" \
15309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15310 dvi) \
15311 || exit 1
15314 .PHONY: maybe-TAGS-texinfo TAGS-texinfo
15315 maybe-TAGS-texinfo:
15317 TAGS-texinfo: \
15318 configure-texinfo
15319 @[ -f ./texinfo/Makefile ] || exit 0; \
15320 r=`${PWD_COMMAND}`; export r; \
15321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15322 $(SET_LIB_PATH) \
15323 for flag in $(EXTRA_HOST_FLAGS); do \
15324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15325 done; \
15326 echo "Doing TAGS in texinfo" ; \
15327 (cd texinfo && \
15328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15330 "RANLIB=$${RANLIB}" \
15331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15332 TAGS) \
15333 || exit 1
15336 .PHONY: maybe-install-info-texinfo install-info-texinfo
15337 maybe-install-info-texinfo:
15339 install-info-texinfo: \
15340 configure-texinfo \
15341 info-texinfo
15342 @[ -f ./texinfo/Makefile ] || exit 0; \
15343 r=`${PWD_COMMAND}`; export r; \
15344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15345 $(SET_LIB_PATH) \
15346 for flag in $(EXTRA_HOST_FLAGS); do \
15347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15348 done; \
15349 echo "Doing install-info in texinfo" ; \
15350 (cd texinfo && \
15351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15353 "RANLIB=$${RANLIB}" \
15354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15355 install-info) \
15356 || exit 1
15359 .PHONY: maybe-installcheck-texinfo installcheck-texinfo
15360 maybe-installcheck-texinfo:
15362 installcheck-texinfo: \
15363 configure-texinfo
15364 @[ -f ./texinfo/Makefile ] || exit 0; \
15365 r=`${PWD_COMMAND}`; export r; \
15366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15367 $(SET_LIB_PATH) \
15368 for flag in $(EXTRA_HOST_FLAGS); do \
15369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15370 done; \
15371 echo "Doing installcheck in texinfo" ; \
15372 (cd texinfo && \
15373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15375 "RANLIB=$${RANLIB}" \
15376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15377 installcheck) \
15378 || exit 1
15381 .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
15382 maybe-mostlyclean-texinfo:
15384 mostlyclean-texinfo:
15385 @[ -f ./texinfo/Makefile ] || exit 0; \
15386 r=`${PWD_COMMAND}`; export r; \
15387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15388 $(SET_LIB_PATH) \
15389 for flag in $(EXTRA_HOST_FLAGS); do \
15390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15391 done; \
15392 echo "Doing mostlyclean in texinfo" ; \
15393 (cd texinfo && \
15394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15396 "RANLIB=$${RANLIB}" \
15397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15398 mostlyclean) \
15399 || exit 1
15402 .PHONY: maybe-clean-texinfo clean-texinfo
15403 maybe-clean-texinfo:
15405 clean-texinfo:
15406 @[ -f ./texinfo/Makefile ] || exit 0; \
15407 r=`${PWD_COMMAND}`; export r; \
15408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15409 $(SET_LIB_PATH) \
15410 for flag in $(EXTRA_HOST_FLAGS); do \
15411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15412 done; \
15413 echo "Doing clean in texinfo" ; \
15414 (cd texinfo && \
15415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15417 "RANLIB=$${RANLIB}" \
15418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15419 clean) \
15420 || exit 1
15423 .PHONY: maybe-distclean-texinfo distclean-texinfo
15424 maybe-distclean-texinfo:
15426 distclean-texinfo:
15427 @[ -f ./texinfo/Makefile ] || exit 0; \
15428 r=`${PWD_COMMAND}`; export r; \
15429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15430 $(SET_LIB_PATH) \
15431 for flag in $(EXTRA_HOST_FLAGS); do \
15432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15433 done; \
15434 echo "Doing distclean in texinfo" ; \
15435 (cd texinfo && \
15436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15438 "RANLIB=$${RANLIB}" \
15439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15440 distclean) \
15441 || exit 1
15444 .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
15445 maybe-maintainer-clean-texinfo:
15447 maintainer-clean-texinfo:
15448 @[ -f ./texinfo/Makefile ] || exit 0; \
15449 r=`${PWD_COMMAND}`; export r; \
15450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15451 $(SET_LIB_PATH) \
15452 for flag in $(EXTRA_HOST_FLAGS); do \
15453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15454 done; \
15455 echo "Doing maintainer-clean in texinfo" ; \
15456 (cd texinfo && \
15457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15459 "RANLIB=$${RANLIB}" \
15460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15461 maintainer-clean) \
15462 || exit 1
15466 .PHONY: configure-textutils maybe-configure-textutils
15467 maybe-configure-textutils:
15468 configure-textutils:
15469 @test ! -f textutils/Makefile || exit 0; \
15470 [ -d textutils ] || mkdir textutils; \
15471 r=`${PWD_COMMAND}`; export r; \
15472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15473 CC="$(CC)"; export CC; \
15474 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15475 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15476 CXX="$(CXX)"; export CXX; \
15477 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15478 AR="$(AR)"; export AR; \
15479 AS="$(AS)"; export AS; \
15480 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15481 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15482 LD="$(LD)"; export LD; \
15483 NM="$(NM)"; export NM; \
15484 RANLIB="$(RANLIB)"; export RANLIB; \
15485 WINDRES="$(WINDRES)"; export WINDRES; \
15486 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15487 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15488 echo Configuring in textutils; \
15489 cd textutils || exit 1; \
15490 case $(srcdir) in \
15491 \.) \
15492 srcdiroption="--srcdir=."; \
15493 libsrcdir=".";; \
15494 /* | [A-Za-z]:[\\/]*) \
15495 srcdiroption="--srcdir=$(srcdir)/textutils"; \
15496 libsrcdir="$$s/textutils";; \
15497 *) \
15498 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
15499 libsrcdir="$$s/textutils";; \
15500 esac; \
15501 $(SHELL) $${libsrcdir}/configure \
15502 $(HOST_CONFIGARGS) $${srcdiroption} \
15503 || exit 1
15505 .PHONY: all-textutils maybe-all-textutils
15506 maybe-all-textutils:
15507 all-textutils: configure-textutils
15508 @r=`${PWD_COMMAND}`; export r; \
15509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15510 $(SET_LIB_PATH) \
15511 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
15513 .PHONY: check-textutils maybe-check-textutils
15514 maybe-check-textutils:
15516 check-textutils:
15517 @r=`${PWD_COMMAND}`; export r; \
15518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15519 $(SET_LIB_PATH) \
15520 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
15523 .PHONY: install-textutils maybe-install-textutils
15524 maybe-install-textutils:
15526 install-textutils: installdirs
15527 @r=`${PWD_COMMAND}`; export r; \
15528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15529 $(SET_LIB_PATH) \
15530 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
15533 # Other targets (info, dvi, etc.)
15535 .PHONY: maybe-info-textutils info-textutils
15536 maybe-info-textutils:
15538 info-textutils: \
15539 configure-textutils
15540 @[ -f ./textutils/Makefile ] || exit 0; \
15541 r=`${PWD_COMMAND}`; export r; \
15542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15543 $(SET_LIB_PATH) \
15544 for flag in $(EXTRA_HOST_FLAGS); do \
15545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15546 done; \
15547 echo "Doing info in textutils" ; \
15548 (cd textutils && \
15549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15551 "RANLIB=$${RANLIB}" \
15552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15553 info) \
15554 || exit 1
15557 .PHONY: maybe-dvi-textutils dvi-textutils
15558 maybe-dvi-textutils:
15560 dvi-textutils: \
15561 configure-textutils
15562 @[ -f ./textutils/Makefile ] || exit 0; \
15563 r=`${PWD_COMMAND}`; export r; \
15564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15565 $(SET_LIB_PATH) \
15566 for flag in $(EXTRA_HOST_FLAGS); do \
15567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15568 done; \
15569 echo "Doing dvi in textutils" ; \
15570 (cd textutils && \
15571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15573 "RANLIB=$${RANLIB}" \
15574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15575 dvi) \
15576 || exit 1
15579 .PHONY: maybe-TAGS-textutils TAGS-textutils
15580 maybe-TAGS-textutils:
15582 TAGS-textutils: \
15583 configure-textutils
15584 @[ -f ./textutils/Makefile ] || exit 0; \
15585 r=`${PWD_COMMAND}`; export r; \
15586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15587 $(SET_LIB_PATH) \
15588 for flag in $(EXTRA_HOST_FLAGS); do \
15589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15590 done; \
15591 echo "Doing TAGS in textutils" ; \
15592 (cd textutils && \
15593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15595 "RANLIB=$${RANLIB}" \
15596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15597 TAGS) \
15598 || exit 1
15601 .PHONY: maybe-install-info-textutils install-info-textutils
15602 maybe-install-info-textutils:
15604 install-info-textutils: \
15605 configure-textutils \
15606 info-textutils
15607 @[ -f ./textutils/Makefile ] || exit 0; \
15608 r=`${PWD_COMMAND}`; export r; \
15609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15610 $(SET_LIB_PATH) \
15611 for flag in $(EXTRA_HOST_FLAGS); do \
15612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15613 done; \
15614 echo "Doing install-info in textutils" ; \
15615 (cd textutils && \
15616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15618 "RANLIB=$${RANLIB}" \
15619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15620 install-info) \
15621 || exit 1
15624 .PHONY: maybe-installcheck-textutils installcheck-textutils
15625 maybe-installcheck-textutils:
15627 installcheck-textutils: \
15628 configure-textutils
15629 @[ -f ./textutils/Makefile ] || exit 0; \
15630 r=`${PWD_COMMAND}`; export r; \
15631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15632 $(SET_LIB_PATH) \
15633 for flag in $(EXTRA_HOST_FLAGS); do \
15634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15635 done; \
15636 echo "Doing installcheck in textutils" ; \
15637 (cd textutils && \
15638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15640 "RANLIB=$${RANLIB}" \
15641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15642 installcheck) \
15643 || exit 1
15646 .PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
15647 maybe-mostlyclean-textutils:
15649 mostlyclean-textutils:
15650 @[ -f ./textutils/Makefile ] || exit 0; \
15651 r=`${PWD_COMMAND}`; export r; \
15652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15653 $(SET_LIB_PATH) \
15654 for flag in $(EXTRA_HOST_FLAGS); do \
15655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15656 done; \
15657 echo "Doing mostlyclean in textutils" ; \
15658 (cd textutils && \
15659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15661 "RANLIB=$${RANLIB}" \
15662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15663 mostlyclean) \
15664 || exit 1
15667 .PHONY: maybe-clean-textutils clean-textutils
15668 maybe-clean-textutils:
15670 clean-textutils:
15671 @[ -f ./textutils/Makefile ] || exit 0; \
15672 r=`${PWD_COMMAND}`; export r; \
15673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15674 $(SET_LIB_PATH) \
15675 for flag in $(EXTRA_HOST_FLAGS); do \
15676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15677 done; \
15678 echo "Doing clean in textutils" ; \
15679 (cd textutils && \
15680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15682 "RANLIB=$${RANLIB}" \
15683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15684 clean) \
15685 || exit 1
15688 .PHONY: maybe-distclean-textutils distclean-textutils
15689 maybe-distclean-textutils:
15691 distclean-textutils:
15692 @[ -f ./textutils/Makefile ] || exit 0; \
15693 r=`${PWD_COMMAND}`; export r; \
15694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15695 $(SET_LIB_PATH) \
15696 for flag in $(EXTRA_HOST_FLAGS); do \
15697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15698 done; \
15699 echo "Doing distclean in textutils" ; \
15700 (cd textutils && \
15701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15703 "RANLIB=$${RANLIB}" \
15704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15705 distclean) \
15706 || exit 1
15709 .PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
15710 maybe-maintainer-clean-textutils:
15712 maintainer-clean-textutils:
15713 @[ -f ./textutils/Makefile ] || exit 0; \
15714 r=`${PWD_COMMAND}`; export r; \
15715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15716 $(SET_LIB_PATH) \
15717 for flag in $(EXTRA_HOST_FLAGS); do \
15718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15719 done; \
15720 echo "Doing maintainer-clean in textutils" ; \
15721 (cd textutils && \
15722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15724 "RANLIB=$${RANLIB}" \
15725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15726 maintainer-clean) \
15727 || exit 1
15731 .PHONY: configure-time maybe-configure-time
15732 maybe-configure-time:
15733 configure-time:
15734 @test ! -f time/Makefile || exit 0; \
15735 [ -d time ] || mkdir time; \
15736 r=`${PWD_COMMAND}`; export r; \
15737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15738 CC="$(CC)"; export CC; \
15739 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15740 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15741 CXX="$(CXX)"; export CXX; \
15742 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15743 AR="$(AR)"; export AR; \
15744 AS="$(AS)"; export AS; \
15745 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15746 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15747 LD="$(LD)"; export LD; \
15748 NM="$(NM)"; export NM; \
15749 RANLIB="$(RANLIB)"; export RANLIB; \
15750 WINDRES="$(WINDRES)"; export WINDRES; \
15751 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15752 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15753 echo Configuring in time; \
15754 cd time || exit 1; \
15755 case $(srcdir) in \
15756 \.) \
15757 srcdiroption="--srcdir=."; \
15758 libsrcdir=".";; \
15759 /* | [A-Za-z]:[\\/]*) \
15760 srcdiroption="--srcdir=$(srcdir)/time"; \
15761 libsrcdir="$$s/time";; \
15762 *) \
15763 srcdiroption="--srcdir=../$(srcdir)/time"; \
15764 libsrcdir="$$s/time";; \
15765 esac; \
15766 $(SHELL) $${libsrcdir}/configure \
15767 $(HOST_CONFIGARGS) $${srcdiroption} \
15768 || exit 1
15770 .PHONY: all-time maybe-all-time
15771 maybe-all-time:
15772 all-time: configure-time
15773 @r=`${PWD_COMMAND}`; export r; \
15774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15775 $(SET_LIB_PATH) \
15776 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
15778 .PHONY: check-time maybe-check-time
15779 maybe-check-time:
15781 check-time:
15782 @r=`${PWD_COMMAND}`; export r; \
15783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15784 $(SET_LIB_PATH) \
15785 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
15788 .PHONY: install-time maybe-install-time
15789 maybe-install-time:
15791 install-time: installdirs
15792 @r=`${PWD_COMMAND}`; export r; \
15793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15794 $(SET_LIB_PATH) \
15795 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
15798 # Other targets (info, dvi, etc.)
15800 .PHONY: maybe-info-time info-time
15801 maybe-info-time:
15803 info-time: \
15804 configure-time
15805 @[ -f ./time/Makefile ] || exit 0; \
15806 r=`${PWD_COMMAND}`; export r; \
15807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15808 $(SET_LIB_PATH) \
15809 for flag in $(EXTRA_HOST_FLAGS); do \
15810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15811 done; \
15812 echo "Doing info in time" ; \
15813 (cd time && \
15814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15816 "RANLIB=$${RANLIB}" \
15817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15818 info) \
15819 || exit 1
15822 .PHONY: maybe-dvi-time dvi-time
15823 maybe-dvi-time:
15825 dvi-time: \
15826 configure-time
15827 @[ -f ./time/Makefile ] || exit 0; \
15828 r=`${PWD_COMMAND}`; export r; \
15829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15830 $(SET_LIB_PATH) \
15831 for flag in $(EXTRA_HOST_FLAGS); do \
15832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15833 done; \
15834 echo "Doing dvi in time" ; \
15835 (cd time && \
15836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15838 "RANLIB=$${RANLIB}" \
15839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15840 dvi) \
15841 || exit 1
15844 .PHONY: maybe-TAGS-time TAGS-time
15845 maybe-TAGS-time:
15847 TAGS-time: \
15848 configure-time
15849 @[ -f ./time/Makefile ] || exit 0; \
15850 r=`${PWD_COMMAND}`; export r; \
15851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15852 $(SET_LIB_PATH) \
15853 for flag in $(EXTRA_HOST_FLAGS); do \
15854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15855 done; \
15856 echo "Doing TAGS in time" ; \
15857 (cd time && \
15858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15860 "RANLIB=$${RANLIB}" \
15861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15862 TAGS) \
15863 || exit 1
15866 .PHONY: maybe-install-info-time install-info-time
15867 maybe-install-info-time:
15869 install-info-time: \
15870 configure-time \
15871 info-time
15872 @[ -f ./time/Makefile ] || exit 0; \
15873 r=`${PWD_COMMAND}`; export r; \
15874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15875 $(SET_LIB_PATH) \
15876 for flag in $(EXTRA_HOST_FLAGS); do \
15877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15878 done; \
15879 echo "Doing install-info in time" ; \
15880 (cd time && \
15881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15883 "RANLIB=$${RANLIB}" \
15884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15885 install-info) \
15886 || exit 1
15889 .PHONY: maybe-installcheck-time installcheck-time
15890 maybe-installcheck-time:
15892 installcheck-time: \
15893 configure-time
15894 @[ -f ./time/Makefile ] || exit 0; \
15895 r=`${PWD_COMMAND}`; export r; \
15896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15897 $(SET_LIB_PATH) \
15898 for flag in $(EXTRA_HOST_FLAGS); do \
15899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15900 done; \
15901 echo "Doing installcheck in time" ; \
15902 (cd time && \
15903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15905 "RANLIB=$${RANLIB}" \
15906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15907 installcheck) \
15908 || exit 1
15911 .PHONY: maybe-mostlyclean-time mostlyclean-time
15912 maybe-mostlyclean-time:
15914 mostlyclean-time:
15915 @[ -f ./time/Makefile ] || exit 0; \
15916 r=`${PWD_COMMAND}`; export r; \
15917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15918 $(SET_LIB_PATH) \
15919 for flag in $(EXTRA_HOST_FLAGS); do \
15920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15921 done; \
15922 echo "Doing mostlyclean in time" ; \
15923 (cd time && \
15924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15926 "RANLIB=$${RANLIB}" \
15927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15928 mostlyclean) \
15929 || exit 1
15932 .PHONY: maybe-clean-time clean-time
15933 maybe-clean-time:
15935 clean-time:
15936 @[ -f ./time/Makefile ] || exit 0; \
15937 r=`${PWD_COMMAND}`; export r; \
15938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15939 $(SET_LIB_PATH) \
15940 for flag in $(EXTRA_HOST_FLAGS); do \
15941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15942 done; \
15943 echo "Doing clean in time" ; \
15944 (cd time && \
15945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15947 "RANLIB=$${RANLIB}" \
15948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15949 clean) \
15950 || exit 1
15953 .PHONY: maybe-distclean-time distclean-time
15954 maybe-distclean-time:
15956 distclean-time:
15957 @[ -f ./time/Makefile ] || exit 0; \
15958 r=`${PWD_COMMAND}`; export r; \
15959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15960 $(SET_LIB_PATH) \
15961 for flag in $(EXTRA_HOST_FLAGS); do \
15962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15963 done; \
15964 echo "Doing distclean in time" ; \
15965 (cd time && \
15966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15968 "RANLIB=$${RANLIB}" \
15969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15970 distclean) \
15971 || exit 1
15974 .PHONY: maybe-maintainer-clean-time maintainer-clean-time
15975 maybe-maintainer-clean-time:
15977 maintainer-clean-time:
15978 @[ -f ./time/Makefile ] || exit 0; \
15979 r=`${PWD_COMMAND}`; export r; \
15980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15981 $(SET_LIB_PATH) \
15982 for flag in $(EXTRA_HOST_FLAGS); do \
15983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15984 done; \
15985 echo "Doing maintainer-clean in time" ; \
15986 (cd time && \
15987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15989 "RANLIB=$${RANLIB}" \
15990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15991 maintainer-clean) \
15992 || exit 1
15996 .PHONY: configure-uudecode maybe-configure-uudecode
15997 maybe-configure-uudecode:
15998 configure-uudecode:
15999 @test ! -f uudecode/Makefile || exit 0; \
16000 [ -d uudecode ] || mkdir uudecode; \
16001 r=`${PWD_COMMAND}`; export r; \
16002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16003 CC="$(CC)"; export CC; \
16004 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16005 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16006 CXX="$(CXX)"; export CXX; \
16007 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16008 AR="$(AR)"; export AR; \
16009 AS="$(AS)"; export AS; \
16010 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16011 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16012 LD="$(LD)"; export LD; \
16013 NM="$(NM)"; export NM; \
16014 RANLIB="$(RANLIB)"; export RANLIB; \
16015 WINDRES="$(WINDRES)"; export WINDRES; \
16016 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16017 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16018 echo Configuring in uudecode; \
16019 cd uudecode || exit 1; \
16020 case $(srcdir) in \
16021 \.) \
16022 srcdiroption="--srcdir=."; \
16023 libsrcdir=".";; \
16024 /* | [A-Za-z]:[\\/]*) \
16025 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
16026 libsrcdir="$$s/uudecode";; \
16027 *) \
16028 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
16029 libsrcdir="$$s/uudecode";; \
16030 esac; \
16031 $(SHELL) $${libsrcdir}/configure \
16032 $(HOST_CONFIGARGS) $${srcdiroption} \
16033 || exit 1
16035 .PHONY: all-uudecode maybe-all-uudecode
16036 maybe-all-uudecode:
16037 all-uudecode: configure-uudecode
16038 @r=`${PWD_COMMAND}`; export r; \
16039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16040 $(SET_LIB_PATH) \
16041 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
16043 .PHONY: check-uudecode maybe-check-uudecode
16044 maybe-check-uudecode:
16046 check-uudecode:
16047 @r=`${PWD_COMMAND}`; export r; \
16048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16049 $(SET_LIB_PATH) \
16050 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
16053 .PHONY: install-uudecode maybe-install-uudecode
16054 maybe-install-uudecode:
16056 install-uudecode: installdirs
16057 @r=`${PWD_COMMAND}`; export r; \
16058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16059 $(SET_LIB_PATH) \
16060 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
16063 # Other targets (info, dvi, etc.)
16065 .PHONY: maybe-info-uudecode info-uudecode
16066 maybe-info-uudecode:
16068 info-uudecode: \
16069 configure-uudecode
16070 @[ -f ./uudecode/Makefile ] || exit 0; \
16071 r=`${PWD_COMMAND}`; export r; \
16072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16073 $(SET_LIB_PATH) \
16074 for flag in $(EXTRA_HOST_FLAGS); do \
16075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16076 done; \
16077 echo "Doing info in uudecode" ; \
16078 (cd uudecode && \
16079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16081 "RANLIB=$${RANLIB}" \
16082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16083 info) \
16084 || exit 1
16087 .PHONY: maybe-dvi-uudecode dvi-uudecode
16088 maybe-dvi-uudecode:
16090 dvi-uudecode: \
16091 configure-uudecode
16092 @[ -f ./uudecode/Makefile ] || exit 0; \
16093 r=`${PWD_COMMAND}`; export r; \
16094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16095 $(SET_LIB_PATH) \
16096 for flag in $(EXTRA_HOST_FLAGS); do \
16097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16098 done; \
16099 echo "Doing dvi in uudecode" ; \
16100 (cd uudecode && \
16101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16103 "RANLIB=$${RANLIB}" \
16104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16105 dvi) \
16106 || exit 1
16109 .PHONY: maybe-TAGS-uudecode TAGS-uudecode
16110 maybe-TAGS-uudecode:
16112 TAGS-uudecode: \
16113 configure-uudecode
16114 @[ -f ./uudecode/Makefile ] || exit 0; \
16115 r=`${PWD_COMMAND}`; export r; \
16116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16117 $(SET_LIB_PATH) \
16118 for flag in $(EXTRA_HOST_FLAGS); do \
16119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16120 done; \
16121 echo "Doing TAGS in uudecode" ; \
16122 (cd uudecode && \
16123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16125 "RANLIB=$${RANLIB}" \
16126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16127 TAGS) \
16128 || exit 1
16131 .PHONY: maybe-install-info-uudecode install-info-uudecode
16132 maybe-install-info-uudecode:
16134 install-info-uudecode: \
16135 configure-uudecode \
16136 info-uudecode
16137 @[ -f ./uudecode/Makefile ] || exit 0; \
16138 r=`${PWD_COMMAND}`; export r; \
16139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16140 $(SET_LIB_PATH) \
16141 for flag in $(EXTRA_HOST_FLAGS); do \
16142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16143 done; \
16144 echo "Doing install-info in uudecode" ; \
16145 (cd uudecode && \
16146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16148 "RANLIB=$${RANLIB}" \
16149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16150 install-info) \
16151 || exit 1
16154 .PHONY: maybe-installcheck-uudecode installcheck-uudecode
16155 maybe-installcheck-uudecode:
16157 installcheck-uudecode: \
16158 configure-uudecode
16159 @[ -f ./uudecode/Makefile ] || exit 0; \
16160 r=`${PWD_COMMAND}`; export r; \
16161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16162 $(SET_LIB_PATH) \
16163 for flag in $(EXTRA_HOST_FLAGS); do \
16164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16165 done; \
16166 echo "Doing installcheck in uudecode" ; \
16167 (cd uudecode && \
16168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16170 "RANLIB=$${RANLIB}" \
16171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16172 installcheck) \
16173 || exit 1
16176 .PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
16177 maybe-mostlyclean-uudecode:
16179 mostlyclean-uudecode:
16180 @[ -f ./uudecode/Makefile ] || exit 0; \
16181 r=`${PWD_COMMAND}`; export r; \
16182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16183 $(SET_LIB_PATH) \
16184 for flag in $(EXTRA_HOST_FLAGS); do \
16185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16186 done; \
16187 echo "Doing mostlyclean in uudecode" ; \
16188 (cd uudecode && \
16189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16191 "RANLIB=$${RANLIB}" \
16192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16193 mostlyclean) \
16194 || exit 1
16197 .PHONY: maybe-clean-uudecode clean-uudecode
16198 maybe-clean-uudecode:
16200 clean-uudecode:
16201 @[ -f ./uudecode/Makefile ] || exit 0; \
16202 r=`${PWD_COMMAND}`; export r; \
16203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16204 $(SET_LIB_PATH) \
16205 for flag in $(EXTRA_HOST_FLAGS); do \
16206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16207 done; \
16208 echo "Doing clean in uudecode" ; \
16209 (cd uudecode && \
16210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16212 "RANLIB=$${RANLIB}" \
16213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16214 clean) \
16215 || exit 1
16218 .PHONY: maybe-distclean-uudecode distclean-uudecode
16219 maybe-distclean-uudecode:
16221 distclean-uudecode:
16222 @[ -f ./uudecode/Makefile ] || exit 0; \
16223 r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16225 $(SET_LIB_PATH) \
16226 for flag in $(EXTRA_HOST_FLAGS); do \
16227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16228 done; \
16229 echo "Doing distclean in uudecode" ; \
16230 (cd uudecode && \
16231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16233 "RANLIB=$${RANLIB}" \
16234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16235 distclean) \
16236 || exit 1
16239 .PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
16240 maybe-maintainer-clean-uudecode:
16242 maintainer-clean-uudecode:
16243 @[ -f ./uudecode/Makefile ] || exit 0; \
16244 r=`${PWD_COMMAND}`; export r; \
16245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16246 $(SET_LIB_PATH) \
16247 for flag in $(EXTRA_HOST_FLAGS); do \
16248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16249 done; \
16250 echo "Doing maintainer-clean in uudecode" ; \
16251 (cd uudecode && \
16252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16254 "RANLIB=$${RANLIB}" \
16255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16256 maintainer-clean) \
16257 || exit 1
16261 .PHONY: configure-wdiff maybe-configure-wdiff
16262 maybe-configure-wdiff:
16263 configure-wdiff:
16264 @test ! -f wdiff/Makefile || exit 0; \
16265 [ -d wdiff ] || mkdir wdiff; \
16266 r=`${PWD_COMMAND}`; export r; \
16267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16268 CC="$(CC)"; export CC; \
16269 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16270 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16271 CXX="$(CXX)"; export CXX; \
16272 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16273 AR="$(AR)"; export AR; \
16274 AS="$(AS)"; export AS; \
16275 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16276 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16277 LD="$(LD)"; export LD; \
16278 NM="$(NM)"; export NM; \
16279 RANLIB="$(RANLIB)"; export RANLIB; \
16280 WINDRES="$(WINDRES)"; export WINDRES; \
16281 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16282 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16283 echo Configuring in wdiff; \
16284 cd wdiff || exit 1; \
16285 case $(srcdir) in \
16286 \.) \
16287 srcdiroption="--srcdir=."; \
16288 libsrcdir=".";; \
16289 /* | [A-Za-z]:[\\/]*) \
16290 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
16291 libsrcdir="$$s/wdiff";; \
16292 *) \
16293 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
16294 libsrcdir="$$s/wdiff";; \
16295 esac; \
16296 $(SHELL) $${libsrcdir}/configure \
16297 $(HOST_CONFIGARGS) $${srcdiroption} \
16298 || exit 1
16300 .PHONY: all-wdiff maybe-all-wdiff
16301 maybe-all-wdiff:
16302 all-wdiff: configure-wdiff
16303 @r=`${PWD_COMMAND}`; export r; \
16304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16305 $(SET_LIB_PATH) \
16306 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
16308 .PHONY: check-wdiff maybe-check-wdiff
16309 maybe-check-wdiff:
16311 check-wdiff:
16312 @r=`${PWD_COMMAND}`; export r; \
16313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16314 $(SET_LIB_PATH) \
16315 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
16318 .PHONY: install-wdiff maybe-install-wdiff
16319 maybe-install-wdiff:
16321 install-wdiff: installdirs
16322 @r=`${PWD_COMMAND}`; export r; \
16323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16324 $(SET_LIB_PATH) \
16325 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
16328 # Other targets (info, dvi, etc.)
16330 .PHONY: maybe-info-wdiff info-wdiff
16331 maybe-info-wdiff:
16333 info-wdiff: \
16334 configure-wdiff
16335 @[ -f ./wdiff/Makefile ] || exit 0; \
16336 r=`${PWD_COMMAND}`; export r; \
16337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16338 $(SET_LIB_PATH) \
16339 for flag in $(EXTRA_HOST_FLAGS); do \
16340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16341 done; \
16342 echo "Doing info in wdiff" ; \
16343 (cd wdiff && \
16344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16346 "RANLIB=$${RANLIB}" \
16347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16348 info) \
16349 || exit 1
16352 .PHONY: maybe-dvi-wdiff dvi-wdiff
16353 maybe-dvi-wdiff:
16355 dvi-wdiff: \
16356 configure-wdiff
16357 @[ -f ./wdiff/Makefile ] || exit 0; \
16358 r=`${PWD_COMMAND}`; export r; \
16359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16360 $(SET_LIB_PATH) \
16361 for flag in $(EXTRA_HOST_FLAGS); do \
16362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16363 done; \
16364 echo "Doing dvi in wdiff" ; \
16365 (cd wdiff && \
16366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16368 "RANLIB=$${RANLIB}" \
16369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16370 dvi) \
16371 || exit 1
16374 .PHONY: maybe-TAGS-wdiff TAGS-wdiff
16375 maybe-TAGS-wdiff:
16377 TAGS-wdiff: \
16378 configure-wdiff
16379 @[ -f ./wdiff/Makefile ] || exit 0; \
16380 r=`${PWD_COMMAND}`; export r; \
16381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16382 $(SET_LIB_PATH) \
16383 for flag in $(EXTRA_HOST_FLAGS); do \
16384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16385 done; \
16386 echo "Doing TAGS in wdiff" ; \
16387 (cd wdiff && \
16388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16390 "RANLIB=$${RANLIB}" \
16391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16392 TAGS) \
16393 || exit 1
16396 .PHONY: maybe-install-info-wdiff install-info-wdiff
16397 maybe-install-info-wdiff:
16399 install-info-wdiff: \
16400 configure-wdiff \
16401 info-wdiff
16402 @[ -f ./wdiff/Makefile ] || exit 0; \
16403 r=`${PWD_COMMAND}`; export r; \
16404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16405 $(SET_LIB_PATH) \
16406 for flag in $(EXTRA_HOST_FLAGS); do \
16407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16408 done; \
16409 echo "Doing install-info in wdiff" ; \
16410 (cd wdiff && \
16411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16413 "RANLIB=$${RANLIB}" \
16414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16415 install-info) \
16416 || exit 1
16419 .PHONY: maybe-installcheck-wdiff installcheck-wdiff
16420 maybe-installcheck-wdiff:
16422 installcheck-wdiff: \
16423 configure-wdiff
16424 @[ -f ./wdiff/Makefile ] || exit 0; \
16425 r=`${PWD_COMMAND}`; export r; \
16426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16427 $(SET_LIB_PATH) \
16428 for flag in $(EXTRA_HOST_FLAGS); do \
16429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16430 done; \
16431 echo "Doing installcheck in wdiff" ; \
16432 (cd wdiff && \
16433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16435 "RANLIB=$${RANLIB}" \
16436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16437 installcheck) \
16438 || exit 1
16441 .PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
16442 maybe-mostlyclean-wdiff:
16444 mostlyclean-wdiff:
16445 @[ -f ./wdiff/Makefile ] || exit 0; \
16446 r=`${PWD_COMMAND}`; export r; \
16447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16448 $(SET_LIB_PATH) \
16449 for flag in $(EXTRA_HOST_FLAGS); do \
16450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16451 done; \
16452 echo "Doing mostlyclean in wdiff" ; \
16453 (cd wdiff && \
16454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16456 "RANLIB=$${RANLIB}" \
16457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16458 mostlyclean) \
16459 || exit 1
16462 .PHONY: maybe-clean-wdiff clean-wdiff
16463 maybe-clean-wdiff:
16465 clean-wdiff:
16466 @[ -f ./wdiff/Makefile ] || exit 0; \
16467 r=`${PWD_COMMAND}`; export r; \
16468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16469 $(SET_LIB_PATH) \
16470 for flag in $(EXTRA_HOST_FLAGS); do \
16471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16472 done; \
16473 echo "Doing clean in wdiff" ; \
16474 (cd wdiff && \
16475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16477 "RANLIB=$${RANLIB}" \
16478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16479 clean) \
16480 || exit 1
16483 .PHONY: maybe-distclean-wdiff distclean-wdiff
16484 maybe-distclean-wdiff:
16486 distclean-wdiff:
16487 @[ -f ./wdiff/Makefile ] || exit 0; \
16488 r=`${PWD_COMMAND}`; export r; \
16489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16490 $(SET_LIB_PATH) \
16491 for flag in $(EXTRA_HOST_FLAGS); do \
16492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16493 done; \
16494 echo "Doing distclean in wdiff" ; \
16495 (cd wdiff && \
16496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16498 "RANLIB=$${RANLIB}" \
16499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16500 distclean) \
16501 || exit 1
16504 .PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
16505 maybe-maintainer-clean-wdiff:
16507 maintainer-clean-wdiff:
16508 @[ -f ./wdiff/Makefile ] || exit 0; \
16509 r=`${PWD_COMMAND}`; export r; \
16510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16511 $(SET_LIB_PATH) \
16512 for flag in $(EXTRA_HOST_FLAGS); do \
16513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16514 done; \
16515 echo "Doing maintainer-clean in wdiff" ; \
16516 (cd wdiff && \
16517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16519 "RANLIB=$${RANLIB}" \
16520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16521 maintainer-clean) \
16522 || exit 1
16526 .PHONY: configure-zip maybe-configure-zip
16527 maybe-configure-zip:
16528 configure-zip:
16529 @test ! -f zip/Makefile || exit 0; \
16530 [ -d zip ] || mkdir zip; \
16531 r=`${PWD_COMMAND}`; export r; \
16532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16533 CC="$(CC)"; export CC; \
16534 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16535 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16536 CXX="$(CXX)"; export CXX; \
16537 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16538 AR="$(AR)"; export AR; \
16539 AS="$(AS)"; export AS; \
16540 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16541 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16542 LD="$(LD)"; export LD; \
16543 NM="$(NM)"; export NM; \
16544 RANLIB="$(RANLIB)"; export RANLIB; \
16545 WINDRES="$(WINDRES)"; export WINDRES; \
16546 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16547 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16548 echo Configuring in zip; \
16549 cd zip || exit 1; \
16550 case $(srcdir) in \
16551 \.) \
16552 srcdiroption="--srcdir=."; \
16553 libsrcdir=".";; \
16554 /* | [A-Za-z]:[\\/]*) \
16555 srcdiroption="--srcdir=$(srcdir)/zip"; \
16556 libsrcdir="$$s/zip";; \
16557 *) \
16558 srcdiroption="--srcdir=../$(srcdir)/zip"; \
16559 libsrcdir="$$s/zip";; \
16560 esac; \
16561 $(SHELL) $${libsrcdir}/configure \
16562 $(HOST_CONFIGARGS) $${srcdiroption} \
16563 || exit 1
16565 .PHONY: all-zip maybe-all-zip
16566 maybe-all-zip:
16567 all-zip: configure-zip
16568 @r=`${PWD_COMMAND}`; export r; \
16569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16570 $(SET_LIB_PATH) \
16571 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
16573 .PHONY: check-zip maybe-check-zip
16574 maybe-check-zip:
16576 # This module is only tested in a native toolchain.
16577 check-zip:
16578 @if [ '$(host)' = '$(target)' ] ; then \
16579 r=`${PWD_COMMAND}`; export r; \
16580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16581 $(SET_LIB_PATH) \
16582 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
16586 .PHONY: install-zip maybe-install-zip
16587 maybe-install-zip:
16589 install-zip: installdirs
16590 @r=`${PWD_COMMAND}`; export r; \
16591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16592 $(SET_LIB_PATH) \
16593 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
16596 # Other targets (info, dvi, etc.)
16598 .PHONY: maybe-info-zip info-zip
16599 maybe-info-zip:
16601 info-zip: \
16602 configure-zip
16603 @[ -f ./zip/Makefile ] || exit 0; \
16604 r=`${PWD_COMMAND}`; export r; \
16605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16606 $(SET_LIB_PATH) \
16607 for flag in $(EXTRA_HOST_FLAGS); do \
16608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16609 done; \
16610 echo "Doing info in zip" ; \
16611 (cd zip && \
16612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16614 "RANLIB=$${RANLIB}" \
16615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16616 info) \
16617 || exit 1
16620 .PHONY: maybe-dvi-zip dvi-zip
16621 maybe-dvi-zip:
16623 dvi-zip: \
16624 configure-zip
16625 @[ -f ./zip/Makefile ] || exit 0; \
16626 r=`${PWD_COMMAND}`; export r; \
16627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16628 $(SET_LIB_PATH) \
16629 for flag in $(EXTRA_HOST_FLAGS); do \
16630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16631 done; \
16632 echo "Doing dvi in zip" ; \
16633 (cd zip && \
16634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16636 "RANLIB=$${RANLIB}" \
16637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16638 dvi) \
16639 || exit 1
16642 .PHONY: maybe-TAGS-zip TAGS-zip
16643 maybe-TAGS-zip:
16645 TAGS-zip: \
16646 configure-zip
16647 @[ -f ./zip/Makefile ] || exit 0; \
16648 r=`${PWD_COMMAND}`; export r; \
16649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16650 $(SET_LIB_PATH) \
16651 for flag in $(EXTRA_HOST_FLAGS); do \
16652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16653 done; \
16654 echo "Doing TAGS in zip" ; \
16655 (cd zip && \
16656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16658 "RANLIB=$${RANLIB}" \
16659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16660 TAGS) \
16661 || exit 1
16664 .PHONY: maybe-install-info-zip install-info-zip
16665 maybe-install-info-zip:
16667 install-info-zip: \
16668 configure-zip \
16669 info-zip
16670 @[ -f ./zip/Makefile ] || exit 0; \
16671 r=`${PWD_COMMAND}`; export r; \
16672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16673 $(SET_LIB_PATH) \
16674 for flag in $(EXTRA_HOST_FLAGS); do \
16675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16676 done; \
16677 echo "Doing install-info in zip" ; \
16678 (cd zip && \
16679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16681 "RANLIB=$${RANLIB}" \
16682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16683 install-info) \
16684 || exit 1
16687 .PHONY: maybe-installcheck-zip installcheck-zip
16688 maybe-installcheck-zip:
16690 installcheck-zip: \
16691 configure-zip
16692 @[ -f ./zip/Makefile ] || exit 0; \
16693 r=`${PWD_COMMAND}`; export r; \
16694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16695 $(SET_LIB_PATH) \
16696 for flag in $(EXTRA_HOST_FLAGS); do \
16697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16698 done; \
16699 echo "Doing installcheck in zip" ; \
16700 (cd zip && \
16701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16703 "RANLIB=$${RANLIB}" \
16704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16705 installcheck) \
16706 || exit 1
16709 .PHONY: maybe-mostlyclean-zip mostlyclean-zip
16710 maybe-mostlyclean-zip:
16712 mostlyclean-zip:
16713 @[ -f ./zip/Makefile ] || exit 0; \
16714 r=`${PWD_COMMAND}`; export r; \
16715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16716 $(SET_LIB_PATH) \
16717 for flag in $(EXTRA_HOST_FLAGS); do \
16718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16719 done; \
16720 echo "Doing mostlyclean in zip" ; \
16721 (cd zip && \
16722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16724 "RANLIB=$${RANLIB}" \
16725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16726 mostlyclean) \
16727 || exit 1
16730 .PHONY: maybe-clean-zip clean-zip
16731 maybe-clean-zip:
16733 clean-zip:
16734 @[ -f ./zip/Makefile ] || exit 0; \
16735 r=`${PWD_COMMAND}`; export r; \
16736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16737 $(SET_LIB_PATH) \
16738 for flag in $(EXTRA_HOST_FLAGS); do \
16739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16740 done; \
16741 echo "Doing clean in zip" ; \
16742 (cd zip && \
16743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16745 "RANLIB=$${RANLIB}" \
16746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16747 clean) \
16748 || exit 1
16751 .PHONY: maybe-distclean-zip distclean-zip
16752 maybe-distclean-zip:
16754 distclean-zip:
16755 @[ -f ./zip/Makefile ] || exit 0; \
16756 r=`${PWD_COMMAND}`; export r; \
16757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16758 $(SET_LIB_PATH) \
16759 for flag in $(EXTRA_HOST_FLAGS); do \
16760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16761 done; \
16762 echo "Doing distclean in zip" ; \
16763 (cd zip && \
16764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16766 "RANLIB=$${RANLIB}" \
16767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16768 distclean) \
16769 || exit 1
16772 .PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
16773 maybe-maintainer-clean-zip:
16775 maintainer-clean-zip:
16776 @[ -f ./zip/Makefile ] || exit 0; \
16777 r=`${PWD_COMMAND}`; export r; \
16778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16779 $(SET_LIB_PATH) \
16780 for flag in $(EXTRA_HOST_FLAGS); do \
16781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16782 done; \
16783 echo "Doing maintainer-clean in zip" ; \
16784 (cd zip && \
16785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16787 "RANLIB=$${RANLIB}" \
16788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16789 maintainer-clean) \
16790 || exit 1
16794 .PHONY: configure-zlib maybe-configure-zlib
16795 maybe-configure-zlib:
16796 configure-zlib:
16797 @test ! -f zlib/Makefile || exit 0; \
16798 [ -d zlib ] || mkdir zlib; \
16799 r=`${PWD_COMMAND}`; export r; \
16800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16801 CC="$(CC)"; export CC; \
16802 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16803 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16804 CXX="$(CXX)"; export CXX; \
16805 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16806 AR="$(AR)"; export AR; \
16807 AS="$(AS)"; export AS; \
16808 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16809 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16810 LD="$(LD)"; export LD; \
16811 NM="$(NM)"; export NM; \
16812 RANLIB="$(RANLIB)"; export RANLIB; \
16813 WINDRES="$(WINDRES)"; export WINDRES; \
16814 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16815 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16816 echo Configuring in zlib; \
16817 cd zlib || exit 1; \
16818 case $(srcdir) in \
16819 \.) \
16820 srcdiroption="--srcdir=."; \
16821 libsrcdir=".";; \
16822 /* | [A-Za-z]:[\\/]*) \
16823 srcdiroption="--srcdir=$(srcdir)/zlib"; \
16824 libsrcdir="$$s/zlib";; \
16825 *) \
16826 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
16827 libsrcdir="$$s/zlib";; \
16828 esac; \
16829 $(SHELL) $${libsrcdir}/configure \
16830 $(HOST_CONFIGARGS) $${srcdiroption} \
16831 || exit 1
16833 .PHONY: all-zlib maybe-all-zlib
16834 maybe-all-zlib:
16835 all-zlib: configure-zlib
16836 @r=`${PWD_COMMAND}`; export r; \
16837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16838 $(SET_LIB_PATH) \
16839 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
16841 .PHONY: check-zlib maybe-check-zlib
16842 maybe-check-zlib:
16844 check-zlib:
16847 .PHONY: install-zlib maybe-install-zlib
16848 maybe-install-zlib:
16850 install-zlib:
16853 # Other targets (info, dvi, etc.)
16855 .PHONY: maybe-info-zlib info-zlib
16856 maybe-info-zlib:
16858 info-zlib: \
16859 configure-zlib
16860 @[ -f ./zlib/Makefile ] || exit 0; \
16861 r=`${PWD_COMMAND}`; export r; \
16862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16863 $(SET_LIB_PATH) \
16864 for flag in $(EXTRA_HOST_FLAGS); do \
16865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16866 done; \
16867 echo "Doing info in zlib" ; \
16868 (cd zlib && \
16869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16871 "RANLIB=$${RANLIB}" \
16872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16873 info) \
16874 || exit 1
16877 .PHONY: maybe-dvi-zlib dvi-zlib
16878 maybe-dvi-zlib:
16880 dvi-zlib: \
16881 configure-zlib
16882 @[ -f ./zlib/Makefile ] || exit 0; \
16883 r=`${PWD_COMMAND}`; export r; \
16884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16885 $(SET_LIB_PATH) \
16886 for flag in $(EXTRA_HOST_FLAGS); do \
16887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16888 done; \
16889 echo "Doing dvi in zlib" ; \
16890 (cd zlib && \
16891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16893 "RANLIB=$${RANLIB}" \
16894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16895 dvi) \
16896 || exit 1
16899 .PHONY: maybe-TAGS-zlib TAGS-zlib
16900 maybe-TAGS-zlib:
16902 TAGS-zlib: \
16903 configure-zlib
16904 @[ -f ./zlib/Makefile ] || exit 0; \
16905 r=`${PWD_COMMAND}`; export r; \
16906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16907 $(SET_LIB_PATH) \
16908 for flag in $(EXTRA_HOST_FLAGS); do \
16909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16910 done; \
16911 echo "Doing TAGS in zlib" ; \
16912 (cd zlib && \
16913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16915 "RANLIB=$${RANLIB}" \
16916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16917 TAGS) \
16918 || exit 1
16921 .PHONY: maybe-install-info-zlib install-info-zlib
16922 maybe-install-info-zlib:
16924 install-info-zlib: \
16925 configure-zlib \
16926 info-zlib
16927 @[ -f ./zlib/Makefile ] || exit 0; \
16928 r=`${PWD_COMMAND}`; export r; \
16929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16930 $(SET_LIB_PATH) \
16931 for flag in $(EXTRA_HOST_FLAGS); do \
16932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16933 done; \
16934 echo "Doing install-info in zlib" ; \
16935 (cd zlib && \
16936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16938 "RANLIB=$${RANLIB}" \
16939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16940 install-info) \
16941 || exit 1
16944 .PHONY: maybe-installcheck-zlib installcheck-zlib
16945 maybe-installcheck-zlib:
16947 installcheck-zlib: \
16948 configure-zlib
16949 @[ -f ./zlib/Makefile ] || exit 0; \
16950 r=`${PWD_COMMAND}`; export r; \
16951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16952 $(SET_LIB_PATH) \
16953 for flag in $(EXTRA_HOST_FLAGS); do \
16954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16955 done; \
16956 echo "Doing installcheck in zlib" ; \
16957 (cd zlib && \
16958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16960 "RANLIB=$${RANLIB}" \
16961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16962 installcheck) \
16963 || exit 1
16966 .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
16967 maybe-mostlyclean-zlib:
16969 mostlyclean-zlib:
16970 @[ -f ./zlib/Makefile ] || exit 0; \
16971 r=`${PWD_COMMAND}`; export r; \
16972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16973 $(SET_LIB_PATH) \
16974 for flag in $(EXTRA_HOST_FLAGS); do \
16975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16976 done; \
16977 echo "Doing mostlyclean in zlib" ; \
16978 (cd zlib && \
16979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16981 "RANLIB=$${RANLIB}" \
16982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16983 mostlyclean) \
16984 || exit 1
16987 .PHONY: maybe-clean-zlib clean-zlib
16988 maybe-clean-zlib:
16990 clean-zlib:
16991 @[ -f ./zlib/Makefile ] || exit 0; \
16992 r=`${PWD_COMMAND}`; export r; \
16993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16994 $(SET_LIB_PATH) \
16995 for flag in $(EXTRA_HOST_FLAGS); do \
16996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16997 done; \
16998 echo "Doing clean in zlib" ; \
16999 (cd zlib && \
17000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17002 "RANLIB=$${RANLIB}" \
17003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17004 clean) \
17005 || exit 1
17008 .PHONY: maybe-distclean-zlib distclean-zlib
17009 maybe-distclean-zlib:
17011 distclean-zlib:
17012 @[ -f ./zlib/Makefile ] || exit 0; \
17013 r=`${PWD_COMMAND}`; export r; \
17014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17015 $(SET_LIB_PATH) \
17016 for flag in $(EXTRA_HOST_FLAGS); do \
17017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17018 done; \
17019 echo "Doing distclean in zlib" ; \
17020 (cd zlib && \
17021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17023 "RANLIB=$${RANLIB}" \
17024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17025 distclean) \
17026 || exit 1
17029 .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
17030 maybe-maintainer-clean-zlib:
17032 maintainer-clean-zlib:
17033 @[ -f ./zlib/Makefile ] || exit 0; \
17034 r=`${PWD_COMMAND}`; export r; \
17035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17036 $(SET_LIB_PATH) \
17037 for flag in $(EXTRA_HOST_FLAGS); do \
17038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17039 done; \
17040 echo "Doing maintainer-clean in zlib" ; \
17041 (cd zlib && \
17042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17044 "RANLIB=$${RANLIB}" \
17045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17046 maintainer-clean) \
17047 || exit 1
17051 .PHONY: configure-gdb maybe-configure-gdb
17052 maybe-configure-gdb:
17053 configure-gdb:
17054 @test ! -f gdb/Makefile || exit 0; \
17055 [ -d gdb ] || mkdir gdb; \
17056 r=`${PWD_COMMAND}`; export r; \
17057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17058 CC="$(CC)"; export CC; \
17059 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17060 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17061 CXX="$(CXX)"; export CXX; \
17062 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17063 AR="$(AR)"; export AR; \
17064 AS="$(AS)"; export AS; \
17065 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17066 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17067 LD="$(LD)"; export LD; \
17068 NM="$(NM)"; export NM; \
17069 RANLIB="$(RANLIB)"; export RANLIB; \
17070 WINDRES="$(WINDRES)"; export WINDRES; \
17071 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17072 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17073 echo Configuring in gdb; \
17074 cd gdb || exit 1; \
17075 case $(srcdir) in \
17076 \.) \
17077 srcdiroption="--srcdir=."; \
17078 libsrcdir=".";; \
17079 /* | [A-Za-z]:[\\/]*) \
17080 srcdiroption="--srcdir=$(srcdir)/gdb"; \
17081 libsrcdir="$$s/gdb";; \
17082 *) \
17083 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
17084 libsrcdir="$$s/gdb";; \
17085 esac; \
17086 $(SHELL) $${libsrcdir}/configure \
17087 $(HOST_CONFIGARGS) $${srcdiroption} \
17088 || exit 1
17090 .PHONY: all-gdb maybe-all-gdb
17091 maybe-all-gdb:
17092 all-gdb: configure-gdb
17093 @r=`${PWD_COMMAND}`; export r; \
17094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17095 $(SET_LIB_PATH) \
17096 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17098 .PHONY: check-gdb maybe-check-gdb
17099 maybe-check-gdb:
17101 check-gdb:
17102 @r=`${PWD_COMMAND}`; export r; \
17103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17104 $(SET_LIB_PATH) \
17105 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17108 .PHONY: install-gdb maybe-install-gdb
17109 maybe-install-gdb:
17111 install-gdb: installdirs
17112 @r=`${PWD_COMMAND}`; export r; \
17113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17114 $(SET_LIB_PATH) \
17115 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17118 # Other targets (info, dvi, etc.)
17120 .PHONY: maybe-info-gdb info-gdb
17121 maybe-info-gdb:
17123 info-gdb: \
17124 configure-gdb
17125 @[ -f ./gdb/Makefile ] || exit 0; \
17126 r=`${PWD_COMMAND}`; export r; \
17127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17128 $(SET_LIB_PATH) \
17129 for flag in $(EXTRA_HOST_FLAGS); do \
17130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17131 done; \
17132 echo "Doing info in gdb" ; \
17133 (cd gdb && \
17134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17136 "RANLIB=$${RANLIB}" \
17137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17138 info) \
17139 || exit 1
17142 .PHONY: maybe-dvi-gdb dvi-gdb
17143 maybe-dvi-gdb:
17145 dvi-gdb: \
17146 configure-gdb
17147 @[ -f ./gdb/Makefile ] || exit 0; \
17148 r=`${PWD_COMMAND}`; export r; \
17149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17150 $(SET_LIB_PATH) \
17151 for flag in $(EXTRA_HOST_FLAGS); do \
17152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17153 done; \
17154 echo "Doing dvi in gdb" ; \
17155 (cd gdb && \
17156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17158 "RANLIB=$${RANLIB}" \
17159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17160 dvi) \
17161 || exit 1
17164 .PHONY: maybe-TAGS-gdb TAGS-gdb
17165 maybe-TAGS-gdb:
17167 TAGS-gdb: \
17168 configure-gdb
17169 @[ -f ./gdb/Makefile ] || exit 0; \
17170 r=`${PWD_COMMAND}`; export r; \
17171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17172 $(SET_LIB_PATH) \
17173 for flag in $(EXTRA_HOST_FLAGS); do \
17174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17175 done; \
17176 echo "Doing TAGS in gdb" ; \
17177 (cd gdb && \
17178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17180 "RANLIB=$${RANLIB}" \
17181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17182 TAGS) \
17183 || exit 1
17186 .PHONY: maybe-install-info-gdb install-info-gdb
17187 maybe-install-info-gdb:
17189 install-info-gdb: \
17190 configure-gdb \
17191 info-gdb
17192 @[ -f ./gdb/Makefile ] || exit 0; \
17193 r=`${PWD_COMMAND}`; export r; \
17194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17195 $(SET_LIB_PATH) \
17196 for flag in $(EXTRA_HOST_FLAGS); do \
17197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17198 done; \
17199 echo "Doing install-info in gdb" ; \
17200 (cd gdb && \
17201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17203 "RANLIB=$${RANLIB}" \
17204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17205 install-info) \
17206 || exit 1
17209 .PHONY: maybe-installcheck-gdb installcheck-gdb
17210 maybe-installcheck-gdb:
17212 installcheck-gdb: \
17213 configure-gdb
17214 @[ -f ./gdb/Makefile ] || exit 0; \
17215 r=`${PWD_COMMAND}`; export r; \
17216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17217 $(SET_LIB_PATH) \
17218 for flag in $(EXTRA_HOST_FLAGS); do \
17219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17220 done; \
17221 echo "Doing installcheck in gdb" ; \
17222 (cd gdb && \
17223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17225 "RANLIB=$${RANLIB}" \
17226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17227 installcheck) \
17228 || exit 1
17231 .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
17232 maybe-mostlyclean-gdb:
17234 mostlyclean-gdb:
17235 @[ -f ./gdb/Makefile ] || exit 0; \
17236 r=`${PWD_COMMAND}`; export r; \
17237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17238 $(SET_LIB_PATH) \
17239 for flag in $(EXTRA_HOST_FLAGS); do \
17240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17241 done; \
17242 echo "Doing mostlyclean in gdb" ; \
17243 (cd gdb && \
17244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17246 "RANLIB=$${RANLIB}" \
17247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17248 mostlyclean) \
17249 || exit 1
17252 .PHONY: maybe-clean-gdb clean-gdb
17253 maybe-clean-gdb:
17255 clean-gdb:
17256 @[ -f ./gdb/Makefile ] || exit 0; \
17257 r=`${PWD_COMMAND}`; export r; \
17258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17259 $(SET_LIB_PATH) \
17260 for flag in $(EXTRA_HOST_FLAGS); do \
17261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17262 done; \
17263 echo "Doing clean in gdb" ; \
17264 (cd gdb && \
17265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17267 "RANLIB=$${RANLIB}" \
17268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17269 clean) \
17270 || exit 1
17273 .PHONY: maybe-distclean-gdb distclean-gdb
17274 maybe-distclean-gdb:
17276 distclean-gdb:
17277 @[ -f ./gdb/Makefile ] || exit 0; \
17278 r=`${PWD_COMMAND}`; export r; \
17279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17280 $(SET_LIB_PATH) \
17281 for flag in $(EXTRA_HOST_FLAGS); do \
17282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17283 done; \
17284 echo "Doing distclean in gdb" ; \
17285 (cd gdb && \
17286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17288 "RANLIB=$${RANLIB}" \
17289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17290 distclean) \
17291 || exit 1
17294 .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
17295 maybe-maintainer-clean-gdb:
17297 maintainer-clean-gdb:
17298 @[ -f ./gdb/Makefile ] || exit 0; \
17299 r=`${PWD_COMMAND}`; export r; \
17300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17301 $(SET_LIB_PATH) \
17302 for flag in $(EXTRA_HOST_FLAGS); do \
17303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17304 done; \
17305 echo "Doing maintainer-clean in gdb" ; \
17306 (cd gdb && \
17307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17309 "RANLIB=$${RANLIB}" \
17310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17311 maintainer-clean) \
17312 || exit 1
17316 .PHONY: configure-expect maybe-configure-expect
17317 maybe-configure-expect:
17318 configure-expect:
17319 @test ! -f expect/Makefile || exit 0; \
17320 [ -d expect ] || mkdir expect; \
17321 r=`${PWD_COMMAND}`; export r; \
17322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17323 CC="$(CC)"; export CC; \
17324 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17325 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17326 CXX="$(CXX)"; export CXX; \
17327 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17328 AR="$(AR)"; export AR; \
17329 AS="$(AS)"; export AS; \
17330 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17331 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17332 LD="$(LD)"; export LD; \
17333 NM="$(NM)"; export NM; \
17334 RANLIB="$(RANLIB)"; export RANLIB; \
17335 WINDRES="$(WINDRES)"; export WINDRES; \
17336 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17337 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17338 echo Configuring in expect; \
17339 cd expect || exit 1; \
17340 case $(srcdir) in \
17341 \.) \
17342 srcdiroption="--srcdir=."; \
17343 libsrcdir=".";; \
17344 /* | [A-Za-z]:[\\/]*) \
17345 srcdiroption="--srcdir=$(srcdir)/expect"; \
17346 libsrcdir="$$s/expect";; \
17347 *) \
17348 srcdiroption="--srcdir=../$(srcdir)/expect"; \
17349 libsrcdir="$$s/expect";; \
17350 esac; \
17351 $(SHELL) $${libsrcdir}/configure \
17352 $(HOST_CONFIGARGS) $${srcdiroption} \
17353 || exit 1
17355 .PHONY: all-expect maybe-all-expect
17356 maybe-all-expect:
17357 all-expect: configure-expect
17358 @r=`${PWD_COMMAND}`; export r; \
17359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17360 $(SET_LIB_PATH) \
17361 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17363 .PHONY: check-expect maybe-check-expect
17364 maybe-check-expect:
17366 check-expect:
17367 @r=`${PWD_COMMAND}`; export r; \
17368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17369 $(SET_LIB_PATH) \
17370 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17373 .PHONY: install-expect maybe-install-expect
17374 maybe-install-expect:
17376 install-expect: installdirs
17377 @r=`${PWD_COMMAND}`; export r; \
17378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17379 $(SET_LIB_PATH) \
17380 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17383 # Other targets (info, dvi, etc.)
17385 .PHONY: maybe-info-expect info-expect
17386 maybe-info-expect:
17388 info-expect: \
17389 configure-expect
17390 @[ -f ./expect/Makefile ] || exit 0; \
17391 r=`${PWD_COMMAND}`; export r; \
17392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17393 $(SET_LIB_PATH) \
17394 for flag in $(EXTRA_HOST_FLAGS); do \
17395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17396 done; \
17397 echo "Doing info in expect" ; \
17398 (cd expect && \
17399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17401 "RANLIB=$${RANLIB}" \
17402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17403 info) \
17404 || exit 1
17407 .PHONY: maybe-dvi-expect dvi-expect
17408 maybe-dvi-expect:
17410 dvi-expect: \
17411 configure-expect
17412 @[ -f ./expect/Makefile ] || exit 0; \
17413 r=`${PWD_COMMAND}`; export r; \
17414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17415 $(SET_LIB_PATH) \
17416 for flag in $(EXTRA_HOST_FLAGS); do \
17417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17418 done; \
17419 echo "Doing dvi in expect" ; \
17420 (cd expect && \
17421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17423 "RANLIB=$${RANLIB}" \
17424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17425 dvi) \
17426 || exit 1
17429 .PHONY: maybe-TAGS-expect TAGS-expect
17430 maybe-TAGS-expect:
17432 TAGS-expect: \
17433 configure-expect
17434 @[ -f ./expect/Makefile ] || exit 0; \
17435 r=`${PWD_COMMAND}`; export r; \
17436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17437 $(SET_LIB_PATH) \
17438 for flag in $(EXTRA_HOST_FLAGS); do \
17439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17440 done; \
17441 echo "Doing TAGS in expect" ; \
17442 (cd expect && \
17443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17445 "RANLIB=$${RANLIB}" \
17446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17447 TAGS) \
17448 || exit 1
17451 .PHONY: maybe-install-info-expect install-info-expect
17452 maybe-install-info-expect:
17454 install-info-expect: \
17455 configure-expect \
17456 info-expect
17457 @[ -f ./expect/Makefile ] || exit 0; \
17458 r=`${PWD_COMMAND}`; export r; \
17459 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17460 $(SET_LIB_PATH) \
17461 for flag in $(EXTRA_HOST_FLAGS); do \
17462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17463 done; \
17464 echo "Doing install-info in expect" ; \
17465 (cd expect && \
17466 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17467 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17468 "RANLIB=$${RANLIB}" \
17469 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17470 install-info) \
17471 || exit 1
17474 .PHONY: maybe-installcheck-expect installcheck-expect
17475 maybe-installcheck-expect:
17477 installcheck-expect: \
17478 configure-expect
17479 @[ -f ./expect/Makefile ] || exit 0; \
17480 r=`${PWD_COMMAND}`; export r; \
17481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17482 $(SET_LIB_PATH) \
17483 for flag in $(EXTRA_HOST_FLAGS); do \
17484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17485 done; \
17486 echo "Doing installcheck in expect" ; \
17487 (cd expect && \
17488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17490 "RANLIB=$${RANLIB}" \
17491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17492 installcheck) \
17493 || exit 1
17496 .PHONY: maybe-mostlyclean-expect mostlyclean-expect
17497 maybe-mostlyclean-expect:
17499 mostlyclean-expect:
17500 @[ -f ./expect/Makefile ] || exit 0; \
17501 r=`${PWD_COMMAND}`; export r; \
17502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17503 $(SET_LIB_PATH) \
17504 for flag in $(EXTRA_HOST_FLAGS); do \
17505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17506 done; \
17507 echo "Doing mostlyclean in expect" ; \
17508 (cd expect && \
17509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17511 "RANLIB=$${RANLIB}" \
17512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17513 mostlyclean) \
17514 || exit 1
17517 .PHONY: maybe-clean-expect clean-expect
17518 maybe-clean-expect:
17520 clean-expect:
17521 @[ -f ./expect/Makefile ] || exit 0; \
17522 r=`${PWD_COMMAND}`; export r; \
17523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17524 $(SET_LIB_PATH) \
17525 for flag in $(EXTRA_HOST_FLAGS); do \
17526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17527 done; \
17528 echo "Doing clean in expect" ; \
17529 (cd expect && \
17530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17532 "RANLIB=$${RANLIB}" \
17533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17534 clean) \
17535 || exit 1
17538 .PHONY: maybe-distclean-expect distclean-expect
17539 maybe-distclean-expect:
17541 distclean-expect:
17542 @[ -f ./expect/Makefile ] || exit 0; \
17543 r=`${PWD_COMMAND}`; export r; \
17544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17545 $(SET_LIB_PATH) \
17546 for flag in $(EXTRA_HOST_FLAGS); do \
17547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17548 done; \
17549 echo "Doing distclean in expect" ; \
17550 (cd expect && \
17551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17553 "RANLIB=$${RANLIB}" \
17554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17555 distclean) \
17556 || exit 1
17559 .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
17560 maybe-maintainer-clean-expect:
17562 maintainer-clean-expect:
17563 @[ -f ./expect/Makefile ] || exit 0; \
17564 r=`${PWD_COMMAND}`; export r; \
17565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17566 $(SET_LIB_PATH) \
17567 for flag in $(EXTRA_HOST_FLAGS); do \
17568 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17569 done; \
17570 echo "Doing maintainer-clean in expect" ; \
17571 (cd expect && \
17572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17574 "RANLIB=$${RANLIB}" \
17575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17576 maintainer-clean) \
17577 || exit 1
17581 .PHONY: configure-guile maybe-configure-guile
17582 maybe-configure-guile:
17583 configure-guile:
17584 @test ! -f guile/Makefile || exit 0; \
17585 [ -d guile ] || mkdir guile; \
17586 r=`${PWD_COMMAND}`; export r; \
17587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17588 CC="$(CC)"; export CC; \
17589 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17590 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17591 CXX="$(CXX)"; export CXX; \
17592 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17593 AR="$(AR)"; export AR; \
17594 AS="$(AS)"; export AS; \
17595 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17596 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17597 LD="$(LD)"; export LD; \
17598 NM="$(NM)"; export NM; \
17599 RANLIB="$(RANLIB)"; export RANLIB; \
17600 WINDRES="$(WINDRES)"; export WINDRES; \
17601 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17602 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17603 echo Configuring in guile; \
17604 cd guile || exit 1; \
17605 case $(srcdir) in \
17606 \.) \
17607 srcdiroption="--srcdir=."; \
17608 libsrcdir=".";; \
17609 /* | [A-Za-z]:[\\/]*) \
17610 srcdiroption="--srcdir=$(srcdir)/guile"; \
17611 libsrcdir="$$s/guile";; \
17612 *) \
17613 srcdiroption="--srcdir=../$(srcdir)/guile"; \
17614 libsrcdir="$$s/guile";; \
17615 esac; \
17616 $(SHELL) $${libsrcdir}/configure \
17617 $(HOST_CONFIGARGS) $${srcdiroption} \
17618 || exit 1
17620 .PHONY: all-guile maybe-all-guile
17621 maybe-all-guile:
17622 all-guile: configure-guile
17623 @r=`${PWD_COMMAND}`; export r; \
17624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17625 $(SET_LIB_PATH) \
17626 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17628 .PHONY: check-guile maybe-check-guile
17629 maybe-check-guile:
17631 check-guile:
17632 @r=`${PWD_COMMAND}`; export r; \
17633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17634 $(SET_LIB_PATH) \
17635 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17638 .PHONY: install-guile maybe-install-guile
17639 maybe-install-guile:
17641 install-guile: installdirs
17642 @r=`${PWD_COMMAND}`; export r; \
17643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17644 $(SET_LIB_PATH) \
17645 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17648 # Other targets (info, dvi, etc.)
17650 .PHONY: maybe-info-guile info-guile
17651 maybe-info-guile:
17653 info-guile: \
17654 configure-guile
17655 @[ -f ./guile/Makefile ] || exit 0; \
17656 r=`${PWD_COMMAND}`; export r; \
17657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17658 $(SET_LIB_PATH) \
17659 for flag in $(EXTRA_HOST_FLAGS); do \
17660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17661 done; \
17662 echo "Doing info in guile" ; \
17663 (cd guile && \
17664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17666 "RANLIB=$${RANLIB}" \
17667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17668 info) \
17669 || exit 1
17672 .PHONY: maybe-dvi-guile dvi-guile
17673 maybe-dvi-guile:
17675 dvi-guile: \
17676 configure-guile
17677 @[ -f ./guile/Makefile ] || exit 0; \
17678 r=`${PWD_COMMAND}`; export r; \
17679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17680 $(SET_LIB_PATH) \
17681 for flag in $(EXTRA_HOST_FLAGS); do \
17682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17683 done; \
17684 echo "Doing dvi in guile" ; \
17685 (cd guile && \
17686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17688 "RANLIB=$${RANLIB}" \
17689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17690 dvi) \
17691 || exit 1
17694 .PHONY: maybe-TAGS-guile TAGS-guile
17695 maybe-TAGS-guile:
17697 TAGS-guile: \
17698 configure-guile
17699 @[ -f ./guile/Makefile ] || exit 0; \
17700 r=`${PWD_COMMAND}`; export r; \
17701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17702 $(SET_LIB_PATH) \
17703 for flag in $(EXTRA_HOST_FLAGS); do \
17704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17705 done; \
17706 echo "Doing TAGS in guile" ; \
17707 (cd guile && \
17708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17710 "RANLIB=$${RANLIB}" \
17711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17712 TAGS) \
17713 || exit 1
17716 .PHONY: maybe-install-info-guile install-info-guile
17717 maybe-install-info-guile:
17719 install-info-guile: \
17720 configure-guile \
17721 info-guile
17722 @[ -f ./guile/Makefile ] || exit 0; \
17723 r=`${PWD_COMMAND}`; export r; \
17724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17725 $(SET_LIB_PATH) \
17726 for flag in $(EXTRA_HOST_FLAGS); do \
17727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17728 done; \
17729 echo "Doing install-info in guile" ; \
17730 (cd guile && \
17731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17733 "RANLIB=$${RANLIB}" \
17734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17735 install-info) \
17736 || exit 1
17739 .PHONY: maybe-installcheck-guile installcheck-guile
17740 maybe-installcheck-guile:
17742 installcheck-guile: \
17743 configure-guile
17744 @[ -f ./guile/Makefile ] || exit 0; \
17745 r=`${PWD_COMMAND}`; export r; \
17746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17747 $(SET_LIB_PATH) \
17748 for flag in $(EXTRA_HOST_FLAGS); do \
17749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17750 done; \
17751 echo "Doing installcheck in guile" ; \
17752 (cd guile && \
17753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17755 "RANLIB=$${RANLIB}" \
17756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17757 installcheck) \
17758 || exit 1
17761 .PHONY: maybe-mostlyclean-guile mostlyclean-guile
17762 maybe-mostlyclean-guile:
17764 mostlyclean-guile:
17765 @[ -f ./guile/Makefile ] || exit 0; \
17766 r=`${PWD_COMMAND}`; export r; \
17767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17768 $(SET_LIB_PATH) \
17769 for flag in $(EXTRA_HOST_FLAGS); do \
17770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17771 done; \
17772 echo "Doing mostlyclean in guile" ; \
17773 (cd guile && \
17774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17776 "RANLIB=$${RANLIB}" \
17777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17778 mostlyclean) \
17779 || exit 1
17782 .PHONY: maybe-clean-guile clean-guile
17783 maybe-clean-guile:
17785 clean-guile:
17786 @[ -f ./guile/Makefile ] || exit 0; \
17787 r=`${PWD_COMMAND}`; export r; \
17788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17789 $(SET_LIB_PATH) \
17790 for flag in $(EXTRA_HOST_FLAGS); do \
17791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17792 done; \
17793 echo "Doing clean in guile" ; \
17794 (cd guile && \
17795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17797 "RANLIB=$${RANLIB}" \
17798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17799 clean) \
17800 || exit 1
17803 .PHONY: maybe-distclean-guile distclean-guile
17804 maybe-distclean-guile:
17806 distclean-guile:
17807 @[ -f ./guile/Makefile ] || exit 0; \
17808 r=`${PWD_COMMAND}`; export r; \
17809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17810 $(SET_LIB_PATH) \
17811 for flag in $(EXTRA_HOST_FLAGS); do \
17812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17813 done; \
17814 echo "Doing distclean in guile" ; \
17815 (cd guile && \
17816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17818 "RANLIB=$${RANLIB}" \
17819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17820 distclean) \
17821 || exit 1
17824 .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
17825 maybe-maintainer-clean-guile:
17827 maintainer-clean-guile:
17828 @[ -f ./guile/Makefile ] || exit 0; \
17829 r=`${PWD_COMMAND}`; export r; \
17830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17831 $(SET_LIB_PATH) \
17832 for flag in $(EXTRA_HOST_FLAGS); do \
17833 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17834 done; \
17835 echo "Doing maintainer-clean in guile" ; \
17836 (cd guile && \
17837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17839 "RANLIB=$${RANLIB}" \
17840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17841 maintainer-clean) \
17842 || exit 1
17846 .PHONY: configure-tk maybe-configure-tk
17847 maybe-configure-tk:
17848 configure-tk:
17849 @test ! -f tk/Makefile || exit 0; \
17850 [ -d tk ] || mkdir tk; \
17851 r=`${PWD_COMMAND}`; export r; \
17852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17853 CC="$(CC)"; export CC; \
17854 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17855 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17856 CXX="$(CXX)"; export CXX; \
17857 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17858 AR="$(AR)"; export AR; \
17859 AS="$(AS)"; export AS; \
17860 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17861 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17862 LD="$(LD)"; export LD; \
17863 NM="$(NM)"; export NM; \
17864 RANLIB="$(RANLIB)"; export RANLIB; \
17865 WINDRES="$(WINDRES)"; export WINDRES; \
17866 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17867 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17868 echo Configuring in tk; \
17869 cd tk || exit 1; \
17870 case $(srcdir) in \
17871 \.) \
17872 srcdiroption="--srcdir=."; \
17873 libsrcdir=".";; \
17874 /* | [A-Za-z]:[\\/]*) \
17875 srcdiroption="--srcdir=$(srcdir)/tk"; \
17876 libsrcdir="$$s/tk";; \
17877 *) \
17878 srcdiroption="--srcdir=../$(srcdir)/tk"; \
17879 libsrcdir="$$s/tk";; \
17880 esac; \
17881 $(SHELL) $${libsrcdir}/configure \
17882 $(HOST_CONFIGARGS) $${srcdiroption} \
17883 || exit 1
17885 .PHONY: all-tk maybe-all-tk
17886 maybe-all-tk:
17887 all-tk: configure-tk
17888 @r=`${PWD_COMMAND}`; export r; \
17889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17890 $(SET_LIB_PATH) \
17891 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17893 .PHONY: check-tk maybe-check-tk
17894 maybe-check-tk:
17896 check-tk:
17897 @r=`${PWD_COMMAND}`; export r; \
17898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17899 $(SET_LIB_PATH) \
17900 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17903 .PHONY: install-tk maybe-install-tk
17904 maybe-install-tk:
17906 install-tk: installdirs
17907 @r=`${PWD_COMMAND}`; export r; \
17908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17909 $(SET_LIB_PATH) \
17910 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17913 # Other targets (info, dvi, etc.)
17915 .PHONY: maybe-info-tk info-tk
17916 maybe-info-tk:
17918 info-tk: \
17919 configure-tk
17920 @[ -f ./tk/Makefile ] || exit 0; \
17921 r=`${PWD_COMMAND}`; export r; \
17922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17923 $(SET_LIB_PATH) \
17924 for flag in $(EXTRA_HOST_FLAGS); do \
17925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17926 done; \
17927 echo "Doing info in tk" ; \
17928 (cd tk && \
17929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17931 "RANLIB=$${RANLIB}" \
17932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17933 info) \
17934 || exit 1
17937 .PHONY: maybe-dvi-tk dvi-tk
17938 maybe-dvi-tk:
17940 dvi-tk: \
17941 configure-tk
17942 @[ -f ./tk/Makefile ] || exit 0; \
17943 r=`${PWD_COMMAND}`; export r; \
17944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17945 $(SET_LIB_PATH) \
17946 for flag in $(EXTRA_HOST_FLAGS); do \
17947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17948 done; \
17949 echo "Doing dvi in tk" ; \
17950 (cd tk && \
17951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17953 "RANLIB=$${RANLIB}" \
17954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17955 dvi) \
17956 || exit 1
17959 .PHONY: maybe-TAGS-tk TAGS-tk
17960 maybe-TAGS-tk:
17962 TAGS-tk: \
17963 configure-tk
17964 @[ -f ./tk/Makefile ] || exit 0; \
17965 r=`${PWD_COMMAND}`; export r; \
17966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17967 $(SET_LIB_PATH) \
17968 for flag in $(EXTRA_HOST_FLAGS); do \
17969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17970 done; \
17971 echo "Doing TAGS in tk" ; \
17972 (cd tk && \
17973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17975 "RANLIB=$${RANLIB}" \
17976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17977 TAGS) \
17978 || exit 1
17981 .PHONY: maybe-install-info-tk install-info-tk
17982 maybe-install-info-tk:
17984 install-info-tk: \
17985 configure-tk \
17986 info-tk
17987 @[ -f ./tk/Makefile ] || exit 0; \
17988 r=`${PWD_COMMAND}`; export r; \
17989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17990 $(SET_LIB_PATH) \
17991 for flag in $(EXTRA_HOST_FLAGS); do \
17992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17993 done; \
17994 echo "Doing install-info in tk" ; \
17995 (cd tk && \
17996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17998 "RANLIB=$${RANLIB}" \
17999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18000 install-info) \
18001 || exit 1
18004 .PHONY: maybe-installcheck-tk installcheck-tk
18005 maybe-installcheck-tk:
18007 installcheck-tk: \
18008 configure-tk
18009 @[ -f ./tk/Makefile ] || exit 0; \
18010 r=`${PWD_COMMAND}`; export r; \
18011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18012 $(SET_LIB_PATH) \
18013 for flag in $(EXTRA_HOST_FLAGS); do \
18014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18015 done; \
18016 echo "Doing installcheck in tk" ; \
18017 (cd tk && \
18018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18020 "RANLIB=$${RANLIB}" \
18021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18022 installcheck) \
18023 || exit 1
18026 .PHONY: maybe-mostlyclean-tk mostlyclean-tk
18027 maybe-mostlyclean-tk:
18029 mostlyclean-tk:
18030 @[ -f ./tk/Makefile ] || exit 0; \
18031 r=`${PWD_COMMAND}`; export r; \
18032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18033 $(SET_LIB_PATH) \
18034 for flag in $(EXTRA_HOST_FLAGS); do \
18035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18036 done; \
18037 echo "Doing mostlyclean in tk" ; \
18038 (cd tk && \
18039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18041 "RANLIB=$${RANLIB}" \
18042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18043 mostlyclean) \
18044 || exit 1
18047 .PHONY: maybe-clean-tk clean-tk
18048 maybe-clean-tk:
18050 clean-tk:
18051 @[ -f ./tk/Makefile ] || exit 0; \
18052 r=`${PWD_COMMAND}`; export r; \
18053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18054 $(SET_LIB_PATH) \
18055 for flag in $(EXTRA_HOST_FLAGS); do \
18056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18057 done; \
18058 echo "Doing clean in tk" ; \
18059 (cd tk && \
18060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18062 "RANLIB=$${RANLIB}" \
18063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18064 clean) \
18065 || exit 1
18068 .PHONY: maybe-distclean-tk distclean-tk
18069 maybe-distclean-tk:
18071 distclean-tk:
18072 @[ -f ./tk/Makefile ] || exit 0; \
18073 r=`${PWD_COMMAND}`; export r; \
18074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18075 $(SET_LIB_PATH) \
18076 for flag in $(EXTRA_HOST_FLAGS); do \
18077 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18078 done; \
18079 echo "Doing distclean in tk" ; \
18080 (cd tk && \
18081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18083 "RANLIB=$${RANLIB}" \
18084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18085 distclean) \
18086 || exit 1
18089 .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
18090 maybe-maintainer-clean-tk:
18092 maintainer-clean-tk:
18093 @[ -f ./tk/Makefile ] || exit 0; \
18094 r=`${PWD_COMMAND}`; export r; \
18095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18096 $(SET_LIB_PATH) \
18097 for flag in $(EXTRA_HOST_FLAGS); do \
18098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18099 done; \
18100 echo "Doing maintainer-clean in tk" ; \
18101 (cd tk && \
18102 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18103 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18104 "RANLIB=$${RANLIB}" \
18105 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18106 maintainer-clean) \
18107 || exit 1
18111 .PHONY: configure-tix maybe-configure-tix
18112 maybe-configure-tix:
18113 configure-tix:
18114 @test ! -f tix/Makefile || exit 0; \
18115 [ -d tix ] || mkdir tix; \
18116 r=`${PWD_COMMAND}`; export r; \
18117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18118 CC="$(CC)"; export CC; \
18119 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18120 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18121 CXX="$(CXX)"; export CXX; \
18122 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18123 AR="$(AR)"; export AR; \
18124 AS="$(AS)"; export AS; \
18125 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18126 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18127 LD="$(LD)"; export LD; \
18128 NM="$(NM)"; export NM; \
18129 RANLIB="$(RANLIB)"; export RANLIB; \
18130 WINDRES="$(WINDRES)"; export WINDRES; \
18131 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18132 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18133 echo Configuring in tix; \
18134 cd tix || exit 1; \
18135 case $(srcdir) in \
18136 \.) \
18137 srcdiroption="--srcdir=."; \
18138 libsrcdir=".";; \
18139 /* | [A-Za-z]:[\\/]*) \
18140 srcdiroption="--srcdir=$(srcdir)/tix"; \
18141 libsrcdir="$$s/tix";; \
18142 *) \
18143 srcdiroption="--srcdir=../$(srcdir)/tix"; \
18144 libsrcdir="$$s/tix";; \
18145 esac; \
18146 $(SHELL) $${libsrcdir}/configure \
18147 $(HOST_CONFIGARGS) $${srcdiroption} \
18148 || exit 1
18150 .PHONY: all-tix maybe-all-tix
18151 maybe-all-tix:
18152 all-tix: configure-tix
18153 @r=`${PWD_COMMAND}`; export r; \
18154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18155 $(SET_LIB_PATH) \
18156 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
18158 .PHONY: check-tix maybe-check-tix
18159 maybe-check-tix:
18161 check-tix:
18162 @r=`${PWD_COMMAND}`; export r; \
18163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18164 $(SET_LIB_PATH) \
18165 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
18168 .PHONY: install-tix maybe-install-tix
18169 maybe-install-tix:
18171 install-tix: installdirs
18172 @r=`${PWD_COMMAND}`; export r; \
18173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18174 $(SET_LIB_PATH) \
18175 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
18178 # Other targets (info, dvi, etc.)
18180 .PHONY: maybe-info-tix info-tix
18181 maybe-info-tix:
18183 info-tix: \
18184 configure-tix
18185 @[ -f ./tix/Makefile ] || exit 0; \
18186 r=`${PWD_COMMAND}`; export r; \
18187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18188 $(SET_LIB_PATH) \
18189 for flag in $(EXTRA_HOST_FLAGS); do \
18190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18191 done; \
18192 echo "Doing info in tix" ; \
18193 (cd tix && \
18194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18196 "RANLIB=$${RANLIB}" \
18197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18198 info) \
18199 || exit 1
18202 .PHONY: maybe-dvi-tix dvi-tix
18203 maybe-dvi-tix:
18205 dvi-tix: \
18206 configure-tix
18207 @[ -f ./tix/Makefile ] || exit 0; \
18208 r=`${PWD_COMMAND}`; export r; \
18209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18210 $(SET_LIB_PATH) \
18211 for flag in $(EXTRA_HOST_FLAGS); do \
18212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18213 done; \
18214 echo "Doing dvi in tix" ; \
18215 (cd tix && \
18216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18218 "RANLIB=$${RANLIB}" \
18219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18220 dvi) \
18221 || exit 1
18224 .PHONY: maybe-TAGS-tix TAGS-tix
18225 maybe-TAGS-tix:
18227 TAGS-tix: \
18228 configure-tix
18229 @[ -f ./tix/Makefile ] || exit 0; \
18230 r=`${PWD_COMMAND}`; export r; \
18231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18232 $(SET_LIB_PATH) \
18233 for flag in $(EXTRA_HOST_FLAGS); do \
18234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18235 done; \
18236 echo "Doing TAGS in tix" ; \
18237 (cd tix && \
18238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18240 "RANLIB=$${RANLIB}" \
18241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18242 TAGS) \
18243 || exit 1
18246 .PHONY: maybe-install-info-tix install-info-tix
18247 maybe-install-info-tix:
18249 install-info-tix: \
18250 configure-tix \
18251 info-tix
18252 @[ -f ./tix/Makefile ] || exit 0; \
18253 r=`${PWD_COMMAND}`; export r; \
18254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18255 $(SET_LIB_PATH) \
18256 for flag in $(EXTRA_HOST_FLAGS); do \
18257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18258 done; \
18259 echo "Doing install-info in tix" ; \
18260 (cd tix && \
18261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18263 "RANLIB=$${RANLIB}" \
18264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18265 install-info) \
18266 || exit 1
18269 .PHONY: maybe-installcheck-tix installcheck-tix
18270 maybe-installcheck-tix:
18272 installcheck-tix: \
18273 configure-tix
18274 @[ -f ./tix/Makefile ] || exit 0; \
18275 r=`${PWD_COMMAND}`; export r; \
18276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18277 $(SET_LIB_PATH) \
18278 for flag in $(EXTRA_HOST_FLAGS); do \
18279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18280 done; \
18281 echo "Doing installcheck in tix" ; \
18282 (cd tix && \
18283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18285 "RANLIB=$${RANLIB}" \
18286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18287 installcheck) \
18288 || exit 1
18291 .PHONY: maybe-mostlyclean-tix mostlyclean-tix
18292 maybe-mostlyclean-tix:
18294 mostlyclean-tix:
18295 @[ -f ./tix/Makefile ] || exit 0; \
18296 r=`${PWD_COMMAND}`; export r; \
18297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18298 $(SET_LIB_PATH) \
18299 for flag in $(EXTRA_HOST_FLAGS); do \
18300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18301 done; \
18302 echo "Doing mostlyclean in tix" ; \
18303 (cd tix && \
18304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18306 "RANLIB=$${RANLIB}" \
18307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18308 mostlyclean) \
18309 || exit 1
18312 .PHONY: maybe-clean-tix clean-tix
18313 maybe-clean-tix:
18315 clean-tix:
18316 @[ -f ./tix/Makefile ] || exit 0; \
18317 r=`${PWD_COMMAND}`; export r; \
18318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18319 $(SET_LIB_PATH) \
18320 for flag in $(EXTRA_HOST_FLAGS); do \
18321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18322 done; \
18323 echo "Doing clean in tix" ; \
18324 (cd tix && \
18325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18327 "RANLIB=$${RANLIB}" \
18328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18329 clean) \
18330 || exit 1
18333 .PHONY: maybe-distclean-tix distclean-tix
18334 maybe-distclean-tix:
18336 distclean-tix:
18337 @[ -f ./tix/Makefile ] || exit 0; \
18338 r=`${PWD_COMMAND}`; export r; \
18339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18340 $(SET_LIB_PATH) \
18341 for flag in $(EXTRA_HOST_FLAGS); do \
18342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18343 done; \
18344 echo "Doing distclean in tix" ; \
18345 (cd tix && \
18346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18348 "RANLIB=$${RANLIB}" \
18349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18350 distclean) \
18351 || exit 1
18354 .PHONY: maybe-maintainer-clean-tix maintainer-clean-tix
18355 maybe-maintainer-clean-tix:
18357 maintainer-clean-tix:
18358 @[ -f ./tix/Makefile ] || exit 0; \
18359 r=`${PWD_COMMAND}`; export r; \
18360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18361 $(SET_LIB_PATH) \
18362 for flag in $(EXTRA_HOST_FLAGS); do \
18363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18364 done; \
18365 echo "Doing maintainer-clean in tix" ; \
18366 (cd tix && \
18367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18369 "RANLIB=$${RANLIB}" \
18370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18371 maintainer-clean) \
18372 || exit 1
18376 .PHONY: configure-libtermcap maybe-configure-libtermcap
18377 maybe-configure-libtermcap:
18378 configure-libtermcap:
18379 @test ! -f libtermcap/Makefile || exit 0; \
18380 [ -d libtermcap ] || mkdir libtermcap; \
18381 r=`${PWD_COMMAND}`; export r; \
18382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18383 CC="$(CC)"; export CC; \
18384 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18385 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18386 CXX="$(CXX)"; export CXX; \
18387 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18388 AR="$(AR)"; export AR; \
18389 AS="$(AS)"; export AS; \
18390 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18391 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18392 LD="$(LD)"; export LD; \
18393 NM="$(NM)"; export NM; \
18394 RANLIB="$(RANLIB)"; export RANLIB; \
18395 WINDRES="$(WINDRES)"; export WINDRES; \
18396 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18397 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18398 echo Configuring in libtermcap; \
18399 cd libtermcap || exit 1; \
18400 case $(srcdir) in \
18401 \.) \
18402 srcdiroption="--srcdir=."; \
18403 libsrcdir=".";; \
18404 /* | [A-Za-z]:[\\/]*) \
18405 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
18406 libsrcdir="$$s/libtermcap";; \
18407 *) \
18408 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
18409 libsrcdir="$$s/libtermcap";; \
18410 esac; \
18411 $(SHELL) $${libsrcdir}/configure \
18412 $(HOST_CONFIGARGS) $${srcdiroption} \
18413 || exit 1
18415 .PHONY: all-libtermcap maybe-all-libtermcap
18416 maybe-all-libtermcap:
18417 all-libtermcap: configure-libtermcap
18418 @r=`${PWD_COMMAND}`; export r; \
18419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18420 $(SET_LIB_PATH) \
18421 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
18423 .PHONY: check-libtermcap maybe-check-libtermcap
18424 maybe-check-libtermcap:
18426 check-libtermcap:
18429 .PHONY: install-libtermcap maybe-install-libtermcap
18430 maybe-install-libtermcap:
18432 install-libtermcap: installdirs
18433 @r=`${PWD_COMMAND}`; export r; \
18434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18435 $(SET_LIB_PATH) \
18436 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
18439 # Other targets (info, dvi, etc.)
18441 .PHONY: maybe-info-libtermcap info-libtermcap
18442 maybe-info-libtermcap:
18444 info-libtermcap: \
18445 configure-libtermcap
18446 @[ -f ./libtermcap/Makefile ] || exit 0; \
18447 r=`${PWD_COMMAND}`; export r; \
18448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18449 $(SET_LIB_PATH) \
18450 for flag in $(EXTRA_HOST_FLAGS); do \
18451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18452 done; \
18453 echo "Doing info in libtermcap" ; \
18454 (cd libtermcap && \
18455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18457 "RANLIB=$${RANLIB}" \
18458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18459 info) \
18460 || exit 1
18463 .PHONY: maybe-dvi-libtermcap dvi-libtermcap
18464 maybe-dvi-libtermcap:
18466 dvi-libtermcap: \
18467 configure-libtermcap
18468 @[ -f ./libtermcap/Makefile ] || exit 0; \
18469 r=`${PWD_COMMAND}`; export r; \
18470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18471 $(SET_LIB_PATH) \
18472 for flag in $(EXTRA_HOST_FLAGS); do \
18473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18474 done; \
18475 echo "Doing dvi in libtermcap" ; \
18476 (cd libtermcap && \
18477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18479 "RANLIB=$${RANLIB}" \
18480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18481 dvi) \
18482 || exit 1
18485 .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
18486 maybe-TAGS-libtermcap:
18488 TAGS-libtermcap: \
18489 configure-libtermcap
18490 @[ -f ./libtermcap/Makefile ] || exit 0; \
18491 r=`${PWD_COMMAND}`; export r; \
18492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18493 $(SET_LIB_PATH) \
18494 for flag in $(EXTRA_HOST_FLAGS); do \
18495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18496 done; \
18497 echo "Doing TAGS in libtermcap" ; \
18498 (cd libtermcap && \
18499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18501 "RANLIB=$${RANLIB}" \
18502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18503 TAGS) \
18504 || exit 1
18507 .PHONY: maybe-install-info-libtermcap install-info-libtermcap
18508 maybe-install-info-libtermcap:
18510 install-info-libtermcap: \
18511 configure-libtermcap \
18512 info-libtermcap
18513 @[ -f ./libtermcap/Makefile ] || exit 0; \
18514 r=`${PWD_COMMAND}`; export r; \
18515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18516 $(SET_LIB_PATH) \
18517 for flag in $(EXTRA_HOST_FLAGS); do \
18518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18519 done; \
18520 echo "Doing install-info in libtermcap" ; \
18521 (cd libtermcap && \
18522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18524 "RANLIB=$${RANLIB}" \
18525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18526 install-info) \
18527 || exit 1
18530 .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
18531 maybe-installcheck-libtermcap:
18533 installcheck-libtermcap: \
18534 configure-libtermcap
18535 @[ -f ./libtermcap/Makefile ] || exit 0; \
18536 r=`${PWD_COMMAND}`; export r; \
18537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18538 $(SET_LIB_PATH) \
18539 for flag in $(EXTRA_HOST_FLAGS); do \
18540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18541 done; \
18542 echo "Doing installcheck in libtermcap" ; \
18543 (cd libtermcap && \
18544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18546 "RANLIB=$${RANLIB}" \
18547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18548 installcheck) \
18549 || exit 1
18552 .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
18553 maybe-mostlyclean-libtermcap:
18555 # libtermcap doesn't support mostlyclean.
18556 mostlyclean-libtermcap:
18559 .PHONY: maybe-clean-libtermcap clean-libtermcap
18560 maybe-clean-libtermcap:
18562 # libtermcap doesn't support clean.
18563 clean-libtermcap:
18566 .PHONY: maybe-distclean-libtermcap distclean-libtermcap
18567 maybe-distclean-libtermcap:
18569 # libtermcap doesn't support distclean.
18570 distclean-libtermcap:
18573 .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
18574 maybe-maintainer-clean-libtermcap:
18576 # libtermcap doesn't support maintainer-clean.
18577 maintainer-clean-libtermcap:
18581 .PHONY: configure-utils maybe-configure-utils
18582 maybe-configure-utils:
18583 configure-utils:
18584 @test ! -f utils/Makefile || exit 0; \
18585 [ -d utils ] || mkdir utils; \
18586 r=`${PWD_COMMAND}`; export r; \
18587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18588 CC="$(CC)"; export CC; \
18589 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18590 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18591 CXX="$(CXX)"; export CXX; \
18592 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18593 AR="$(AR)"; export AR; \
18594 AS="$(AS)"; export AS; \
18595 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18596 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18597 LD="$(LD)"; export LD; \
18598 NM="$(NM)"; export NM; \
18599 RANLIB="$(RANLIB)"; export RANLIB; \
18600 WINDRES="$(WINDRES)"; export WINDRES; \
18601 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18602 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18603 echo Configuring in utils; \
18604 cd utils || exit 1; \
18605 case $(srcdir) in \
18606 \.) \
18607 srcdiroption="--srcdir=."; \
18608 libsrcdir=".";; \
18609 /* | [A-Za-z]:[\\/]*) \
18610 srcdiroption="--srcdir=$(srcdir)/utils"; \
18611 libsrcdir="$$s/utils";; \
18612 *) \
18613 srcdiroption="--srcdir=../$(srcdir)/utils"; \
18614 libsrcdir="$$s/utils";; \
18615 esac; \
18616 $(SHELL) $${libsrcdir}/configure \
18617 $(HOST_CONFIGARGS) $${srcdiroption} \
18618 || exit 1
18620 .PHONY: all-utils maybe-all-utils
18621 maybe-all-utils:
18622 all-utils: configure-utils
18623 @r=`${PWD_COMMAND}`; export r; \
18624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18625 $(SET_LIB_PATH) \
18626 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
18628 .PHONY: check-utils maybe-check-utils
18629 maybe-check-utils:
18631 check-utils:
18634 .PHONY: install-utils maybe-install-utils
18635 maybe-install-utils:
18637 install-utils: installdirs
18638 @r=`${PWD_COMMAND}`; export r; \
18639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18640 $(SET_LIB_PATH) \
18641 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
18644 # Other targets (info, dvi, etc.)
18646 .PHONY: maybe-info-utils info-utils
18647 maybe-info-utils:
18649 info-utils: \
18650 configure-utils
18651 @[ -f ./utils/Makefile ] || exit 0; \
18652 r=`${PWD_COMMAND}`; export r; \
18653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18654 $(SET_LIB_PATH) \
18655 for flag in $(EXTRA_HOST_FLAGS); do \
18656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18657 done; \
18658 echo "Doing info in utils" ; \
18659 (cd utils && \
18660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18662 "RANLIB=$${RANLIB}" \
18663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18664 info) \
18665 || exit 1
18668 .PHONY: maybe-dvi-utils dvi-utils
18669 maybe-dvi-utils:
18671 dvi-utils: \
18672 configure-utils
18673 @[ -f ./utils/Makefile ] || exit 0; \
18674 r=`${PWD_COMMAND}`; export r; \
18675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18676 $(SET_LIB_PATH) \
18677 for flag in $(EXTRA_HOST_FLAGS); do \
18678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18679 done; \
18680 echo "Doing dvi in utils" ; \
18681 (cd utils && \
18682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18684 "RANLIB=$${RANLIB}" \
18685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18686 dvi) \
18687 || exit 1
18690 .PHONY: maybe-TAGS-utils TAGS-utils
18691 maybe-TAGS-utils:
18693 TAGS-utils: \
18694 configure-utils
18695 @[ -f ./utils/Makefile ] || exit 0; \
18696 r=`${PWD_COMMAND}`; export r; \
18697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18698 $(SET_LIB_PATH) \
18699 for flag in $(EXTRA_HOST_FLAGS); do \
18700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18701 done; \
18702 echo "Doing TAGS in utils" ; \
18703 (cd utils && \
18704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18706 "RANLIB=$${RANLIB}" \
18707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18708 TAGS) \
18709 || exit 1
18712 .PHONY: maybe-install-info-utils install-info-utils
18713 maybe-install-info-utils:
18715 install-info-utils: \
18716 configure-utils \
18717 info-utils
18718 @[ -f ./utils/Makefile ] || exit 0; \
18719 r=`${PWD_COMMAND}`; export r; \
18720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18721 $(SET_LIB_PATH) \
18722 for flag in $(EXTRA_HOST_FLAGS); do \
18723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18724 done; \
18725 echo "Doing install-info in utils" ; \
18726 (cd utils && \
18727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18729 "RANLIB=$${RANLIB}" \
18730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18731 install-info) \
18732 || exit 1
18735 .PHONY: maybe-installcheck-utils installcheck-utils
18736 maybe-installcheck-utils:
18738 installcheck-utils: \
18739 configure-utils
18740 @[ -f ./utils/Makefile ] || exit 0; \
18741 r=`${PWD_COMMAND}`; export r; \
18742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18743 $(SET_LIB_PATH) \
18744 for flag in $(EXTRA_HOST_FLAGS); do \
18745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18746 done; \
18747 echo "Doing installcheck in utils" ; \
18748 (cd utils && \
18749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18751 "RANLIB=$${RANLIB}" \
18752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18753 installcheck) \
18754 || exit 1
18757 .PHONY: maybe-mostlyclean-utils mostlyclean-utils
18758 maybe-mostlyclean-utils:
18760 mostlyclean-utils:
18761 @[ -f ./utils/Makefile ] || exit 0; \
18762 r=`${PWD_COMMAND}`; export r; \
18763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18764 $(SET_LIB_PATH) \
18765 for flag in $(EXTRA_HOST_FLAGS); do \
18766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18767 done; \
18768 echo "Doing mostlyclean in utils" ; \
18769 (cd utils && \
18770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18772 "RANLIB=$${RANLIB}" \
18773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18774 mostlyclean) \
18775 || exit 1
18778 .PHONY: maybe-clean-utils clean-utils
18779 maybe-clean-utils:
18781 clean-utils:
18782 @[ -f ./utils/Makefile ] || exit 0; \
18783 r=`${PWD_COMMAND}`; export r; \
18784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18785 $(SET_LIB_PATH) \
18786 for flag in $(EXTRA_HOST_FLAGS); do \
18787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18788 done; \
18789 echo "Doing clean in utils" ; \
18790 (cd utils && \
18791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18793 "RANLIB=$${RANLIB}" \
18794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18795 clean) \
18796 || exit 1
18799 .PHONY: maybe-distclean-utils distclean-utils
18800 maybe-distclean-utils:
18802 distclean-utils:
18803 @[ -f ./utils/Makefile ] || exit 0; \
18804 r=`${PWD_COMMAND}`; export r; \
18805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18806 $(SET_LIB_PATH) \
18807 for flag in $(EXTRA_HOST_FLAGS); do \
18808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18809 done; \
18810 echo "Doing distclean in utils" ; \
18811 (cd utils && \
18812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18814 "RANLIB=$${RANLIB}" \
18815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18816 distclean) \
18817 || exit 1
18820 .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
18821 maybe-maintainer-clean-utils:
18823 maintainer-clean-utils:
18824 @[ -f ./utils/Makefile ] || exit 0; \
18825 r=`${PWD_COMMAND}`; export r; \
18826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18827 $(SET_LIB_PATH) \
18828 for flag in $(EXTRA_HOST_FLAGS); do \
18829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18830 done; \
18831 echo "Doing maintainer-clean in utils" ; \
18832 (cd utils && \
18833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18835 "RANLIB=$${RANLIB}" \
18836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18837 maintainer-clean) \
18838 || exit 1
18843 # ---------------------------------------
18844 # Modules which run on the target machine
18845 # ---------------------------------------
18847 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
18848 maybe-configure-target-libstdc++-v3:
18850 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
18851 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
18852 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
18853 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
18854 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
18856 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
18857 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
18858 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
18859 r=`${PWD_COMMAND}`; export r; \
18860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18861 $(SET_LIB_PATH) \
18862 AR="$(AR_FOR_TARGET)"; export AR; \
18863 AS="$(AS_FOR_TARGET)"; export AS; \
18864 CC="$(CC_FOR_TARGET)"; export CC; \
18865 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
18866 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18867 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
18868 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
18869 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
18870 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
18871 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
18872 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
18873 LD="$(LD_FOR_TARGET)"; export LD; \
18874 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
18875 NM="$(NM_FOR_TARGET)"; export NM; \
18876 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
18877 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
18878 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
18879 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
18880 case $(srcdir) in \
18881 /* | [A-Za-z]:[\\/]*) \
18882 topdir=$(srcdir) ;; \
18883 *) \
18884 case "$(TARGET_SUBDIR)" in \
18885 .) topdir="../$(srcdir)" ;; \
18886 *) topdir="../../$(srcdir)" ;; \
18887 esac ;; \
18888 esac; \
18889 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
18890 libsrcdir="$$s/libstdc++-v3"; \
18891 rm -f no-such-file || : ; \
18892 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
18893 $(TARGET_CONFIGARGS) $${srcdiroption} \
18894 --with-target-subdir="$(TARGET_SUBDIR)" \
18895 || exit 1
18897 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
18898 maybe-all-target-libstdc++-v3:
18899 all-target-libstdc++-v3: configure-target-libstdc++-v3
18900 @r=`${PWD_COMMAND}`; export r; \
18901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18902 $(SET_LIB_PATH) \
18903 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18904 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
18906 .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
18907 maybe-check-target-libstdc++-v3:
18909 check-target-libstdc++-v3:
18910 @r=`${PWD_COMMAND}`; export r; \
18911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18912 $(SET_LIB_PATH) \
18913 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18914 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
18917 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
18918 maybe-install-target-libstdc++-v3:
18920 install-target-libstdc++-v3: installdirs
18921 @r=`${PWD_COMMAND}`; export r; \
18922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18923 $(SET_LIB_PATH) \
18924 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18925 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
18928 # Other targets (info, dvi, etc.)
18930 .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
18931 maybe-info-target-libstdc++-v3:
18933 info-target-libstdc++-v3: \
18934 configure-target-libstdc++-v3
18935 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18936 r=`${PWD_COMMAND}`; export r; \
18937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18938 $(SET_LIB_PATH) \
18939 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18940 for flag in $(EXTRA_TARGET_FLAGS); do \
18941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18942 done; \
18943 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18946 "RANLIB=$${RANLIB}" \
18947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18948 info) \
18949 || exit 1
18952 .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
18953 maybe-dvi-target-libstdc++-v3:
18955 dvi-target-libstdc++-v3: \
18956 configure-target-libstdc++-v3
18957 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18958 r=`${PWD_COMMAND}`; export r; \
18959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18960 $(SET_LIB_PATH) \
18961 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18962 for flag in $(EXTRA_TARGET_FLAGS); do \
18963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18964 done; \
18965 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18968 "RANLIB=$${RANLIB}" \
18969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18970 dvi) \
18971 || exit 1
18974 .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
18975 maybe-TAGS-target-libstdc++-v3:
18977 TAGS-target-libstdc++-v3: \
18978 configure-target-libstdc++-v3
18979 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18980 r=`${PWD_COMMAND}`; export r; \
18981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18982 $(SET_LIB_PATH) \
18983 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18984 for flag in $(EXTRA_TARGET_FLAGS); do \
18985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18986 done; \
18987 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18990 "RANLIB=$${RANLIB}" \
18991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18992 TAGS) \
18993 || exit 1
18996 .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
18997 maybe-install-info-target-libstdc++-v3:
18999 install-info-target-libstdc++-v3: \
19000 configure-target-libstdc++-v3 \
19001 info-target-libstdc++-v3
19002 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19003 r=`${PWD_COMMAND}`; export r; \
19004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19005 $(SET_LIB_PATH) \
19006 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19007 for flag in $(EXTRA_TARGET_FLAGS); do \
19008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19009 done; \
19010 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19013 "RANLIB=$${RANLIB}" \
19014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19015 install-info) \
19016 || exit 1
19019 .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
19020 maybe-installcheck-target-libstdc++-v3:
19022 installcheck-target-libstdc++-v3: \
19023 configure-target-libstdc++-v3
19024 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19025 r=`${PWD_COMMAND}`; export r; \
19026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19027 $(SET_LIB_PATH) \
19028 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19029 for flag in $(EXTRA_TARGET_FLAGS); do \
19030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19031 done; \
19032 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19035 "RANLIB=$${RANLIB}" \
19036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19037 installcheck) \
19038 || exit 1
19041 .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
19042 maybe-mostlyclean-target-libstdc++-v3:
19044 mostlyclean-target-libstdc++-v3:
19045 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19046 r=`${PWD_COMMAND}`; export r; \
19047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19048 $(SET_LIB_PATH) \
19049 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19050 for flag in $(EXTRA_TARGET_FLAGS); do \
19051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19052 done; \
19053 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19056 "RANLIB=$${RANLIB}" \
19057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19058 mostlyclean) \
19059 || exit 1
19062 .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
19063 maybe-clean-target-libstdc++-v3:
19065 clean-target-libstdc++-v3:
19066 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19067 r=`${PWD_COMMAND}`; export r; \
19068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19069 $(SET_LIB_PATH) \
19070 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19071 for flag in $(EXTRA_TARGET_FLAGS); do \
19072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19073 done; \
19074 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19077 "RANLIB=$${RANLIB}" \
19078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19079 clean) \
19080 || exit 1
19083 .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
19084 maybe-distclean-target-libstdc++-v3:
19086 distclean-target-libstdc++-v3:
19087 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19088 r=`${PWD_COMMAND}`; export r; \
19089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19090 $(SET_LIB_PATH) \
19091 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19092 for flag in $(EXTRA_TARGET_FLAGS); do \
19093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19094 done; \
19095 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19098 "RANLIB=$${RANLIB}" \
19099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19100 distclean) \
19101 || exit 1
19104 .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
19105 maybe-maintainer-clean-target-libstdc++-v3:
19107 maintainer-clean-target-libstdc++-v3:
19108 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19109 r=`${PWD_COMMAND}`; export r; \
19110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19111 $(SET_LIB_PATH) \
19112 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19113 for flag in $(EXTRA_TARGET_FLAGS); do \
19114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19115 done; \
19116 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19119 "RANLIB=$${RANLIB}" \
19120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19121 maintainer-clean) \
19122 || exit 1
19126 .PHONY: configure-target-newlib maybe-configure-target-newlib
19127 maybe-configure-target-newlib:
19129 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19130 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
19131 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19132 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
19133 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
19135 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
19136 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
19137 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19138 r=`${PWD_COMMAND}`; export r; \
19139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19140 $(SET_LIB_PATH) \
19141 AR="$(AR_FOR_TARGET)"; export AR; \
19142 AS="$(AS_FOR_TARGET)"; export AS; \
19143 CC="$(CC_FOR_TARGET)"; export CC; \
19144 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19145 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19146 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19147 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19148 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19149 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19150 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19151 LD="$(LD_FOR_TARGET)"; export LD; \
19152 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19153 NM="$(NM_FOR_TARGET)"; export NM; \
19154 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19155 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19156 echo Configuring in $(TARGET_SUBDIR)/newlib; \
19157 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
19158 case $(srcdir) in \
19159 /* | [A-Za-z]:[\\/]*) \
19160 topdir=$(srcdir) ;; \
19161 *) \
19162 case "$(TARGET_SUBDIR)" in \
19163 .) topdir="../$(srcdir)" ;; \
19164 *) topdir="../../$(srcdir)" ;; \
19165 esac ;; \
19166 esac; \
19167 srcdiroption="--srcdir=$${topdir}/newlib"; \
19168 libsrcdir="$$s/newlib"; \
19169 rm -f no-such-file || : ; \
19170 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19171 $(TARGET_CONFIGARGS) $${srcdiroption} \
19172 --with-target-subdir="$(TARGET_SUBDIR)" \
19173 || exit 1
19175 .PHONY: all-target-newlib maybe-all-target-newlib
19176 maybe-all-target-newlib:
19177 all-target-newlib: configure-target-newlib
19178 @r=`${PWD_COMMAND}`; export r; \
19179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19180 $(SET_LIB_PATH) \
19181 (cd $(TARGET_SUBDIR)/newlib && \
19182 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19184 .PHONY: check-target-newlib maybe-check-target-newlib
19185 maybe-check-target-newlib:
19187 check-target-newlib:
19188 @r=`${PWD_COMMAND}`; export r; \
19189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19190 $(SET_LIB_PATH) \
19191 (cd $(TARGET_SUBDIR)/newlib && \
19192 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19195 .PHONY: install-target-newlib maybe-install-target-newlib
19196 maybe-install-target-newlib:
19198 install-target-newlib: installdirs
19199 @r=`${PWD_COMMAND}`; export r; \
19200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19201 $(SET_LIB_PATH) \
19202 (cd $(TARGET_SUBDIR)/newlib && \
19203 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19206 # Other targets (info, dvi, etc.)
19208 .PHONY: maybe-info-target-newlib info-target-newlib
19209 maybe-info-target-newlib:
19211 info-target-newlib: \
19212 configure-target-newlib
19213 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19214 r=`${PWD_COMMAND}`; export r; \
19215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19216 $(SET_LIB_PATH) \
19217 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
19218 for flag in $(EXTRA_TARGET_FLAGS); do \
19219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19220 done; \
19221 (cd $(TARGET_SUBDIR)/newlib && \
19222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19224 "RANLIB=$${RANLIB}" \
19225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19226 info) \
19227 || exit 1
19230 .PHONY: maybe-dvi-target-newlib dvi-target-newlib
19231 maybe-dvi-target-newlib:
19233 dvi-target-newlib: \
19234 configure-target-newlib
19235 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19236 r=`${PWD_COMMAND}`; export r; \
19237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19238 $(SET_LIB_PATH) \
19239 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
19240 for flag in $(EXTRA_TARGET_FLAGS); do \
19241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19242 done; \
19243 (cd $(TARGET_SUBDIR)/newlib && \
19244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19246 "RANLIB=$${RANLIB}" \
19247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19248 dvi) \
19249 || exit 1
19252 .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
19253 maybe-TAGS-target-newlib:
19255 TAGS-target-newlib: \
19256 configure-target-newlib
19257 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19258 r=`${PWD_COMMAND}`; export r; \
19259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19260 $(SET_LIB_PATH) \
19261 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
19262 for flag in $(EXTRA_TARGET_FLAGS); do \
19263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19264 done; \
19265 (cd $(TARGET_SUBDIR)/newlib && \
19266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19268 "RANLIB=$${RANLIB}" \
19269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19270 TAGS) \
19271 || exit 1
19274 .PHONY: maybe-install-info-target-newlib install-info-target-newlib
19275 maybe-install-info-target-newlib:
19277 install-info-target-newlib: \
19278 configure-target-newlib \
19279 info-target-newlib
19280 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19281 r=`${PWD_COMMAND}`; export r; \
19282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19283 $(SET_LIB_PATH) \
19284 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
19285 for flag in $(EXTRA_TARGET_FLAGS); do \
19286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19287 done; \
19288 (cd $(TARGET_SUBDIR)/newlib && \
19289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19291 "RANLIB=$${RANLIB}" \
19292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19293 install-info) \
19294 || exit 1
19297 .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
19298 maybe-installcheck-target-newlib:
19300 installcheck-target-newlib: \
19301 configure-target-newlib
19302 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19303 r=`${PWD_COMMAND}`; export r; \
19304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19305 $(SET_LIB_PATH) \
19306 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
19307 for flag in $(EXTRA_TARGET_FLAGS); do \
19308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19309 done; \
19310 (cd $(TARGET_SUBDIR)/newlib && \
19311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19313 "RANLIB=$${RANLIB}" \
19314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19315 installcheck) \
19316 || exit 1
19319 .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
19320 maybe-mostlyclean-target-newlib:
19322 mostlyclean-target-newlib:
19323 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19324 r=`${PWD_COMMAND}`; export r; \
19325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19326 $(SET_LIB_PATH) \
19327 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
19328 for flag in $(EXTRA_TARGET_FLAGS); do \
19329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19330 done; \
19331 (cd $(TARGET_SUBDIR)/newlib && \
19332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19334 "RANLIB=$${RANLIB}" \
19335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19336 mostlyclean) \
19337 || exit 1
19340 .PHONY: maybe-clean-target-newlib clean-target-newlib
19341 maybe-clean-target-newlib:
19343 clean-target-newlib:
19344 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19345 r=`${PWD_COMMAND}`; export r; \
19346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19347 $(SET_LIB_PATH) \
19348 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
19349 for flag in $(EXTRA_TARGET_FLAGS); do \
19350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19351 done; \
19352 (cd $(TARGET_SUBDIR)/newlib && \
19353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19355 "RANLIB=$${RANLIB}" \
19356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19357 clean) \
19358 || exit 1
19361 .PHONY: maybe-distclean-target-newlib distclean-target-newlib
19362 maybe-distclean-target-newlib:
19364 distclean-target-newlib:
19365 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19366 r=`${PWD_COMMAND}`; export r; \
19367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19368 $(SET_LIB_PATH) \
19369 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
19370 for flag in $(EXTRA_TARGET_FLAGS); do \
19371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19372 done; \
19373 (cd $(TARGET_SUBDIR)/newlib && \
19374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19376 "RANLIB=$${RANLIB}" \
19377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19378 distclean) \
19379 || exit 1
19382 .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
19383 maybe-maintainer-clean-target-newlib:
19385 maintainer-clean-target-newlib:
19386 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19387 r=`${PWD_COMMAND}`; export r; \
19388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19389 $(SET_LIB_PATH) \
19390 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
19391 for flag in $(EXTRA_TARGET_FLAGS); do \
19392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19393 done; \
19394 (cd $(TARGET_SUBDIR)/newlib && \
19395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19397 "RANLIB=$${RANLIB}" \
19398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19399 maintainer-clean) \
19400 || exit 1
19404 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
19405 maybe-configure-target-libf2c:
19407 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19408 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
19409 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
19410 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
19411 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
19413 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
19414 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
19415 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
19416 r=`${PWD_COMMAND}`; export r; \
19417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19418 $(SET_LIB_PATH) \
19419 AR="$(AR_FOR_TARGET)"; export AR; \
19420 AS="$(AS_FOR_TARGET)"; export AS; \
19421 CC="$(CC_FOR_TARGET)"; export CC; \
19422 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19423 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19424 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19425 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19426 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19427 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19428 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19429 LD="$(LD_FOR_TARGET)"; export LD; \
19430 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19431 NM="$(NM_FOR_TARGET)"; export NM; \
19432 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19433 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19434 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
19435 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
19436 case $(srcdir) in \
19437 /* | [A-Za-z]:[\\/]*) \
19438 topdir=$(srcdir) ;; \
19439 *) \
19440 case "$(TARGET_SUBDIR)" in \
19441 .) topdir="../$(srcdir)" ;; \
19442 *) topdir="../../$(srcdir)" ;; \
19443 esac ;; \
19444 esac; \
19445 srcdiroption="--srcdir=$${topdir}/libf2c"; \
19446 libsrcdir="$$s/libf2c"; \
19447 rm -f no-such-file || : ; \
19448 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19449 $(TARGET_CONFIGARGS) $${srcdiroption} \
19450 --with-target-subdir="$(TARGET_SUBDIR)" \
19451 || exit 1
19453 .PHONY: all-target-libf2c maybe-all-target-libf2c
19454 maybe-all-target-libf2c:
19455 all-target-libf2c: configure-target-libf2c
19456 @r=`${PWD_COMMAND}`; export r; \
19457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19458 $(SET_LIB_PATH) \
19459 (cd $(TARGET_SUBDIR)/libf2c && \
19460 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19462 .PHONY: check-target-libf2c maybe-check-target-libf2c
19463 maybe-check-target-libf2c:
19465 check-target-libf2c:
19466 @r=`${PWD_COMMAND}`; export r; \
19467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19468 $(SET_LIB_PATH) \
19469 (cd $(TARGET_SUBDIR)/libf2c && \
19470 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19473 .PHONY: install-target-libf2c maybe-install-target-libf2c
19474 maybe-install-target-libf2c:
19476 install-target-libf2c: installdirs
19477 @r=`${PWD_COMMAND}`; export r; \
19478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19479 $(SET_LIB_PATH) \
19480 (cd $(TARGET_SUBDIR)/libf2c && \
19481 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19484 # Other targets (info, dvi, etc.)
19486 .PHONY: maybe-info-target-libf2c info-target-libf2c
19487 maybe-info-target-libf2c:
19489 info-target-libf2c: \
19490 configure-target-libf2c
19491 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19492 r=`${PWD_COMMAND}`; export r; \
19493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19494 $(SET_LIB_PATH) \
19495 echo "Doing info in $(TARGET_SUBDIR)/libf2c" ; \
19496 for flag in $(EXTRA_TARGET_FLAGS); do \
19497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19498 done; \
19499 (cd $(TARGET_SUBDIR)/libf2c && \
19500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19502 "RANLIB=$${RANLIB}" \
19503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19504 info) \
19505 || exit 1
19508 .PHONY: maybe-dvi-target-libf2c dvi-target-libf2c
19509 maybe-dvi-target-libf2c:
19511 dvi-target-libf2c: \
19512 configure-target-libf2c
19513 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19514 r=`${PWD_COMMAND}`; export r; \
19515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19516 $(SET_LIB_PATH) \
19517 echo "Doing dvi in $(TARGET_SUBDIR)/libf2c" ; \
19518 for flag in $(EXTRA_TARGET_FLAGS); do \
19519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19520 done; \
19521 (cd $(TARGET_SUBDIR)/libf2c && \
19522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19524 "RANLIB=$${RANLIB}" \
19525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19526 dvi) \
19527 || exit 1
19530 .PHONY: maybe-TAGS-target-libf2c TAGS-target-libf2c
19531 maybe-TAGS-target-libf2c:
19533 TAGS-target-libf2c: \
19534 configure-target-libf2c
19535 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19536 r=`${PWD_COMMAND}`; export r; \
19537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19538 $(SET_LIB_PATH) \
19539 echo "Doing TAGS in $(TARGET_SUBDIR)/libf2c" ; \
19540 for flag in $(EXTRA_TARGET_FLAGS); do \
19541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19542 done; \
19543 (cd $(TARGET_SUBDIR)/libf2c && \
19544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19546 "RANLIB=$${RANLIB}" \
19547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19548 TAGS) \
19549 || exit 1
19552 .PHONY: maybe-install-info-target-libf2c install-info-target-libf2c
19553 maybe-install-info-target-libf2c:
19555 install-info-target-libf2c: \
19556 configure-target-libf2c \
19557 info-target-libf2c
19558 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19559 r=`${PWD_COMMAND}`; export r; \
19560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19561 $(SET_LIB_PATH) \
19562 echo "Doing install-info in $(TARGET_SUBDIR)/libf2c" ; \
19563 for flag in $(EXTRA_TARGET_FLAGS); do \
19564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19565 done; \
19566 (cd $(TARGET_SUBDIR)/libf2c && \
19567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19569 "RANLIB=$${RANLIB}" \
19570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19571 install-info) \
19572 || exit 1
19575 .PHONY: maybe-installcheck-target-libf2c installcheck-target-libf2c
19576 maybe-installcheck-target-libf2c:
19578 installcheck-target-libf2c: \
19579 configure-target-libf2c
19580 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19581 r=`${PWD_COMMAND}`; export r; \
19582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19583 $(SET_LIB_PATH) \
19584 echo "Doing installcheck in $(TARGET_SUBDIR)/libf2c" ; \
19585 for flag in $(EXTRA_TARGET_FLAGS); do \
19586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19587 done; \
19588 (cd $(TARGET_SUBDIR)/libf2c && \
19589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19591 "RANLIB=$${RANLIB}" \
19592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19593 installcheck) \
19594 || exit 1
19597 .PHONY: maybe-mostlyclean-target-libf2c mostlyclean-target-libf2c
19598 maybe-mostlyclean-target-libf2c:
19600 mostlyclean-target-libf2c:
19601 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19602 r=`${PWD_COMMAND}`; export r; \
19603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19604 $(SET_LIB_PATH) \
19605 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libf2c" ; \
19606 for flag in $(EXTRA_TARGET_FLAGS); do \
19607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19608 done; \
19609 (cd $(TARGET_SUBDIR)/libf2c && \
19610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19612 "RANLIB=$${RANLIB}" \
19613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19614 mostlyclean) \
19615 || exit 1
19618 .PHONY: maybe-clean-target-libf2c clean-target-libf2c
19619 maybe-clean-target-libf2c:
19621 clean-target-libf2c:
19622 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19623 r=`${PWD_COMMAND}`; export r; \
19624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19625 $(SET_LIB_PATH) \
19626 echo "Doing clean in $(TARGET_SUBDIR)/libf2c" ; \
19627 for flag in $(EXTRA_TARGET_FLAGS); do \
19628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19629 done; \
19630 (cd $(TARGET_SUBDIR)/libf2c && \
19631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19633 "RANLIB=$${RANLIB}" \
19634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19635 clean) \
19636 || exit 1
19639 .PHONY: maybe-distclean-target-libf2c distclean-target-libf2c
19640 maybe-distclean-target-libf2c:
19642 distclean-target-libf2c:
19643 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19644 r=`${PWD_COMMAND}`; export r; \
19645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19646 $(SET_LIB_PATH) \
19647 echo "Doing distclean in $(TARGET_SUBDIR)/libf2c" ; \
19648 for flag in $(EXTRA_TARGET_FLAGS); do \
19649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19650 done; \
19651 (cd $(TARGET_SUBDIR)/libf2c && \
19652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19654 "RANLIB=$${RANLIB}" \
19655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19656 distclean) \
19657 || exit 1
19660 .PHONY: maybe-maintainer-clean-target-libf2c maintainer-clean-target-libf2c
19661 maybe-maintainer-clean-target-libf2c:
19663 maintainer-clean-target-libf2c:
19664 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19665 r=`${PWD_COMMAND}`; export r; \
19666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19667 $(SET_LIB_PATH) \
19668 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libf2c" ; \
19669 for flag in $(EXTRA_TARGET_FLAGS); do \
19670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19671 done; \
19672 (cd $(TARGET_SUBDIR)/libf2c && \
19673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19675 "RANLIB=$${RANLIB}" \
19676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19677 maintainer-clean) \
19678 || exit 1
19682 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
19683 maybe-configure-target-libobjc:
19685 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19686 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
19687 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
19688 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
19689 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
19691 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
19692 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
19693 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
19694 r=`${PWD_COMMAND}`; export r; \
19695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19696 $(SET_LIB_PATH) \
19697 AR="$(AR_FOR_TARGET)"; export AR; \
19698 AS="$(AS_FOR_TARGET)"; export AS; \
19699 CC="$(CC_FOR_TARGET)"; export CC; \
19700 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19701 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19702 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19703 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19704 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19705 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19706 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19707 LD="$(LD_FOR_TARGET)"; export LD; \
19708 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19709 NM="$(NM_FOR_TARGET)"; export NM; \
19710 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19711 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19712 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
19713 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
19714 case $(srcdir) in \
19715 /* | [A-Za-z]:[\\/]*) \
19716 topdir=$(srcdir) ;; \
19717 *) \
19718 case "$(TARGET_SUBDIR)" in \
19719 .) topdir="../$(srcdir)" ;; \
19720 *) topdir="../../$(srcdir)" ;; \
19721 esac ;; \
19722 esac; \
19723 srcdiroption="--srcdir=$${topdir}/libobjc"; \
19724 libsrcdir="$$s/libobjc"; \
19725 rm -f no-such-file || : ; \
19726 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19727 $(TARGET_CONFIGARGS) $${srcdiroption} \
19728 --with-target-subdir="$(TARGET_SUBDIR)" \
19729 || exit 1
19731 .PHONY: all-target-libobjc maybe-all-target-libobjc
19732 maybe-all-target-libobjc:
19733 all-target-libobjc: configure-target-libobjc
19734 @r=`${PWD_COMMAND}`; export r; \
19735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19736 $(SET_LIB_PATH) \
19737 (cd $(TARGET_SUBDIR)/libobjc && \
19738 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19740 .PHONY: check-target-libobjc maybe-check-target-libobjc
19741 maybe-check-target-libobjc:
19743 check-target-libobjc:
19744 @r=`${PWD_COMMAND}`; export r; \
19745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19746 $(SET_LIB_PATH) \
19747 (cd $(TARGET_SUBDIR)/libobjc && \
19748 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19751 .PHONY: install-target-libobjc maybe-install-target-libobjc
19752 maybe-install-target-libobjc:
19754 install-target-libobjc: installdirs
19755 @r=`${PWD_COMMAND}`; export r; \
19756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19757 $(SET_LIB_PATH) \
19758 (cd $(TARGET_SUBDIR)/libobjc && \
19759 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19762 # Other targets (info, dvi, etc.)
19764 .PHONY: maybe-info-target-libobjc info-target-libobjc
19765 maybe-info-target-libobjc:
19767 info-target-libobjc: \
19768 configure-target-libobjc
19769 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19770 r=`${PWD_COMMAND}`; export r; \
19771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19772 $(SET_LIB_PATH) \
19773 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
19774 for flag in $(EXTRA_TARGET_FLAGS); do \
19775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19776 done; \
19777 (cd $(TARGET_SUBDIR)/libobjc && \
19778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19780 "RANLIB=$${RANLIB}" \
19781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19782 info) \
19783 || exit 1
19786 .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
19787 maybe-dvi-target-libobjc:
19789 dvi-target-libobjc: \
19790 configure-target-libobjc
19791 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19792 r=`${PWD_COMMAND}`; export r; \
19793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19794 $(SET_LIB_PATH) \
19795 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
19796 for flag in $(EXTRA_TARGET_FLAGS); do \
19797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19798 done; \
19799 (cd $(TARGET_SUBDIR)/libobjc && \
19800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19802 "RANLIB=$${RANLIB}" \
19803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19804 dvi) \
19805 || exit 1
19808 .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
19809 maybe-TAGS-target-libobjc:
19811 TAGS-target-libobjc: \
19812 configure-target-libobjc
19813 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19814 r=`${PWD_COMMAND}`; export r; \
19815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19816 $(SET_LIB_PATH) \
19817 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
19818 for flag in $(EXTRA_TARGET_FLAGS); do \
19819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19820 done; \
19821 (cd $(TARGET_SUBDIR)/libobjc && \
19822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19824 "RANLIB=$${RANLIB}" \
19825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19826 TAGS) \
19827 || exit 1
19830 .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
19831 maybe-install-info-target-libobjc:
19833 install-info-target-libobjc: \
19834 configure-target-libobjc \
19835 info-target-libobjc
19836 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19837 r=`${PWD_COMMAND}`; export r; \
19838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19839 $(SET_LIB_PATH) \
19840 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
19841 for flag in $(EXTRA_TARGET_FLAGS); do \
19842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19843 done; \
19844 (cd $(TARGET_SUBDIR)/libobjc && \
19845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19847 "RANLIB=$${RANLIB}" \
19848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19849 install-info) \
19850 || exit 1
19853 .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
19854 maybe-installcheck-target-libobjc:
19856 installcheck-target-libobjc: \
19857 configure-target-libobjc
19858 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19859 r=`${PWD_COMMAND}`; export r; \
19860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19861 $(SET_LIB_PATH) \
19862 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
19863 for flag in $(EXTRA_TARGET_FLAGS); do \
19864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19865 done; \
19866 (cd $(TARGET_SUBDIR)/libobjc && \
19867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19869 "RANLIB=$${RANLIB}" \
19870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19871 installcheck) \
19872 || exit 1
19875 .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
19876 maybe-mostlyclean-target-libobjc:
19878 mostlyclean-target-libobjc:
19879 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19880 r=`${PWD_COMMAND}`; export r; \
19881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19882 $(SET_LIB_PATH) \
19883 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
19884 for flag in $(EXTRA_TARGET_FLAGS); do \
19885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19886 done; \
19887 (cd $(TARGET_SUBDIR)/libobjc && \
19888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19890 "RANLIB=$${RANLIB}" \
19891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19892 mostlyclean) \
19893 || exit 1
19896 .PHONY: maybe-clean-target-libobjc clean-target-libobjc
19897 maybe-clean-target-libobjc:
19899 clean-target-libobjc:
19900 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19901 r=`${PWD_COMMAND}`; export r; \
19902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19903 $(SET_LIB_PATH) \
19904 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
19905 for flag in $(EXTRA_TARGET_FLAGS); do \
19906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19907 done; \
19908 (cd $(TARGET_SUBDIR)/libobjc && \
19909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19911 "RANLIB=$${RANLIB}" \
19912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19913 clean) \
19914 || exit 1
19917 .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
19918 maybe-distclean-target-libobjc:
19920 distclean-target-libobjc:
19921 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19922 r=`${PWD_COMMAND}`; export r; \
19923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19924 $(SET_LIB_PATH) \
19925 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
19926 for flag in $(EXTRA_TARGET_FLAGS); do \
19927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19928 done; \
19929 (cd $(TARGET_SUBDIR)/libobjc && \
19930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19932 "RANLIB=$${RANLIB}" \
19933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19934 distclean) \
19935 || exit 1
19938 .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
19939 maybe-maintainer-clean-target-libobjc:
19941 maintainer-clean-target-libobjc:
19942 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19943 r=`${PWD_COMMAND}`; export r; \
19944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19945 $(SET_LIB_PATH) \
19946 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
19947 for flag in $(EXTRA_TARGET_FLAGS); do \
19948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19949 done; \
19950 (cd $(TARGET_SUBDIR)/libobjc && \
19951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19953 "RANLIB=$${RANLIB}" \
19954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19955 maintainer-clean) \
19956 || exit 1
19960 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
19961 maybe-configure-target-libtermcap:
19963 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19964 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
19965 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
19966 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
19967 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
19969 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
19970 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
19971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
19972 r=`${PWD_COMMAND}`; export r; \
19973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19974 $(SET_LIB_PATH) \
19975 AR="$(AR_FOR_TARGET)"; export AR; \
19976 AS="$(AS_FOR_TARGET)"; export AS; \
19977 CC="$(CC_FOR_TARGET)"; export CC; \
19978 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19979 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19980 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19981 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19982 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19983 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19984 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19985 LD="$(LD_FOR_TARGET)"; export LD; \
19986 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19987 NM="$(NM_FOR_TARGET)"; export NM; \
19988 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19989 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19990 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
19991 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
19992 case $(srcdir) in \
19993 /* | [A-Za-z]:[\\/]*) \
19994 topdir=$(srcdir) ;; \
19995 *) \
19996 case "$(TARGET_SUBDIR)" in \
19997 .) topdir="../$(srcdir)" ;; \
19998 *) topdir="../../$(srcdir)" ;; \
19999 esac ;; \
20000 esac; \
20001 if [ "$(srcdir)" = "." ] ; then \
20002 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
20003 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
20004 if [ -f Makefile ]; then \
20005 if $(MAKE) distclean; then \
20006 true; \
20007 else \
20008 exit 1; \
20009 fi; \
20010 else \
20011 true; \
20012 fi; \
20013 else \
20014 exit 1; \
20015 fi; \
20016 else \
20017 true; \
20018 fi; \
20019 srcdiroption="--srcdir=."; \
20020 libsrcdir="."; \
20021 else \
20022 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
20023 libsrcdir="$$s/libtermcap"; \
20024 fi; \
20025 rm -f no-such-file || : ; \
20026 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20027 $(TARGET_CONFIGARGS) $${srcdiroption} \
20028 --with-target-subdir="$(TARGET_SUBDIR)" \
20029 || exit 1
20031 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
20032 maybe-all-target-libtermcap:
20033 all-target-libtermcap: configure-target-libtermcap
20034 @r=`${PWD_COMMAND}`; export r; \
20035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20036 $(SET_LIB_PATH) \
20037 (cd $(TARGET_SUBDIR)/libtermcap && \
20038 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20040 .PHONY: check-target-libtermcap maybe-check-target-libtermcap
20041 maybe-check-target-libtermcap:
20043 # Dummy target for uncheckable module.
20044 check-target-libtermcap:
20047 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
20048 maybe-install-target-libtermcap:
20050 install-target-libtermcap: installdirs
20051 @r=`${PWD_COMMAND}`; export r; \
20052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20053 $(SET_LIB_PATH) \
20054 (cd $(TARGET_SUBDIR)/libtermcap && \
20055 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20058 # Other targets (info, dvi, etc.)
20060 .PHONY: maybe-info-target-libtermcap info-target-libtermcap
20061 maybe-info-target-libtermcap:
20063 info-target-libtermcap: \
20064 configure-target-libtermcap
20065 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20066 r=`${PWD_COMMAND}`; export r; \
20067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20068 $(SET_LIB_PATH) \
20069 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
20070 for flag in $(EXTRA_TARGET_FLAGS); do \
20071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20072 done; \
20073 (cd $(TARGET_SUBDIR)/libtermcap && \
20074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20076 "RANLIB=$${RANLIB}" \
20077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20078 info) \
20079 || exit 1
20082 .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
20083 maybe-dvi-target-libtermcap:
20085 dvi-target-libtermcap: \
20086 configure-target-libtermcap
20087 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20088 r=`${PWD_COMMAND}`; export r; \
20089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20090 $(SET_LIB_PATH) \
20091 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
20092 for flag in $(EXTRA_TARGET_FLAGS); do \
20093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20094 done; \
20095 (cd $(TARGET_SUBDIR)/libtermcap && \
20096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20098 "RANLIB=$${RANLIB}" \
20099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20100 dvi) \
20101 || exit 1
20104 .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
20105 maybe-TAGS-target-libtermcap:
20107 TAGS-target-libtermcap: \
20108 configure-target-libtermcap
20109 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20110 r=`${PWD_COMMAND}`; export r; \
20111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20112 $(SET_LIB_PATH) \
20113 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
20114 for flag in $(EXTRA_TARGET_FLAGS); do \
20115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20116 done; \
20117 (cd $(TARGET_SUBDIR)/libtermcap && \
20118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20120 "RANLIB=$${RANLIB}" \
20121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20122 TAGS) \
20123 || exit 1
20126 .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
20127 maybe-install-info-target-libtermcap:
20129 install-info-target-libtermcap: \
20130 configure-target-libtermcap \
20131 info-target-libtermcap
20132 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20133 r=`${PWD_COMMAND}`; export r; \
20134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20135 $(SET_LIB_PATH) \
20136 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
20137 for flag in $(EXTRA_TARGET_FLAGS); do \
20138 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20139 done; \
20140 (cd $(TARGET_SUBDIR)/libtermcap && \
20141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20143 "RANLIB=$${RANLIB}" \
20144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20145 install-info) \
20146 || exit 1
20149 .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
20150 maybe-installcheck-target-libtermcap:
20152 installcheck-target-libtermcap: \
20153 configure-target-libtermcap
20154 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20155 r=`${PWD_COMMAND}`; export r; \
20156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20157 $(SET_LIB_PATH) \
20158 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
20159 for flag in $(EXTRA_TARGET_FLAGS); do \
20160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20161 done; \
20162 (cd $(TARGET_SUBDIR)/libtermcap && \
20163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20165 "RANLIB=$${RANLIB}" \
20166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20167 installcheck) \
20168 || exit 1
20171 .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
20172 maybe-mostlyclean-target-libtermcap:
20174 # libtermcap doesn't support mostlyclean.
20175 mostlyclean-target-libtermcap:
20178 .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
20179 maybe-clean-target-libtermcap:
20181 # libtermcap doesn't support clean.
20182 clean-target-libtermcap:
20185 .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
20186 maybe-distclean-target-libtermcap:
20188 # libtermcap doesn't support distclean.
20189 distclean-target-libtermcap:
20192 .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
20193 maybe-maintainer-clean-target-libtermcap:
20195 # libtermcap doesn't support maintainer-clean.
20196 maintainer-clean-target-libtermcap:
20200 .PHONY: configure-target-winsup maybe-configure-target-winsup
20201 maybe-configure-target-winsup:
20203 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20204 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
20205 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
20206 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
20207 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
20209 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
20210 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
20211 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
20212 r=`${PWD_COMMAND}`; export r; \
20213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20214 $(SET_LIB_PATH) \
20215 AR="$(AR_FOR_TARGET)"; export AR; \
20216 AS="$(AS_FOR_TARGET)"; export AS; \
20217 CC="$(CC_FOR_TARGET)"; export CC; \
20218 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20219 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20220 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20221 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20222 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20223 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20224 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20225 LD="$(LD_FOR_TARGET)"; export LD; \
20226 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20227 NM="$(NM_FOR_TARGET)"; export NM; \
20228 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20229 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20230 echo Configuring in $(TARGET_SUBDIR)/winsup; \
20231 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
20232 case $(srcdir) in \
20233 /* | [A-Za-z]:[\\/]*) \
20234 topdir=$(srcdir) ;; \
20235 *) \
20236 case "$(TARGET_SUBDIR)" in \
20237 .) topdir="../$(srcdir)" ;; \
20238 *) topdir="../../$(srcdir)" ;; \
20239 esac ;; \
20240 esac; \
20241 srcdiroption="--srcdir=$${topdir}/winsup"; \
20242 libsrcdir="$$s/winsup"; \
20243 rm -f no-such-file || : ; \
20244 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20245 $(TARGET_CONFIGARGS) $${srcdiroption} \
20246 --with-target-subdir="$(TARGET_SUBDIR)" \
20247 || exit 1
20249 .PHONY: all-target-winsup maybe-all-target-winsup
20250 maybe-all-target-winsup:
20251 all-target-winsup: configure-target-winsup
20252 @r=`${PWD_COMMAND}`; export r; \
20253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20254 $(SET_LIB_PATH) \
20255 (cd $(TARGET_SUBDIR)/winsup && \
20256 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20258 .PHONY: check-target-winsup maybe-check-target-winsup
20259 maybe-check-target-winsup:
20261 check-target-winsup:
20262 @r=`${PWD_COMMAND}`; export r; \
20263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20264 $(SET_LIB_PATH) \
20265 (cd $(TARGET_SUBDIR)/winsup && \
20266 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20269 .PHONY: install-target-winsup maybe-install-target-winsup
20270 maybe-install-target-winsup:
20272 install-target-winsup: installdirs
20273 @r=`${PWD_COMMAND}`; export r; \
20274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20275 $(SET_LIB_PATH) \
20276 (cd $(TARGET_SUBDIR)/winsup && \
20277 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20280 # Other targets (info, dvi, etc.)
20282 .PHONY: maybe-info-target-winsup info-target-winsup
20283 maybe-info-target-winsup:
20285 info-target-winsup: \
20286 configure-target-winsup
20287 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20288 r=`${PWD_COMMAND}`; export r; \
20289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20290 $(SET_LIB_PATH) \
20291 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
20292 for flag in $(EXTRA_TARGET_FLAGS); do \
20293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20294 done; \
20295 (cd $(TARGET_SUBDIR)/winsup && \
20296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20298 "RANLIB=$${RANLIB}" \
20299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20300 info) \
20301 || exit 1
20304 .PHONY: maybe-dvi-target-winsup dvi-target-winsup
20305 maybe-dvi-target-winsup:
20307 dvi-target-winsup: \
20308 configure-target-winsup
20309 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20310 r=`${PWD_COMMAND}`; export r; \
20311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20312 $(SET_LIB_PATH) \
20313 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
20314 for flag in $(EXTRA_TARGET_FLAGS); do \
20315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20316 done; \
20317 (cd $(TARGET_SUBDIR)/winsup && \
20318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20320 "RANLIB=$${RANLIB}" \
20321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20322 dvi) \
20323 || exit 1
20326 .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
20327 maybe-TAGS-target-winsup:
20329 TAGS-target-winsup: \
20330 configure-target-winsup
20331 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20332 r=`${PWD_COMMAND}`; export r; \
20333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20334 $(SET_LIB_PATH) \
20335 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
20336 for flag in $(EXTRA_TARGET_FLAGS); do \
20337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20338 done; \
20339 (cd $(TARGET_SUBDIR)/winsup && \
20340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20342 "RANLIB=$${RANLIB}" \
20343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20344 TAGS) \
20345 || exit 1
20348 .PHONY: maybe-install-info-target-winsup install-info-target-winsup
20349 maybe-install-info-target-winsup:
20351 install-info-target-winsup: \
20352 configure-target-winsup \
20353 info-target-winsup
20354 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20355 r=`${PWD_COMMAND}`; export r; \
20356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20357 $(SET_LIB_PATH) \
20358 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
20359 for flag in $(EXTRA_TARGET_FLAGS); do \
20360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20361 done; \
20362 (cd $(TARGET_SUBDIR)/winsup && \
20363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20365 "RANLIB=$${RANLIB}" \
20366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20367 install-info) \
20368 || exit 1
20371 .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
20372 maybe-installcheck-target-winsup:
20374 installcheck-target-winsup: \
20375 configure-target-winsup
20376 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20377 r=`${PWD_COMMAND}`; export r; \
20378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20379 $(SET_LIB_PATH) \
20380 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
20381 for flag in $(EXTRA_TARGET_FLAGS); do \
20382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20383 done; \
20384 (cd $(TARGET_SUBDIR)/winsup && \
20385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20387 "RANLIB=$${RANLIB}" \
20388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20389 installcheck) \
20390 || exit 1
20393 .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
20394 maybe-mostlyclean-target-winsup:
20396 mostlyclean-target-winsup:
20397 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20398 r=`${PWD_COMMAND}`; export r; \
20399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20400 $(SET_LIB_PATH) \
20401 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
20402 for flag in $(EXTRA_TARGET_FLAGS); do \
20403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20404 done; \
20405 (cd $(TARGET_SUBDIR)/winsup && \
20406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20408 "RANLIB=$${RANLIB}" \
20409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20410 mostlyclean) \
20411 || exit 1
20414 .PHONY: maybe-clean-target-winsup clean-target-winsup
20415 maybe-clean-target-winsup:
20417 clean-target-winsup:
20418 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20419 r=`${PWD_COMMAND}`; export r; \
20420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20421 $(SET_LIB_PATH) \
20422 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
20423 for flag in $(EXTRA_TARGET_FLAGS); do \
20424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20425 done; \
20426 (cd $(TARGET_SUBDIR)/winsup && \
20427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20429 "RANLIB=$${RANLIB}" \
20430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20431 clean) \
20432 || exit 1
20435 .PHONY: maybe-distclean-target-winsup distclean-target-winsup
20436 maybe-distclean-target-winsup:
20438 distclean-target-winsup:
20439 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20440 r=`${PWD_COMMAND}`; export r; \
20441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20442 $(SET_LIB_PATH) \
20443 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
20444 for flag in $(EXTRA_TARGET_FLAGS); do \
20445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20446 done; \
20447 (cd $(TARGET_SUBDIR)/winsup && \
20448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20450 "RANLIB=$${RANLIB}" \
20451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20452 distclean) \
20453 || exit 1
20456 .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
20457 maybe-maintainer-clean-target-winsup:
20459 maintainer-clean-target-winsup:
20460 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20461 r=`${PWD_COMMAND}`; export r; \
20462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20463 $(SET_LIB_PATH) \
20464 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
20465 for flag in $(EXTRA_TARGET_FLAGS); do \
20466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20467 done; \
20468 (cd $(TARGET_SUBDIR)/winsup && \
20469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20471 "RANLIB=$${RANLIB}" \
20472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20473 maintainer-clean) \
20474 || exit 1
20478 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
20479 maybe-configure-target-libgloss:
20481 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20482 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
20483 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
20484 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
20485 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
20487 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
20488 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
20489 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
20490 r=`${PWD_COMMAND}`; export r; \
20491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20492 $(SET_LIB_PATH) \
20493 AR="$(AR_FOR_TARGET)"; export AR; \
20494 AS="$(AS_FOR_TARGET)"; export AS; \
20495 CC="$(CC_FOR_TARGET)"; export CC; \
20496 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20497 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20498 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20499 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20500 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20501 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20502 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20503 LD="$(LD_FOR_TARGET)"; export LD; \
20504 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20505 NM="$(NM_FOR_TARGET)"; export NM; \
20506 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20507 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20508 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
20509 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
20510 case $(srcdir) in \
20511 /* | [A-Za-z]:[\\/]*) \
20512 topdir=$(srcdir) ;; \
20513 *) \
20514 case "$(TARGET_SUBDIR)" in \
20515 .) topdir="../$(srcdir)" ;; \
20516 *) topdir="../../$(srcdir)" ;; \
20517 esac ;; \
20518 esac; \
20519 srcdiroption="--srcdir=$${topdir}/libgloss"; \
20520 libsrcdir="$$s/libgloss"; \
20521 rm -f no-such-file || : ; \
20522 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20523 $(TARGET_CONFIGARGS) $${srcdiroption} \
20524 --with-target-subdir="$(TARGET_SUBDIR)" \
20525 || exit 1
20527 .PHONY: all-target-libgloss maybe-all-target-libgloss
20528 maybe-all-target-libgloss:
20529 all-target-libgloss: configure-target-libgloss
20530 @r=`${PWD_COMMAND}`; export r; \
20531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20532 $(SET_LIB_PATH) \
20533 (cd $(TARGET_SUBDIR)/libgloss && \
20534 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20536 .PHONY: check-target-libgloss maybe-check-target-libgloss
20537 maybe-check-target-libgloss:
20539 # Dummy target for uncheckable module.
20540 check-target-libgloss:
20543 .PHONY: install-target-libgloss maybe-install-target-libgloss
20544 maybe-install-target-libgloss:
20546 install-target-libgloss: installdirs
20547 @r=`${PWD_COMMAND}`; export r; \
20548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20549 $(SET_LIB_PATH) \
20550 (cd $(TARGET_SUBDIR)/libgloss && \
20551 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20554 # Other targets (info, dvi, etc.)
20556 .PHONY: maybe-info-target-libgloss info-target-libgloss
20557 maybe-info-target-libgloss:
20559 info-target-libgloss: \
20560 configure-target-libgloss
20561 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20562 r=`${PWD_COMMAND}`; export r; \
20563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20564 $(SET_LIB_PATH) \
20565 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
20566 for flag in $(EXTRA_TARGET_FLAGS); do \
20567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20568 done; \
20569 (cd $(TARGET_SUBDIR)/libgloss && \
20570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20572 "RANLIB=$${RANLIB}" \
20573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20574 info) \
20575 || exit 1
20578 .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
20579 maybe-dvi-target-libgloss:
20581 dvi-target-libgloss: \
20582 configure-target-libgloss
20583 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20584 r=`${PWD_COMMAND}`; export r; \
20585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20586 $(SET_LIB_PATH) \
20587 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
20588 for flag in $(EXTRA_TARGET_FLAGS); do \
20589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20590 done; \
20591 (cd $(TARGET_SUBDIR)/libgloss && \
20592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20594 "RANLIB=$${RANLIB}" \
20595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20596 dvi) \
20597 || exit 1
20600 .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
20601 maybe-TAGS-target-libgloss:
20603 TAGS-target-libgloss: \
20604 configure-target-libgloss
20605 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20606 r=`${PWD_COMMAND}`; export r; \
20607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20608 $(SET_LIB_PATH) \
20609 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
20610 for flag in $(EXTRA_TARGET_FLAGS); do \
20611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20612 done; \
20613 (cd $(TARGET_SUBDIR)/libgloss && \
20614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20616 "RANLIB=$${RANLIB}" \
20617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20618 TAGS) \
20619 || exit 1
20622 .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
20623 maybe-install-info-target-libgloss:
20625 install-info-target-libgloss: \
20626 configure-target-libgloss \
20627 info-target-libgloss
20628 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20629 r=`${PWD_COMMAND}`; export r; \
20630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20631 $(SET_LIB_PATH) \
20632 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
20633 for flag in $(EXTRA_TARGET_FLAGS); do \
20634 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20635 done; \
20636 (cd $(TARGET_SUBDIR)/libgloss && \
20637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20639 "RANLIB=$${RANLIB}" \
20640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20641 install-info) \
20642 || exit 1
20645 .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
20646 maybe-installcheck-target-libgloss:
20648 installcheck-target-libgloss: \
20649 configure-target-libgloss
20650 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20651 r=`${PWD_COMMAND}`; export r; \
20652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20653 $(SET_LIB_PATH) \
20654 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
20655 for flag in $(EXTRA_TARGET_FLAGS); do \
20656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20657 done; \
20658 (cd $(TARGET_SUBDIR)/libgloss && \
20659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20661 "RANLIB=$${RANLIB}" \
20662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20663 installcheck) \
20664 || exit 1
20667 .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
20668 maybe-mostlyclean-target-libgloss:
20670 mostlyclean-target-libgloss:
20671 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20672 r=`${PWD_COMMAND}`; export r; \
20673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20674 $(SET_LIB_PATH) \
20675 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
20676 for flag in $(EXTRA_TARGET_FLAGS); do \
20677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20678 done; \
20679 (cd $(TARGET_SUBDIR)/libgloss && \
20680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20682 "RANLIB=$${RANLIB}" \
20683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20684 mostlyclean) \
20685 || exit 1
20688 .PHONY: maybe-clean-target-libgloss clean-target-libgloss
20689 maybe-clean-target-libgloss:
20691 clean-target-libgloss:
20692 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20693 r=`${PWD_COMMAND}`; export r; \
20694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20695 $(SET_LIB_PATH) \
20696 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
20697 for flag in $(EXTRA_TARGET_FLAGS); do \
20698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20699 done; \
20700 (cd $(TARGET_SUBDIR)/libgloss && \
20701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20703 "RANLIB=$${RANLIB}" \
20704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20705 clean) \
20706 || exit 1
20709 .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
20710 maybe-distclean-target-libgloss:
20712 distclean-target-libgloss:
20713 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20714 r=`${PWD_COMMAND}`; export r; \
20715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20716 $(SET_LIB_PATH) \
20717 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
20718 for flag in $(EXTRA_TARGET_FLAGS); do \
20719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20720 done; \
20721 (cd $(TARGET_SUBDIR)/libgloss && \
20722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20724 "RANLIB=$${RANLIB}" \
20725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20726 distclean) \
20727 || exit 1
20730 .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
20731 maybe-maintainer-clean-target-libgloss:
20733 maintainer-clean-target-libgloss:
20734 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20735 r=`${PWD_COMMAND}`; export r; \
20736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20737 $(SET_LIB_PATH) \
20738 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
20739 for flag in $(EXTRA_TARGET_FLAGS); do \
20740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20741 done; \
20742 (cd $(TARGET_SUBDIR)/libgloss && \
20743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20745 "RANLIB=$${RANLIB}" \
20746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20747 maintainer-clean) \
20748 || exit 1
20752 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
20753 maybe-configure-target-libiberty:
20755 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20756 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
20757 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
20758 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
20759 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
20761 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
20762 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
20763 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
20764 r=`${PWD_COMMAND}`; export r; \
20765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20766 $(SET_LIB_PATH) \
20767 AR="$(AR_FOR_TARGET)"; export AR; \
20768 AS="$(AS_FOR_TARGET)"; export AS; \
20769 CC="$(CC_FOR_TARGET)"; export CC; \
20770 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20771 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20772 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20773 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20774 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20775 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20776 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20777 LD="$(LD_FOR_TARGET)"; export LD; \
20778 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20779 NM="$(NM_FOR_TARGET)"; export NM; \
20780 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20781 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20782 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
20783 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
20784 case $(srcdir) in \
20785 /* | [A-Za-z]:[\\/]*) \
20786 topdir=$(srcdir) ;; \
20787 *) \
20788 case "$(TARGET_SUBDIR)" in \
20789 .) topdir="../$(srcdir)" ;; \
20790 *) topdir="../../$(srcdir)" ;; \
20791 esac ;; \
20792 esac; \
20793 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20794 libsrcdir="$$s/libiberty"; \
20795 rm -f no-such-file || : ; \
20796 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20797 $(TARGET_CONFIGARGS) $${srcdiroption} \
20798 --with-target-subdir="$(TARGET_SUBDIR)" \
20799 || exit 1
20801 .PHONY: all-target-libiberty maybe-all-target-libiberty
20802 maybe-all-target-libiberty:
20803 all-target-libiberty: configure-target-libiberty
20804 @r=`${PWD_COMMAND}`; export r; \
20805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20806 $(SET_LIB_PATH) \
20807 (cd $(TARGET_SUBDIR)/libiberty && \
20808 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20810 .PHONY: check-target-libiberty maybe-check-target-libiberty
20811 maybe-check-target-libiberty:
20813 check-target-libiberty:
20814 @r=`${PWD_COMMAND}`; export r; \
20815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20816 $(SET_LIB_PATH) \
20817 (cd $(TARGET_SUBDIR)/libiberty && \
20818 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20821 .PHONY: install-target-libiberty maybe-install-target-libiberty
20822 maybe-install-target-libiberty:
20824 install-target-libiberty: installdirs
20825 @r=`${PWD_COMMAND}`; export r; \
20826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20827 $(SET_LIB_PATH) \
20828 (cd $(TARGET_SUBDIR)/libiberty && \
20829 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20832 # Other targets (info, dvi, etc.)
20834 .PHONY: maybe-info-target-libiberty info-target-libiberty
20835 maybe-info-target-libiberty:
20837 info-target-libiberty: \
20838 configure-target-libiberty
20839 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20840 r=`${PWD_COMMAND}`; export r; \
20841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20842 $(SET_LIB_PATH) \
20843 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
20844 for flag in $(EXTRA_TARGET_FLAGS); do \
20845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20846 done; \
20847 (cd $(TARGET_SUBDIR)/libiberty && \
20848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20850 "RANLIB=$${RANLIB}" \
20851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20852 info) \
20853 || exit 1
20856 .PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
20857 maybe-dvi-target-libiberty:
20859 dvi-target-libiberty: \
20860 configure-target-libiberty
20861 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20862 r=`${PWD_COMMAND}`; export r; \
20863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20864 $(SET_LIB_PATH) \
20865 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
20866 for flag in $(EXTRA_TARGET_FLAGS); do \
20867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20868 done; \
20869 (cd $(TARGET_SUBDIR)/libiberty && \
20870 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20871 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20872 "RANLIB=$${RANLIB}" \
20873 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20874 dvi) \
20875 || exit 1
20878 .PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
20879 maybe-TAGS-target-libiberty:
20881 TAGS-target-libiberty: \
20882 configure-target-libiberty
20883 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20884 r=`${PWD_COMMAND}`; export r; \
20885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20886 $(SET_LIB_PATH) \
20887 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
20888 for flag in $(EXTRA_TARGET_FLAGS); do \
20889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20890 done; \
20891 (cd $(TARGET_SUBDIR)/libiberty && \
20892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20894 "RANLIB=$${RANLIB}" \
20895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20896 TAGS) \
20897 || exit 1
20900 .PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
20901 maybe-install-info-target-libiberty:
20903 install-info-target-libiberty: \
20904 configure-target-libiberty \
20905 info-target-libiberty
20906 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20907 r=`${PWD_COMMAND}`; export r; \
20908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20909 $(SET_LIB_PATH) \
20910 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
20911 for flag in $(EXTRA_TARGET_FLAGS); do \
20912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20913 done; \
20914 (cd $(TARGET_SUBDIR)/libiberty && \
20915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20917 "RANLIB=$${RANLIB}" \
20918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20919 install-info) \
20920 || exit 1
20923 .PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
20924 maybe-installcheck-target-libiberty:
20926 installcheck-target-libiberty: \
20927 configure-target-libiberty
20928 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20929 r=`${PWD_COMMAND}`; export r; \
20930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20931 $(SET_LIB_PATH) \
20932 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
20933 for flag in $(EXTRA_TARGET_FLAGS); do \
20934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20935 done; \
20936 (cd $(TARGET_SUBDIR)/libiberty && \
20937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20939 "RANLIB=$${RANLIB}" \
20940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20941 installcheck) \
20942 || exit 1
20945 .PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
20946 maybe-mostlyclean-target-libiberty:
20948 mostlyclean-target-libiberty:
20949 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20950 r=`${PWD_COMMAND}`; export r; \
20951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20952 $(SET_LIB_PATH) \
20953 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
20954 for flag in $(EXTRA_TARGET_FLAGS); do \
20955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20956 done; \
20957 (cd $(TARGET_SUBDIR)/libiberty && \
20958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20960 "RANLIB=$${RANLIB}" \
20961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20962 mostlyclean) \
20963 || exit 1
20966 .PHONY: maybe-clean-target-libiberty clean-target-libiberty
20967 maybe-clean-target-libiberty:
20969 clean-target-libiberty:
20970 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20971 r=`${PWD_COMMAND}`; export r; \
20972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20973 $(SET_LIB_PATH) \
20974 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
20975 for flag in $(EXTRA_TARGET_FLAGS); do \
20976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20977 done; \
20978 (cd $(TARGET_SUBDIR)/libiberty && \
20979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20981 "RANLIB=$${RANLIB}" \
20982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20983 clean) \
20984 || exit 1
20987 .PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
20988 maybe-distclean-target-libiberty:
20990 distclean-target-libiberty:
20991 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20992 r=`${PWD_COMMAND}`; export r; \
20993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20994 $(SET_LIB_PATH) \
20995 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
20996 for flag in $(EXTRA_TARGET_FLAGS); do \
20997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20998 done; \
20999 (cd $(TARGET_SUBDIR)/libiberty && \
21000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21002 "RANLIB=$${RANLIB}" \
21003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21004 distclean) \
21005 || exit 1
21008 .PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
21009 maybe-maintainer-clean-target-libiberty:
21011 maintainer-clean-target-libiberty:
21012 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21013 r=`${PWD_COMMAND}`; export r; \
21014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21015 $(SET_LIB_PATH) \
21016 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
21017 for flag in $(EXTRA_TARGET_FLAGS); do \
21018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21019 done; \
21020 (cd $(TARGET_SUBDIR)/libiberty && \
21021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21023 "RANLIB=$${RANLIB}" \
21024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21025 maintainer-clean) \
21026 || exit 1
21030 .PHONY: configure-target-gperf maybe-configure-target-gperf
21031 maybe-configure-target-gperf:
21033 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21034 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
21035 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
21036 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
21037 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
21039 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
21040 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
21041 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
21042 r=`${PWD_COMMAND}`; export r; \
21043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21044 $(SET_LIB_PATH) \
21045 AR="$(AR_FOR_TARGET)"; export AR; \
21046 AS="$(AS_FOR_TARGET)"; export AS; \
21047 CC="$(CC_FOR_TARGET)"; export CC; \
21048 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21049 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21050 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21051 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21052 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21053 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21054 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21055 LD="$(LD_FOR_TARGET)"; export LD; \
21056 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21057 NM="$(NM_FOR_TARGET)"; export NM; \
21058 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21059 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21060 echo Configuring in $(TARGET_SUBDIR)/gperf; \
21061 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
21062 case $(srcdir) in \
21063 /* | [A-Za-z]:[\\/]*) \
21064 topdir=$(srcdir) ;; \
21065 *) \
21066 case "$(TARGET_SUBDIR)" in \
21067 .) topdir="../$(srcdir)" ;; \
21068 *) topdir="../../$(srcdir)" ;; \
21069 esac ;; \
21070 esac; \
21071 srcdiroption="--srcdir=$${topdir}/gperf"; \
21072 libsrcdir="$$s/gperf"; \
21073 rm -f no-such-file || : ; \
21074 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21075 $(TARGET_CONFIGARGS) $${srcdiroption} \
21076 --with-target-subdir="$(TARGET_SUBDIR)" \
21077 || exit 1
21079 .PHONY: all-target-gperf maybe-all-target-gperf
21080 maybe-all-target-gperf:
21081 all-target-gperf: configure-target-gperf
21082 @r=`${PWD_COMMAND}`; export r; \
21083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21084 $(SET_LIB_PATH) \
21085 (cd $(TARGET_SUBDIR)/gperf && \
21086 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21088 .PHONY: check-target-gperf maybe-check-target-gperf
21089 maybe-check-target-gperf:
21091 check-target-gperf:
21092 @r=`${PWD_COMMAND}`; export r; \
21093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21094 $(SET_LIB_PATH) \
21095 (cd $(TARGET_SUBDIR)/gperf && \
21096 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21099 .PHONY: install-target-gperf maybe-install-target-gperf
21100 maybe-install-target-gperf:
21102 install-target-gperf: installdirs
21103 @r=`${PWD_COMMAND}`; export r; \
21104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21105 $(SET_LIB_PATH) \
21106 (cd $(TARGET_SUBDIR)/gperf && \
21107 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21110 # Other targets (info, dvi, etc.)
21112 .PHONY: maybe-info-target-gperf info-target-gperf
21113 maybe-info-target-gperf:
21115 info-target-gperf: \
21116 configure-target-gperf
21117 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21118 r=`${PWD_COMMAND}`; export r; \
21119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21120 $(SET_LIB_PATH) \
21121 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
21122 for flag in $(EXTRA_TARGET_FLAGS); do \
21123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21124 done; \
21125 (cd $(TARGET_SUBDIR)/gperf && \
21126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21128 "RANLIB=$${RANLIB}" \
21129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21130 info) \
21131 || exit 1
21134 .PHONY: maybe-dvi-target-gperf dvi-target-gperf
21135 maybe-dvi-target-gperf:
21137 dvi-target-gperf: \
21138 configure-target-gperf
21139 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21140 r=`${PWD_COMMAND}`; export r; \
21141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21142 $(SET_LIB_PATH) \
21143 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
21144 for flag in $(EXTRA_TARGET_FLAGS); do \
21145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21146 done; \
21147 (cd $(TARGET_SUBDIR)/gperf && \
21148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21150 "RANLIB=$${RANLIB}" \
21151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21152 dvi) \
21153 || exit 1
21156 .PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
21157 maybe-TAGS-target-gperf:
21159 TAGS-target-gperf: \
21160 configure-target-gperf
21161 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21162 r=`${PWD_COMMAND}`; export r; \
21163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21164 $(SET_LIB_PATH) \
21165 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
21166 for flag in $(EXTRA_TARGET_FLAGS); do \
21167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21168 done; \
21169 (cd $(TARGET_SUBDIR)/gperf && \
21170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21172 "RANLIB=$${RANLIB}" \
21173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21174 TAGS) \
21175 || exit 1
21178 .PHONY: maybe-install-info-target-gperf install-info-target-gperf
21179 maybe-install-info-target-gperf:
21181 install-info-target-gperf: \
21182 configure-target-gperf \
21183 info-target-gperf
21184 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21185 r=`${PWD_COMMAND}`; export r; \
21186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21187 $(SET_LIB_PATH) \
21188 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
21189 for flag in $(EXTRA_TARGET_FLAGS); do \
21190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21191 done; \
21192 (cd $(TARGET_SUBDIR)/gperf && \
21193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21195 "RANLIB=$${RANLIB}" \
21196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21197 install-info) \
21198 || exit 1
21201 .PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
21202 maybe-installcheck-target-gperf:
21204 installcheck-target-gperf: \
21205 configure-target-gperf
21206 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21207 r=`${PWD_COMMAND}`; export r; \
21208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21209 $(SET_LIB_PATH) \
21210 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
21211 for flag in $(EXTRA_TARGET_FLAGS); do \
21212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21213 done; \
21214 (cd $(TARGET_SUBDIR)/gperf && \
21215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21217 "RANLIB=$${RANLIB}" \
21218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21219 installcheck) \
21220 || exit 1
21223 .PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
21224 maybe-mostlyclean-target-gperf:
21226 mostlyclean-target-gperf:
21227 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21228 r=`${PWD_COMMAND}`; export r; \
21229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21230 $(SET_LIB_PATH) \
21231 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
21232 for flag in $(EXTRA_TARGET_FLAGS); do \
21233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21234 done; \
21235 (cd $(TARGET_SUBDIR)/gperf && \
21236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21238 "RANLIB=$${RANLIB}" \
21239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21240 mostlyclean) \
21241 || exit 1
21244 .PHONY: maybe-clean-target-gperf clean-target-gperf
21245 maybe-clean-target-gperf:
21247 clean-target-gperf:
21248 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21249 r=`${PWD_COMMAND}`; export r; \
21250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21251 $(SET_LIB_PATH) \
21252 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
21253 for flag in $(EXTRA_TARGET_FLAGS); do \
21254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21255 done; \
21256 (cd $(TARGET_SUBDIR)/gperf && \
21257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21259 "RANLIB=$${RANLIB}" \
21260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21261 clean) \
21262 || exit 1
21265 .PHONY: maybe-distclean-target-gperf distclean-target-gperf
21266 maybe-distclean-target-gperf:
21268 distclean-target-gperf:
21269 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21270 r=`${PWD_COMMAND}`; export r; \
21271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21272 $(SET_LIB_PATH) \
21273 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
21274 for flag in $(EXTRA_TARGET_FLAGS); do \
21275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21276 done; \
21277 (cd $(TARGET_SUBDIR)/gperf && \
21278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21280 "RANLIB=$${RANLIB}" \
21281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21282 distclean) \
21283 || exit 1
21286 .PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
21287 maybe-maintainer-clean-target-gperf:
21289 maintainer-clean-target-gperf:
21290 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21291 r=`${PWD_COMMAND}`; export r; \
21292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21293 $(SET_LIB_PATH) \
21294 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
21295 for flag in $(EXTRA_TARGET_FLAGS); do \
21296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21297 done; \
21298 (cd $(TARGET_SUBDIR)/gperf && \
21299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21301 "RANLIB=$${RANLIB}" \
21302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21303 maintainer-clean) \
21304 || exit 1
21308 .PHONY: configure-target-examples maybe-configure-target-examples
21309 maybe-configure-target-examples:
21311 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21312 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
21313 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
21314 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
21315 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
21317 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
21318 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
21319 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
21320 r=`${PWD_COMMAND}`; export r; \
21321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21322 $(SET_LIB_PATH) \
21323 AR="$(AR_FOR_TARGET)"; export AR; \
21324 AS="$(AS_FOR_TARGET)"; export AS; \
21325 CC="$(CC_FOR_TARGET)"; export CC; \
21326 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21327 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21328 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21329 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21330 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21331 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21332 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21333 LD="$(LD_FOR_TARGET)"; export LD; \
21334 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21335 NM="$(NM_FOR_TARGET)"; export NM; \
21336 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21337 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21338 echo Configuring in $(TARGET_SUBDIR)/examples; \
21339 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
21340 case $(srcdir) in \
21341 /* | [A-Za-z]:[\\/]*) \
21342 topdir=$(srcdir) ;; \
21343 *) \
21344 case "$(TARGET_SUBDIR)" in \
21345 .) topdir="../$(srcdir)" ;; \
21346 *) topdir="../../$(srcdir)" ;; \
21347 esac ;; \
21348 esac; \
21349 srcdiroption="--srcdir=$${topdir}/examples"; \
21350 libsrcdir="$$s/examples"; \
21351 rm -f no-such-file || : ; \
21352 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21353 $(TARGET_CONFIGARGS) $${srcdiroption} \
21354 --with-target-subdir="$(TARGET_SUBDIR)" \
21355 || exit 1
21357 .PHONY: all-target-examples maybe-all-target-examples
21358 maybe-all-target-examples:
21359 all-target-examples: configure-target-examples
21360 @r=`${PWD_COMMAND}`; export r; \
21361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21362 $(SET_LIB_PATH) \
21363 (cd $(TARGET_SUBDIR)/examples && \
21364 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21366 .PHONY: check-target-examples maybe-check-target-examples
21367 maybe-check-target-examples:
21369 # Dummy target for uncheckable module.
21370 check-target-examples:
21373 .PHONY: install-target-examples maybe-install-target-examples
21374 maybe-install-target-examples:
21376 # Dummy target for uninstallable.
21377 install-target-examples:
21380 # Other targets (info, dvi, etc.)
21382 .PHONY: maybe-info-target-examples info-target-examples
21383 maybe-info-target-examples:
21385 info-target-examples: \
21386 configure-target-examples
21387 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21388 r=`${PWD_COMMAND}`; export r; \
21389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21390 $(SET_LIB_PATH) \
21391 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
21392 for flag in $(EXTRA_TARGET_FLAGS); do \
21393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21394 done; \
21395 (cd $(TARGET_SUBDIR)/examples && \
21396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21398 "RANLIB=$${RANLIB}" \
21399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21400 info) \
21401 || exit 1
21404 .PHONY: maybe-dvi-target-examples dvi-target-examples
21405 maybe-dvi-target-examples:
21407 dvi-target-examples: \
21408 configure-target-examples
21409 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21410 r=`${PWD_COMMAND}`; export r; \
21411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21412 $(SET_LIB_PATH) \
21413 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
21414 for flag in $(EXTRA_TARGET_FLAGS); do \
21415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21416 done; \
21417 (cd $(TARGET_SUBDIR)/examples && \
21418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21420 "RANLIB=$${RANLIB}" \
21421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21422 dvi) \
21423 || exit 1
21426 .PHONY: maybe-TAGS-target-examples TAGS-target-examples
21427 maybe-TAGS-target-examples:
21429 TAGS-target-examples: \
21430 configure-target-examples
21431 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21432 r=`${PWD_COMMAND}`; export r; \
21433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21434 $(SET_LIB_PATH) \
21435 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
21436 for flag in $(EXTRA_TARGET_FLAGS); do \
21437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21438 done; \
21439 (cd $(TARGET_SUBDIR)/examples && \
21440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21442 "RANLIB=$${RANLIB}" \
21443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21444 TAGS) \
21445 || exit 1
21448 .PHONY: maybe-install-info-target-examples install-info-target-examples
21449 maybe-install-info-target-examples:
21451 install-info-target-examples: \
21452 configure-target-examples \
21453 info-target-examples
21454 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21455 r=`${PWD_COMMAND}`; export r; \
21456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21457 $(SET_LIB_PATH) \
21458 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
21459 for flag in $(EXTRA_TARGET_FLAGS); do \
21460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21461 done; \
21462 (cd $(TARGET_SUBDIR)/examples && \
21463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21465 "RANLIB=$${RANLIB}" \
21466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21467 install-info) \
21468 || exit 1
21471 .PHONY: maybe-installcheck-target-examples installcheck-target-examples
21472 maybe-installcheck-target-examples:
21474 installcheck-target-examples: \
21475 configure-target-examples
21476 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21477 r=`${PWD_COMMAND}`; export r; \
21478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21479 $(SET_LIB_PATH) \
21480 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
21481 for flag in $(EXTRA_TARGET_FLAGS); do \
21482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21483 done; \
21484 (cd $(TARGET_SUBDIR)/examples && \
21485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21487 "RANLIB=$${RANLIB}" \
21488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21489 installcheck) \
21490 || exit 1
21493 .PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
21494 maybe-mostlyclean-target-examples:
21496 mostlyclean-target-examples:
21497 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21498 r=`${PWD_COMMAND}`; export r; \
21499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21500 $(SET_LIB_PATH) \
21501 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
21502 for flag in $(EXTRA_TARGET_FLAGS); do \
21503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21504 done; \
21505 (cd $(TARGET_SUBDIR)/examples && \
21506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21508 "RANLIB=$${RANLIB}" \
21509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21510 mostlyclean) \
21511 || exit 1
21514 .PHONY: maybe-clean-target-examples clean-target-examples
21515 maybe-clean-target-examples:
21517 clean-target-examples:
21518 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21519 r=`${PWD_COMMAND}`; export r; \
21520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21521 $(SET_LIB_PATH) \
21522 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
21523 for flag in $(EXTRA_TARGET_FLAGS); do \
21524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21525 done; \
21526 (cd $(TARGET_SUBDIR)/examples && \
21527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21529 "RANLIB=$${RANLIB}" \
21530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21531 clean) \
21532 || exit 1
21535 .PHONY: maybe-distclean-target-examples distclean-target-examples
21536 maybe-distclean-target-examples:
21538 distclean-target-examples:
21539 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21540 r=`${PWD_COMMAND}`; export r; \
21541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21542 $(SET_LIB_PATH) \
21543 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
21544 for flag in $(EXTRA_TARGET_FLAGS); do \
21545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21546 done; \
21547 (cd $(TARGET_SUBDIR)/examples && \
21548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21550 "RANLIB=$${RANLIB}" \
21551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21552 distclean) \
21553 || exit 1
21556 .PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
21557 maybe-maintainer-clean-target-examples:
21559 maintainer-clean-target-examples:
21560 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21561 r=`${PWD_COMMAND}`; export r; \
21562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21563 $(SET_LIB_PATH) \
21564 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
21565 for flag in $(EXTRA_TARGET_FLAGS); do \
21566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21567 done; \
21568 (cd $(TARGET_SUBDIR)/examples && \
21569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21571 "RANLIB=$${RANLIB}" \
21572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21573 maintainer-clean) \
21574 || exit 1
21578 .PHONY: configure-target-libffi maybe-configure-target-libffi
21579 maybe-configure-target-libffi:
21581 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21582 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
21583 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
21584 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
21585 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
21587 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
21588 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
21589 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
21590 r=`${PWD_COMMAND}`; export r; \
21591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21592 $(SET_LIB_PATH) \
21593 AR="$(AR_FOR_TARGET)"; export AR; \
21594 AS="$(AS_FOR_TARGET)"; export AS; \
21595 CC="$(CC_FOR_TARGET)"; export CC; \
21596 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21597 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21598 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21599 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21600 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21601 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21602 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21603 LD="$(LD_FOR_TARGET)"; export LD; \
21604 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21605 NM="$(NM_FOR_TARGET)"; export NM; \
21606 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21607 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21608 echo Configuring in $(TARGET_SUBDIR)/libffi; \
21609 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
21610 case $(srcdir) in \
21611 /* | [A-Za-z]:[\\/]*) \
21612 topdir=$(srcdir) ;; \
21613 *) \
21614 case "$(TARGET_SUBDIR)" in \
21615 .) topdir="../$(srcdir)" ;; \
21616 *) topdir="../../$(srcdir)" ;; \
21617 esac ;; \
21618 esac; \
21619 srcdiroption="--srcdir=$${topdir}/libffi"; \
21620 libsrcdir="$$s/libffi"; \
21621 rm -f no-such-file || : ; \
21622 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21623 $(TARGET_CONFIGARGS) $${srcdiroption} \
21624 --with-target-subdir="$(TARGET_SUBDIR)" \
21625 || exit 1
21627 .PHONY: all-target-libffi maybe-all-target-libffi
21628 maybe-all-target-libffi:
21629 all-target-libffi: configure-target-libffi
21630 @r=`${PWD_COMMAND}`; export r; \
21631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21632 $(SET_LIB_PATH) \
21633 (cd $(TARGET_SUBDIR)/libffi && \
21634 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21636 .PHONY: check-target-libffi maybe-check-target-libffi
21637 maybe-check-target-libffi:
21639 check-target-libffi:
21640 @r=`${PWD_COMMAND}`; export r; \
21641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21642 $(SET_LIB_PATH) \
21643 (cd $(TARGET_SUBDIR)/libffi && \
21644 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21647 .PHONY: install-target-libffi maybe-install-target-libffi
21648 maybe-install-target-libffi:
21650 install-target-libffi: installdirs
21651 @r=`${PWD_COMMAND}`; export r; \
21652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21653 $(SET_LIB_PATH) \
21654 (cd $(TARGET_SUBDIR)/libffi && \
21655 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21658 # Other targets (info, dvi, etc.)
21660 .PHONY: maybe-info-target-libffi info-target-libffi
21661 maybe-info-target-libffi:
21663 info-target-libffi: \
21664 configure-target-libffi
21665 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21666 r=`${PWD_COMMAND}`; export r; \
21667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21668 $(SET_LIB_PATH) \
21669 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
21670 for flag in $(EXTRA_TARGET_FLAGS); do \
21671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21672 done; \
21673 (cd $(TARGET_SUBDIR)/libffi && \
21674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21676 "RANLIB=$${RANLIB}" \
21677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21678 info) \
21679 || exit 1
21682 .PHONY: maybe-dvi-target-libffi dvi-target-libffi
21683 maybe-dvi-target-libffi:
21685 dvi-target-libffi: \
21686 configure-target-libffi
21687 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21688 r=`${PWD_COMMAND}`; export r; \
21689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21690 $(SET_LIB_PATH) \
21691 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
21692 for flag in $(EXTRA_TARGET_FLAGS); do \
21693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21694 done; \
21695 (cd $(TARGET_SUBDIR)/libffi && \
21696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21698 "RANLIB=$${RANLIB}" \
21699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21700 dvi) \
21701 || exit 1
21704 .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
21705 maybe-TAGS-target-libffi:
21707 TAGS-target-libffi: \
21708 configure-target-libffi
21709 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21710 r=`${PWD_COMMAND}`; export r; \
21711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21712 $(SET_LIB_PATH) \
21713 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
21714 for flag in $(EXTRA_TARGET_FLAGS); do \
21715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21716 done; \
21717 (cd $(TARGET_SUBDIR)/libffi && \
21718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21720 "RANLIB=$${RANLIB}" \
21721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21722 TAGS) \
21723 || exit 1
21726 .PHONY: maybe-install-info-target-libffi install-info-target-libffi
21727 maybe-install-info-target-libffi:
21729 install-info-target-libffi: \
21730 configure-target-libffi \
21731 info-target-libffi
21732 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21733 r=`${PWD_COMMAND}`; export r; \
21734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21735 $(SET_LIB_PATH) \
21736 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
21737 for flag in $(EXTRA_TARGET_FLAGS); do \
21738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21739 done; \
21740 (cd $(TARGET_SUBDIR)/libffi && \
21741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21743 "RANLIB=$${RANLIB}" \
21744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21745 install-info) \
21746 || exit 1
21749 .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
21750 maybe-installcheck-target-libffi:
21752 installcheck-target-libffi: \
21753 configure-target-libffi
21754 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21755 r=`${PWD_COMMAND}`; export r; \
21756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21757 $(SET_LIB_PATH) \
21758 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
21759 for flag in $(EXTRA_TARGET_FLAGS); do \
21760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21761 done; \
21762 (cd $(TARGET_SUBDIR)/libffi && \
21763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21765 "RANLIB=$${RANLIB}" \
21766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21767 installcheck) \
21768 || exit 1
21771 .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
21772 maybe-mostlyclean-target-libffi:
21774 mostlyclean-target-libffi:
21775 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21776 r=`${PWD_COMMAND}`; export r; \
21777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21778 $(SET_LIB_PATH) \
21779 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
21780 for flag in $(EXTRA_TARGET_FLAGS); do \
21781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21782 done; \
21783 (cd $(TARGET_SUBDIR)/libffi && \
21784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21786 "RANLIB=$${RANLIB}" \
21787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21788 mostlyclean) \
21789 || exit 1
21792 .PHONY: maybe-clean-target-libffi clean-target-libffi
21793 maybe-clean-target-libffi:
21795 clean-target-libffi:
21796 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21797 r=`${PWD_COMMAND}`; export r; \
21798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21799 $(SET_LIB_PATH) \
21800 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
21801 for flag in $(EXTRA_TARGET_FLAGS); do \
21802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21803 done; \
21804 (cd $(TARGET_SUBDIR)/libffi && \
21805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21807 "RANLIB=$${RANLIB}" \
21808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21809 clean) \
21810 || exit 1
21813 .PHONY: maybe-distclean-target-libffi distclean-target-libffi
21814 maybe-distclean-target-libffi:
21816 distclean-target-libffi:
21817 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21818 r=`${PWD_COMMAND}`; export r; \
21819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21820 $(SET_LIB_PATH) \
21821 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
21822 for flag in $(EXTRA_TARGET_FLAGS); do \
21823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21824 done; \
21825 (cd $(TARGET_SUBDIR)/libffi && \
21826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21828 "RANLIB=$${RANLIB}" \
21829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21830 distclean) \
21831 || exit 1
21834 .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
21835 maybe-maintainer-clean-target-libffi:
21837 maintainer-clean-target-libffi:
21838 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21839 r=`${PWD_COMMAND}`; export r; \
21840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21841 $(SET_LIB_PATH) \
21842 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
21843 for flag in $(EXTRA_TARGET_FLAGS); do \
21844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21845 done; \
21846 (cd $(TARGET_SUBDIR)/libffi && \
21847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21849 "RANLIB=$${RANLIB}" \
21850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21851 maintainer-clean) \
21852 || exit 1
21856 .PHONY: configure-target-libjava maybe-configure-target-libjava
21857 maybe-configure-target-libjava:
21859 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21860 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
21861 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
21862 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
21863 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
21865 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
21866 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
21867 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
21868 r=`${PWD_COMMAND}`; export r; \
21869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21870 $(SET_LIB_PATH) \
21871 AR="$(AR_FOR_TARGET)"; export AR; \
21872 AS="$(AS_FOR_TARGET)"; export AS; \
21873 CC="$(CC_FOR_TARGET)"; export CC; \
21874 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21875 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21876 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21877 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
21878 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
21879 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21880 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21881 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21882 LD="$(LD_FOR_TARGET)"; export LD; \
21883 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21884 NM="$(NM_FOR_TARGET)"; export NM; \
21885 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21886 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21887 echo Configuring in $(TARGET_SUBDIR)/libjava; \
21888 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
21889 case $(srcdir) in \
21890 /* | [A-Za-z]:[\\/]*) \
21891 topdir=$(srcdir) ;; \
21892 *) \
21893 case "$(TARGET_SUBDIR)" in \
21894 .) topdir="../$(srcdir)" ;; \
21895 *) topdir="../../$(srcdir)" ;; \
21896 esac ;; \
21897 esac; \
21898 srcdiroption="--srcdir=$${topdir}/libjava"; \
21899 libsrcdir="$$s/libjava"; \
21900 rm -f no-such-file || : ; \
21901 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21902 $(TARGET_CONFIGARGS) $${srcdiroption} \
21903 --with-target-subdir="$(TARGET_SUBDIR)" \
21904 || exit 1
21906 .PHONY: all-target-libjava maybe-all-target-libjava
21907 maybe-all-target-libjava:
21908 all-target-libjava: configure-target-libjava
21909 @r=`${PWD_COMMAND}`; export r; \
21910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21911 $(SET_LIB_PATH) \
21912 (cd $(TARGET_SUBDIR)/libjava && \
21913 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
21915 .PHONY: check-target-libjava maybe-check-target-libjava
21916 maybe-check-target-libjava:
21918 check-target-libjava:
21919 @r=`${PWD_COMMAND}`; export r; \
21920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21921 $(SET_LIB_PATH) \
21922 (cd $(TARGET_SUBDIR)/libjava && \
21923 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
21926 .PHONY: install-target-libjava maybe-install-target-libjava
21927 maybe-install-target-libjava:
21929 install-target-libjava: installdirs
21930 @r=`${PWD_COMMAND}`; export r; \
21931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21932 $(SET_LIB_PATH) \
21933 (cd $(TARGET_SUBDIR)/libjava && \
21934 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21937 # Other targets (info, dvi, etc.)
21939 .PHONY: maybe-info-target-libjava info-target-libjava
21940 maybe-info-target-libjava:
21942 info-target-libjava: \
21943 configure-target-libjava
21944 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21945 r=`${PWD_COMMAND}`; export r; \
21946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21947 $(SET_LIB_PATH) \
21948 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
21949 for flag in $(EXTRA_TARGET_FLAGS); do \
21950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21951 done; \
21952 (cd $(TARGET_SUBDIR)/libjava && \
21953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21955 "RANLIB=$${RANLIB}" \
21956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21957 info) \
21958 || exit 1
21961 .PHONY: maybe-dvi-target-libjava dvi-target-libjava
21962 maybe-dvi-target-libjava:
21964 dvi-target-libjava: \
21965 configure-target-libjava
21966 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21967 r=`${PWD_COMMAND}`; export r; \
21968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21969 $(SET_LIB_PATH) \
21970 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
21971 for flag in $(EXTRA_TARGET_FLAGS); do \
21972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21973 done; \
21974 (cd $(TARGET_SUBDIR)/libjava && \
21975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21977 "RANLIB=$${RANLIB}" \
21978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21979 dvi) \
21980 || exit 1
21983 .PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
21984 maybe-TAGS-target-libjava:
21986 TAGS-target-libjava: \
21987 configure-target-libjava
21988 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21989 r=`${PWD_COMMAND}`; export r; \
21990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21991 $(SET_LIB_PATH) \
21992 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
21993 for flag in $(EXTRA_TARGET_FLAGS); do \
21994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21995 done; \
21996 (cd $(TARGET_SUBDIR)/libjava && \
21997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21999 "RANLIB=$${RANLIB}" \
22000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22001 TAGS) \
22002 || exit 1
22005 .PHONY: maybe-install-info-target-libjava install-info-target-libjava
22006 maybe-install-info-target-libjava:
22008 install-info-target-libjava: \
22009 configure-target-libjava \
22010 info-target-libjava
22011 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22012 r=`${PWD_COMMAND}`; export r; \
22013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22014 $(SET_LIB_PATH) \
22015 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
22016 for flag in $(EXTRA_TARGET_FLAGS); do \
22017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22018 done; \
22019 (cd $(TARGET_SUBDIR)/libjava && \
22020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22022 "RANLIB=$${RANLIB}" \
22023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22024 install-info) \
22025 || exit 1
22028 .PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
22029 maybe-installcheck-target-libjava:
22031 installcheck-target-libjava: \
22032 configure-target-libjava
22033 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22034 r=`${PWD_COMMAND}`; export r; \
22035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22036 $(SET_LIB_PATH) \
22037 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
22038 for flag in $(EXTRA_TARGET_FLAGS); do \
22039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22040 done; \
22041 (cd $(TARGET_SUBDIR)/libjava && \
22042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22044 "RANLIB=$${RANLIB}" \
22045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22046 installcheck) \
22047 || exit 1
22050 .PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
22051 maybe-mostlyclean-target-libjava:
22053 mostlyclean-target-libjava:
22054 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22055 r=`${PWD_COMMAND}`; export r; \
22056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22057 $(SET_LIB_PATH) \
22058 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
22059 for flag in $(EXTRA_TARGET_FLAGS); do \
22060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22061 done; \
22062 (cd $(TARGET_SUBDIR)/libjava && \
22063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22065 "RANLIB=$${RANLIB}" \
22066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22067 mostlyclean) \
22068 || exit 1
22071 .PHONY: maybe-clean-target-libjava clean-target-libjava
22072 maybe-clean-target-libjava:
22074 clean-target-libjava:
22075 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22076 r=`${PWD_COMMAND}`; export r; \
22077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22078 $(SET_LIB_PATH) \
22079 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
22080 for flag in $(EXTRA_TARGET_FLAGS); do \
22081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22082 done; \
22083 (cd $(TARGET_SUBDIR)/libjava && \
22084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22086 "RANLIB=$${RANLIB}" \
22087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22088 clean) \
22089 || exit 1
22092 .PHONY: maybe-distclean-target-libjava distclean-target-libjava
22093 maybe-distclean-target-libjava:
22095 distclean-target-libjava:
22096 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22097 r=`${PWD_COMMAND}`; export r; \
22098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22099 $(SET_LIB_PATH) \
22100 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
22101 for flag in $(EXTRA_TARGET_FLAGS); do \
22102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22103 done; \
22104 (cd $(TARGET_SUBDIR)/libjava && \
22105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22107 "RANLIB=$${RANLIB}" \
22108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22109 distclean) \
22110 || exit 1
22113 .PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
22114 maybe-maintainer-clean-target-libjava:
22116 maintainer-clean-target-libjava:
22117 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22118 r=`${PWD_COMMAND}`; export r; \
22119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22120 $(SET_LIB_PATH) \
22121 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
22122 for flag in $(EXTRA_TARGET_FLAGS); do \
22123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22124 done; \
22125 (cd $(TARGET_SUBDIR)/libjava && \
22126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22128 "RANLIB=$${RANLIB}" \
22129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22130 maintainer-clean) \
22131 || exit 1
22135 .PHONY: configure-target-zlib maybe-configure-target-zlib
22136 maybe-configure-target-zlib:
22138 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22139 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
22140 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
22141 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
22142 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
22144 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
22145 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22146 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
22147 r=`${PWD_COMMAND}`; export r; \
22148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22149 $(SET_LIB_PATH) \
22150 AR="$(AR_FOR_TARGET)"; export AR; \
22151 AS="$(AS_FOR_TARGET)"; export AS; \
22152 CC="$(CC_FOR_TARGET)"; export CC; \
22153 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22155 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22156 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22157 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22158 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22159 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22160 LD="$(LD_FOR_TARGET)"; export LD; \
22161 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22162 NM="$(NM_FOR_TARGET)"; export NM; \
22163 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22164 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22165 echo Configuring in $(TARGET_SUBDIR)/zlib; \
22166 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
22167 case $(srcdir) in \
22168 /* | [A-Za-z]:[\\/]*) \
22169 topdir=$(srcdir) ;; \
22170 *) \
22171 case "$(TARGET_SUBDIR)" in \
22172 .) topdir="../$(srcdir)" ;; \
22173 *) topdir="../../$(srcdir)" ;; \
22174 esac ;; \
22175 esac; \
22176 if [ "$(srcdir)" = "." ] ; then \
22177 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
22178 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
22179 if [ -f Makefile ]; then \
22180 if $(MAKE) distclean; then \
22181 true; \
22182 else \
22183 exit 1; \
22184 fi; \
22185 else \
22186 true; \
22187 fi; \
22188 else \
22189 exit 1; \
22190 fi; \
22191 else \
22192 true; \
22193 fi; \
22194 srcdiroption="--srcdir=."; \
22195 libsrcdir="."; \
22196 else \
22197 srcdiroption="--srcdir=$${topdir}/zlib"; \
22198 libsrcdir="$$s/zlib"; \
22199 fi; \
22200 rm -f no-such-file || : ; \
22201 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22202 $(TARGET_CONFIGARGS) $${srcdiroption} \
22203 --with-target-subdir="$(TARGET_SUBDIR)" \
22204 || exit 1
22206 .PHONY: all-target-zlib maybe-all-target-zlib
22207 maybe-all-target-zlib:
22208 all-target-zlib: configure-target-zlib
22209 @r=`${PWD_COMMAND}`; export r; \
22210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22211 $(SET_LIB_PATH) \
22212 (cd $(TARGET_SUBDIR)/zlib && \
22213 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22215 .PHONY: check-target-zlib maybe-check-target-zlib
22216 maybe-check-target-zlib:
22218 check-target-zlib:
22219 @r=`${PWD_COMMAND}`; export r; \
22220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22221 $(SET_LIB_PATH) \
22222 (cd $(TARGET_SUBDIR)/zlib && \
22223 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22226 .PHONY: install-target-zlib maybe-install-target-zlib
22227 maybe-install-target-zlib:
22229 install-target-zlib: installdirs
22230 @r=`${PWD_COMMAND}`; export r; \
22231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22232 $(SET_LIB_PATH) \
22233 (cd $(TARGET_SUBDIR)/zlib && \
22234 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22237 # Other targets (info, dvi, etc.)
22239 .PHONY: maybe-info-target-zlib info-target-zlib
22240 maybe-info-target-zlib:
22242 info-target-zlib: \
22243 configure-target-zlib
22244 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22245 r=`${PWD_COMMAND}`; export r; \
22246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22247 $(SET_LIB_PATH) \
22248 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
22249 for flag in $(EXTRA_TARGET_FLAGS); do \
22250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22251 done; \
22252 (cd $(TARGET_SUBDIR)/zlib && \
22253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22255 "RANLIB=$${RANLIB}" \
22256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22257 info) \
22258 || exit 1
22261 .PHONY: maybe-dvi-target-zlib dvi-target-zlib
22262 maybe-dvi-target-zlib:
22264 dvi-target-zlib: \
22265 configure-target-zlib
22266 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22269 $(SET_LIB_PATH) \
22270 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
22271 for flag in $(EXTRA_TARGET_FLAGS); do \
22272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22273 done; \
22274 (cd $(TARGET_SUBDIR)/zlib && \
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22279 dvi) \
22280 || exit 1
22283 .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
22284 maybe-TAGS-target-zlib:
22286 TAGS-target-zlib: \
22287 configure-target-zlib
22288 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22289 r=`${PWD_COMMAND}`; export r; \
22290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22291 $(SET_LIB_PATH) \
22292 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
22293 for flag in $(EXTRA_TARGET_FLAGS); do \
22294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22295 done; \
22296 (cd $(TARGET_SUBDIR)/zlib && \
22297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22299 "RANLIB=$${RANLIB}" \
22300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22301 TAGS) \
22302 || exit 1
22305 .PHONY: maybe-install-info-target-zlib install-info-target-zlib
22306 maybe-install-info-target-zlib:
22308 install-info-target-zlib: \
22309 configure-target-zlib \
22310 info-target-zlib
22311 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22312 r=`${PWD_COMMAND}`; export r; \
22313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22314 $(SET_LIB_PATH) \
22315 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
22316 for flag in $(EXTRA_TARGET_FLAGS); do \
22317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22318 done; \
22319 (cd $(TARGET_SUBDIR)/zlib && \
22320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22322 "RANLIB=$${RANLIB}" \
22323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22324 install-info) \
22325 || exit 1
22328 .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
22329 maybe-installcheck-target-zlib:
22331 installcheck-target-zlib: \
22332 configure-target-zlib
22333 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22334 r=`${PWD_COMMAND}`; export r; \
22335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22336 $(SET_LIB_PATH) \
22337 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
22338 for flag in $(EXTRA_TARGET_FLAGS); do \
22339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22340 done; \
22341 (cd $(TARGET_SUBDIR)/zlib && \
22342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22344 "RANLIB=$${RANLIB}" \
22345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22346 installcheck) \
22347 || exit 1
22350 .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
22351 maybe-mostlyclean-target-zlib:
22353 mostlyclean-target-zlib:
22354 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22355 r=`${PWD_COMMAND}`; export r; \
22356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22357 $(SET_LIB_PATH) \
22358 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
22359 for flag in $(EXTRA_TARGET_FLAGS); do \
22360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22361 done; \
22362 (cd $(TARGET_SUBDIR)/zlib && \
22363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22365 "RANLIB=$${RANLIB}" \
22366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22367 mostlyclean) \
22368 || exit 1
22371 .PHONY: maybe-clean-target-zlib clean-target-zlib
22372 maybe-clean-target-zlib:
22374 clean-target-zlib:
22375 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22376 r=`${PWD_COMMAND}`; export r; \
22377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22378 $(SET_LIB_PATH) \
22379 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
22380 for flag in $(EXTRA_TARGET_FLAGS); do \
22381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22382 done; \
22383 (cd $(TARGET_SUBDIR)/zlib && \
22384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22386 "RANLIB=$${RANLIB}" \
22387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22388 clean) \
22389 || exit 1
22392 .PHONY: maybe-distclean-target-zlib distclean-target-zlib
22393 maybe-distclean-target-zlib:
22395 distclean-target-zlib:
22396 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22397 r=`${PWD_COMMAND}`; export r; \
22398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22399 $(SET_LIB_PATH) \
22400 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
22401 for flag in $(EXTRA_TARGET_FLAGS); do \
22402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22403 done; \
22404 (cd $(TARGET_SUBDIR)/zlib && \
22405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22407 "RANLIB=$${RANLIB}" \
22408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22409 distclean) \
22410 || exit 1
22413 .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
22414 maybe-maintainer-clean-target-zlib:
22416 maintainer-clean-target-zlib:
22417 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22418 r=`${PWD_COMMAND}`; export r; \
22419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22420 $(SET_LIB_PATH) \
22421 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
22422 for flag in $(EXTRA_TARGET_FLAGS); do \
22423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22424 done; \
22425 (cd $(TARGET_SUBDIR)/zlib && \
22426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22428 "RANLIB=$${RANLIB}" \
22429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22430 maintainer-clean) \
22431 || exit 1
22435 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
22436 maybe-configure-target-boehm-gc:
22438 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22439 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
22440 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
22441 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
22442 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
22444 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
22445 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22446 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
22447 r=`${PWD_COMMAND}`; export r; \
22448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22449 $(SET_LIB_PATH) \
22450 AR="$(AR_FOR_TARGET)"; export AR; \
22451 AS="$(AS_FOR_TARGET)"; export AS; \
22452 CC="$(CC_FOR_TARGET)"; export CC; \
22453 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22454 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22455 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22456 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22457 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22458 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22459 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22460 LD="$(LD_FOR_TARGET)"; export LD; \
22461 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22462 NM="$(NM_FOR_TARGET)"; export NM; \
22463 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22464 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22465 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
22466 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
22467 case $(srcdir) in \
22468 /* | [A-Za-z]:[\\/]*) \
22469 topdir=$(srcdir) ;; \
22470 *) \
22471 case "$(TARGET_SUBDIR)" in \
22472 .) topdir="../$(srcdir)" ;; \
22473 *) topdir="../../$(srcdir)" ;; \
22474 esac ;; \
22475 esac; \
22476 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
22477 libsrcdir="$$s/boehm-gc"; \
22478 rm -f no-such-file || : ; \
22479 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22480 $(TARGET_CONFIGARGS) $${srcdiroption} \
22481 --with-target-subdir="$(TARGET_SUBDIR)" \
22482 || exit 1
22484 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
22485 maybe-all-target-boehm-gc:
22486 all-target-boehm-gc: configure-target-boehm-gc
22487 @r=`${PWD_COMMAND}`; export r; \
22488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22489 $(SET_LIB_PATH) \
22490 (cd $(TARGET_SUBDIR)/boehm-gc && \
22491 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22493 .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
22494 maybe-check-target-boehm-gc:
22496 check-target-boehm-gc:
22497 @r=`${PWD_COMMAND}`; export r; \
22498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22499 $(SET_LIB_PATH) \
22500 (cd $(TARGET_SUBDIR)/boehm-gc && \
22501 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22504 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
22505 maybe-install-target-boehm-gc:
22507 install-target-boehm-gc: installdirs
22508 @r=`${PWD_COMMAND}`; export r; \
22509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22510 $(SET_LIB_PATH) \
22511 (cd $(TARGET_SUBDIR)/boehm-gc && \
22512 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22515 # Other targets (info, dvi, etc.)
22517 .PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
22518 maybe-info-target-boehm-gc:
22520 info-target-boehm-gc: \
22521 configure-target-boehm-gc
22522 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22523 r=`${PWD_COMMAND}`; export r; \
22524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22525 $(SET_LIB_PATH) \
22526 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
22527 for flag in $(EXTRA_TARGET_FLAGS); do \
22528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22529 done; \
22530 (cd $(TARGET_SUBDIR)/boehm-gc && \
22531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22533 "RANLIB=$${RANLIB}" \
22534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22535 info) \
22536 || exit 1
22539 .PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
22540 maybe-dvi-target-boehm-gc:
22542 dvi-target-boehm-gc: \
22543 configure-target-boehm-gc
22544 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22545 r=`${PWD_COMMAND}`; export r; \
22546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22547 $(SET_LIB_PATH) \
22548 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
22549 for flag in $(EXTRA_TARGET_FLAGS); do \
22550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22551 done; \
22552 (cd $(TARGET_SUBDIR)/boehm-gc && \
22553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22555 "RANLIB=$${RANLIB}" \
22556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22557 dvi) \
22558 || exit 1
22561 .PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
22562 maybe-TAGS-target-boehm-gc:
22564 TAGS-target-boehm-gc: \
22565 configure-target-boehm-gc
22566 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22567 r=`${PWD_COMMAND}`; export r; \
22568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22569 $(SET_LIB_PATH) \
22570 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
22571 for flag in $(EXTRA_TARGET_FLAGS); do \
22572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22573 done; \
22574 (cd $(TARGET_SUBDIR)/boehm-gc && \
22575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22577 "RANLIB=$${RANLIB}" \
22578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22579 TAGS) \
22580 || exit 1
22583 .PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
22584 maybe-install-info-target-boehm-gc:
22586 install-info-target-boehm-gc: \
22587 configure-target-boehm-gc \
22588 info-target-boehm-gc
22589 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22590 r=`${PWD_COMMAND}`; export r; \
22591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22592 $(SET_LIB_PATH) \
22593 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
22594 for flag in $(EXTRA_TARGET_FLAGS); do \
22595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22596 done; \
22597 (cd $(TARGET_SUBDIR)/boehm-gc && \
22598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22600 "RANLIB=$${RANLIB}" \
22601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22602 install-info) \
22603 || exit 1
22606 .PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
22607 maybe-installcheck-target-boehm-gc:
22609 installcheck-target-boehm-gc: \
22610 configure-target-boehm-gc
22611 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22612 r=`${PWD_COMMAND}`; export r; \
22613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22614 $(SET_LIB_PATH) \
22615 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
22616 for flag in $(EXTRA_TARGET_FLAGS); do \
22617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22618 done; \
22619 (cd $(TARGET_SUBDIR)/boehm-gc && \
22620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22622 "RANLIB=$${RANLIB}" \
22623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22624 installcheck) \
22625 || exit 1
22628 .PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
22629 maybe-mostlyclean-target-boehm-gc:
22631 mostlyclean-target-boehm-gc:
22632 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22633 r=`${PWD_COMMAND}`; export r; \
22634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22635 $(SET_LIB_PATH) \
22636 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
22637 for flag in $(EXTRA_TARGET_FLAGS); do \
22638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22639 done; \
22640 (cd $(TARGET_SUBDIR)/boehm-gc && \
22641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22643 "RANLIB=$${RANLIB}" \
22644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22645 mostlyclean) \
22646 || exit 1
22649 .PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
22650 maybe-clean-target-boehm-gc:
22652 clean-target-boehm-gc:
22653 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22654 r=`${PWD_COMMAND}`; export r; \
22655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22656 $(SET_LIB_PATH) \
22657 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
22658 for flag in $(EXTRA_TARGET_FLAGS); do \
22659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22660 done; \
22661 (cd $(TARGET_SUBDIR)/boehm-gc && \
22662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22664 "RANLIB=$${RANLIB}" \
22665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22666 clean) \
22667 || exit 1
22670 .PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
22671 maybe-distclean-target-boehm-gc:
22673 distclean-target-boehm-gc:
22674 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22675 r=`${PWD_COMMAND}`; export r; \
22676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22677 $(SET_LIB_PATH) \
22678 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
22679 for flag in $(EXTRA_TARGET_FLAGS); do \
22680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22681 done; \
22682 (cd $(TARGET_SUBDIR)/boehm-gc && \
22683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22685 "RANLIB=$${RANLIB}" \
22686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22687 distclean) \
22688 || exit 1
22691 .PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
22692 maybe-maintainer-clean-target-boehm-gc:
22694 maintainer-clean-target-boehm-gc:
22695 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22696 r=`${PWD_COMMAND}`; export r; \
22697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22698 $(SET_LIB_PATH) \
22699 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
22700 for flag in $(EXTRA_TARGET_FLAGS); do \
22701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22702 done; \
22703 (cd $(TARGET_SUBDIR)/boehm-gc && \
22704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22706 "RANLIB=$${RANLIB}" \
22707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22708 maintainer-clean) \
22709 || exit 1
22713 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
22714 maybe-configure-target-qthreads:
22716 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22717 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
22718 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
22719 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
22720 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
22722 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
22723 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
22724 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
22725 r=`${PWD_COMMAND}`; export r; \
22726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22727 $(SET_LIB_PATH) \
22728 AR="$(AR_FOR_TARGET)"; export AR; \
22729 AS="$(AS_FOR_TARGET)"; export AS; \
22730 CC="$(CC_FOR_TARGET)"; export CC; \
22731 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22732 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22733 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22734 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22735 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22736 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22737 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22738 LD="$(LD_FOR_TARGET)"; export LD; \
22739 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22740 NM="$(NM_FOR_TARGET)"; export NM; \
22741 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22742 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22743 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
22744 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
22745 case $(srcdir) in \
22746 /* | [A-Za-z]:[\\/]*) \
22747 topdir=$(srcdir) ;; \
22748 *) \
22749 case "$(TARGET_SUBDIR)" in \
22750 .) topdir="../$(srcdir)" ;; \
22751 *) topdir="../../$(srcdir)" ;; \
22752 esac ;; \
22753 esac; \
22754 srcdiroption="--srcdir=$${topdir}/qthreads"; \
22755 libsrcdir="$$s/qthreads"; \
22756 rm -f no-such-file || : ; \
22757 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22758 $(TARGET_CONFIGARGS) $${srcdiroption} \
22759 --with-target-subdir="$(TARGET_SUBDIR)" \
22760 || exit 1
22762 .PHONY: all-target-qthreads maybe-all-target-qthreads
22763 maybe-all-target-qthreads:
22764 all-target-qthreads: configure-target-qthreads
22765 @r=`${PWD_COMMAND}`; export r; \
22766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22767 $(SET_LIB_PATH) \
22768 (cd $(TARGET_SUBDIR)/qthreads && \
22769 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22771 .PHONY: check-target-qthreads maybe-check-target-qthreads
22772 maybe-check-target-qthreads:
22774 check-target-qthreads:
22775 @r=`${PWD_COMMAND}`; export r; \
22776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22777 $(SET_LIB_PATH) \
22778 (cd $(TARGET_SUBDIR)/qthreads && \
22779 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22782 .PHONY: install-target-qthreads maybe-install-target-qthreads
22783 maybe-install-target-qthreads:
22785 install-target-qthreads: installdirs
22786 @r=`${PWD_COMMAND}`; export r; \
22787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22788 $(SET_LIB_PATH) \
22789 (cd $(TARGET_SUBDIR)/qthreads && \
22790 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22793 # Other targets (info, dvi, etc.)
22795 .PHONY: maybe-info-target-qthreads info-target-qthreads
22796 maybe-info-target-qthreads:
22798 info-target-qthreads: \
22799 configure-target-qthreads
22800 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22801 r=`${PWD_COMMAND}`; export r; \
22802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22803 $(SET_LIB_PATH) \
22804 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
22805 for flag in $(EXTRA_TARGET_FLAGS); do \
22806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22807 done; \
22808 (cd $(TARGET_SUBDIR)/qthreads && \
22809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22811 "RANLIB=$${RANLIB}" \
22812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22813 info) \
22814 || exit 1
22817 .PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
22818 maybe-dvi-target-qthreads:
22820 dvi-target-qthreads: \
22821 configure-target-qthreads
22822 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22823 r=`${PWD_COMMAND}`; export r; \
22824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22825 $(SET_LIB_PATH) \
22826 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
22827 for flag in $(EXTRA_TARGET_FLAGS); do \
22828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22829 done; \
22830 (cd $(TARGET_SUBDIR)/qthreads && \
22831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22833 "RANLIB=$${RANLIB}" \
22834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22835 dvi) \
22836 || exit 1
22839 .PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
22840 maybe-TAGS-target-qthreads:
22842 TAGS-target-qthreads: \
22843 configure-target-qthreads
22844 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22845 r=`${PWD_COMMAND}`; export r; \
22846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22847 $(SET_LIB_PATH) \
22848 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
22849 for flag in $(EXTRA_TARGET_FLAGS); do \
22850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22851 done; \
22852 (cd $(TARGET_SUBDIR)/qthreads && \
22853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22855 "RANLIB=$${RANLIB}" \
22856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22857 TAGS) \
22858 || exit 1
22861 .PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
22862 maybe-install-info-target-qthreads:
22864 install-info-target-qthreads: \
22865 configure-target-qthreads \
22866 info-target-qthreads
22867 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22868 r=`${PWD_COMMAND}`; export r; \
22869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22870 $(SET_LIB_PATH) \
22871 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
22872 for flag in $(EXTRA_TARGET_FLAGS); do \
22873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22874 done; \
22875 (cd $(TARGET_SUBDIR)/qthreads && \
22876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22878 "RANLIB=$${RANLIB}" \
22879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22880 install-info) \
22881 || exit 1
22884 .PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
22885 maybe-installcheck-target-qthreads:
22887 installcheck-target-qthreads: \
22888 configure-target-qthreads
22889 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22890 r=`${PWD_COMMAND}`; export r; \
22891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22892 $(SET_LIB_PATH) \
22893 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
22894 for flag in $(EXTRA_TARGET_FLAGS); do \
22895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22896 done; \
22897 (cd $(TARGET_SUBDIR)/qthreads && \
22898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22900 "RANLIB=$${RANLIB}" \
22901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22902 installcheck) \
22903 || exit 1
22906 .PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
22907 maybe-mostlyclean-target-qthreads:
22909 mostlyclean-target-qthreads:
22910 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22911 r=`${PWD_COMMAND}`; export r; \
22912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22913 $(SET_LIB_PATH) \
22914 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
22915 for flag in $(EXTRA_TARGET_FLAGS); do \
22916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22917 done; \
22918 (cd $(TARGET_SUBDIR)/qthreads && \
22919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22921 "RANLIB=$${RANLIB}" \
22922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22923 mostlyclean) \
22924 || exit 1
22927 .PHONY: maybe-clean-target-qthreads clean-target-qthreads
22928 maybe-clean-target-qthreads:
22930 clean-target-qthreads:
22931 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22932 r=`${PWD_COMMAND}`; export r; \
22933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22934 $(SET_LIB_PATH) \
22935 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
22936 for flag in $(EXTRA_TARGET_FLAGS); do \
22937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22938 done; \
22939 (cd $(TARGET_SUBDIR)/qthreads && \
22940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22942 "RANLIB=$${RANLIB}" \
22943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22944 clean) \
22945 || exit 1
22948 .PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
22949 maybe-distclean-target-qthreads:
22951 distclean-target-qthreads:
22952 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22953 r=`${PWD_COMMAND}`; export r; \
22954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22955 $(SET_LIB_PATH) \
22956 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
22957 for flag in $(EXTRA_TARGET_FLAGS); do \
22958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22959 done; \
22960 (cd $(TARGET_SUBDIR)/qthreads && \
22961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22963 "RANLIB=$${RANLIB}" \
22964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22965 distclean) \
22966 || exit 1
22969 .PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
22970 maybe-maintainer-clean-target-qthreads:
22972 maintainer-clean-target-qthreads:
22973 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22974 r=`${PWD_COMMAND}`; export r; \
22975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22976 $(SET_LIB_PATH) \
22977 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
22978 for flag in $(EXTRA_TARGET_FLAGS); do \
22979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22980 done; \
22981 (cd $(TARGET_SUBDIR)/qthreads && \
22982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22984 "RANLIB=$${RANLIB}" \
22985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22986 maintainer-clean) \
22987 || exit 1
22991 .PHONY: configure-target-rda maybe-configure-target-rda
22992 maybe-configure-target-rda:
22994 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22995 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
22996 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
22997 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
22998 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
23000 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
23001 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
23002 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
23003 r=`${PWD_COMMAND}`; export r; \
23004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23005 $(SET_LIB_PATH) \
23006 AR="$(AR_FOR_TARGET)"; export AR; \
23007 AS="$(AS_FOR_TARGET)"; export AS; \
23008 CC="$(CC_FOR_TARGET)"; export CC; \
23009 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23010 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23011 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23012 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23013 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23014 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23015 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23016 LD="$(LD_FOR_TARGET)"; export LD; \
23017 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23018 NM="$(NM_FOR_TARGET)"; export NM; \
23019 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23020 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23021 echo Configuring in $(TARGET_SUBDIR)/rda; \
23022 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
23023 case $(srcdir) in \
23024 /* | [A-Za-z]:[\\/]*) \
23025 topdir=$(srcdir) ;; \
23026 *) \
23027 case "$(TARGET_SUBDIR)" in \
23028 .) topdir="../$(srcdir)" ;; \
23029 *) topdir="../../$(srcdir)" ;; \
23030 esac ;; \
23031 esac; \
23032 srcdiroption="--srcdir=$${topdir}/rda"; \
23033 libsrcdir="$$s/rda"; \
23034 rm -f no-such-file || : ; \
23035 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23036 $(TARGET_CONFIGARGS) $${srcdiroption} \
23037 --with-target-subdir="$(TARGET_SUBDIR)" \
23038 || exit 1
23040 .PHONY: all-target-rda maybe-all-target-rda
23041 maybe-all-target-rda:
23042 all-target-rda: configure-target-rda
23043 @r=`${PWD_COMMAND}`; export r; \
23044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23045 $(SET_LIB_PATH) \
23046 (cd $(TARGET_SUBDIR)/rda && \
23047 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23049 .PHONY: check-target-rda maybe-check-target-rda
23050 maybe-check-target-rda:
23052 check-target-rda:
23053 @r=`${PWD_COMMAND}`; export r; \
23054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23055 $(SET_LIB_PATH) \
23056 (cd $(TARGET_SUBDIR)/rda && \
23057 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23060 .PHONY: install-target-rda maybe-install-target-rda
23061 maybe-install-target-rda:
23063 install-target-rda: installdirs
23064 @r=`${PWD_COMMAND}`; export r; \
23065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23066 $(SET_LIB_PATH) \
23067 (cd $(TARGET_SUBDIR)/rda && \
23068 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23071 # Other targets (info, dvi, etc.)
23073 .PHONY: maybe-info-target-rda info-target-rda
23074 maybe-info-target-rda:
23076 info-target-rda: \
23077 configure-target-rda
23078 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23079 r=`${PWD_COMMAND}`; export r; \
23080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23081 $(SET_LIB_PATH) \
23082 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
23083 for flag in $(EXTRA_TARGET_FLAGS); do \
23084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23085 done; \
23086 (cd $(TARGET_SUBDIR)/rda && \
23087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23089 "RANLIB=$${RANLIB}" \
23090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23091 info) \
23092 || exit 1
23095 .PHONY: maybe-dvi-target-rda dvi-target-rda
23096 maybe-dvi-target-rda:
23098 dvi-target-rda: \
23099 configure-target-rda
23100 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23101 r=`${PWD_COMMAND}`; export r; \
23102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23103 $(SET_LIB_PATH) \
23104 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
23105 for flag in $(EXTRA_TARGET_FLAGS); do \
23106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23107 done; \
23108 (cd $(TARGET_SUBDIR)/rda && \
23109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23111 "RANLIB=$${RANLIB}" \
23112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23113 dvi) \
23114 || exit 1
23117 .PHONY: maybe-TAGS-target-rda TAGS-target-rda
23118 maybe-TAGS-target-rda:
23120 TAGS-target-rda: \
23121 configure-target-rda
23122 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23123 r=`${PWD_COMMAND}`; export r; \
23124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23125 $(SET_LIB_PATH) \
23126 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
23127 for flag in $(EXTRA_TARGET_FLAGS); do \
23128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23129 done; \
23130 (cd $(TARGET_SUBDIR)/rda && \
23131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23133 "RANLIB=$${RANLIB}" \
23134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23135 TAGS) \
23136 || exit 1
23139 .PHONY: maybe-install-info-target-rda install-info-target-rda
23140 maybe-install-info-target-rda:
23142 install-info-target-rda: \
23143 configure-target-rda \
23144 info-target-rda
23145 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23146 r=`${PWD_COMMAND}`; export r; \
23147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23148 $(SET_LIB_PATH) \
23149 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
23150 for flag in $(EXTRA_TARGET_FLAGS); do \
23151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23152 done; \
23153 (cd $(TARGET_SUBDIR)/rda && \
23154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23156 "RANLIB=$${RANLIB}" \
23157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23158 install-info) \
23159 || exit 1
23162 .PHONY: maybe-installcheck-target-rda installcheck-target-rda
23163 maybe-installcheck-target-rda:
23165 installcheck-target-rda: \
23166 configure-target-rda
23167 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23168 r=`${PWD_COMMAND}`; export r; \
23169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23170 $(SET_LIB_PATH) \
23171 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
23172 for flag in $(EXTRA_TARGET_FLAGS); do \
23173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23174 done; \
23175 (cd $(TARGET_SUBDIR)/rda && \
23176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23178 "RANLIB=$${RANLIB}" \
23179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23180 installcheck) \
23181 || exit 1
23184 .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
23185 maybe-mostlyclean-target-rda:
23187 mostlyclean-target-rda:
23188 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23189 r=`${PWD_COMMAND}`; export r; \
23190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23191 $(SET_LIB_PATH) \
23192 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
23193 for flag in $(EXTRA_TARGET_FLAGS); do \
23194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23195 done; \
23196 (cd $(TARGET_SUBDIR)/rda && \
23197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23199 "RANLIB=$${RANLIB}" \
23200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23201 mostlyclean) \
23202 || exit 1
23205 .PHONY: maybe-clean-target-rda clean-target-rda
23206 maybe-clean-target-rda:
23208 clean-target-rda:
23209 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23210 r=`${PWD_COMMAND}`; export r; \
23211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23212 $(SET_LIB_PATH) \
23213 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
23214 for flag in $(EXTRA_TARGET_FLAGS); do \
23215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23216 done; \
23217 (cd $(TARGET_SUBDIR)/rda && \
23218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23220 "RANLIB=$${RANLIB}" \
23221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23222 clean) \
23223 || exit 1
23226 .PHONY: maybe-distclean-target-rda distclean-target-rda
23227 maybe-distclean-target-rda:
23229 distclean-target-rda:
23230 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23231 r=`${PWD_COMMAND}`; export r; \
23232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23233 $(SET_LIB_PATH) \
23234 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
23235 for flag in $(EXTRA_TARGET_FLAGS); do \
23236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23237 done; \
23238 (cd $(TARGET_SUBDIR)/rda && \
23239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23241 "RANLIB=$${RANLIB}" \
23242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23243 distclean) \
23244 || exit 1
23247 .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
23248 maybe-maintainer-clean-target-rda:
23250 maintainer-clean-target-rda:
23251 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23252 r=`${PWD_COMMAND}`; export r; \
23253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23254 $(SET_LIB_PATH) \
23255 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
23256 for flag in $(EXTRA_TARGET_FLAGS); do \
23257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23258 done; \
23259 (cd $(TARGET_SUBDIR)/rda && \
23260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23262 "RANLIB=$${RANLIB}" \
23263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23264 maintainer-clean) \
23265 || exit 1
23269 .PHONY: configure-target-libada maybe-configure-target-libada
23270 maybe-configure-target-libada:
23272 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23273 $(TARGET_SUBDIR)/libada/multilib.out: multilib.out
23274 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
23275 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
23276 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
23278 configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
23279 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
23280 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
23281 r=`${PWD_COMMAND}`; export r; \
23282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23283 $(SET_LIB_PATH) \
23284 AR="$(AR_FOR_TARGET)"; export AR; \
23285 AS="$(AS_FOR_TARGET)"; export AS; \
23286 CC="$(CC_FOR_TARGET)"; export CC; \
23287 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23288 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23289 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23290 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23291 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23292 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23293 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23294 LD="$(LD_FOR_TARGET)"; export LD; \
23295 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23296 NM="$(NM_FOR_TARGET)"; export NM; \
23297 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23298 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23299 echo Configuring in $(TARGET_SUBDIR)/libada; \
23300 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
23301 case $(srcdir) in \
23302 /* | [A-Za-z]:[\\/]*) \
23303 topdir=$(srcdir) ;; \
23304 *) \
23305 case "$(TARGET_SUBDIR)" in \
23306 .) topdir="../$(srcdir)" ;; \
23307 *) topdir="../../$(srcdir)" ;; \
23308 esac ;; \
23309 esac; \
23310 srcdiroption="--srcdir=$${topdir}/libada"; \
23311 libsrcdir="$$s/libada"; \
23312 rm -f no-such-file || : ; \
23313 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23314 $(TARGET_CONFIGARGS) $${srcdiroption} \
23315 --with-target-subdir="$(TARGET_SUBDIR)" \
23316 || exit 1
23318 .PHONY: all-target-libada maybe-all-target-libada
23319 maybe-all-target-libada:
23320 all-target-libada: configure-target-libada
23321 @r=`${PWD_COMMAND}`; export r; \
23322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23323 $(SET_LIB_PATH) \
23324 (cd $(TARGET_SUBDIR)/libada && \
23325 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23327 .PHONY: check-target-libada maybe-check-target-libada
23328 maybe-check-target-libada:
23330 check-target-libada:
23331 @r=`${PWD_COMMAND}`; export r; \
23332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23333 $(SET_LIB_PATH) \
23334 (cd $(TARGET_SUBDIR)/libada && \
23335 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23338 .PHONY: install-target-libada maybe-install-target-libada
23339 maybe-install-target-libada:
23341 install-target-libada: installdirs
23342 @r=`${PWD_COMMAND}`; export r; \
23343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23344 $(SET_LIB_PATH) \
23345 (cd $(TARGET_SUBDIR)/libada && \
23346 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23349 # Other targets (info, dvi, etc.)
23351 .PHONY: maybe-info-target-libada info-target-libada
23352 maybe-info-target-libada:
23354 info-target-libada: \
23355 configure-target-libada
23356 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23357 r=`${PWD_COMMAND}`; export r; \
23358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23359 $(SET_LIB_PATH) \
23360 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
23361 for flag in $(EXTRA_TARGET_FLAGS); do \
23362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23363 done; \
23364 (cd $(TARGET_SUBDIR)/libada && \
23365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23367 "RANLIB=$${RANLIB}" \
23368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23369 info) \
23370 || exit 1
23373 .PHONY: maybe-dvi-target-libada dvi-target-libada
23374 maybe-dvi-target-libada:
23376 dvi-target-libada: \
23377 configure-target-libada
23378 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23379 r=`${PWD_COMMAND}`; export r; \
23380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23381 $(SET_LIB_PATH) \
23382 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
23383 for flag in $(EXTRA_TARGET_FLAGS); do \
23384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23385 done; \
23386 (cd $(TARGET_SUBDIR)/libada && \
23387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23389 "RANLIB=$${RANLIB}" \
23390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23391 dvi) \
23392 || exit 1
23395 .PHONY: maybe-TAGS-target-libada TAGS-target-libada
23396 maybe-TAGS-target-libada:
23398 TAGS-target-libada: \
23399 configure-target-libada
23400 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23401 r=`${PWD_COMMAND}`; export r; \
23402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23403 $(SET_LIB_PATH) \
23404 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
23405 for flag in $(EXTRA_TARGET_FLAGS); do \
23406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23407 done; \
23408 (cd $(TARGET_SUBDIR)/libada && \
23409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23411 "RANLIB=$${RANLIB}" \
23412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23413 TAGS) \
23414 || exit 1
23417 .PHONY: maybe-install-info-target-libada install-info-target-libada
23418 maybe-install-info-target-libada:
23420 install-info-target-libada: \
23421 configure-target-libada \
23422 info-target-libada
23423 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23424 r=`${PWD_COMMAND}`; export r; \
23425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23426 $(SET_LIB_PATH) \
23427 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
23428 for flag in $(EXTRA_TARGET_FLAGS); do \
23429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23430 done; \
23431 (cd $(TARGET_SUBDIR)/libada && \
23432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23434 "RANLIB=$${RANLIB}" \
23435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23436 install-info) \
23437 || exit 1
23440 .PHONY: maybe-installcheck-target-libada installcheck-target-libada
23441 maybe-installcheck-target-libada:
23443 installcheck-target-libada: \
23444 configure-target-libada
23445 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23446 r=`${PWD_COMMAND}`; export r; \
23447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23448 $(SET_LIB_PATH) \
23449 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
23450 for flag in $(EXTRA_TARGET_FLAGS); do \
23451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23452 done; \
23453 (cd $(TARGET_SUBDIR)/libada && \
23454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23456 "RANLIB=$${RANLIB}" \
23457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23458 installcheck) \
23459 || exit 1
23462 .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
23463 maybe-mostlyclean-target-libada:
23465 mostlyclean-target-libada:
23466 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23467 r=`${PWD_COMMAND}`; export r; \
23468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23469 $(SET_LIB_PATH) \
23470 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
23471 for flag in $(EXTRA_TARGET_FLAGS); do \
23472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23473 done; \
23474 (cd $(TARGET_SUBDIR)/libada && \
23475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23477 "RANLIB=$${RANLIB}" \
23478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23479 mostlyclean) \
23480 || exit 1
23483 .PHONY: maybe-clean-target-libada clean-target-libada
23484 maybe-clean-target-libada:
23486 clean-target-libada:
23487 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23488 r=`${PWD_COMMAND}`; export r; \
23489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23490 $(SET_LIB_PATH) \
23491 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
23492 for flag in $(EXTRA_TARGET_FLAGS); do \
23493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23494 done; \
23495 (cd $(TARGET_SUBDIR)/libada && \
23496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23498 "RANLIB=$${RANLIB}" \
23499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23500 clean) \
23501 || exit 1
23504 .PHONY: maybe-distclean-target-libada distclean-target-libada
23505 maybe-distclean-target-libada:
23507 distclean-target-libada:
23508 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23509 r=`${PWD_COMMAND}`; export r; \
23510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23511 $(SET_LIB_PATH) \
23512 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
23513 for flag in $(EXTRA_TARGET_FLAGS); do \
23514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23515 done; \
23516 (cd $(TARGET_SUBDIR)/libada && \
23517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23519 "RANLIB=$${RANLIB}" \
23520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23521 distclean) \
23522 || exit 1
23525 .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
23526 maybe-maintainer-clean-target-libada:
23528 maintainer-clean-target-libada:
23529 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23530 r=`${PWD_COMMAND}`; export r; \
23531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23532 $(SET_LIB_PATH) \
23533 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
23534 for flag in $(EXTRA_TARGET_FLAGS); do \
23535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23536 done; \
23537 (cd $(TARGET_SUBDIR)/libada && \
23538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23540 "RANLIB=$${RANLIB}" \
23541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23542 maintainer-clean) \
23543 || exit 1
23548 # ----------
23549 # GCC module
23550 # ----------
23552 # Unfortunately, while gcc _should_ be a host module,
23553 # libgcc is a target module, and gen* programs are
23554 # build modules. So GCC is a sort of hybrid.
23556 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
23557 # Don't use shared host config.cache, as it will confuse later
23558 # directories; GCC wants slightly different values for some
23559 # precious variables. *sigh*
23561 # We must skip configuring if toplevel bootstrap is going.
23562 .PHONY: configure-gcc maybe-configure-gcc
23563 maybe-configure-gcc:
23564 configure-gcc:
23565 @test ! -f gcc/Makefile || exit 0; \
23566 [ -f stage_last ] && exit 0; \
23567 [ -d gcc ] || mkdir gcc; \
23568 r=`${PWD_COMMAND}`; export r; \
23569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23570 CC="$(CC)"; export CC; \
23571 CFLAGS="$(CFLAGS)"; export CFLAGS; \
23572 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23573 CXX="$(CXX)"; export CXX; \
23574 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
23575 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
23576 AR="$(AR)"; export AR; \
23577 AS="$(AS)"; export AS; \
23578 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
23579 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
23580 LD="$(LD)"; export LD; \
23581 NM="$(NM)"; export NM; \
23582 RANLIB="$(RANLIB)"; export RANLIB; \
23583 WINDRES="$(WINDRES)"; export WINDRES; \
23584 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
23585 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
23586 echo Configuring in gcc; \
23587 cd gcc || exit 1; \
23588 case $(srcdir) in \
23589 \.) \
23590 srcdiroption="--srcdir=."; \
23591 libsrcdir=".";; \
23592 /* | [A-Za-z]:[\\/]*) \
23593 srcdiroption="--srcdir=$(srcdir)/gcc"; \
23594 libsrcdir="$$s/gcc";; \
23595 *) \
23596 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
23597 libsrcdir="$$s/gcc";; \
23598 esac; \
23599 $(SHELL) $${libsrcdir}/configure \
23600 $(HOST_CONFIGARGS) $${srcdiroption} \
23601 || exit 1
23603 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
23604 # causes trouble. This wart will be fixed eventually by moving
23605 # the bootstrap behavior to this file.
23606 .PHONY: all-gcc maybe-all-gcc
23607 maybe-all-gcc:
23608 all-gcc: configure-gcc
23609 r=`${PWD_COMMAND}`; export r; \
23610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23611 if [ -f stage_last ] ; then \
23612 true ; \
23613 elif [ -f gcc/stage_last ] ; then \
23614 $(SET_LIB_PATH) \
23615 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
23616 else \
23617 $(SET_LIB_PATH) \
23618 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
23621 # Building GCC uses some tools for rebuilding "source" files
23622 # like texinfo, bison/byacc, etc. So we must depend on those.
23624 # While building GCC, it may be necessary to run various target
23625 # programs like the assembler, linker, etc. So we depend on
23626 # those too.
23628 # In theory, on an SMP all those dependencies can be resolved
23629 # in parallel.
23631 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
23632 .PHONY: $(GCC_STRAP_TARGETS)
23633 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
23634 @r=`${PWD_COMMAND}`; export r; \
23635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23636 $(SET_LIB_PATH) \
23637 echo "Bootstrapping the compiler"; \
23638 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
23639 @r=`${PWD_COMMAND}`; export r; \
23640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23641 case "$@" in \
23642 *bootstrap4-lean ) \
23643 msg="Comparing stage3 and stage4 of the compiler"; \
23644 compare=compare3-lean ;; \
23645 *bootstrap4 ) \
23646 msg="Comparing stage3 and stage4 of the compiler"; \
23647 compare=compare3 ;; \
23648 *-lean ) \
23649 msg="Comparing stage2 and stage3 of the compiler"; \
23650 compare=compare-lean ;; \
23651 * ) \
23652 msg="Comparing stage2 and stage3 of the compiler"; \
23653 compare=compare ;; \
23654 esac; \
23655 $(SET_LIB_PATH) \
23656 echo "$$msg"; \
23657 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
23658 @r=`${PWD_COMMAND}`; export r; \
23659 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23660 $(SET_LIB_PATH) \
23661 echo "Building runtime libraries"; \
23662 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
23664 profiledbootstrap: all-bootstrap configure-gcc
23665 @r=`${PWD_COMMAND}`; export r; \
23666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23667 $(SET_LIB_PATH) \
23668 echo "Bootstrapping the compiler"; \
23669 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
23670 @r=`${PWD_COMMAND}`; export r; \
23671 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23672 $(SET_LIB_PATH) \
23673 echo "Building runtime libraries and training compiler"; \
23674 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
23675 @r=`${PWD_COMMAND}`; export r; \
23676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23677 $(SET_LIB_PATH) \
23678 echo "Building feedback based compiler"; \
23679 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
23681 .PHONY: cross
23682 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
23683 @r=`${PWD_COMMAND}`; export r; \
23684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23685 $(SET_LIB_PATH) \
23686 echo "Building the C and C++ compiler"; \
23687 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
23688 @r=`${PWD_COMMAND}`; export r; \
23689 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23690 $(SET_LIB_PATH) \
23691 echo "Building runtime libraries"; \
23692 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
23693 LANGUAGES="c c++" all
23695 .PHONY: check-gcc maybe-check-gcc
23696 maybe-check-gcc:
23697 check-gcc:
23698 @if [ -f ./gcc/Makefile ] ; then \
23699 r=`${PWD_COMMAND}`; export r; \
23700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23701 $(SET_LIB_PATH) \
23702 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
23703 else \
23704 true; \
23707 .PHONY: check-gcc-c++
23708 check-gcc-c++:
23709 @if [ -f ./gcc/Makefile ] ; then \
23710 r=`${PWD_COMMAND}`; export r; \
23711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23712 $(SET_LIB_PATH) \
23713 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
23714 else \
23715 true; \
23718 .PHONY: check-c++
23719 check-c++: check-target-libstdc++-v3 check-gcc-c++
23721 .PHONY: install-gcc maybe-install-gcc
23722 maybe-install-gcc:
23723 install-gcc:
23724 @if [ -f ./gcc/Makefile ] ; then \
23725 r=`${PWD_COMMAND}`; export r; \
23726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23727 $(SET_LIB_PATH) \
23728 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
23729 else \
23730 true; \
23733 # Install the gcc headers files, but not the fixed include files,
23734 # which Cygnus is not allowed to distribute. This rule is very
23735 # dependent on the workings of the gcc Makefile.in.
23736 .PHONY: gcc-no-fixedincludes
23737 gcc-no-fixedincludes:
23738 @if [ -f ./gcc/Makefile ]; then \
23739 rm -rf gcc/tmp-include; \
23740 mv gcc/include gcc/tmp-include 2>/dev/null; \
23741 mkdir gcc/include; \
23742 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
23743 touch gcc/stmp-fixinc gcc/include/fixed; \
23744 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
23745 r=`${PWD_COMMAND}`; export r; \
23746 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23747 $(SET_LIB_PATH) \
23748 (cd ./gcc && \
23749 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
23750 rm -rf gcc/include; \
23751 mv gcc/tmp-include gcc/include 2>/dev/null; \
23752 else true; fi
23754 # Other targets (dvi, info, etc.)
23756 .PHONY: maybe-info-gcc info-gcc
23757 maybe-info-gcc:
23758 info-gcc: \
23759 configure-gcc
23760 @[ -f ./gcc/Makefile ] || exit 0; \
23761 r=`${PWD_COMMAND}`; export r; \
23762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23763 $(SET_LIB_PATH) \
23764 for flag in $(EXTRA_GCC_FLAGS); do \
23765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23766 done; \
23767 echo "Doing info in gcc" ; \
23768 (cd gcc && \
23769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23771 "RANLIB=$${RANLIB}" \
23772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23773 info) \
23774 || exit 1
23777 .PHONY: maybe-dvi-gcc dvi-gcc
23778 maybe-dvi-gcc:
23779 dvi-gcc: \
23780 configure-gcc
23781 @[ -f ./gcc/Makefile ] || exit 0; \
23782 r=`${PWD_COMMAND}`; export r; \
23783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23784 $(SET_LIB_PATH) \
23785 for flag in $(EXTRA_GCC_FLAGS); do \
23786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23787 done; \
23788 echo "Doing dvi in gcc" ; \
23789 (cd gcc && \
23790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23792 "RANLIB=$${RANLIB}" \
23793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23794 dvi) \
23795 || exit 1
23798 .PHONY: maybe-TAGS-gcc TAGS-gcc
23799 maybe-TAGS-gcc:
23800 TAGS-gcc: \
23801 configure-gcc
23802 @[ -f ./gcc/Makefile ] || exit 0; \
23803 r=`${PWD_COMMAND}`; export r; \
23804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23805 $(SET_LIB_PATH) \
23806 for flag in $(EXTRA_GCC_FLAGS); do \
23807 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23808 done; \
23809 echo "Doing TAGS in gcc" ; \
23810 (cd gcc && \
23811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23813 "RANLIB=$${RANLIB}" \
23814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23815 TAGS) \
23816 || exit 1
23819 .PHONY: maybe-install-info-gcc install-info-gcc
23820 maybe-install-info-gcc:
23821 install-info-gcc: \
23822 configure-gcc \
23823 info-gcc
23824 @[ -f ./gcc/Makefile ] || exit 0; \
23825 r=`${PWD_COMMAND}`; export r; \
23826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23827 $(SET_LIB_PATH) \
23828 for flag in $(EXTRA_GCC_FLAGS); do \
23829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23830 done; \
23831 echo "Doing install-info in gcc" ; \
23832 (cd gcc && \
23833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23835 "RANLIB=$${RANLIB}" \
23836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23837 install-info) \
23838 || exit 1
23841 .PHONY: maybe-installcheck-gcc installcheck-gcc
23842 maybe-installcheck-gcc:
23843 installcheck-gcc: \
23844 configure-gcc
23845 @[ -f ./gcc/Makefile ] || exit 0; \
23846 r=`${PWD_COMMAND}`; export r; \
23847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23848 $(SET_LIB_PATH) \
23849 for flag in $(EXTRA_GCC_FLAGS); do \
23850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23851 done; \
23852 echo "Doing installcheck in gcc" ; \
23853 (cd gcc && \
23854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23856 "RANLIB=$${RANLIB}" \
23857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23858 installcheck) \
23859 || exit 1
23862 .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
23863 maybe-mostlyclean-gcc:
23864 mostlyclean-gcc:
23865 @[ -f ./gcc/Makefile ] || exit 0; \
23866 r=`${PWD_COMMAND}`; export r; \
23867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23868 $(SET_LIB_PATH) \
23869 for flag in $(EXTRA_GCC_FLAGS); do \
23870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23871 done; \
23872 echo "Doing mostlyclean in gcc" ; \
23873 (cd gcc && \
23874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23876 "RANLIB=$${RANLIB}" \
23877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23878 mostlyclean) \
23879 || exit 1
23882 .PHONY: maybe-clean-gcc clean-gcc
23883 maybe-clean-gcc:
23884 clean-gcc:
23885 @[ -f ./gcc/Makefile ] || exit 0; \
23886 r=`${PWD_COMMAND}`; export r; \
23887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23888 $(SET_LIB_PATH) \
23889 for flag in $(EXTRA_GCC_FLAGS); do \
23890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23891 done; \
23892 echo "Doing clean in gcc" ; \
23893 (cd gcc && \
23894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23896 "RANLIB=$${RANLIB}" \
23897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23898 clean) \
23899 || exit 1
23902 .PHONY: maybe-distclean-gcc distclean-gcc
23903 maybe-distclean-gcc:
23904 distclean-gcc:
23905 @[ -f ./gcc/Makefile ] || exit 0; \
23906 r=`${PWD_COMMAND}`; export r; \
23907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23908 $(SET_LIB_PATH) \
23909 for flag in $(EXTRA_GCC_FLAGS); do \
23910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23911 done; \
23912 echo "Doing distclean in gcc" ; \
23913 (cd gcc && \
23914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23916 "RANLIB=$${RANLIB}" \
23917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23918 distclean) \
23919 || exit 1
23922 .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
23923 maybe-maintainer-clean-gcc:
23924 maintainer-clean-gcc:
23925 @[ -f ./gcc/Makefile ] || exit 0; \
23926 r=`${PWD_COMMAND}`; export r; \
23927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23928 $(SET_LIB_PATH) \
23929 for flag in $(EXTRA_GCC_FLAGS); do \
23930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23931 done; \
23932 echo "Doing maintainer-clean in gcc" ; \
23933 (cd gcc && \
23934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23936 "RANLIB=$${RANLIB}" \
23937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23938 maintainer-clean) \
23939 || exit 1
23943 # ---------------------
23944 # GCC bootstrap support
23945 # ---------------------
23947 # We name the directories for the various stages "stage1-gcc",
23948 # "stage2-gcc","stage3-gcc", etc.
23949 # Unfortunately, the 'compare' process will fail (on debugging information)
23950 # if any directory names are different!
23951 # So in the building rule for each stage, we relocate them before and after.
23952 # The current one is 'gcc', while the previous one is 'prev-gcc'. (The
23953 # current one must be 'gcc' for now because the scripts in that directory
23954 # assume it.)
23955 # At the end of the bootstrap, 'stage3-gcc' must be moved to 'gcc' so that
23956 # libraries can find it. Ick!
23958 # Bugs: This is almost certainly not parallel-make safe.
23960 # 'touch' doesn't work right on some platforms.
23961 STAMP = echo timestamp >
23963 # Only build the C compiler for stage1, because that is the only one that
23964 # we can guarantee will build with the native compiler, and also it is the
23965 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
23966 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
23967 # overrideable (for a bootstrap build stage1 also builds gcc.info).
23969 STAGE1_CFLAGS=@stage1_cflags@
23970 STAGE1_LANGUAGES=@stage1_languages@
23972 # For stage 1:
23973 # * We force-disable intermodule optimizations, even if
23974 # --enable-intermodule was passed, since the installed compiler probably
23975 # can't handle them. Luckily, autoconf always respects
23976 # the last argument when conflicting --enable arguments are passed.
23977 # * Likewise, we force-disable coverage flags, since the installed compiler
23978 # probably has never heard of them.
23979 # * We build only C (and possibly Ada).
23980 configure-stage1-gcc:
23981 echo configure-stage1-gcc > stage_last ; \
23982 if [ -f stage1-gcc/Makefile ] ; then \
23983 $(STAMP) configure-stage1-gcc ; \
23984 exit 0; \
23985 else \
23986 true ; \
23987 fi ; \
23988 [ -d stage1-gcc ] || mkdir stage1-gcc; \
23989 mv stage1-gcc gcc ; \
23990 r=`${PWD_COMMAND}`; export r; \
23991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23992 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23993 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
23994 CC="$(CC)"; export CC; \
23995 CFLAGS="$(CFLAGS)"; export CFLAGS; \
23996 CXX="$(CXX)"; export CXX; \
23997 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
23998 AR="$(AR)"; export AR; \
23999 AS="$(AS)"; export AS; \
24000 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
24001 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24002 LD="$(LD)"; export LD; \
24003 NM="$(NM)"; export NM; \
24004 RANLIB="$(RANLIB)"; export RANLIB; \
24005 WINDRES="$(WINDRES)"; export WINDRES; \
24006 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24007 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24008 echo Configuring stage 1 in gcc; \
24009 cd gcc || exit 1; \
24010 case $(srcdir) in \
24011 \.) \
24012 srcdiroption="--srcdir=."; \
24013 libsrcdir=".";; \
24014 /* | [A-Za-z]:[\\/]*) \
24015 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24016 libsrcdir="$$s/gcc";; \
24017 *) \
24018 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24019 libsrcdir="$$s/gcc";; \
24020 esac; \
24021 $(SHELL) $${libsrcdir}/configure \
24022 $(HOST_CONFIGARGS) $${srcdiroption} \
24023 --disable-intermodule --disable-coverage \
24024 --enable-languages="$(STAGE1_LANGUAGES)"; \
24025 cd .. ; \
24026 mv gcc stage1-gcc ; \
24027 $(STAMP) configure-stage1-gcc
24029 # Real targets act phony if they depend on phony targets; this hack
24030 # prevents gratuitous rebuilding of stage 1.
24031 prebootstrap:
24032 $(MAKE) all-bootstrap
24033 $(STAMP) prebootstrap
24035 all-stage1-gcc: configure-stage1-gcc prebootstrap
24036 echo all-stage1-gcc > stage_last ; \
24037 r=`${PWD_COMMAND}`; export r; \
24038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24039 mv stage1-gcc gcc ; \
24040 cd gcc && \
24041 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24042 CFLAGS="$(STAGE1_CFLAGS)" \
24043 || exit 1 ; \
24044 cd .. ; \
24045 mv gcc stage1-gcc ; \
24046 $(STAMP) all-stage1-gcc
24048 # TODO: Deal with STAGE_PREFIX (which is only for ada, incidentally)
24049 configure-stage2-gcc: all-stage1-gcc
24050 echo configure-stage2-gcc > stage_last ; \
24051 if [ -f stage2-gcc/Makefile ] ; then \
24052 $(STAMP) configure-stage2-gcc ; \
24053 exit 0; \
24054 else \
24055 true ; \
24056 fi ; \
24057 [ -d stage2-gcc ] || mkdir stage2-gcc; \
24058 mv stage2-gcc gcc ; \
24059 mv stage1-gcc prev-gcc ; \
24060 r=`${PWD_COMMAND}`; export r; \
24061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24062 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24063 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24064 CC="$(CC)"; export CC; \
24065 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24066 CXX="$(CXX)"; export CXX; \
24067 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24068 AR="$(AR)"; export AR; \
24069 AS="$(AS)"; export AS; \
24070 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
24071 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24072 LD="$(LD)"; export LD; \
24073 NM="$(NM)"; export NM; \
24074 RANLIB="$(RANLIB)"; export RANLIB; \
24075 WINDRES="$(WINDRES)"; export WINDRES; \
24076 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24077 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24078 echo Configuring stage 2 in gcc; \
24079 cd gcc || exit 1; \
24080 case $(srcdir) in \
24081 \.) \
24082 srcdiroption="--srcdir=."; \
24083 libsrcdir=".";; \
24084 /* | [A-Za-z]:[\\/]*) \
24085 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24086 libsrcdir="$$s/gcc";; \
24087 *) \
24088 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24089 libsrcdir="$$s/gcc";; \
24090 esac; \
24091 $(SHELL) $${libsrcdir}/configure \
24092 $(HOST_CONFIGARGS) $${srcdiroption} ; \
24093 cd .. ; \
24094 mv gcc stage2-gcc ; \
24095 mv prev-gcc stage1-gcc ; \
24096 $(STAMP) configure-stage2-gcc
24098 # Flags to pass to stage2 and later makes.
24099 BOOT_CFLAGS= -g -O2
24100 POSTSTAGE1_FLAGS_TO_PASS = \
24101 CFLAGS="$(BOOT_CFLAGS)" \
24102 ADAC="\$$(CC)" \
24103 WARN_CFLAGS="\$$(GCC_WARN_CFLAGS)" \
24104 STRICT_WARN="\$$(STRICT2_WARN)" \
24105 OUTPUT_OPTION="-o \$$@"
24107 all-stage2-gcc: all-stage1-gcc configure-stage2-gcc
24108 echo all-stage2-gcc > stage_last ; \
24109 r=`${PWD_COMMAND}`; export r; \
24110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24111 mv stage2-gcc gcc ; \
24112 mv stage1-gcc prev-gcc ; \
24113 cd gcc && \
24114 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24115 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24116 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24117 STAGE_PREFIX=$$r/prev-gcc/ \
24118 $(POSTSTAGE1_FLAGS_TO_PASS) || exit 1 ; \
24119 cd .. ; \
24120 mv prev-gcc stage1-gcc ; \
24121 mv gcc stage2-gcc ; \
24122 $(STAMP) all-stage2-gcc
24124 configure-stage3-gcc: all-stage2-gcc
24125 echo configure-stage3-gcc > stage_last ; \
24126 if [ -f stage3-gcc/Makefile ] ; then \
24127 $(STAMP) configure-stage3-gcc ; \
24128 exit 0; \
24129 else \
24130 true ; \
24131 fi ; \
24132 [ -d stage3-gcc ] || mkdir stage3-gcc; \
24133 mv stage3-gcc gcc ; \
24134 mv stage1-gcc prev-gcc ; \
24135 r=`${PWD_COMMAND}`; export r; \
24136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24137 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24138 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24139 CC="$(CC)"; export CC; \
24140 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24141 CXX="$(CXX)"; export CXX; \
24142 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24143 AR="$(AR)"; export AR; \
24144 AS="$(AS)"; export AS; \
24145 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
24146 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24147 LD="$(LD)"; export LD; \
24148 NM="$(NM)"; export NM; \
24149 RANLIB="$(RANLIB)"; export RANLIB; \
24150 WINDRES="$(WINDRES)"; export WINDRES; \
24151 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24152 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24153 echo Configuring stage 3 in gcc; \
24154 cd gcc || exit 1; \
24155 case $(srcdir) in \
24156 \.) \
24157 srcdiroption="--srcdir=."; \
24158 libsrcdir=".";; \
24159 /* | [A-Za-z]:[\\/]*) \
24160 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24161 libsrcdir="$$s/gcc";; \
24162 *) \
24163 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24164 libsrcdir="$$s/gcc";; \
24165 esac; \
24166 $(SHELL) $${libsrcdir}/configure \
24167 $(HOST_CONFIGARGS) $${srcdiroption} ; \
24168 cd .. ; \
24169 mv gcc stage3-gcc ; \
24170 mv prev-gcc stage2-gcc ; \
24171 $(STAMP) configure-stage3-gcc
24173 all-stage3-gcc: all-stage2-gcc configure-stage3-gcc
24174 echo all-stage3-gcc > stage_last ; \
24175 r=`${PWD_COMMAND}`; export r; \
24176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24177 mv stage2-gcc prev-gcc ; \
24178 mv stage3-gcc gcc ; \
24179 cd gcc && \
24180 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24181 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24182 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24183 STAGE_PREFIX=$$r/prev-gcc/ \
24184 $(POSTSTAGE1_FLAGS_TO_PASS) || exit 1 ; \
24185 cd .. ; \
24186 mv prev-gcc stage2-gcc ; \
24187 mv gcc stage3-gcc ; \
24188 $(STAMP) all-stage3-gcc
24190 # We only want to compare .o files, so set this!
24191 objext = .o
24193 compare: all-stage3-gcc
24194 r=`${PWD_COMMAND}`; export r; \
24195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24196 rm -f .bad_compare ; \
24197 cd stage3-gcc; \
24198 files=`find . -name "*$(objext)" -print` ; \
24199 cd .. ; \
24200 for file in $${files} ; do \
24201 cmp --ignore-initial=16 $$r/stage2-gcc/$$file $$r/stage3-gcc/$$file \
24202 > /dev/null 2>&1; \
24203 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
24204 done ; \
24205 if [ -f .bad_compare ]; then \
24206 echo "Bootstrap comparison failure!"; \
24207 cat .bad_compare; \
24208 exit 1; \
24209 else \
24210 true; \
24211 fi ; \
24212 $(STAMP) compare
24214 .PHONY: new-bootstrap
24215 # This target exists so that everything can be made in one pass.
24216 # 'all-gcc' has to avoid stomping on the bootstrap-generated gcc for
24217 # this to work.
24218 new-bootstrap: compare
24219 mv stage3-gcc gcc ; \
24220 $(MAKE) all ; \
24221 mv gcc stage3-gcc
24223 # --------------------------------------
24224 # Dependencies between different modules
24225 # --------------------------------------
24227 # There are two types of dependencies here: 'hard' dependencies, where one
24228 # module simply won't build without the other; and 'soft' dependencies, where
24229 # if the depended-on module is missing, the depending module will do without
24230 # or find a substitute somewhere (perhaps installed). Soft dependencies
24231 # are specified by depending on a 'maybe-' target. If you're not sure,
24232 # it's safer to use a soft dependency.
24234 # Host modules specific to gcc.
24235 # GCC needs to identify certain tools.
24236 # GCC also needs the information exported by the intl configure script.
24237 configure-gcc: maybe-configure-intl maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
24238 all-gcc: maybe-all-libiberty maybe-all-intl maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
24239 # This is a slightly kludgy method of getting dependencies on
24240 # all-build-libiberty correct; it would be better to build it every time.
24241 all-gcc: maybe-all-build-libiberty
24242 all-bootstrap: maybe-all-libiberty maybe-all-intl maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib
24244 # Host modules specific to gdb.
24245 # GDB needs to know that the simulator is being built.
24246 configure-gdb: maybe-configure-itcl maybe-configure-tcl maybe-configure-tk maybe-configure-sim
24247 GDB_TK = @GDB_TK@
24248 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)
24249 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
24250 configure-libgui: maybe-configure-tcl maybe-configure-tk
24251 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
24253 # Host modules specific to binutils.
24254 configure-bfd: configure-libiberty
24255 all-bfd: maybe-all-libiberty maybe-all-intl
24256 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
24257 # We put install-opcodes before install-binutils because the installed
24258 # binutils might be on PATH, and they might need the shared opcodes
24259 # library.
24260 install-binutils: maybe-install-opcodes
24261 # libopcodes depends on libbfd
24262 install-opcodes: maybe-install-bfd
24263 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
24264 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
24265 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
24266 all-opcodes: maybe-all-bfd maybe-all-libiberty
24268 # Other host modules in the 'src' repository.
24269 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
24270 configure-expect: maybe-configure-tcl maybe-configure-tk
24271 all-expect: maybe-all-tcl maybe-all-tk
24272 configure-itcl: maybe-configure-tcl maybe-configure-tk
24273 all-itcl: maybe-all-tcl maybe-all-tk
24274 # We put install-tcl before install-itcl because itcl wants to run a
24275 # program on installation which uses the Tcl libraries.
24276 install-itcl: maybe-install-tcl
24277 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
24278 install-sid: maybe-install-tcl maybe-install-tk
24279 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
24280 configure-tk: maybe-configure-tcl
24281 all-tk: maybe-all-tcl
24282 configure-tix: maybe-configure-tcl maybe-configure-tk
24283 all-tix: maybe-all-tcl maybe-all-tk
24284 all-texinfo: maybe-all-libiberty
24286 # Other host modules. Warning, these are not well tested.
24287 all-autoconf: maybe-all-m4 maybe-all-texinfo
24288 all-automake: maybe-all-m4 maybe-all-texinfo
24289 all-bison: maybe-all-texinfo
24290 all-diff: maybe-all-libiberty
24291 all-fastjar: maybe-all-zlib maybe-all-libiberty
24292 all-fileutils: maybe-all-libiberty
24293 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
24294 all-gzip: maybe-all-libiberty
24295 all-hello: maybe-all-libiberty
24296 all-m4: maybe-all-libiberty maybe-all-texinfo
24297 all-make: maybe-all-libiberty maybe-all-intl
24298 all-patch: maybe-all-libiberty
24299 all-prms: maybe-all-libiberty
24300 all-recode: maybe-all-libiberty
24301 all-sed: maybe-all-libiberty
24302 all-send-pr: maybe-all-prms
24303 all-tar: maybe-all-libiberty
24304 all-uudecode: maybe-all-libiberty
24306 ALL_GCC = maybe-all-gcc
24307 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
24308 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
24310 # Target modules specific to gcc.
24311 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
24312 configure-target-fastjar: maybe-configure-target-zlib
24313 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
24314 configure-target-libada: $(ALL_GCC_C)
24315 configure-target-libf2c: $(ALL_GCC_C)
24316 all-target-libf2c: maybe-all-target-libiberty
24317 configure-target-libffi: $(ALL_GCC_C)
24318 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
24319 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
24320 configure-target-libobjc: $(ALL_GCC_C)
24321 all-target-libobjc: maybe-all-target-libiberty
24322 configure-target-libstdc++-v3: $(ALL_GCC_C)
24323 all-target-libstdc++-v3: maybe-all-target-libiberty
24324 configure-target-zlib: $(ALL_GCC_C)
24326 # Target modules in the 'src' repository.
24327 configure-target-examples: $(ALL_GCC_C)
24328 configure-target-libgloss: $(ALL_GCC)
24329 all-target-libgloss: maybe-configure-target-newlib
24330 configure-target-libiberty: $(ALL_GCC)
24331 configure-target-libtermcap: $(ALL_GCC_C)
24332 configure-target-newlib: $(ALL_GCC)
24333 configure-target-rda: $(ALL_GCC_C)
24334 configure-target-winsup: $(ALL_GCC_C)
24335 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
24337 # Other target modules. Warning, these are not well tested.
24338 configure-target-gperf: $(ALL_GCC_CXX)
24339 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
24340 configure-target-qthreads: $(ALL_GCC_C)
24342 # Dependencies of maybe-foo on foo. These are used because, for example,
24343 # all-gcc only depends on all-gas if gas is present and being configured.
24344 @maybe_dependencies@
24346 # Serialization dependencies. Host configures don't work well in parallel to
24347 # each other, due to contention over config.cache. Target configures and
24348 # build configures are similar.
24349 @serialization_dependencies@
24351 # --------------------------------
24352 # Regenerating top level configury
24353 # --------------------------------
24355 # Multilib.out tells target dirs what multilibs they should build.
24356 # There is really only one copy. We use the 'timestamp' method to
24357 # work around various timestamp bugs on some systems.
24358 # We use move-if-change so that it's only considered updated when it
24359 # actually changes, because it has to depend on a phony target.
24360 multilib.out: maybe-all-gcc
24361 @r=`${PWD_COMMAND}`; export r; \
24362 echo "Checking multilib configuration..."; \
24363 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
24364 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
24366 # Rebuilding Makefile.in, using autogen.
24367 AUTOGEN = autogen
24368 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
24369 cd $(srcdir) && $(AUTOGEN) Makefile.def
24371 # Rebuilding Makefile.
24372 Makefile: $(srcdir)/Makefile.in config.status
24373 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
24375 config.status: configure $(gcc_version_trigger)
24376 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
24378 # Rebuilding configure.
24379 AUTOCONF = autoconf
24380 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
24381 cd $(srcdir) && $(AUTOCONF)
24383 # ------------------------------
24384 # Special directives to GNU Make
24385 # ------------------------------
24387 # Don't pass command-line variables to submakes.
24388 .NOEXPORT:
24389 MAKEOVERRIDES=
24391 # end of Makefile.in