file ro.gmo was initially added on branch binutils-2_15-branch.
[binutils.git] / Makefile.in
blobbf7bc3e06856dc6e3a70bcdc3a51134c4e4e6b10
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 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
250 USUAL_AR_FOR_TARGET = ` \
251 if [ -f $$r/binutils/ar ] ; then \
252 echo $$r/binutils/ar ; \
253 else \
254 if [ '$(host)' = '$(target)' ] ; then \
255 echo $(AR); \
256 else \
257 echo $(CONFIGURED_AR_FOR_TARGET) ; \
258 fi; \
261 AS_FOR_TARGET=@AS_FOR_TARGET@
262 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
263 USUAL_AS_FOR_TARGET = ` \
264 if [ -f $$r/gas/as-new ] ; then \
265 echo $$r/gas/as-new ; \
266 elif [ -f $$r/gcc/xgcc ]; then \
267 $(CC_FOR_TARGET) -print-prog-name=as ; \
268 else \
269 if [ '$(host)' = '$(target)' ] ; then \
270 echo $(AS); \
271 else \
272 echo $(CONFIGURED_AS_FOR_TARGET) ; \
273 fi; \
276 CC_FOR_TARGET = @CC_FOR_TARGET@
277 # During gcc bootstrap, if we use some random cc for stage1 then
278 # CFLAGS will be just -g. We want to ensure that TARGET libraries
279 # (which we know are built with gcc) are built with optimizations so
280 # prepend -O2 when setting CFLAGS_FOR_TARGET.
281 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
282 # If GCC_FOR_TARGET is not overriden on the command line, then this
283 # variable is passed down to the gcc Makefile, where it is used to
284 # build libgcc2.a. We define it here so that it can itself be
285 # overridden on the command line.
286 GCC_FOR_TARGET=@GCC_FOR_TARGET@
287 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
288 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
290 CXX_FOR_TARGET = @CXX_FOR_TARGET@
291 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
292 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
293 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
294 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
295 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
297 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
298 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
299 USUAL_DLLTOOL_FOR_TARGET = ` \
300 if [ -f $$r/binutils/dlltool ] ; then \
301 echo $$r/binutils/dlltool ; \
302 else \
303 if [ '$(host)' = '$(target)' ] ; then \
304 echo $(DLLTOOL); \
305 else \
306 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
307 fi; \
310 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
312 LD_FOR_TARGET=@LD_FOR_TARGET@
313 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
314 USUAL_LD_FOR_TARGET = ` \
315 if [ -f $$r/ld/ld-new ] ; then \
316 echo $$r/ld/ld-new ; \
317 elif [ -f $$r/gcc/xgcc ]; then \
318 $(CC_FOR_TARGET) -print-prog-name=ld ; \
319 else \
320 if [ '$(host)' = '$(target)' ] ; then \
321 echo $(LD); \
322 else \
323 echo $(CONFIGURED_LD_FOR_TARGET) ; \
324 fi; \
327 LDFLAGS_FOR_TARGET =
329 NM_FOR_TARGET=@NM_FOR_TARGET@
330 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
331 USUAL_NM_FOR_TARGET = ` \
332 if [ -f $$r/binutils/nm-new ] ; then \
333 echo $$r/binutils/nm-new ; \
334 elif [ -f $$r/gcc/xgcc ]; then \
335 $(CC_FOR_TARGET) -print-prog-name=nm ; \
336 else \
337 if [ '$(host)' = '$(target)' ] ; then \
338 echo $(NM); \
339 else \
340 echo $(CONFIGURED_NM_FOR_TARGET) ; \
341 fi; \
344 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
345 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
346 USUAL_RANLIB_FOR_TARGET = ` \
347 if [ -f $$r/binutils/ranlib ] ; then \
348 echo $$r/binutils/ranlib ; \
349 else \
350 if [ '$(host)' = '$(target)' ] ; then \
351 if [ x'$(RANLIB)' != x ]; then \
352 echo $(RANLIB); \
353 else \
354 echo ranlib; \
355 fi; \
356 else \
357 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
358 fi; \
361 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
362 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
363 USUAL_WINDRES_FOR_TARGET = ` \
364 if [ -f $$r/binutils/windres ] ; then \
365 echo $$r/binutils/windres ; \
366 else \
367 if [ '$(host)' = '$(target)' ] ; then \
368 echo $(WINDRES); \
369 else \
370 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
371 fi; \
374 PICFLAG_FOR_TARGET =
376 # ------------------------------------
377 # Miscellaneous targets and flag lists
378 # ------------------------------------
380 # The first rule in the file had better be this one. Don't put any above it.
381 # This lives here to allow makefile fragments to contain dependencies.
382 all: all.normal
383 .PHONY: all
385 #### host and target specific makefile fragments come in here.
386 @target_makefile_frag@
387 @alphaieee_frag@
388 @ospace_frag@
389 @host_makefile_frag@
392 # Flags to pass down to all sub-makes.
393 BASE_FLAGS_TO_PASS = \
394 "DESTDIR=$(DESTDIR)" \
395 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
396 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
397 "bindir=$(bindir)" \
398 "datadir=$(datadir)" \
399 "exec_prefix=$(exec_prefix)" \
400 "includedir=$(includedir)" \
401 "infodir=$(infodir)" \
402 "libdir=$(libdir)" \
403 "libexecdir=$(libexecdir)" \
404 "lispdir=$(lispdir)" \
405 "libstdcxx_incdir=$(libstdcxx_incdir)" \
406 "libsubdir=$(libsubdir)" \
407 "localstatedir=$(localstatedir)" \
408 "mandir=$(mandir)" \
409 "oldincludedir=$(oldincludedir)" \
410 "prefix=$(prefix)" \
411 "sbindir=$(sbindir)" \
412 "sharedstatedir=$(sharedstatedir)" \
413 "sysconfdir=$(sysconfdir)" \
414 "tooldir=$(tooldir)" \
415 "build_tooldir=$(build_tooldir)" \
416 "gxx_include_dir=$(gxx_include_dir)" \
417 "gcc_version=$(gcc_version)" \
418 "gcc_version_trigger=$(gcc_version_trigger)" \
419 "target_alias=$(target_alias)" \
420 "BISON=$(BISON)" \
421 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
422 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
423 "EXPECT=$(EXPECT)" \
424 "INSTALL=$(INSTALL)" \
425 "INSTALL_DATA=$(INSTALL_DATA)" \
426 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
427 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
428 "LEX=$(LEX)" \
429 "M4=$(M4)" \
430 "MAKE=$(MAKE)" \
431 "RUNTEST=$(RUNTEST)" \
432 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
433 "SHELL=$(SHELL)" \
434 "YACC=$(YACC)" \
435 "AR_FLAGS=$(AR_FLAGS)" \
436 "CFLAGS=$(CFLAGS)" \
437 "CXXFLAGS=$(CXXFLAGS)" \
438 "LDFLAGS=$(LDFLAGS)" \
439 "LIBCFLAGS=$(LIBCFLAGS)" \
440 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
441 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
442 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
443 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
444 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
445 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
446 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
447 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
448 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
449 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
450 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
451 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
452 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
453 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
454 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
455 "CONFIG_SHELL=$(SHELL)" \
456 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
458 # For any flags above that may contain shell code that varies from one
459 # target library to another. When doing recursive invocations of the
460 # top-level Makefile, we don't want the outer make to evaluate them,
461 # so we pass these variables down unchanged. They must not contain
462 # single nor double quotes.
463 RECURSE_FLAGS = \
464 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
465 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
467 # Flags to pass down to most sub-makes, in which we're building with
468 # the host environment.
469 EXTRA_HOST_FLAGS = \
470 'AR=$(AR)' \
471 'AS=$(AS)' \
472 'CC=$(CC)' \
473 'CXX=$(CXX)' \
474 'DLLTOOL=$(DLLTOOL)' \
475 'LD=$(LD)' \
476 'NM=$(NM)' \
477 'RANLIB=$(RANLIB)' \
478 'WINDRES=$(WINDRES)'
480 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
482 # Flags that are concerned with the location of the X11 include files
483 # and library files
485 # NOTE: until the top-level is getting the values via autoconf, it only
486 # causes problems to have this top-level Makefile overriding the autoconf-set
487 # values in child directories. Only variables that don't conflict with
488 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
490 X11_FLAGS_TO_PASS = \
491 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
492 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
494 # Flags to pass down to makes which are built with the target environment.
495 # The double $ decreases the length of the command line; the variables
496 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
497 EXTRA_TARGET_FLAGS = \
498 'AR=$$(AR_FOR_TARGET)' \
499 'AS=$$(AS_FOR_TARGET)' \
500 'CC=$$(CC_FOR_TARGET)' \
501 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
502 'CXX=$$(CXX_FOR_TARGET)' \
503 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
504 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
505 'LD=$$(LD_FOR_TARGET)' \
506 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
507 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
508 'NM=$$(NM_FOR_TARGET)' \
509 'RANLIB=$$(RANLIB_FOR_TARGET)' \
510 'WINDRES=$$(WINDRES_FOR_TARGET)'
512 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
514 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
515 # unfortunately needs the native compiler and the target ar and
516 # ranlib.
517 # If any variables are added here, they must be added to do-*, below.
518 # The BUILD_* variables are a special case, which are used for the gcc
519 # cross-building scheme.
520 EXTRA_GCC_FLAGS = \
521 'BUILD_PREFIX=$(BUILD_PREFIX)' \
522 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
523 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
524 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
525 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
526 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
527 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
528 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
529 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
530 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
531 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
532 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
533 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
535 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
537 .PHONY: configure-host
538 configure-host: maybe-configure-gcc \
539 maybe-configure-ash \
540 maybe-configure-autoconf \
541 maybe-configure-automake \
542 maybe-configure-bash \
543 maybe-configure-bfd \
544 maybe-configure-opcodes \
545 maybe-configure-binutils \
546 maybe-configure-bison \
547 maybe-configure-byacc \
548 maybe-configure-bzip2 \
549 maybe-configure-dejagnu \
550 maybe-configure-diff \
551 maybe-configure-dosutils \
552 maybe-configure-etc \
553 maybe-configure-fastjar \
554 maybe-configure-fileutils \
555 maybe-configure-findutils \
556 maybe-configure-find \
557 maybe-configure-flex \
558 maybe-configure-gas \
559 maybe-configure-gawk \
560 maybe-configure-gettext \
561 maybe-configure-gnuserv \
562 maybe-configure-gprof \
563 maybe-configure-gzip \
564 maybe-configure-hello \
565 maybe-configure-indent \
566 maybe-configure-intl \
567 maybe-configure-tcl \
568 maybe-configure-itcl \
569 maybe-configure-ld \
570 maybe-configure-libgui \
571 maybe-configure-libiberty \
572 maybe-configure-libtool \
573 maybe-configure-m4 \
574 maybe-configure-make \
575 maybe-configure-mmalloc \
576 maybe-configure-patch \
577 maybe-configure-perl \
578 maybe-configure-prms \
579 maybe-configure-rcs \
580 maybe-configure-readline \
581 maybe-configure-release \
582 maybe-configure-recode \
583 maybe-configure-sed \
584 maybe-configure-send-pr \
585 maybe-configure-shellutils \
586 maybe-configure-sid \
587 maybe-configure-sim \
588 maybe-configure-tar \
589 maybe-configure-texinfo \
590 maybe-configure-textutils \
591 maybe-configure-time \
592 maybe-configure-uudecode \
593 maybe-configure-wdiff \
594 maybe-configure-zip \
595 maybe-configure-zlib \
596 maybe-configure-gdb \
597 maybe-configure-expect \
598 maybe-configure-guile \
599 maybe-configure-tk \
600 maybe-configure-tix \
601 maybe-configure-libtermcap \
602 maybe-configure-utils
603 .PHONY: configure-target
604 configure-target: \
605 maybe-configure-target-libstdc++-v3 \
606 maybe-configure-target-newlib \
607 maybe-configure-target-libf2c \
608 maybe-configure-target-libobjc \
609 maybe-configure-target-libtermcap \
610 maybe-configure-target-winsup \
611 maybe-configure-target-libgloss \
612 maybe-configure-target-libiberty \
613 maybe-configure-target-gperf \
614 maybe-configure-target-examples \
615 maybe-configure-target-libffi \
616 maybe-configure-target-libjava \
617 maybe-configure-target-zlib \
618 maybe-configure-target-boehm-gc \
619 maybe-configure-target-qthreads \
620 maybe-configure-target-rda \
621 maybe-configure-target-libada
623 # The target built for a native build.
624 .PHONY: all.normal
625 all.normal: @all_build_modules@ all-host all-target
627 .PHONY: all-host
628 all-host: maybe-all-gcc \
629 maybe-all-ash \
630 maybe-all-autoconf \
631 maybe-all-automake \
632 maybe-all-bash \
633 maybe-all-bfd \
634 maybe-all-opcodes \
635 maybe-all-binutils \
636 maybe-all-bison \
637 maybe-all-byacc \
638 maybe-all-bzip2 \
639 maybe-all-dejagnu \
640 maybe-all-diff \
641 maybe-all-dosutils \
642 maybe-all-etc \
643 maybe-all-fastjar \
644 maybe-all-fileutils \
645 maybe-all-findutils \
646 maybe-all-find \
647 maybe-all-flex \
648 maybe-all-gas \
649 maybe-all-gawk \
650 maybe-all-gettext \
651 maybe-all-gnuserv \
652 maybe-all-gprof \
653 maybe-all-gzip \
654 maybe-all-hello \
655 maybe-all-indent \
656 maybe-all-intl \
657 maybe-all-tcl \
658 maybe-all-itcl \
659 maybe-all-ld \
660 maybe-all-libgui \
661 maybe-all-libiberty \
662 maybe-all-libtool \
663 maybe-all-m4 \
664 maybe-all-make \
665 maybe-all-mmalloc \
666 maybe-all-patch \
667 maybe-all-perl \
668 maybe-all-prms \
669 maybe-all-rcs \
670 maybe-all-readline \
671 maybe-all-release \
672 maybe-all-recode \
673 maybe-all-sed \
674 maybe-all-send-pr \
675 maybe-all-shellutils \
676 maybe-all-sid \
677 maybe-all-sim \
678 maybe-all-tar \
679 maybe-all-texinfo \
680 maybe-all-textutils \
681 maybe-all-time \
682 maybe-all-uudecode \
683 maybe-all-wdiff \
684 maybe-all-zip \
685 maybe-all-zlib \
686 maybe-all-gdb \
687 maybe-all-expect \
688 maybe-all-guile \
689 maybe-all-tk \
690 maybe-all-tix \
691 maybe-all-libtermcap \
692 maybe-all-utils
693 .PHONY: all-target
694 all-target: \
695 maybe-all-target-libstdc++-v3 \
696 maybe-all-target-newlib \
697 maybe-all-target-libf2c \
698 maybe-all-target-libobjc \
699 maybe-all-target-libtermcap \
700 maybe-all-target-winsup \
701 maybe-all-target-libgloss \
702 maybe-all-target-libiberty \
703 maybe-all-target-gperf \
704 maybe-all-target-examples \
705 maybe-all-target-libffi \
706 maybe-all-target-libjava \
707 maybe-all-target-zlib \
708 maybe-all-target-boehm-gc \
709 maybe-all-target-qthreads \
710 maybe-all-target-rda \
711 maybe-all-target-libada
713 # Do a target for all the subdirectories. A ``make do-X'' will do a
714 # ``make X'' in all subdirectories (because, in general, there is a
715 # dependency (below) of X upon do-X, a ``make X'' will also do this,
716 # but it may do additional work as well).
718 .PHONY: do-info
719 do-info: info-host info-target
721 .PHONY: info-host
722 info-host: maybe-info-gcc \
723 maybe-info-ash \
724 maybe-info-autoconf \
725 maybe-info-automake \
726 maybe-info-bash \
727 maybe-info-bfd \
728 maybe-info-opcodes \
729 maybe-info-binutils \
730 maybe-info-bison \
731 maybe-info-byacc \
732 maybe-info-bzip2 \
733 maybe-info-dejagnu \
734 maybe-info-diff \
735 maybe-info-dosutils \
736 maybe-info-etc \
737 maybe-info-fastjar \
738 maybe-info-fileutils \
739 maybe-info-findutils \
740 maybe-info-find \
741 maybe-info-flex \
742 maybe-info-gas \
743 maybe-info-gawk \
744 maybe-info-gettext \
745 maybe-info-gnuserv \
746 maybe-info-gprof \
747 maybe-info-gzip \
748 maybe-info-hello \
749 maybe-info-indent \
750 maybe-info-intl \
751 maybe-info-tcl \
752 maybe-info-itcl \
753 maybe-info-ld \
754 maybe-info-libgui \
755 maybe-info-libiberty \
756 maybe-info-libtool \
757 maybe-info-m4 \
758 maybe-info-make \
759 maybe-info-mmalloc \
760 maybe-info-patch \
761 maybe-info-perl \
762 maybe-info-prms \
763 maybe-info-rcs \
764 maybe-info-readline \
765 maybe-info-release \
766 maybe-info-recode \
767 maybe-info-sed \
768 maybe-info-send-pr \
769 maybe-info-shellutils \
770 maybe-info-sid \
771 maybe-info-sim \
772 maybe-info-tar \
773 maybe-info-texinfo \
774 maybe-info-textutils \
775 maybe-info-time \
776 maybe-info-uudecode \
777 maybe-info-wdiff \
778 maybe-info-zip \
779 maybe-info-zlib \
780 maybe-info-gdb \
781 maybe-info-expect \
782 maybe-info-guile \
783 maybe-info-tk \
784 maybe-info-tix \
785 maybe-info-libtermcap \
786 maybe-info-utils
788 .PHONY: info-target
789 info-target: \
790 maybe-info-target-libstdc++-v3 \
791 maybe-info-target-newlib \
792 maybe-info-target-libf2c \
793 maybe-info-target-libobjc \
794 maybe-info-target-libtermcap \
795 maybe-info-target-winsup \
796 maybe-info-target-libgloss \
797 maybe-info-target-libiberty \
798 maybe-info-target-gperf \
799 maybe-info-target-examples \
800 maybe-info-target-libffi \
801 maybe-info-target-libjava \
802 maybe-info-target-zlib \
803 maybe-info-target-boehm-gc \
804 maybe-info-target-qthreads \
805 maybe-info-target-rda \
806 maybe-info-target-libada
808 .PHONY: do-dvi
809 do-dvi: dvi-host dvi-target
811 .PHONY: dvi-host
812 dvi-host: maybe-dvi-gcc \
813 maybe-dvi-ash \
814 maybe-dvi-autoconf \
815 maybe-dvi-automake \
816 maybe-dvi-bash \
817 maybe-dvi-bfd \
818 maybe-dvi-opcodes \
819 maybe-dvi-binutils \
820 maybe-dvi-bison \
821 maybe-dvi-byacc \
822 maybe-dvi-bzip2 \
823 maybe-dvi-dejagnu \
824 maybe-dvi-diff \
825 maybe-dvi-dosutils \
826 maybe-dvi-etc \
827 maybe-dvi-fastjar \
828 maybe-dvi-fileutils \
829 maybe-dvi-findutils \
830 maybe-dvi-find \
831 maybe-dvi-flex \
832 maybe-dvi-gas \
833 maybe-dvi-gawk \
834 maybe-dvi-gettext \
835 maybe-dvi-gnuserv \
836 maybe-dvi-gprof \
837 maybe-dvi-gzip \
838 maybe-dvi-hello \
839 maybe-dvi-indent \
840 maybe-dvi-intl \
841 maybe-dvi-tcl \
842 maybe-dvi-itcl \
843 maybe-dvi-ld \
844 maybe-dvi-libgui \
845 maybe-dvi-libiberty \
846 maybe-dvi-libtool \
847 maybe-dvi-m4 \
848 maybe-dvi-make \
849 maybe-dvi-mmalloc \
850 maybe-dvi-patch \
851 maybe-dvi-perl \
852 maybe-dvi-prms \
853 maybe-dvi-rcs \
854 maybe-dvi-readline \
855 maybe-dvi-release \
856 maybe-dvi-recode \
857 maybe-dvi-sed \
858 maybe-dvi-send-pr \
859 maybe-dvi-shellutils \
860 maybe-dvi-sid \
861 maybe-dvi-sim \
862 maybe-dvi-tar \
863 maybe-dvi-texinfo \
864 maybe-dvi-textutils \
865 maybe-dvi-time \
866 maybe-dvi-uudecode \
867 maybe-dvi-wdiff \
868 maybe-dvi-zip \
869 maybe-dvi-zlib \
870 maybe-dvi-gdb \
871 maybe-dvi-expect \
872 maybe-dvi-guile \
873 maybe-dvi-tk \
874 maybe-dvi-tix \
875 maybe-dvi-libtermcap \
876 maybe-dvi-utils
878 .PHONY: dvi-target
879 dvi-target: \
880 maybe-dvi-target-libstdc++-v3 \
881 maybe-dvi-target-newlib \
882 maybe-dvi-target-libf2c \
883 maybe-dvi-target-libobjc \
884 maybe-dvi-target-libtermcap \
885 maybe-dvi-target-winsup \
886 maybe-dvi-target-libgloss \
887 maybe-dvi-target-libiberty \
888 maybe-dvi-target-gperf \
889 maybe-dvi-target-examples \
890 maybe-dvi-target-libffi \
891 maybe-dvi-target-libjava \
892 maybe-dvi-target-zlib \
893 maybe-dvi-target-boehm-gc \
894 maybe-dvi-target-qthreads \
895 maybe-dvi-target-rda \
896 maybe-dvi-target-libada
898 .PHONY: do-TAGS
899 do-TAGS: TAGS-host TAGS-target
901 .PHONY: TAGS-host
902 TAGS-host: maybe-TAGS-gcc \
903 maybe-TAGS-ash \
904 maybe-TAGS-autoconf \
905 maybe-TAGS-automake \
906 maybe-TAGS-bash \
907 maybe-TAGS-bfd \
908 maybe-TAGS-opcodes \
909 maybe-TAGS-binutils \
910 maybe-TAGS-bison \
911 maybe-TAGS-byacc \
912 maybe-TAGS-bzip2 \
913 maybe-TAGS-dejagnu \
914 maybe-TAGS-diff \
915 maybe-TAGS-dosutils \
916 maybe-TAGS-etc \
917 maybe-TAGS-fastjar \
918 maybe-TAGS-fileutils \
919 maybe-TAGS-findutils \
920 maybe-TAGS-find \
921 maybe-TAGS-flex \
922 maybe-TAGS-gas \
923 maybe-TAGS-gawk \
924 maybe-TAGS-gettext \
925 maybe-TAGS-gnuserv \
926 maybe-TAGS-gprof \
927 maybe-TAGS-gzip \
928 maybe-TAGS-hello \
929 maybe-TAGS-indent \
930 maybe-TAGS-intl \
931 maybe-TAGS-tcl \
932 maybe-TAGS-itcl \
933 maybe-TAGS-ld \
934 maybe-TAGS-libgui \
935 maybe-TAGS-libiberty \
936 maybe-TAGS-libtool \
937 maybe-TAGS-m4 \
938 maybe-TAGS-make \
939 maybe-TAGS-mmalloc \
940 maybe-TAGS-patch \
941 maybe-TAGS-perl \
942 maybe-TAGS-prms \
943 maybe-TAGS-rcs \
944 maybe-TAGS-readline \
945 maybe-TAGS-release \
946 maybe-TAGS-recode \
947 maybe-TAGS-sed \
948 maybe-TAGS-send-pr \
949 maybe-TAGS-shellutils \
950 maybe-TAGS-sid \
951 maybe-TAGS-sim \
952 maybe-TAGS-tar \
953 maybe-TAGS-texinfo \
954 maybe-TAGS-textutils \
955 maybe-TAGS-time \
956 maybe-TAGS-uudecode \
957 maybe-TAGS-wdiff \
958 maybe-TAGS-zip \
959 maybe-TAGS-zlib \
960 maybe-TAGS-gdb \
961 maybe-TAGS-expect \
962 maybe-TAGS-guile \
963 maybe-TAGS-tk \
964 maybe-TAGS-tix \
965 maybe-TAGS-libtermcap \
966 maybe-TAGS-utils
968 .PHONY: TAGS-target
969 TAGS-target: \
970 maybe-TAGS-target-libstdc++-v3 \
971 maybe-TAGS-target-newlib \
972 maybe-TAGS-target-libf2c \
973 maybe-TAGS-target-libobjc \
974 maybe-TAGS-target-libtermcap \
975 maybe-TAGS-target-winsup \
976 maybe-TAGS-target-libgloss \
977 maybe-TAGS-target-libiberty \
978 maybe-TAGS-target-gperf \
979 maybe-TAGS-target-examples \
980 maybe-TAGS-target-libffi \
981 maybe-TAGS-target-libjava \
982 maybe-TAGS-target-zlib \
983 maybe-TAGS-target-boehm-gc \
984 maybe-TAGS-target-qthreads \
985 maybe-TAGS-target-rda \
986 maybe-TAGS-target-libada
988 .PHONY: do-install-info
989 do-install-info: install-info-host install-info-target
991 .PHONY: install-info-host
992 install-info-host: maybe-install-info-gcc \
993 maybe-install-info-ash \
994 maybe-install-info-autoconf \
995 maybe-install-info-automake \
996 maybe-install-info-bash \
997 maybe-install-info-bfd \
998 maybe-install-info-opcodes \
999 maybe-install-info-binutils \
1000 maybe-install-info-bison \
1001 maybe-install-info-byacc \
1002 maybe-install-info-bzip2 \
1003 maybe-install-info-dejagnu \
1004 maybe-install-info-diff \
1005 maybe-install-info-dosutils \
1006 maybe-install-info-etc \
1007 maybe-install-info-fastjar \
1008 maybe-install-info-fileutils \
1009 maybe-install-info-findutils \
1010 maybe-install-info-find \
1011 maybe-install-info-flex \
1012 maybe-install-info-gas \
1013 maybe-install-info-gawk \
1014 maybe-install-info-gettext \
1015 maybe-install-info-gnuserv \
1016 maybe-install-info-gprof \
1017 maybe-install-info-gzip \
1018 maybe-install-info-hello \
1019 maybe-install-info-indent \
1020 maybe-install-info-intl \
1021 maybe-install-info-tcl \
1022 maybe-install-info-itcl \
1023 maybe-install-info-ld \
1024 maybe-install-info-libgui \
1025 maybe-install-info-libiberty \
1026 maybe-install-info-libtool \
1027 maybe-install-info-m4 \
1028 maybe-install-info-make \
1029 maybe-install-info-mmalloc \
1030 maybe-install-info-patch \
1031 maybe-install-info-perl \
1032 maybe-install-info-prms \
1033 maybe-install-info-rcs \
1034 maybe-install-info-readline \
1035 maybe-install-info-release \
1036 maybe-install-info-recode \
1037 maybe-install-info-sed \
1038 maybe-install-info-send-pr \
1039 maybe-install-info-shellutils \
1040 maybe-install-info-sid \
1041 maybe-install-info-sim \
1042 maybe-install-info-tar \
1043 maybe-install-info-texinfo \
1044 maybe-install-info-textutils \
1045 maybe-install-info-time \
1046 maybe-install-info-uudecode \
1047 maybe-install-info-wdiff \
1048 maybe-install-info-zip \
1049 maybe-install-info-zlib \
1050 maybe-install-info-gdb \
1051 maybe-install-info-expect \
1052 maybe-install-info-guile \
1053 maybe-install-info-tk \
1054 maybe-install-info-tix \
1055 maybe-install-info-libtermcap \
1056 maybe-install-info-utils
1058 .PHONY: install-info-target
1059 install-info-target: \
1060 maybe-install-info-target-libstdc++-v3 \
1061 maybe-install-info-target-newlib \
1062 maybe-install-info-target-libf2c \
1063 maybe-install-info-target-libobjc \
1064 maybe-install-info-target-libtermcap \
1065 maybe-install-info-target-winsup \
1066 maybe-install-info-target-libgloss \
1067 maybe-install-info-target-libiberty \
1068 maybe-install-info-target-gperf \
1069 maybe-install-info-target-examples \
1070 maybe-install-info-target-libffi \
1071 maybe-install-info-target-libjava \
1072 maybe-install-info-target-zlib \
1073 maybe-install-info-target-boehm-gc \
1074 maybe-install-info-target-qthreads \
1075 maybe-install-info-target-rda \
1076 maybe-install-info-target-libada
1078 .PHONY: do-installcheck
1079 do-installcheck: installcheck-host installcheck-target
1081 .PHONY: installcheck-host
1082 installcheck-host: maybe-installcheck-gcc \
1083 maybe-installcheck-ash \
1084 maybe-installcheck-autoconf \
1085 maybe-installcheck-automake \
1086 maybe-installcheck-bash \
1087 maybe-installcheck-bfd \
1088 maybe-installcheck-opcodes \
1089 maybe-installcheck-binutils \
1090 maybe-installcheck-bison \
1091 maybe-installcheck-byacc \
1092 maybe-installcheck-bzip2 \
1093 maybe-installcheck-dejagnu \
1094 maybe-installcheck-diff \
1095 maybe-installcheck-dosutils \
1096 maybe-installcheck-etc \
1097 maybe-installcheck-fastjar \
1098 maybe-installcheck-fileutils \
1099 maybe-installcheck-findutils \
1100 maybe-installcheck-find \
1101 maybe-installcheck-flex \
1102 maybe-installcheck-gas \
1103 maybe-installcheck-gawk \
1104 maybe-installcheck-gettext \
1105 maybe-installcheck-gnuserv \
1106 maybe-installcheck-gprof \
1107 maybe-installcheck-gzip \
1108 maybe-installcheck-hello \
1109 maybe-installcheck-indent \
1110 maybe-installcheck-intl \
1111 maybe-installcheck-tcl \
1112 maybe-installcheck-itcl \
1113 maybe-installcheck-ld \
1114 maybe-installcheck-libgui \
1115 maybe-installcheck-libiberty \
1116 maybe-installcheck-libtool \
1117 maybe-installcheck-m4 \
1118 maybe-installcheck-make \
1119 maybe-installcheck-mmalloc \
1120 maybe-installcheck-patch \
1121 maybe-installcheck-perl \
1122 maybe-installcheck-prms \
1123 maybe-installcheck-rcs \
1124 maybe-installcheck-readline \
1125 maybe-installcheck-release \
1126 maybe-installcheck-recode \
1127 maybe-installcheck-sed \
1128 maybe-installcheck-send-pr \
1129 maybe-installcheck-shellutils \
1130 maybe-installcheck-sid \
1131 maybe-installcheck-sim \
1132 maybe-installcheck-tar \
1133 maybe-installcheck-texinfo \
1134 maybe-installcheck-textutils \
1135 maybe-installcheck-time \
1136 maybe-installcheck-uudecode \
1137 maybe-installcheck-wdiff \
1138 maybe-installcheck-zip \
1139 maybe-installcheck-zlib \
1140 maybe-installcheck-gdb \
1141 maybe-installcheck-expect \
1142 maybe-installcheck-guile \
1143 maybe-installcheck-tk \
1144 maybe-installcheck-tix \
1145 maybe-installcheck-libtermcap \
1146 maybe-installcheck-utils
1148 .PHONY: installcheck-target
1149 installcheck-target: \
1150 maybe-installcheck-target-libstdc++-v3 \
1151 maybe-installcheck-target-newlib \
1152 maybe-installcheck-target-libf2c \
1153 maybe-installcheck-target-libobjc \
1154 maybe-installcheck-target-libtermcap \
1155 maybe-installcheck-target-winsup \
1156 maybe-installcheck-target-libgloss \
1157 maybe-installcheck-target-libiberty \
1158 maybe-installcheck-target-gperf \
1159 maybe-installcheck-target-examples \
1160 maybe-installcheck-target-libffi \
1161 maybe-installcheck-target-libjava \
1162 maybe-installcheck-target-zlib \
1163 maybe-installcheck-target-boehm-gc \
1164 maybe-installcheck-target-qthreads \
1165 maybe-installcheck-target-rda \
1166 maybe-installcheck-target-libada
1168 .PHONY: do-mostlyclean
1169 do-mostlyclean: mostlyclean-host mostlyclean-target
1171 .PHONY: mostlyclean-host
1172 mostlyclean-host: maybe-mostlyclean-gcc \
1173 maybe-mostlyclean-ash \
1174 maybe-mostlyclean-autoconf \
1175 maybe-mostlyclean-automake \
1176 maybe-mostlyclean-bash \
1177 maybe-mostlyclean-bfd \
1178 maybe-mostlyclean-opcodes \
1179 maybe-mostlyclean-binutils \
1180 maybe-mostlyclean-bison \
1181 maybe-mostlyclean-byacc \
1182 maybe-mostlyclean-bzip2 \
1183 maybe-mostlyclean-dejagnu \
1184 maybe-mostlyclean-diff \
1185 maybe-mostlyclean-dosutils \
1186 maybe-mostlyclean-etc \
1187 maybe-mostlyclean-fastjar \
1188 maybe-mostlyclean-fileutils \
1189 maybe-mostlyclean-findutils \
1190 maybe-mostlyclean-find \
1191 maybe-mostlyclean-flex \
1192 maybe-mostlyclean-gas \
1193 maybe-mostlyclean-gawk \
1194 maybe-mostlyclean-gettext \
1195 maybe-mostlyclean-gnuserv \
1196 maybe-mostlyclean-gprof \
1197 maybe-mostlyclean-gzip \
1198 maybe-mostlyclean-hello \
1199 maybe-mostlyclean-indent \
1200 maybe-mostlyclean-intl \
1201 maybe-mostlyclean-tcl \
1202 maybe-mostlyclean-itcl \
1203 maybe-mostlyclean-ld \
1204 maybe-mostlyclean-libgui \
1205 maybe-mostlyclean-libiberty \
1206 maybe-mostlyclean-libtool \
1207 maybe-mostlyclean-m4 \
1208 maybe-mostlyclean-make \
1209 maybe-mostlyclean-mmalloc \
1210 maybe-mostlyclean-patch \
1211 maybe-mostlyclean-perl \
1212 maybe-mostlyclean-prms \
1213 maybe-mostlyclean-rcs \
1214 maybe-mostlyclean-readline \
1215 maybe-mostlyclean-release \
1216 maybe-mostlyclean-recode \
1217 maybe-mostlyclean-sed \
1218 maybe-mostlyclean-send-pr \
1219 maybe-mostlyclean-shellutils \
1220 maybe-mostlyclean-sid \
1221 maybe-mostlyclean-sim \
1222 maybe-mostlyclean-tar \
1223 maybe-mostlyclean-texinfo \
1224 maybe-mostlyclean-textutils \
1225 maybe-mostlyclean-time \
1226 maybe-mostlyclean-uudecode \
1227 maybe-mostlyclean-wdiff \
1228 maybe-mostlyclean-zip \
1229 maybe-mostlyclean-zlib \
1230 maybe-mostlyclean-gdb \
1231 maybe-mostlyclean-expect \
1232 maybe-mostlyclean-guile \
1233 maybe-mostlyclean-tk \
1234 maybe-mostlyclean-tix \
1235 maybe-mostlyclean-libtermcap \
1236 maybe-mostlyclean-utils
1238 .PHONY: mostlyclean-target
1239 mostlyclean-target: \
1240 maybe-mostlyclean-target-libstdc++-v3 \
1241 maybe-mostlyclean-target-newlib \
1242 maybe-mostlyclean-target-libf2c \
1243 maybe-mostlyclean-target-libobjc \
1244 maybe-mostlyclean-target-libtermcap \
1245 maybe-mostlyclean-target-winsup \
1246 maybe-mostlyclean-target-libgloss \
1247 maybe-mostlyclean-target-libiberty \
1248 maybe-mostlyclean-target-gperf \
1249 maybe-mostlyclean-target-examples \
1250 maybe-mostlyclean-target-libffi \
1251 maybe-mostlyclean-target-libjava \
1252 maybe-mostlyclean-target-zlib \
1253 maybe-mostlyclean-target-boehm-gc \
1254 maybe-mostlyclean-target-qthreads \
1255 maybe-mostlyclean-target-rda \
1256 maybe-mostlyclean-target-libada
1258 .PHONY: do-clean
1259 do-clean: clean-host clean-target
1261 .PHONY: clean-host
1262 clean-host: maybe-clean-gcc \
1263 maybe-clean-ash \
1264 maybe-clean-autoconf \
1265 maybe-clean-automake \
1266 maybe-clean-bash \
1267 maybe-clean-bfd \
1268 maybe-clean-opcodes \
1269 maybe-clean-binutils \
1270 maybe-clean-bison \
1271 maybe-clean-byacc \
1272 maybe-clean-bzip2 \
1273 maybe-clean-dejagnu \
1274 maybe-clean-diff \
1275 maybe-clean-dosutils \
1276 maybe-clean-etc \
1277 maybe-clean-fastjar \
1278 maybe-clean-fileutils \
1279 maybe-clean-findutils \
1280 maybe-clean-find \
1281 maybe-clean-flex \
1282 maybe-clean-gas \
1283 maybe-clean-gawk \
1284 maybe-clean-gettext \
1285 maybe-clean-gnuserv \
1286 maybe-clean-gprof \
1287 maybe-clean-gzip \
1288 maybe-clean-hello \
1289 maybe-clean-indent \
1290 maybe-clean-intl \
1291 maybe-clean-tcl \
1292 maybe-clean-itcl \
1293 maybe-clean-ld \
1294 maybe-clean-libgui \
1295 maybe-clean-libiberty \
1296 maybe-clean-libtool \
1297 maybe-clean-m4 \
1298 maybe-clean-make \
1299 maybe-clean-mmalloc \
1300 maybe-clean-patch \
1301 maybe-clean-perl \
1302 maybe-clean-prms \
1303 maybe-clean-rcs \
1304 maybe-clean-readline \
1305 maybe-clean-release \
1306 maybe-clean-recode \
1307 maybe-clean-sed \
1308 maybe-clean-send-pr \
1309 maybe-clean-shellutils \
1310 maybe-clean-sid \
1311 maybe-clean-sim \
1312 maybe-clean-tar \
1313 maybe-clean-texinfo \
1314 maybe-clean-textutils \
1315 maybe-clean-time \
1316 maybe-clean-uudecode \
1317 maybe-clean-wdiff \
1318 maybe-clean-zip \
1319 maybe-clean-zlib \
1320 maybe-clean-gdb \
1321 maybe-clean-expect \
1322 maybe-clean-guile \
1323 maybe-clean-tk \
1324 maybe-clean-tix \
1325 maybe-clean-libtermcap \
1326 maybe-clean-utils
1328 .PHONY: clean-target
1329 clean-target: \
1330 maybe-clean-target-libstdc++-v3 \
1331 maybe-clean-target-newlib \
1332 maybe-clean-target-libf2c \
1333 maybe-clean-target-libobjc \
1334 maybe-clean-target-libtermcap \
1335 maybe-clean-target-winsup \
1336 maybe-clean-target-libgloss \
1337 maybe-clean-target-libiberty \
1338 maybe-clean-target-gperf \
1339 maybe-clean-target-examples \
1340 maybe-clean-target-libffi \
1341 maybe-clean-target-libjava \
1342 maybe-clean-target-zlib \
1343 maybe-clean-target-boehm-gc \
1344 maybe-clean-target-qthreads \
1345 maybe-clean-target-rda \
1346 maybe-clean-target-libada
1348 .PHONY: do-distclean
1349 do-distclean: distclean-host distclean-target
1351 .PHONY: distclean-host
1352 distclean-host: maybe-distclean-gcc \
1353 maybe-distclean-ash \
1354 maybe-distclean-autoconf \
1355 maybe-distclean-automake \
1356 maybe-distclean-bash \
1357 maybe-distclean-bfd \
1358 maybe-distclean-opcodes \
1359 maybe-distclean-binutils \
1360 maybe-distclean-bison \
1361 maybe-distclean-byacc \
1362 maybe-distclean-bzip2 \
1363 maybe-distclean-dejagnu \
1364 maybe-distclean-diff \
1365 maybe-distclean-dosutils \
1366 maybe-distclean-etc \
1367 maybe-distclean-fastjar \
1368 maybe-distclean-fileutils \
1369 maybe-distclean-findutils \
1370 maybe-distclean-find \
1371 maybe-distclean-flex \
1372 maybe-distclean-gas \
1373 maybe-distclean-gawk \
1374 maybe-distclean-gettext \
1375 maybe-distclean-gnuserv \
1376 maybe-distclean-gprof \
1377 maybe-distclean-gzip \
1378 maybe-distclean-hello \
1379 maybe-distclean-indent \
1380 maybe-distclean-intl \
1381 maybe-distclean-tcl \
1382 maybe-distclean-itcl \
1383 maybe-distclean-ld \
1384 maybe-distclean-libgui \
1385 maybe-distclean-libiberty \
1386 maybe-distclean-libtool \
1387 maybe-distclean-m4 \
1388 maybe-distclean-make \
1389 maybe-distclean-mmalloc \
1390 maybe-distclean-patch \
1391 maybe-distclean-perl \
1392 maybe-distclean-prms \
1393 maybe-distclean-rcs \
1394 maybe-distclean-readline \
1395 maybe-distclean-release \
1396 maybe-distclean-recode \
1397 maybe-distclean-sed \
1398 maybe-distclean-send-pr \
1399 maybe-distclean-shellutils \
1400 maybe-distclean-sid \
1401 maybe-distclean-sim \
1402 maybe-distclean-tar \
1403 maybe-distclean-texinfo \
1404 maybe-distclean-textutils \
1405 maybe-distclean-time \
1406 maybe-distclean-uudecode \
1407 maybe-distclean-wdiff \
1408 maybe-distclean-zip \
1409 maybe-distclean-zlib \
1410 maybe-distclean-gdb \
1411 maybe-distclean-expect \
1412 maybe-distclean-guile \
1413 maybe-distclean-tk \
1414 maybe-distclean-tix \
1415 maybe-distclean-libtermcap \
1416 maybe-distclean-utils
1418 .PHONY: distclean-target
1419 distclean-target: \
1420 maybe-distclean-target-libstdc++-v3 \
1421 maybe-distclean-target-newlib \
1422 maybe-distclean-target-libf2c \
1423 maybe-distclean-target-libobjc \
1424 maybe-distclean-target-libtermcap \
1425 maybe-distclean-target-winsup \
1426 maybe-distclean-target-libgloss \
1427 maybe-distclean-target-libiberty \
1428 maybe-distclean-target-gperf \
1429 maybe-distclean-target-examples \
1430 maybe-distclean-target-libffi \
1431 maybe-distclean-target-libjava \
1432 maybe-distclean-target-zlib \
1433 maybe-distclean-target-boehm-gc \
1434 maybe-distclean-target-qthreads \
1435 maybe-distclean-target-rda \
1436 maybe-distclean-target-libada
1438 .PHONY: do-maintainer-clean
1439 do-maintainer-clean: maintainer-clean-host maintainer-clean-target
1441 .PHONY: maintainer-clean-host
1442 maintainer-clean-host: maybe-maintainer-clean-gcc \
1443 maybe-maintainer-clean-ash \
1444 maybe-maintainer-clean-autoconf \
1445 maybe-maintainer-clean-automake \
1446 maybe-maintainer-clean-bash \
1447 maybe-maintainer-clean-bfd \
1448 maybe-maintainer-clean-opcodes \
1449 maybe-maintainer-clean-binutils \
1450 maybe-maintainer-clean-bison \
1451 maybe-maintainer-clean-byacc \
1452 maybe-maintainer-clean-bzip2 \
1453 maybe-maintainer-clean-dejagnu \
1454 maybe-maintainer-clean-diff \
1455 maybe-maintainer-clean-dosutils \
1456 maybe-maintainer-clean-etc \
1457 maybe-maintainer-clean-fastjar \
1458 maybe-maintainer-clean-fileutils \
1459 maybe-maintainer-clean-findutils \
1460 maybe-maintainer-clean-find \
1461 maybe-maintainer-clean-flex \
1462 maybe-maintainer-clean-gas \
1463 maybe-maintainer-clean-gawk \
1464 maybe-maintainer-clean-gettext \
1465 maybe-maintainer-clean-gnuserv \
1466 maybe-maintainer-clean-gprof \
1467 maybe-maintainer-clean-gzip \
1468 maybe-maintainer-clean-hello \
1469 maybe-maintainer-clean-indent \
1470 maybe-maintainer-clean-intl \
1471 maybe-maintainer-clean-tcl \
1472 maybe-maintainer-clean-itcl \
1473 maybe-maintainer-clean-ld \
1474 maybe-maintainer-clean-libgui \
1475 maybe-maintainer-clean-libiberty \
1476 maybe-maintainer-clean-libtool \
1477 maybe-maintainer-clean-m4 \
1478 maybe-maintainer-clean-make \
1479 maybe-maintainer-clean-mmalloc \
1480 maybe-maintainer-clean-patch \
1481 maybe-maintainer-clean-perl \
1482 maybe-maintainer-clean-prms \
1483 maybe-maintainer-clean-rcs \
1484 maybe-maintainer-clean-readline \
1485 maybe-maintainer-clean-release \
1486 maybe-maintainer-clean-recode \
1487 maybe-maintainer-clean-sed \
1488 maybe-maintainer-clean-send-pr \
1489 maybe-maintainer-clean-shellutils \
1490 maybe-maintainer-clean-sid \
1491 maybe-maintainer-clean-sim \
1492 maybe-maintainer-clean-tar \
1493 maybe-maintainer-clean-texinfo \
1494 maybe-maintainer-clean-textutils \
1495 maybe-maintainer-clean-time \
1496 maybe-maintainer-clean-uudecode \
1497 maybe-maintainer-clean-wdiff \
1498 maybe-maintainer-clean-zip \
1499 maybe-maintainer-clean-zlib \
1500 maybe-maintainer-clean-gdb \
1501 maybe-maintainer-clean-expect \
1502 maybe-maintainer-clean-guile \
1503 maybe-maintainer-clean-tk \
1504 maybe-maintainer-clean-tix \
1505 maybe-maintainer-clean-libtermcap \
1506 maybe-maintainer-clean-utils
1508 .PHONY: maintainer-clean-target
1509 maintainer-clean-target: \
1510 maybe-maintainer-clean-target-libstdc++-v3 \
1511 maybe-maintainer-clean-target-newlib \
1512 maybe-maintainer-clean-target-libf2c \
1513 maybe-maintainer-clean-target-libobjc \
1514 maybe-maintainer-clean-target-libtermcap \
1515 maybe-maintainer-clean-target-winsup \
1516 maybe-maintainer-clean-target-libgloss \
1517 maybe-maintainer-clean-target-libiberty \
1518 maybe-maintainer-clean-target-gperf \
1519 maybe-maintainer-clean-target-examples \
1520 maybe-maintainer-clean-target-libffi \
1521 maybe-maintainer-clean-target-libjava \
1522 maybe-maintainer-clean-target-zlib \
1523 maybe-maintainer-clean-target-boehm-gc \
1524 maybe-maintainer-clean-target-qthreads \
1525 maybe-maintainer-clean-target-rda \
1526 maybe-maintainer-clean-target-libada
1529 # Here are the targets which correspond to the do-X targets.
1531 .PHONY: info installcheck dvi install-info
1532 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1533 .PHONY: local-clean local-distclean local-maintainer-clean
1534 info: do-info
1535 installcheck: do-installcheck
1536 dvi: do-dvi
1538 # Make sure makeinfo is built before we do a `make info', if we're
1539 # in fact building texinfo.
1540 do-info: maybe-all-texinfo
1542 install-info: do-install-info dir.info
1543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1544 if [ -f dir.info ] ; then \
1545 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1546 else true ; fi
1548 local-clean:
1549 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1551 local-distclean:
1552 -rm -f Makefile config.status config.cache mh-frag mt-frag
1553 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1554 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1555 rm -rf $(TARGET_SUBDIR); \
1556 else true; fi
1557 -rm -rf $(BUILD_SUBDIR)
1558 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1559 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1560 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1561 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1562 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1564 local-maintainer-clean:
1565 @echo "This command is intended for maintainers to use;"
1566 @echo "it deletes files that may require special tools to rebuild."
1568 clean: do-clean local-clean
1569 mostlyclean: do-mostlyclean local-clean
1570 distclean: do-distclean local-clean local-distclean
1571 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1572 maintainer-clean: local-distclean
1573 realclean: maintainer-clean
1575 # Extra dependency for clean-target, owing to the mixed nature of gcc
1576 clean-target: clean-target-libgcc
1577 clean-target-libgcc:
1578 test ! -d gcc/libgcc || \
1579 (cd gcc/libgcc && find . -type d -print) | \
1580 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1581 -rm -rf gcc/libgcc
1583 # Check target.
1585 .PHONY: check do-check
1586 check: do-check
1588 # Only include modules actually being configured and built.
1589 do-check: maybe-check-gcc \
1590 maybe-check-ash \
1591 maybe-check-autoconf \
1592 maybe-check-automake \
1593 maybe-check-bash \
1594 maybe-check-bfd \
1595 maybe-check-opcodes \
1596 maybe-check-binutils \
1597 maybe-check-bison \
1598 maybe-check-byacc \
1599 maybe-check-bzip2 \
1600 maybe-check-dejagnu \
1601 maybe-check-diff \
1602 maybe-check-dosutils \
1603 maybe-check-etc \
1604 maybe-check-fastjar \
1605 maybe-check-fileutils \
1606 maybe-check-findutils \
1607 maybe-check-find \
1608 maybe-check-flex \
1609 maybe-check-gas \
1610 maybe-check-gawk \
1611 maybe-check-gettext \
1612 maybe-check-gnuserv \
1613 maybe-check-gprof \
1614 maybe-check-gzip \
1615 maybe-check-hello \
1616 maybe-check-indent \
1617 maybe-check-intl \
1618 maybe-check-tcl \
1619 maybe-check-itcl \
1620 maybe-check-ld \
1621 maybe-check-libgui \
1622 maybe-check-libiberty \
1623 maybe-check-libtool \
1624 maybe-check-m4 \
1625 maybe-check-make \
1626 maybe-check-mmalloc \
1627 maybe-check-patch \
1628 maybe-check-perl \
1629 maybe-check-prms \
1630 maybe-check-rcs \
1631 maybe-check-readline \
1632 maybe-check-release \
1633 maybe-check-recode \
1634 maybe-check-sed \
1635 maybe-check-send-pr \
1636 maybe-check-shellutils \
1637 maybe-check-sid \
1638 maybe-check-sim \
1639 maybe-check-tar \
1640 maybe-check-texinfo \
1641 maybe-check-textutils \
1642 maybe-check-time \
1643 maybe-check-uudecode \
1644 maybe-check-wdiff \
1645 maybe-check-zip \
1646 maybe-check-zlib \
1647 maybe-check-gdb \
1648 maybe-check-expect \
1649 maybe-check-guile \
1650 maybe-check-tk \
1651 maybe-check-tix \
1652 maybe-check-libtermcap \
1653 maybe-check-utils \
1654 maybe-check-target-libstdc++-v3 \
1655 maybe-check-target-newlib \
1656 maybe-check-target-libf2c \
1657 maybe-check-target-libobjc \
1658 maybe-check-target-libtermcap \
1659 maybe-check-target-winsup \
1660 maybe-check-target-libgloss \
1661 maybe-check-target-libiberty \
1662 maybe-check-target-gperf \
1663 maybe-check-target-examples \
1664 maybe-check-target-libffi \
1665 maybe-check-target-libjava \
1666 maybe-check-target-zlib \
1667 maybe-check-target-boehm-gc \
1668 maybe-check-target-qthreads \
1669 maybe-check-target-rda \
1670 maybe-check-target-libada
1672 # Automated reporting of test results.
1674 warning.log: build.log
1675 $(srcdir)/contrib/warn_summary build.log > $@
1677 mail-report.log:
1678 if test x'$(BOOT_CFLAGS)' != x''; then \
1679 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1680 fi; \
1681 $(srcdir)/contrib/test_summary -t >$@
1682 chmod +x $@
1683 echo If you really want to send e-mail, run ./$@ now
1685 mail-report-with-warnings.log: warning.log
1686 if test x'$(BOOT_CFLAGS)' != x''; then \
1687 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1688 fi; \
1689 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1690 chmod +x $@
1691 echo If you really want to send e-mail, run ./$@ now
1693 # Installation targets.
1695 .PHONY: install uninstall
1696 install: installdirs install-host install-target
1698 .PHONY: install-host-nogcc
1699 install-host-nogcc: \
1700 maybe-install-ash \
1701 maybe-install-autoconf \
1702 maybe-install-automake \
1703 maybe-install-bash \
1704 maybe-install-bfd \
1705 maybe-install-opcodes \
1706 maybe-install-binutils \
1707 maybe-install-bison \
1708 maybe-install-byacc \
1709 maybe-install-bzip2 \
1710 maybe-install-dejagnu \
1711 maybe-install-diff \
1712 maybe-install-dosutils \
1713 maybe-install-etc \
1714 maybe-install-fastjar \
1715 maybe-install-fileutils \
1716 maybe-install-findutils \
1717 maybe-install-find \
1718 maybe-install-flex \
1719 maybe-install-gas \
1720 maybe-install-gawk \
1721 maybe-install-gettext \
1722 maybe-install-gnuserv \
1723 maybe-install-gprof \
1724 maybe-install-gzip \
1725 maybe-install-hello \
1726 maybe-install-indent \
1727 maybe-install-intl \
1728 maybe-install-tcl \
1729 maybe-install-itcl \
1730 maybe-install-ld \
1731 maybe-install-libgui \
1732 maybe-install-libiberty \
1733 maybe-install-libtool \
1734 maybe-install-m4 \
1735 maybe-install-make \
1736 maybe-install-mmalloc \
1737 maybe-install-patch \
1738 maybe-install-perl \
1739 maybe-install-prms \
1740 maybe-install-rcs \
1741 maybe-install-readline \
1742 maybe-install-release \
1743 maybe-install-recode \
1744 maybe-install-sed \
1745 maybe-install-send-pr \
1746 maybe-install-shellutils \
1747 maybe-install-sid \
1748 maybe-install-sim \
1749 maybe-install-tar \
1750 maybe-install-texinfo \
1751 maybe-install-textutils \
1752 maybe-install-time \
1753 maybe-install-uudecode \
1754 maybe-install-wdiff \
1755 maybe-install-zip \
1756 maybe-install-zlib \
1757 maybe-install-gdb \
1758 maybe-install-expect \
1759 maybe-install-guile \
1760 maybe-install-tk \
1761 maybe-install-tix \
1762 maybe-install-libtermcap \
1763 maybe-install-utils
1765 .PHONY: install-host
1766 install-host: maybe-install-gcc \
1767 maybe-install-ash \
1768 maybe-install-autoconf \
1769 maybe-install-automake \
1770 maybe-install-bash \
1771 maybe-install-bfd \
1772 maybe-install-opcodes \
1773 maybe-install-binutils \
1774 maybe-install-bison \
1775 maybe-install-byacc \
1776 maybe-install-bzip2 \
1777 maybe-install-dejagnu \
1778 maybe-install-diff \
1779 maybe-install-dosutils \
1780 maybe-install-etc \
1781 maybe-install-fastjar \
1782 maybe-install-fileutils \
1783 maybe-install-findutils \
1784 maybe-install-find \
1785 maybe-install-flex \
1786 maybe-install-gas \
1787 maybe-install-gawk \
1788 maybe-install-gettext \
1789 maybe-install-gnuserv \
1790 maybe-install-gprof \
1791 maybe-install-gzip \
1792 maybe-install-hello \
1793 maybe-install-indent \
1794 maybe-install-intl \
1795 maybe-install-tcl \
1796 maybe-install-itcl \
1797 maybe-install-ld \
1798 maybe-install-libgui \
1799 maybe-install-libiberty \
1800 maybe-install-libtool \
1801 maybe-install-m4 \
1802 maybe-install-make \
1803 maybe-install-mmalloc \
1804 maybe-install-patch \
1805 maybe-install-perl \
1806 maybe-install-prms \
1807 maybe-install-rcs \
1808 maybe-install-readline \
1809 maybe-install-release \
1810 maybe-install-recode \
1811 maybe-install-sed \
1812 maybe-install-send-pr \
1813 maybe-install-shellutils \
1814 maybe-install-sid \
1815 maybe-install-sim \
1816 maybe-install-tar \
1817 maybe-install-texinfo \
1818 maybe-install-textutils \
1819 maybe-install-time \
1820 maybe-install-uudecode \
1821 maybe-install-wdiff \
1822 maybe-install-zip \
1823 maybe-install-zlib \
1824 maybe-install-gdb \
1825 maybe-install-expect \
1826 maybe-install-guile \
1827 maybe-install-tk \
1828 maybe-install-tix \
1829 maybe-install-libtermcap \
1830 maybe-install-utils
1832 .PHONY: install-target
1833 install-target: \
1834 maybe-install-target-libstdc++-v3 \
1835 maybe-install-target-newlib \
1836 maybe-install-target-libf2c \
1837 maybe-install-target-libobjc \
1838 maybe-install-target-libtermcap \
1839 maybe-install-target-winsup \
1840 maybe-install-target-libgloss \
1841 maybe-install-target-libiberty \
1842 maybe-install-target-gperf \
1843 maybe-install-target-examples \
1844 maybe-install-target-libffi \
1845 maybe-install-target-libjava \
1846 maybe-install-target-zlib \
1847 maybe-install-target-boehm-gc \
1848 maybe-install-target-qthreads \
1849 maybe-install-target-rda \
1850 maybe-install-target-libada
1852 uninstall:
1853 @echo "the uninstall target is not supported in this tree"
1855 .PHONY: install.all
1856 install.all: install-no-fixedincludes
1857 @if [ -f ./gcc/Makefile ] ; then \
1858 r=`${PWD_COMMAND}` ; export r ; \
1859 $(SET_LIB_PATH) \
1860 (cd ./gcc && \
1861 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1862 else \
1863 true ; \
1866 # install-no-fixedincludes is used because Cygnus can not distribute
1867 # the fixed header files.
1868 .PHONY: install-no-fixedincludes
1869 install-no-fixedincludes: installdirs install-host-nogcc \
1870 install-target gcc-no-fixedincludes
1872 ### other supporting targets
1874 MAKEDIRS= \
1875 $(DESTDIR)$(prefix) \
1876 $(DESTDIR)$(exec_prefix)
1877 .PHONY: installdirs
1878 installdirs: mkinstalldirs
1879 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1881 dir.info: do-install-info
1882 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1883 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1884 mv -f dir.info.new dir.info ; \
1885 else true ; \
1888 dist:
1889 @echo "Building a full distribution of this tree isn't done"
1890 @echo "via 'make dist'. Check out the etc/ subdirectory"
1892 etags tags: TAGS
1894 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1895 # ability to use several tags files at once, so there is probably no need
1896 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1897 # (if we felt like it) have this Makefile write a piece of elisp which
1898 # the user could load to tell emacs19 where all the TAGS files we just
1899 # built are.
1900 TAGS: do-TAGS
1902 # --------------------------------------
1903 # Modules which run on the build machine
1904 # --------------------------------------
1906 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1907 maybe-configure-build-libiberty:
1908 configure-build-libiberty:
1909 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1910 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1911 r=`${PWD_COMMAND}`; export r; \
1912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1913 AR="$(AR_FOR_BUILD)"; export AR; \
1914 AS="$(AS_FOR_BUILD)"; export AS; \
1915 CC="$(CC_FOR_BUILD)"; export CC; \
1916 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1917 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1918 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1919 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1920 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1921 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1922 LD="$(LD_FOR_BUILD)"; export LD; \
1923 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1924 NM="$(NM_FOR_BUILD)"; export NM; \
1925 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1926 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1927 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1928 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1929 case $(srcdir) in \
1930 /* | [A-Za-z]:[\\/]*) \
1931 topdir=$(srcdir) ;; \
1932 *) \
1933 case "$(BUILD_SUBDIR)" in \
1934 .) topdir="../$(srcdir)" ;; \
1935 *) topdir="../../$(srcdir)" ;; \
1936 esac ;; \
1937 esac; \
1938 if [ "$(srcdir)" = "." ] ; then \
1939 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1940 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1941 if [ -f Makefile ]; then \
1942 if $(MAKE) distclean; then \
1943 true; \
1944 else \
1945 exit 1; \
1946 fi; \
1947 else \
1948 true; \
1949 fi; \
1950 else \
1951 exit 1; \
1952 fi; \
1953 else \
1954 true; \
1955 fi; \
1956 srcdiroption="--srcdir=."; \
1957 libsrcdir="."; \
1958 else \
1959 srcdiroption="--srcdir=$${topdir}/libiberty"; \
1960 libsrcdir="$$s/libiberty"; \
1961 fi; \
1962 rm -f no-such-file || : ; \
1963 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1964 $(BUILD_CONFIGARGS) $${srcdiroption} \
1965 --with-build-subdir="$(BUILD_SUBDIR)" \
1966 || exit 1
1968 .PHONY: all-build-libiberty maybe-all-build-libiberty
1969 maybe-all-build-libiberty:
1970 all-build-libiberty: configure-build-libiberty
1971 @r=`${PWD_COMMAND}`; export r; \
1972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1973 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
1976 # --------------------------------------
1977 # Modules which run on the host machine
1978 # --------------------------------------
1980 .PHONY: configure-ash maybe-configure-ash
1981 maybe-configure-ash:
1982 configure-ash:
1983 @test ! -f ash/Makefile || exit 0; \
1984 [ -d ash ] || mkdir ash; \
1985 r=`${PWD_COMMAND}`; export r; \
1986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1987 CC="$(CC)"; export CC; \
1988 CFLAGS="$(CFLAGS)"; export CFLAGS; \
1989 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1990 CXX="$(CXX)"; export CXX; \
1991 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
1992 AR="$(AR)"; export AR; \
1993 AS="$(AS)"; export AS; \
1994 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
1995 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
1996 LD="$(LD)"; export LD; \
1997 NM="$(NM)"; export NM; \
1998 RANLIB="$(RANLIB)"; export RANLIB; \
1999 WINDRES="$(WINDRES)"; export WINDRES; \
2000 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2001 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2002 echo Configuring in ash; \
2003 cd ash || exit 1; \
2004 case $(srcdir) in \
2005 \.) \
2006 srcdiroption="--srcdir=."; \
2007 libsrcdir=".";; \
2008 /* | [A-Za-z]:[\\/]*) \
2009 srcdiroption="--srcdir=$(srcdir)/ash"; \
2010 libsrcdir="$$s/ash";; \
2011 *) \
2012 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2013 libsrcdir="$$s/ash";; \
2014 esac; \
2015 $(SHELL) $${libsrcdir}/configure \
2016 $(HOST_CONFIGARGS) $${srcdiroption} \
2017 || exit 1
2019 .PHONY: all-ash maybe-all-ash
2020 maybe-all-ash:
2021 all-ash: configure-ash
2022 @r=`${PWD_COMMAND}`; export r; \
2023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2024 $(SET_LIB_PATH) \
2025 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2027 .PHONY: check-ash maybe-check-ash
2028 maybe-check-ash:
2030 check-ash:
2031 @r=`${PWD_COMMAND}`; export r; \
2032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2033 $(SET_LIB_PATH) \
2034 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2037 .PHONY: install-ash maybe-install-ash
2038 maybe-install-ash:
2040 install-ash: installdirs
2041 @r=`${PWD_COMMAND}`; export r; \
2042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2043 $(SET_LIB_PATH) \
2044 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2047 # Other targets (info, dvi, etc.)
2049 .PHONY: maybe-info-ash info-ash
2050 maybe-info-ash:
2052 info-ash: \
2053 configure-ash
2054 @[ -f ./ash/Makefile ] || exit 0; \
2055 r=`${PWD_COMMAND}`; export r; \
2056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2057 $(SET_LIB_PATH) \
2058 for flag in $(EXTRA_HOST_FLAGS); do \
2059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2060 done; \
2061 echo "Doing info in ash" ; \
2062 (cd ash && \
2063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2065 "RANLIB=$${RANLIB}" \
2066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2067 info) \
2068 || exit 1
2071 .PHONY: maybe-dvi-ash dvi-ash
2072 maybe-dvi-ash:
2074 dvi-ash: \
2075 configure-ash
2076 @[ -f ./ash/Makefile ] || exit 0; \
2077 r=`${PWD_COMMAND}`; export r; \
2078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2079 $(SET_LIB_PATH) \
2080 for flag in $(EXTRA_HOST_FLAGS); do \
2081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2082 done; \
2083 echo "Doing dvi in ash" ; \
2084 (cd ash && \
2085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2087 "RANLIB=$${RANLIB}" \
2088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2089 dvi) \
2090 || exit 1
2093 .PHONY: maybe-TAGS-ash TAGS-ash
2094 maybe-TAGS-ash:
2096 TAGS-ash: \
2097 configure-ash
2098 @[ -f ./ash/Makefile ] || exit 0; \
2099 r=`${PWD_COMMAND}`; export r; \
2100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2101 $(SET_LIB_PATH) \
2102 for flag in $(EXTRA_HOST_FLAGS); do \
2103 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2104 done; \
2105 echo "Doing TAGS in ash" ; \
2106 (cd ash && \
2107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2109 "RANLIB=$${RANLIB}" \
2110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2111 TAGS) \
2112 || exit 1
2115 .PHONY: maybe-install-info-ash install-info-ash
2116 maybe-install-info-ash:
2118 install-info-ash: \
2119 configure-ash \
2120 info-ash
2121 @[ -f ./ash/Makefile ] || exit 0; \
2122 r=`${PWD_COMMAND}`; export r; \
2123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2124 $(SET_LIB_PATH) \
2125 for flag in $(EXTRA_HOST_FLAGS); do \
2126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2127 done; \
2128 echo "Doing install-info in ash" ; \
2129 (cd ash && \
2130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2132 "RANLIB=$${RANLIB}" \
2133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2134 install-info) \
2135 || exit 1
2138 .PHONY: maybe-installcheck-ash installcheck-ash
2139 maybe-installcheck-ash:
2141 installcheck-ash: \
2142 configure-ash
2143 @[ -f ./ash/Makefile ] || exit 0; \
2144 r=`${PWD_COMMAND}`; export r; \
2145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2146 $(SET_LIB_PATH) \
2147 for flag in $(EXTRA_HOST_FLAGS); do \
2148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2149 done; \
2150 echo "Doing installcheck in ash" ; \
2151 (cd ash && \
2152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2154 "RANLIB=$${RANLIB}" \
2155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2156 installcheck) \
2157 || exit 1
2160 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2161 maybe-mostlyclean-ash:
2163 mostlyclean-ash:
2164 @[ -f ./ash/Makefile ] || exit 0; \
2165 r=`${PWD_COMMAND}`; export r; \
2166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2167 $(SET_LIB_PATH) \
2168 for flag in $(EXTRA_HOST_FLAGS); do \
2169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2170 done; \
2171 echo "Doing mostlyclean in ash" ; \
2172 (cd ash && \
2173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2175 "RANLIB=$${RANLIB}" \
2176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2177 mostlyclean) \
2178 || exit 1
2181 .PHONY: maybe-clean-ash clean-ash
2182 maybe-clean-ash:
2184 clean-ash:
2185 @[ -f ./ash/Makefile ] || exit 0; \
2186 r=`${PWD_COMMAND}`; export r; \
2187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2188 $(SET_LIB_PATH) \
2189 for flag in $(EXTRA_HOST_FLAGS); do \
2190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2191 done; \
2192 echo "Doing clean in ash" ; \
2193 (cd ash && \
2194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2196 "RANLIB=$${RANLIB}" \
2197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2198 clean) \
2199 || exit 1
2202 .PHONY: maybe-distclean-ash distclean-ash
2203 maybe-distclean-ash:
2205 distclean-ash:
2206 @[ -f ./ash/Makefile ] || exit 0; \
2207 r=`${PWD_COMMAND}`; export r; \
2208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2209 $(SET_LIB_PATH) \
2210 for flag in $(EXTRA_HOST_FLAGS); do \
2211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2212 done; \
2213 echo "Doing distclean in ash" ; \
2214 (cd ash && \
2215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2217 "RANLIB=$${RANLIB}" \
2218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2219 distclean) \
2220 || exit 1
2223 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2224 maybe-maintainer-clean-ash:
2226 maintainer-clean-ash:
2227 @[ -f ./ash/Makefile ] || exit 0; \
2228 r=`${PWD_COMMAND}`; export r; \
2229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2230 $(SET_LIB_PATH) \
2231 for flag in $(EXTRA_HOST_FLAGS); do \
2232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2233 done; \
2234 echo "Doing maintainer-clean in ash" ; \
2235 (cd ash && \
2236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2238 "RANLIB=$${RANLIB}" \
2239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2240 maintainer-clean) \
2241 || exit 1
2245 .PHONY: configure-autoconf maybe-configure-autoconf
2246 maybe-configure-autoconf:
2247 configure-autoconf:
2248 @test ! -f autoconf/Makefile || exit 0; \
2249 [ -d autoconf ] || mkdir autoconf; \
2250 r=`${PWD_COMMAND}`; export r; \
2251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2252 CC="$(CC)"; export CC; \
2253 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2254 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2255 CXX="$(CXX)"; export CXX; \
2256 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2257 AR="$(AR)"; export AR; \
2258 AS="$(AS)"; export AS; \
2259 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2260 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2261 LD="$(LD)"; export LD; \
2262 NM="$(NM)"; export NM; \
2263 RANLIB="$(RANLIB)"; export RANLIB; \
2264 WINDRES="$(WINDRES)"; export WINDRES; \
2265 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2266 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2267 echo Configuring in autoconf; \
2268 cd autoconf || exit 1; \
2269 case $(srcdir) in \
2270 \.) \
2271 srcdiroption="--srcdir=."; \
2272 libsrcdir=".";; \
2273 /* | [A-Za-z]:[\\/]*) \
2274 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2275 libsrcdir="$$s/autoconf";; \
2276 *) \
2277 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2278 libsrcdir="$$s/autoconf";; \
2279 esac; \
2280 $(SHELL) $${libsrcdir}/configure \
2281 $(HOST_CONFIGARGS) $${srcdiroption} \
2282 || exit 1
2284 .PHONY: all-autoconf maybe-all-autoconf
2285 maybe-all-autoconf:
2286 all-autoconf: configure-autoconf
2287 @r=`${PWD_COMMAND}`; export r; \
2288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2289 $(SET_LIB_PATH) \
2290 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2292 .PHONY: check-autoconf maybe-check-autoconf
2293 maybe-check-autoconf:
2295 check-autoconf:
2296 @r=`${PWD_COMMAND}`; export r; \
2297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2298 $(SET_LIB_PATH) \
2299 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2302 .PHONY: install-autoconf maybe-install-autoconf
2303 maybe-install-autoconf:
2305 install-autoconf: installdirs
2306 @r=`${PWD_COMMAND}`; export r; \
2307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2308 $(SET_LIB_PATH) \
2309 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2312 # Other targets (info, dvi, etc.)
2314 .PHONY: maybe-info-autoconf info-autoconf
2315 maybe-info-autoconf:
2317 info-autoconf: \
2318 configure-autoconf
2319 @[ -f ./autoconf/Makefile ] || exit 0; \
2320 r=`${PWD_COMMAND}`; export r; \
2321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2322 $(SET_LIB_PATH) \
2323 for flag in $(EXTRA_HOST_FLAGS); do \
2324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2325 done; \
2326 echo "Doing info in autoconf" ; \
2327 (cd autoconf && \
2328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2330 "RANLIB=$${RANLIB}" \
2331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2332 info) \
2333 || exit 1
2336 .PHONY: maybe-dvi-autoconf dvi-autoconf
2337 maybe-dvi-autoconf:
2339 dvi-autoconf: \
2340 configure-autoconf
2341 @[ -f ./autoconf/Makefile ] || exit 0; \
2342 r=`${PWD_COMMAND}`; export r; \
2343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2344 $(SET_LIB_PATH) \
2345 for flag in $(EXTRA_HOST_FLAGS); do \
2346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2347 done; \
2348 echo "Doing dvi in autoconf" ; \
2349 (cd autoconf && \
2350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2352 "RANLIB=$${RANLIB}" \
2353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2354 dvi) \
2355 || exit 1
2358 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2359 maybe-TAGS-autoconf:
2361 TAGS-autoconf: \
2362 configure-autoconf
2363 @[ -f ./autoconf/Makefile ] || exit 0; \
2364 r=`${PWD_COMMAND}`; export r; \
2365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2366 $(SET_LIB_PATH) \
2367 for flag in $(EXTRA_HOST_FLAGS); do \
2368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2369 done; \
2370 echo "Doing TAGS in autoconf" ; \
2371 (cd autoconf && \
2372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2374 "RANLIB=$${RANLIB}" \
2375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2376 TAGS) \
2377 || exit 1
2380 .PHONY: maybe-install-info-autoconf install-info-autoconf
2381 maybe-install-info-autoconf:
2383 install-info-autoconf: \
2384 configure-autoconf \
2385 info-autoconf
2386 @[ -f ./autoconf/Makefile ] || exit 0; \
2387 r=`${PWD_COMMAND}`; export r; \
2388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2389 $(SET_LIB_PATH) \
2390 for flag in $(EXTRA_HOST_FLAGS); do \
2391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2392 done; \
2393 echo "Doing install-info in autoconf" ; \
2394 (cd autoconf && \
2395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2397 "RANLIB=$${RANLIB}" \
2398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2399 install-info) \
2400 || exit 1
2403 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2404 maybe-installcheck-autoconf:
2406 installcheck-autoconf: \
2407 configure-autoconf
2408 @[ -f ./autoconf/Makefile ] || exit 0; \
2409 r=`${PWD_COMMAND}`; export r; \
2410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2411 $(SET_LIB_PATH) \
2412 for flag in $(EXTRA_HOST_FLAGS); do \
2413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2414 done; \
2415 echo "Doing installcheck in autoconf" ; \
2416 (cd autoconf && \
2417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2419 "RANLIB=$${RANLIB}" \
2420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2421 installcheck) \
2422 || exit 1
2425 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
2426 maybe-mostlyclean-autoconf:
2428 mostlyclean-autoconf:
2429 @[ -f ./autoconf/Makefile ] || exit 0; \
2430 r=`${PWD_COMMAND}`; export r; \
2431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2432 $(SET_LIB_PATH) \
2433 for flag in $(EXTRA_HOST_FLAGS); do \
2434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2435 done; \
2436 echo "Doing mostlyclean in autoconf" ; \
2437 (cd autoconf && \
2438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2440 "RANLIB=$${RANLIB}" \
2441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2442 mostlyclean) \
2443 || exit 1
2446 .PHONY: maybe-clean-autoconf clean-autoconf
2447 maybe-clean-autoconf:
2449 clean-autoconf:
2450 @[ -f ./autoconf/Makefile ] || exit 0; \
2451 r=`${PWD_COMMAND}`; export r; \
2452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2453 $(SET_LIB_PATH) \
2454 for flag in $(EXTRA_HOST_FLAGS); do \
2455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2456 done; \
2457 echo "Doing clean in autoconf" ; \
2458 (cd autoconf && \
2459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2461 "RANLIB=$${RANLIB}" \
2462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2463 clean) \
2464 || exit 1
2467 .PHONY: maybe-distclean-autoconf distclean-autoconf
2468 maybe-distclean-autoconf:
2470 distclean-autoconf:
2471 @[ -f ./autoconf/Makefile ] || exit 0; \
2472 r=`${PWD_COMMAND}`; export r; \
2473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2474 $(SET_LIB_PATH) \
2475 for flag in $(EXTRA_HOST_FLAGS); do \
2476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2477 done; \
2478 echo "Doing distclean in autoconf" ; \
2479 (cd autoconf && \
2480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2482 "RANLIB=$${RANLIB}" \
2483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2484 distclean) \
2485 || exit 1
2488 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
2489 maybe-maintainer-clean-autoconf:
2491 maintainer-clean-autoconf:
2492 @[ -f ./autoconf/Makefile ] || exit 0; \
2493 r=`${PWD_COMMAND}`; export r; \
2494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2495 $(SET_LIB_PATH) \
2496 for flag in $(EXTRA_HOST_FLAGS); do \
2497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2498 done; \
2499 echo "Doing maintainer-clean in autoconf" ; \
2500 (cd autoconf && \
2501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2503 "RANLIB=$${RANLIB}" \
2504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2505 maintainer-clean) \
2506 || exit 1
2510 .PHONY: configure-automake maybe-configure-automake
2511 maybe-configure-automake:
2512 configure-automake:
2513 @test ! -f automake/Makefile || exit 0; \
2514 [ -d automake ] || mkdir automake; \
2515 r=`${PWD_COMMAND}`; export r; \
2516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2517 CC="$(CC)"; export CC; \
2518 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2519 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2520 CXX="$(CXX)"; export CXX; \
2521 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2522 AR="$(AR)"; export AR; \
2523 AS="$(AS)"; export AS; \
2524 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2525 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2526 LD="$(LD)"; export LD; \
2527 NM="$(NM)"; export NM; \
2528 RANLIB="$(RANLIB)"; export RANLIB; \
2529 WINDRES="$(WINDRES)"; export WINDRES; \
2530 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2531 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2532 echo Configuring in automake; \
2533 cd automake || exit 1; \
2534 case $(srcdir) in \
2535 \.) \
2536 srcdiroption="--srcdir=."; \
2537 libsrcdir=".";; \
2538 /* | [A-Za-z]:[\\/]*) \
2539 srcdiroption="--srcdir=$(srcdir)/automake"; \
2540 libsrcdir="$$s/automake";; \
2541 *) \
2542 srcdiroption="--srcdir=../$(srcdir)/automake"; \
2543 libsrcdir="$$s/automake";; \
2544 esac; \
2545 $(SHELL) $${libsrcdir}/configure \
2546 $(HOST_CONFIGARGS) $${srcdiroption} \
2547 || exit 1
2549 .PHONY: all-automake maybe-all-automake
2550 maybe-all-automake:
2551 all-automake: configure-automake
2552 @r=`${PWD_COMMAND}`; export r; \
2553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2554 $(SET_LIB_PATH) \
2555 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
2557 .PHONY: check-automake maybe-check-automake
2558 maybe-check-automake:
2560 check-automake:
2561 @r=`${PWD_COMMAND}`; export r; \
2562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2563 $(SET_LIB_PATH) \
2564 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
2567 .PHONY: install-automake maybe-install-automake
2568 maybe-install-automake:
2570 install-automake: installdirs
2571 @r=`${PWD_COMMAND}`; export r; \
2572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2573 $(SET_LIB_PATH) \
2574 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2577 # Other targets (info, dvi, etc.)
2579 .PHONY: maybe-info-automake info-automake
2580 maybe-info-automake:
2582 info-automake: \
2583 configure-automake
2584 @[ -f ./automake/Makefile ] || exit 0; \
2585 r=`${PWD_COMMAND}`; export r; \
2586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2587 $(SET_LIB_PATH) \
2588 for flag in $(EXTRA_HOST_FLAGS); do \
2589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2590 done; \
2591 echo "Doing info in automake" ; \
2592 (cd automake && \
2593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2595 "RANLIB=$${RANLIB}" \
2596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2597 info) \
2598 || exit 1
2601 .PHONY: maybe-dvi-automake dvi-automake
2602 maybe-dvi-automake:
2604 dvi-automake: \
2605 configure-automake
2606 @[ -f ./automake/Makefile ] || exit 0; \
2607 r=`${PWD_COMMAND}`; export r; \
2608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2609 $(SET_LIB_PATH) \
2610 for flag in $(EXTRA_HOST_FLAGS); do \
2611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2612 done; \
2613 echo "Doing dvi in automake" ; \
2614 (cd automake && \
2615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2617 "RANLIB=$${RANLIB}" \
2618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2619 dvi) \
2620 || exit 1
2623 .PHONY: maybe-TAGS-automake TAGS-automake
2624 maybe-TAGS-automake:
2626 TAGS-automake: \
2627 configure-automake
2628 @[ -f ./automake/Makefile ] || exit 0; \
2629 r=`${PWD_COMMAND}`; export r; \
2630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2631 $(SET_LIB_PATH) \
2632 for flag in $(EXTRA_HOST_FLAGS); do \
2633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2634 done; \
2635 echo "Doing TAGS in automake" ; \
2636 (cd automake && \
2637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2639 "RANLIB=$${RANLIB}" \
2640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2641 TAGS) \
2642 || exit 1
2645 .PHONY: maybe-install-info-automake install-info-automake
2646 maybe-install-info-automake:
2648 install-info-automake: \
2649 configure-automake \
2650 info-automake
2651 @[ -f ./automake/Makefile ] || exit 0; \
2652 r=`${PWD_COMMAND}`; export r; \
2653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2654 $(SET_LIB_PATH) \
2655 for flag in $(EXTRA_HOST_FLAGS); do \
2656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2657 done; \
2658 echo "Doing install-info in automake" ; \
2659 (cd automake && \
2660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2662 "RANLIB=$${RANLIB}" \
2663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2664 install-info) \
2665 || exit 1
2668 .PHONY: maybe-installcheck-automake installcheck-automake
2669 maybe-installcheck-automake:
2671 installcheck-automake: \
2672 configure-automake
2673 @[ -f ./automake/Makefile ] || exit 0; \
2674 r=`${PWD_COMMAND}`; export r; \
2675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2676 $(SET_LIB_PATH) \
2677 for flag in $(EXTRA_HOST_FLAGS); do \
2678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2679 done; \
2680 echo "Doing installcheck in automake" ; \
2681 (cd automake && \
2682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2684 "RANLIB=$${RANLIB}" \
2685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2686 installcheck) \
2687 || exit 1
2690 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
2691 maybe-mostlyclean-automake:
2693 mostlyclean-automake:
2694 @[ -f ./automake/Makefile ] || exit 0; \
2695 r=`${PWD_COMMAND}`; export r; \
2696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2697 $(SET_LIB_PATH) \
2698 for flag in $(EXTRA_HOST_FLAGS); do \
2699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2700 done; \
2701 echo "Doing mostlyclean in automake" ; \
2702 (cd automake && \
2703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2705 "RANLIB=$${RANLIB}" \
2706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2707 mostlyclean) \
2708 || exit 1
2711 .PHONY: maybe-clean-automake clean-automake
2712 maybe-clean-automake:
2714 clean-automake:
2715 @[ -f ./automake/Makefile ] || exit 0; \
2716 r=`${PWD_COMMAND}`; export r; \
2717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2718 $(SET_LIB_PATH) \
2719 for flag in $(EXTRA_HOST_FLAGS); do \
2720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2721 done; \
2722 echo "Doing clean in automake" ; \
2723 (cd automake && \
2724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2726 "RANLIB=$${RANLIB}" \
2727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2728 clean) \
2729 || exit 1
2732 .PHONY: maybe-distclean-automake distclean-automake
2733 maybe-distclean-automake:
2735 distclean-automake:
2736 @[ -f ./automake/Makefile ] || exit 0; \
2737 r=`${PWD_COMMAND}`; export r; \
2738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2739 $(SET_LIB_PATH) \
2740 for flag in $(EXTRA_HOST_FLAGS); do \
2741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2742 done; \
2743 echo "Doing distclean in automake" ; \
2744 (cd automake && \
2745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2747 "RANLIB=$${RANLIB}" \
2748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2749 distclean) \
2750 || exit 1
2753 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
2754 maybe-maintainer-clean-automake:
2756 maintainer-clean-automake:
2757 @[ -f ./automake/Makefile ] || exit 0; \
2758 r=`${PWD_COMMAND}`; export r; \
2759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2760 $(SET_LIB_PATH) \
2761 for flag in $(EXTRA_HOST_FLAGS); do \
2762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2763 done; \
2764 echo "Doing maintainer-clean in automake" ; \
2765 (cd automake && \
2766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2768 "RANLIB=$${RANLIB}" \
2769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2770 maintainer-clean) \
2771 || exit 1
2775 .PHONY: configure-bash maybe-configure-bash
2776 maybe-configure-bash:
2777 configure-bash:
2778 @test ! -f bash/Makefile || exit 0; \
2779 [ -d bash ] || mkdir bash; \
2780 r=`${PWD_COMMAND}`; export r; \
2781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2782 CC="$(CC)"; export CC; \
2783 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2784 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2785 CXX="$(CXX)"; export CXX; \
2786 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2787 AR="$(AR)"; export AR; \
2788 AS="$(AS)"; export AS; \
2789 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2790 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2791 LD="$(LD)"; export LD; \
2792 NM="$(NM)"; export NM; \
2793 RANLIB="$(RANLIB)"; export RANLIB; \
2794 WINDRES="$(WINDRES)"; export WINDRES; \
2795 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2796 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2797 echo Configuring in bash; \
2798 cd bash || exit 1; \
2799 case $(srcdir) in \
2800 \.) \
2801 srcdiroption="--srcdir=."; \
2802 libsrcdir=".";; \
2803 /* | [A-Za-z]:[\\/]*) \
2804 srcdiroption="--srcdir=$(srcdir)/bash"; \
2805 libsrcdir="$$s/bash";; \
2806 *) \
2807 srcdiroption="--srcdir=../$(srcdir)/bash"; \
2808 libsrcdir="$$s/bash";; \
2809 esac; \
2810 $(SHELL) $${libsrcdir}/configure \
2811 $(HOST_CONFIGARGS) $${srcdiroption} \
2812 || exit 1
2814 .PHONY: all-bash maybe-all-bash
2815 maybe-all-bash:
2816 all-bash: configure-bash
2817 @r=`${PWD_COMMAND}`; export r; \
2818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2819 $(SET_LIB_PATH) \
2820 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
2822 .PHONY: check-bash maybe-check-bash
2823 maybe-check-bash:
2825 check-bash:
2826 @r=`${PWD_COMMAND}`; export r; \
2827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2828 $(SET_LIB_PATH) \
2829 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
2832 .PHONY: install-bash maybe-install-bash
2833 maybe-install-bash:
2835 install-bash: installdirs
2836 @r=`${PWD_COMMAND}`; export r; \
2837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2838 $(SET_LIB_PATH) \
2839 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
2842 # Other targets (info, dvi, etc.)
2844 .PHONY: maybe-info-bash info-bash
2845 maybe-info-bash:
2847 info-bash: \
2848 configure-bash
2849 @[ -f ./bash/Makefile ] || exit 0; \
2850 r=`${PWD_COMMAND}`; export r; \
2851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2852 $(SET_LIB_PATH) \
2853 for flag in $(EXTRA_HOST_FLAGS); do \
2854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2855 done; \
2856 echo "Doing info in bash" ; \
2857 (cd bash && \
2858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2860 "RANLIB=$${RANLIB}" \
2861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2862 info) \
2863 || exit 1
2866 .PHONY: maybe-dvi-bash dvi-bash
2867 maybe-dvi-bash:
2869 dvi-bash: \
2870 configure-bash
2871 @[ -f ./bash/Makefile ] || exit 0; \
2872 r=`${PWD_COMMAND}`; export r; \
2873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2874 $(SET_LIB_PATH) \
2875 for flag in $(EXTRA_HOST_FLAGS); do \
2876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2877 done; \
2878 echo "Doing dvi in bash" ; \
2879 (cd bash && \
2880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2882 "RANLIB=$${RANLIB}" \
2883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2884 dvi) \
2885 || exit 1
2888 .PHONY: maybe-TAGS-bash TAGS-bash
2889 maybe-TAGS-bash:
2891 TAGS-bash: \
2892 configure-bash
2893 @[ -f ./bash/Makefile ] || exit 0; \
2894 r=`${PWD_COMMAND}`; export r; \
2895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2896 $(SET_LIB_PATH) \
2897 for flag in $(EXTRA_HOST_FLAGS); do \
2898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2899 done; \
2900 echo "Doing TAGS in bash" ; \
2901 (cd bash && \
2902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2904 "RANLIB=$${RANLIB}" \
2905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2906 TAGS) \
2907 || exit 1
2910 .PHONY: maybe-install-info-bash install-info-bash
2911 maybe-install-info-bash:
2913 install-info-bash: \
2914 configure-bash \
2915 info-bash
2916 @[ -f ./bash/Makefile ] || exit 0; \
2917 r=`${PWD_COMMAND}`; export r; \
2918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2919 $(SET_LIB_PATH) \
2920 for flag in $(EXTRA_HOST_FLAGS); do \
2921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2922 done; \
2923 echo "Doing install-info in bash" ; \
2924 (cd bash && \
2925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2927 "RANLIB=$${RANLIB}" \
2928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2929 install-info) \
2930 || exit 1
2933 .PHONY: maybe-installcheck-bash installcheck-bash
2934 maybe-installcheck-bash:
2936 installcheck-bash: \
2937 configure-bash
2938 @[ -f ./bash/Makefile ] || exit 0; \
2939 r=`${PWD_COMMAND}`; export r; \
2940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2941 $(SET_LIB_PATH) \
2942 for flag in $(EXTRA_HOST_FLAGS); do \
2943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2944 done; \
2945 echo "Doing installcheck in bash" ; \
2946 (cd bash && \
2947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2949 "RANLIB=$${RANLIB}" \
2950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2951 installcheck) \
2952 || exit 1
2955 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
2956 maybe-mostlyclean-bash:
2958 mostlyclean-bash:
2959 @[ -f ./bash/Makefile ] || exit 0; \
2960 r=`${PWD_COMMAND}`; export r; \
2961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2962 $(SET_LIB_PATH) \
2963 for flag in $(EXTRA_HOST_FLAGS); do \
2964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2965 done; \
2966 echo "Doing mostlyclean in bash" ; \
2967 (cd bash && \
2968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2970 "RANLIB=$${RANLIB}" \
2971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2972 mostlyclean) \
2973 || exit 1
2976 .PHONY: maybe-clean-bash clean-bash
2977 maybe-clean-bash:
2979 clean-bash:
2980 @[ -f ./bash/Makefile ] || exit 0; \
2981 r=`${PWD_COMMAND}`; export r; \
2982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2983 $(SET_LIB_PATH) \
2984 for flag in $(EXTRA_HOST_FLAGS); do \
2985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2986 done; \
2987 echo "Doing clean in bash" ; \
2988 (cd bash && \
2989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2991 "RANLIB=$${RANLIB}" \
2992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2993 clean) \
2994 || exit 1
2997 .PHONY: maybe-distclean-bash distclean-bash
2998 maybe-distclean-bash:
3000 distclean-bash:
3001 @[ -f ./bash/Makefile ] || exit 0; \
3002 r=`${PWD_COMMAND}`; export r; \
3003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3004 $(SET_LIB_PATH) \
3005 for flag in $(EXTRA_HOST_FLAGS); do \
3006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3007 done; \
3008 echo "Doing distclean in bash" ; \
3009 (cd bash && \
3010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3012 "RANLIB=$${RANLIB}" \
3013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3014 distclean) \
3015 || exit 1
3018 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3019 maybe-maintainer-clean-bash:
3021 maintainer-clean-bash:
3022 @[ -f ./bash/Makefile ] || exit 0; \
3023 r=`${PWD_COMMAND}`; export r; \
3024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3025 $(SET_LIB_PATH) \
3026 for flag in $(EXTRA_HOST_FLAGS); do \
3027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3028 done; \
3029 echo "Doing maintainer-clean in bash" ; \
3030 (cd bash && \
3031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3033 "RANLIB=$${RANLIB}" \
3034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3035 maintainer-clean) \
3036 || exit 1
3040 .PHONY: configure-bfd maybe-configure-bfd
3041 maybe-configure-bfd:
3042 configure-bfd:
3043 @test ! -f bfd/Makefile || exit 0; \
3044 [ -d bfd ] || mkdir bfd; \
3045 r=`${PWD_COMMAND}`; export r; \
3046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3047 CC="$(CC)"; export CC; \
3048 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3049 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3050 CXX="$(CXX)"; export CXX; \
3051 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3052 AR="$(AR)"; export AR; \
3053 AS="$(AS)"; export AS; \
3054 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3055 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3056 LD="$(LD)"; export LD; \
3057 NM="$(NM)"; export NM; \
3058 RANLIB="$(RANLIB)"; export RANLIB; \
3059 WINDRES="$(WINDRES)"; export WINDRES; \
3060 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3061 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3062 echo Configuring in bfd; \
3063 cd bfd || exit 1; \
3064 case $(srcdir) in \
3065 \.) \
3066 srcdiroption="--srcdir=."; \
3067 libsrcdir=".";; \
3068 /* | [A-Za-z]:[\\/]*) \
3069 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3070 libsrcdir="$$s/bfd";; \
3071 *) \
3072 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3073 libsrcdir="$$s/bfd";; \
3074 esac; \
3075 $(SHELL) $${libsrcdir}/configure \
3076 $(HOST_CONFIGARGS) $${srcdiroption} \
3077 || exit 1
3079 .PHONY: all-bfd maybe-all-bfd
3080 maybe-all-bfd:
3081 all-bfd: configure-bfd
3082 @r=`${PWD_COMMAND}`; export r; \
3083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3084 $(SET_LIB_PATH) \
3085 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
3087 .PHONY: check-bfd maybe-check-bfd
3088 maybe-check-bfd:
3090 check-bfd:
3091 @r=`${PWD_COMMAND}`; export r; \
3092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3093 $(SET_LIB_PATH) \
3094 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
3097 .PHONY: install-bfd maybe-install-bfd
3098 maybe-install-bfd:
3100 install-bfd: installdirs
3101 @r=`${PWD_COMMAND}`; export r; \
3102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3103 $(SET_LIB_PATH) \
3104 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
3107 # Other targets (info, dvi, etc.)
3109 .PHONY: maybe-info-bfd info-bfd
3110 maybe-info-bfd:
3112 info-bfd: \
3113 configure-bfd
3114 @[ -f ./bfd/Makefile ] || exit 0; \
3115 r=`${PWD_COMMAND}`; export r; \
3116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3117 $(SET_LIB_PATH) \
3118 for flag in $(EXTRA_HOST_FLAGS); do \
3119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3120 done; \
3121 echo "Doing info in bfd" ; \
3122 (cd bfd && \
3123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3125 "RANLIB=$${RANLIB}" \
3126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3127 info) \
3128 || exit 1
3131 .PHONY: maybe-dvi-bfd dvi-bfd
3132 maybe-dvi-bfd:
3134 dvi-bfd: \
3135 configure-bfd
3136 @[ -f ./bfd/Makefile ] || exit 0; \
3137 r=`${PWD_COMMAND}`; export r; \
3138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3139 $(SET_LIB_PATH) \
3140 for flag in $(EXTRA_HOST_FLAGS); do \
3141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3142 done; \
3143 echo "Doing dvi in bfd" ; \
3144 (cd bfd && \
3145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3147 "RANLIB=$${RANLIB}" \
3148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3149 dvi) \
3150 || exit 1
3153 .PHONY: maybe-TAGS-bfd TAGS-bfd
3154 maybe-TAGS-bfd:
3156 TAGS-bfd: \
3157 configure-bfd
3158 @[ -f ./bfd/Makefile ] || exit 0; \
3159 r=`${PWD_COMMAND}`; export r; \
3160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3161 $(SET_LIB_PATH) \
3162 for flag in $(EXTRA_HOST_FLAGS); do \
3163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3164 done; \
3165 echo "Doing TAGS in bfd" ; \
3166 (cd bfd && \
3167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3169 "RANLIB=$${RANLIB}" \
3170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3171 TAGS) \
3172 || exit 1
3175 .PHONY: maybe-install-info-bfd install-info-bfd
3176 maybe-install-info-bfd:
3178 install-info-bfd: \
3179 configure-bfd \
3180 info-bfd
3181 @[ -f ./bfd/Makefile ] || exit 0; \
3182 r=`${PWD_COMMAND}`; export r; \
3183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3184 $(SET_LIB_PATH) \
3185 for flag in $(EXTRA_HOST_FLAGS); do \
3186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3187 done; \
3188 echo "Doing install-info in bfd" ; \
3189 (cd bfd && \
3190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3192 "RANLIB=$${RANLIB}" \
3193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3194 install-info) \
3195 || exit 1
3198 .PHONY: maybe-installcheck-bfd installcheck-bfd
3199 maybe-installcheck-bfd:
3201 installcheck-bfd: \
3202 configure-bfd
3203 @[ -f ./bfd/Makefile ] || exit 0; \
3204 r=`${PWD_COMMAND}`; export r; \
3205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3206 $(SET_LIB_PATH) \
3207 for flag in $(EXTRA_HOST_FLAGS); do \
3208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3209 done; \
3210 echo "Doing installcheck in bfd" ; \
3211 (cd bfd && \
3212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3214 "RANLIB=$${RANLIB}" \
3215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3216 installcheck) \
3217 || exit 1
3220 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3221 maybe-mostlyclean-bfd:
3223 mostlyclean-bfd:
3224 @[ -f ./bfd/Makefile ] || exit 0; \
3225 r=`${PWD_COMMAND}`; export r; \
3226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3227 $(SET_LIB_PATH) \
3228 for flag in $(EXTRA_HOST_FLAGS); do \
3229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3230 done; \
3231 echo "Doing mostlyclean in bfd" ; \
3232 (cd bfd && \
3233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3235 "RANLIB=$${RANLIB}" \
3236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3237 mostlyclean) \
3238 || exit 1
3241 .PHONY: maybe-clean-bfd clean-bfd
3242 maybe-clean-bfd:
3244 clean-bfd:
3245 @[ -f ./bfd/Makefile ] || exit 0; \
3246 r=`${PWD_COMMAND}`; export r; \
3247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3248 $(SET_LIB_PATH) \
3249 for flag in $(EXTRA_HOST_FLAGS); do \
3250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3251 done; \
3252 echo "Doing clean in bfd" ; \
3253 (cd bfd && \
3254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3256 "RANLIB=$${RANLIB}" \
3257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3258 clean) \
3259 || exit 1
3262 .PHONY: maybe-distclean-bfd distclean-bfd
3263 maybe-distclean-bfd:
3265 distclean-bfd:
3266 @[ -f ./bfd/Makefile ] || exit 0; \
3267 r=`${PWD_COMMAND}`; export r; \
3268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3269 $(SET_LIB_PATH) \
3270 for flag in $(EXTRA_HOST_FLAGS); do \
3271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3272 done; \
3273 echo "Doing distclean in bfd" ; \
3274 (cd bfd && \
3275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3277 "RANLIB=$${RANLIB}" \
3278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3279 distclean) \
3280 || exit 1
3283 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3284 maybe-maintainer-clean-bfd:
3286 maintainer-clean-bfd:
3287 @[ -f ./bfd/Makefile ] || exit 0; \
3288 r=`${PWD_COMMAND}`; export r; \
3289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3290 $(SET_LIB_PATH) \
3291 for flag in $(EXTRA_HOST_FLAGS); do \
3292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3293 done; \
3294 echo "Doing maintainer-clean in bfd" ; \
3295 (cd bfd && \
3296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3298 "RANLIB=$${RANLIB}" \
3299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3300 maintainer-clean) \
3301 || exit 1
3305 .PHONY: configure-opcodes maybe-configure-opcodes
3306 maybe-configure-opcodes:
3307 configure-opcodes:
3308 @test ! -f opcodes/Makefile || exit 0; \
3309 [ -d opcodes ] || mkdir opcodes; \
3310 r=`${PWD_COMMAND}`; export r; \
3311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3312 CC="$(CC)"; export CC; \
3313 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3314 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3315 CXX="$(CXX)"; export CXX; \
3316 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3317 AR="$(AR)"; export AR; \
3318 AS="$(AS)"; export AS; \
3319 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3320 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3321 LD="$(LD)"; export LD; \
3322 NM="$(NM)"; export NM; \
3323 RANLIB="$(RANLIB)"; export RANLIB; \
3324 WINDRES="$(WINDRES)"; export WINDRES; \
3325 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3326 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3327 echo Configuring in opcodes; \
3328 cd opcodes || exit 1; \
3329 case $(srcdir) in \
3330 \.) \
3331 srcdiroption="--srcdir=."; \
3332 libsrcdir=".";; \
3333 /* | [A-Za-z]:[\\/]*) \
3334 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
3335 libsrcdir="$$s/opcodes";; \
3336 *) \
3337 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
3338 libsrcdir="$$s/opcodes";; \
3339 esac; \
3340 $(SHELL) $${libsrcdir}/configure \
3341 $(HOST_CONFIGARGS) $${srcdiroption} \
3342 || exit 1
3344 .PHONY: all-opcodes maybe-all-opcodes
3345 maybe-all-opcodes:
3346 all-opcodes: configure-opcodes
3347 @r=`${PWD_COMMAND}`; export r; \
3348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3349 $(SET_LIB_PATH) \
3350 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
3352 .PHONY: check-opcodes maybe-check-opcodes
3353 maybe-check-opcodes:
3355 check-opcodes:
3356 @r=`${PWD_COMMAND}`; export r; \
3357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3358 $(SET_LIB_PATH) \
3359 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
3362 .PHONY: install-opcodes maybe-install-opcodes
3363 maybe-install-opcodes:
3365 install-opcodes: installdirs
3366 @r=`${PWD_COMMAND}`; export r; \
3367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3368 $(SET_LIB_PATH) \
3369 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
3372 # Other targets (info, dvi, etc.)
3374 .PHONY: maybe-info-opcodes info-opcodes
3375 maybe-info-opcodes:
3377 info-opcodes: \
3378 configure-opcodes
3379 @[ -f ./opcodes/Makefile ] || exit 0; \
3380 r=`${PWD_COMMAND}`; export r; \
3381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3382 $(SET_LIB_PATH) \
3383 for flag in $(EXTRA_HOST_FLAGS); do \
3384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3385 done; \
3386 echo "Doing info in opcodes" ; \
3387 (cd opcodes && \
3388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3390 "RANLIB=$${RANLIB}" \
3391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3392 info) \
3393 || exit 1
3396 .PHONY: maybe-dvi-opcodes dvi-opcodes
3397 maybe-dvi-opcodes:
3399 dvi-opcodes: \
3400 configure-opcodes
3401 @[ -f ./opcodes/Makefile ] || exit 0; \
3402 r=`${PWD_COMMAND}`; export r; \
3403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3404 $(SET_LIB_PATH) \
3405 for flag in $(EXTRA_HOST_FLAGS); do \
3406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3407 done; \
3408 echo "Doing dvi in opcodes" ; \
3409 (cd opcodes && \
3410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3412 "RANLIB=$${RANLIB}" \
3413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3414 dvi) \
3415 || exit 1
3418 .PHONY: maybe-TAGS-opcodes TAGS-opcodes
3419 maybe-TAGS-opcodes:
3421 TAGS-opcodes: \
3422 configure-opcodes
3423 @[ -f ./opcodes/Makefile ] || exit 0; \
3424 r=`${PWD_COMMAND}`; export r; \
3425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3426 $(SET_LIB_PATH) \
3427 for flag in $(EXTRA_HOST_FLAGS); do \
3428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3429 done; \
3430 echo "Doing TAGS in opcodes" ; \
3431 (cd opcodes && \
3432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3434 "RANLIB=$${RANLIB}" \
3435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3436 TAGS) \
3437 || exit 1
3440 .PHONY: maybe-install-info-opcodes install-info-opcodes
3441 maybe-install-info-opcodes:
3443 install-info-opcodes: \
3444 configure-opcodes \
3445 info-opcodes
3446 @[ -f ./opcodes/Makefile ] || exit 0; \
3447 r=`${PWD_COMMAND}`; export r; \
3448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3449 $(SET_LIB_PATH) \
3450 for flag in $(EXTRA_HOST_FLAGS); do \
3451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3452 done; \
3453 echo "Doing install-info in opcodes" ; \
3454 (cd opcodes && \
3455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3457 "RANLIB=$${RANLIB}" \
3458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3459 install-info) \
3460 || exit 1
3463 .PHONY: maybe-installcheck-opcodes installcheck-opcodes
3464 maybe-installcheck-opcodes:
3466 installcheck-opcodes: \
3467 configure-opcodes
3468 @[ -f ./opcodes/Makefile ] || exit 0; \
3469 r=`${PWD_COMMAND}`; export r; \
3470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3471 $(SET_LIB_PATH) \
3472 for flag in $(EXTRA_HOST_FLAGS); do \
3473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3474 done; \
3475 echo "Doing installcheck in opcodes" ; \
3476 (cd opcodes && \
3477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3479 "RANLIB=$${RANLIB}" \
3480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3481 installcheck) \
3482 || exit 1
3485 .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
3486 maybe-mostlyclean-opcodes:
3488 mostlyclean-opcodes:
3489 @[ -f ./opcodes/Makefile ] || exit 0; \
3490 r=`${PWD_COMMAND}`; export r; \
3491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3492 $(SET_LIB_PATH) \
3493 for flag in $(EXTRA_HOST_FLAGS); do \
3494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3495 done; \
3496 echo "Doing mostlyclean in opcodes" ; \
3497 (cd opcodes && \
3498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3500 "RANLIB=$${RANLIB}" \
3501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3502 mostlyclean) \
3503 || exit 1
3506 .PHONY: maybe-clean-opcodes clean-opcodes
3507 maybe-clean-opcodes:
3509 clean-opcodes:
3510 @[ -f ./opcodes/Makefile ] || exit 0; \
3511 r=`${PWD_COMMAND}`; export r; \
3512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3513 $(SET_LIB_PATH) \
3514 for flag in $(EXTRA_HOST_FLAGS); do \
3515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3516 done; \
3517 echo "Doing clean in opcodes" ; \
3518 (cd opcodes && \
3519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3521 "RANLIB=$${RANLIB}" \
3522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3523 clean) \
3524 || exit 1
3527 .PHONY: maybe-distclean-opcodes distclean-opcodes
3528 maybe-distclean-opcodes:
3530 distclean-opcodes:
3531 @[ -f ./opcodes/Makefile ] || exit 0; \
3532 r=`${PWD_COMMAND}`; export r; \
3533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3534 $(SET_LIB_PATH) \
3535 for flag in $(EXTRA_HOST_FLAGS); do \
3536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3537 done; \
3538 echo "Doing distclean in opcodes" ; \
3539 (cd opcodes && \
3540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3542 "RANLIB=$${RANLIB}" \
3543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3544 distclean) \
3545 || exit 1
3548 .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
3549 maybe-maintainer-clean-opcodes:
3551 maintainer-clean-opcodes:
3552 @[ -f ./opcodes/Makefile ] || exit 0; \
3553 r=`${PWD_COMMAND}`; export r; \
3554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3555 $(SET_LIB_PATH) \
3556 for flag in $(EXTRA_HOST_FLAGS); do \
3557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3558 done; \
3559 echo "Doing maintainer-clean in opcodes" ; \
3560 (cd opcodes && \
3561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3563 "RANLIB=$${RANLIB}" \
3564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3565 maintainer-clean) \
3566 || exit 1
3570 .PHONY: configure-binutils maybe-configure-binutils
3571 maybe-configure-binutils:
3572 configure-binutils:
3573 @test ! -f binutils/Makefile || exit 0; \
3574 [ -d binutils ] || mkdir binutils; \
3575 r=`${PWD_COMMAND}`; export r; \
3576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3577 CC="$(CC)"; export CC; \
3578 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3579 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3580 CXX="$(CXX)"; export CXX; \
3581 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3582 AR="$(AR)"; export AR; \
3583 AS="$(AS)"; export AS; \
3584 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3585 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3586 LD="$(LD)"; export LD; \
3587 NM="$(NM)"; export NM; \
3588 RANLIB="$(RANLIB)"; export RANLIB; \
3589 WINDRES="$(WINDRES)"; export WINDRES; \
3590 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3591 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3592 echo Configuring in binutils; \
3593 cd binutils || exit 1; \
3594 case $(srcdir) in \
3595 \.) \
3596 srcdiroption="--srcdir=."; \
3597 libsrcdir=".";; \
3598 /* | [A-Za-z]:[\\/]*) \
3599 srcdiroption="--srcdir=$(srcdir)/binutils"; \
3600 libsrcdir="$$s/binutils";; \
3601 *) \
3602 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
3603 libsrcdir="$$s/binutils";; \
3604 esac; \
3605 $(SHELL) $${libsrcdir}/configure \
3606 $(HOST_CONFIGARGS) $${srcdiroption} \
3607 || exit 1
3609 .PHONY: all-binutils maybe-all-binutils
3610 maybe-all-binutils:
3611 all-binutils: configure-binutils
3612 @r=`${PWD_COMMAND}`; export r; \
3613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3614 $(SET_LIB_PATH) \
3615 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
3617 .PHONY: check-binutils maybe-check-binutils
3618 maybe-check-binutils:
3620 check-binutils:
3621 @r=`${PWD_COMMAND}`; export r; \
3622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3623 $(SET_LIB_PATH) \
3624 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
3627 .PHONY: install-binutils maybe-install-binutils
3628 maybe-install-binutils:
3630 install-binutils: installdirs
3631 @r=`${PWD_COMMAND}`; export r; \
3632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3633 $(SET_LIB_PATH) \
3634 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
3637 # Other targets (info, dvi, etc.)
3639 .PHONY: maybe-info-binutils info-binutils
3640 maybe-info-binutils:
3642 info-binutils: \
3643 configure-binutils
3644 @[ -f ./binutils/Makefile ] || exit 0; \
3645 r=`${PWD_COMMAND}`; export r; \
3646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3647 $(SET_LIB_PATH) \
3648 for flag in $(EXTRA_HOST_FLAGS); do \
3649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3650 done; \
3651 echo "Doing info in binutils" ; \
3652 (cd binutils && \
3653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3655 "RANLIB=$${RANLIB}" \
3656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3657 info) \
3658 || exit 1
3661 .PHONY: maybe-dvi-binutils dvi-binutils
3662 maybe-dvi-binutils:
3664 dvi-binutils: \
3665 configure-binutils
3666 @[ -f ./binutils/Makefile ] || exit 0; \
3667 r=`${PWD_COMMAND}`; export r; \
3668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3669 $(SET_LIB_PATH) \
3670 for flag in $(EXTRA_HOST_FLAGS); do \
3671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3672 done; \
3673 echo "Doing dvi in binutils" ; \
3674 (cd binutils && \
3675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3677 "RANLIB=$${RANLIB}" \
3678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3679 dvi) \
3680 || exit 1
3683 .PHONY: maybe-TAGS-binutils TAGS-binutils
3684 maybe-TAGS-binutils:
3686 TAGS-binutils: \
3687 configure-binutils
3688 @[ -f ./binutils/Makefile ] || exit 0; \
3689 r=`${PWD_COMMAND}`; export r; \
3690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3691 $(SET_LIB_PATH) \
3692 for flag in $(EXTRA_HOST_FLAGS); do \
3693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3694 done; \
3695 echo "Doing TAGS in binutils" ; \
3696 (cd binutils && \
3697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3699 "RANLIB=$${RANLIB}" \
3700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3701 TAGS) \
3702 || exit 1
3705 .PHONY: maybe-install-info-binutils install-info-binutils
3706 maybe-install-info-binutils:
3708 install-info-binutils: \
3709 configure-binutils \
3710 info-binutils
3711 @[ -f ./binutils/Makefile ] || exit 0; \
3712 r=`${PWD_COMMAND}`; export r; \
3713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3714 $(SET_LIB_PATH) \
3715 for flag in $(EXTRA_HOST_FLAGS); do \
3716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3717 done; \
3718 echo "Doing install-info in binutils" ; \
3719 (cd binutils && \
3720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3722 "RANLIB=$${RANLIB}" \
3723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3724 install-info) \
3725 || exit 1
3728 .PHONY: maybe-installcheck-binutils installcheck-binutils
3729 maybe-installcheck-binutils:
3731 installcheck-binutils: \
3732 configure-binutils
3733 @[ -f ./binutils/Makefile ] || exit 0; \
3734 r=`${PWD_COMMAND}`; export r; \
3735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3736 $(SET_LIB_PATH) \
3737 for flag in $(EXTRA_HOST_FLAGS); do \
3738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3739 done; \
3740 echo "Doing installcheck in binutils" ; \
3741 (cd binutils && \
3742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3744 "RANLIB=$${RANLIB}" \
3745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3746 installcheck) \
3747 || exit 1
3750 .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
3751 maybe-mostlyclean-binutils:
3753 mostlyclean-binutils:
3754 @[ -f ./binutils/Makefile ] || exit 0; \
3755 r=`${PWD_COMMAND}`; export r; \
3756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3757 $(SET_LIB_PATH) \
3758 for flag in $(EXTRA_HOST_FLAGS); do \
3759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3760 done; \
3761 echo "Doing mostlyclean in binutils" ; \
3762 (cd binutils && \
3763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3765 "RANLIB=$${RANLIB}" \
3766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3767 mostlyclean) \
3768 || exit 1
3771 .PHONY: maybe-clean-binutils clean-binutils
3772 maybe-clean-binutils:
3774 clean-binutils:
3775 @[ -f ./binutils/Makefile ] || exit 0; \
3776 r=`${PWD_COMMAND}`; export r; \
3777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3778 $(SET_LIB_PATH) \
3779 for flag in $(EXTRA_HOST_FLAGS); do \
3780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3781 done; \
3782 echo "Doing clean in binutils" ; \
3783 (cd binutils && \
3784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3786 "RANLIB=$${RANLIB}" \
3787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3788 clean) \
3789 || exit 1
3792 .PHONY: maybe-distclean-binutils distclean-binutils
3793 maybe-distclean-binutils:
3795 distclean-binutils:
3796 @[ -f ./binutils/Makefile ] || exit 0; \
3797 r=`${PWD_COMMAND}`; export r; \
3798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3799 $(SET_LIB_PATH) \
3800 for flag in $(EXTRA_HOST_FLAGS); do \
3801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3802 done; \
3803 echo "Doing distclean in binutils" ; \
3804 (cd binutils && \
3805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3807 "RANLIB=$${RANLIB}" \
3808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3809 distclean) \
3810 || exit 1
3813 .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
3814 maybe-maintainer-clean-binutils:
3816 maintainer-clean-binutils:
3817 @[ -f ./binutils/Makefile ] || exit 0; \
3818 r=`${PWD_COMMAND}`; export r; \
3819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3820 $(SET_LIB_PATH) \
3821 for flag in $(EXTRA_HOST_FLAGS); do \
3822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3823 done; \
3824 echo "Doing maintainer-clean in binutils" ; \
3825 (cd binutils && \
3826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3828 "RANLIB=$${RANLIB}" \
3829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3830 maintainer-clean) \
3831 || exit 1
3835 .PHONY: configure-bison maybe-configure-bison
3836 maybe-configure-bison:
3837 configure-bison:
3838 @test ! -f bison/Makefile || exit 0; \
3839 [ -d bison ] || mkdir bison; \
3840 r=`${PWD_COMMAND}`; export r; \
3841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3842 CC="$(CC)"; export CC; \
3843 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3844 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3845 CXX="$(CXX)"; export CXX; \
3846 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3847 AR="$(AR)"; export AR; \
3848 AS="$(AS)"; export AS; \
3849 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3850 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3851 LD="$(LD)"; export LD; \
3852 NM="$(NM)"; export NM; \
3853 RANLIB="$(RANLIB)"; export RANLIB; \
3854 WINDRES="$(WINDRES)"; export WINDRES; \
3855 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3856 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3857 echo Configuring in bison; \
3858 cd bison || exit 1; \
3859 case $(srcdir) in \
3860 \.) \
3861 srcdiroption="--srcdir=."; \
3862 libsrcdir=".";; \
3863 /* | [A-Za-z]:[\\/]*) \
3864 srcdiroption="--srcdir=$(srcdir)/bison"; \
3865 libsrcdir="$$s/bison";; \
3866 *) \
3867 srcdiroption="--srcdir=../$(srcdir)/bison"; \
3868 libsrcdir="$$s/bison";; \
3869 esac; \
3870 $(SHELL) $${libsrcdir}/configure \
3871 $(HOST_CONFIGARGS) $${srcdiroption} \
3872 || exit 1
3874 .PHONY: all-bison maybe-all-bison
3875 maybe-all-bison:
3876 all-bison: configure-bison
3877 @r=`${PWD_COMMAND}`; export r; \
3878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3879 $(SET_LIB_PATH) \
3880 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
3882 .PHONY: check-bison maybe-check-bison
3883 maybe-check-bison:
3885 # This module is only tested in a native toolchain.
3886 check-bison:
3887 @if [ '$(host)' = '$(target)' ] ; then \
3888 r=`${PWD_COMMAND}`; export r; \
3889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3890 $(SET_LIB_PATH) \
3891 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
3895 .PHONY: install-bison maybe-install-bison
3896 maybe-install-bison:
3898 install-bison: installdirs
3899 @r=`${PWD_COMMAND}`; export r; \
3900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3901 $(SET_LIB_PATH) \
3902 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
3905 # Other targets (info, dvi, etc.)
3907 .PHONY: maybe-info-bison info-bison
3908 maybe-info-bison:
3910 info-bison: \
3911 configure-bison
3912 @[ -f ./bison/Makefile ] || exit 0; \
3913 r=`${PWD_COMMAND}`; export r; \
3914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3915 $(SET_LIB_PATH) \
3916 for flag in $(EXTRA_HOST_FLAGS); do \
3917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3918 done; \
3919 echo "Doing info in bison" ; \
3920 (cd bison && \
3921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3923 "RANLIB=$${RANLIB}" \
3924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3925 info) \
3926 || exit 1
3929 .PHONY: maybe-dvi-bison dvi-bison
3930 maybe-dvi-bison:
3932 dvi-bison: \
3933 configure-bison
3934 @[ -f ./bison/Makefile ] || exit 0; \
3935 r=`${PWD_COMMAND}`; export r; \
3936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3937 $(SET_LIB_PATH) \
3938 for flag in $(EXTRA_HOST_FLAGS); do \
3939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3940 done; \
3941 echo "Doing dvi in bison" ; \
3942 (cd bison && \
3943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3945 "RANLIB=$${RANLIB}" \
3946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3947 dvi) \
3948 || exit 1
3951 .PHONY: maybe-TAGS-bison TAGS-bison
3952 maybe-TAGS-bison:
3954 TAGS-bison: \
3955 configure-bison
3956 @[ -f ./bison/Makefile ] || exit 0; \
3957 r=`${PWD_COMMAND}`; export r; \
3958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3959 $(SET_LIB_PATH) \
3960 for flag in $(EXTRA_HOST_FLAGS); do \
3961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3962 done; \
3963 echo "Doing TAGS in bison" ; \
3964 (cd bison && \
3965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3967 "RANLIB=$${RANLIB}" \
3968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3969 TAGS) \
3970 || exit 1
3973 .PHONY: maybe-install-info-bison install-info-bison
3974 maybe-install-info-bison:
3976 install-info-bison: \
3977 configure-bison \
3978 info-bison
3979 @[ -f ./bison/Makefile ] || exit 0; \
3980 r=`${PWD_COMMAND}`; export r; \
3981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3982 $(SET_LIB_PATH) \
3983 for flag in $(EXTRA_HOST_FLAGS); do \
3984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3985 done; \
3986 echo "Doing install-info in bison" ; \
3987 (cd bison && \
3988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3990 "RANLIB=$${RANLIB}" \
3991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3992 install-info) \
3993 || exit 1
3996 .PHONY: maybe-installcheck-bison installcheck-bison
3997 maybe-installcheck-bison:
3999 installcheck-bison: \
4000 configure-bison
4001 @[ -f ./bison/Makefile ] || exit 0; \
4002 r=`${PWD_COMMAND}`; export r; \
4003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4004 $(SET_LIB_PATH) \
4005 for flag in $(EXTRA_HOST_FLAGS); do \
4006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4007 done; \
4008 echo "Doing installcheck in bison" ; \
4009 (cd bison && \
4010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4012 "RANLIB=$${RANLIB}" \
4013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4014 installcheck) \
4015 || exit 1
4018 .PHONY: maybe-mostlyclean-bison mostlyclean-bison
4019 maybe-mostlyclean-bison:
4021 mostlyclean-bison:
4022 @[ -f ./bison/Makefile ] || exit 0; \
4023 r=`${PWD_COMMAND}`; export r; \
4024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4025 $(SET_LIB_PATH) \
4026 for flag in $(EXTRA_HOST_FLAGS); do \
4027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4028 done; \
4029 echo "Doing mostlyclean in bison" ; \
4030 (cd bison && \
4031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4033 "RANLIB=$${RANLIB}" \
4034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4035 mostlyclean) \
4036 || exit 1
4039 .PHONY: maybe-clean-bison clean-bison
4040 maybe-clean-bison:
4042 clean-bison:
4043 @[ -f ./bison/Makefile ] || exit 0; \
4044 r=`${PWD_COMMAND}`; export r; \
4045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4046 $(SET_LIB_PATH) \
4047 for flag in $(EXTRA_HOST_FLAGS); do \
4048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4049 done; \
4050 echo "Doing clean in bison" ; \
4051 (cd bison && \
4052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4054 "RANLIB=$${RANLIB}" \
4055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4056 clean) \
4057 || exit 1
4060 .PHONY: maybe-distclean-bison distclean-bison
4061 maybe-distclean-bison:
4063 distclean-bison:
4064 @[ -f ./bison/Makefile ] || exit 0; \
4065 r=`${PWD_COMMAND}`; export r; \
4066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4067 $(SET_LIB_PATH) \
4068 for flag in $(EXTRA_HOST_FLAGS); do \
4069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4070 done; \
4071 echo "Doing distclean in bison" ; \
4072 (cd bison && \
4073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4075 "RANLIB=$${RANLIB}" \
4076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4077 distclean) \
4078 || exit 1
4081 .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
4082 maybe-maintainer-clean-bison:
4084 maintainer-clean-bison:
4085 @[ -f ./bison/Makefile ] || exit 0; \
4086 r=`${PWD_COMMAND}`; export r; \
4087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4088 $(SET_LIB_PATH) \
4089 for flag in $(EXTRA_HOST_FLAGS); do \
4090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4091 done; \
4092 echo "Doing maintainer-clean in bison" ; \
4093 (cd bison && \
4094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4096 "RANLIB=$${RANLIB}" \
4097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4098 maintainer-clean) \
4099 || exit 1
4103 .PHONY: configure-byacc maybe-configure-byacc
4104 maybe-configure-byacc:
4105 configure-byacc:
4106 @test ! -f byacc/Makefile || exit 0; \
4107 [ -d byacc ] || mkdir byacc; \
4108 r=`${PWD_COMMAND}`; export r; \
4109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4110 CC="$(CC)"; export CC; \
4111 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4112 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4113 CXX="$(CXX)"; export CXX; \
4114 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4115 AR="$(AR)"; export AR; \
4116 AS="$(AS)"; export AS; \
4117 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4118 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4119 LD="$(LD)"; export LD; \
4120 NM="$(NM)"; export NM; \
4121 RANLIB="$(RANLIB)"; export RANLIB; \
4122 WINDRES="$(WINDRES)"; export WINDRES; \
4123 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4124 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4125 echo Configuring in byacc; \
4126 cd byacc || exit 1; \
4127 case $(srcdir) in \
4128 \.) \
4129 srcdiroption="--srcdir=."; \
4130 libsrcdir=".";; \
4131 /* | [A-Za-z]:[\\/]*) \
4132 srcdiroption="--srcdir=$(srcdir)/byacc"; \
4133 libsrcdir="$$s/byacc";; \
4134 *) \
4135 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
4136 libsrcdir="$$s/byacc";; \
4137 esac; \
4138 $(SHELL) $${libsrcdir}/configure \
4139 $(HOST_CONFIGARGS) $${srcdiroption} \
4140 || exit 1
4142 .PHONY: all-byacc maybe-all-byacc
4143 maybe-all-byacc:
4144 all-byacc: configure-byacc
4145 @r=`${PWD_COMMAND}`; export r; \
4146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4147 $(SET_LIB_PATH) \
4148 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
4150 .PHONY: check-byacc maybe-check-byacc
4151 maybe-check-byacc:
4153 # This module is only tested in a native toolchain.
4154 check-byacc:
4155 @if [ '$(host)' = '$(target)' ] ; then \
4156 r=`${PWD_COMMAND}`; export r; \
4157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4158 $(SET_LIB_PATH) \
4159 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
4163 .PHONY: install-byacc maybe-install-byacc
4164 maybe-install-byacc:
4166 install-byacc: installdirs
4167 @r=`${PWD_COMMAND}`; export r; \
4168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4169 $(SET_LIB_PATH) \
4170 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
4173 # Other targets (info, dvi, etc.)
4175 .PHONY: maybe-info-byacc info-byacc
4176 maybe-info-byacc:
4178 info-byacc: \
4179 configure-byacc
4180 @[ -f ./byacc/Makefile ] || exit 0; \
4181 r=`${PWD_COMMAND}`; export r; \
4182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4183 $(SET_LIB_PATH) \
4184 for flag in $(EXTRA_HOST_FLAGS); do \
4185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4186 done; \
4187 echo "Doing info in byacc" ; \
4188 (cd byacc && \
4189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4191 "RANLIB=$${RANLIB}" \
4192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4193 info) \
4194 || exit 1
4197 .PHONY: maybe-dvi-byacc dvi-byacc
4198 maybe-dvi-byacc:
4200 dvi-byacc: \
4201 configure-byacc
4202 @[ -f ./byacc/Makefile ] || exit 0; \
4203 r=`${PWD_COMMAND}`; export r; \
4204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4205 $(SET_LIB_PATH) \
4206 for flag in $(EXTRA_HOST_FLAGS); do \
4207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4208 done; \
4209 echo "Doing dvi in byacc" ; \
4210 (cd byacc && \
4211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4213 "RANLIB=$${RANLIB}" \
4214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4215 dvi) \
4216 || exit 1
4219 .PHONY: maybe-TAGS-byacc TAGS-byacc
4220 maybe-TAGS-byacc:
4222 TAGS-byacc: \
4223 configure-byacc
4224 @[ -f ./byacc/Makefile ] || exit 0; \
4225 r=`${PWD_COMMAND}`; export r; \
4226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4227 $(SET_LIB_PATH) \
4228 for flag in $(EXTRA_HOST_FLAGS); do \
4229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4230 done; \
4231 echo "Doing TAGS in byacc" ; \
4232 (cd byacc && \
4233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4235 "RANLIB=$${RANLIB}" \
4236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4237 TAGS) \
4238 || exit 1
4241 .PHONY: maybe-install-info-byacc install-info-byacc
4242 maybe-install-info-byacc:
4244 install-info-byacc: \
4245 configure-byacc \
4246 info-byacc
4247 @[ -f ./byacc/Makefile ] || exit 0; \
4248 r=`${PWD_COMMAND}`; export r; \
4249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4250 $(SET_LIB_PATH) \
4251 for flag in $(EXTRA_HOST_FLAGS); do \
4252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4253 done; \
4254 echo "Doing install-info in byacc" ; \
4255 (cd byacc && \
4256 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4257 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4258 "RANLIB=$${RANLIB}" \
4259 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4260 install-info) \
4261 || exit 1
4264 .PHONY: maybe-installcheck-byacc installcheck-byacc
4265 maybe-installcheck-byacc:
4267 installcheck-byacc: \
4268 configure-byacc
4269 @[ -f ./byacc/Makefile ] || exit 0; \
4270 r=`${PWD_COMMAND}`; export r; \
4271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4272 $(SET_LIB_PATH) \
4273 for flag in $(EXTRA_HOST_FLAGS); do \
4274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4275 done; \
4276 echo "Doing installcheck in byacc" ; \
4277 (cd byacc && \
4278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4280 "RANLIB=$${RANLIB}" \
4281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4282 installcheck) \
4283 || exit 1
4286 .PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
4287 maybe-mostlyclean-byacc:
4289 mostlyclean-byacc:
4290 @[ -f ./byacc/Makefile ] || exit 0; \
4291 r=`${PWD_COMMAND}`; export r; \
4292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4293 $(SET_LIB_PATH) \
4294 for flag in $(EXTRA_HOST_FLAGS); do \
4295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4296 done; \
4297 echo "Doing mostlyclean in byacc" ; \
4298 (cd byacc && \
4299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4301 "RANLIB=$${RANLIB}" \
4302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4303 mostlyclean) \
4304 || exit 1
4307 .PHONY: maybe-clean-byacc clean-byacc
4308 maybe-clean-byacc:
4310 clean-byacc:
4311 @[ -f ./byacc/Makefile ] || exit 0; \
4312 r=`${PWD_COMMAND}`; export r; \
4313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4314 $(SET_LIB_PATH) \
4315 for flag in $(EXTRA_HOST_FLAGS); do \
4316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4317 done; \
4318 echo "Doing clean in byacc" ; \
4319 (cd byacc && \
4320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4322 "RANLIB=$${RANLIB}" \
4323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4324 clean) \
4325 || exit 1
4328 .PHONY: maybe-distclean-byacc distclean-byacc
4329 maybe-distclean-byacc:
4331 distclean-byacc:
4332 @[ -f ./byacc/Makefile ] || exit 0; \
4333 r=`${PWD_COMMAND}`; export r; \
4334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4335 $(SET_LIB_PATH) \
4336 for flag in $(EXTRA_HOST_FLAGS); do \
4337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4338 done; \
4339 echo "Doing distclean in byacc" ; \
4340 (cd byacc && \
4341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4343 "RANLIB=$${RANLIB}" \
4344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4345 distclean) \
4346 || exit 1
4349 .PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
4350 maybe-maintainer-clean-byacc:
4352 maintainer-clean-byacc:
4353 @[ -f ./byacc/Makefile ] || exit 0; \
4354 r=`${PWD_COMMAND}`; export r; \
4355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4356 $(SET_LIB_PATH) \
4357 for flag in $(EXTRA_HOST_FLAGS); do \
4358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4359 done; \
4360 echo "Doing maintainer-clean in byacc" ; \
4361 (cd byacc && \
4362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4364 "RANLIB=$${RANLIB}" \
4365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4366 maintainer-clean) \
4367 || exit 1
4371 .PHONY: configure-bzip2 maybe-configure-bzip2
4372 maybe-configure-bzip2:
4373 configure-bzip2:
4374 @test ! -f bzip2/Makefile || exit 0; \
4375 [ -d bzip2 ] || mkdir bzip2; \
4376 r=`${PWD_COMMAND}`; export r; \
4377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4378 CC="$(CC)"; export CC; \
4379 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4380 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4381 CXX="$(CXX)"; export CXX; \
4382 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4383 AR="$(AR)"; export AR; \
4384 AS="$(AS)"; export AS; \
4385 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4386 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4387 LD="$(LD)"; export LD; \
4388 NM="$(NM)"; export NM; \
4389 RANLIB="$(RANLIB)"; export RANLIB; \
4390 WINDRES="$(WINDRES)"; export WINDRES; \
4391 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4392 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4393 echo Configuring in bzip2; \
4394 cd bzip2 || exit 1; \
4395 case $(srcdir) in \
4396 \.) \
4397 srcdiroption="--srcdir=."; \
4398 libsrcdir=".";; \
4399 /* | [A-Za-z]:[\\/]*) \
4400 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
4401 libsrcdir="$$s/bzip2";; \
4402 *) \
4403 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
4404 libsrcdir="$$s/bzip2";; \
4405 esac; \
4406 $(SHELL) $${libsrcdir}/configure \
4407 $(HOST_CONFIGARGS) $${srcdiroption} \
4408 || exit 1
4410 .PHONY: all-bzip2 maybe-all-bzip2
4411 maybe-all-bzip2:
4412 all-bzip2: configure-bzip2
4413 @r=`${PWD_COMMAND}`; export r; \
4414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4415 $(SET_LIB_PATH) \
4416 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
4418 .PHONY: check-bzip2 maybe-check-bzip2
4419 maybe-check-bzip2:
4421 check-bzip2:
4422 @r=`${PWD_COMMAND}`; export r; \
4423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4424 $(SET_LIB_PATH) \
4425 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
4428 .PHONY: install-bzip2 maybe-install-bzip2
4429 maybe-install-bzip2:
4431 install-bzip2: installdirs
4432 @r=`${PWD_COMMAND}`; export r; \
4433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4434 $(SET_LIB_PATH) \
4435 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
4438 # Other targets (info, dvi, etc.)
4440 .PHONY: maybe-info-bzip2 info-bzip2
4441 maybe-info-bzip2:
4443 info-bzip2: \
4444 configure-bzip2
4445 @[ -f ./bzip2/Makefile ] || exit 0; \
4446 r=`${PWD_COMMAND}`; export r; \
4447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4448 $(SET_LIB_PATH) \
4449 for flag in $(EXTRA_HOST_FLAGS); do \
4450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4451 done; \
4452 echo "Doing info in bzip2" ; \
4453 (cd bzip2 && \
4454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4456 "RANLIB=$${RANLIB}" \
4457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4458 info) \
4459 || exit 1
4462 .PHONY: maybe-dvi-bzip2 dvi-bzip2
4463 maybe-dvi-bzip2:
4465 dvi-bzip2: \
4466 configure-bzip2
4467 @[ -f ./bzip2/Makefile ] || exit 0; \
4468 r=`${PWD_COMMAND}`; export r; \
4469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4470 $(SET_LIB_PATH) \
4471 for flag in $(EXTRA_HOST_FLAGS); do \
4472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4473 done; \
4474 echo "Doing dvi in bzip2" ; \
4475 (cd bzip2 && \
4476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4478 "RANLIB=$${RANLIB}" \
4479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4480 dvi) \
4481 || exit 1
4484 .PHONY: maybe-TAGS-bzip2 TAGS-bzip2
4485 maybe-TAGS-bzip2:
4487 TAGS-bzip2: \
4488 configure-bzip2
4489 @[ -f ./bzip2/Makefile ] || exit 0; \
4490 r=`${PWD_COMMAND}`; export r; \
4491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4492 $(SET_LIB_PATH) \
4493 for flag in $(EXTRA_HOST_FLAGS); do \
4494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4495 done; \
4496 echo "Doing TAGS in bzip2" ; \
4497 (cd bzip2 && \
4498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4500 "RANLIB=$${RANLIB}" \
4501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4502 TAGS) \
4503 || exit 1
4506 .PHONY: maybe-install-info-bzip2 install-info-bzip2
4507 maybe-install-info-bzip2:
4509 install-info-bzip2: \
4510 configure-bzip2 \
4511 info-bzip2
4512 @[ -f ./bzip2/Makefile ] || exit 0; \
4513 r=`${PWD_COMMAND}`; export r; \
4514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4515 $(SET_LIB_PATH) \
4516 for flag in $(EXTRA_HOST_FLAGS); do \
4517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4518 done; \
4519 echo "Doing install-info in bzip2" ; \
4520 (cd bzip2 && \
4521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4523 "RANLIB=$${RANLIB}" \
4524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4525 install-info) \
4526 || exit 1
4529 .PHONY: maybe-installcheck-bzip2 installcheck-bzip2
4530 maybe-installcheck-bzip2:
4532 installcheck-bzip2: \
4533 configure-bzip2
4534 @[ -f ./bzip2/Makefile ] || exit 0; \
4535 r=`${PWD_COMMAND}`; export r; \
4536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4537 $(SET_LIB_PATH) \
4538 for flag in $(EXTRA_HOST_FLAGS); do \
4539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4540 done; \
4541 echo "Doing installcheck in bzip2" ; \
4542 (cd bzip2 && \
4543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4545 "RANLIB=$${RANLIB}" \
4546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4547 installcheck) \
4548 || exit 1
4551 .PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
4552 maybe-mostlyclean-bzip2:
4554 mostlyclean-bzip2:
4555 @[ -f ./bzip2/Makefile ] || exit 0; \
4556 r=`${PWD_COMMAND}`; export r; \
4557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4558 $(SET_LIB_PATH) \
4559 for flag in $(EXTRA_HOST_FLAGS); do \
4560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4561 done; \
4562 echo "Doing mostlyclean in bzip2" ; \
4563 (cd bzip2 && \
4564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4566 "RANLIB=$${RANLIB}" \
4567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4568 mostlyclean) \
4569 || exit 1
4572 .PHONY: maybe-clean-bzip2 clean-bzip2
4573 maybe-clean-bzip2:
4575 clean-bzip2:
4576 @[ -f ./bzip2/Makefile ] || exit 0; \
4577 r=`${PWD_COMMAND}`; export r; \
4578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4579 $(SET_LIB_PATH) \
4580 for flag in $(EXTRA_HOST_FLAGS); do \
4581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4582 done; \
4583 echo "Doing clean in bzip2" ; \
4584 (cd bzip2 && \
4585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4587 "RANLIB=$${RANLIB}" \
4588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4589 clean) \
4590 || exit 1
4593 .PHONY: maybe-distclean-bzip2 distclean-bzip2
4594 maybe-distclean-bzip2:
4596 distclean-bzip2:
4597 @[ -f ./bzip2/Makefile ] || exit 0; \
4598 r=`${PWD_COMMAND}`; export r; \
4599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4600 $(SET_LIB_PATH) \
4601 for flag in $(EXTRA_HOST_FLAGS); do \
4602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4603 done; \
4604 echo "Doing distclean in bzip2" ; \
4605 (cd bzip2 && \
4606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4608 "RANLIB=$${RANLIB}" \
4609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4610 distclean) \
4611 || exit 1
4614 .PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
4615 maybe-maintainer-clean-bzip2:
4617 maintainer-clean-bzip2:
4618 @[ -f ./bzip2/Makefile ] || exit 0; \
4619 r=`${PWD_COMMAND}`; export r; \
4620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4621 $(SET_LIB_PATH) \
4622 for flag in $(EXTRA_HOST_FLAGS); do \
4623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4624 done; \
4625 echo "Doing maintainer-clean in bzip2" ; \
4626 (cd bzip2 && \
4627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4629 "RANLIB=$${RANLIB}" \
4630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4631 maintainer-clean) \
4632 || exit 1
4636 .PHONY: configure-dejagnu maybe-configure-dejagnu
4637 maybe-configure-dejagnu:
4638 configure-dejagnu:
4639 @test ! -f dejagnu/Makefile || exit 0; \
4640 [ -d dejagnu ] || mkdir dejagnu; \
4641 r=`${PWD_COMMAND}`; export r; \
4642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4643 CC="$(CC)"; export CC; \
4644 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4645 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4646 CXX="$(CXX)"; export CXX; \
4647 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4648 AR="$(AR)"; export AR; \
4649 AS="$(AS)"; export AS; \
4650 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4651 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4652 LD="$(LD)"; export LD; \
4653 NM="$(NM)"; export NM; \
4654 RANLIB="$(RANLIB)"; export RANLIB; \
4655 WINDRES="$(WINDRES)"; export WINDRES; \
4656 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4657 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4658 echo Configuring in dejagnu; \
4659 cd dejagnu || exit 1; \
4660 case $(srcdir) in \
4661 \.) \
4662 srcdiroption="--srcdir=."; \
4663 libsrcdir=".";; \
4664 /* | [A-Za-z]:[\\/]*) \
4665 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
4666 libsrcdir="$$s/dejagnu";; \
4667 *) \
4668 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
4669 libsrcdir="$$s/dejagnu";; \
4670 esac; \
4671 $(SHELL) $${libsrcdir}/configure \
4672 $(HOST_CONFIGARGS) $${srcdiroption} \
4673 || exit 1
4675 .PHONY: all-dejagnu maybe-all-dejagnu
4676 maybe-all-dejagnu:
4677 all-dejagnu: configure-dejagnu
4678 @r=`${PWD_COMMAND}`; export r; \
4679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4680 $(SET_LIB_PATH) \
4681 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
4683 .PHONY: check-dejagnu maybe-check-dejagnu
4684 maybe-check-dejagnu:
4686 check-dejagnu:
4687 @r=`${PWD_COMMAND}`; export r; \
4688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4689 $(SET_LIB_PATH) \
4690 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
4693 .PHONY: install-dejagnu maybe-install-dejagnu
4694 maybe-install-dejagnu:
4696 install-dejagnu: installdirs
4697 @r=`${PWD_COMMAND}`; export r; \
4698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4699 $(SET_LIB_PATH) \
4700 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
4703 # Other targets (info, dvi, etc.)
4705 .PHONY: maybe-info-dejagnu info-dejagnu
4706 maybe-info-dejagnu:
4708 info-dejagnu: \
4709 configure-dejagnu
4710 @[ -f ./dejagnu/Makefile ] || exit 0; \
4711 r=`${PWD_COMMAND}`; export r; \
4712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4713 $(SET_LIB_PATH) \
4714 for flag in $(EXTRA_HOST_FLAGS); do \
4715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4716 done; \
4717 echo "Doing info in dejagnu" ; \
4718 (cd dejagnu && \
4719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4721 "RANLIB=$${RANLIB}" \
4722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4723 info) \
4724 || exit 1
4727 .PHONY: maybe-dvi-dejagnu dvi-dejagnu
4728 maybe-dvi-dejagnu:
4730 dvi-dejagnu: \
4731 configure-dejagnu
4732 @[ -f ./dejagnu/Makefile ] || exit 0; \
4733 r=`${PWD_COMMAND}`; export r; \
4734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4735 $(SET_LIB_PATH) \
4736 for flag in $(EXTRA_HOST_FLAGS); do \
4737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4738 done; \
4739 echo "Doing dvi in dejagnu" ; \
4740 (cd dejagnu && \
4741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4743 "RANLIB=$${RANLIB}" \
4744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4745 dvi) \
4746 || exit 1
4749 .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
4750 maybe-TAGS-dejagnu:
4752 TAGS-dejagnu: \
4753 configure-dejagnu
4754 @[ -f ./dejagnu/Makefile ] || exit 0; \
4755 r=`${PWD_COMMAND}`; export r; \
4756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4757 $(SET_LIB_PATH) \
4758 for flag in $(EXTRA_HOST_FLAGS); do \
4759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4760 done; \
4761 echo "Doing TAGS in dejagnu" ; \
4762 (cd dejagnu && \
4763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4765 "RANLIB=$${RANLIB}" \
4766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4767 TAGS) \
4768 || exit 1
4771 .PHONY: maybe-install-info-dejagnu install-info-dejagnu
4772 maybe-install-info-dejagnu:
4774 install-info-dejagnu: \
4775 configure-dejagnu \
4776 info-dejagnu
4777 @[ -f ./dejagnu/Makefile ] || exit 0; \
4778 r=`${PWD_COMMAND}`; export r; \
4779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4780 $(SET_LIB_PATH) \
4781 for flag in $(EXTRA_HOST_FLAGS); do \
4782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4783 done; \
4784 echo "Doing install-info in dejagnu" ; \
4785 (cd dejagnu && \
4786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4788 "RANLIB=$${RANLIB}" \
4789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4790 install-info) \
4791 || exit 1
4794 .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
4795 maybe-installcheck-dejagnu:
4797 installcheck-dejagnu: \
4798 configure-dejagnu
4799 @[ -f ./dejagnu/Makefile ] || exit 0; \
4800 r=`${PWD_COMMAND}`; export r; \
4801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4802 $(SET_LIB_PATH) \
4803 for flag in $(EXTRA_HOST_FLAGS); do \
4804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4805 done; \
4806 echo "Doing installcheck in dejagnu" ; \
4807 (cd dejagnu && \
4808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4810 "RANLIB=$${RANLIB}" \
4811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4812 installcheck) \
4813 || exit 1
4816 .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
4817 maybe-mostlyclean-dejagnu:
4819 mostlyclean-dejagnu:
4820 @[ -f ./dejagnu/Makefile ] || exit 0; \
4821 r=`${PWD_COMMAND}`; export r; \
4822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4823 $(SET_LIB_PATH) \
4824 for flag in $(EXTRA_HOST_FLAGS); do \
4825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4826 done; \
4827 echo "Doing mostlyclean in dejagnu" ; \
4828 (cd dejagnu && \
4829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4831 "RANLIB=$${RANLIB}" \
4832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4833 mostlyclean) \
4834 || exit 1
4837 .PHONY: maybe-clean-dejagnu clean-dejagnu
4838 maybe-clean-dejagnu:
4840 clean-dejagnu:
4841 @[ -f ./dejagnu/Makefile ] || exit 0; \
4842 r=`${PWD_COMMAND}`; export r; \
4843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4844 $(SET_LIB_PATH) \
4845 for flag in $(EXTRA_HOST_FLAGS); do \
4846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4847 done; \
4848 echo "Doing clean in dejagnu" ; \
4849 (cd dejagnu && \
4850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4852 "RANLIB=$${RANLIB}" \
4853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4854 clean) \
4855 || exit 1
4858 .PHONY: maybe-distclean-dejagnu distclean-dejagnu
4859 maybe-distclean-dejagnu:
4861 distclean-dejagnu:
4862 @[ -f ./dejagnu/Makefile ] || exit 0; \
4863 r=`${PWD_COMMAND}`; export r; \
4864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4865 $(SET_LIB_PATH) \
4866 for flag in $(EXTRA_HOST_FLAGS); do \
4867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4868 done; \
4869 echo "Doing distclean in dejagnu" ; \
4870 (cd dejagnu && \
4871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4873 "RANLIB=$${RANLIB}" \
4874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4875 distclean) \
4876 || exit 1
4879 .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
4880 maybe-maintainer-clean-dejagnu:
4882 maintainer-clean-dejagnu:
4883 @[ -f ./dejagnu/Makefile ] || exit 0; \
4884 r=`${PWD_COMMAND}`; export r; \
4885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4886 $(SET_LIB_PATH) \
4887 for flag in $(EXTRA_HOST_FLAGS); do \
4888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4889 done; \
4890 echo "Doing maintainer-clean in dejagnu" ; \
4891 (cd dejagnu && \
4892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4894 "RANLIB=$${RANLIB}" \
4895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4896 maintainer-clean) \
4897 || exit 1
4901 .PHONY: configure-diff maybe-configure-diff
4902 maybe-configure-diff:
4903 configure-diff:
4904 @test ! -f diff/Makefile || exit 0; \
4905 [ -d diff ] || mkdir diff; \
4906 r=`${PWD_COMMAND}`; export r; \
4907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4908 CC="$(CC)"; export CC; \
4909 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4910 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4911 CXX="$(CXX)"; export CXX; \
4912 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4913 AR="$(AR)"; export AR; \
4914 AS="$(AS)"; export AS; \
4915 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4916 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4917 LD="$(LD)"; export LD; \
4918 NM="$(NM)"; export NM; \
4919 RANLIB="$(RANLIB)"; export RANLIB; \
4920 WINDRES="$(WINDRES)"; export WINDRES; \
4921 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4922 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4923 echo Configuring in diff; \
4924 cd diff || exit 1; \
4925 case $(srcdir) in \
4926 \.) \
4927 srcdiroption="--srcdir=."; \
4928 libsrcdir=".";; \
4929 /* | [A-Za-z]:[\\/]*) \
4930 srcdiroption="--srcdir=$(srcdir)/diff"; \
4931 libsrcdir="$$s/diff";; \
4932 *) \
4933 srcdiroption="--srcdir=../$(srcdir)/diff"; \
4934 libsrcdir="$$s/diff";; \
4935 esac; \
4936 $(SHELL) $${libsrcdir}/configure \
4937 $(HOST_CONFIGARGS) $${srcdiroption} \
4938 || exit 1
4940 .PHONY: all-diff maybe-all-diff
4941 maybe-all-diff:
4942 all-diff: configure-diff
4943 @r=`${PWD_COMMAND}`; export r; \
4944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4945 $(SET_LIB_PATH) \
4946 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
4948 .PHONY: check-diff maybe-check-diff
4949 maybe-check-diff:
4951 check-diff:
4952 @r=`${PWD_COMMAND}`; export r; \
4953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4954 $(SET_LIB_PATH) \
4955 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
4958 .PHONY: install-diff maybe-install-diff
4959 maybe-install-diff:
4961 install-diff: installdirs
4962 @r=`${PWD_COMMAND}`; export r; \
4963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4964 $(SET_LIB_PATH) \
4965 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
4968 # Other targets (info, dvi, etc.)
4970 .PHONY: maybe-info-diff info-diff
4971 maybe-info-diff:
4973 info-diff: \
4974 configure-diff
4975 @[ -f ./diff/Makefile ] || exit 0; \
4976 r=`${PWD_COMMAND}`; export r; \
4977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4978 $(SET_LIB_PATH) \
4979 for flag in $(EXTRA_HOST_FLAGS); do \
4980 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4981 done; \
4982 echo "Doing info in diff" ; \
4983 (cd diff && \
4984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4986 "RANLIB=$${RANLIB}" \
4987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4988 info) \
4989 || exit 1
4992 .PHONY: maybe-dvi-diff dvi-diff
4993 maybe-dvi-diff:
4995 dvi-diff: \
4996 configure-diff
4997 @[ -f ./diff/Makefile ] || exit 0; \
4998 r=`${PWD_COMMAND}`; export r; \
4999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5000 $(SET_LIB_PATH) \
5001 for flag in $(EXTRA_HOST_FLAGS); do \
5002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5003 done; \
5004 echo "Doing dvi in diff" ; \
5005 (cd diff && \
5006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5008 "RANLIB=$${RANLIB}" \
5009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5010 dvi) \
5011 || exit 1
5014 .PHONY: maybe-TAGS-diff TAGS-diff
5015 maybe-TAGS-diff:
5017 TAGS-diff: \
5018 configure-diff
5019 @[ -f ./diff/Makefile ] || exit 0; \
5020 r=`${PWD_COMMAND}`; export r; \
5021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5022 $(SET_LIB_PATH) \
5023 for flag in $(EXTRA_HOST_FLAGS); do \
5024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5025 done; \
5026 echo "Doing TAGS in diff" ; \
5027 (cd diff && \
5028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5030 "RANLIB=$${RANLIB}" \
5031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5032 TAGS) \
5033 || exit 1
5036 .PHONY: maybe-install-info-diff install-info-diff
5037 maybe-install-info-diff:
5039 install-info-diff: \
5040 configure-diff \
5041 info-diff
5042 @[ -f ./diff/Makefile ] || exit 0; \
5043 r=`${PWD_COMMAND}`; export r; \
5044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5045 $(SET_LIB_PATH) \
5046 for flag in $(EXTRA_HOST_FLAGS); do \
5047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5048 done; \
5049 echo "Doing install-info in diff" ; \
5050 (cd diff && \
5051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5053 "RANLIB=$${RANLIB}" \
5054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5055 install-info) \
5056 || exit 1
5059 .PHONY: maybe-installcheck-diff installcheck-diff
5060 maybe-installcheck-diff:
5062 installcheck-diff: \
5063 configure-diff
5064 @[ -f ./diff/Makefile ] || exit 0; \
5065 r=`${PWD_COMMAND}`; export r; \
5066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5067 $(SET_LIB_PATH) \
5068 for flag in $(EXTRA_HOST_FLAGS); do \
5069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5070 done; \
5071 echo "Doing installcheck in diff" ; \
5072 (cd diff && \
5073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5075 "RANLIB=$${RANLIB}" \
5076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5077 installcheck) \
5078 || exit 1
5081 .PHONY: maybe-mostlyclean-diff mostlyclean-diff
5082 maybe-mostlyclean-diff:
5084 mostlyclean-diff:
5085 @[ -f ./diff/Makefile ] || exit 0; \
5086 r=`${PWD_COMMAND}`; export r; \
5087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5088 $(SET_LIB_PATH) \
5089 for flag in $(EXTRA_HOST_FLAGS); do \
5090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5091 done; \
5092 echo "Doing mostlyclean in diff" ; \
5093 (cd diff && \
5094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5096 "RANLIB=$${RANLIB}" \
5097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5098 mostlyclean) \
5099 || exit 1
5102 .PHONY: maybe-clean-diff clean-diff
5103 maybe-clean-diff:
5105 clean-diff:
5106 @[ -f ./diff/Makefile ] || exit 0; \
5107 r=`${PWD_COMMAND}`; export r; \
5108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5109 $(SET_LIB_PATH) \
5110 for flag in $(EXTRA_HOST_FLAGS); do \
5111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5112 done; \
5113 echo "Doing clean in diff" ; \
5114 (cd diff && \
5115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5117 "RANLIB=$${RANLIB}" \
5118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5119 clean) \
5120 || exit 1
5123 .PHONY: maybe-distclean-diff distclean-diff
5124 maybe-distclean-diff:
5126 distclean-diff:
5127 @[ -f ./diff/Makefile ] || exit 0; \
5128 r=`${PWD_COMMAND}`; export r; \
5129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5130 $(SET_LIB_PATH) \
5131 for flag in $(EXTRA_HOST_FLAGS); do \
5132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5133 done; \
5134 echo "Doing distclean in diff" ; \
5135 (cd diff && \
5136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5138 "RANLIB=$${RANLIB}" \
5139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5140 distclean) \
5141 || exit 1
5144 .PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
5145 maybe-maintainer-clean-diff:
5147 maintainer-clean-diff:
5148 @[ -f ./diff/Makefile ] || exit 0; \
5149 r=`${PWD_COMMAND}`; export r; \
5150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5151 $(SET_LIB_PATH) \
5152 for flag in $(EXTRA_HOST_FLAGS); do \
5153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5154 done; \
5155 echo "Doing maintainer-clean in diff" ; \
5156 (cd diff && \
5157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5159 "RANLIB=$${RANLIB}" \
5160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5161 maintainer-clean) \
5162 || exit 1
5166 .PHONY: configure-dosutils maybe-configure-dosutils
5167 maybe-configure-dosutils:
5168 configure-dosutils:
5169 @test ! -f dosutils/Makefile || exit 0; \
5170 [ -d dosutils ] || mkdir dosutils; \
5171 r=`${PWD_COMMAND}`; export r; \
5172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5173 CC="$(CC)"; export CC; \
5174 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5175 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5176 CXX="$(CXX)"; export CXX; \
5177 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5178 AR="$(AR)"; export AR; \
5179 AS="$(AS)"; export AS; \
5180 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5181 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5182 LD="$(LD)"; export LD; \
5183 NM="$(NM)"; export NM; \
5184 RANLIB="$(RANLIB)"; export RANLIB; \
5185 WINDRES="$(WINDRES)"; export WINDRES; \
5186 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5187 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5188 echo Configuring in dosutils; \
5189 cd dosutils || exit 1; \
5190 case $(srcdir) in \
5191 \.) \
5192 srcdiroption="--srcdir=."; \
5193 libsrcdir=".";; \
5194 /* | [A-Za-z]:[\\/]*) \
5195 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
5196 libsrcdir="$$s/dosutils";; \
5197 *) \
5198 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
5199 libsrcdir="$$s/dosutils";; \
5200 esac; \
5201 $(SHELL) $${libsrcdir}/configure \
5202 $(HOST_CONFIGARGS) $${srcdiroption} \
5203 || exit 1
5205 .PHONY: all-dosutils maybe-all-dosutils
5206 maybe-all-dosutils:
5207 all-dosutils: configure-dosutils
5208 @r=`${PWD_COMMAND}`; export r; \
5209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5210 $(SET_LIB_PATH) \
5211 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
5213 .PHONY: check-dosutils maybe-check-dosutils
5214 maybe-check-dosutils:
5216 check-dosutils:
5219 .PHONY: install-dosutils maybe-install-dosutils
5220 maybe-install-dosutils:
5222 install-dosutils: installdirs
5223 @r=`${PWD_COMMAND}`; export r; \
5224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5225 $(SET_LIB_PATH) \
5226 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
5229 # Other targets (info, dvi, etc.)
5231 .PHONY: maybe-info-dosutils info-dosutils
5232 maybe-info-dosutils:
5234 info-dosutils: \
5235 configure-dosutils
5236 @[ -f ./dosutils/Makefile ] || exit 0; \
5237 r=`${PWD_COMMAND}`; export r; \
5238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5239 $(SET_LIB_PATH) \
5240 for flag in $(EXTRA_HOST_FLAGS); do \
5241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5242 done; \
5243 echo "Doing info in dosutils" ; \
5244 (cd dosutils && \
5245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5247 "RANLIB=$${RANLIB}" \
5248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5249 info) \
5250 || exit 1
5253 .PHONY: maybe-dvi-dosutils dvi-dosutils
5254 maybe-dvi-dosutils:
5256 dvi-dosutils: \
5257 configure-dosutils
5258 @[ -f ./dosutils/Makefile ] || exit 0; \
5259 r=`${PWD_COMMAND}`; export r; \
5260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5261 $(SET_LIB_PATH) \
5262 for flag in $(EXTRA_HOST_FLAGS); do \
5263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5264 done; \
5265 echo "Doing dvi in dosutils" ; \
5266 (cd dosutils && \
5267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5269 "RANLIB=$${RANLIB}" \
5270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5271 dvi) \
5272 || exit 1
5275 .PHONY: maybe-TAGS-dosutils TAGS-dosutils
5276 maybe-TAGS-dosutils:
5278 TAGS-dosutils: \
5279 configure-dosutils
5280 @[ -f ./dosutils/Makefile ] || exit 0; \
5281 r=`${PWD_COMMAND}`; export r; \
5282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5283 $(SET_LIB_PATH) \
5284 for flag in $(EXTRA_HOST_FLAGS); do \
5285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5286 done; \
5287 echo "Doing TAGS in dosutils" ; \
5288 (cd dosutils && \
5289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5291 "RANLIB=$${RANLIB}" \
5292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5293 TAGS) \
5294 || exit 1
5297 .PHONY: maybe-install-info-dosutils install-info-dosutils
5298 maybe-install-info-dosutils:
5300 install-info-dosutils: \
5301 configure-dosutils \
5302 info-dosutils
5303 @[ -f ./dosutils/Makefile ] || exit 0; \
5304 r=`${PWD_COMMAND}`; export r; \
5305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5306 $(SET_LIB_PATH) \
5307 for flag in $(EXTRA_HOST_FLAGS); do \
5308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5309 done; \
5310 echo "Doing install-info in dosutils" ; \
5311 (cd dosutils && \
5312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5314 "RANLIB=$${RANLIB}" \
5315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5316 install-info) \
5317 || exit 1
5320 .PHONY: maybe-installcheck-dosutils installcheck-dosutils
5321 maybe-installcheck-dosutils:
5323 installcheck-dosutils: \
5324 configure-dosutils
5325 @[ -f ./dosutils/Makefile ] || exit 0; \
5326 r=`${PWD_COMMAND}`; export r; \
5327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5328 $(SET_LIB_PATH) \
5329 for flag in $(EXTRA_HOST_FLAGS); do \
5330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5331 done; \
5332 echo "Doing installcheck in dosutils" ; \
5333 (cd dosutils && \
5334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5336 "RANLIB=$${RANLIB}" \
5337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5338 installcheck) \
5339 || exit 1
5342 .PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
5343 maybe-mostlyclean-dosutils:
5345 mostlyclean-dosutils:
5346 @[ -f ./dosutils/Makefile ] || exit 0; \
5347 r=`${PWD_COMMAND}`; export r; \
5348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5349 $(SET_LIB_PATH) \
5350 for flag in $(EXTRA_HOST_FLAGS); do \
5351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5352 done; \
5353 echo "Doing mostlyclean in dosutils" ; \
5354 (cd dosutils && \
5355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5357 "RANLIB=$${RANLIB}" \
5358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5359 mostlyclean) \
5360 || exit 1
5363 .PHONY: maybe-clean-dosutils clean-dosutils
5364 maybe-clean-dosutils:
5366 clean-dosutils:
5367 @[ -f ./dosutils/Makefile ] || exit 0; \
5368 r=`${PWD_COMMAND}`; export r; \
5369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5370 $(SET_LIB_PATH) \
5371 for flag in $(EXTRA_HOST_FLAGS); do \
5372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5373 done; \
5374 echo "Doing clean in dosutils" ; \
5375 (cd dosutils && \
5376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5378 "RANLIB=$${RANLIB}" \
5379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5380 clean) \
5381 || exit 1
5384 .PHONY: maybe-distclean-dosutils distclean-dosutils
5385 maybe-distclean-dosutils:
5387 distclean-dosutils:
5388 @[ -f ./dosutils/Makefile ] || exit 0; \
5389 r=`${PWD_COMMAND}`; export r; \
5390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5391 $(SET_LIB_PATH) \
5392 for flag in $(EXTRA_HOST_FLAGS); do \
5393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5394 done; \
5395 echo "Doing distclean in dosutils" ; \
5396 (cd dosutils && \
5397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5399 "RANLIB=$${RANLIB}" \
5400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5401 distclean) \
5402 || exit 1
5405 .PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
5406 maybe-maintainer-clean-dosutils:
5408 maintainer-clean-dosutils:
5409 @[ -f ./dosutils/Makefile ] || exit 0; \
5410 r=`${PWD_COMMAND}`; export r; \
5411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5412 $(SET_LIB_PATH) \
5413 for flag in $(EXTRA_HOST_FLAGS); do \
5414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5415 done; \
5416 echo "Doing maintainer-clean in dosutils" ; \
5417 (cd dosutils && \
5418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5420 "RANLIB=$${RANLIB}" \
5421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5422 maintainer-clean) \
5423 || exit 1
5427 .PHONY: configure-etc maybe-configure-etc
5428 maybe-configure-etc:
5429 configure-etc:
5430 @test ! -f etc/Makefile || exit 0; \
5431 [ -d etc ] || mkdir etc; \
5432 r=`${PWD_COMMAND}`; export r; \
5433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5434 CC="$(CC)"; export CC; \
5435 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5436 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5437 CXX="$(CXX)"; export CXX; \
5438 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5439 AR="$(AR)"; export AR; \
5440 AS="$(AS)"; export AS; \
5441 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5442 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5443 LD="$(LD)"; export LD; \
5444 NM="$(NM)"; export NM; \
5445 RANLIB="$(RANLIB)"; export RANLIB; \
5446 WINDRES="$(WINDRES)"; export WINDRES; \
5447 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5448 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5449 echo Configuring in etc; \
5450 cd etc || exit 1; \
5451 case $(srcdir) in \
5452 \.) \
5453 srcdiroption="--srcdir=."; \
5454 libsrcdir=".";; \
5455 /* | [A-Za-z]:[\\/]*) \
5456 srcdiroption="--srcdir=$(srcdir)/etc"; \
5457 libsrcdir="$$s/etc";; \
5458 *) \
5459 srcdiroption="--srcdir=../$(srcdir)/etc"; \
5460 libsrcdir="$$s/etc";; \
5461 esac; \
5462 $(SHELL) $${libsrcdir}/configure \
5463 $(HOST_CONFIGARGS) $${srcdiroption} \
5464 || exit 1
5466 .PHONY: all-etc maybe-all-etc
5467 maybe-all-etc:
5468 all-etc: configure-etc
5469 @r=`${PWD_COMMAND}`; export r; \
5470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5471 $(SET_LIB_PATH) \
5472 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
5474 .PHONY: check-etc maybe-check-etc
5475 maybe-check-etc:
5477 check-etc:
5478 @r=`${PWD_COMMAND}`; export r; \
5479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5480 $(SET_LIB_PATH) \
5481 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
5484 .PHONY: install-etc maybe-install-etc
5485 maybe-install-etc:
5487 install-etc: installdirs
5488 @r=`${PWD_COMMAND}`; export r; \
5489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5490 $(SET_LIB_PATH) \
5491 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
5494 # Other targets (info, dvi, etc.)
5496 .PHONY: maybe-info-etc info-etc
5497 maybe-info-etc:
5499 info-etc: \
5500 configure-etc
5501 @[ -f ./etc/Makefile ] || exit 0; \
5502 r=`${PWD_COMMAND}`; export r; \
5503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5504 $(SET_LIB_PATH) \
5505 for flag in $(EXTRA_HOST_FLAGS); do \
5506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5507 done; \
5508 echo "Doing info in etc" ; \
5509 (cd etc && \
5510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5512 "RANLIB=$${RANLIB}" \
5513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5514 info) \
5515 || exit 1
5518 .PHONY: maybe-dvi-etc dvi-etc
5519 maybe-dvi-etc:
5521 dvi-etc: \
5522 configure-etc
5523 @[ -f ./etc/Makefile ] || exit 0; \
5524 r=`${PWD_COMMAND}`; export r; \
5525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5526 $(SET_LIB_PATH) \
5527 for flag in $(EXTRA_HOST_FLAGS); do \
5528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5529 done; \
5530 echo "Doing dvi in etc" ; \
5531 (cd etc && \
5532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5534 "RANLIB=$${RANLIB}" \
5535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5536 dvi) \
5537 || exit 1
5540 .PHONY: maybe-TAGS-etc TAGS-etc
5541 maybe-TAGS-etc:
5543 TAGS-etc: \
5544 configure-etc
5545 @[ -f ./etc/Makefile ] || exit 0; \
5546 r=`${PWD_COMMAND}`; export r; \
5547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5548 $(SET_LIB_PATH) \
5549 for flag in $(EXTRA_HOST_FLAGS); do \
5550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5551 done; \
5552 echo "Doing TAGS in etc" ; \
5553 (cd etc && \
5554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5556 "RANLIB=$${RANLIB}" \
5557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5558 TAGS) \
5559 || exit 1
5562 .PHONY: maybe-install-info-etc install-info-etc
5563 maybe-install-info-etc:
5565 install-info-etc: \
5566 configure-etc \
5567 info-etc
5568 @[ -f ./etc/Makefile ] || exit 0; \
5569 r=`${PWD_COMMAND}`; export r; \
5570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5571 $(SET_LIB_PATH) \
5572 for flag in $(EXTRA_HOST_FLAGS); do \
5573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5574 done; \
5575 echo "Doing install-info in etc" ; \
5576 (cd etc && \
5577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5579 "RANLIB=$${RANLIB}" \
5580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5581 install-info) \
5582 || exit 1
5585 .PHONY: maybe-installcheck-etc installcheck-etc
5586 maybe-installcheck-etc:
5588 installcheck-etc: \
5589 configure-etc
5590 @[ -f ./etc/Makefile ] || exit 0; \
5591 r=`${PWD_COMMAND}`; export r; \
5592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5593 $(SET_LIB_PATH) \
5594 for flag in $(EXTRA_HOST_FLAGS); do \
5595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5596 done; \
5597 echo "Doing installcheck in etc" ; \
5598 (cd etc && \
5599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5601 "RANLIB=$${RANLIB}" \
5602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5603 installcheck) \
5604 || exit 1
5607 .PHONY: maybe-mostlyclean-etc mostlyclean-etc
5608 maybe-mostlyclean-etc:
5610 mostlyclean-etc:
5611 @[ -f ./etc/Makefile ] || exit 0; \
5612 r=`${PWD_COMMAND}`; export r; \
5613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5614 $(SET_LIB_PATH) \
5615 for flag in $(EXTRA_HOST_FLAGS); do \
5616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5617 done; \
5618 echo "Doing mostlyclean in etc" ; \
5619 (cd etc && \
5620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5622 "RANLIB=$${RANLIB}" \
5623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5624 mostlyclean) \
5625 || exit 1
5628 .PHONY: maybe-clean-etc clean-etc
5629 maybe-clean-etc:
5631 clean-etc:
5632 @[ -f ./etc/Makefile ] || exit 0; \
5633 r=`${PWD_COMMAND}`; export r; \
5634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5635 $(SET_LIB_PATH) \
5636 for flag in $(EXTRA_HOST_FLAGS); do \
5637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5638 done; \
5639 echo "Doing clean in etc" ; \
5640 (cd etc && \
5641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5643 "RANLIB=$${RANLIB}" \
5644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5645 clean) \
5646 || exit 1
5649 .PHONY: maybe-distclean-etc distclean-etc
5650 maybe-distclean-etc:
5652 distclean-etc:
5653 @[ -f ./etc/Makefile ] || exit 0; \
5654 r=`${PWD_COMMAND}`; export r; \
5655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5656 $(SET_LIB_PATH) \
5657 for flag in $(EXTRA_HOST_FLAGS); do \
5658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5659 done; \
5660 echo "Doing distclean in etc" ; \
5661 (cd etc && \
5662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5664 "RANLIB=$${RANLIB}" \
5665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5666 distclean) \
5667 || exit 1
5670 .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
5671 maybe-maintainer-clean-etc:
5673 maintainer-clean-etc:
5674 @[ -f ./etc/Makefile ] || exit 0; \
5675 r=`${PWD_COMMAND}`; export r; \
5676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5677 $(SET_LIB_PATH) \
5678 for flag in $(EXTRA_HOST_FLAGS); do \
5679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5680 done; \
5681 echo "Doing maintainer-clean in etc" ; \
5682 (cd etc && \
5683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5685 "RANLIB=$${RANLIB}" \
5686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5687 maintainer-clean) \
5688 || exit 1
5692 .PHONY: configure-fastjar maybe-configure-fastjar
5693 maybe-configure-fastjar:
5694 configure-fastjar:
5695 @test ! -f fastjar/Makefile || exit 0; \
5696 [ -d fastjar ] || mkdir fastjar; \
5697 r=`${PWD_COMMAND}`; export r; \
5698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5699 CC="$(CC)"; export CC; \
5700 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5701 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5702 CXX="$(CXX)"; export CXX; \
5703 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5704 AR="$(AR)"; export AR; \
5705 AS="$(AS)"; export AS; \
5706 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5707 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5708 LD="$(LD)"; export LD; \
5709 NM="$(NM)"; export NM; \
5710 RANLIB="$(RANLIB)"; export RANLIB; \
5711 WINDRES="$(WINDRES)"; export WINDRES; \
5712 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5713 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5714 echo Configuring in fastjar; \
5715 cd fastjar || exit 1; \
5716 case $(srcdir) in \
5717 \.) \
5718 srcdiroption="--srcdir=."; \
5719 libsrcdir=".";; \
5720 /* | [A-Za-z]:[\\/]*) \
5721 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
5722 libsrcdir="$$s/fastjar";; \
5723 *) \
5724 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
5725 libsrcdir="$$s/fastjar";; \
5726 esac; \
5727 $(SHELL) $${libsrcdir}/configure \
5728 $(HOST_CONFIGARGS) $${srcdiroption} \
5729 || exit 1
5731 .PHONY: all-fastjar maybe-all-fastjar
5732 maybe-all-fastjar:
5733 all-fastjar: configure-fastjar
5734 @r=`${PWD_COMMAND}`; export r; \
5735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5736 $(SET_LIB_PATH) \
5737 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
5739 .PHONY: check-fastjar maybe-check-fastjar
5740 maybe-check-fastjar:
5742 # This module is only tested in a native toolchain.
5743 check-fastjar:
5744 @if [ '$(host)' = '$(target)' ] ; then \
5745 r=`${PWD_COMMAND}`; export r; \
5746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5747 $(SET_LIB_PATH) \
5748 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
5752 .PHONY: install-fastjar maybe-install-fastjar
5753 maybe-install-fastjar:
5755 install-fastjar: installdirs
5756 @r=`${PWD_COMMAND}`; export r; \
5757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5758 $(SET_LIB_PATH) \
5759 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
5762 # Other targets (info, dvi, etc.)
5764 .PHONY: maybe-info-fastjar info-fastjar
5765 maybe-info-fastjar:
5767 info-fastjar: \
5768 configure-fastjar
5769 @[ -f ./fastjar/Makefile ] || exit 0; \
5770 r=`${PWD_COMMAND}`; export r; \
5771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5772 $(SET_LIB_PATH) \
5773 for flag in $(EXTRA_HOST_FLAGS); do \
5774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5775 done; \
5776 echo "Doing info in fastjar" ; \
5777 (cd fastjar && \
5778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5780 "RANLIB=$${RANLIB}" \
5781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5782 info) \
5783 || exit 1
5786 .PHONY: maybe-dvi-fastjar dvi-fastjar
5787 maybe-dvi-fastjar:
5789 dvi-fastjar: \
5790 configure-fastjar
5791 @[ -f ./fastjar/Makefile ] || exit 0; \
5792 r=`${PWD_COMMAND}`; export r; \
5793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5794 $(SET_LIB_PATH) \
5795 for flag in $(EXTRA_HOST_FLAGS); do \
5796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5797 done; \
5798 echo "Doing dvi in fastjar" ; \
5799 (cd fastjar && \
5800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5802 "RANLIB=$${RANLIB}" \
5803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5804 dvi) \
5805 || exit 1
5808 .PHONY: maybe-TAGS-fastjar TAGS-fastjar
5809 maybe-TAGS-fastjar:
5811 TAGS-fastjar: \
5812 configure-fastjar
5813 @[ -f ./fastjar/Makefile ] || exit 0; \
5814 r=`${PWD_COMMAND}`; export r; \
5815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5816 $(SET_LIB_PATH) \
5817 for flag in $(EXTRA_HOST_FLAGS); do \
5818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5819 done; \
5820 echo "Doing TAGS in fastjar" ; \
5821 (cd fastjar && \
5822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5824 "RANLIB=$${RANLIB}" \
5825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5826 TAGS) \
5827 || exit 1
5830 .PHONY: maybe-install-info-fastjar install-info-fastjar
5831 maybe-install-info-fastjar:
5833 install-info-fastjar: \
5834 configure-fastjar \
5835 info-fastjar
5836 @[ -f ./fastjar/Makefile ] || exit 0; \
5837 r=`${PWD_COMMAND}`; export r; \
5838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5839 $(SET_LIB_PATH) \
5840 for flag in $(EXTRA_HOST_FLAGS); do \
5841 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5842 done; \
5843 echo "Doing install-info in fastjar" ; \
5844 (cd fastjar && \
5845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5847 "RANLIB=$${RANLIB}" \
5848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5849 install-info) \
5850 || exit 1
5853 .PHONY: maybe-installcheck-fastjar installcheck-fastjar
5854 maybe-installcheck-fastjar:
5856 installcheck-fastjar: \
5857 configure-fastjar
5858 @[ -f ./fastjar/Makefile ] || exit 0; \
5859 r=`${PWD_COMMAND}`; export r; \
5860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5861 $(SET_LIB_PATH) \
5862 for flag in $(EXTRA_HOST_FLAGS); do \
5863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5864 done; \
5865 echo "Doing installcheck in fastjar" ; \
5866 (cd fastjar && \
5867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5869 "RANLIB=$${RANLIB}" \
5870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5871 installcheck) \
5872 || exit 1
5875 .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
5876 maybe-mostlyclean-fastjar:
5878 mostlyclean-fastjar:
5879 @[ -f ./fastjar/Makefile ] || exit 0; \
5880 r=`${PWD_COMMAND}`; export r; \
5881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5882 $(SET_LIB_PATH) \
5883 for flag in $(EXTRA_HOST_FLAGS); do \
5884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5885 done; \
5886 echo "Doing mostlyclean in fastjar" ; \
5887 (cd fastjar && \
5888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5890 "RANLIB=$${RANLIB}" \
5891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5892 mostlyclean) \
5893 || exit 1
5896 .PHONY: maybe-clean-fastjar clean-fastjar
5897 maybe-clean-fastjar:
5899 clean-fastjar:
5900 @[ -f ./fastjar/Makefile ] || exit 0; \
5901 r=`${PWD_COMMAND}`; export r; \
5902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5903 $(SET_LIB_PATH) \
5904 for flag in $(EXTRA_HOST_FLAGS); do \
5905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5906 done; \
5907 echo "Doing clean in fastjar" ; \
5908 (cd fastjar && \
5909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5911 "RANLIB=$${RANLIB}" \
5912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5913 clean) \
5914 || exit 1
5917 .PHONY: maybe-distclean-fastjar distclean-fastjar
5918 maybe-distclean-fastjar:
5920 distclean-fastjar:
5921 @[ -f ./fastjar/Makefile ] || exit 0; \
5922 r=`${PWD_COMMAND}`; export r; \
5923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5924 $(SET_LIB_PATH) \
5925 for flag in $(EXTRA_HOST_FLAGS); do \
5926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5927 done; \
5928 echo "Doing distclean in fastjar" ; \
5929 (cd fastjar && \
5930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5932 "RANLIB=$${RANLIB}" \
5933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5934 distclean) \
5935 || exit 1
5938 .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
5939 maybe-maintainer-clean-fastjar:
5941 maintainer-clean-fastjar:
5942 @[ -f ./fastjar/Makefile ] || exit 0; \
5943 r=`${PWD_COMMAND}`; export r; \
5944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5945 $(SET_LIB_PATH) \
5946 for flag in $(EXTRA_HOST_FLAGS); do \
5947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5948 done; \
5949 echo "Doing maintainer-clean in fastjar" ; \
5950 (cd fastjar && \
5951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5953 "RANLIB=$${RANLIB}" \
5954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5955 maintainer-clean) \
5956 || exit 1
5960 .PHONY: configure-fileutils maybe-configure-fileutils
5961 maybe-configure-fileutils:
5962 configure-fileutils:
5963 @test ! -f fileutils/Makefile || exit 0; \
5964 [ -d fileutils ] || mkdir fileutils; \
5965 r=`${PWD_COMMAND}`; export r; \
5966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5967 CC="$(CC)"; export CC; \
5968 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5969 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5970 CXX="$(CXX)"; export CXX; \
5971 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5972 AR="$(AR)"; export AR; \
5973 AS="$(AS)"; export AS; \
5974 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5975 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5976 LD="$(LD)"; export LD; \
5977 NM="$(NM)"; export NM; \
5978 RANLIB="$(RANLIB)"; export RANLIB; \
5979 WINDRES="$(WINDRES)"; export WINDRES; \
5980 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5981 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5982 echo Configuring in fileutils; \
5983 cd fileutils || exit 1; \
5984 case $(srcdir) in \
5985 \.) \
5986 srcdiroption="--srcdir=."; \
5987 libsrcdir=".";; \
5988 /* | [A-Za-z]:[\\/]*) \
5989 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
5990 libsrcdir="$$s/fileutils";; \
5991 *) \
5992 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
5993 libsrcdir="$$s/fileutils";; \
5994 esac; \
5995 $(SHELL) $${libsrcdir}/configure \
5996 $(HOST_CONFIGARGS) $${srcdiroption} \
5997 || exit 1
5999 .PHONY: all-fileutils maybe-all-fileutils
6000 maybe-all-fileutils:
6001 all-fileutils: configure-fileutils
6002 @r=`${PWD_COMMAND}`; export r; \
6003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6004 $(SET_LIB_PATH) \
6005 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
6007 .PHONY: check-fileutils maybe-check-fileutils
6008 maybe-check-fileutils:
6010 check-fileutils:
6011 @r=`${PWD_COMMAND}`; export r; \
6012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6013 $(SET_LIB_PATH) \
6014 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
6017 .PHONY: install-fileutils maybe-install-fileutils
6018 maybe-install-fileutils:
6020 install-fileutils: installdirs
6021 @r=`${PWD_COMMAND}`; export r; \
6022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6023 $(SET_LIB_PATH) \
6024 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
6027 # Other targets (info, dvi, etc.)
6029 .PHONY: maybe-info-fileutils info-fileutils
6030 maybe-info-fileutils:
6032 info-fileutils: \
6033 configure-fileutils
6034 @[ -f ./fileutils/Makefile ] || exit 0; \
6035 r=`${PWD_COMMAND}`; export r; \
6036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6037 $(SET_LIB_PATH) \
6038 for flag in $(EXTRA_HOST_FLAGS); do \
6039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6040 done; \
6041 echo "Doing info in fileutils" ; \
6042 (cd fileutils && \
6043 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6044 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6045 "RANLIB=$${RANLIB}" \
6046 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6047 info) \
6048 || exit 1
6051 .PHONY: maybe-dvi-fileutils dvi-fileutils
6052 maybe-dvi-fileutils:
6054 dvi-fileutils: \
6055 configure-fileutils
6056 @[ -f ./fileutils/Makefile ] || exit 0; \
6057 r=`${PWD_COMMAND}`; export r; \
6058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6059 $(SET_LIB_PATH) \
6060 for flag in $(EXTRA_HOST_FLAGS); do \
6061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6062 done; \
6063 echo "Doing dvi in fileutils" ; \
6064 (cd fileutils && \
6065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6067 "RANLIB=$${RANLIB}" \
6068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6069 dvi) \
6070 || exit 1
6073 .PHONY: maybe-TAGS-fileutils TAGS-fileutils
6074 maybe-TAGS-fileutils:
6076 TAGS-fileutils: \
6077 configure-fileutils
6078 @[ -f ./fileutils/Makefile ] || exit 0; \
6079 r=`${PWD_COMMAND}`; export r; \
6080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6081 $(SET_LIB_PATH) \
6082 for flag in $(EXTRA_HOST_FLAGS); do \
6083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6084 done; \
6085 echo "Doing TAGS in fileutils" ; \
6086 (cd fileutils && \
6087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6089 "RANLIB=$${RANLIB}" \
6090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6091 TAGS) \
6092 || exit 1
6095 .PHONY: maybe-install-info-fileutils install-info-fileutils
6096 maybe-install-info-fileutils:
6098 install-info-fileutils: \
6099 configure-fileutils \
6100 info-fileutils
6101 @[ -f ./fileutils/Makefile ] || exit 0; \
6102 r=`${PWD_COMMAND}`; export r; \
6103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6104 $(SET_LIB_PATH) \
6105 for flag in $(EXTRA_HOST_FLAGS); do \
6106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6107 done; \
6108 echo "Doing install-info in fileutils" ; \
6109 (cd fileutils && \
6110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6112 "RANLIB=$${RANLIB}" \
6113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6114 install-info) \
6115 || exit 1
6118 .PHONY: maybe-installcheck-fileutils installcheck-fileutils
6119 maybe-installcheck-fileutils:
6121 installcheck-fileutils: \
6122 configure-fileutils
6123 @[ -f ./fileutils/Makefile ] || exit 0; \
6124 r=`${PWD_COMMAND}`; export r; \
6125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6126 $(SET_LIB_PATH) \
6127 for flag in $(EXTRA_HOST_FLAGS); do \
6128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6129 done; \
6130 echo "Doing installcheck in fileutils" ; \
6131 (cd fileutils && \
6132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6134 "RANLIB=$${RANLIB}" \
6135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6136 installcheck) \
6137 || exit 1
6140 .PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
6141 maybe-mostlyclean-fileutils:
6143 mostlyclean-fileutils:
6144 @[ -f ./fileutils/Makefile ] || exit 0; \
6145 r=`${PWD_COMMAND}`; export r; \
6146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6147 $(SET_LIB_PATH) \
6148 for flag in $(EXTRA_HOST_FLAGS); do \
6149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6150 done; \
6151 echo "Doing mostlyclean in fileutils" ; \
6152 (cd fileutils && \
6153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6155 "RANLIB=$${RANLIB}" \
6156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6157 mostlyclean) \
6158 || exit 1
6161 .PHONY: maybe-clean-fileutils clean-fileutils
6162 maybe-clean-fileutils:
6164 clean-fileutils:
6165 @[ -f ./fileutils/Makefile ] || exit 0; \
6166 r=`${PWD_COMMAND}`; export r; \
6167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6168 $(SET_LIB_PATH) \
6169 for flag in $(EXTRA_HOST_FLAGS); do \
6170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6171 done; \
6172 echo "Doing clean in fileutils" ; \
6173 (cd fileutils && \
6174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6176 "RANLIB=$${RANLIB}" \
6177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6178 clean) \
6179 || exit 1
6182 .PHONY: maybe-distclean-fileutils distclean-fileutils
6183 maybe-distclean-fileutils:
6185 distclean-fileutils:
6186 @[ -f ./fileutils/Makefile ] || exit 0; \
6187 r=`${PWD_COMMAND}`; export r; \
6188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6189 $(SET_LIB_PATH) \
6190 for flag in $(EXTRA_HOST_FLAGS); do \
6191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6192 done; \
6193 echo "Doing distclean in fileutils" ; \
6194 (cd fileutils && \
6195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6197 "RANLIB=$${RANLIB}" \
6198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6199 distclean) \
6200 || exit 1
6203 .PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
6204 maybe-maintainer-clean-fileutils:
6206 maintainer-clean-fileutils:
6207 @[ -f ./fileutils/Makefile ] || exit 0; \
6208 r=`${PWD_COMMAND}`; export r; \
6209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6210 $(SET_LIB_PATH) \
6211 for flag in $(EXTRA_HOST_FLAGS); do \
6212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6213 done; \
6214 echo "Doing maintainer-clean in fileutils" ; \
6215 (cd fileutils && \
6216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6218 "RANLIB=$${RANLIB}" \
6219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6220 maintainer-clean) \
6221 || exit 1
6225 .PHONY: configure-findutils maybe-configure-findutils
6226 maybe-configure-findutils:
6227 configure-findutils:
6228 @test ! -f findutils/Makefile || exit 0; \
6229 [ -d findutils ] || mkdir findutils; \
6230 r=`${PWD_COMMAND}`; export r; \
6231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6232 CC="$(CC)"; export CC; \
6233 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6234 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6235 CXX="$(CXX)"; export CXX; \
6236 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6237 AR="$(AR)"; export AR; \
6238 AS="$(AS)"; export AS; \
6239 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6240 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6241 LD="$(LD)"; export LD; \
6242 NM="$(NM)"; export NM; \
6243 RANLIB="$(RANLIB)"; export RANLIB; \
6244 WINDRES="$(WINDRES)"; export WINDRES; \
6245 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6246 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6247 echo Configuring in findutils; \
6248 cd findutils || exit 1; \
6249 case $(srcdir) in \
6250 \.) \
6251 srcdiroption="--srcdir=."; \
6252 libsrcdir=".";; \
6253 /* | [A-Za-z]:[\\/]*) \
6254 srcdiroption="--srcdir=$(srcdir)/findutils"; \
6255 libsrcdir="$$s/findutils";; \
6256 *) \
6257 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
6258 libsrcdir="$$s/findutils";; \
6259 esac; \
6260 $(SHELL) $${libsrcdir}/configure \
6261 $(HOST_CONFIGARGS) $${srcdiroption} \
6262 || exit 1
6264 .PHONY: all-findutils maybe-all-findutils
6265 maybe-all-findutils:
6266 all-findutils: configure-findutils
6267 @r=`${PWD_COMMAND}`; export r; \
6268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6269 $(SET_LIB_PATH) \
6270 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
6272 .PHONY: check-findutils maybe-check-findutils
6273 maybe-check-findutils:
6275 check-findutils:
6276 @r=`${PWD_COMMAND}`; export r; \
6277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6278 $(SET_LIB_PATH) \
6279 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
6282 .PHONY: install-findutils maybe-install-findutils
6283 maybe-install-findutils:
6285 install-findutils: installdirs
6286 @r=`${PWD_COMMAND}`; export r; \
6287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6288 $(SET_LIB_PATH) \
6289 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
6292 # Other targets (info, dvi, etc.)
6294 .PHONY: maybe-info-findutils info-findutils
6295 maybe-info-findutils:
6297 info-findutils: \
6298 configure-findutils
6299 @[ -f ./findutils/Makefile ] || exit 0; \
6300 r=`${PWD_COMMAND}`; export r; \
6301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6302 $(SET_LIB_PATH) \
6303 for flag in $(EXTRA_HOST_FLAGS); do \
6304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6305 done; \
6306 echo "Doing info in findutils" ; \
6307 (cd findutils && \
6308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6310 "RANLIB=$${RANLIB}" \
6311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6312 info) \
6313 || exit 1
6316 .PHONY: maybe-dvi-findutils dvi-findutils
6317 maybe-dvi-findutils:
6319 dvi-findutils: \
6320 configure-findutils
6321 @[ -f ./findutils/Makefile ] || exit 0; \
6322 r=`${PWD_COMMAND}`; export r; \
6323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6324 $(SET_LIB_PATH) \
6325 for flag in $(EXTRA_HOST_FLAGS); do \
6326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6327 done; \
6328 echo "Doing dvi in findutils" ; \
6329 (cd findutils && \
6330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6332 "RANLIB=$${RANLIB}" \
6333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6334 dvi) \
6335 || exit 1
6338 .PHONY: maybe-TAGS-findutils TAGS-findutils
6339 maybe-TAGS-findutils:
6341 TAGS-findutils: \
6342 configure-findutils
6343 @[ -f ./findutils/Makefile ] || exit 0; \
6344 r=`${PWD_COMMAND}`; export r; \
6345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6346 $(SET_LIB_PATH) \
6347 for flag in $(EXTRA_HOST_FLAGS); do \
6348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6349 done; \
6350 echo "Doing TAGS in findutils" ; \
6351 (cd findutils && \
6352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6354 "RANLIB=$${RANLIB}" \
6355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6356 TAGS) \
6357 || exit 1
6360 .PHONY: maybe-install-info-findutils install-info-findutils
6361 maybe-install-info-findutils:
6363 install-info-findutils: \
6364 configure-findutils \
6365 info-findutils
6366 @[ -f ./findutils/Makefile ] || exit 0; \
6367 r=`${PWD_COMMAND}`; export r; \
6368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6369 $(SET_LIB_PATH) \
6370 for flag in $(EXTRA_HOST_FLAGS); do \
6371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6372 done; \
6373 echo "Doing install-info in findutils" ; \
6374 (cd findutils && \
6375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6377 "RANLIB=$${RANLIB}" \
6378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6379 install-info) \
6380 || exit 1
6383 .PHONY: maybe-installcheck-findutils installcheck-findutils
6384 maybe-installcheck-findutils:
6386 installcheck-findutils: \
6387 configure-findutils
6388 @[ -f ./findutils/Makefile ] || exit 0; \
6389 r=`${PWD_COMMAND}`; export r; \
6390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6391 $(SET_LIB_PATH) \
6392 for flag in $(EXTRA_HOST_FLAGS); do \
6393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6394 done; \
6395 echo "Doing installcheck in findutils" ; \
6396 (cd findutils && \
6397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6399 "RANLIB=$${RANLIB}" \
6400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6401 installcheck) \
6402 || exit 1
6405 .PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
6406 maybe-mostlyclean-findutils:
6408 mostlyclean-findutils:
6409 @[ -f ./findutils/Makefile ] || exit 0; \
6410 r=`${PWD_COMMAND}`; export r; \
6411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6412 $(SET_LIB_PATH) \
6413 for flag in $(EXTRA_HOST_FLAGS); do \
6414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6415 done; \
6416 echo "Doing mostlyclean in findutils" ; \
6417 (cd findutils && \
6418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6420 "RANLIB=$${RANLIB}" \
6421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6422 mostlyclean) \
6423 || exit 1
6426 .PHONY: maybe-clean-findutils clean-findutils
6427 maybe-clean-findutils:
6429 clean-findutils:
6430 @[ -f ./findutils/Makefile ] || exit 0; \
6431 r=`${PWD_COMMAND}`; export r; \
6432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6433 $(SET_LIB_PATH) \
6434 for flag in $(EXTRA_HOST_FLAGS); do \
6435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6436 done; \
6437 echo "Doing clean in findutils" ; \
6438 (cd findutils && \
6439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6441 "RANLIB=$${RANLIB}" \
6442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6443 clean) \
6444 || exit 1
6447 .PHONY: maybe-distclean-findutils distclean-findutils
6448 maybe-distclean-findutils:
6450 distclean-findutils:
6451 @[ -f ./findutils/Makefile ] || exit 0; \
6452 r=`${PWD_COMMAND}`; export r; \
6453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6454 $(SET_LIB_PATH) \
6455 for flag in $(EXTRA_HOST_FLAGS); do \
6456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6457 done; \
6458 echo "Doing distclean in findutils" ; \
6459 (cd findutils && \
6460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6462 "RANLIB=$${RANLIB}" \
6463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6464 distclean) \
6465 || exit 1
6468 .PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
6469 maybe-maintainer-clean-findutils:
6471 maintainer-clean-findutils:
6472 @[ -f ./findutils/Makefile ] || exit 0; \
6473 r=`${PWD_COMMAND}`; export r; \
6474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6475 $(SET_LIB_PATH) \
6476 for flag in $(EXTRA_HOST_FLAGS); do \
6477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6478 done; \
6479 echo "Doing maintainer-clean in findutils" ; \
6480 (cd findutils && \
6481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6483 "RANLIB=$${RANLIB}" \
6484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6485 maintainer-clean) \
6486 || exit 1
6490 .PHONY: configure-find maybe-configure-find
6491 maybe-configure-find:
6492 configure-find:
6493 @test ! -f find/Makefile || exit 0; \
6494 [ -d find ] || mkdir find; \
6495 r=`${PWD_COMMAND}`; export r; \
6496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6497 CC="$(CC)"; export CC; \
6498 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6499 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6500 CXX="$(CXX)"; export CXX; \
6501 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6502 AR="$(AR)"; export AR; \
6503 AS="$(AS)"; export AS; \
6504 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6505 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6506 LD="$(LD)"; export LD; \
6507 NM="$(NM)"; export NM; \
6508 RANLIB="$(RANLIB)"; export RANLIB; \
6509 WINDRES="$(WINDRES)"; export WINDRES; \
6510 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6511 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6512 echo Configuring in find; \
6513 cd find || exit 1; \
6514 case $(srcdir) in \
6515 \.) \
6516 srcdiroption="--srcdir=."; \
6517 libsrcdir=".";; \
6518 /* | [A-Za-z]:[\\/]*) \
6519 srcdiroption="--srcdir=$(srcdir)/find"; \
6520 libsrcdir="$$s/find";; \
6521 *) \
6522 srcdiroption="--srcdir=../$(srcdir)/find"; \
6523 libsrcdir="$$s/find";; \
6524 esac; \
6525 $(SHELL) $${libsrcdir}/configure \
6526 $(HOST_CONFIGARGS) $${srcdiroption} \
6527 || exit 1
6529 .PHONY: all-find maybe-all-find
6530 maybe-all-find:
6531 all-find: configure-find
6532 @r=`${PWD_COMMAND}`; export r; \
6533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6534 $(SET_LIB_PATH) \
6535 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
6537 .PHONY: check-find maybe-check-find
6538 maybe-check-find:
6540 check-find:
6541 @r=`${PWD_COMMAND}`; export r; \
6542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6543 $(SET_LIB_PATH) \
6544 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
6547 .PHONY: install-find maybe-install-find
6548 maybe-install-find:
6550 install-find: installdirs
6551 @r=`${PWD_COMMAND}`; export r; \
6552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6553 $(SET_LIB_PATH) \
6554 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
6557 # Other targets (info, dvi, etc.)
6559 .PHONY: maybe-info-find info-find
6560 maybe-info-find:
6562 info-find: \
6563 configure-find
6564 @[ -f ./find/Makefile ] || exit 0; \
6565 r=`${PWD_COMMAND}`; export r; \
6566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6567 $(SET_LIB_PATH) \
6568 for flag in $(EXTRA_HOST_FLAGS); do \
6569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6570 done; \
6571 echo "Doing info in find" ; \
6572 (cd find && \
6573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6575 "RANLIB=$${RANLIB}" \
6576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6577 info) \
6578 || exit 1
6581 .PHONY: maybe-dvi-find dvi-find
6582 maybe-dvi-find:
6584 dvi-find: \
6585 configure-find
6586 @[ -f ./find/Makefile ] || exit 0; \
6587 r=`${PWD_COMMAND}`; export r; \
6588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6589 $(SET_LIB_PATH) \
6590 for flag in $(EXTRA_HOST_FLAGS); do \
6591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6592 done; \
6593 echo "Doing dvi in find" ; \
6594 (cd find && \
6595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6597 "RANLIB=$${RANLIB}" \
6598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6599 dvi) \
6600 || exit 1
6603 .PHONY: maybe-TAGS-find TAGS-find
6604 maybe-TAGS-find:
6606 TAGS-find: \
6607 configure-find
6608 @[ -f ./find/Makefile ] || exit 0; \
6609 r=`${PWD_COMMAND}`; export r; \
6610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6611 $(SET_LIB_PATH) \
6612 for flag in $(EXTRA_HOST_FLAGS); do \
6613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6614 done; \
6615 echo "Doing TAGS in find" ; \
6616 (cd find && \
6617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6619 "RANLIB=$${RANLIB}" \
6620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6621 TAGS) \
6622 || exit 1
6625 .PHONY: maybe-install-info-find install-info-find
6626 maybe-install-info-find:
6628 install-info-find: \
6629 configure-find \
6630 info-find
6631 @[ -f ./find/Makefile ] || exit 0; \
6632 r=`${PWD_COMMAND}`; export r; \
6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6634 $(SET_LIB_PATH) \
6635 for flag in $(EXTRA_HOST_FLAGS); do \
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
6638 echo "Doing install-info in find" ; \
6639 (cd find && \
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6644 install-info) \
6645 || exit 1
6648 .PHONY: maybe-installcheck-find installcheck-find
6649 maybe-installcheck-find:
6651 installcheck-find: \
6652 configure-find
6653 @[ -f ./find/Makefile ] || exit 0; \
6654 r=`${PWD_COMMAND}`; export r; \
6655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6656 $(SET_LIB_PATH) \
6657 for flag in $(EXTRA_HOST_FLAGS); do \
6658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6659 done; \
6660 echo "Doing installcheck in find" ; \
6661 (cd find && \
6662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6664 "RANLIB=$${RANLIB}" \
6665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6666 installcheck) \
6667 || exit 1
6670 .PHONY: maybe-mostlyclean-find mostlyclean-find
6671 maybe-mostlyclean-find:
6673 mostlyclean-find:
6674 @[ -f ./find/Makefile ] || exit 0; \
6675 r=`${PWD_COMMAND}`; export r; \
6676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6677 $(SET_LIB_PATH) \
6678 for flag in $(EXTRA_HOST_FLAGS); do \
6679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6680 done; \
6681 echo "Doing mostlyclean in find" ; \
6682 (cd find && \
6683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6685 "RANLIB=$${RANLIB}" \
6686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6687 mostlyclean) \
6688 || exit 1
6691 .PHONY: maybe-clean-find clean-find
6692 maybe-clean-find:
6694 clean-find:
6695 @[ -f ./find/Makefile ] || exit 0; \
6696 r=`${PWD_COMMAND}`; export r; \
6697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6698 $(SET_LIB_PATH) \
6699 for flag in $(EXTRA_HOST_FLAGS); do \
6700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6701 done; \
6702 echo "Doing clean in find" ; \
6703 (cd find && \
6704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6706 "RANLIB=$${RANLIB}" \
6707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6708 clean) \
6709 || exit 1
6712 .PHONY: maybe-distclean-find distclean-find
6713 maybe-distclean-find:
6715 distclean-find:
6716 @[ -f ./find/Makefile ] || exit 0; \
6717 r=`${PWD_COMMAND}`; export r; \
6718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6719 $(SET_LIB_PATH) \
6720 for flag in $(EXTRA_HOST_FLAGS); do \
6721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6722 done; \
6723 echo "Doing distclean in find" ; \
6724 (cd find && \
6725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6727 "RANLIB=$${RANLIB}" \
6728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6729 distclean) \
6730 || exit 1
6733 .PHONY: maybe-maintainer-clean-find maintainer-clean-find
6734 maybe-maintainer-clean-find:
6736 maintainer-clean-find:
6737 @[ -f ./find/Makefile ] || exit 0; \
6738 r=`${PWD_COMMAND}`; export r; \
6739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6740 $(SET_LIB_PATH) \
6741 for flag in $(EXTRA_HOST_FLAGS); do \
6742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6743 done; \
6744 echo "Doing maintainer-clean in find" ; \
6745 (cd find && \
6746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6748 "RANLIB=$${RANLIB}" \
6749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6750 maintainer-clean) \
6751 || exit 1
6755 .PHONY: configure-flex maybe-configure-flex
6756 maybe-configure-flex:
6757 configure-flex:
6758 @test ! -f flex/Makefile || exit 0; \
6759 [ -d flex ] || mkdir flex; \
6760 r=`${PWD_COMMAND}`; export r; \
6761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6762 CC="$(CC)"; export CC; \
6763 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6764 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6765 CXX="$(CXX)"; export CXX; \
6766 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6767 AR="$(AR)"; export AR; \
6768 AS="$(AS)"; export AS; \
6769 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6770 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6771 LD="$(LD)"; export LD; \
6772 NM="$(NM)"; export NM; \
6773 RANLIB="$(RANLIB)"; export RANLIB; \
6774 WINDRES="$(WINDRES)"; export WINDRES; \
6775 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6776 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6777 echo Configuring in flex; \
6778 cd flex || exit 1; \
6779 case $(srcdir) in \
6780 \.) \
6781 srcdiroption="--srcdir=."; \
6782 libsrcdir=".";; \
6783 /* | [A-Za-z]:[\\/]*) \
6784 srcdiroption="--srcdir=$(srcdir)/flex"; \
6785 libsrcdir="$$s/flex";; \
6786 *) \
6787 srcdiroption="--srcdir=../$(srcdir)/flex"; \
6788 libsrcdir="$$s/flex";; \
6789 esac; \
6790 $(SHELL) $${libsrcdir}/configure \
6791 $(HOST_CONFIGARGS) $${srcdiroption} \
6792 || exit 1
6794 .PHONY: all-flex maybe-all-flex
6795 maybe-all-flex:
6796 all-flex: configure-flex
6797 @r=`${PWD_COMMAND}`; export r; \
6798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6799 $(SET_LIB_PATH) \
6800 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
6802 .PHONY: check-flex maybe-check-flex
6803 maybe-check-flex:
6805 # This module is only tested in a native toolchain.
6806 check-flex:
6807 @if [ '$(host)' = '$(target)' ] ; then \
6808 r=`${PWD_COMMAND}`; export r; \
6809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6810 $(SET_LIB_PATH) \
6811 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
6815 .PHONY: install-flex maybe-install-flex
6816 maybe-install-flex:
6818 install-flex: installdirs
6819 @r=`${PWD_COMMAND}`; export r; \
6820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6821 $(SET_LIB_PATH) \
6822 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
6825 # Other targets (info, dvi, etc.)
6827 .PHONY: maybe-info-flex info-flex
6828 maybe-info-flex:
6830 info-flex: \
6831 configure-flex
6832 @[ -f ./flex/Makefile ] || exit 0; \
6833 r=`${PWD_COMMAND}`; export r; \
6834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6835 $(SET_LIB_PATH) \
6836 for flag in $(EXTRA_HOST_FLAGS); do \
6837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6838 done; \
6839 echo "Doing info in flex" ; \
6840 (cd flex && \
6841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6843 "RANLIB=$${RANLIB}" \
6844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6845 info) \
6846 || exit 1
6849 .PHONY: maybe-dvi-flex dvi-flex
6850 maybe-dvi-flex:
6852 dvi-flex: \
6853 configure-flex
6854 @[ -f ./flex/Makefile ] || exit 0; \
6855 r=`${PWD_COMMAND}`; export r; \
6856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6857 $(SET_LIB_PATH) \
6858 for flag in $(EXTRA_HOST_FLAGS); do \
6859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6860 done; \
6861 echo "Doing dvi in flex" ; \
6862 (cd flex && \
6863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6865 "RANLIB=$${RANLIB}" \
6866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6867 dvi) \
6868 || exit 1
6871 .PHONY: maybe-TAGS-flex TAGS-flex
6872 maybe-TAGS-flex:
6874 TAGS-flex: \
6875 configure-flex
6876 @[ -f ./flex/Makefile ] || exit 0; \
6877 r=`${PWD_COMMAND}`; export r; \
6878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6879 $(SET_LIB_PATH) \
6880 for flag in $(EXTRA_HOST_FLAGS); do \
6881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6882 done; \
6883 echo "Doing TAGS in flex" ; \
6884 (cd flex && \
6885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6887 "RANLIB=$${RANLIB}" \
6888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6889 TAGS) \
6890 || exit 1
6893 .PHONY: maybe-install-info-flex install-info-flex
6894 maybe-install-info-flex:
6896 install-info-flex: \
6897 configure-flex \
6898 info-flex
6899 @[ -f ./flex/Makefile ] || exit 0; \
6900 r=`${PWD_COMMAND}`; export r; \
6901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6902 $(SET_LIB_PATH) \
6903 for flag in $(EXTRA_HOST_FLAGS); do \
6904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6905 done; \
6906 echo "Doing install-info in flex" ; \
6907 (cd flex && \
6908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6910 "RANLIB=$${RANLIB}" \
6911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6912 install-info) \
6913 || exit 1
6916 .PHONY: maybe-installcheck-flex installcheck-flex
6917 maybe-installcheck-flex:
6919 installcheck-flex: \
6920 configure-flex
6921 @[ -f ./flex/Makefile ] || exit 0; \
6922 r=`${PWD_COMMAND}`; export r; \
6923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6924 $(SET_LIB_PATH) \
6925 for flag in $(EXTRA_HOST_FLAGS); do \
6926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6927 done; \
6928 echo "Doing installcheck in flex" ; \
6929 (cd flex && \
6930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6932 "RANLIB=$${RANLIB}" \
6933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6934 installcheck) \
6935 || exit 1
6938 .PHONY: maybe-mostlyclean-flex mostlyclean-flex
6939 maybe-mostlyclean-flex:
6941 mostlyclean-flex:
6942 @[ -f ./flex/Makefile ] || exit 0; \
6943 r=`${PWD_COMMAND}`; export r; \
6944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6945 $(SET_LIB_PATH) \
6946 for flag in $(EXTRA_HOST_FLAGS); do \
6947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6948 done; \
6949 echo "Doing mostlyclean in flex" ; \
6950 (cd flex && \
6951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6953 "RANLIB=$${RANLIB}" \
6954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6955 mostlyclean) \
6956 || exit 1
6959 .PHONY: maybe-clean-flex clean-flex
6960 maybe-clean-flex:
6962 clean-flex:
6963 @[ -f ./flex/Makefile ] || exit 0; \
6964 r=`${PWD_COMMAND}`; export r; \
6965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6966 $(SET_LIB_PATH) \
6967 for flag in $(EXTRA_HOST_FLAGS); do \
6968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6969 done; \
6970 echo "Doing clean in flex" ; \
6971 (cd flex && \
6972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6974 "RANLIB=$${RANLIB}" \
6975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6976 clean) \
6977 || exit 1
6980 .PHONY: maybe-distclean-flex distclean-flex
6981 maybe-distclean-flex:
6983 distclean-flex:
6984 @[ -f ./flex/Makefile ] || exit 0; \
6985 r=`${PWD_COMMAND}`; export r; \
6986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6987 $(SET_LIB_PATH) \
6988 for flag in $(EXTRA_HOST_FLAGS); do \
6989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6990 done; \
6991 echo "Doing distclean in flex" ; \
6992 (cd flex && \
6993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6995 "RANLIB=$${RANLIB}" \
6996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6997 distclean) \
6998 || exit 1
7001 .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
7002 maybe-maintainer-clean-flex:
7004 maintainer-clean-flex:
7005 @[ -f ./flex/Makefile ] || exit 0; \
7006 r=`${PWD_COMMAND}`; export r; \
7007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7008 $(SET_LIB_PATH) \
7009 for flag in $(EXTRA_HOST_FLAGS); do \
7010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7011 done; \
7012 echo "Doing maintainer-clean in flex" ; \
7013 (cd flex && \
7014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7016 "RANLIB=$${RANLIB}" \
7017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7018 maintainer-clean) \
7019 || exit 1
7023 .PHONY: configure-gas maybe-configure-gas
7024 maybe-configure-gas:
7025 configure-gas:
7026 @test ! -f gas/Makefile || exit 0; \
7027 [ -d gas ] || mkdir gas; \
7028 r=`${PWD_COMMAND}`; export r; \
7029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7030 CC="$(CC)"; export CC; \
7031 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7032 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7033 CXX="$(CXX)"; export CXX; \
7034 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7035 AR="$(AR)"; export AR; \
7036 AS="$(AS)"; export AS; \
7037 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7038 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7039 LD="$(LD)"; export LD; \
7040 NM="$(NM)"; export NM; \
7041 RANLIB="$(RANLIB)"; export RANLIB; \
7042 WINDRES="$(WINDRES)"; export WINDRES; \
7043 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7044 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7045 echo Configuring in gas; \
7046 cd gas || exit 1; \
7047 case $(srcdir) in \
7048 \.) \
7049 srcdiroption="--srcdir=."; \
7050 libsrcdir=".";; \
7051 /* | [A-Za-z]:[\\/]*) \
7052 srcdiroption="--srcdir=$(srcdir)/gas"; \
7053 libsrcdir="$$s/gas";; \
7054 *) \
7055 srcdiroption="--srcdir=../$(srcdir)/gas"; \
7056 libsrcdir="$$s/gas";; \
7057 esac; \
7058 $(SHELL) $${libsrcdir}/configure \
7059 $(HOST_CONFIGARGS) $${srcdiroption} \
7060 || exit 1
7062 .PHONY: all-gas maybe-all-gas
7063 maybe-all-gas:
7064 all-gas: configure-gas
7065 @r=`${PWD_COMMAND}`; export r; \
7066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7067 $(SET_LIB_PATH) \
7068 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
7070 .PHONY: check-gas maybe-check-gas
7071 maybe-check-gas:
7073 check-gas:
7074 @r=`${PWD_COMMAND}`; export r; \
7075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7076 $(SET_LIB_PATH) \
7077 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
7080 .PHONY: install-gas maybe-install-gas
7081 maybe-install-gas:
7083 install-gas: installdirs
7084 @r=`${PWD_COMMAND}`; export r; \
7085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7086 $(SET_LIB_PATH) \
7087 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
7090 # Other targets (info, dvi, etc.)
7092 .PHONY: maybe-info-gas info-gas
7093 maybe-info-gas:
7095 info-gas: \
7096 configure-gas
7097 @[ -f ./gas/Makefile ] || exit 0; \
7098 r=`${PWD_COMMAND}`; export r; \
7099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7100 $(SET_LIB_PATH) \
7101 for flag in $(EXTRA_HOST_FLAGS); do \
7102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7103 done; \
7104 echo "Doing info in gas" ; \
7105 (cd gas && \
7106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7108 "RANLIB=$${RANLIB}" \
7109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7110 info) \
7111 || exit 1
7114 .PHONY: maybe-dvi-gas dvi-gas
7115 maybe-dvi-gas:
7117 dvi-gas: \
7118 configure-gas
7119 @[ -f ./gas/Makefile ] || exit 0; \
7120 r=`${PWD_COMMAND}`; export r; \
7121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7122 $(SET_LIB_PATH) \
7123 for flag in $(EXTRA_HOST_FLAGS); do \
7124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7125 done; \
7126 echo "Doing dvi in gas" ; \
7127 (cd gas && \
7128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7130 "RANLIB=$${RANLIB}" \
7131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7132 dvi) \
7133 || exit 1
7136 .PHONY: maybe-TAGS-gas TAGS-gas
7137 maybe-TAGS-gas:
7139 TAGS-gas: \
7140 configure-gas
7141 @[ -f ./gas/Makefile ] || exit 0; \
7142 r=`${PWD_COMMAND}`; export r; \
7143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7144 $(SET_LIB_PATH) \
7145 for flag in $(EXTRA_HOST_FLAGS); do \
7146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7147 done; \
7148 echo "Doing TAGS in gas" ; \
7149 (cd gas && \
7150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7152 "RANLIB=$${RANLIB}" \
7153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7154 TAGS) \
7155 || exit 1
7158 .PHONY: maybe-install-info-gas install-info-gas
7159 maybe-install-info-gas:
7161 install-info-gas: \
7162 configure-gas \
7163 info-gas
7164 @[ -f ./gas/Makefile ] || exit 0; \
7165 r=`${PWD_COMMAND}`; export r; \
7166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7167 $(SET_LIB_PATH) \
7168 for flag in $(EXTRA_HOST_FLAGS); do \
7169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7170 done; \
7171 echo "Doing install-info in gas" ; \
7172 (cd gas && \
7173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7175 "RANLIB=$${RANLIB}" \
7176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7177 install-info) \
7178 || exit 1
7181 .PHONY: maybe-installcheck-gas installcheck-gas
7182 maybe-installcheck-gas:
7184 installcheck-gas: \
7185 configure-gas
7186 @[ -f ./gas/Makefile ] || exit 0; \
7187 r=`${PWD_COMMAND}`; export r; \
7188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7189 $(SET_LIB_PATH) \
7190 for flag in $(EXTRA_HOST_FLAGS); do \
7191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7192 done; \
7193 echo "Doing installcheck in gas" ; \
7194 (cd gas && \
7195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7197 "RANLIB=$${RANLIB}" \
7198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7199 installcheck) \
7200 || exit 1
7203 .PHONY: maybe-mostlyclean-gas mostlyclean-gas
7204 maybe-mostlyclean-gas:
7206 mostlyclean-gas:
7207 @[ -f ./gas/Makefile ] || exit 0; \
7208 r=`${PWD_COMMAND}`; export r; \
7209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7210 $(SET_LIB_PATH) \
7211 for flag in $(EXTRA_HOST_FLAGS); do \
7212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7213 done; \
7214 echo "Doing mostlyclean in gas" ; \
7215 (cd gas && \
7216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7218 "RANLIB=$${RANLIB}" \
7219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7220 mostlyclean) \
7221 || exit 1
7224 .PHONY: maybe-clean-gas clean-gas
7225 maybe-clean-gas:
7227 clean-gas:
7228 @[ -f ./gas/Makefile ] || exit 0; \
7229 r=`${PWD_COMMAND}`; export r; \
7230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7231 $(SET_LIB_PATH) \
7232 for flag in $(EXTRA_HOST_FLAGS); do \
7233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7234 done; \
7235 echo "Doing clean in gas" ; \
7236 (cd gas && \
7237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7239 "RANLIB=$${RANLIB}" \
7240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7241 clean) \
7242 || exit 1
7245 .PHONY: maybe-distclean-gas distclean-gas
7246 maybe-distclean-gas:
7248 distclean-gas:
7249 @[ -f ./gas/Makefile ] || exit 0; \
7250 r=`${PWD_COMMAND}`; export r; \
7251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7252 $(SET_LIB_PATH) \
7253 for flag in $(EXTRA_HOST_FLAGS); do \
7254 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7255 done; \
7256 echo "Doing distclean in gas" ; \
7257 (cd gas && \
7258 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7259 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7260 "RANLIB=$${RANLIB}" \
7261 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7262 distclean) \
7263 || exit 1
7266 .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
7267 maybe-maintainer-clean-gas:
7269 maintainer-clean-gas:
7270 @[ -f ./gas/Makefile ] || exit 0; \
7271 r=`${PWD_COMMAND}`; export r; \
7272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7273 $(SET_LIB_PATH) \
7274 for flag in $(EXTRA_HOST_FLAGS); do \
7275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7276 done; \
7277 echo "Doing maintainer-clean in gas" ; \
7278 (cd gas && \
7279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7281 "RANLIB=$${RANLIB}" \
7282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7283 maintainer-clean) \
7284 || exit 1
7288 .PHONY: configure-gawk maybe-configure-gawk
7289 maybe-configure-gawk:
7290 configure-gawk:
7291 @test ! -f gawk/Makefile || exit 0; \
7292 [ -d gawk ] || mkdir gawk; \
7293 r=`${PWD_COMMAND}`; export r; \
7294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7295 CC="$(CC)"; export CC; \
7296 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7297 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7298 CXX="$(CXX)"; export CXX; \
7299 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7300 AR="$(AR)"; export AR; \
7301 AS="$(AS)"; export AS; \
7302 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7303 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7304 LD="$(LD)"; export LD; \
7305 NM="$(NM)"; export NM; \
7306 RANLIB="$(RANLIB)"; export RANLIB; \
7307 WINDRES="$(WINDRES)"; export WINDRES; \
7308 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7309 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7310 echo Configuring in gawk; \
7311 cd gawk || exit 1; \
7312 case $(srcdir) in \
7313 \.) \
7314 srcdiroption="--srcdir=."; \
7315 libsrcdir=".";; \
7316 /* | [A-Za-z]:[\\/]*) \
7317 srcdiroption="--srcdir=$(srcdir)/gawk"; \
7318 libsrcdir="$$s/gawk";; \
7319 *) \
7320 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
7321 libsrcdir="$$s/gawk";; \
7322 esac; \
7323 $(SHELL) $${libsrcdir}/configure \
7324 $(HOST_CONFIGARGS) $${srcdiroption} \
7325 || exit 1
7327 .PHONY: all-gawk maybe-all-gawk
7328 maybe-all-gawk:
7329 all-gawk: configure-gawk
7330 @r=`${PWD_COMMAND}`; export r; \
7331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7332 $(SET_LIB_PATH) \
7333 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
7335 .PHONY: check-gawk maybe-check-gawk
7336 maybe-check-gawk:
7338 check-gawk:
7339 @r=`${PWD_COMMAND}`; export r; \
7340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7341 $(SET_LIB_PATH) \
7342 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
7345 .PHONY: install-gawk maybe-install-gawk
7346 maybe-install-gawk:
7348 install-gawk: installdirs
7349 @r=`${PWD_COMMAND}`; export r; \
7350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7351 $(SET_LIB_PATH) \
7352 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
7355 # Other targets (info, dvi, etc.)
7357 .PHONY: maybe-info-gawk info-gawk
7358 maybe-info-gawk:
7360 info-gawk: \
7361 configure-gawk
7362 @[ -f ./gawk/Makefile ] || exit 0; \
7363 r=`${PWD_COMMAND}`; export r; \
7364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7365 $(SET_LIB_PATH) \
7366 for flag in $(EXTRA_HOST_FLAGS); do \
7367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7368 done; \
7369 echo "Doing info in gawk" ; \
7370 (cd gawk && \
7371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7373 "RANLIB=$${RANLIB}" \
7374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7375 info) \
7376 || exit 1
7379 .PHONY: maybe-dvi-gawk dvi-gawk
7380 maybe-dvi-gawk:
7382 dvi-gawk: \
7383 configure-gawk
7384 @[ -f ./gawk/Makefile ] || exit 0; \
7385 r=`${PWD_COMMAND}`; export r; \
7386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7387 $(SET_LIB_PATH) \
7388 for flag in $(EXTRA_HOST_FLAGS); do \
7389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7390 done; \
7391 echo "Doing dvi in gawk" ; \
7392 (cd gawk && \
7393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7395 "RANLIB=$${RANLIB}" \
7396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7397 dvi) \
7398 || exit 1
7401 .PHONY: maybe-TAGS-gawk TAGS-gawk
7402 maybe-TAGS-gawk:
7404 TAGS-gawk: \
7405 configure-gawk
7406 @[ -f ./gawk/Makefile ] || exit 0; \
7407 r=`${PWD_COMMAND}`; export r; \
7408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7409 $(SET_LIB_PATH) \
7410 for flag in $(EXTRA_HOST_FLAGS); do \
7411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7412 done; \
7413 echo "Doing TAGS in gawk" ; \
7414 (cd gawk && \
7415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7417 "RANLIB=$${RANLIB}" \
7418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7419 TAGS) \
7420 || exit 1
7423 .PHONY: maybe-install-info-gawk install-info-gawk
7424 maybe-install-info-gawk:
7426 install-info-gawk: \
7427 configure-gawk \
7428 info-gawk
7429 @[ -f ./gawk/Makefile ] || exit 0; \
7430 r=`${PWD_COMMAND}`; export r; \
7431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7432 $(SET_LIB_PATH) \
7433 for flag in $(EXTRA_HOST_FLAGS); do \
7434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7435 done; \
7436 echo "Doing install-info in gawk" ; \
7437 (cd gawk && \
7438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7440 "RANLIB=$${RANLIB}" \
7441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7442 install-info) \
7443 || exit 1
7446 .PHONY: maybe-installcheck-gawk installcheck-gawk
7447 maybe-installcheck-gawk:
7449 installcheck-gawk: \
7450 configure-gawk
7451 @[ -f ./gawk/Makefile ] || exit 0; \
7452 r=`${PWD_COMMAND}`; export r; \
7453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7454 $(SET_LIB_PATH) \
7455 for flag in $(EXTRA_HOST_FLAGS); do \
7456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7457 done; \
7458 echo "Doing installcheck in gawk" ; \
7459 (cd gawk && \
7460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7462 "RANLIB=$${RANLIB}" \
7463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7464 installcheck) \
7465 || exit 1
7468 .PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
7469 maybe-mostlyclean-gawk:
7471 mostlyclean-gawk:
7472 @[ -f ./gawk/Makefile ] || exit 0; \
7473 r=`${PWD_COMMAND}`; export r; \
7474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7475 $(SET_LIB_PATH) \
7476 for flag in $(EXTRA_HOST_FLAGS); do \
7477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7478 done; \
7479 echo "Doing mostlyclean in gawk" ; \
7480 (cd gawk && \
7481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7483 "RANLIB=$${RANLIB}" \
7484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7485 mostlyclean) \
7486 || exit 1
7489 .PHONY: maybe-clean-gawk clean-gawk
7490 maybe-clean-gawk:
7492 clean-gawk:
7493 @[ -f ./gawk/Makefile ] || exit 0; \
7494 r=`${PWD_COMMAND}`; export r; \
7495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7496 $(SET_LIB_PATH) \
7497 for flag in $(EXTRA_HOST_FLAGS); do \
7498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7499 done; \
7500 echo "Doing clean in gawk" ; \
7501 (cd gawk && \
7502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7504 "RANLIB=$${RANLIB}" \
7505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7506 clean) \
7507 || exit 1
7510 .PHONY: maybe-distclean-gawk distclean-gawk
7511 maybe-distclean-gawk:
7513 distclean-gawk:
7514 @[ -f ./gawk/Makefile ] || exit 0; \
7515 r=`${PWD_COMMAND}`; export r; \
7516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7517 $(SET_LIB_PATH) \
7518 for flag in $(EXTRA_HOST_FLAGS); do \
7519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7520 done; \
7521 echo "Doing distclean in gawk" ; \
7522 (cd gawk && \
7523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7525 "RANLIB=$${RANLIB}" \
7526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7527 distclean) \
7528 || exit 1
7531 .PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
7532 maybe-maintainer-clean-gawk:
7534 maintainer-clean-gawk:
7535 @[ -f ./gawk/Makefile ] || exit 0; \
7536 r=`${PWD_COMMAND}`; export r; \
7537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7538 $(SET_LIB_PATH) \
7539 for flag in $(EXTRA_HOST_FLAGS); do \
7540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7541 done; \
7542 echo "Doing maintainer-clean in gawk" ; \
7543 (cd gawk && \
7544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7546 "RANLIB=$${RANLIB}" \
7547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7548 maintainer-clean) \
7549 || exit 1
7553 .PHONY: configure-gettext maybe-configure-gettext
7554 maybe-configure-gettext:
7555 configure-gettext:
7556 @test ! -f gettext/Makefile || exit 0; \
7557 [ -d gettext ] || mkdir gettext; \
7558 r=`${PWD_COMMAND}`; export r; \
7559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7560 CC="$(CC)"; export CC; \
7561 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7562 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7563 CXX="$(CXX)"; export CXX; \
7564 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7565 AR="$(AR)"; export AR; \
7566 AS="$(AS)"; export AS; \
7567 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7568 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7569 LD="$(LD)"; export LD; \
7570 NM="$(NM)"; export NM; \
7571 RANLIB="$(RANLIB)"; export RANLIB; \
7572 WINDRES="$(WINDRES)"; export WINDRES; \
7573 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7574 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7575 echo Configuring in gettext; \
7576 cd gettext || exit 1; \
7577 case $(srcdir) in \
7578 \.) \
7579 srcdiroption="--srcdir=."; \
7580 libsrcdir=".";; \
7581 /* | [A-Za-z]:[\\/]*) \
7582 srcdiroption="--srcdir=$(srcdir)/gettext"; \
7583 libsrcdir="$$s/gettext";; \
7584 *) \
7585 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
7586 libsrcdir="$$s/gettext";; \
7587 esac; \
7588 $(SHELL) $${libsrcdir}/configure \
7589 $(HOST_CONFIGARGS) $${srcdiroption} \
7590 || exit 1
7592 .PHONY: all-gettext maybe-all-gettext
7593 maybe-all-gettext:
7594 all-gettext: configure-gettext
7595 @r=`${PWD_COMMAND}`; export r; \
7596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7597 $(SET_LIB_PATH) \
7598 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
7600 .PHONY: check-gettext maybe-check-gettext
7601 maybe-check-gettext:
7603 check-gettext:
7604 @r=`${PWD_COMMAND}`; export r; \
7605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7606 $(SET_LIB_PATH) \
7607 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
7610 .PHONY: install-gettext maybe-install-gettext
7611 maybe-install-gettext:
7613 install-gettext: installdirs
7614 @r=`${PWD_COMMAND}`; export r; \
7615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7616 $(SET_LIB_PATH) \
7617 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
7620 # Other targets (info, dvi, etc.)
7622 .PHONY: maybe-info-gettext info-gettext
7623 maybe-info-gettext:
7625 info-gettext: \
7626 configure-gettext
7627 @[ -f ./gettext/Makefile ] || exit 0; \
7628 r=`${PWD_COMMAND}`; export r; \
7629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7630 $(SET_LIB_PATH) \
7631 for flag in $(EXTRA_HOST_FLAGS); do \
7632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7633 done; \
7634 echo "Doing info in gettext" ; \
7635 (cd gettext && \
7636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7638 "RANLIB=$${RANLIB}" \
7639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7640 info) \
7641 || exit 1
7644 .PHONY: maybe-dvi-gettext dvi-gettext
7645 maybe-dvi-gettext:
7647 dvi-gettext: \
7648 configure-gettext
7649 @[ -f ./gettext/Makefile ] || exit 0; \
7650 r=`${PWD_COMMAND}`; export r; \
7651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7652 $(SET_LIB_PATH) \
7653 for flag in $(EXTRA_HOST_FLAGS); do \
7654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7655 done; \
7656 echo "Doing dvi in gettext" ; \
7657 (cd gettext && \
7658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7660 "RANLIB=$${RANLIB}" \
7661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7662 dvi) \
7663 || exit 1
7666 .PHONY: maybe-TAGS-gettext TAGS-gettext
7667 maybe-TAGS-gettext:
7669 TAGS-gettext: \
7670 configure-gettext
7671 @[ -f ./gettext/Makefile ] || exit 0; \
7672 r=`${PWD_COMMAND}`; export r; \
7673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7674 $(SET_LIB_PATH) \
7675 for flag in $(EXTRA_HOST_FLAGS); do \
7676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7677 done; \
7678 echo "Doing TAGS in gettext" ; \
7679 (cd gettext && \
7680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7682 "RANLIB=$${RANLIB}" \
7683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7684 TAGS) \
7685 || exit 1
7688 .PHONY: maybe-install-info-gettext install-info-gettext
7689 maybe-install-info-gettext:
7691 install-info-gettext: \
7692 configure-gettext \
7693 info-gettext
7694 @[ -f ./gettext/Makefile ] || exit 0; \
7695 r=`${PWD_COMMAND}`; export r; \
7696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7697 $(SET_LIB_PATH) \
7698 for flag in $(EXTRA_HOST_FLAGS); do \
7699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7700 done; \
7701 echo "Doing install-info in gettext" ; \
7702 (cd gettext && \
7703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7705 "RANLIB=$${RANLIB}" \
7706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7707 install-info) \
7708 || exit 1
7711 .PHONY: maybe-installcheck-gettext installcheck-gettext
7712 maybe-installcheck-gettext:
7714 installcheck-gettext: \
7715 configure-gettext
7716 @[ -f ./gettext/Makefile ] || exit 0; \
7717 r=`${PWD_COMMAND}`; export r; \
7718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7719 $(SET_LIB_PATH) \
7720 for flag in $(EXTRA_HOST_FLAGS); do \
7721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7722 done; \
7723 echo "Doing installcheck in gettext" ; \
7724 (cd gettext && \
7725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7727 "RANLIB=$${RANLIB}" \
7728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7729 installcheck) \
7730 || exit 1
7733 .PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
7734 maybe-mostlyclean-gettext:
7736 mostlyclean-gettext:
7737 @[ -f ./gettext/Makefile ] || exit 0; \
7738 r=`${PWD_COMMAND}`; export r; \
7739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7740 $(SET_LIB_PATH) \
7741 for flag in $(EXTRA_HOST_FLAGS); do \
7742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7743 done; \
7744 echo "Doing mostlyclean in gettext" ; \
7745 (cd gettext && \
7746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7748 "RANLIB=$${RANLIB}" \
7749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7750 mostlyclean) \
7751 || exit 1
7754 .PHONY: maybe-clean-gettext clean-gettext
7755 maybe-clean-gettext:
7757 clean-gettext:
7758 @[ -f ./gettext/Makefile ] || exit 0; \
7759 r=`${PWD_COMMAND}`; export r; \
7760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7761 $(SET_LIB_PATH) \
7762 for flag in $(EXTRA_HOST_FLAGS); do \
7763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7764 done; \
7765 echo "Doing clean in gettext" ; \
7766 (cd gettext && \
7767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7769 "RANLIB=$${RANLIB}" \
7770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7771 clean) \
7772 || exit 1
7775 .PHONY: maybe-distclean-gettext distclean-gettext
7776 maybe-distclean-gettext:
7778 distclean-gettext:
7779 @[ -f ./gettext/Makefile ] || exit 0; \
7780 r=`${PWD_COMMAND}`; export r; \
7781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7782 $(SET_LIB_PATH) \
7783 for flag in $(EXTRA_HOST_FLAGS); do \
7784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7785 done; \
7786 echo "Doing distclean in gettext" ; \
7787 (cd gettext && \
7788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7790 "RANLIB=$${RANLIB}" \
7791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7792 distclean) \
7793 || exit 1
7796 .PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
7797 maybe-maintainer-clean-gettext:
7799 maintainer-clean-gettext:
7800 @[ -f ./gettext/Makefile ] || exit 0; \
7801 r=`${PWD_COMMAND}`; export r; \
7802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7803 $(SET_LIB_PATH) \
7804 for flag in $(EXTRA_HOST_FLAGS); do \
7805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7806 done; \
7807 echo "Doing maintainer-clean in gettext" ; \
7808 (cd gettext && \
7809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7811 "RANLIB=$${RANLIB}" \
7812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7813 maintainer-clean) \
7814 || exit 1
7818 .PHONY: configure-gnuserv maybe-configure-gnuserv
7819 maybe-configure-gnuserv:
7820 configure-gnuserv:
7821 @test ! -f gnuserv/Makefile || exit 0; \
7822 [ -d gnuserv ] || mkdir gnuserv; \
7823 r=`${PWD_COMMAND}`; export r; \
7824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7825 CC="$(CC)"; export CC; \
7826 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7827 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7828 CXX="$(CXX)"; export CXX; \
7829 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7830 AR="$(AR)"; export AR; \
7831 AS="$(AS)"; export AS; \
7832 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7833 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7834 LD="$(LD)"; export LD; \
7835 NM="$(NM)"; export NM; \
7836 RANLIB="$(RANLIB)"; export RANLIB; \
7837 WINDRES="$(WINDRES)"; export WINDRES; \
7838 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7839 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7840 echo Configuring in gnuserv; \
7841 cd gnuserv || exit 1; \
7842 case $(srcdir) in \
7843 \.) \
7844 srcdiroption="--srcdir=."; \
7845 libsrcdir=".";; \
7846 /* | [A-Za-z]:[\\/]*) \
7847 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
7848 libsrcdir="$$s/gnuserv";; \
7849 *) \
7850 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
7851 libsrcdir="$$s/gnuserv";; \
7852 esac; \
7853 $(SHELL) $${libsrcdir}/configure \
7854 $(HOST_CONFIGARGS) $${srcdiroption} \
7855 || exit 1
7857 .PHONY: all-gnuserv maybe-all-gnuserv
7858 maybe-all-gnuserv:
7859 all-gnuserv: configure-gnuserv
7860 @r=`${PWD_COMMAND}`; export r; \
7861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7862 $(SET_LIB_PATH) \
7863 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
7865 .PHONY: check-gnuserv maybe-check-gnuserv
7866 maybe-check-gnuserv:
7868 check-gnuserv:
7869 @r=`${PWD_COMMAND}`; export r; \
7870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7871 $(SET_LIB_PATH) \
7872 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
7875 .PHONY: install-gnuserv maybe-install-gnuserv
7876 maybe-install-gnuserv:
7878 install-gnuserv: installdirs
7879 @r=`${PWD_COMMAND}`; export r; \
7880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7881 $(SET_LIB_PATH) \
7882 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
7885 # Other targets (info, dvi, etc.)
7887 .PHONY: maybe-info-gnuserv info-gnuserv
7888 maybe-info-gnuserv:
7890 info-gnuserv: \
7891 configure-gnuserv
7892 @[ -f ./gnuserv/Makefile ] || exit 0; \
7893 r=`${PWD_COMMAND}`; export r; \
7894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7895 $(SET_LIB_PATH) \
7896 for flag in $(EXTRA_HOST_FLAGS); do \
7897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7898 done; \
7899 echo "Doing info in gnuserv" ; \
7900 (cd gnuserv && \
7901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7903 "RANLIB=$${RANLIB}" \
7904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7905 info) \
7906 || exit 1
7909 .PHONY: maybe-dvi-gnuserv dvi-gnuserv
7910 maybe-dvi-gnuserv:
7912 dvi-gnuserv: \
7913 configure-gnuserv
7914 @[ -f ./gnuserv/Makefile ] || exit 0; \
7915 r=`${PWD_COMMAND}`; export r; \
7916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7917 $(SET_LIB_PATH) \
7918 for flag in $(EXTRA_HOST_FLAGS); do \
7919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7920 done; \
7921 echo "Doing dvi in gnuserv" ; \
7922 (cd gnuserv && \
7923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7925 "RANLIB=$${RANLIB}" \
7926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7927 dvi) \
7928 || exit 1
7931 .PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
7932 maybe-TAGS-gnuserv:
7934 TAGS-gnuserv: \
7935 configure-gnuserv
7936 @[ -f ./gnuserv/Makefile ] || exit 0; \
7937 r=`${PWD_COMMAND}`; export r; \
7938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7939 $(SET_LIB_PATH) \
7940 for flag in $(EXTRA_HOST_FLAGS); do \
7941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7942 done; \
7943 echo "Doing TAGS in gnuserv" ; \
7944 (cd gnuserv && \
7945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7947 "RANLIB=$${RANLIB}" \
7948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7949 TAGS) \
7950 || exit 1
7953 .PHONY: maybe-install-info-gnuserv install-info-gnuserv
7954 maybe-install-info-gnuserv:
7956 install-info-gnuserv: \
7957 configure-gnuserv \
7958 info-gnuserv
7959 @[ -f ./gnuserv/Makefile ] || exit 0; \
7960 r=`${PWD_COMMAND}`; export r; \
7961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7962 $(SET_LIB_PATH) \
7963 for flag in $(EXTRA_HOST_FLAGS); do \
7964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7965 done; \
7966 echo "Doing install-info in gnuserv" ; \
7967 (cd gnuserv && \
7968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7970 "RANLIB=$${RANLIB}" \
7971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7972 install-info) \
7973 || exit 1
7976 .PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
7977 maybe-installcheck-gnuserv:
7979 installcheck-gnuserv: \
7980 configure-gnuserv
7981 @[ -f ./gnuserv/Makefile ] || exit 0; \
7982 r=`${PWD_COMMAND}`; export r; \
7983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7984 $(SET_LIB_PATH) \
7985 for flag in $(EXTRA_HOST_FLAGS); do \
7986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7987 done; \
7988 echo "Doing installcheck in gnuserv" ; \
7989 (cd gnuserv && \
7990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7992 "RANLIB=$${RANLIB}" \
7993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7994 installcheck) \
7995 || exit 1
7998 .PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
7999 maybe-mostlyclean-gnuserv:
8001 mostlyclean-gnuserv:
8002 @[ -f ./gnuserv/Makefile ] || exit 0; \
8003 r=`${PWD_COMMAND}`; export r; \
8004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8005 $(SET_LIB_PATH) \
8006 for flag in $(EXTRA_HOST_FLAGS); do \
8007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8008 done; \
8009 echo "Doing mostlyclean in gnuserv" ; \
8010 (cd gnuserv && \
8011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8013 "RANLIB=$${RANLIB}" \
8014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8015 mostlyclean) \
8016 || exit 1
8019 .PHONY: maybe-clean-gnuserv clean-gnuserv
8020 maybe-clean-gnuserv:
8022 clean-gnuserv:
8023 @[ -f ./gnuserv/Makefile ] || exit 0; \
8024 r=`${PWD_COMMAND}`; export r; \
8025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8026 $(SET_LIB_PATH) \
8027 for flag in $(EXTRA_HOST_FLAGS); do \
8028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8029 done; \
8030 echo "Doing clean in gnuserv" ; \
8031 (cd gnuserv && \
8032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8034 "RANLIB=$${RANLIB}" \
8035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8036 clean) \
8037 || exit 1
8040 .PHONY: maybe-distclean-gnuserv distclean-gnuserv
8041 maybe-distclean-gnuserv:
8043 distclean-gnuserv:
8044 @[ -f ./gnuserv/Makefile ] || exit 0; \
8045 r=`${PWD_COMMAND}`; export r; \
8046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8047 $(SET_LIB_PATH) \
8048 for flag in $(EXTRA_HOST_FLAGS); do \
8049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8050 done; \
8051 echo "Doing distclean in gnuserv" ; \
8052 (cd gnuserv && \
8053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8055 "RANLIB=$${RANLIB}" \
8056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8057 distclean) \
8058 || exit 1
8061 .PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
8062 maybe-maintainer-clean-gnuserv:
8064 maintainer-clean-gnuserv:
8065 @[ -f ./gnuserv/Makefile ] || exit 0; \
8066 r=`${PWD_COMMAND}`; export r; \
8067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8068 $(SET_LIB_PATH) \
8069 for flag in $(EXTRA_HOST_FLAGS); do \
8070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8071 done; \
8072 echo "Doing maintainer-clean in gnuserv" ; \
8073 (cd gnuserv && \
8074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8076 "RANLIB=$${RANLIB}" \
8077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8078 maintainer-clean) \
8079 || exit 1
8083 .PHONY: configure-gprof maybe-configure-gprof
8084 maybe-configure-gprof:
8085 configure-gprof:
8086 @test ! -f gprof/Makefile || exit 0; \
8087 [ -d gprof ] || mkdir gprof; \
8088 r=`${PWD_COMMAND}`; export r; \
8089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8090 CC="$(CC)"; export CC; \
8091 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8092 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8093 CXX="$(CXX)"; export CXX; \
8094 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8095 AR="$(AR)"; export AR; \
8096 AS="$(AS)"; export AS; \
8097 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8098 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8099 LD="$(LD)"; export LD; \
8100 NM="$(NM)"; export NM; \
8101 RANLIB="$(RANLIB)"; export RANLIB; \
8102 WINDRES="$(WINDRES)"; export WINDRES; \
8103 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8104 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8105 echo Configuring in gprof; \
8106 cd gprof || exit 1; \
8107 case $(srcdir) in \
8108 \.) \
8109 srcdiroption="--srcdir=."; \
8110 libsrcdir=".";; \
8111 /* | [A-Za-z]:[\\/]*) \
8112 srcdiroption="--srcdir=$(srcdir)/gprof"; \
8113 libsrcdir="$$s/gprof";; \
8114 *) \
8115 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
8116 libsrcdir="$$s/gprof";; \
8117 esac; \
8118 $(SHELL) $${libsrcdir}/configure \
8119 $(HOST_CONFIGARGS) $${srcdiroption} \
8120 || exit 1
8122 .PHONY: all-gprof maybe-all-gprof
8123 maybe-all-gprof:
8124 all-gprof: configure-gprof
8125 @r=`${PWD_COMMAND}`; export r; \
8126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8127 $(SET_LIB_PATH) \
8128 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
8130 .PHONY: check-gprof maybe-check-gprof
8131 maybe-check-gprof:
8133 check-gprof:
8134 @r=`${PWD_COMMAND}`; export r; \
8135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8136 $(SET_LIB_PATH) \
8137 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
8140 .PHONY: install-gprof maybe-install-gprof
8141 maybe-install-gprof:
8143 install-gprof: installdirs
8144 @r=`${PWD_COMMAND}`; export r; \
8145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8146 $(SET_LIB_PATH) \
8147 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
8150 # Other targets (info, dvi, etc.)
8152 .PHONY: maybe-info-gprof info-gprof
8153 maybe-info-gprof:
8155 info-gprof: \
8156 configure-gprof
8157 @[ -f ./gprof/Makefile ] || exit 0; \
8158 r=`${PWD_COMMAND}`; export r; \
8159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8160 $(SET_LIB_PATH) \
8161 for flag in $(EXTRA_HOST_FLAGS); do \
8162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8163 done; \
8164 echo "Doing info in gprof" ; \
8165 (cd gprof && \
8166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8168 "RANLIB=$${RANLIB}" \
8169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8170 info) \
8171 || exit 1
8174 .PHONY: maybe-dvi-gprof dvi-gprof
8175 maybe-dvi-gprof:
8177 dvi-gprof: \
8178 configure-gprof
8179 @[ -f ./gprof/Makefile ] || exit 0; \
8180 r=`${PWD_COMMAND}`; export r; \
8181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8182 $(SET_LIB_PATH) \
8183 for flag in $(EXTRA_HOST_FLAGS); do \
8184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8185 done; \
8186 echo "Doing dvi in gprof" ; \
8187 (cd gprof && \
8188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8190 "RANLIB=$${RANLIB}" \
8191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8192 dvi) \
8193 || exit 1
8196 .PHONY: maybe-TAGS-gprof TAGS-gprof
8197 maybe-TAGS-gprof:
8199 TAGS-gprof: \
8200 configure-gprof
8201 @[ -f ./gprof/Makefile ] || exit 0; \
8202 r=`${PWD_COMMAND}`; export r; \
8203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8204 $(SET_LIB_PATH) \
8205 for flag in $(EXTRA_HOST_FLAGS); do \
8206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8207 done; \
8208 echo "Doing TAGS in gprof" ; \
8209 (cd gprof && \
8210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8212 "RANLIB=$${RANLIB}" \
8213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8214 TAGS) \
8215 || exit 1
8218 .PHONY: maybe-install-info-gprof install-info-gprof
8219 maybe-install-info-gprof:
8221 install-info-gprof: \
8222 configure-gprof \
8223 info-gprof
8224 @[ -f ./gprof/Makefile ] || exit 0; \
8225 r=`${PWD_COMMAND}`; export r; \
8226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8227 $(SET_LIB_PATH) \
8228 for flag in $(EXTRA_HOST_FLAGS); do \
8229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8230 done; \
8231 echo "Doing install-info in gprof" ; \
8232 (cd gprof && \
8233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8235 "RANLIB=$${RANLIB}" \
8236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8237 install-info) \
8238 || exit 1
8241 .PHONY: maybe-installcheck-gprof installcheck-gprof
8242 maybe-installcheck-gprof:
8244 installcheck-gprof: \
8245 configure-gprof
8246 @[ -f ./gprof/Makefile ] || exit 0; \
8247 r=`${PWD_COMMAND}`; export r; \
8248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8249 $(SET_LIB_PATH) \
8250 for flag in $(EXTRA_HOST_FLAGS); do \
8251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8252 done; \
8253 echo "Doing installcheck in gprof" ; \
8254 (cd gprof && \
8255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8257 "RANLIB=$${RANLIB}" \
8258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8259 installcheck) \
8260 || exit 1
8263 .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
8264 maybe-mostlyclean-gprof:
8266 mostlyclean-gprof:
8267 @[ -f ./gprof/Makefile ] || exit 0; \
8268 r=`${PWD_COMMAND}`; export r; \
8269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8270 $(SET_LIB_PATH) \
8271 for flag in $(EXTRA_HOST_FLAGS); do \
8272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8273 done; \
8274 echo "Doing mostlyclean in gprof" ; \
8275 (cd gprof && \
8276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8278 "RANLIB=$${RANLIB}" \
8279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8280 mostlyclean) \
8281 || exit 1
8284 .PHONY: maybe-clean-gprof clean-gprof
8285 maybe-clean-gprof:
8287 clean-gprof:
8288 @[ -f ./gprof/Makefile ] || exit 0; \
8289 r=`${PWD_COMMAND}`; export r; \
8290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8291 $(SET_LIB_PATH) \
8292 for flag in $(EXTRA_HOST_FLAGS); do \
8293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8294 done; \
8295 echo "Doing clean in gprof" ; \
8296 (cd gprof && \
8297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8299 "RANLIB=$${RANLIB}" \
8300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8301 clean) \
8302 || exit 1
8305 .PHONY: maybe-distclean-gprof distclean-gprof
8306 maybe-distclean-gprof:
8308 distclean-gprof:
8309 @[ -f ./gprof/Makefile ] || exit 0; \
8310 r=`${PWD_COMMAND}`; export r; \
8311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8312 $(SET_LIB_PATH) \
8313 for flag in $(EXTRA_HOST_FLAGS); do \
8314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8315 done; \
8316 echo "Doing distclean in gprof" ; \
8317 (cd gprof && \
8318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8320 "RANLIB=$${RANLIB}" \
8321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8322 distclean) \
8323 || exit 1
8326 .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
8327 maybe-maintainer-clean-gprof:
8329 maintainer-clean-gprof:
8330 @[ -f ./gprof/Makefile ] || exit 0; \
8331 r=`${PWD_COMMAND}`; export r; \
8332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8333 $(SET_LIB_PATH) \
8334 for flag in $(EXTRA_HOST_FLAGS); do \
8335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8336 done; \
8337 echo "Doing maintainer-clean in gprof" ; \
8338 (cd gprof && \
8339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8341 "RANLIB=$${RANLIB}" \
8342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8343 maintainer-clean) \
8344 || exit 1
8348 .PHONY: configure-gzip maybe-configure-gzip
8349 maybe-configure-gzip:
8350 configure-gzip:
8351 @test ! -f gzip/Makefile || exit 0; \
8352 [ -d gzip ] || mkdir gzip; \
8353 r=`${PWD_COMMAND}`; export r; \
8354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8355 CC="$(CC)"; export CC; \
8356 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8357 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8358 CXX="$(CXX)"; export CXX; \
8359 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8360 AR="$(AR)"; export AR; \
8361 AS="$(AS)"; export AS; \
8362 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8363 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8364 LD="$(LD)"; export LD; \
8365 NM="$(NM)"; export NM; \
8366 RANLIB="$(RANLIB)"; export RANLIB; \
8367 WINDRES="$(WINDRES)"; export WINDRES; \
8368 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8369 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8370 echo Configuring in gzip; \
8371 cd gzip || exit 1; \
8372 case $(srcdir) in \
8373 \.) \
8374 srcdiroption="--srcdir=."; \
8375 libsrcdir=".";; \
8376 /* | [A-Za-z]:[\\/]*) \
8377 srcdiroption="--srcdir=$(srcdir)/gzip"; \
8378 libsrcdir="$$s/gzip";; \
8379 *) \
8380 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
8381 libsrcdir="$$s/gzip";; \
8382 esac; \
8383 $(SHELL) $${libsrcdir}/configure \
8384 $(HOST_CONFIGARGS) $${srcdiroption} \
8385 || exit 1
8387 .PHONY: all-gzip maybe-all-gzip
8388 maybe-all-gzip:
8389 all-gzip: configure-gzip
8390 @r=`${PWD_COMMAND}`; export r; \
8391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8392 $(SET_LIB_PATH) \
8393 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
8395 .PHONY: check-gzip maybe-check-gzip
8396 maybe-check-gzip:
8398 check-gzip:
8399 @r=`${PWD_COMMAND}`; export r; \
8400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8401 $(SET_LIB_PATH) \
8402 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
8405 .PHONY: install-gzip maybe-install-gzip
8406 maybe-install-gzip:
8408 install-gzip: installdirs
8409 @r=`${PWD_COMMAND}`; export r; \
8410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8411 $(SET_LIB_PATH) \
8412 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
8415 # Other targets (info, dvi, etc.)
8417 .PHONY: maybe-info-gzip info-gzip
8418 maybe-info-gzip:
8420 info-gzip: \
8421 configure-gzip
8422 @[ -f ./gzip/Makefile ] || exit 0; \
8423 r=`${PWD_COMMAND}`; export r; \
8424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8425 $(SET_LIB_PATH) \
8426 for flag in $(EXTRA_HOST_FLAGS); do \
8427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8428 done; \
8429 echo "Doing info in gzip" ; \
8430 (cd gzip && \
8431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8433 "RANLIB=$${RANLIB}" \
8434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8435 info) \
8436 || exit 1
8439 .PHONY: maybe-dvi-gzip dvi-gzip
8440 maybe-dvi-gzip:
8442 dvi-gzip: \
8443 configure-gzip
8444 @[ -f ./gzip/Makefile ] || exit 0; \
8445 r=`${PWD_COMMAND}`; export r; \
8446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8447 $(SET_LIB_PATH) \
8448 for flag in $(EXTRA_HOST_FLAGS); do \
8449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8450 done; \
8451 echo "Doing dvi in gzip" ; \
8452 (cd gzip && \
8453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8455 "RANLIB=$${RANLIB}" \
8456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8457 dvi) \
8458 || exit 1
8461 .PHONY: maybe-TAGS-gzip TAGS-gzip
8462 maybe-TAGS-gzip:
8464 TAGS-gzip: \
8465 configure-gzip
8466 @[ -f ./gzip/Makefile ] || exit 0; \
8467 r=`${PWD_COMMAND}`; export r; \
8468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8469 $(SET_LIB_PATH) \
8470 for flag in $(EXTRA_HOST_FLAGS); do \
8471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8472 done; \
8473 echo "Doing TAGS in gzip" ; \
8474 (cd gzip && \
8475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8477 "RANLIB=$${RANLIB}" \
8478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8479 TAGS) \
8480 || exit 1
8483 .PHONY: maybe-install-info-gzip install-info-gzip
8484 maybe-install-info-gzip:
8486 install-info-gzip: \
8487 configure-gzip \
8488 info-gzip
8489 @[ -f ./gzip/Makefile ] || exit 0; \
8490 r=`${PWD_COMMAND}`; export r; \
8491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8492 $(SET_LIB_PATH) \
8493 for flag in $(EXTRA_HOST_FLAGS); do \
8494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8495 done; \
8496 echo "Doing install-info in gzip" ; \
8497 (cd gzip && \
8498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8500 "RANLIB=$${RANLIB}" \
8501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8502 install-info) \
8503 || exit 1
8506 .PHONY: maybe-installcheck-gzip installcheck-gzip
8507 maybe-installcheck-gzip:
8509 installcheck-gzip: \
8510 configure-gzip
8511 @[ -f ./gzip/Makefile ] || exit 0; \
8512 r=`${PWD_COMMAND}`; export r; \
8513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8514 $(SET_LIB_PATH) \
8515 for flag in $(EXTRA_HOST_FLAGS); do \
8516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8517 done; \
8518 echo "Doing installcheck in gzip" ; \
8519 (cd gzip && \
8520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8522 "RANLIB=$${RANLIB}" \
8523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8524 installcheck) \
8525 || exit 1
8528 .PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
8529 maybe-mostlyclean-gzip:
8531 mostlyclean-gzip:
8532 @[ -f ./gzip/Makefile ] || exit 0; \
8533 r=`${PWD_COMMAND}`; export r; \
8534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8535 $(SET_LIB_PATH) \
8536 for flag in $(EXTRA_HOST_FLAGS); do \
8537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8538 done; \
8539 echo "Doing mostlyclean in gzip" ; \
8540 (cd gzip && \
8541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8543 "RANLIB=$${RANLIB}" \
8544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8545 mostlyclean) \
8546 || exit 1
8549 .PHONY: maybe-clean-gzip clean-gzip
8550 maybe-clean-gzip:
8552 clean-gzip:
8553 @[ -f ./gzip/Makefile ] || exit 0; \
8554 r=`${PWD_COMMAND}`; export r; \
8555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8556 $(SET_LIB_PATH) \
8557 for flag in $(EXTRA_HOST_FLAGS); do \
8558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8559 done; \
8560 echo "Doing clean in gzip" ; \
8561 (cd gzip && \
8562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8564 "RANLIB=$${RANLIB}" \
8565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8566 clean) \
8567 || exit 1
8570 .PHONY: maybe-distclean-gzip distclean-gzip
8571 maybe-distclean-gzip:
8573 distclean-gzip:
8574 @[ -f ./gzip/Makefile ] || exit 0; \
8575 r=`${PWD_COMMAND}`; export r; \
8576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8577 $(SET_LIB_PATH) \
8578 for flag in $(EXTRA_HOST_FLAGS); do \
8579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8580 done; \
8581 echo "Doing distclean in gzip" ; \
8582 (cd gzip && \
8583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8585 "RANLIB=$${RANLIB}" \
8586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8587 distclean) \
8588 || exit 1
8591 .PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
8592 maybe-maintainer-clean-gzip:
8594 maintainer-clean-gzip:
8595 @[ -f ./gzip/Makefile ] || exit 0; \
8596 r=`${PWD_COMMAND}`; export r; \
8597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8598 $(SET_LIB_PATH) \
8599 for flag in $(EXTRA_HOST_FLAGS); do \
8600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8601 done; \
8602 echo "Doing maintainer-clean in gzip" ; \
8603 (cd gzip && \
8604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8606 "RANLIB=$${RANLIB}" \
8607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8608 maintainer-clean) \
8609 || exit 1
8613 .PHONY: configure-hello maybe-configure-hello
8614 maybe-configure-hello:
8615 configure-hello:
8616 @test ! -f hello/Makefile || exit 0; \
8617 [ -d hello ] || mkdir hello; \
8618 r=`${PWD_COMMAND}`; export r; \
8619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8620 CC="$(CC)"; export CC; \
8621 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8622 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8623 CXX="$(CXX)"; export CXX; \
8624 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8625 AR="$(AR)"; export AR; \
8626 AS="$(AS)"; export AS; \
8627 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8628 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8629 LD="$(LD)"; export LD; \
8630 NM="$(NM)"; export NM; \
8631 RANLIB="$(RANLIB)"; export RANLIB; \
8632 WINDRES="$(WINDRES)"; export WINDRES; \
8633 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8634 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8635 echo Configuring in hello; \
8636 cd hello || exit 1; \
8637 case $(srcdir) in \
8638 \.) \
8639 srcdiroption="--srcdir=."; \
8640 libsrcdir=".";; \
8641 /* | [A-Za-z]:[\\/]*) \
8642 srcdiroption="--srcdir=$(srcdir)/hello"; \
8643 libsrcdir="$$s/hello";; \
8644 *) \
8645 srcdiroption="--srcdir=../$(srcdir)/hello"; \
8646 libsrcdir="$$s/hello";; \
8647 esac; \
8648 $(SHELL) $${libsrcdir}/configure \
8649 $(HOST_CONFIGARGS) $${srcdiroption} \
8650 || exit 1
8652 .PHONY: all-hello maybe-all-hello
8653 maybe-all-hello:
8654 all-hello: configure-hello
8655 @r=`${PWD_COMMAND}`; export r; \
8656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8657 $(SET_LIB_PATH) \
8658 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
8660 .PHONY: check-hello maybe-check-hello
8661 maybe-check-hello:
8663 check-hello:
8664 @r=`${PWD_COMMAND}`; export r; \
8665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8666 $(SET_LIB_PATH) \
8667 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
8670 .PHONY: install-hello maybe-install-hello
8671 maybe-install-hello:
8673 install-hello: installdirs
8674 @r=`${PWD_COMMAND}`; export r; \
8675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8676 $(SET_LIB_PATH) \
8677 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
8680 # Other targets (info, dvi, etc.)
8682 .PHONY: maybe-info-hello info-hello
8683 maybe-info-hello:
8685 info-hello: \
8686 configure-hello
8687 @[ -f ./hello/Makefile ] || exit 0; \
8688 r=`${PWD_COMMAND}`; export r; \
8689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8690 $(SET_LIB_PATH) \
8691 for flag in $(EXTRA_HOST_FLAGS); do \
8692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8693 done; \
8694 echo "Doing info in hello" ; \
8695 (cd hello && \
8696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8698 "RANLIB=$${RANLIB}" \
8699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8700 info) \
8701 || exit 1
8704 .PHONY: maybe-dvi-hello dvi-hello
8705 maybe-dvi-hello:
8707 dvi-hello: \
8708 configure-hello
8709 @[ -f ./hello/Makefile ] || exit 0; \
8710 r=`${PWD_COMMAND}`; export r; \
8711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8712 $(SET_LIB_PATH) \
8713 for flag in $(EXTRA_HOST_FLAGS); do \
8714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8715 done; \
8716 echo "Doing dvi in hello" ; \
8717 (cd hello && \
8718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8720 "RANLIB=$${RANLIB}" \
8721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8722 dvi) \
8723 || exit 1
8726 .PHONY: maybe-TAGS-hello TAGS-hello
8727 maybe-TAGS-hello:
8729 TAGS-hello: \
8730 configure-hello
8731 @[ -f ./hello/Makefile ] || exit 0; \
8732 r=`${PWD_COMMAND}`; export r; \
8733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8734 $(SET_LIB_PATH) \
8735 for flag in $(EXTRA_HOST_FLAGS); do \
8736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8737 done; \
8738 echo "Doing TAGS in hello" ; \
8739 (cd hello && \
8740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8742 "RANLIB=$${RANLIB}" \
8743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8744 TAGS) \
8745 || exit 1
8748 .PHONY: maybe-install-info-hello install-info-hello
8749 maybe-install-info-hello:
8751 install-info-hello: \
8752 configure-hello \
8753 info-hello
8754 @[ -f ./hello/Makefile ] || exit 0; \
8755 r=`${PWD_COMMAND}`; export r; \
8756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8757 $(SET_LIB_PATH) \
8758 for flag in $(EXTRA_HOST_FLAGS); do \
8759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8760 done; \
8761 echo "Doing install-info in hello" ; \
8762 (cd hello && \
8763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8765 "RANLIB=$${RANLIB}" \
8766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8767 install-info) \
8768 || exit 1
8771 .PHONY: maybe-installcheck-hello installcheck-hello
8772 maybe-installcheck-hello:
8774 installcheck-hello: \
8775 configure-hello
8776 @[ -f ./hello/Makefile ] || exit 0; \
8777 r=`${PWD_COMMAND}`; export r; \
8778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8779 $(SET_LIB_PATH) \
8780 for flag in $(EXTRA_HOST_FLAGS); do \
8781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8782 done; \
8783 echo "Doing installcheck in hello" ; \
8784 (cd hello && \
8785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8787 "RANLIB=$${RANLIB}" \
8788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8789 installcheck) \
8790 || exit 1
8793 .PHONY: maybe-mostlyclean-hello mostlyclean-hello
8794 maybe-mostlyclean-hello:
8796 mostlyclean-hello:
8797 @[ -f ./hello/Makefile ] || exit 0; \
8798 r=`${PWD_COMMAND}`; export r; \
8799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8800 $(SET_LIB_PATH) \
8801 for flag in $(EXTRA_HOST_FLAGS); do \
8802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8803 done; \
8804 echo "Doing mostlyclean in hello" ; \
8805 (cd hello && \
8806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8808 "RANLIB=$${RANLIB}" \
8809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8810 mostlyclean) \
8811 || exit 1
8814 .PHONY: maybe-clean-hello clean-hello
8815 maybe-clean-hello:
8817 clean-hello:
8818 @[ -f ./hello/Makefile ] || exit 0; \
8819 r=`${PWD_COMMAND}`; export r; \
8820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8821 $(SET_LIB_PATH) \
8822 for flag in $(EXTRA_HOST_FLAGS); do \
8823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8824 done; \
8825 echo "Doing clean in hello" ; \
8826 (cd hello && \
8827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8829 "RANLIB=$${RANLIB}" \
8830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8831 clean) \
8832 || exit 1
8835 .PHONY: maybe-distclean-hello distclean-hello
8836 maybe-distclean-hello:
8838 distclean-hello:
8839 @[ -f ./hello/Makefile ] || exit 0; \
8840 r=`${PWD_COMMAND}`; export r; \
8841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8842 $(SET_LIB_PATH) \
8843 for flag in $(EXTRA_HOST_FLAGS); do \
8844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8845 done; \
8846 echo "Doing distclean in hello" ; \
8847 (cd hello && \
8848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8850 "RANLIB=$${RANLIB}" \
8851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8852 distclean) \
8853 || exit 1
8856 .PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
8857 maybe-maintainer-clean-hello:
8859 maintainer-clean-hello:
8860 @[ -f ./hello/Makefile ] || exit 0; \
8861 r=`${PWD_COMMAND}`; export r; \
8862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8863 $(SET_LIB_PATH) \
8864 for flag in $(EXTRA_HOST_FLAGS); do \
8865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8866 done; \
8867 echo "Doing maintainer-clean in hello" ; \
8868 (cd hello && \
8869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8871 "RANLIB=$${RANLIB}" \
8872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8873 maintainer-clean) \
8874 || exit 1
8878 .PHONY: configure-indent maybe-configure-indent
8879 maybe-configure-indent:
8880 configure-indent:
8881 @test ! -f indent/Makefile || exit 0; \
8882 [ -d indent ] || mkdir indent; \
8883 r=`${PWD_COMMAND}`; export r; \
8884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8885 CC="$(CC)"; export CC; \
8886 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8887 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8888 CXX="$(CXX)"; export CXX; \
8889 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8890 AR="$(AR)"; export AR; \
8891 AS="$(AS)"; export AS; \
8892 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8893 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8894 LD="$(LD)"; export LD; \
8895 NM="$(NM)"; export NM; \
8896 RANLIB="$(RANLIB)"; export RANLIB; \
8897 WINDRES="$(WINDRES)"; export WINDRES; \
8898 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8899 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8900 echo Configuring in indent; \
8901 cd indent || exit 1; \
8902 case $(srcdir) in \
8903 \.) \
8904 srcdiroption="--srcdir=."; \
8905 libsrcdir=".";; \
8906 /* | [A-Za-z]:[\\/]*) \
8907 srcdiroption="--srcdir=$(srcdir)/indent"; \
8908 libsrcdir="$$s/indent";; \
8909 *) \
8910 srcdiroption="--srcdir=../$(srcdir)/indent"; \
8911 libsrcdir="$$s/indent";; \
8912 esac; \
8913 $(SHELL) $${libsrcdir}/configure \
8914 $(HOST_CONFIGARGS) $${srcdiroption} \
8915 || exit 1
8917 .PHONY: all-indent maybe-all-indent
8918 maybe-all-indent:
8919 all-indent: configure-indent
8920 @r=`${PWD_COMMAND}`; export r; \
8921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8922 $(SET_LIB_PATH) \
8923 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
8925 .PHONY: check-indent maybe-check-indent
8926 maybe-check-indent:
8928 check-indent:
8929 @r=`${PWD_COMMAND}`; export r; \
8930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8931 $(SET_LIB_PATH) \
8932 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
8935 .PHONY: install-indent maybe-install-indent
8936 maybe-install-indent:
8938 install-indent: installdirs
8939 @r=`${PWD_COMMAND}`; export r; \
8940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8941 $(SET_LIB_PATH) \
8942 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
8945 # Other targets (info, dvi, etc.)
8947 .PHONY: maybe-info-indent info-indent
8948 maybe-info-indent:
8950 info-indent: \
8951 configure-indent
8952 @[ -f ./indent/Makefile ] || exit 0; \
8953 r=`${PWD_COMMAND}`; export r; \
8954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8955 $(SET_LIB_PATH) \
8956 for flag in $(EXTRA_HOST_FLAGS); do \
8957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8958 done; \
8959 echo "Doing info in indent" ; \
8960 (cd indent && \
8961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8963 "RANLIB=$${RANLIB}" \
8964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8965 info) \
8966 || exit 1
8969 .PHONY: maybe-dvi-indent dvi-indent
8970 maybe-dvi-indent:
8972 dvi-indent: \
8973 configure-indent
8974 @[ -f ./indent/Makefile ] || exit 0; \
8975 r=`${PWD_COMMAND}`; export r; \
8976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8977 $(SET_LIB_PATH) \
8978 for flag in $(EXTRA_HOST_FLAGS); do \
8979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8980 done; \
8981 echo "Doing dvi in indent" ; \
8982 (cd indent && \
8983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8985 "RANLIB=$${RANLIB}" \
8986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8987 dvi) \
8988 || exit 1
8991 .PHONY: maybe-TAGS-indent TAGS-indent
8992 maybe-TAGS-indent:
8994 TAGS-indent: \
8995 configure-indent
8996 @[ -f ./indent/Makefile ] || exit 0; \
8997 r=`${PWD_COMMAND}`; export r; \
8998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8999 $(SET_LIB_PATH) \
9000 for flag in $(EXTRA_HOST_FLAGS); do \
9001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9002 done; \
9003 echo "Doing TAGS in indent" ; \
9004 (cd indent && \
9005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9007 "RANLIB=$${RANLIB}" \
9008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9009 TAGS) \
9010 || exit 1
9013 .PHONY: maybe-install-info-indent install-info-indent
9014 maybe-install-info-indent:
9016 install-info-indent: \
9017 configure-indent \
9018 info-indent
9019 @[ -f ./indent/Makefile ] || exit 0; \
9020 r=`${PWD_COMMAND}`; export r; \
9021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9022 $(SET_LIB_PATH) \
9023 for flag in $(EXTRA_HOST_FLAGS); do \
9024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9025 done; \
9026 echo "Doing install-info in indent" ; \
9027 (cd indent && \
9028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9030 "RANLIB=$${RANLIB}" \
9031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9032 install-info) \
9033 || exit 1
9036 .PHONY: maybe-installcheck-indent installcheck-indent
9037 maybe-installcheck-indent:
9039 installcheck-indent: \
9040 configure-indent
9041 @[ -f ./indent/Makefile ] || exit 0; \
9042 r=`${PWD_COMMAND}`; export r; \
9043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9044 $(SET_LIB_PATH) \
9045 for flag in $(EXTRA_HOST_FLAGS); do \
9046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9047 done; \
9048 echo "Doing installcheck in indent" ; \
9049 (cd indent && \
9050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9052 "RANLIB=$${RANLIB}" \
9053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9054 installcheck) \
9055 || exit 1
9058 .PHONY: maybe-mostlyclean-indent mostlyclean-indent
9059 maybe-mostlyclean-indent:
9061 mostlyclean-indent:
9062 @[ -f ./indent/Makefile ] || exit 0; \
9063 r=`${PWD_COMMAND}`; export r; \
9064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9065 $(SET_LIB_PATH) \
9066 for flag in $(EXTRA_HOST_FLAGS); do \
9067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9068 done; \
9069 echo "Doing mostlyclean in indent" ; \
9070 (cd indent && \
9071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9073 "RANLIB=$${RANLIB}" \
9074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9075 mostlyclean) \
9076 || exit 1
9079 .PHONY: maybe-clean-indent clean-indent
9080 maybe-clean-indent:
9082 clean-indent:
9083 @[ -f ./indent/Makefile ] || exit 0; \
9084 r=`${PWD_COMMAND}`; export r; \
9085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9086 $(SET_LIB_PATH) \
9087 for flag in $(EXTRA_HOST_FLAGS); do \
9088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9089 done; \
9090 echo "Doing clean in indent" ; \
9091 (cd indent && \
9092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9094 "RANLIB=$${RANLIB}" \
9095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9096 clean) \
9097 || exit 1
9100 .PHONY: maybe-distclean-indent distclean-indent
9101 maybe-distclean-indent:
9103 distclean-indent:
9104 @[ -f ./indent/Makefile ] || exit 0; \
9105 r=`${PWD_COMMAND}`; export r; \
9106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9107 $(SET_LIB_PATH) \
9108 for flag in $(EXTRA_HOST_FLAGS); do \
9109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9110 done; \
9111 echo "Doing distclean in indent" ; \
9112 (cd indent && \
9113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9115 "RANLIB=$${RANLIB}" \
9116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9117 distclean) \
9118 || exit 1
9121 .PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
9122 maybe-maintainer-clean-indent:
9124 maintainer-clean-indent:
9125 @[ -f ./indent/Makefile ] || exit 0; \
9126 r=`${PWD_COMMAND}`; export r; \
9127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9128 $(SET_LIB_PATH) \
9129 for flag in $(EXTRA_HOST_FLAGS); do \
9130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9131 done; \
9132 echo "Doing maintainer-clean in indent" ; \
9133 (cd indent && \
9134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9136 "RANLIB=$${RANLIB}" \
9137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9138 maintainer-clean) \
9139 || exit 1
9143 .PHONY: configure-intl maybe-configure-intl
9144 maybe-configure-intl:
9145 configure-intl:
9146 @test ! -f intl/Makefile || exit 0; \
9147 [ -d intl ] || mkdir intl; \
9148 r=`${PWD_COMMAND}`; export r; \
9149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9150 CC="$(CC)"; export CC; \
9151 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9152 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9153 CXX="$(CXX)"; export CXX; \
9154 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9155 AR="$(AR)"; export AR; \
9156 AS="$(AS)"; export AS; \
9157 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9158 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9159 LD="$(LD)"; export LD; \
9160 NM="$(NM)"; export NM; \
9161 RANLIB="$(RANLIB)"; export RANLIB; \
9162 WINDRES="$(WINDRES)"; export WINDRES; \
9163 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9164 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9165 echo Configuring in intl; \
9166 cd intl || exit 1; \
9167 case $(srcdir) in \
9168 \.) \
9169 srcdiroption="--srcdir=."; \
9170 libsrcdir=".";; \
9171 /* | [A-Za-z]:[\\/]*) \
9172 srcdiroption="--srcdir=$(srcdir)/intl"; \
9173 libsrcdir="$$s/intl";; \
9174 *) \
9175 srcdiroption="--srcdir=../$(srcdir)/intl"; \
9176 libsrcdir="$$s/intl";; \
9177 esac; \
9178 $(SHELL) $${libsrcdir}/configure \
9179 $(HOST_CONFIGARGS) $${srcdiroption} \
9180 || exit 1
9182 .PHONY: all-intl maybe-all-intl
9183 maybe-all-intl:
9184 all-intl: configure-intl
9185 @r=`${PWD_COMMAND}`; export r; \
9186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9187 $(SET_LIB_PATH) \
9188 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
9190 .PHONY: check-intl maybe-check-intl
9191 maybe-check-intl:
9193 check-intl:
9194 @r=`${PWD_COMMAND}`; export r; \
9195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9196 $(SET_LIB_PATH) \
9197 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
9200 .PHONY: install-intl maybe-install-intl
9201 maybe-install-intl:
9203 install-intl: installdirs
9204 @r=`${PWD_COMMAND}`; export r; \
9205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9206 $(SET_LIB_PATH) \
9207 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
9210 # Other targets (info, dvi, etc.)
9212 .PHONY: maybe-info-intl info-intl
9213 maybe-info-intl:
9215 info-intl: \
9216 configure-intl
9217 @[ -f ./intl/Makefile ] || exit 0; \
9218 r=`${PWD_COMMAND}`; export r; \
9219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9220 $(SET_LIB_PATH) \
9221 for flag in $(EXTRA_HOST_FLAGS); do \
9222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9223 done; \
9224 echo "Doing info in intl" ; \
9225 (cd intl && \
9226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9228 "RANLIB=$${RANLIB}" \
9229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9230 info) \
9231 || exit 1
9234 .PHONY: maybe-dvi-intl dvi-intl
9235 maybe-dvi-intl:
9237 dvi-intl: \
9238 configure-intl
9239 @[ -f ./intl/Makefile ] || exit 0; \
9240 r=`${PWD_COMMAND}`; export r; \
9241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9242 $(SET_LIB_PATH) \
9243 for flag in $(EXTRA_HOST_FLAGS); do \
9244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9245 done; \
9246 echo "Doing dvi in intl" ; \
9247 (cd intl && \
9248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9250 "RANLIB=$${RANLIB}" \
9251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9252 dvi) \
9253 || exit 1
9256 .PHONY: maybe-TAGS-intl TAGS-intl
9257 maybe-TAGS-intl:
9259 TAGS-intl: \
9260 configure-intl
9261 @[ -f ./intl/Makefile ] || exit 0; \
9262 r=`${PWD_COMMAND}`; export r; \
9263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9264 $(SET_LIB_PATH) \
9265 for flag in $(EXTRA_HOST_FLAGS); do \
9266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9267 done; \
9268 echo "Doing TAGS in intl" ; \
9269 (cd intl && \
9270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9272 "RANLIB=$${RANLIB}" \
9273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9274 TAGS) \
9275 || exit 1
9278 .PHONY: maybe-install-info-intl install-info-intl
9279 maybe-install-info-intl:
9281 install-info-intl: \
9282 configure-intl \
9283 info-intl
9284 @[ -f ./intl/Makefile ] || exit 0; \
9285 r=`${PWD_COMMAND}`; export r; \
9286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9287 $(SET_LIB_PATH) \
9288 for flag in $(EXTRA_HOST_FLAGS); do \
9289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9290 done; \
9291 echo "Doing install-info in intl" ; \
9292 (cd intl && \
9293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9295 "RANLIB=$${RANLIB}" \
9296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9297 install-info) \
9298 || exit 1
9301 .PHONY: maybe-installcheck-intl installcheck-intl
9302 maybe-installcheck-intl:
9304 installcheck-intl: \
9305 configure-intl
9306 @[ -f ./intl/Makefile ] || exit 0; \
9307 r=`${PWD_COMMAND}`; export r; \
9308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9309 $(SET_LIB_PATH) \
9310 for flag in $(EXTRA_HOST_FLAGS); do \
9311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9312 done; \
9313 echo "Doing installcheck in intl" ; \
9314 (cd intl && \
9315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9317 "RANLIB=$${RANLIB}" \
9318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9319 installcheck) \
9320 || exit 1
9323 .PHONY: maybe-mostlyclean-intl mostlyclean-intl
9324 maybe-mostlyclean-intl:
9326 mostlyclean-intl:
9327 @[ -f ./intl/Makefile ] || exit 0; \
9328 r=`${PWD_COMMAND}`; export r; \
9329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9330 $(SET_LIB_PATH) \
9331 for flag in $(EXTRA_HOST_FLAGS); do \
9332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9333 done; \
9334 echo "Doing mostlyclean in intl" ; \
9335 (cd intl && \
9336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9338 "RANLIB=$${RANLIB}" \
9339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9340 mostlyclean) \
9341 || exit 1
9344 .PHONY: maybe-clean-intl clean-intl
9345 maybe-clean-intl:
9347 clean-intl:
9348 @[ -f ./intl/Makefile ] || exit 0; \
9349 r=`${PWD_COMMAND}`; export r; \
9350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9351 $(SET_LIB_PATH) \
9352 for flag in $(EXTRA_HOST_FLAGS); do \
9353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9354 done; \
9355 echo "Doing clean in intl" ; \
9356 (cd intl && \
9357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9359 "RANLIB=$${RANLIB}" \
9360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9361 clean) \
9362 || exit 1
9365 .PHONY: maybe-distclean-intl distclean-intl
9366 maybe-distclean-intl:
9368 distclean-intl:
9369 @[ -f ./intl/Makefile ] || exit 0; \
9370 r=`${PWD_COMMAND}`; export r; \
9371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9372 $(SET_LIB_PATH) \
9373 for flag in $(EXTRA_HOST_FLAGS); do \
9374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9375 done; \
9376 echo "Doing distclean in intl" ; \
9377 (cd intl && \
9378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9380 "RANLIB=$${RANLIB}" \
9381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9382 distclean) \
9383 || exit 1
9386 .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
9387 maybe-maintainer-clean-intl:
9389 maintainer-clean-intl:
9390 @[ -f ./intl/Makefile ] || exit 0; \
9391 r=`${PWD_COMMAND}`; export r; \
9392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9393 $(SET_LIB_PATH) \
9394 for flag in $(EXTRA_HOST_FLAGS); do \
9395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9396 done; \
9397 echo "Doing maintainer-clean in intl" ; \
9398 (cd intl && \
9399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9401 "RANLIB=$${RANLIB}" \
9402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9403 maintainer-clean) \
9404 || exit 1
9408 .PHONY: configure-tcl maybe-configure-tcl
9409 maybe-configure-tcl:
9410 configure-tcl:
9411 @test ! -f tcl/Makefile || exit 0; \
9412 [ -d tcl ] || mkdir tcl; \
9413 r=`${PWD_COMMAND}`; export r; \
9414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9415 CC="$(CC)"; export CC; \
9416 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9417 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9418 CXX="$(CXX)"; export CXX; \
9419 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9420 AR="$(AR)"; export AR; \
9421 AS="$(AS)"; export AS; \
9422 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9423 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9424 LD="$(LD)"; export LD; \
9425 NM="$(NM)"; export NM; \
9426 RANLIB="$(RANLIB)"; export RANLIB; \
9427 WINDRES="$(WINDRES)"; export WINDRES; \
9428 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9429 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9430 echo Configuring in tcl; \
9431 cd tcl || exit 1; \
9432 case $(srcdir) in \
9433 \.) \
9434 srcdiroption="--srcdir=."; \
9435 libsrcdir=".";; \
9436 /* | [A-Za-z]:[\\/]*) \
9437 srcdiroption="--srcdir=$(srcdir)/tcl"; \
9438 libsrcdir="$$s/tcl";; \
9439 *) \
9440 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
9441 libsrcdir="$$s/tcl";; \
9442 esac; \
9443 $(SHELL) $${libsrcdir}/configure \
9444 $(HOST_CONFIGARGS) $${srcdiroption} \
9445 || exit 1
9447 .PHONY: all-tcl maybe-all-tcl
9448 maybe-all-tcl:
9449 all-tcl: configure-tcl
9450 @r=`${PWD_COMMAND}`; export r; \
9451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9452 $(SET_LIB_PATH) \
9453 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
9455 .PHONY: check-tcl maybe-check-tcl
9456 maybe-check-tcl:
9458 check-tcl:
9459 @r=`${PWD_COMMAND}`; export r; \
9460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9461 $(SET_LIB_PATH) \
9462 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
9465 .PHONY: install-tcl maybe-install-tcl
9466 maybe-install-tcl:
9468 install-tcl: installdirs
9469 @r=`${PWD_COMMAND}`; export r; \
9470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9471 $(SET_LIB_PATH) \
9472 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
9475 # Other targets (info, dvi, etc.)
9477 .PHONY: maybe-info-tcl info-tcl
9478 maybe-info-tcl:
9480 info-tcl: \
9481 configure-tcl
9482 @[ -f ./tcl/Makefile ] || exit 0; \
9483 r=`${PWD_COMMAND}`; export r; \
9484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9485 $(SET_LIB_PATH) \
9486 for flag in $(EXTRA_HOST_FLAGS); do \
9487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9488 done; \
9489 echo "Doing info in tcl" ; \
9490 (cd tcl && \
9491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9493 "RANLIB=$${RANLIB}" \
9494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9495 info) \
9496 || exit 1
9499 .PHONY: maybe-dvi-tcl dvi-tcl
9500 maybe-dvi-tcl:
9502 dvi-tcl: \
9503 configure-tcl
9504 @[ -f ./tcl/Makefile ] || exit 0; \
9505 r=`${PWD_COMMAND}`; export r; \
9506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9507 $(SET_LIB_PATH) \
9508 for flag in $(EXTRA_HOST_FLAGS); do \
9509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9510 done; \
9511 echo "Doing dvi in tcl" ; \
9512 (cd tcl && \
9513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9515 "RANLIB=$${RANLIB}" \
9516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9517 dvi) \
9518 || exit 1
9521 .PHONY: maybe-TAGS-tcl TAGS-tcl
9522 maybe-TAGS-tcl:
9524 TAGS-tcl: \
9525 configure-tcl
9526 @[ -f ./tcl/Makefile ] || exit 0; \
9527 r=`${PWD_COMMAND}`; export r; \
9528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9529 $(SET_LIB_PATH) \
9530 for flag in $(EXTRA_HOST_FLAGS); do \
9531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9532 done; \
9533 echo "Doing TAGS in tcl" ; \
9534 (cd tcl && \
9535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9537 "RANLIB=$${RANLIB}" \
9538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9539 TAGS) \
9540 || exit 1
9543 .PHONY: maybe-install-info-tcl install-info-tcl
9544 maybe-install-info-tcl:
9546 install-info-tcl: \
9547 configure-tcl \
9548 info-tcl
9549 @[ -f ./tcl/Makefile ] || exit 0; \
9550 r=`${PWD_COMMAND}`; export r; \
9551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9552 $(SET_LIB_PATH) \
9553 for flag in $(EXTRA_HOST_FLAGS); do \
9554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9555 done; \
9556 echo "Doing install-info in tcl" ; \
9557 (cd tcl && \
9558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9560 "RANLIB=$${RANLIB}" \
9561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9562 install-info) \
9563 || exit 1
9566 .PHONY: maybe-installcheck-tcl installcheck-tcl
9567 maybe-installcheck-tcl:
9569 installcheck-tcl: \
9570 configure-tcl
9571 @[ -f ./tcl/Makefile ] || exit 0; \
9572 r=`${PWD_COMMAND}`; export r; \
9573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9574 $(SET_LIB_PATH) \
9575 for flag in $(EXTRA_HOST_FLAGS); do \
9576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9577 done; \
9578 echo "Doing installcheck in tcl" ; \
9579 (cd tcl && \
9580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9582 "RANLIB=$${RANLIB}" \
9583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9584 installcheck) \
9585 || exit 1
9588 .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
9589 maybe-mostlyclean-tcl:
9591 # tcl doesn't support mostlyclean.
9592 mostlyclean-tcl:
9595 .PHONY: maybe-clean-tcl clean-tcl
9596 maybe-clean-tcl:
9598 clean-tcl:
9599 @[ -f ./tcl/Makefile ] || exit 0; \
9600 r=`${PWD_COMMAND}`; export r; \
9601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9602 $(SET_LIB_PATH) \
9603 for flag in $(EXTRA_HOST_FLAGS); do \
9604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9605 done; \
9606 echo "Doing clean in tcl" ; \
9607 (cd tcl && \
9608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9610 "RANLIB=$${RANLIB}" \
9611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9612 clean) \
9613 || exit 1
9616 .PHONY: maybe-distclean-tcl distclean-tcl
9617 maybe-distclean-tcl:
9619 distclean-tcl:
9620 @[ -f ./tcl/Makefile ] || exit 0; \
9621 r=`${PWD_COMMAND}`; export r; \
9622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9623 $(SET_LIB_PATH) \
9624 for flag in $(EXTRA_HOST_FLAGS); do \
9625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9626 done; \
9627 echo "Doing distclean in tcl" ; \
9628 (cd tcl && \
9629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9631 "RANLIB=$${RANLIB}" \
9632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9633 distclean) \
9634 || exit 1
9637 .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
9638 maybe-maintainer-clean-tcl:
9640 maintainer-clean-tcl:
9641 @[ -f ./tcl/Makefile ] || exit 0; \
9642 r=`${PWD_COMMAND}`; export r; \
9643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9644 $(SET_LIB_PATH) \
9645 for flag in $(EXTRA_HOST_FLAGS); do \
9646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9647 done; \
9648 echo "Doing maintainer-clean in tcl" ; \
9649 (cd tcl && \
9650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9652 "RANLIB=$${RANLIB}" \
9653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9654 maintainer-clean) \
9655 || exit 1
9659 .PHONY: configure-itcl maybe-configure-itcl
9660 maybe-configure-itcl:
9661 configure-itcl:
9662 @test ! -f itcl/Makefile || exit 0; \
9663 [ -d itcl ] || mkdir itcl; \
9664 r=`${PWD_COMMAND}`; export r; \
9665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9666 CC="$(CC)"; export CC; \
9667 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9668 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9669 CXX="$(CXX)"; export CXX; \
9670 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9671 AR="$(AR)"; export AR; \
9672 AS="$(AS)"; export AS; \
9673 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9674 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9675 LD="$(LD)"; export LD; \
9676 NM="$(NM)"; export NM; \
9677 RANLIB="$(RANLIB)"; export RANLIB; \
9678 WINDRES="$(WINDRES)"; export WINDRES; \
9679 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9680 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9681 echo Configuring in itcl; \
9682 cd itcl || exit 1; \
9683 case $(srcdir) in \
9684 \.) \
9685 srcdiroption="--srcdir=."; \
9686 libsrcdir=".";; \
9687 /* | [A-Za-z]:[\\/]*) \
9688 srcdiroption="--srcdir=$(srcdir)/itcl"; \
9689 libsrcdir="$$s/itcl";; \
9690 *) \
9691 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
9692 libsrcdir="$$s/itcl";; \
9693 esac; \
9694 $(SHELL) $${libsrcdir}/configure \
9695 $(HOST_CONFIGARGS) $${srcdiroption} \
9696 || exit 1
9698 .PHONY: all-itcl maybe-all-itcl
9699 maybe-all-itcl:
9700 all-itcl: configure-itcl
9701 @r=`${PWD_COMMAND}`; export r; \
9702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9703 $(SET_LIB_PATH) \
9704 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
9706 .PHONY: check-itcl maybe-check-itcl
9707 maybe-check-itcl:
9709 check-itcl:
9710 @r=`${PWD_COMMAND}`; export r; \
9711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9712 $(SET_LIB_PATH) \
9713 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
9716 .PHONY: install-itcl maybe-install-itcl
9717 maybe-install-itcl:
9719 install-itcl: installdirs
9720 @r=`${PWD_COMMAND}`; export r; \
9721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9722 $(SET_LIB_PATH) \
9723 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
9726 # Other targets (info, dvi, etc.)
9728 .PHONY: maybe-info-itcl info-itcl
9729 maybe-info-itcl:
9731 info-itcl: \
9732 configure-itcl
9733 @[ -f ./itcl/Makefile ] || exit 0; \
9734 r=`${PWD_COMMAND}`; export r; \
9735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9736 $(SET_LIB_PATH) \
9737 for flag in $(EXTRA_HOST_FLAGS); do \
9738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9739 done; \
9740 echo "Doing info in itcl" ; \
9741 (cd itcl && \
9742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9744 "RANLIB=$${RANLIB}" \
9745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9746 info) \
9747 || exit 1
9750 .PHONY: maybe-dvi-itcl dvi-itcl
9751 maybe-dvi-itcl:
9753 dvi-itcl: \
9754 configure-itcl
9755 @[ -f ./itcl/Makefile ] || exit 0; \
9756 r=`${PWD_COMMAND}`; export r; \
9757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9758 $(SET_LIB_PATH) \
9759 for flag in $(EXTRA_HOST_FLAGS); do \
9760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9761 done; \
9762 echo "Doing dvi in itcl" ; \
9763 (cd itcl && \
9764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9766 "RANLIB=$${RANLIB}" \
9767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9768 dvi) \
9769 || exit 1
9772 .PHONY: maybe-TAGS-itcl TAGS-itcl
9773 maybe-TAGS-itcl:
9775 TAGS-itcl: \
9776 configure-itcl
9777 @[ -f ./itcl/Makefile ] || exit 0; \
9778 r=`${PWD_COMMAND}`; export r; \
9779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9780 $(SET_LIB_PATH) \
9781 for flag in $(EXTRA_HOST_FLAGS); do \
9782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9783 done; \
9784 echo "Doing TAGS in itcl" ; \
9785 (cd itcl && \
9786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9788 "RANLIB=$${RANLIB}" \
9789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9790 TAGS) \
9791 || exit 1
9794 .PHONY: maybe-install-info-itcl install-info-itcl
9795 maybe-install-info-itcl:
9797 install-info-itcl: \
9798 configure-itcl \
9799 info-itcl
9800 @[ -f ./itcl/Makefile ] || exit 0; \
9801 r=`${PWD_COMMAND}`; export r; \
9802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9803 $(SET_LIB_PATH) \
9804 for flag in $(EXTRA_HOST_FLAGS); do \
9805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9806 done; \
9807 echo "Doing install-info in itcl" ; \
9808 (cd itcl && \
9809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9811 "RANLIB=$${RANLIB}" \
9812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9813 install-info) \
9814 || exit 1
9817 .PHONY: maybe-installcheck-itcl installcheck-itcl
9818 maybe-installcheck-itcl:
9820 installcheck-itcl: \
9821 configure-itcl
9822 @[ -f ./itcl/Makefile ] || exit 0; \
9823 r=`${PWD_COMMAND}`; export r; \
9824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9825 $(SET_LIB_PATH) \
9826 for flag in $(EXTRA_HOST_FLAGS); do \
9827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9828 done; \
9829 echo "Doing installcheck in itcl" ; \
9830 (cd itcl && \
9831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9833 "RANLIB=$${RANLIB}" \
9834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9835 installcheck) \
9836 || exit 1
9839 .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
9840 maybe-mostlyclean-itcl:
9842 mostlyclean-itcl:
9843 @[ -f ./itcl/Makefile ] || exit 0; \
9844 r=`${PWD_COMMAND}`; export r; \
9845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9846 $(SET_LIB_PATH) \
9847 for flag in $(EXTRA_HOST_FLAGS); do \
9848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9849 done; \
9850 echo "Doing mostlyclean in itcl" ; \
9851 (cd itcl && \
9852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9854 "RANLIB=$${RANLIB}" \
9855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9856 mostlyclean) \
9857 || exit 1
9860 .PHONY: maybe-clean-itcl clean-itcl
9861 maybe-clean-itcl:
9863 clean-itcl:
9864 @[ -f ./itcl/Makefile ] || exit 0; \
9865 r=`${PWD_COMMAND}`; export r; \
9866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9867 $(SET_LIB_PATH) \
9868 for flag in $(EXTRA_HOST_FLAGS); do \
9869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9870 done; \
9871 echo "Doing clean in itcl" ; \
9872 (cd itcl && \
9873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9875 "RANLIB=$${RANLIB}" \
9876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9877 clean) \
9878 || exit 1
9881 .PHONY: maybe-distclean-itcl distclean-itcl
9882 maybe-distclean-itcl:
9884 distclean-itcl:
9885 @[ -f ./itcl/Makefile ] || exit 0; \
9886 r=`${PWD_COMMAND}`; export r; \
9887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9888 $(SET_LIB_PATH) \
9889 for flag in $(EXTRA_HOST_FLAGS); do \
9890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9891 done; \
9892 echo "Doing distclean in itcl" ; \
9893 (cd itcl && \
9894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9896 "RANLIB=$${RANLIB}" \
9897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9898 distclean) \
9899 || exit 1
9902 .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
9903 maybe-maintainer-clean-itcl:
9905 maintainer-clean-itcl:
9906 @[ -f ./itcl/Makefile ] || exit 0; \
9907 r=`${PWD_COMMAND}`; export r; \
9908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9909 $(SET_LIB_PATH) \
9910 for flag in $(EXTRA_HOST_FLAGS); do \
9911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9912 done; \
9913 echo "Doing maintainer-clean in itcl" ; \
9914 (cd itcl && \
9915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9917 "RANLIB=$${RANLIB}" \
9918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9919 maintainer-clean) \
9920 || exit 1
9924 .PHONY: configure-ld maybe-configure-ld
9925 maybe-configure-ld:
9926 configure-ld:
9927 @test ! -f ld/Makefile || exit 0; \
9928 [ -d ld ] || mkdir ld; \
9929 r=`${PWD_COMMAND}`; export r; \
9930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9931 CC="$(CC)"; export CC; \
9932 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9933 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9934 CXX="$(CXX)"; export CXX; \
9935 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9936 AR="$(AR)"; export AR; \
9937 AS="$(AS)"; export AS; \
9938 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9939 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9940 LD="$(LD)"; export LD; \
9941 NM="$(NM)"; export NM; \
9942 RANLIB="$(RANLIB)"; export RANLIB; \
9943 WINDRES="$(WINDRES)"; export WINDRES; \
9944 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9945 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9946 echo Configuring in ld; \
9947 cd ld || exit 1; \
9948 case $(srcdir) in \
9949 \.) \
9950 srcdiroption="--srcdir=."; \
9951 libsrcdir=".";; \
9952 /* | [A-Za-z]:[\\/]*) \
9953 srcdiroption="--srcdir=$(srcdir)/ld"; \
9954 libsrcdir="$$s/ld";; \
9955 *) \
9956 srcdiroption="--srcdir=../$(srcdir)/ld"; \
9957 libsrcdir="$$s/ld";; \
9958 esac; \
9959 $(SHELL) $${libsrcdir}/configure \
9960 $(HOST_CONFIGARGS) $${srcdiroption} \
9961 || exit 1
9963 .PHONY: all-ld maybe-all-ld
9964 maybe-all-ld:
9965 all-ld: configure-ld
9966 @r=`${PWD_COMMAND}`; export r; \
9967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9968 $(SET_LIB_PATH) \
9969 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
9971 .PHONY: check-ld maybe-check-ld
9972 maybe-check-ld:
9974 check-ld:
9975 @r=`${PWD_COMMAND}`; export r; \
9976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9977 $(SET_LIB_PATH) \
9978 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
9981 .PHONY: install-ld maybe-install-ld
9982 maybe-install-ld:
9984 install-ld: installdirs
9985 @r=`${PWD_COMMAND}`; export r; \
9986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9987 $(SET_LIB_PATH) \
9988 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
9991 # Other targets (info, dvi, etc.)
9993 .PHONY: maybe-info-ld info-ld
9994 maybe-info-ld:
9996 info-ld: \
9997 configure-ld
9998 @[ -f ./ld/Makefile ] || exit 0; \
9999 r=`${PWD_COMMAND}`; export r; \
10000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10001 $(SET_LIB_PATH) \
10002 for flag in $(EXTRA_HOST_FLAGS); do \
10003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10004 done; \
10005 echo "Doing info in ld" ; \
10006 (cd ld && \
10007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10009 "RANLIB=$${RANLIB}" \
10010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10011 info) \
10012 || exit 1
10015 .PHONY: maybe-dvi-ld dvi-ld
10016 maybe-dvi-ld:
10018 dvi-ld: \
10019 configure-ld
10020 @[ -f ./ld/Makefile ] || exit 0; \
10021 r=`${PWD_COMMAND}`; export r; \
10022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10023 $(SET_LIB_PATH) \
10024 for flag in $(EXTRA_HOST_FLAGS); do \
10025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10026 done; \
10027 echo "Doing dvi in ld" ; \
10028 (cd ld && \
10029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10031 "RANLIB=$${RANLIB}" \
10032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10033 dvi) \
10034 || exit 1
10037 .PHONY: maybe-TAGS-ld TAGS-ld
10038 maybe-TAGS-ld:
10040 TAGS-ld: \
10041 configure-ld
10042 @[ -f ./ld/Makefile ] || exit 0; \
10043 r=`${PWD_COMMAND}`; export r; \
10044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10045 $(SET_LIB_PATH) \
10046 for flag in $(EXTRA_HOST_FLAGS); do \
10047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10048 done; \
10049 echo "Doing TAGS in ld" ; \
10050 (cd ld && \
10051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10053 "RANLIB=$${RANLIB}" \
10054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10055 TAGS) \
10056 || exit 1
10059 .PHONY: maybe-install-info-ld install-info-ld
10060 maybe-install-info-ld:
10062 install-info-ld: \
10063 configure-ld \
10064 info-ld
10065 @[ -f ./ld/Makefile ] || exit 0; \
10066 r=`${PWD_COMMAND}`; export r; \
10067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10068 $(SET_LIB_PATH) \
10069 for flag in $(EXTRA_HOST_FLAGS); do \
10070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10071 done; \
10072 echo "Doing install-info in ld" ; \
10073 (cd ld && \
10074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10076 "RANLIB=$${RANLIB}" \
10077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10078 install-info) \
10079 || exit 1
10082 .PHONY: maybe-installcheck-ld installcheck-ld
10083 maybe-installcheck-ld:
10085 installcheck-ld: \
10086 configure-ld
10087 @[ -f ./ld/Makefile ] || exit 0; \
10088 r=`${PWD_COMMAND}`; export r; \
10089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10090 $(SET_LIB_PATH) \
10091 for flag in $(EXTRA_HOST_FLAGS); do \
10092 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10093 done; \
10094 echo "Doing installcheck in ld" ; \
10095 (cd ld && \
10096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10098 "RANLIB=$${RANLIB}" \
10099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10100 installcheck) \
10101 || exit 1
10104 .PHONY: maybe-mostlyclean-ld mostlyclean-ld
10105 maybe-mostlyclean-ld:
10107 mostlyclean-ld:
10108 @[ -f ./ld/Makefile ] || exit 0; \
10109 r=`${PWD_COMMAND}`; export r; \
10110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10111 $(SET_LIB_PATH) \
10112 for flag in $(EXTRA_HOST_FLAGS); do \
10113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10114 done; \
10115 echo "Doing mostlyclean in ld" ; \
10116 (cd ld && \
10117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10119 "RANLIB=$${RANLIB}" \
10120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10121 mostlyclean) \
10122 || exit 1
10125 .PHONY: maybe-clean-ld clean-ld
10126 maybe-clean-ld:
10128 clean-ld:
10129 @[ -f ./ld/Makefile ] || exit 0; \
10130 r=`${PWD_COMMAND}`; export r; \
10131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10132 $(SET_LIB_PATH) \
10133 for flag in $(EXTRA_HOST_FLAGS); do \
10134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10135 done; \
10136 echo "Doing clean in ld" ; \
10137 (cd ld && \
10138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10140 "RANLIB=$${RANLIB}" \
10141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10142 clean) \
10143 || exit 1
10146 .PHONY: maybe-distclean-ld distclean-ld
10147 maybe-distclean-ld:
10149 distclean-ld:
10150 @[ -f ./ld/Makefile ] || exit 0; \
10151 r=`${PWD_COMMAND}`; export r; \
10152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10153 $(SET_LIB_PATH) \
10154 for flag in $(EXTRA_HOST_FLAGS); do \
10155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10156 done; \
10157 echo "Doing distclean in ld" ; \
10158 (cd ld && \
10159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10161 "RANLIB=$${RANLIB}" \
10162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10163 distclean) \
10164 || exit 1
10167 .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
10168 maybe-maintainer-clean-ld:
10170 maintainer-clean-ld:
10171 @[ -f ./ld/Makefile ] || exit 0; \
10172 r=`${PWD_COMMAND}`; export r; \
10173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10174 $(SET_LIB_PATH) \
10175 for flag in $(EXTRA_HOST_FLAGS); do \
10176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10177 done; \
10178 echo "Doing maintainer-clean in ld" ; \
10179 (cd ld && \
10180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10182 "RANLIB=$${RANLIB}" \
10183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10184 maintainer-clean) \
10185 || exit 1
10189 .PHONY: configure-libgui maybe-configure-libgui
10190 maybe-configure-libgui:
10191 configure-libgui:
10192 @test ! -f libgui/Makefile || exit 0; \
10193 [ -d libgui ] || mkdir libgui; \
10194 r=`${PWD_COMMAND}`; export r; \
10195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10196 CC="$(CC)"; export CC; \
10197 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10198 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10199 CXX="$(CXX)"; export CXX; \
10200 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10201 AR="$(AR)"; export AR; \
10202 AS="$(AS)"; export AS; \
10203 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10204 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10205 LD="$(LD)"; export LD; \
10206 NM="$(NM)"; export NM; \
10207 RANLIB="$(RANLIB)"; export RANLIB; \
10208 WINDRES="$(WINDRES)"; export WINDRES; \
10209 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10210 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10211 echo Configuring in libgui; \
10212 cd libgui || exit 1; \
10213 case $(srcdir) in \
10214 \.) \
10215 srcdiroption="--srcdir=."; \
10216 libsrcdir=".";; \
10217 /* | [A-Za-z]:[\\/]*) \
10218 srcdiroption="--srcdir=$(srcdir)/libgui"; \
10219 libsrcdir="$$s/libgui";; \
10220 *) \
10221 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
10222 libsrcdir="$$s/libgui";; \
10223 esac; \
10224 $(SHELL) $${libsrcdir}/configure \
10225 $(HOST_CONFIGARGS) $${srcdiroption} \
10226 || exit 1
10228 .PHONY: all-libgui maybe-all-libgui
10229 maybe-all-libgui:
10230 all-libgui: configure-libgui
10231 @r=`${PWD_COMMAND}`; export r; \
10232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10233 $(SET_LIB_PATH) \
10234 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
10236 .PHONY: check-libgui maybe-check-libgui
10237 maybe-check-libgui:
10239 check-libgui:
10240 @r=`${PWD_COMMAND}`; export r; \
10241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10242 $(SET_LIB_PATH) \
10243 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
10246 .PHONY: install-libgui maybe-install-libgui
10247 maybe-install-libgui:
10249 install-libgui: installdirs
10250 @r=`${PWD_COMMAND}`; export r; \
10251 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10252 $(SET_LIB_PATH) \
10253 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
10256 # Other targets (info, dvi, etc.)
10258 .PHONY: maybe-info-libgui info-libgui
10259 maybe-info-libgui:
10261 info-libgui: \
10262 configure-libgui
10263 @[ -f ./libgui/Makefile ] || exit 0; \
10264 r=`${PWD_COMMAND}`; export r; \
10265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10266 $(SET_LIB_PATH) \
10267 for flag in $(EXTRA_HOST_FLAGS); do \
10268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10269 done; \
10270 echo "Doing info in libgui" ; \
10271 (cd libgui && \
10272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10274 "RANLIB=$${RANLIB}" \
10275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10276 info) \
10277 || exit 1
10280 .PHONY: maybe-dvi-libgui dvi-libgui
10281 maybe-dvi-libgui:
10283 dvi-libgui: \
10284 configure-libgui
10285 @[ -f ./libgui/Makefile ] || exit 0; \
10286 r=`${PWD_COMMAND}`; export r; \
10287 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10288 $(SET_LIB_PATH) \
10289 for flag in $(EXTRA_HOST_FLAGS); do \
10290 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10291 done; \
10292 echo "Doing dvi in libgui" ; \
10293 (cd libgui && \
10294 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10295 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10296 "RANLIB=$${RANLIB}" \
10297 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10298 dvi) \
10299 || exit 1
10302 .PHONY: maybe-TAGS-libgui TAGS-libgui
10303 maybe-TAGS-libgui:
10305 TAGS-libgui: \
10306 configure-libgui
10307 @[ -f ./libgui/Makefile ] || exit 0; \
10308 r=`${PWD_COMMAND}`; export r; \
10309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10310 $(SET_LIB_PATH) \
10311 for flag in $(EXTRA_HOST_FLAGS); do \
10312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10313 done; \
10314 echo "Doing TAGS in libgui" ; \
10315 (cd libgui && \
10316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10318 "RANLIB=$${RANLIB}" \
10319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10320 TAGS) \
10321 || exit 1
10324 .PHONY: maybe-install-info-libgui install-info-libgui
10325 maybe-install-info-libgui:
10327 install-info-libgui: \
10328 configure-libgui \
10329 info-libgui
10330 @[ -f ./libgui/Makefile ] || exit 0; \
10331 r=`${PWD_COMMAND}`; export r; \
10332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10333 $(SET_LIB_PATH) \
10334 for flag in $(EXTRA_HOST_FLAGS); do \
10335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10336 done; \
10337 echo "Doing install-info in libgui" ; \
10338 (cd libgui && \
10339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10341 "RANLIB=$${RANLIB}" \
10342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10343 install-info) \
10344 || exit 1
10347 .PHONY: maybe-installcheck-libgui installcheck-libgui
10348 maybe-installcheck-libgui:
10350 installcheck-libgui: \
10351 configure-libgui
10352 @[ -f ./libgui/Makefile ] || exit 0; \
10353 r=`${PWD_COMMAND}`; export r; \
10354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10355 $(SET_LIB_PATH) \
10356 for flag in $(EXTRA_HOST_FLAGS); do \
10357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10358 done; \
10359 echo "Doing installcheck in libgui" ; \
10360 (cd libgui && \
10361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10363 "RANLIB=$${RANLIB}" \
10364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10365 installcheck) \
10366 || exit 1
10369 .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
10370 maybe-mostlyclean-libgui:
10372 mostlyclean-libgui:
10373 @[ -f ./libgui/Makefile ] || exit 0; \
10374 r=`${PWD_COMMAND}`; export r; \
10375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10376 $(SET_LIB_PATH) \
10377 for flag in $(EXTRA_HOST_FLAGS); do \
10378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10379 done; \
10380 echo "Doing mostlyclean in libgui" ; \
10381 (cd libgui && \
10382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10384 "RANLIB=$${RANLIB}" \
10385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10386 mostlyclean) \
10387 || exit 1
10390 .PHONY: maybe-clean-libgui clean-libgui
10391 maybe-clean-libgui:
10393 clean-libgui:
10394 @[ -f ./libgui/Makefile ] || exit 0; \
10395 r=`${PWD_COMMAND}`; export r; \
10396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10397 $(SET_LIB_PATH) \
10398 for flag in $(EXTRA_HOST_FLAGS); do \
10399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10400 done; \
10401 echo "Doing clean in libgui" ; \
10402 (cd libgui && \
10403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10405 "RANLIB=$${RANLIB}" \
10406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10407 clean) \
10408 || exit 1
10411 .PHONY: maybe-distclean-libgui distclean-libgui
10412 maybe-distclean-libgui:
10414 distclean-libgui:
10415 @[ -f ./libgui/Makefile ] || exit 0; \
10416 r=`${PWD_COMMAND}`; export r; \
10417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10418 $(SET_LIB_PATH) \
10419 for flag in $(EXTRA_HOST_FLAGS); do \
10420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10421 done; \
10422 echo "Doing distclean in libgui" ; \
10423 (cd libgui && \
10424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10426 "RANLIB=$${RANLIB}" \
10427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10428 distclean) \
10429 || exit 1
10432 .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
10433 maybe-maintainer-clean-libgui:
10435 maintainer-clean-libgui:
10436 @[ -f ./libgui/Makefile ] || exit 0; \
10437 r=`${PWD_COMMAND}`; export r; \
10438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10439 $(SET_LIB_PATH) \
10440 for flag in $(EXTRA_HOST_FLAGS); do \
10441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10442 done; \
10443 echo "Doing maintainer-clean in libgui" ; \
10444 (cd libgui && \
10445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10447 "RANLIB=$${RANLIB}" \
10448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10449 maintainer-clean) \
10450 || exit 1
10454 .PHONY: configure-libiberty maybe-configure-libiberty
10455 maybe-configure-libiberty:
10456 configure-libiberty:
10457 @test ! -f libiberty/Makefile || exit 0; \
10458 [ -d libiberty ] || mkdir libiberty; \
10459 r=`${PWD_COMMAND}`; export r; \
10460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10461 CC="$(CC)"; export CC; \
10462 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10463 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10464 CXX="$(CXX)"; export CXX; \
10465 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10466 AR="$(AR)"; export AR; \
10467 AS="$(AS)"; export AS; \
10468 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10469 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10470 LD="$(LD)"; export LD; \
10471 NM="$(NM)"; export NM; \
10472 RANLIB="$(RANLIB)"; export RANLIB; \
10473 WINDRES="$(WINDRES)"; export WINDRES; \
10474 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10475 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10476 echo Configuring in libiberty; \
10477 cd libiberty || exit 1; \
10478 case $(srcdir) in \
10479 \.) \
10480 srcdiroption="--srcdir=."; \
10481 libsrcdir=".";; \
10482 /* | [A-Za-z]:[\\/]*) \
10483 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
10484 libsrcdir="$$s/libiberty";; \
10485 *) \
10486 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
10487 libsrcdir="$$s/libiberty";; \
10488 esac; \
10489 $(SHELL) $${libsrcdir}/configure \
10490 $(HOST_CONFIGARGS) $${srcdiroption} \
10491 || exit 1
10493 .PHONY: all-libiberty maybe-all-libiberty
10494 maybe-all-libiberty:
10495 all-libiberty: configure-libiberty
10496 @r=`${PWD_COMMAND}`; export r; \
10497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10498 $(SET_LIB_PATH) \
10499 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
10501 .PHONY: check-libiberty maybe-check-libiberty
10502 maybe-check-libiberty:
10504 check-libiberty:
10505 @r=`${PWD_COMMAND}`; export r; \
10506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10507 $(SET_LIB_PATH) \
10508 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
10511 .PHONY: install-libiberty maybe-install-libiberty
10512 maybe-install-libiberty:
10514 install-libiberty: installdirs
10515 @r=`${PWD_COMMAND}`; export r; \
10516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10517 $(SET_LIB_PATH) \
10518 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
10521 # Other targets (info, dvi, etc.)
10523 .PHONY: maybe-info-libiberty info-libiberty
10524 maybe-info-libiberty:
10526 info-libiberty: \
10527 configure-libiberty
10528 @[ -f ./libiberty/Makefile ] || exit 0; \
10529 r=`${PWD_COMMAND}`; export r; \
10530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10531 $(SET_LIB_PATH) \
10532 for flag in $(EXTRA_HOST_FLAGS); do \
10533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10534 done; \
10535 echo "Doing info in libiberty" ; \
10536 (cd libiberty && \
10537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10539 "RANLIB=$${RANLIB}" \
10540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10541 info) \
10542 || exit 1
10545 .PHONY: maybe-dvi-libiberty dvi-libiberty
10546 maybe-dvi-libiberty:
10548 dvi-libiberty: \
10549 configure-libiberty
10550 @[ -f ./libiberty/Makefile ] || exit 0; \
10551 r=`${PWD_COMMAND}`; export r; \
10552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10553 $(SET_LIB_PATH) \
10554 for flag in $(EXTRA_HOST_FLAGS); do \
10555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10556 done; \
10557 echo "Doing dvi in libiberty" ; \
10558 (cd libiberty && \
10559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10561 "RANLIB=$${RANLIB}" \
10562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10563 dvi) \
10564 || exit 1
10567 .PHONY: maybe-TAGS-libiberty TAGS-libiberty
10568 maybe-TAGS-libiberty:
10570 TAGS-libiberty: \
10571 configure-libiberty
10572 @[ -f ./libiberty/Makefile ] || exit 0; \
10573 r=`${PWD_COMMAND}`; export r; \
10574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10575 $(SET_LIB_PATH) \
10576 for flag in $(EXTRA_HOST_FLAGS); do \
10577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10578 done; \
10579 echo "Doing TAGS in libiberty" ; \
10580 (cd libiberty && \
10581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10583 "RANLIB=$${RANLIB}" \
10584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10585 TAGS) \
10586 || exit 1
10589 .PHONY: maybe-install-info-libiberty install-info-libiberty
10590 maybe-install-info-libiberty:
10592 install-info-libiberty: \
10593 configure-libiberty \
10594 info-libiberty
10595 @[ -f ./libiberty/Makefile ] || exit 0; \
10596 r=`${PWD_COMMAND}`; export r; \
10597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10598 $(SET_LIB_PATH) \
10599 for flag in $(EXTRA_HOST_FLAGS); do \
10600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10601 done; \
10602 echo "Doing install-info in libiberty" ; \
10603 (cd libiberty && \
10604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10606 "RANLIB=$${RANLIB}" \
10607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10608 install-info) \
10609 || exit 1
10612 .PHONY: maybe-installcheck-libiberty installcheck-libiberty
10613 maybe-installcheck-libiberty:
10615 installcheck-libiberty: \
10616 configure-libiberty
10617 @[ -f ./libiberty/Makefile ] || exit 0; \
10618 r=`${PWD_COMMAND}`; export r; \
10619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10620 $(SET_LIB_PATH) \
10621 for flag in $(EXTRA_HOST_FLAGS); do \
10622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10623 done; \
10624 echo "Doing installcheck in libiberty" ; \
10625 (cd libiberty && \
10626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10628 "RANLIB=$${RANLIB}" \
10629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10630 installcheck) \
10631 || exit 1
10634 .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
10635 maybe-mostlyclean-libiberty:
10637 mostlyclean-libiberty:
10638 @[ -f ./libiberty/Makefile ] || exit 0; \
10639 r=`${PWD_COMMAND}`; export r; \
10640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10641 $(SET_LIB_PATH) \
10642 for flag in $(EXTRA_HOST_FLAGS); do \
10643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10644 done; \
10645 echo "Doing mostlyclean in libiberty" ; \
10646 (cd libiberty && \
10647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10649 "RANLIB=$${RANLIB}" \
10650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10651 mostlyclean) \
10652 || exit 1
10655 .PHONY: maybe-clean-libiberty clean-libiberty
10656 maybe-clean-libiberty:
10658 clean-libiberty:
10659 @[ -f ./libiberty/Makefile ] || exit 0; \
10660 r=`${PWD_COMMAND}`; export r; \
10661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10662 $(SET_LIB_PATH) \
10663 for flag in $(EXTRA_HOST_FLAGS); do \
10664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10665 done; \
10666 echo "Doing clean in libiberty" ; \
10667 (cd libiberty && \
10668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10670 "RANLIB=$${RANLIB}" \
10671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10672 clean) \
10673 || exit 1
10676 .PHONY: maybe-distclean-libiberty distclean-libiberty
10677 maybe-distclean-libiberty:
10679 distclean-libiberty:
10680 @[ -f ./libiberty/Makefile ] || exit 0; \
10681 r=`${PWD_COMMAND}`; export r; \
10682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10683 $(SET_LIB_PATH) \
10684 for flag in $(EXTRA_HOST_FLAGS); do \
10685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10686 done; \
10687 echo "Doing distclean in libiberty" ; \
10688 (cd libiberty && \
10689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10691 "RANLIB=$${RANLIB}" \
10692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10693 distclean) \
10694 || exit 1
10697 .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
10698 maybe-maintainer-clean-libiberty:
10700 maintainer-clean-libiberty:
10701 @[ -f ./libiberty/Makefile ] || exit 0; \
10702 r=`${PWD_COMMAND}`; export r; \
10703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10704 $(SET_LIB_PATH) \
10705 for flag in $(EXTRA_HOST_FLAGS); do \
10706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10707 done; \
10708 echo "Doing maintainer-clean in libiberty" ; \
10709 (cd libiberty && \
10710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10712 "RANLIB=$${RANLIB}" \
10713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10714 maintainer-clean) \
10715 || exit 1
10719 .PHONY: configure-libtool maybe-configure-libtool
10720 maybe-configure-libtool:
10721 configure-libtool:
10722 @test ! -f libtool/Makefile || exit 0; \
10723 [ -d libtool ] || mkdir libtool; \
10724 r=`${PWD_COMMAND}`; export r; \
10725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10726 CC="$(CC)"; export CC; \
10727 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10728 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10729 CXX="$(CXX)"; export CXX; \
10730 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10731 AR="$(AR)"; export AR; \
10732 AS="$(AS)"; export AS; \
10733 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10734 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10735 LD="$(LD)"; export LD; \
10736 NM="$(NM)"; export NM; \
10737 RANLIB="$(RANLIB)"; export RANLIB; \
10738 WINDRES="$(WINDRES)"; export WINDRES; \
10739 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10740 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10741 echo Configuring in libtool; \
10742 cd libtool || exit 1; \
10743 case $(srcdir) in \
10744 \.) \
10745 srcdiroption="--srcdir=."; \
10746 libsrcdir=".";; \
10747 /* | [A-Za-z]:[\\/]*) \
10748 srcdiroption="--srcdir=$(srcdir)/libtool"; \
10749 libsrcdir="$$s/libtool";; \
10750 *) \
10751 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
10752 libsrcdir="$$s/libtool";; \
10753 esac; \
10754 $(SHELL) $${libsrcdir}/configure \
10755 $(HOST_CONFIGARGS) $${srcdiroption} \
10756 || exit 1
10758 .PHONY: all-libtool maybe-all-libtool
10759 maybe-all-libtool:
10760 all-libtool: configure-libtool
10761 @r=`${PWD_COMMAND}`; export r; \
10762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10763 $(SET_LIB_PATH) \
10764 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
10766 .PHONY: check-libtool maybe-check-libtool
10767 maybe-check-libtool:
10769 check-libtool:
10770 @r=`${PWD_COMMAND}`; export r; \
10771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10772 $(SET_LIB_PATH) \
10773 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
10776 .PHONY: install-libtool maybe-install-libtool
10777 maybe-install-libtool:
10779 install-libtool: installdirs
10780 @r=`${PWD_COMMAND}`; export r; \
10781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10782 $(SET_LIB_PATH) \
10783 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
10786 # Other targets (info, dvi, etc.)
10788 .PHONY: maybe-info-libtool info-libtool
10789 maybe-info-libtool:
10791 info-libtool: \
10792 configure-libtool
10793 @[ -f ./libtool/Makefile ] || exit 0; \
10794 r=`${PWD_COMMAND}`; export r; \
10795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10796 $(SET_LIB_PATH) \
10797 for flag in $(EXTRA_HOST_FLAGS); do \
10798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10799 done; \
10800 echo "Doing info in libtool" ; \
10801 (cd libtool && \
10802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10804 "RANLIB=$${RANLIB}" \
10805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10806 info) \
10807 || exit 1
10810 .PHONY: maybe-dvi-libtool dvi-libtool
10811 maybe-dvi-libtool:
10813 dvi-libtool: \
10814 configure-libtool
10815 @[ -f ./libtool/Makefile ] || exit 0; \
10816 r=`${PWD_COMMAND}`; export r; \
10817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10818 $(SET_LIB_PATH) \
10819 for flag in $(EXTRA_HOST_FLAGS); do \
10820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10821 done; \
10822 echo "Doing dvi in libtool" ; \
10823 (cd libtool && \
10824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10826 "RANLIB=$${RANLIB}" \
10827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10828 dvi) \
10829 || exit 1
10832 .PHONY: maybe-TAGS-libtool TAGS-libtool
10833 maybe-TAGS-libtool:
10835 TAGS-libtool: \
10836 configure-libtool
10837 @[ -f ./libtool/Makefile ] || exit 0; \
10838 r=`${PWD_COMMAND}`; export r; \
10839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10840 $(SET_LIB_PATH) \
10841 for flag in $(EXTRA_HOST_FLAGS); do \
10842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10843 done; \
10844 echo "Doing TAGS in libtool" ; \
10845 (cd libtool && \
10846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10848 "RANLIB=$${RANLIB}" \
10849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10850 TAGS) \
10851 || exit 1
10854 .PHONY: maybe-install-info-libtool install-info-libtool
10855 maybe-install-info-libtool:
10857 install-info-libtool: \
10858 configure-libtool \
10859 info-libtool
10860 @[ -f ./libtool/Makefile ] || exit 0; \
10861 r=`${PWD_COMMAND}`; export r; \
10862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10863 $(SET_LIB_PATH) \
10864 for flag in $(EXTRA_HOST_FLAGS); do \
10865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10866 done; \
10867 echo "Doing install-info in libtool" ; \
10868 (cd libtool && \
10869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10871 "RANLIB=$${RANLIB}" \
10872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10873 install-info) \
10874 || exit 1
10877 .PHONY: maybe-installcheck-libtool installcheck-libtool
10878 maybe-installcheck-libtool:
10880 installcheck-libtool: \
10881 configure-libtool
10882 @[ -f ./libtool/Makefile ] || exit 0; \
10883 r=`${PWD_COMMAND}`; export r; \
10884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10885 $(SET_LIB_PATH) \
10886 for flag in $(EXTRA_HOST_FLAGS); do \
10887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10888 done; \
10889 echo "Doing installcheck in libtool" ; \
10890 (cd libtool && \
10891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10893 "RANLIB=$${RANLIB}" \
10894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10895 installcheck) \
10896 || exit 1
10899 .PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
10900 maybe-mostlyclean-libtool:
10902 mostlyclean-libtool:
10903 @[ -f ./libtool/Makefile ] || exit 0; \
10904 r=`${PWD_COMMAND}`; export r; \
10905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10906 $(SET_LIB_PATH) \
10907 for flag in $(EXTRA_HOST_FLAGS); do \
10908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10909 done; \
10910 echo "Doing mostlyclean in libtool" ; \
10911 (cd libtool && \
10912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10914 "RANLIB=$${RANLIB}" \
10915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10916 mostlyclean) \
10917 || exit 1
10920 .PHONY: maybe-clean-libtool clean-libtool
10921 maybe-clean-libtool:
10923 clean-libtool:
10924 @[ -f ./libtool/Makefile ] || exit 0; \
10925 r=`${PWD_COMMAND}`; export r; \
10926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10927 $(SET_LIB_PATH) \
10928 for flag in $(EXTRA_HOST_FLAGS); do \
10929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10930 done; \
10931 echo "Doing clean in libtool" ; \
10932 (cd libtool && \
10933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10935 "RANLIB=$${RANLIB}" \
10936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10937 clean) \
10938 || exit 1
10941 .PHONY: maybe-distclean-libtool distclean-libtool
10942 maybe-distclean-libtool:
10944 distclean-libtool:
10945 @[ -f ./libtool/Makefile ] || exit 0; \
10946 r=`${PWD_COMMAND}`; export r; \
10947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10948 $(SET_LIB_PATH) \
10949 for flag in $(EXTRA_HOST_FLAGS); do \
10950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10951 done; \
10952 echo "Doing distclean in libtool" ; \
10953 (cd libtool && \
10954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10956 "RANLIB=$${RANLIB}" \
10957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10958 distclean) \
10959 || exit 1
10962 .PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
10963 maybe-maintainer-clean-libtool:
10965 maintainer-clean-libtool:
10966 @[ -f ./libtool/Makefile ] || exit 0; \
10967 r=`${PWD_COMMAND}`; export r; \
10968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10969 $(SET_LIB_PATH) \
10970 for flag in $(EXTRA_HOST_FLAGS); do \
10971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10972 done; \
10973 echo "Doing maintainer-clean in libtool" ; \
10974 (cd libtool && \
10975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10977 "RANLIB=$${RANLIB}" \
10978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10979 maintainer-clean) \
10980 || exit 1
10984 .PHONY: configure-m4 maybe-configure-m4
10985 maybe-configure-m4:
10986 configure-m4:
10987 @test ! -f m4/Makefile || exit 0; \
10988 [ -d m4 ] || mkdir m4; \
10989 r=`${PWD_COMMAND}`; export r; \
10990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10991 CC="$(CC)"; export CC; \
10992 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10993 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10994 CXX="$(CXX)"; export CXX; \
10995 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10996 AR="$(AR)"; export AR; \
10997 AS="$(AS)"; export AS; \
10998 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10999 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11000 LD="$(LD)"; export LD; \
11001 NM="$(NM)"; export NM; \
11002 RANLIB="$(RANLIB)"; export RANLIB; \
11003 WINDRES="$(WINDRES)"; export WINDRES; \
11004 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11005 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11006 echo Configuring in m4; \
11007 cd m4 || exit 1; \
11008 case $(srcdir) in \
11009 \.) \
11010 srcdiroption="--srcdir=."; \
11011 libsrcdir=".";; \
11012 /* | [A-Za-z]:[\\/]*) \
11013 srcdiroption="--srcdir=$(srcdir)/m4"; \
11014 libsrcdir="$$s/m4";; \
11015 *) \
11016 srcdiroption="--srcdir=../$(srcdir)/m4"; \
11017 libsrcdir="$$s/m4";; \
11018 esac; \
11019 $(SHELL) $${libsrcdir}/configure \
11020 $(HOST_CONFIGARGS) $${srcdiroption} \
11021 || exit 1
11023 .PHONY: all-m4 maybe-all-m4
11024 maybe-all-m4:
11025 all-m4: configure-m4
11026 @r=`${PWD_COMMAND}`; export r; \
11027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11028 $(SET_LIB_PATH) \
11029 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
11031 .PHONY: check-m4 maybe-check-m4
11032 maybe-check-m4:
11034 check-m4:
11035 @r=`${PWD_COMMAND}`; export r; \
11036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11037 $(SET_LIB_PATH) \
11038 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
11041 .PHONY: install-m4 maybe-install-m4
11042 maybe-install-m4:
11044 install-m4: installdirs
11045 @r=`${PWD_COMMAND}`; export r; \
11046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11047 $(SET_LIB_PATH) \
11048 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
11051 # Other targets (info, dvi, etc.)
11053 .PHONY: maybe-info-m4 info-m4
11054 maybe-info-m4:
11056 info-m4: \
11057 configure-m4
11058 @[ -f ./m4/Makefile ] || exit 0; \
11059 r=`${PWD_COMMAND}`; export r; \
11060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11061 $(SET_LIB_PATH) \
11062 for flag in $(EXTRA_HOST_FLAGS); do \
11063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11064 done; \
11065 echo "Doing info in m4" ; \
11066 (cd m4 && \
11067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11069 "RANLIB=$${RANLIB}" \
11070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11071 info) \
11072 || exit 1
11075 .PHONY: maybe-dvi-m4 dvi-m4
11076 maybe-dvi-m4:
11078 dvi-m4: \
11079 configure-m4
11080 @[ -f ./m4/Makefile ] || exit 0; \
11081 r=`${PWD_COMMAND}`; export r; \
11082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11083 $(SET_LIB_PATH) \
11084 for flag in $(EXTRA_HOST_FLAGS); do \
11085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11086 done; \
11087 echo "Doing dvi in m4" ; \
11088 (cd m4 && \
11089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11091 "RANLIB=$${RANLIB}" \
11092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11093 dvi) \
11094 || exit 1
11097 .PHONY: maybe-TAGS-m4 TAGS-m4
11098 maybe-TAGS-m4:
11100 TAGS-m4: \
11101 configure-m4
11102 @[ -f ./m4/Makefile ] || exit 0; \
11103 r=`${PWD_COMMAND}`; export r; \
11104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11105 $(SET_LIB_PATH) \
11106 for flag in $(EXTRA_HOST_FLAGS); do \
11107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11108 done; \
11109 echo "Doing TAGS in m4" ; \
11110 (cd m4 && \
11111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11113 "RANLIB=$${RANLIB}" \
11114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11115 TAGS) \
11116 || exit 1
11119 .PHONY: maybe-install-info-m4 install-info-m4
11120 maybe-install-info-m4:
11122 install-info-m4: \
11123 configure-m4 \
11124 info-m4
11125 @[ -f ./m4/Makefile ] || exit 0; \
11126 r=`${PWD_COMMAND}`; export r; \
11127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11128 $(SET_LIB_PATH) \
11129 for flag in $(EXTRA_HOST_FLAGS); do \
11130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11131 done; \
11132 echo "Doing install-info in m4" ; \
11133 (cd m4 && \
11134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11136 "RANLIB=$${RANLIB}" \
11137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11138 install-info) \
11139 || exit 1
11142 .PHONY: maybe-installcheck-m4 installcheck-m4
11143 maybe-installcheck-m4:
11145 installcheck-m4: \
11146 configure-m4
11147 @[ -f ./m4/Makefile ] || exit 0; \
11148 r=`${PWD_COMMAND}`; export r; \
11149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11150 $(SET_LIB_PATH) \
11151 for flag in $(EXTRA_HOST_FLAGS); do \
11152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11153 done; \
11154 echo "Doing installcheck in m4" ; \
11155 (cd m4 && \
11156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11158 "RANLIB=$${RANLIB}" \
11159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11160 installcheck) \
11161 || exit 1
11164 .PHONY: maybe-mostlyclean-m4 mostlyclean-m4
11165 maybe-mostlyclean-m4:
11167 mostlyclean-m4:
11168 @[ -f ./m4/Makefile ] || exit 0; \
11169 r=`${PWD_COMMAND}`; export r; \
11170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11171 $(SET_LIB_PATH) \
11172 for flag in $(EXTRA_HOST_FLAGS); do \
11173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11174 done; \
11175 echo "Doing mostlyclean in m4" ; \
11176 (cd m4 && \
11177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11179 "RANLIB=$${RANLIB}" \
11180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11181 mostlyclean) \
11182 || exit 1
11185 .PHONY: maybe-clean-m4 clean-m4
11186 maybe-clean-m4:
11188 clean-m4:
11189 @[ -f ./m4/Makefile ] || exit 0; \
11190 r=`${PWD_COMMAND}`; export r; \
11191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11192 $(SET_LIB_PATH) \
11193 for flag in $(EXTRA_HOST_FLAGS); do \
11194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11195 done; \
11196 echo "Doing clean in m4" ; \
11197 (cd m4 && \
11198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11200 "RANLIB=$${RANLIB}" \
11201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11202 clean) \
11203 || exit 1
11206 .PHONY: maybe-distclean-m4 distclean-m4
11207 maybe-distclean-m4:
11209 distclean-m4:
11210 @[ -f ./m4/Makefile ] || exit 0; \
11211 r=`${PWD_COMMAND}`; export r; \
11212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11213 $(SET_LIB_PATH) \
11214 for flag in $(EXTRA_HOST_FLAGS); do \
11215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11216 done; \
11217 echo "Doing distclean in m4" ; \
11218 (cd m4 && \
11219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11221 "RANLIB=$${RANLIB}" \
11222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11223 distclean) \
11224 || exit 1
11227 .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
11228 maybe-maintainer-clean-m4:
11230 maintainer-clean-m4:
11231 @[ -f ./m4/Makefile ] || exit 0; \
11232 r=`${PWD_COMMAND}`; export r; \
11233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11234 $(SET_LIB_PATH) \
11235 for flag in $(EXTRA_HOST_FLAGS); do \
11236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11237 done; \
11238 echo "Doing maintainer-clean in m4" ; \
11239 (cd m4 && \
11240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11242 "RANLIB=$${RANLIB}" \
11243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11244 maintainer-clean) \
11245 || exit 1
11249 .PHONY: configure-make maybe-configure-make
11250 maybe-configure-make:
11251 configure-make:
11252 @test ! -f make/Makefile || exit 0; \
11253 [ -d make ] || mkdir make; \
11254 r=`${PWD_COMMAND}`; export r; \
11255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11256 CC="$(CC)"; export CC; \
11257 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11258 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11259 CXX="$(CXX)"; export CXX; \
11260 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11261 AR="$(AR)"; export AR; \
11262 AS="$(AS)"; export AS; \
11263 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11264 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11265 LD="$(LD)"; export LD; \
11266 NM="$(NM)"; export NM; \
11267 RANLIB="$(RANLIB)"; export RANLIB; \
11268 WINDRES="$(WINDRES)"; export WINDRES; \
11269 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11270 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11271 echo Configuring in make; \
11272 cd make || exit 1; \
11273 case $(srcdir) in \
11274 \.) \
11275 srcdiroption="--srcdir=."; \
11276 libsrcdir=".";; \
11277 /* | [A-Za-z]:[\\/]*) \
11278 srcdiroption="--srcdir=$(srcdir)/make"; \
11279 libsrcdir="$$s/make";; \
11280 *) \
11281 srcdiroption="--srcdir=../$(srcdir)/make"; \
11282 libsrcdir="$$s/make";; \
11283 esac; \
11284 $(SHELL) $${libsrcdir}/configure \
11285 $(HOST_CONFIGARGS) $${srcdiroption} \
11286 || exit 1
11288 .PHONY: all-make maybe-all-make
11289 maybe-all-make:
11290 all-make: configure-make
11291 @r=`${PWD_COMMAND}`; export r; \
11292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11293 $(SET_LIB_PATH) \
11294 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
11296 .PHONY: check-make maybe-check-make
11297 maybe-check-make:
11299 check-make:
11300 @r=`${PWD_COMMAND}`; export r; \
11301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11302 $(SET_LIB_PATH) \
11303 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
11306 .PHONY: install-make maybe-install-make
11307 maybe-install-make:
11309 install-make: installdirs
11310 @r=`${PWD_COMMAND}`; export r; \
11311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11312 $(SET_LIB_PATH) \
11313 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
11316 # Other targets (info, dvi, etc.)
11318 .PHONY: maybe-info-make info-make
11319 maybe-info-make:
11321 info-make: \
11322 configure-make
11323 @[ -f ./make/Makefile ] || exit 0; \
11324 r=`${PWD_COMMAND}`; export r; \
11325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11326 $(SET_LIB_PATH) \
11327 for flag in $(EXTRA_HOST_FLAGS); do \
11328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11329 done; \
11330 echo "Doing info in make" ; \
11331 (cd make && \
11332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11334 "RANLIB=$${RANLIB}" \
11335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11336 info) \
11337 || exit 1
11340 .PHONY: maybe-dvi-make dvi-make
11341 maybe-dvi-make:
11343 dvi-make: \
11344 configure-make
11345 @[ -f ./make/Makefile ] || exit 0; \
11346 r=`${PWD_COMMAND}`; export r; \
11347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11348 $(SET_LIB_PATH) \
11349 for flag in $(EXTRA_HOST_FLAGS); do \
11350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11351 done; \
11352 echo "Doing dvi in make" ; \
11353 (cd make && \
11354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11356 "RANLIB=$${RANLIB}" \
11357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11358 dvi) \
11359 || exit 1
11362 .PHONY: maybe-TAGS-make TAGS-make
11363 maybe-TAGS-make:
11365 TAGS-make: \
11366 configure-make
11367 @[ -f ./make/Makefile ] || exit 0; \
11368 r=`${PWD_COMMAND}`; export r; \
11369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11370 $(SET_LIB_PATH) \
11371 for flag in $(EXTRA_HOST_FLAGS); do \
11372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11373 done; \
11374 echo "Doing TAGS in make" ; \
11375 (cd make && \
11376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11378 "RANLIB=$${RANLIB}" \
11379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11380 TAGS) \
11381 || exit 1
11384 .PHONY: maybe-install-info-make install-info-make
11385 maybe-install-info-make:
11387 install-info-make: \
11388 configure-make \
11389 info-make
11390 @[ -f ./make/Makefile ] || exit 0; \
11391 r=`${PWD_COMMAND}`; export r; \
11392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11393 $(SET_LIB_PATH) \
11394 for flag in $(EXTRA_HOST_FLAGS); do \
11395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11396 done; \
11397 echo "Doing install-info in make" ; \
11398 (cd make && \
11399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11401 "RANLIB=$${RANLIB}" \
11402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11403 install-info) \
11404 || exit 1
11407 .PHONY: maybe-installcheck-make installcheck-make
11408 maybe-installcheck-make:
11410 installcheck-make: \
11411 configure-make
11412 @[ -f ./make/Makefile ] || exit 0; \
11413 r=`${PWD_COMMAND}`; export r; \
11414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11415 $(SET_LIB_PATH) \
11416 for flag in $(EXTRA_HOST_FLAGS); do \
11417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11418 done; \
11419 echo "Doing installcheck in make" ; \
11420 (cd make && \
11421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11423 "RANLIB=$${RANLIB}" \
11424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11425 installcheck) \
11426 || exit 1
11429 .PHONY: maybe-mostlyclean-make mostlyclean-make
11430 maybe-mostlyclean-make:
11432 mostlyclean-make:
11433 @[ -f ./make/Makefile ] || exit 0; \
11434 r=`${PWD_COMMAND}`; export r; \
11435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11436 $(SET_LIB_PATH) \
11437 for flag in $(EXTRA_HOST_FLAGS); do \
11438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11439 done; \
11440 echo "Doing mostlyclean in make" ; \
11441 (cd make && \
11442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11444 "RANLIB=$${RANLIB}" \
11445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11446 mostlyclean) \
11447 || exit 1
11450 .PHONY: maybe-clean-make clean-make
11451 maybe-clean-make:
11453 clean-make:
11454 @[ -f ./make/Makefile ] || exit 0; \
11455 r=`${PWD_COMMAND}`; export r; \
11456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11457 $(SET_LIB_PATH) \
11458 for flag in $(EXTRA_HOST_FLAGS); do \
11459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11460 done; \
11461 echo "Doing clean in make" ; \
11462 (cd make && \
11463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11465 "RANLIB=$${RANLIB}" \
11466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11467 clean) \
11468 || exit 1
11471 .PHONY: maybe-distclean-make distclean-make
11472 maybe-distclean-make:
11474 distclean-make:
11475 @[ -f ./make/Makefile ] || exit 0; \
11476 r=`${PWD_COMMAND}`; export r; \
11477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11478 $(SET_LIB_PATH) \
11479 for flag in $(EXTRA_HOST_FLAGS); do \
11480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11481 done; \
11482 echo "Doing distclean in make" ; \
11483 (cd make && \
11484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11486 "RANLIB=$${RANLIB}" \
11487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11488 distclean) \
11489 || exit 1
11492 .PHONY: maybe-maintainer-clean-make maintainer-clean-make
11493 maybe-maintainer-clean-make:
11495 maintainer-clean-make:
11496 @[ -f ./make/Makefile ] || exit 0; \
11497 r=`${PWD_COMMAND}`; export r; \
11498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11499 $(SET_LIB_PATH) \
11500 for flag in $(EXTRA_HOST_FLAGS); do \
11501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11502 done; \
11503 echo "Doing maintainer-clean in make" ; \
11504 (cd make && \
11505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11507 "RANLIB=$${RANLIB}" \
11508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11509 maintainer-clean) \
11510 || exit 1
11514 .PHONY: configure-mmalloc maybe-configure-mmalloc
11515 maybe-configure-mmalloc:
11516 configure-mmalloc:
11517 @test ! -f mmalloc/Makefile || exit 0; \
11518 [ -d mmalloc ] || mkdir mmalloc; \
11519 r=`${PWD_COMMAND}`; export r; \
11520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11521 CC="$(CC)"; export CC; \
11522 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11523 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11524 CXX="$(CXX)"; export CXX; \
11525 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11526 AR="$(AR)"; export AR; \
11527 AS="$(AS)"; export AS; \
11528 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11529 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11530 LD="$(LD)"; export LD; \
11531 NM="$(NM)"; export NM; \
11532 RANLIB="$(RANLIB)"; export RANLIB; \
11533 WINDRES="$(WINDRES)"; export WINDRES; \
11534 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11535 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11536 echo Configuring in mmalloc; \
11537 cd mmalloc || exit 1; \
11538 case $(srcdir) in \
11539 \.) \
11540 srcdiroption="--srcdir=."; \
11541 libsrcdir=".";; \
11542 /* | [A-Za-z]:[\\/]*) \
11543 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
11544 libsrcdir="$$s/mmalloc";; \
11545 *) \
11546 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
11547 libsrcdir="$$s/mmalloc";; \
11548 esac; \
11549 $(SHELL) $${libsrcdir}/configure \
11550 $(HOST_CONFIGARGS) $${srcdiroption} \
11551 || exit 1
11553 .PHONY: all-mmalloc maybe-all-mmalloc
11554 maybe-all-mmalloc:
11555 all-mmalloc: configure-mmalloc
11556 @r=`${PWD_COMMAND}`; export r; \
11557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11558 $(SET_LIB_PATH) \
11559 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
11561 .PHONY: check-mmalloc maybe-check-mmalloc
11562 maybe-check-mmalloc:
11564 check-mmalloc:
11567 .PHONY: install-mmalloc maybe-install-mmalloc
11568 maybe-install-mmalloc:
11570 install-mmalloc: installdirs
11571 @r=`${PWD_COMMAND}`; export r; \
11572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11573 $(SET_LIB_PATH) \
11574 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
11577 # Other targets (info, dvi, etc.)
11579 .PHONY: maybe-info-mmalloc info-mmalloc
11580 maybe-info-mmalloc:
11582 info-mmalloc: \
11583 configure-mmalloc
11584 @[ -f ./mmalloc/Makefile ] || exit 0; \
11585 r=`${PWD_COMMAND}`; export r; \
11586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11587 $(SET_LIB_PATH) \
11588 for flag in $(EXTRA_HOST_FLAGS); do \
11589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11590 done; \
11591 echo "Doing info in mmalloc" ; \
11592 (cd mmalloc && \
11593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11595 "RANLIB=$${RANLIB}" \
11596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11597 info) \
11598 || exit 1
11601 .PHONY: maybe-dvi-mmalloc dvi-mmalloc
11602 maybe-dvi-mmalloc:
11604 dvi-mmalloc: \
11605 configure-mmalloc
11606 @[ -f ./mmalloc/Makefile ] || exit 0; \
11607 r=`${PWD_COMMAND}`; export r; \
11608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11609 $(SET_LIB_PATH) \
11610 for flag in $(EXTRA_HOST_FLAGS); do \
11611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11612 done; \
11613 echo "Doing dvi in mmalloc" ; \
11614 (cd mmalloc && \
11615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11617 "RANLIB=$${RANLIB}" \
11618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11619 dvi) \
11620 || exit 1
11623 .PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
11624 maybe-TAGS-mmalloc:
11626 TAGS-mmalloc: \
11627 configure-mmalloc
11628 @[ -f ./mmalloc/Makefile ] || exit 0; \
11629 r=`${PWD_COMMAND}`; export r; \
11630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11631 $(SET_LIB_PATH) \
11632 for flag in $(EXTRA_HOST_FLAGS); do \
11633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11634 done; \
11635 echo "Doing TAGS in mmalloc" ; \
11636 (cd mmalloc && \
11637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11639 "RANLIB=$${RANLIB}" \
11640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11641 TAGS) \
11642 || exit 1
11645 .PHONY: maybe-install-info-mmalloc install-info-mmalloc
11646 maybe-install-info-mmalloc:
11648 install-info-mmalloc: \
11649 configure-mmalloc \
11650 info-mmalloc
11651 @[ -f ./mmalloc/Makefile ] || exit 0; \
11652 r=`${PWD_COMMAND}`; export r; \
11653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11654 $(SET_LIB_PATH) \
11655 for flag in $(EXTRA_HOST_FLAGS); do \
11656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11657 done; \
11658 echo "Doing install-info in mmalloc" ; \
11659 (cd mmalloc && \
11660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11662 "RANLIB=$${RANLIB}" \
11663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11664 install-info) \
11665 || exit 1
11668 .PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
11669 maybe-installcheck-mmalloc:
11671 installcheck-mmalloc: \
11672 configure-mmalloc
11673 @[ -f ./mmalloc/Makefile ] || exit 0; \
11674 r=`${PWD_COMMAND}`; export r; \
11675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11676 $(SET_LIB_PATH) \
11677 for flag in $(EXTRA_HOST_FLAGS); do \
11678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11679 done; \
11680 echo "Doing installcheck in mmalloc" ; \
11681 (cd mmalloc && \
11682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11684 "RANLIB=$${RANLIB}" \
11685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11686 installcheck) \
11687 || exit 1
11690 .PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
11691 maybe-mostlyclean-mmalloc:
11693 mostlyclean-mmalloc:
11694 @[ -f ./mmalloc/Makefile ] || exit 0; \
11695 r=`${PWD_COMMAND}`; export r; \
11696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11697 $(SET_LIB_PATH) \
11698 for flag in $(EXTRA_HOST_FLAGS); do \
11699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11700 done; \
11701 echo "Doing mostlyclean in mmalloc" ; \
11702 (cd mmalloc && \
11703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11705 "RANLIB=$${RANLIB}" \
11706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11707 mostlyclean) \
11708 || exit 1
11711 .PHONY: maybe-clean-mmalloc clean-mmalloc
11712 maybe-clean-mmalloc:
11714 clean-mmalloc:
11715 @[ -f ./mmalloc/Makefile ] || exit 0; \
11716 r=`${PWD_COMMAND}`; export r; \
11717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11718 $(SET_LIB_PATH) \
11719 for flag in $(EXTRA_HOST_FLAGS); do \
11720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11721 done; \
11722 echo "Doing clean in mmalloc" ; \
11723 (cd mmalloc && \
11724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11726 "RANLIB=$${RANLIB}" \
11727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11728 clean) \
11729 || exit 1
11732 .PHONY: maybe-distclean-mmalloc distclean-mmalloc
11733 maybe-distclean-mmalloc:
11735 distclean-mmalloc:
11736 @[ -f ./mmalloc/Makefile ] || exit 0; \
11737 r=`${PWD_COMMAND}`; export r; \
11738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11739 $(SET_LIB_PATH) \
11740 for flag in $(EXTRA_HOST_FLAGS); do \
11741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11742 done; \
11743 echo "Doing distclean in mmalloc" ; \
11744 (cd mmalloc && \
11745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11747 "RANLIB=$${RANLIB}" \
11748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11749 distclean) \
11750 || exit 1
11753 .PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
11754 maybe-maintainer-clean-mmalloc:
11756 maintainer-clean-mmalloc:
11757 @[ -f ./mmalloc/Makefile ] || exit 0; \
11758 r=`${PWD_COMMAND}`; export r; \
11759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11760 $(SET_LIB_PATH) \
11761 for flag in $(EXTRA_HOST_FLAGS); do \
11762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11763 done; \
11764 echo "Doing maintainer-clean in mmalloc" ; \
11765 (cd mmalloc && \
11766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11768 "RANLIB=$${RANLIB}" \
11769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11770 maintainer-clean) \
11771 || exit 1
11775 .PHONY: configure-patch maybe-configure-patch
11776 maybe-configure-patch:
11777 configure-patch:
11778 @test ! -f patch/Makefile || exit 0; \
11779 [ -d patch ] || mkdir patch; \
11780 r=`${PWD_COMMAND}`; export r; \
11781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11782 CC="$(CC)"; export CC; \
11783 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11784 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11785 CXX="$(CXX)"; export CXX; \
11786 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11787 AR="$(AR)"; export AR; \
11788 AS="$(AS)"; export AS; \
11789 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11790 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11791 LD="$(LD)"; export LD; \
11792 NM="$(NM)"; export NM; \
11793 RANLIB="$(RANLIB)"; export RANLIB; \
11794 WINDRES="$(WINDRES)"; export WINDRES; \
11795 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11796 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11797 echo Configuring in patch; \
11798 cd patch || exit 1; \
11799 case $(srcdir) in \
11800 \.) \
11801 srcdiroption="--srcdir=."; \
11802 libsrcdir=".";; \
11803 /* | [A-Za-z]:[\\/]*) \
11804 srcdiroption="--srcdir=$(srcdir)/patch"; \
11805 libsrcdir="$$s/patch";; \
11806 *) \
11807 srcdiroption="--srcdir=../$(srcdir)/patch"; \
11808 libsrcdir="$$s/patch";; \
11809 esac; \
11810 $(SHELL) $${libsrcdir}/configure \
11811 $(HOST_CONFIGARGS) $${srcdiroption} \
11812 || exit 1
11814 .PHONY: all-patch maybe-all-patch
11815 maybe-all-patch:
11816 all-patch: configure-patch
11817 @r=`${PWD_COMMAND}`; export r; \
11818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11819 $(SET_LIB_PATH) \
11820 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
11822 .PHONY: check-patch maybe-check-patch
11823 maybe-check-patch:
11825 check-patch:
11826 @r=`${PWD_COMMAND}`; export r; \
11827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11828 $(SET_LIB_PATH) \
11829 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
11832 .PHONY: install-patch maybe-install-patch
11833 maybe-install-patch:
11835 install-patch: installdirs
11836 @r=`${PWD_COMMAND}`; export r; \
11837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11838 $(SET_LIB_PATH) \
11839 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
11842 # Other targets (info, dvi, etc.)
11844 .PHONY: maybe-info-patch info-patch
11845 maybe-info-patch:
11847 info-patch: \
11848 configure-patch
11849 @[ -f ./patch/Makefile ] || exit 0; \
11850 r=`${PWD_COMMAND}`; export r; \
11851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11852 $(SET_LIB_PATH) \
11853 for flag in $(EXTRA_HOST_FLAGS); do \
11854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11855 done; \
11856 echo "Doing info in patch" ; \
11857 (cd patch && \
11858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11860 "RANLIB=$${RANLIB}" \
11861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11862 info) \
11863 || exit 1
11866 .PHONY: maybe-dvi-patch dvi-patch
11867 maybe-dvi-patch:
11869 dvi-patch: \
11870 configure-patch
11871 @[ -f ./patch/Makefile ] || exit 0; \
11872 r=`${PWD_COMMAND}`; export r; \
11873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11874 $(SET_LIB_PATH) \
11875 for flag in $(EXTRA_HOST_FLAGS); do \
11876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11877 done; \
11878 echo "Doing dvi in patch" ; \
11879 (cd patch && \
11880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11882 "RANLIB=$${RANLIB}" \
11883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11884 dvi) \
11885 || exit 1
11888 .PHONY: maybe-TAGS-patch TAGS-patch
11889 maybe-TAGS-patch:
11891 TAGS-patch: \
11892 configure-patch
11893 @[ -f ./patch/Makefile ] || exit 0; \
11894 r=`${PWD_COMMAND}`; export r; \
11895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11896 $(SET_LIB_PATH) \
11897 for flag in $(EXTRA_HOST_FLAGS); do \
11898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11899 done; \
11900 echo "Doing TAGS in patch" ; \
11901 (cd patch && \
11902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11904 "RANLIB=$${RANLIB}" \
11905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11906 TAGS) \
11907 || exit 1
11910 .PHONY: maybe-install-info-patch install-info-patch
11911 maybe-install-info-patch:
11913 install-info-patch: \
11914 configure-patch \
11915 info-patch
11916 @[ -f ./patch/Makefile ] || exit 0; \
11917 r=`${PWD_COMMAND}`; export r; \
11918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11919 $(SET_LIB_PATH) \
11920 for flag in $(EXTRA_HOST_FLAGS); do \
11921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11922 done; \
11923 echo "Doing install-info in patch" ; \
11924 (cd patch && \
11925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11927 "RANLIB=$${RANLIB}" \
11928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11929 install-info) \
11930 || exit 1
11933 .PHONY: maybe-installcheck-patch installcheck-patch
11934 maybe-installcheck-patch:
11936 installcheck-patch: \
11937 configure-patch
11938 @[ -f ./patch/Makefile ] || exit 0; \
11939 r=`${PWD_COMMAND}`; export r; \
11940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11941 $(SET_LIB_PATH) \
11942 for flag in $(EXTRA_HOST_FLAGS); do \
11943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11944 done; \
11945 echo "Doing installcheck in patch" ; \
11946 (cd patch && \
11947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11949 "RANLIB=$${RANLIB}" \
11950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11951 installcheck) \
11952 || exit 1
11955 .PHONY: maybe-mostlyclean-patch mostlyclean-patch
11956 maybe-mostlyclean-patch:
11958 mostlyclean-patch:
11959 @[ -f ./patch/Makefile ] || exit 0; \
11960 r=`${PWD_COMMAND}`; export r; \
11961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11962 $(SET_LIB_PATH) \
11963 for flag in $(EXTRA_HOST_FLAGS); do \
11964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11965 done; \
11966 echo "Doing mostlyclean in patch" ; \
11967 (cd patch && \
11968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11970 "RANLIB=$${RANLIB}" \
11971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11972 mostlyclean) \
11973 || exit 1
11976 .PHONY: maybe-clean-patch clean-patch
11977 maybe-clean-patch:
11979 clean-patch:
11980 @[ -f ./patch/Makefile ] || exit 0; \
11981 r=`${PWD_COMMAND}`; export r; \
11982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11983 $(SET_LIB_PATH) \
11984 for flag in $(EXTRA_HOST_FLAGS); do \
11985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11986 done; \
11987 echo "Doing clean in patch" ; \
11988 (cd patch && \
11989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11991 "RANLIB=$${RANLIB}" \
11992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11993 clean) \
11994 || exit 1
11997 .PHONY: maybe-distclean-patch distclean-patch
11998 maybe-distclean-patch:
12000 distclean-patch:
12001 @[ -f ./patch/Makefile ] || exit 0; \
12002 r=`${PWD_COMMAND}`; export r; \
12003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12004 $(SET_LIB_PATH) \
12005 for flag in $(EXTRA_HOST_FLAGS); do \
12006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12007 done; \
12008 echo "Doing distclean in patch" ; \
12009 (cd patch && \
12010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12012 "RANLIB=$${RANLIB}" \
12013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12014 distclean) \
12015 || exit 1
12018 .PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
12019 maybe-maintainer-clean-patch:
12021 maintainer-clean-patch:
12022 @[ -f ./patch/Makefile ] || exit 0; \
12023 r=`${PWD_COMMAND}`; export r; \
12024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12025 $(SET_LIB_PATH) \
12026 for flag in $(EXTRA_HOST_FLAGS); do \
12027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12028 done; \
12029 echo "Doing maintainer-clean in patch" ; \
12030 (cd patch && \
12031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12033 "RANLIB=$${RANLIB}" \
12034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12035 maintainer-clean) \
12036 || exit 1
12040 .PHONY: configure-perl maybe-configure-perl
12041 maybe-configure-perl:
12042 configure-perl:
12043 @test ! -f perl/Makefile || exit 0; \
12044 [ -d perl ] || mkdir perl; \
12045 r=`${PWD_COMMAND}`; export r; \
12046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12047 CC="$(CC)"; export CC; \
12048 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12049 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12050 CXX="$(CXX)"; export CXX; \
12051 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12052 AR="$(AR)"; export AR; \
12053 AS="$(AS)"; export AS; \
12054 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12055 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12056 LD="$(LD)"; export LD; \
12057 NM="$(NM)"; export NM; \
12058 RANLIB="$(RANLIB)"; export RANLIB; \
12059 WINDRES="$(WINDRES)"; export WINDRES; \
12060 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12061 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12062 echo Configuring in perl; \
12063 cd perl || exit 1; \
12064 case $(srcdir) in \
12065 \.) \
12066 srcdiroption="--srcdir=."; \
12067 libsrcdir=".";; \
12068 /* | [A-Za-z]:[\\/]*) \
12069 srcdiroption="--srcdir=$(srcdir)/perl"; \
12070 libsrcdir="$$s/perl";; \
12071 *) \
12072 srcdiroption="--srcdir=../$(srcdir)/perl"; \
12073 libsrcdir="$$s/perl";; \
12074 esac; \
12075 $(SHELL) $${libsrcdir}/configure \
12076 $(HOST_CONFIGARGS) $${srcdiroption} \
12077 || exit 1
12079 .PHONY: all-perl maybe-all-perl
12080 maybe-all-perl:
12081 all-perl: configure-perl
12082 @r=`${PWD_COMMAND}`; export r; \
12083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12084 $(SET_LIB_PATH) \
12085 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
12087 .PHONY: check-perl maybe-check-perl
12088 maybe-check-perl:
12090 check-perl:
12091 @r=`${PWD_COMMAND}`; export r; \
12092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12093 $(SET_LIB_PATH) \
12094 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
12097 .PHONY: install-perl maybe-install-perl
12098 maybe-install-perl:
12100 install-perl: installdirs
12101 @r=`${PWD_COMMAND}`; export r; \
12102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12103 $(SET_LIB_PATH) \
12104 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
12107 # Other targets (info, dvi, etc.)
12109 .PHONY: maybe-info-perl info-perl
12110 maybe-info-perl:
12112 info-perl: \
12113 configure-perl
12114 @[ -f ./perl/Makefile ] || exit 0; \
12115 r=`${PWD_COMMAND}`; export r; \
12116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12117 $(SET_LIB_PATH) \
12118 for flag in $(EXTRA_HOST_FLAGS); do \
12119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12120 done; \
12121 echo "Doing info in perl" ; \
12122 (cd perl && \
12123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12125 "RANLIB=$${RANLIB}" \
12126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12127 info) \
12128 || exit 1
12131 .PHONY: maybe-dvi-perl dvi-perl
12132 maybe-dvi-perl:
12134 dvi-perl: \
12135 configure-perl
12136 @[ -f ./perl/Makefile ] || exit 0; \
12137 r=`${PWD_COMMAND}`; export r; \
12138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12139 $(SET_LIB_PATH) \
12140 for flag in $(EXTRA_HOST_FLAGS); do \
12141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12142 done; \
12143 echo "Doing dvi in perl" ; \
12144 (cd perl && \
12145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12147 "RANLIB=$${RANLIB}" \
12148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12149 dvi) \
12150 || exit 1
12153 .PHONY: maybe-TAGS-perl TAGS-perl
12154 maybe-TAGS-perl:
12156 TAGS-perl: \
12157 configure-perl
12158 @[ -f ./perl/Makefile ] || exit 0; \
12159 r=`${PWD_COMMAND}`; export r; \
12160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12161 $(SET_LIB_PATH) \
12162 for flag in $(EXTRA_HOST_FLAGS); do \
12163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12164 done; \
12165 echo "Doing TAGS in perl" ; \
12166 (cd perl && \
12167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12169 "RANLIB=$${RANLIB}" \
12170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12171 TAGS) \
12172 || exit 1
12175 .PHONY: maybe-install-info-perl install-info-perl
12176 maybe-install-info-perl:
12178 install-info-perl: \
12179 configure-perl \
12180 info-perl
12181 @[ -f ./perl/Makefile ] || exit 0; \
12182 r=`${PWD_COMMAND}`; export r; \
12183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12184 $(SET_LIB_PATH) \
12185 for flag in $(EXTRA_HOST_FLAGS); do \
12186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12187 done; \
12188 echo "Doing install-info in perl" ; \
12189 (cd perl && \
12190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12192 "RANLIB=$${RANLIB}" \
12193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12194 install-info) \
12195 || exit 1
12198 .PHONY: maybe-installcheck-perl installcheck-perl
12199 maybe-installcheck-perl:
12201 installcheck-perl: \
12202 configure-perl
12203 @[ -f ./perl/Makefile ] || exit 0; \
12204 r=`${PWD_COMMAND}`; export r; \
12205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12206 $(SET_LIB_PATH) \
12207 for flag in $(EXTRA_HOST_FLAGS); do \
12208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12209 done; \
12210 echo "Doing installcheck in perl" ; \
12211 (cd perl && \
12212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12214 "RANLIB=$${RANLIB}" \
12215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12216 installcheck) \
12217 || exit 1
12220 .PHONY: maybe-mostlyclean-perl mostlyclean-perl
12221 maybe-mostlyclean-perl:
12223 mostlyclean-perl:
12224 @[ -f ./perl/Makefile ] || exit 0; \
12225 r=`${PWD_COMMAND}`; export r; \
12226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12227 $(SET_LIB_PATH) \
12228 for flag in $(EXTRA_HOST_FLAGS); do \
12229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12230 done; \
12231 echo "Doing mostlyclean in perl" ; \
12232 (cd perl && \
12233 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12234 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12235 "RANLIB=$${RANLIB}" \
12236 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12237 mostlyclean) \
12238 || exit 1
12241 .PHONY: maybe-clean-perl clean-perl
12242 maybe-clean-perl:
12244 clean-perl:
12245 @[ -f ./perl/Makefile ] || exit 0; \
12246 r=`${PWD_COMMAND}`; export r; \
12247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12248 $(SET_LIB_PATH) \
12249 for flag in $(EXTRA_HOST_FLAGS); do \
12250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12251 done; \
12252 echo "Doing clean in perl" ; \
12253 (cd perl && \
12254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12256 "RANLIB=$${RANLIB}" \
12257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12258 clean) \
12259 || exit 1
12262 .PHONY: maybe-distclean-perl distclean-perl
12263 maybe-distclean-perl:
12265 distclean-perl:
12266 @[ -f ./perl/Makefile ] || exit 0; \
12267 r=`${PWD_COMMAND}`; export r; \
12268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12269 $(SET_LIB_PATH) \
12270 for flag in $(EXTRA_HOST_FLAGS); do \
12271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12272 done; \
12273 echo "Doing distclean in perl" ; \
12274 (cd perl && \
12275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12277 "RANLIB=$${RANLIB}" \
12278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12279 distclean) \
12280 || exit 1
12283 .PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
12284 maybe-maintainer-clean-perl:
12286 maintainer-clean-perl:
12287 @[ -f ./perl/Makefile ] || exit 0; \
12288 r=`${PWD_COMMAND}`; export r; \
12289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12290 $(SET_LIB_PATH) \
12291 for flag in $(EXTRA_HOST_FLAGS); do \
12292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12293 done; \
12294 echo "Doing maintainer-clean in perl" ; \
12295 (cd perl && \
12296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12298 "RANLIB=$${RANLIB}" \
12299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12300 maintainer-clean) \
12301 || exit 1
12305 .PHONY: configure-prms maybe-configure-prms
12306 maybe-configure-prms:
12307 configure-prms:
12308 @test ! -f prms/Makefile || exit 0; \
12309 [ -d prms ] || mkdir prms; \
12310 r=`${PWD_COMMAND}`; export r; \
12311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12312 CC="$(CC)"; export CC; \
12313 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12314 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12315 CXX="$(CXX)"; export CXX; \
12316 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12317 AR="$(AR)"; export AR; \
12318 AS="$(AS)"; export AS; \
12319 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12320 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12321 LD="$(LD)"; export LD; \
12322 NM="$(NM)"; export NM; \
12323 RANLIB="$(RANLIB)"; export RANLIB; \
12324 WINDRES="$(WINDRES)"; export WINDRES; \
12325 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12326 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12327 echo Configuring in prms; \
12328 cd prms || exit 1; \
12329 case $(srcdir) in \
12330 \.) \
12331 srcdiroption="--srcdir=."; \
12332 libsrcdir=".";; \
12333 /* | [A-Za-z]:[\\/]*) \
12334 srcdiroption="--srcdir=$(srcdir)/prms"; \
12335 libsrcdir="$$s/prms";; \
12336 *) \
12337 srcdiroption="--srcdir=../$(srcdir)/prms"; \
12338 libsrcdir="$$s/prms";; \
12339 esac; \
12340 $(SHELL) $${libsrcdir}/configure \
12341 $(HOST_CONFIGARGS) $${srcdiroption} \
12342 || exit 1
12344 .PHONY: all-prms maybe-all-prms
12345 maybe-all-prms:
12346 all-prms: configure-prms
12347 @r=`${PWD_COMMAND}`; export r; \
12348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12349 $(SET_LIB_PATH) \
12350 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
12352 .PHONY: check-prms maybe-check-prms
12353 maybe-check-prms:
12355 check-prms:
12356 @r=`${PWD_COMMAND}`; export r; \
12357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12358 $(SET_LIB_PATH) \
12359 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
12362 .PHONY: install-prms maybe-install-prms
12363 maybe-install-prms:
12365 install-prms: installdirs
12366 @r=`${PWD_COMMAND}`; export r; \
12367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12368 $(SET_LIB_PATH) \
12369 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
12372 # Other targets (info, dvi, etc.)
12374 .PHONY: maybe-info-prms info-prms
12375 maybe-info-prms:
12377 info-prms: \
12378 configure-prms
12379 @[ -f ./prms/Makefile ] || exit 0; \
12380 r=`${PWD_COMMAND}`; export r; \
12381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12382 $(SET_LIB_PATH) \
12383 for flag in $(EXTRA_HOST_FLAGS); do \
12384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12385 done; \
12386 echo "Doing info in prms" ; \
12387 (cd prms && \
12388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12390 "RANLIB=$${RANLIB}" \
12391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12392 info) \
12393 || exit 1
12396 .PHONY: maybe-dvi-prms dvi-prms
12397 maybe-dvi-prms:
12399 dvi-prms: \
12400 configure-prms
12401 @[ -f ./prms/Makefile ] || exit 0; \
12402 r=`${PWD_COMMAND}`; export r; \
12403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12404 $(SET_LIB_PATH) \
12405 for flag in $(EXTRA_HOST_FLAGS); do \
12406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12407 done; \
12408 echo "Doing dvi in prms" ; \
12409 (cd prms && \
12410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12412 "RANLIB=$${RANLIB}" \
12413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12414 dvi) \
12415 || exit 1
12418 .PHONY: maybe-TAGS-prms TAGS-prms
12419 maybe-TAGS-prms:
12421 TAGS-prms: \
12422 configure-prms
12423 @[ -f ./prms/Makefile ] || exit 0; \
12424 r=`${PWD_COMMAND}`; export r; \
12425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12426 $(SET_LIB_PATH) \
12427 for flag in $(EXTRA_HOST_FLAGS); do \
12428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12429 done; \
12430 echo "Doing TAGS in prms" ; \
12431 (cd prms && \
12432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12434 "RANLIB=$${RANLIB}" \
12435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12436 TAGS) \
12437 || exit 1
12440 .PHONY: maybe-install-info-prms install-info-prms
12441 maybe-install-info-prms:
12443 install-info-prms: \
12444 configure-prms \
12445 info-prms
12446 @[ -f ./prms/Makefile ] || exit 0; \
12447 r=`${PWD_COMMAND}`; export r; \
12448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12449 $(SET_LIB_PATH) \
12450 for flag in $(EXTRA_HOST_FLAGS); do \
12451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12452 done; \
12453 echo "Doing install-info in prms" ; \
12454 (cd prms && \
12455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12457 "RANLIB=$${RANLIB}" \
12458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12459 install-info) \
12460 || exit 1
12463 .PHONY: maybe-installcheck-prms installcheck-prms
12464 maybe-installcheck-prms:
12466 installcheck-prms: \
12467 configure-prms
12468 @[ -f ./prms/Makefile ] || exit 0; \
12469 r=`${PWD_COMMAND}`; export r; \
12470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12471 $(SET_LIB_PATH) \
12472 for flag in $(EXTRA_HOST_FLAGS); do \
12473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12474 done; \
12475 echo "Doing installcheck in prms" ; \
12476 (cd prms && \
12477 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12478 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12479 "RANLIB=$${RANLIB}" \
12480 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12481 installcheck) \
12482 || exit 1
12485 .PHONY: maybe-mostlyclean-prms mostlyclean-prms
12486 maybe-mostlyclean-prms:
12488 mostlyclean-prms:
12489 @[ -f ./prms/Makefile ] || exit 0; \
12490 r=`${PWD_COMMAND}`; export r; \
12491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12492 $(SET_LIB_PATH) \
12493 for flag in $(EXTRA_HOST_FLAGS); do \
12494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12495 done; \
12496 echo "Doing mostlyclean in prms" ; \
12497 (cd prms && \
12498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12500 "RANLIB=$${RANLIB}" \
12501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12502 mostlyclean) \
12503 || exit 1
12506 .PHONY: maybe-clean-prms clean-prms
12507 maybe-clean-prms:
12509 clean-prms:
12510 @[ -f ./prms/Makefile ] || exit 0; \
12511 r=`${PWD_COMMAND}`; export r; \
12512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12513 $(SET_LIB_PATH) \
12514 for flag in $(EXTRA_HOST_FLAGS); do \
12515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12516 done; \
12517 echo "Doing clean in prms" ; \
12518 (cd prms && \
12519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12521 "RANLIB=$${RANLIB}" \
12522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12523 clean) \
12524 || exit 1
12527 .PHONY: maybe-distclean-prms distclean-prms
12528 maybe-distclean-prms:
12530 distclean-prms:
12531 @[ -f ./prms/Makefile ] || exit 0; \
12532 r=`${PWD_COMMAND}`; export r; \
12533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12534 $(SET_LIB_PATH) \
12535 for flag in $(EXTRA_HOST_FLAGS); do \
12536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12537 done; \
12538 echo "Doing distclean in prms" ; \
12539 (cd prms && \
12540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12542 "RANLIB=$${RANLIB}" \
12543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12544 distclean) \
12545 || exit 1
12548 .PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
12549 maybe-maintainer-clean-prms:
12551 maintainer-clean-prms:
12552 @[ -f ./prms/Makefile ] || exit 0; \
12553 r=`${PWD_COMMAND}`; export r; \
12554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12555 $(SET_LIB_PATH) \
12556 for flag in $(EXTRA_HOST_FLAGS); do \
12557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12558 done; \
12559 echo "Doing maintainer-clean in prms" ; \
12560 (cd prms && \
12561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12563 "RANLIB=$${RANLIB}" \
12564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12565 maintainer-clean) \
12566 || exit 1
12570 .PHONY: configure-rcs maybe-configure-rcs
12571 maybe-configure-rcs:
12572 configure-rcs:
12573 @test ! -f rcs/Makefile || exit 0; \
12574 [ -d rcs ] || mkdir rcs; \
12575 r=`${PWD_COMMAND}`; export r; \
12576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12577 CC="$(CC)"; export CC; \
12578 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12579 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12580 CXX="$(CXX)"; export CXX; \
12581 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12582 AR="$(AR)"; export AR; \
12583 AS="$(AS)"; export AS; \
12584 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12585 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12586 LD="$(LD)"; export LD; \
12587 NM="$(NM)"; export NM; \
12588 RANLIB="$(RANLIB)"; export RANLIB; \
12589 WINDRES="$(WINDRES)"; export WINDRES; \
12590 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12591 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12592 echo Configuring in rcs; \
12593 cd rcs || exit 1; \
12594 case $(srcdir) in \
12595 \.) \
12596 srcdiroption="--srcdir=."; \
12597 libsrcdir=".";; \
12598 /* | [A-Za-z]:[\\/]*) \
12599 srcdiroption="--srcdir=$(srcdir)/rcs"; \
12600 libsrcdir="$$s/rcs";; \
12601 *) \
12602 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
12603 libsrcdir="$$s/rcs";; \
12604 esac; \
12605 $(SHELL) $${libsrcdir}/configure \
12606 $(HOST_CONFIGARGS) $${srcdiroption} \
12607 || exit 1
12609 .PHONY: all-rcs maybe-all-rcs
12610 maybe-all-rcs:
12611 all-rcs: configure-rcs
12612 @r=`${PWD_COMMAND}`; export r; \
12613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12614 $(SET_LIB_PATH) \
12615 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
12617 .PHONY: check-rcs maybe-check-rcs
12618 maybe-check-rcs:
12620 check-rcs:
12621 @r=`${PWD_COMMAND}`; export r; \
12622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12623 $(SET_LIB_PATH) \
12624 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
12627 .PHONY: install-rcs maybe-install-rcs
12628 maybe-install-rcs:
12630 install-rcs: installdirs
12631 @r=`${PWD_COMMAND}`; export r; \
12632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12633 $(SET_LIB_PATH) \
12634 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
12637 # Other targets (info, dvi, etc.)
12639 .PHONY: maybe-info-rcs info-rcs
12640 maybe-info-rcs:
12642 info-rcs: \
12643 configure-rcs
12644 @[ -f ./rcs/Makefile ] || exit 0; \
12645 r=`${PWD_COMMAND}`; export r; \
12646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12647 $(SET_LIB_PATH) \
12648 for flag in $(EXTRA_HOST_FLAGS); do \
12649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12650 done; \
12651 echo "Doing info in rcs" ; \
12652 (cd rcs && \
12653 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12654 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12655 "RANLIB=$${RANLIB}" \
12656 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12657 info) \
12658 || exit 1
12661 .PHONY: maybe-dvi-rcs dvi-rcs
12662 maybe-dvi-rcs:
12664 dvi-rcs: \
12665 configure-rcs
12666 @[ -f ./rcs/Makefile ] || exit 0; \
12667 r=`${PWD_COMMAND}`; export r; \
12668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12669 $(SET_LIB_PATH) \
12670 for flag in $(EXTRA_HOST_FLAGS); do \
12671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12672 done; \
12673 echo "Doing dvi in rcs" ; \
12674 (cd rcs && \
12675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12677 "RANLIB=$${RANLIB}" \
12678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12679 dvi) \
12680 || exit 1
12683 .PHONY: maybe-TAGS-rcs TAGS-rcs
12684 maybe-TAGS-rcs:
12686 TAGS-rcs: \
12687 configure-rcs
12688 @[ -f ./rcs/Makefile ] || exit 0; \
12689 r=`${PWD_COMMAND}`; export r; \
12690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12691 $(SET_LIB_PATH) \
12692 for flag in $(EXTRA_HOST_FLAGS); do \
12693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12694 done; \
12695 echo "Doing TAGS in rcs" ; \
12696 (cd rcs && \
12697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12699 "RANLIB=$${RANLIB}" \
12700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12701 TAGS) \
12702 || exit 1
12705 .PHONY: maybe-install-info-rcs install-info-rcs
12706 maybe-install-info-rcs:
12708 install-info-rcs: \
12709 configure-rcs \
12710 info-rcs
12711 @[ -f ./rcs/Makefile ] || exit 0; \
12712 r=`${PWD_COMMAND}`; export r; \
12713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12714 $(SET_LIB_PATH) \
12715 for flag in $(EXTRA_HOST_FLAGS); do \
12716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12717 done; \
12718 echo "Doing install-info in rcs" ; \
12719 (cd rcs && \
12720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12722 "RANLIB=$${RANLIB}" \
12723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12724 install-info) \
12725 || exit 1
12728 .PHONY: maybe-installcheck-rcs installcheck-rcs
12729 maybe-installcheck-rcs:
12731 installcheck-rcs: \
12732 configure-rcs
12733 @[ -f ./rcs/Makefile ] || exit 0; \
12734 r=`${PWD_COMMAND}`; export r; \
12735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12736 $(SET_LIB_PATH) \
12737 for flag in $(EXTRA_HOST_FLAGS); do \
12738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12739 done; \
12740 echo "Doing installcheck in rcs" ; \
12741 (cd rcs && \
12742 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12743 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12744 "RANLIB=$${RANLIB}" \
12745 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12746 installcheck) \
12747 || exit 1
12750 .PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
12751 maybe-mostlyclean-rcs:
12753 mostlyclean-rcs:
12754 @[ -f ./rcs/Makefile ] || exit 0; \
12755 r=`${PWD_COMMAND}`; export r; \
12756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12757 $(SET_LIB_PATH) \
12758 for flag in $(EXTRA_HOST_FLAGS); do \
12759 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12760 done; \
12761 echo "Doing mostlyclean in rcs" ; \
12762 (cd rcs && \
12763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12765 "RANLIB=$${RANLIB}" \
12766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12767 mostlyclean) \
12768 || exit 1
12771 .PHONY: maybe-clean-rcs clean-rcs
12772 maybe-clean-rcs:
12774 clean-rcs:
12775 @[ -f ./rcs/Makefile ] || exit 0; \
12776 r=`${PWD_COMMAND}`; export r; \
12777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12778 $(SET_LIB_PATH) \
12779 for flag in $(EXTRA_HOST_FLAGS); do \
12780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12781 done; \
12782 echo "Doing clean in rcs" ; \
12783 (cd rcs && \
12784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12786 "RANLIB=$${RANLIB}" \
12787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12788 clean) \
12789 || exit 1
12792 .PHONY: maybe-distclean-rcs distclean-rcs
12793 maybe-distclean-rcs:
12795 distclean-rcs:
12796 @[ -f ./rcs/Makefile ] || exit 0; \
12797 r=`${PWD_COMMAND}`; export r; \
12798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12799 $(SET_LIB_PATH) \
12800 for flag in $(EXTRA_HOST_FLAGS); do \
12801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12802 done; \
12803 echo "Doing distclean in rcs" ; \
12804 (cd rcs && \
12805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12807 "RANLIB=$${RANLIB}" \
12808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12809 distclean) \
12810 || exit 1
12813 .PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
12814 maybe-maintainer-clean-rcs:
12816 maintainer-clean-rcs:
12817 @[ -f ./rcs/Makefile ] || exit 0; \
12818 r=`${PWD_COMMAND}`; export r; \
12819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12820 $(SET_LIB_PATH) \
12821 for flag in $(EXTRA_HOST_FLAGS); do \
12822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12823 done; \
12824 echo "Doing maintainer-clean in rcs" ; \
12825 (cd rcs && \
12826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12828 "RANLIB=$${RANLIB}" \
12829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12830 maintainer-clean) \
12831 || exit 1
12835 .PHONY: configure-readline maybe-configure-readline
12836 maybe-configure-readline:
12837 configure-readline:
12838 @test ! -f readline/Makefile || exit 0; \
12839 [ -d readline ] || mkdir readline; \
12840 r=`${PWD_COMMAND}`; export r; \
12841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12842 CC="$(CC)"; export CC; \
12843 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12844 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12845 CXX="$(CXX)"; export CXX; \
12846 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12847 AR="$(AR)"; export AR; \
12848 AS="$(AS)"; export AS; \
12849 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12850 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12851 LD="$(LD)"; export LD; \
12852 NM="$(NM)"; export NM; \
12853 RANLIB="$(RANLIB)"; export RANLIB; \
12854 WINDRES="$(WINDRES)"; export WINDRES; \
12855 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12856 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12857 echo Configuring in readline; \
12858 cd readline || exit 1; \
12859 case $(srcdir) in \
12860 \.) \
12861 srcdiroption="--srcdir=."; \
12862 libsrcdir=".";; \
12863 /* | [A-Za-z]:[\\/]*) \
12864 srcdiroption="--srcdir=$(srcdir)/readline"; \
12865 libsrcdir="$$s/readline";; \
12866 *) \
12867 srcdiroption="--srcdir=../$(srcdir)/readline"; \
12868 libsrcdir="$$s/readline";; \
12869 esac; \
12870 $(SHELL) $${libsrcdir}/configure \
12871 $(HOST_CONFIGARGS) $${srcdiroption} \
12872 || exit 1
12874 .PHONY: all-readline maybe-all-readline
12875 maybe-all-readline:
12876 all-readline: configure-readline
12877 @r=`${PWD_COMMAND}`; export r; \
12878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12879 $(SET_LIB_PATH) \
12880 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
12882 .PHONY: check-readline maybe-check-readline
12883 maybe-check-readline:
12885 check-readline:
12886 @r=`${PWD_COMMAND}`; export r; \
12887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12888 $(SET_LIB_PATH) \
12889 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
12892 .PHONY: install-readline maybe-install-readline
12893 maybe-install-readline:
12895 install-readline: installdirs
12896 @r=`${PWD_COMMAND}`; export r; \
12897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12898 $(SET_LIB_PATH) \
12899 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
12902 # Other targets (info, dvi, etc.)
12904 .PHONY: maybe-info-readline info-readline
12905 maybe-info-readline:
12907 info-readline: \
12908 configure-readline
12909 @[ -f ./readline/Makefile ] || exit 0; \
12910 r=`${PWD_COMMAND}`; export r; \
12911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12912 $(SET_LIB_PATH) \
12913 for flag in $(EXTRA_HOST_FLAGS); do \
12914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12915 done; \
12916 echo "Doing info in readline" ; \
12917 (cd readline && \
12918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12920 "RANLIB=$${RANLIB}" \
12921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12922 info) \
12923 || exit 1
12926 .PHONY: maybe-dvi-readline dvi-readline
12927 maybe-dvi-readline:
12929 dvi-readline: \
12930 configure-readline
12931 @[ -f ./readline/Makefile ] || exit 0; \
12932 r=`${PWD_COMMAND}`; export r; \
12933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12934 $(SET_LIB_PATH) \
12935 for flag in $(EXTRA_HOST_FLAGS); do \
12936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12937 done; \
12938 echo "Doing dvi in readline" ; \
12939 (cd readline && \
12940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12942 "RANLIB=$${RANLIB}" \
12943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12944 dvi) \
12945 || exit 1
12948 .PHONY: maybe-TAGS-readline TAGS-readline
12949 maybe-TAGS-readline:
12951 TAGS-readline: \
12952 configure-readline
12953 @[ -f ./readline/Makefile ] || exit 0; \
12954 r=`${PWD_COMMAND}`; export r; \
12955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12956 $(SET_LIB_PATH) \
12957 for flag in $(EXTRA_HOST_FLAGS); do \
12958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12959 done; \
12960 echo "Doing TAGS in readline" ; \
12961 (cd readline && \
12962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12964 "RANLIB=$${RANLIB}" \
12965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12966 TAGS) \
12967 || exit 1
12970 .PHONY: maybe-install-info-readline install-info-readline
12971 maybe-install-info-readline:
12973 install-info-readline: \
12974 configure-readline \
12975 info-readline
12976 @[ -f ./readline/Makefile ] || exit 0; \
12977 r=`${PWD_COMMAND}`; export r; \
12978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12979 $(SET_LIB_PATH) \
12980 for flag in $(EXTRA_HOST_FLAGS); do \
12981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12982 done; \
12983 echo "Doing install-info in readline" ; \
12984 (cd readline && \
12985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12987 "RANLIB=$${RANLIB}" \
12988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12989 install-info) \
12990 || exit 1
12993 .PHONY: maybe-installcheck-readline installcheck-readline
12994 maybe-installcheck-readline:
12996 installcheck-readline: \
12997 configure-readline
12998 @[ -f ./readline/Makefile ] || exit 0; \
12999 r=`${PWD_COMMAND}`; export r; \
13000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13001 $(SET_LIB_PATH) \
13002 for flag in $(EXTRA_HOST_FLAGS); do \
13003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13004 done; \
13005 echo "Doing installcheck in readline" ; \
13006 (cd readline && \
13007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13009 "RANLIB=$${RANLIB}" \
13010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13011 installcheck) \
13012 || exit 1
13015 .PHONY: maybe-mostlyclean-readline mostlyclean-readline
13016 maybe-mostlyclean-readline:
13018 mostlyclean-readline:
13019 @[ -f ./readline/Makefile ] || exit 0; \
13020 r=`${PWD_COMMAND}`; export r; \
13021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13022 $(SET_LIB_PATH) \
13023 for flag in $(EXTRA_HOST_FLAGS); do \
13024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13025 done; \
13026 echo "Doing mostlyclean in readline" ; \
13027 (cd readline && \
13028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13030 "RANLIB=$${RANLIB}" \
13031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13032 mostlyclean) \
13033 || exit 1
13036 .PHONY: maybe-clean-readline clean-readline
13037 maybe-clean-readline:
13039 clean-readline:
13040 @[ -f ./readline/Makefile ] || exit 0; \
13041 r=`${PWD_COMMAND}`; export r; \
13042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13043 $(SET_LIB_PATH) \
13044 for flag in $(EXTRA_HOST_FLAGS); do \
13045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13046 done; \
13047 echo "Doing clean in readline" ; \
13048 (cd readline && \
13049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13051 "RANLIB=$${RANLIB}" \
13052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13053 clean) \
13054 || exit 1
13057 .PHONY: maybe-distclean-readline distclean-readline
13058 maybe-distclean-readline:
13060 distclean-readline:
13061 @[ -f ./readline/Makefile ] || exit 0; \
13062 r=`${PWD_COMMAND}`; export r; \
13063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13064 $(SET_LIB_PATH) \
13065 for flag in $(EXTRA_HOST_FLAGS); do \
13066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13067 done; \
13068 echo "Doing distclean in readline" ; \
13069 (cd readline && \
13070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13072 "RANLIB=$${RANLIB}" \
13073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13074 distclean) \
13075 || exit 1
13078 .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
13079 maybe-maintainer-clean-readline:
13081 maintainer-clean-readline:
13082 @[ -f ./readline/Makefile ] || exit 0; \
13083 r=`${PWD_COMMAND}`; export r; \
13084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13085 $(SET_LIB_PATH) \
13086 for flag in $(EXTRA_HOST_FLAGS); do \
13087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13088 done; \
13089 echo "Doing maintainer-clean in readline" ; \
13090 (cd readline && \
13091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13093 "RANLIB=$${RANLIB}" \
13094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13095 maintainer-clean) \
13096 || exit 1
13100 .PHONY: configure-release maybe-configure-release
13101 maybe-configure-release:
13102 configure-release:
13103 @test ! -f release/Makefile || exit 0; \
13104 [ -d release ] || mkdir release; \
13105 r=`${PWD_COMMAND}`; export r; \
13106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13107 CC="$(CC)"; export CC; \
13108 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13109 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13110 CXX="$(CXX)"; export CXX; \
13111 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13112 AR="$(AR)"; export AR; \
13113 AS="$(AS)"; export AS; \
13114 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13115 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13116 LD="$(LD)"; export LD; \
13117 NM="$(NM)"; export NM; \
13118 RANLIB="$(RANLIB)"; export RANLIB; \
13119 WINDRES="$(WINDRES)"; export WINDRES; \
13120 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13121 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13122 echo Configuring in release; \
13123 cd release || exit 1; \
13124 case $(srcdir) in \
13125 \.) \
13126 srcdiroption="--srcdir=."; \
13127 libsrcdir=".";; \
13128 /* | [A-Za-z]:[\\/]*) \
13129 srcdiroption="--srcdir=$(srcdir)/release"; \
13130 libsrcdir="$$s/release";; \
13131 *) \
13132 srcdiroption="--srcdir=../$(srcdir)/release"; \
13133 libsrcdir="$$s/release";; \
13134 esac; \
13135 $(SHELL) $${libsrcdir}/configure \
13136 $(HOST_CONFIGARGS) $${srcdiroption} \
13137 || exit 1
13139 .PHONY: all-release maybe-all-release
13140 maybe-all-release:
13141 all-release: configure-release
13142 @r=`${PWD_COMMAND}`; export r; \
13143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13144 $(SET_LIB_PATH) \
13145 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
13147 .PHONY: check-release maybe-check-release
13148 maybe-check-release:
13150 check-release:
13153 .PHONY: install-release maybe-install-release
13154 maybe-install-release:
13156 install-release:
13159 # Other targets (info, dvi, etc.)
13161 .PHONY: maybe-info-release info-release
13162 maybe-info-release:
13164 info-release: \
13165 configure-release
13166 @[ -f ./release/Makefile ] || exit 0; \
13167 r=`${PWD_COMMAND}`; export r; \
13168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13169 $(SET_LIB_PATH) \
13170 for flag in $(EXTRA_HOST_FLAGS); do \
13171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13172 done; \
13173 echo "Doing info in release" ; \
13174 (cd release && \
13175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13177 "RANLIB=$${RANLIB}" \
13178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13179 info) \
13180 || exit 1
13183 .PHONY: maybe-dvi-release dvi-release
13184 maybe-dvi-release:
13186 dvi-release: \
13187 configure-release
13188 @[ -f ./release/Makefile ] || exit 0; \
13189 r=`${PWD_COMMAND}`; export r; \
13190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13191 $(SET_LIB_PATH) \
13192 for flag in $(EXTRA_HOST_FLAGS); do \
13193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13194 done; \
13195 echo "Doing dvi in release" ; \
13196 (cd release && \
13197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13199 "RANLIB=$${RANLIB}" \
13200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13201 dvi) \
13202 || exit 1
13205 .PHONY: maybe-TAGS-release TAGS-release
13206 maybe-TAGS-release:
13208 TAGS-release: \
13209 configure-release
13210 @[ -f ./release/Makefile ] || exit 0; \
13211 r=`${PWD_COMMAND}`; export r; \
13212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13213 $(SET_LIB_PATH) \
13214 for flag in $(EXTRA_HOST_FLAGS); do \
13215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13216 done; \
13217 echo "Doing TAGS in release" ; \
13218 (cd release && \
13219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13221 "RANLIB=$${RANLIB}" \
13222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13223 TAGS) \
13224 || exit 1
13227 .PHONY: maybe-install-info-release install-info-release
13228 maybe-install-info-release:
13230 install-info-release: \
13231 configure-release \
13232 info-release
13233 @[ -f ./release/Makefile ] || exit 0; \
13234 r=`${PWD_COMMAND}`; export r; \
13235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13236 $(SET_LIB_PATH) \
13237 for flag in $(EXTRA_HOST_FLAGS); do \
13238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13239 done; \
13240 echo "Doing install-info in release" ; \
13241 (cd release && \
13242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13244 "RANLIB=$${RANLIB}" \
13245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13246 install-info) \
13247 || exit 1
13250 .PHONY: maybe-installcheck-release installcheck-release
13251 maybe-installcheck-release:
13253 installcheck-release: \
13254 configure-release
13255 @[ -f ./release/Makefile ] || exit 0; \
13256 r=`${PWD_COMMAND}`; export r; \
13257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13258 $(SET_LIB_PATH) \
13259 for flag in $(EXTRA_HOST_FLAGS); do \
13260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13261 done; \
13262 echo "Doing installcheck in release" ; \
13263 (cd release && \
13264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13266 "RANLIB=$${RANLIB}" \
13267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13268 installcheck) \
13269 || exit 1
13272 .PHONY: maybe-mostlyclean-release mostlyclean-release
13273 maybe-mostlyclean-release:
13275 mostlyclean-release:
13276 @[ -f ./release/Makefile ] || exit 0; \
13277 r=`${PWD_COMMAND}`; export r; \
13278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13279 $(SET_LIB_PATH) \
13280 for flag in $(EXTRA_HOST_FLAGS); do \
13281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13282 done; \
13283 echo "Doing mostlyclean in release" ; \
13284 (cd release && \
13285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13287 "RANLIB=$${RANLIB}" \
13288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13289 mostlyclean) \
13290 || exit 1
13293 .PHONY: maybe-clean-release clean-release
13294 maybe-clean-release:
13296 clean-release:
13297 @[ -f ./release/Makefile ] || exit 0; \
13298 r=`${PWD_COMMAND}`; export r; \
13299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13300 $(SET_LIB_PATH) \
13301 for flag in $(EXTRA_HOST_FLAGS); do \
13302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13303 done; \
13304 echo "Doing clean in release" ; \
13305 (cd release && \
13306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13308 "RANLIB=$${RANLIB}" \
13309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13310 clean) \
13311 || exit 1
13314 .PHONY: maybe-distclean-release distclean-release
13315 maybe-distclean-release:
13317 distclean-release:
13318 @[ -f ./release/Makefile ] || exit 0; \
13319 r=`${PWD_COMMAND}`; export r; \
13320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13321 $(SET_LIB_PATH) \
13322 for flag in $(EXTRA_HOST_FLAGS); do \
13323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13324 done; \
13325 echo "Doing distclean in release" ; \
13326 (cd release && \
13327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13329 "RANLIB=$${RANLIB}" \
13330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13331 distclean) \
13332 || exit 1
13335 .PHONY: maybe-maintainer-clean-release maintainer-clean-release
13336 maybe-maintainer-clean-release:
13338 maintainer-clean-release:
13339 @[ -f ./release/Makefile ] || exit 0; \
13340 r=`${PWD_COMMAND}`; export r; \
13341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13342 $(SET_LIB_PATH) \
13343 for flag in $(EXTRA_HOST_FLAGS); do \
13344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13345 done; \
13346 echo "Doing maintainer-clean in release" ; \
13347 (cd release && \
13348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13350 "RANLIB=$${RANLIB}" \
13351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13352 maintainer-clean) \
13353 || exit 1
13357 .PHONY: configure-recode maybe-configure-recode
13358 maybe-configure-recode:
13359 configure-recode:
13360 @test ! -f recode/Makefile || exit 0; \
13361 [ -d recode ] || mkdir recode; \
13362 r=`${PWD_COMMAND}`; export r; \
13363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13364 CC="$(CC)"; export CC; \
13365 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13366 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13367 CXX="$(CXX)"; export CXX; \
13368 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13369 AR="$(AR)"; export AR; \
13370 AS="$(AS)"; export AS; \
13371 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13372 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13373 LD="$(LD)"; export LD; \
13374 NM="$(NM)"; export NM; \
13375 RANLIB="$(RANLIB)"; export RANLIB; \
13376 WINDRES="$(WINDRES)"; export WINDRES; \
13377 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13378 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13379 echo Configuring in recode; \
13380 cd recode || exit 1; \
13381 case $(srcdir) in \
13382 \.) \
13383 srcdiroption="--srcdir=."; \
13384 libsrcdir=".";; \
13385 /* | [A-Za-z]:[\\/]*) \
13386 srcdiroption="--srcdir=$(srcdir)/recode"; \
13387 libsrcdir="$$s/recode";; \
13388 *) \
13389 srcdiroption="--srcdir=../$(srcdir)/recode"; \
13390 libsrcdir="$$s/recode";; \
13391 esac; \
13392 $(SHELL) $${libsrcdir}/configure \
13393 $(HOST_CONFIGARGS) $${srcdiroption} \
13394 || exit 1
13396 .PHONY: all-recode maybe-all-recode
13397 maybe-all-recode:
13398 all-recode: configure-recode
13399 @r=`${PWD_COMMAND}`; export r; \
13400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13401 $(SET_LIB_PATH) \
13402 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
13404 .PHONY: check-recode maybe-check-recode
13405 maybe-check-recode:
13407 check-recode:
13408 @r=`${PWD_COMMAND}`; export r; \
13409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13410 $(SET_LIB_PATH) \
13411 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
13414 .PHONY: install-recode maybe-install-recode
13415 maybe-install-recode:
13417 install-recode: installdirs
13418 @r=`${PWD_COMMAND}`; export r; \
13419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13420 $(SET_LIB_PATH) \
13421 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
13424 # Other targets (info, dvi, etc.)
13426 .PHONY: maybe-info-recode info-recode
13427 maybe-info-recode:
13429 info-recode: \
13430 configure-recode
13431 @[ -f ./recode/Makefile ] || exit 0; \
13432 r=`${PWD_COMMAND}`; export r; \
13433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13434 $(SET_LIB_PATH) \
13435 for flag in $(EXTRA_HOST_FLAGS); do \
13436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13437 done; \
13438 echo "Doing info in recode" ; \
13439 (cd recode && \
13440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13442 "RANLIB=$${RANLIB}" \
13443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13444 info) \
13445 || exit 1
13448 .PHONY: maybe-dvi-recode dvi-recode
13449 maybe-dvi-recode:
13451 dvi-recode: \
13452 configure-recode
13453 @[ -f ./recode/Makefile ] || exit 0; \
13454 r=`${PWD_COMMAND}`; export r; \
13455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13456 $(SET_LIB_PATH) \
13457 for flag in $(EXTRA_HOST_FLAGS); do \
13458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13459 done; \
13460 echo "Doing dvi in recode" ; \
13461 (cd recode && \
13462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13464 "RANLIB=$${RANLIB}" \
13465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13466 dvi) \
13467 || exit 1
13470 .PHONY: maybe-TAGS-recode TAGS-recode
13471 maybe-TAGS-recode:
13473 TAGS-recode: \
13474 configure-recode
13475 @[ -f ./recode/Makefile ] || exit 0; \
13476 r=`${PWD_COMMAND}`; export r; \
13477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13478 $(SET_LIB_PATH) \
13479 for flag in $(EXTRA_HOST_FLAGS); do \
13480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13481 done; \
13482 echo "Doing TAGS in recode" ; \
13483 (cd recode && \
13484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13486 "RANLIB=$${RANLIB}" \
13487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13488 TAGS) \
13489 || exit 1
13492 .PHONY: maybe-install-info-recode install-info-recode
13493 maybe-install-info-recode:
13495 install-info-recode: \
13496 configure-recode \
13497 info-recode
13498 @[ -f ./recode/Makefile ] || exit 0; \
13499 r=`${PWD_COMMAND}`; export r; \
13500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13501 $(SET_LIB_PATH) \
13502 for flag in $(EXTRA_HOST_FLAGS); do \
13503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13504 done; \
13505 echo "Doing install-info in recode" ; \
13506 (cd recode && \
13507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13509 "RANLIB=$${RANLIB}" \
13510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13511 install-info) \
13512 || exit 1
13515 .PHONY: maybe-installcheck-recode installcheck-recode
13516 maybe-installcheck-recode:
13518 installcheck-recode: \
13519 configure-recode
13520 @[ -f ./recode/Makefile ] || exit 0; \
13521 r=`${PWD_COMMAND}`; export r; \
13522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13523 $(SET_LIB_PATH) \
13524 for flag in $(EXTRA_HOST_FLAGS); do \
13525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13526 done; \
13527 echo "Doing installcheck in recode" ; \
13528 (cd recode && \
13529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13531 "RANLIB=$${RANLIB}" \
13532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13533 installcheck) \
13534 || exit 1
13537 .PHONY: maybe-mostlyclean-recode mostlyclean-recode
13538 maybe-mostlyclean-recode:
13540 mostlyclean-recode:
13541 @[ -f ./recode/Makefile ] || exit 0; \
13542 r=`${PWD_COMMAND}`; export r; \
13543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13544 $(SET_LIB_PATH) \
13545 for flag in $(EXTRA_HOST_FLAGS); do \
13546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13547 done; \
13548 echo "Doing mostlyclean in recode" ; \
13549 (cd recode && \
13550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13552 "RANLIB=$${RANLIB}" \
13553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13554 mostlyclean) \
13555 || exit 1
13558 .PHONY: maybe-clean-recode clean-recode
13559 maybe-clean-recode:
13561 clean-recode:
13562 @[ -f ./recode/Makefile ] || exit 0; \
13563 r=`${PWD_COMMAND}`; export r; \
13564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13565 $(SET_LIB_PATH) \
13566 for flag in $(EXTRA_HOST_FLAGS); do \
13567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13568 done; \
13569 echo "Doing clean in recode" ; \
13570 (cd recode && \
13571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13573 "RANLIB=$${RANLIB}" \
13574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13575 clean) \
13576 || exit 1
13579 .PHONY: maybe-distclean-recode distclean-recode
13580 maybe-distclean-recode:
13582 distclean-recode:
13583 @[ -f ./recode/Makefile ] || exit 0; \
13584 r=`${PWD_COMMAND}`; export r; \
13585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13586 $(SET_LIB_PATH) \
13587 for flag in $(EXTRA_HOST_FLAGS); do \
13588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13589 done; \
13590 echo "Doing distclean in recode" ; \
13591 (cd recode && \
13592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13594 "RANLIB=$${RANLIB}" \
13595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13596 distclean) \
13597 || exit 1
13600 .PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
13601 maybe-maintainer-clean-recode:
13603 maintainer-clean-recode:
13604 @[ -f ./recode/Makefile ] || exit 0; \
13605 r=`${PWD_COMMAND}`; export r; \
13606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13607 $(SET_LIB_PATH) \
13608 for flag in $(EXTRA_HOST_FLAGS); do \
13609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13610 done; \
13611 echo "Doing maintainer-clean in recode" ; \
13612 (cd recode && \
13613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13615 "RANLIB=$${RANLIB}" \
13616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13617 maintainer-clean) \
13618 || exit 1
13622 .PHONY: configure-sed maybe-configure-sed
13623 maybe-configure-sed:
13624 configure-sed:
13625 @test ! -f sed/Makefile || exit 0; \
13626 [ -d sed ] || mkdir sed; \
13627 r=`${PWD_COMMAND}`; export r; \
13628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13629 CC="$(CC)"; export CC; \
13630 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13631 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13632 CXX="$(CXX)"; export CXX; \
13633 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13634 AR="$(AR)"; export AR; \
13635 AS="$(AS)"; export AS; \
13636 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13637 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13638 LD="$(LD)"; export LD; \
13639 NM="$(NM)"; export NM; \
13640 RANLIB="$(RANLIB)"; export RANLIB; \
13641 WINDRES="$(WINDRES)"; export WINDRES; \
13642 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13643 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13644 echo Configuring in sed; \
13645 cd sed || exit 1; \
13646 case $(srcdir) in \
13647 \.) \
13648 srcdiroption="--srcdir=."; \
13649 libsrcdir=".";; \
13650 /* | [A-Za-z]:[\\/]*) \
13651 srcdiroption="--srcdir=$(srcdir)/sed"; \
13652 libsrcdir="$$s/sed";; \
13653 *) \
13654 srcdiroption="--srcdir=../$(srcdir)/sed"; \
13655 libsrcdir="$$s/sed";; \
13656 esac; \
13657 $(SHELL) $${libsrcdir}/configure \
13658 $(HOST_CONFIGARGS) $${srcdiroption} \
13659 || exit 1
13661 .PHONY: all-sed maybe-all-sed
13662 maybe-all-sed:
13663 all-sed: configure-sed
13664 @r=`${PWD_COMMAND}`; export r; \
13665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13666 $(SET_LIB_PATH) \
13667 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
13669 .PHONY: check-sed maybe-check-sed
13670 maybe-check-sed:
13672 check-sed:
13673 @r=`${PWD_COMMAND}`; export r; \
13674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13675 $(SET_LIB_PATH) \
13676 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
13679 .PHONY: install-sed maybe-install-sed
13680 maybe-install-sed:
13682 install-sed: installdirs
13683 @r=`${PWD_COMMAND}`; export r; \
13684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13685 $(SET_LIB_PATH) \
13686 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
13689 # Other targets (info, dvi, etc.)
13691 .PHONY: maybe-info-sed info-sed
13692 maybe-info-sed:
13694 info-sed: \
13695 configure-sed
13696 @[ -f ./sed/Makefile ] || exit 0; \
13697 r=`${PWD_COMMAND}`; export r; \
13698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13699 $(SET_LIB_PATH) \
13700 for flag in $(EXTRA_HOST_FLAGS); do \
13701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13702 done; \
13703 echo "Doing info in sed" ; \
13704 (cd sed && \
13705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13707 "RANLIB=$${RANLIB}" \
13708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13709 info) \
13710 || exit 1
13713 .PHONY: maybe-dvi-sed dvi-sed
13714 maybe-dvi-sed:
13716 dvi-sed: \
13717 configure-sed
13718 @[ -f ./sed/Makefile ] || exit 0; \
13719 r=`${PWD_COMMAND}`; export r; \
13720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13721 $(SET_LIB_PATH) \
13722 for flag in $(EXTRA_HOST_FLAGS); do \
13723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13724 done; \
13725 echo "Doing dvi in sed" ; \
13726 (cd sed && \
13727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13729 "RANLIB=$${RANLIB}" \
13730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13731 dvi) \
13732 || exit 1
13735 .PHONY: maybe-TAGS-sed TAGS-sed
13736 maybe-TAGS-sed:
13738 TAGS-sed: \
13739 configure-sed
13740 @[ -f ./sed/Makefile ] || exit 0; \
13741 r=`${PWD_COMMAND}`; export r; \
13742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13743 $(SET_LIB_PATH) \
13744 for flag in $(EXTRA_HOST_FLAGS); do \
13745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13746 done; \
13747 echo "Doing TAGS in sed" ; \
13748 (cd sed && \
13749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13751 "RANLIB=$${RANLIB}" \
13752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13753 TAGS) \
13754 || exit 1
13757 .PHONY: maybe-install-info-sed install-info-sed
13758 maybe-install-info-sed:
13760 install-info-sed: \
13761 configure-sed \
13762 info-sed
13763 @[ -f ./sed/Makefile ] || exit 0; \
13764 r=`${PWD_COMMAND}`; export r; \
13765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13766 $(SET_LIB_PATH) \
13767 for flag in $(EXTRA_HOST_FLAGS); do \
13768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13769 done; \
13770 echo "Doing install-info in sed" ; \
13771 (cd sed && \
13772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13774 "RANLIB=$${RANLIB}" \
13775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13776 install-info) \
13777 || exit 1
13780 .PHONY: maybe-installcheck-sed installcheck-sed
13781 maybe-installcheck-sed:
13783 installcheck-sed: \
13784 configure-sed
13785 @[ -f ./sed/Makefile ] || exit 0; \
13786 r=`${PWD_COMMAND}`; export r; \
13787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13788 $(SET_LIB_PATH) \
13789 for flag in $(EXTRA_HOST_FLAGS); do \
13790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13791 done; \
13792 echo "Doing installcheck in sed" ; \
13793 (cd sed && \
13794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13796 "RANLIB=$${RANLIB}" \
13797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13798 installcheck) \
13799 || exit 1
13802 .PHONY: maybe-mostlyclean-sed mostlyclean-sed
13803 maybe-mostlyclean-sed:
13805 mostlyclean-sed:
13806 @[ -f ./sed/Makefile ] || exit 0; \
13807 r=`${PWD_COMMAND}`; export r; \
13808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13809 $(SET_LIB_PATH) \
13810 for flag in $(EXTRA_HOST_FLAGS); do \
13811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13812 done; \
13813 echo "Doing mostlyclean in sed" ; \
13814 (cd sed && \
13815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13817 "RANLIB=$${RANLIB}" \
13818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13819 mostlyclean) \
13820 || exit 1
13823 .PHONY: maybe-clean-sed clean-sed
13824 maybe-clean-sed:
13826 clean-sed:
13827 @[ -f ./sed/Makefile ] || exit 0; \
13828 r=`${PWD_COMMAND}`; export r; \
13829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13830 $(SET_LIB_PATH) \
13831 for flag in $(EXTRA_HOST_FLAGS); do \
13832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13833 done; \
13834 echo "Doing clean in sed" ; \
13835 (cd sed && \
13836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13838 "RANLIB=$${RANLIB}" \
13839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13840 clean) \
13841 || exit 1
13844 .PHONY: maybe-distclean-sed distclean-sed
13845 maybe-distclean-sed:
13847 distclean-sed:
13848 @[ -f ./sed/Makefile ] || exit 0; \
13849 r=`${PWD_COMMAND}`; export r; \
13850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13851 $(SET_LIB_PATH) \
13852 for flag in $(EXTRA_HOST_FLAGS); do \
13853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13854 done; \
13855 echo "Doing distclean in sed" ; \
13856 (cd sed && \
13857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13859 "RANLIB=$${RANLIB}" \
13860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13861 distclean) \
13862 || exit 1
13865 .PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
13866 maybe-maintainer-clean-sed:
13868 maintainer-clean-sed:
13869 @[ -f ./sed/Makefile ] || exit 0; \
13870 r=`${PWD_COMMAND}`; export r; \
13871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13872 $(SET_LIB_PATH) \
13873 for flag in $(EXTRA_HOST_FLAGS); do \
13874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13875 done; \
13876 echo "Doing maintainer-clean in sed" ; \
13877 (cd sed && \
13878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13880 "RANLIB=$${RANLIB}" \
13881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13882 maintainer-clean) \
13883 || exit 1
13887 .PHONY: configure-send-pr maybe-configure-send-pr
13888 maybe-configure-send-pr:
13889 configure-send-pr:
13890 @test ! -f send-pr/Makefile || exit 0; \
13891 [ -d send-pr ] || mkdir send-pr; \
13892 r=`${PWD_COMMAND}`; export r; \
13893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13894 CC="$(CC)"; export CC; \
13895 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13896 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13897 CXX="$(CXX)"; export CXX; \
13898 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13899 AR="$(AR)"; export AR; \
13900 AS="$(AS)"; export AS; \
13901 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13902 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13903 LD="$(LD)"; export LD; \
13904 NM="$(NM)"; export NM; \
13905 RANLIB="$(RANLIB)"; export RANLIB; \
13906 WINDRES="$(WINDRES)"; export WINDRES; \
13907 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13908 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13909 echo Configuring in send-pr; \
13910 cd send-pr || exit 1; \
13911 case $(srcdir) in \
13912 \.) \
13913 srcdiroption="--srcdir=."; \
13914 libsrcdir=".";; \
13915 /* | [A-Za-z]:[\\/]*) \
13916 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
13917 libsrcdir="$$s/send-pr";; \
13918 *) \
13919 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
13920 libsrcdir="$$s/send-pr";; \
13921 esac; \
13922 $(SHELL) $${libsrcdir}/configure \
13923 $(HOST_CONFIGARGS) $${srcdiroption} \
13924 || exit 1
13926 .PHONY: all-send-pr maybe-all-send-pr
13927 maybe-all-send-pr:
13928 all-send-pr: configure-send-pr
13929 @r=`${PWD_COMMAND}`; export r; \
13930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13931 $(SET_LIB_PATH) \
13932 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
13934 .PHONY: check-send-pr maybe-check-send-pr
13935 maybe-check-send-pr:
13937 check-send-pr:
13938 @r=`${PWD_COMMAND}`; export r; \
13939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13940 $(SET_LIB_PATH) \
13941 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
13944 .PHONY: install-send-pr maybe-install-send-pr
13945 maybe-install-send-pr:
13947 install-send-pr: installdirs
13948 @r=`${PWD_COMMAND}`; export r; \
13949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13950 $(SET_LIB_PATH) \
13951 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
13954 # Other targets (info, dvi, etc.)
13956 .PHONY: maybe-info-send-pr info-send-pr
13957 maybe-info-send-pr:
13959 info-send-pr: \
13960 configure-send-pr
13961 @[ -f ./send-pr/Makefile ] || exit 0; \
13962 r=`${PWD_COMMAND}`; export r; \
13963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13964 $(SET_LIB_PATH) \
13965 for flag in $(EXTRA_HOST_FLAGS); do \
13966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13967 done; \
13968 echo "Doing info in send-pr" ; \
13969 (cd send-pr && \
13970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13972 "RANLIB=$${RANLIB}" \
13973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13974 info) \
13975 || exit 1
13978 .PHONY: maybe-dvi-send-pr dvi-send-pr
13979 maybe-dvi-send-pr:
13981 dvi-send-pr: \
13982 configure-send-pr
13983 @[ -f ./send-pr/Makefile ] || exit 0; \
13984 r=`${PWD_COMMAND}`; export r; \
13985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13986 $(SET_LIB_PATH) \
13987 for flag in $(EXTRA_HOST_FLAGS); do \
13988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13989 done; \
13990 echo "Doing dvi in send-pr" ; \
13991 (cd send-pr && \
13992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13994 "RANLIB=$${RANLIB}" \
13995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13996 dvi) \
13997 || exit 1
14000 .PHONY: maybe-TAGS-send-pr TAGS-send-pr
14001 maybe-TAGS-send-pr:
14003 TAGS-send-pr: \
14004 configure-send-pr
14005 @[ -f ./send-pr/Makefile ] || exit 0; \
14006 r=`${PWD_COMMAND}`; export r; \
14007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14008 $(SET_LIB_PATH) \
14009 for flag in $(EXTRA_HOST_FLAGS); do \
14010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14011 done; \
14012 echo "Doing TAGS in send-pr" ; \
14013 (cd send-pr && \
14014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14016 "RANLIB=$${RANLIB}" \
14017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14018 TAGS) \
14019 || exit 1
14022 .PHONY: maybe-install-info-send-pr install-info-send-pr
14023 maybe-install-info-send-pr:
14025 install-info-send-pr: \
14026 configure-send-pr \
14027 info-send-pr
14028 @[ -f ./send-pr/Makefile ] || exit 0; \
14029 r=`${PWD_COMMAND}`; export r; \
14030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14031 $(SET_LIB_PATH) \
14032 for flag in $(EXTRA_HOST_FLAGS); do \
14033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14034 done; \
14035 echo "Doing install-info in send-pr" ; \
14036 (cd send-pr && \
14037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14039 "RANLIB=$${RANLIB}" \
14040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14041 install-info) \
14042 || exit 1
14045 .PHONY: maybe-installcheck-send-pr installcheck-send-pr
14046 maybe-installcheck-send-pr:
14048 installcheck-send-pr: \
14049 configure-send-pr
14050 @[ -f ./send-pr/Makefile ] || exit 0; \
14051 r=`${PWD_COMMAND}`; export r; \
14052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14053 $(SET_LIB_PATH) \
14054 for flag in $(EXTRA_HOST_FLAGS); do \
14055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14056 done; \
14057 echo "Doing installcheck in send-pr" ; \
14058 (cd send-pr && \
14059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14061 "RANLIB=$${RANLIB}" \
14062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14063 installcheck) \
14064 || exit 1
14067 .PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
14068 maybe-mostlyclean-send-pr:
14070 mostlyclean-send-pr:
14071 @[ -f ./send-pr/Makefile ] || exit 0; \
14072 r=`${PWD_COMMAND}`; export r; \
14073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14074 $(SET_LIB_PATH) \
14075 for flag in $(EXTRA_HOST_FLAGS); do \
14076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14077 done; \
14078 echo "Doing mostlyclean in send-pr" ; \
14079 (cd send-pr && \
14080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14082 "RANLIB=$${RANLIB}" \
14083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14084 mostlyclean) \
14085 || exit 1
14088 .PHONY: maybe-clean-send-pr clean-send-pr
14089 maybe-clean-send-pr:
14091 clean-send-pr:
14092 @[ -f ./send-pr/Makefile ] || exit 0; \
14093 r=`${PWD_COMMAND}`; export r; \
14094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14095 $(SET_LIB_PATH) \
14096 for flag in $(EXTRA_HOST_FLAGS); do \
14097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14098 done; \
14099 echo "Doing clean in send-pr" ; \
14100 (cd send-pr && \
14101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14103 "RANLIB=$${RANLIB}" \
14104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14105 clean) \
14106 || exit 1
14109 .PHONY: maybe-distclean-send-pr distclean-send-pr
14110 maybe-distclean-send-pr:
14112 distclean-send-pr:
14113 @[ -f ./send-pr/Makefile ] || exit 0; \
14114 r=`${PWD_COMMAND}`; export r; \
14115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14116 $(SET_LIB_PATH) \
14117 for flag in $(EXTRA_HOST_FLAGS); do \
14118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14119 done; \
14120 echo "Doing distclean in send-pr" ; \
14121 (cd send-pr && \
14122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14124 "RANLIB=$${RANLIB}" \
14125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14126 distclean) \
14127 || exit 1
14130 .PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
14131 maybe-maintainer-clean-send-pr:
14133 maintainer-clean-send-pr:
14134 @[ -f ./send-pr/Makefile ] || exit 0; \
14135 r=`${PWD_COMMAND}`; export r; \
14136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14137 $(SET_LIB_PATH) \
14138 for flag in $(EXTRA_HOST_FLAGS); do \
14139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14140 done; \
14141 echo "Doing maintainer-clean in send-pr" ; \
14142 (cd send-pr && \
14143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14145 "RANLIB=$${RANLIB}" \
14146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14147 maintainer-clean) \
14148 || exit 1
14152 .PHONY: configure-shellutils maybe-configure-shellutils
14153 maybe-configure-shellutils:
14154 configure-shellutils:
14155 @test ! -f shellutils/Makefile || exit 0; \
14156 [ -d shellutils ] || mkdir shellutils; \
14157 r=`${PWD_COMMAND}`; export r; \
14158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14159 CC="$(CC)"; export CC; \
14160 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14161 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14162 CXX="$(CXX)"; export CXX; \
14163 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14164 AR="$(AR)"; export AR; \
14165 AS="$(AS)"; export AS; \
14166 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14167 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14168 LD="$(LD)"; export LD; \
14169 NM="$(NM)"; export NM; \
14170 RANLIB="$(RANLIB)"; export RANLIB; \
14171 WINDRES="$(WINDRES)"; export WINDRES; \
14172 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14173 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14174 echo Configuring in shellutils; \
14175 cd shellutils || exit 1; \
14176 case $(srcdir) in \
14177 \.) \
14178 srcdiroption="--srcdir=."; \
14179 libsrcdir=".";; \
14180 /* | [A-Za-z]:[\\/]*) \
14181 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
14182 libsrcdir="$$s/shellutils";; \
14183 *) \
14184 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
14185 libsrcdir="$$s/shellutils";; \
14186 esac; \
14187 $(SHELL) $${libsrcdir}/configure \
14188 $(HOST_CONFIGARGS) $${srcdiroption} \
14189 || exit 1
14191 .PHONY: all-shellutils maybe-all-shellutils
14192 maybe-all-shellutils:
14193 all-shellutils: configure-shellutils
14194 @r=`${PWD_COMMAND}`; export r; \
14195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14196 $(SET_LIB_PATH) \
14197 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
14199 .PHONY: check-shellutils maybe-check-shellutils
14200 maybe-check-shellutils:
14202 check-shellutils:
14203 @r=`${PWD_COMMAND}`; export r; \
14204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14205 $(SET_LIB_PATH) \
14206 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
14209 .PHONY: install-shellutils maybe-install-shellutils
14210 maybe-install-shellutils:
14212 install-shellutils: installdirs
14213 @r=`${PWD_COMMAND}`; export r; \
14214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14215 $(SET_LIB_PATH) \
14216 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
14219 # Other targets (info, dvi, etc.)
14221 .PHONY: maybe-info-shellutils info-shellutils
14222 maybe-info-shellutils:
14224 info-shellutils: \
14225 configure-shellutils
14226 @[ -f ./shellutils/Makefile ] || exit 0; \
14227 r=`${PWD_COMMAND}`; export r; \
14228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14229 $(SET_LIB_PATH) \
14230 for flag in $(EXTRA_HOST_FLAGS); do \
14231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14232 done; \
14233 echo "Doing info in shellutils" ; \
14234 (cd shellutils && \
14235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14237 "RANLIB=$${RANLIB}" \
14238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14239 info) \
14240 || exit 1
14243 .PHONY: maybe-dvi-shellutils dvi-shellutils
14244 maybe-dvi-shellutils:
14246 dvi-shellutils: \
14247 configure-shellutils
14248 @[ -f ./shellutils/Makefile ] || exit 0; \
14249 r=`${PWD_COMMAND}`; export r; \
14250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14251 $(SET_LIB_PATH) \
14252 for flag in $(EXTRA_HOST_FLAGS); do \
14253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14254 done; \
14255 echo "Doing dvi in shellutils" ; \
14256 (cd shellutils && \
14257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14259 "RANLIB=$${RANLIB}" \
14260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14261 dvi) \
14262 || exit 1
14265 .PHONY: maybe-TAGS-shellutils TAGS-shellutils
14266 maybe-TAGS-shellutils:
14268 TAGS-shellutils: \
14269 configure-shellutils
14270 @[ -f ./shellutils/Makefile ] || exit 0; \
14271 r=`${PWD_COMMAND}`; export r; \
14272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14273 $(SET_LIB_PATH) \
14274 for flag in $(EXTRA_HOST_FLAGS); do \
14275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14276 done; \
14277 echo "Doing TAGS in shellutils" ; \
14278 (cd shellutils && \
14279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14281 "RANLIB=$${RANLIB}" \
14282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14283 TAGS) \
14284 || exit 1
14287 .PHONY: maybe-install-info-shellutils install-info-shellutils
14288 maybe-install-info-shellutils:
14290 install-info-shellutils: \
14291 configure-shellutils \
14292 info-shellutils
14293 @[ -f ./shellutils/Makefile ] || exit 0; \
14294 r=`${PWD_COMMAND}`; export r; \
14295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14296 $(SET_LIB_PATH) \
14297 for flag in $(EXTRA_HOST_FLAGS); do \
14298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14299 done; \
14300 echo "Doing install-info in shellutils" ; \
14301 (cd shellutils && \
14302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14304 "RANLIB=$${RANLIB}" \
14305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14306 install-info) \
14307 || exit 1
14310 .PHONY: maybe-installcheck-shellutils installcheck-shellutils
14311 maybe-installcheck-shellutils:
14313 installcheck-shellutils: \
14314 configure-shellutils
14315 @[ -f ./shellutils/Makefile ] || exit 0; \
14316 r=`${PWD_COMMAND}`; export r; \
14317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14318 $(SET_LIB_PATH) \
14319 for flag in $(EXTRA_HOST_FLAGS); do \
14320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14321 done; \
14322 echo "Doing installcheck in shellutils" ; \
14323 (cd shellutils && \
14324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14326 "RANLIB=$${RANLIB}" \
14327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14328 installcheck) \
14329 || exit 1
14332 .PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
14333 maybe-mostlyclean-shellutils:
14335 mostlyclean-shellutils:
14336 @[ -f ./shellutils/Makefile ] || exit 0; \
14337 r=`${PWD_COMMAND}`; export r; \
14338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14339 $(SET_LIB_PATH) \
14340 for flag in $(EXTRA_HOST_FLAGS); do \
14341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14342 done; \
14343 echo "Doing mostlyclean in shellutils" ; \
14344 (cd shellutils && \
14345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14347 "RANLIB=$${RANLIB}" \
14348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14349 mostlyclean) \
14350 || exit 1
14353 .PHONY: maybe-clean-shellutils clean-shellutils
14354 maybe-clean-shellutils:
14356 clean-shellutils:
14357 @[ -f ./shellutils/Makefile ] || exit 0; \
14358 r=`${PWD_COMMAND}`; export r; \
14359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14360 $(SET_LIB_PATH) \
14361 for flag in $(EXTRA_HOST_FLAGS); do \
14362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14363 done; \
14364 echo "Doing clean in shellutils" ; \
14365 (cd shellutils && \
14366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14368 "RANLIB=$${RANLIB}" \
14369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14370 clean) \
14371 || exit 1
14374 .PHONY: maybe-distclean-shellutils distclean-shellutils
14375 maybe-distclean-shellutils:
14377 distclean-shellutils:
14378 @[ -f ./shellutils/Makefile ] || exit 0; \
14379 r=`${PWD_COMMAND}`; export r; \
14380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14381 $(SET_LIB_PATH) \
14382 for flag in $(EXTRA_HOST_FLAGS); do \
14383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14384 done; \
14385 echo "Doing distclean in shellutils" ; \
14386 (cd shellutils && \
14387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14389 "RANLIB=$${RANLIB}" \
14390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14391 distclean) \
14392 || exit 1
14395 .PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
14396 maybe-maintainer-clean-shellutils:
14398 maintainer-clean-shellutils:
14399 @[ -f ./shellutils/Makefile ] || exit 0; \
14400 r=`${PWD_COMMAND}`; export r; \
14401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14402 $(SET_LIB_PATH) \
14403 for flag in $(EXTRA_HOST_FLAGS); do \
14404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14405 done; \
14406 echo "Doing maintainer-clean in shellutils" ; \
14407 (cd shellutils && \
14408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14410 "RANLIB=$${RANLIB}" \
14411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14412 maintainer-clean) \
14413 || exit 1
14417 .PHONY: configure-sid maybe-configure-sid
14418 maybe-configure-sid:
14419 configure-sid:
14420 @test ! -f sid/Makefile || exit 0; \
14421 [ -d sid ] || mkdir sid; \
14422 r=`${PWD_COMMAND}`; export r; \
14423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14424 CC="$(CC)"; export CC; \
14425 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14426 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14427 CXX="$(CXX)"; export CXX; \
14428 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14429 AR="$(AR)"; export AR; \
14430 AS="$(AS)"; export AS; \
14431 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14432 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14433 LD="$(LD)"; export LD; \
14434 NM="$(NM)"; export NM; \
14435 RANLIB="$(RANLIB)"; export RANLIB; \
14436 WINDRES="$(WINDRES)"; export WINDRES; \
14437 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14438 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14439 echo Configuring in sid; \
14440 cd sid || exit 1; \
14441 case $(srcdir) in \
14442 \.) \
14443 srcdiroption="--srcdir=."; \
14444 libsrcdir=".";; \
14445 /* | [A-Za-z]:[\\/]*) \
14446 srcdiroption="--srcdir=$(srcdir)/sid"; \
14447 libsrcdir="$$s/sid";; \
14448 *) \
14449 srcdiroption="--srcdir=../$(srcdir)/sid"; \
14450 libsrcdir="$$s/sid";; \
14451 esac; \
14452 $(SHELL) $${libsrcdir}/configure \
14453 $(HOST_CONFIGARGS) $${srcdiroption} \
14454 || exit 1
14456 .PHONY: all-sid maybe-all-sid
14457 maybe-all-sid:
14458 all-sid: configure-sid
14459 @r=`${PWD_COMMAND}`; export r; \
14460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14461 $(SET_LIB_PATH) \
14462 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
14464 .PHONY: check-sid maybe-check-sid
14465 maybe-check-sid:
14467 check-sid:
14468 @r=`${PWD_COMMAND}`; export r; \
14469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14470 $(SET_LIB_PATH) \
14471 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
14474 .PHONY: install-sid maybe-install-sid
14475 maybe-install-sid:
14477 install-sid: installdirs
14478 @r=`${PWD_COMMAND}`; export r; \
14479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14480 $(SET_LIB_PATH) \
14481 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
14484 # Other targets (info, dvi, etc.)
14486 .PHONY: maybe-info-sid info-sid
14487 maybe-info-sid:
14489 info-sid: \
14490 configure-sid
14491 @[ -f ./sid/Makefile ] || exit 0; \
14492 r=`${PWD_COMMAND}`; export r; \
14493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14494 $(SET_LIB_PATH) \
14495 for flag in $(EXTRA_HOST_FLAGS); do \
14496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14497 done; \
14498 echo "Doing info in sid" ; \
14499 (cd sid && \
14500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14502 "RANLIB=$${RANLIB}" \
14503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14504 info) \
14505 || exit 1
14508 .PHONY: maybe-dvi-sid dvi-sid
14509 maybe-dvi-sid:
14511 dvi-sid: \
14512 configure-sid
14513 @[ -f ./sid/Makefile ] || exit 0; \
14514 r=`${PWD_COMMAND}`; export r; \
14515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14516 $(SET_LIB_PATH) \
14517 for flag in $(EXTRA_HOST_FLAGS); do \
14518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14519 done; \
14520 echo "Doing dvi in sid" ; \
14521 (cd sid && \
14522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14524 "RANLIB=$${RANLIB}" \
14525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14526 dvi) \
14527 || exit 1
14530 .PHONY: maybe-TAGS-sid TAGS-sid
14531 maybe-TAGS-sid:
14533 TAGS-sid: \
14534 configure-sid
14535 @[ -f ./sid/Makefile ] || exit 0; \
14536 r=`${PWD_COMMAND}`; export r; \
14537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14538 $(SET_LIB_PATH) \
14539 for flag in $(EXTRA_HOST_FLAGS); do \
14540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14541 done; \
14542 echo "Doing TAGS in sid" ; \
14543 (cd sid && \
14544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14546 "RANLIB=$${RANLIB}" \
14547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14548 TAGS) \
14549 || exit 1
14552 .PHONY: maybe-install-info-sid install-info-sid
14553 maybe-install-info-sid:
14555 install-info-sid: \
14556 configure-sid \
14557 info-sid
14558 @[ -f ./sid/Makefile ] || exit 0; \
14559 r=`${PWD_COMMAND}`; export r; \
14560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14561 $(SET_LIB_PATH) \
14562 for flag in $(EXTRA_HOST_FLAGS); do \
14563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14564 done; \
14565 echo "Doing install-info in sid" ; \
14566 (cd sid && \
14567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14569 "RANLIB=$${RANLIB}" \
14570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14571 install-info) \
14572 || exit 1
14575 .PHONY: maybe-installcheck-sid installcheck-sid
14576 maybe-installcheck-sid:
14578 installcheck-sid: \
14579 configure-sid
14580 @[ -f ./sid/Makefile ] || exit 0; \
14581 r=`${PWD_COMMAND}`; export r; \
14582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14583 $(SET_LIB_PATH) \
14584 for flag in $(EXTRA_HOST_FLAGS); do \
14585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14586 done; \
14587 echo "Doing installcheck in sid" ; \
14588 (cd sid && \
14589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14591 "RANLIB=$${RANLIB}" \
14592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14593 installcheck) \
14594 || exit 1
14597 .PHONY: maybe-mostlyclean-sid mostlyclean-sid
14598 maybe-mostlyclean-sid:
14600 mostlyclean-sid:
14601 @[ -f ./sid/Makefile ] || exit 0; \
14602 r=`${PWD_COMMAND}`; export r; \
14603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14604 $(SET_LIB_PATH) \
14605 for flag in $(EXTRA_HOST_FLAGS); do \
14606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14607 done; \
14608 echo "Doing mostlyclean in sid" ; \
14609 (cd sid && \
14610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14612 "RANLIB=$${RANLIB}" \
14613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14614 mostlyclean) \
14615 || exit 1
14618 .PHONY: maybe-clean-sid clean-sid
14619 maybe-clean-sid:
14621 clean-sid:
14622 @[ -f ./sid/Makefile ] || exit 0; \
14623 r=`${PWD_COMMAND}`; export r; \
14624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14625 $(SET_LIB_PATH) \
14626 for flag in $(EXTRA_HOST_FLAGS); do \
14627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14628 done; \
14629 echo "Doing clean in sid" ; \
14630 (cd sid && \
14631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14633 "RANLIB=$${RANLIB}" \
14634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14635 clean) \
14636 || exit 1
14639 .PHONY: maybe-distclean-sid distclean-sid
14640 maybe-distclean-sid:
14642 distclean-sid:
14643 @[ -f ./sid/Makefile ] || exit 0; \
14644 r=`${PWD_COMMAND}`; export r; \
14645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14646 $(SET_LIB_PATH) \
14647 for flag in $(EXTRA_HOST_FLAGS); do \
14648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14649 done; \
14650 echo "Doing distclean in sid" ; \
14651 (cd sid && \
14652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14654 "RANLIB=$${RANLIB}" \
14655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14656 distclean) \
14657 || exit 1
14660 .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
14661 maybe-maintainer-clean-sid:
14663 maintainer-clean-sid:
14664 @[ -f ./sid/Makefile ] || exit 0; \
14665 r=`${PWD_COMMAND}`; export r; \
14666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14667 $(SET_LIB_PATH) \
14668 for flag in $(EXTRA_HOST_FLAGS); do \
14669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14670 done; \
14671 echo "Doing maintainer-clean in sid" ; \
14672 (cd sid && \
14673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14675 "RANLIB=$${RANLIB}" \
14676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14677 maintainer-clean) \
14678 || exit 1
14682 .PHONY: configure-sim maybe-configure-sim
14683 maybe-configure-sim:
14684 configure-sim:
14685 @test ! -f sim/Makefile || exit 0; \
14686 [ -d sim ] || mkdir sim; \
14687 r=`${PWD_COMMAND}`; export r; \
14688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14689 CC="$(CC)"; export CC; \
14690 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14691 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14692 CXX="$(CXX)"; export CXX; \
14693 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14694 AR="$(AR)"; export AR; \
14695 AS="$(AS)"; export AS; \
14696 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14697 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14698 LD="$(LD)"; export LD; \
14699 NM="$(NM)"; export NM; \
14700 RANLIB="$(RANLIB)"; export RANLIB; \
14701 WINDRES="$(WINDRES)"; export WINDRES; \
14702 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14703 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14704 echo Configuring in sim; \
14705 cd sim || exit 1; \
14706 case $(srcdir) in \
14707 \.) \
14708 srcdiroption="--srcdir=."; \
14709 libsrcdir=".";; \
14710 /* | [A-Za-z]:[\\/]*) \
14711 srcdiroption="--srcdir=$(srcdir)/sim"; \
14712 libsrcdir="$$s/sim";; \
14713 *) \
14714 srcdiroption="--srcdir=../$(srcdir)/sim"; \
14715 libsrcdir="$$s/sim";; \
14716 esac; \
14717 $(SHELL) $${libsrcdir}/configure \
14718 $(HOST_CONFIGARGS) $${srcdiroption} \
14719 || exit 1
14721 .PHONY: all-sim maybe-all-sim
14722 maybe-all-sim:
14723 all-sim: configure-sim
14724 @r=`${PWD_COMMAND}`; export r; \
14725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14726 $(SET_LIB_PATH) \
14727 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
14729 .PHONY: check-sim maybe-check-sim
14730 maybe-check-sim:
14732 check-sim:
14733 @r=`${PWD_COMMAND}`; export r; \
14734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14735 $(SET_LIB_PATH) \
14736 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
14739 .PHONY: install-sim maybe-install-sim
14740 maybe-install-sim:
14742 install-sim: installdirs
14743 @r=`${PWD_COMMAND}`; export r; \
14744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14745 $(SET_LIB_PATH) \
14746 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
14749 # Other targets (info, dvi, etc.)
14751 .PHONY: maybe-info-sim info-sim
14752 maybe-info-sim:
14754 info-sim: \
14755 configure-sim
14756 @[ -f ./sim/Makefile ] || exit 0; \
14757 r=`${PWD_COMMAND}`; export r; \
14758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14759 $(SET_LIB_PATH) \
14760 for flag in $(EXTRA_HOST_FLAGS); do \
14761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14762 done; \
14763 echo "Doing info in sim" ; \
14764 (cd sim && \
14765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14767 "RANLIB=$${RANLIB}" \
14768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14769 info) \
14770 || exit 1
14773 .PHONY: maybe-dvi-sim dvi-sim
14774 maybe-dvi-sim:
14776 dvi-sim: \
14777 configure-sim
14778 @[ -f ./sim/Makefile ] || exit 0; \
14779 r=`${PWD_COMMAND}`; export r; \
14780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14781 $(SET_LIB_PATH) \
14782 for flag in $(EXTRA_HOST_FLAGS); do \
14783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14784 done; \
14785 echo "Doing dvi in sim" ; \
14786 (cd sim && \
14787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14789 "RANLIB=$${RANLIB}" \
14790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14791 dvi) \
14792 || exit 1
14795 .PHONY: maybe-TAGS-sim TAGS-sim
14796 maybe-TAGS-sim:
14798 TAGS-sim: \
14799 configure-sim
14800 @[ -f ./sim/Makefile ] || exit 0; \
14801 r=`${PWD_COMMAND}`; export r; \
14802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14803 $(SET_LIB_PATH) \
14804 for flag in $(EXTRA_HOST_FLAGS); do \
14805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14806 done; \
14807 echo "Doing TAGS in sim" ; \
14808 (cd sim && \
14809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14811 "RANLIB=$${RANLIB}" \
14812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14813 TAGS) \
14814 || exit 1
14817 .PHONY: maybe-install-info-sim install-info-sim
14818 maybe-install-info-sim:
14820 install-info-sim: \
14821 configure-sim \
14822 info-sim
14823 @[ -f ./sim/Makefile ] || exit 0; \
14824 r=`${PWD_COMMAND}`; export r; \
14825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14826 $(SET_LIB_PATH) \
14827 for flag in $(EXTRA_HOST_FLAGS); do \
14828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14829 done; \
14830 echo "Doing install-info in sim" ; \
14831 (cd sim && \
14832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14834 "RANLIB=$${RANLIB}" \
14835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14836 install-info) \
14837 || exit 1
14840 .PHONY: maybe-installcheck-sim installcheck-sim
14841 maybe-installcheck-sim:
14843 installcheck-sim: \
14844 configure-sim
14845 @[ -f ./sim/Makefile ] || exit 0; \
14846 r=`${PWD_COMMAND}`; export r; \
14847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14848 $(SET_LIB_PATH) \
14849 for flag in $(EXTRA_HOST_FLAGS); do \
14850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14851 done; \
14852 echo "Doing installcheck in sim" ; \
14853 (cd sim && \
14854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14856 "RANLIB=$${RANLIB}" \
14857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14858 installcheck) \
14859 || exit 1
14862 .PHONY: maybe-mostlyclean-sim mostlyclean-sim
14863 maybe-mostlyclean-sim:
14865 mostlyclean-sim:
14866 @[ -f ./sim/Makefile ] || exit 0; \
14867 r=`${PWD_COMMAND}`; export r; \
14868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14869 $(SET_LIB_PATH) \
14870 for flag in $(EXTRA_HOST_FLAGS); do \
14871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14872 done; \
14873 echo "Doing mostlyclean in sim" ; \
14874 (cd sim && \
14875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14877 "RANLIB=$${RANLIB}" \
14878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14879 mostlyclean) \
14880 || exit 1
14883 .PHONY: maybe-clean-sim clean-sim
14884 maybe-clean-sim:
14886 clean-sim:
14887 @[ -f ./sim/Makefile ] || exit 0; \
14888 r=`${PWD_COMMAND}`; export r; \
14889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14890 $(SET_LIB_PATH) \
14891 for flag in $(EXTRA_HOST_FLAGS); do \
14892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14893 done; \
14894 echo "Doing clean in sim" ; \
14895 (cd sim && \
14896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14898 "RANLIB=$${RANLIB}" \
14899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14900 clean) \
14901 || exit 1
14904 .PHONY: maybe-distclean-sim distclean-sim
14905 maybe-distclean-sim:
14907 distclean-sim:
14908 @[ -f ./sim/Makefile ] || exit 0; \
14909 r=`${PWD_COMMAND}`; export r; \
14910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14911 $(SET_LIB_PATH) \
14912 for flag in $(EXTRA_HOST_FLAGS); do \
14913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14914 done; \
14915 echo "Doing distclean in sim" ; \
14916 (cd sim && \
14917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14919 "RANLIB=$${RANLIB}" \
14920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14921 distclean) \
14922 || exit 1
14925 .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
14926 maybe-maintainer-clean-sim:
14928 maintainer-clean-sim:
14929 @[ -f ./sim/Makefile ] || exit 0; \
14930 r=`${PWD_COMMAND}`; export r; \
14931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14932 $(SET_LIB_PATH) \
14933 for flag in $(EXTRA_HOST_FLAGS); do \
14934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14935 done; \
14936 echo "Doing maintainer-clean in sim" ; \
14937 (cd sim && \
14938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14940 "RANLIB=$${RANLIB}" \
14941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14942 maintainer-clean) \
14943 || exit 1
14947 .PHONY: configure-tar maybe-configure-tar
14948 maybe-configure-tar:
14949 configure-tar:
14950 @test ! -f tar/Makefile || exit 0; \
14951 [ -d tar ] || mkdir tar; \
14952 r=`${PWD_COMMAND}`; export r; \
14953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14954 CC="$(CC)"; export CC; \
14955 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14956 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14957 CXX="$(CXX)"; export CXX; \
14958 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14959 AR="$(AR)"; export AR; \
14960 AS="$(AS)"; export AS; \
14961 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14962 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14963 LD="$(LD)"; export LD; \
14964 NM="$(NM)"; export NM; \
14965 RANLIB="$(RANLIB)"; export RANLIB; \
14966 WINDRES="$(WINDRES)"; export WINDRES; \
14967 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14968 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14969 echo Configuring in tar; \
14970 cd tar || exit 1; \
14971 case $(srcdir) in \
14972 \.) \
14973 srcdiroption="--srcdir=."; \
14974 libsrcdir=".";; \
14975 /* | [A-Za-z]:[\\/]*) \
14976 srcdiroption="--srcdir=$(srcdir)/tar"; \
14977 libsrcdir="$$s/tar";; \
14978 *) \
14979 srcdiroption="--srcdir=../$(srcdir)/tar"; \
14980 libsrcdir="$$s/tar";; \
14981 esac; \
14982 $(SHELL) $${libsrcdir}/configure \
14983 $(HOST_CONFIGARGS) $${srcdiroption} \
14984 || exit 1
14986 .PHONY: all-tar maybe-all-tar
14987 maybe-all-tar:
14988 all-tar: configure-tar
14989 @r=`${PWD_COMMAND}`; export r; \
14990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14991 $(SET_LIB_PATH) \
14992 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
14994 .PHONY: check-tar maybe-check-tar
14995 maybe-check-tar:
14997 check-tar:
14998 @r=`${PWD_COMMAND}`; export r; \
14999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15000 $(SET_LIB_PATH) \
15001 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
15004 .PHONY: install-tar maybe-install-tar
15005 maybe-install-tar:
15007 install-tar: installdirs
15008 @r=`${PWD_COMMAND}`; export r; \
15009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15010 $(SET_LIB_PATH) \
15011 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
15014 # Other targets (info, dvi, etc.)
15016 .PHONY: maybe-info-tar info-tar
15017 maybe-info-tar:
15019 info-tar: \
15020 configure-tar
15021 @[ -f ./tar/Makefile ] || exit 0; \
15022 r=`${PWD_COMMAND}`; export r; \
15023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15024 $(SET_LIB_PATH) \
15025 for flag in $(EXTRA_HOST_FLAGS); do \
15026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15027 done; \
15028 echo "Doing info in tar" ; \
15029 (cd tar && \
15030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15032 "RANLIB=$${RANLIB}" \
15033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15034 info) \
15035 || exit 1
15038 .PHONY: maybe-dvi-tar dvi-tar
15039 maybe-dvi-tar:
15041 dvi-tar: \
15042 configure-tar
15043 @[ -f ./tar/Makefile ] || exit 0; \
15044 r=`${PWD_COMMAND}`; export r; \
15045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15046 $(SET_LIB_PATH) \
15047 for flag in $(EXTRA_HOST_FLAGS); do \
15048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15049 done; \
15050 echo "Doing dvi in tar" ; \
15051 (cd tar && \
15052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15054 "RANLIB=$${RANLIB}" \
15055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15056 dvi) \
15057 || exit 1
15060 .PHONY: maybe-TAGS-tar TAGS-tar
15061 maybe-TAGS-tar:
15063 TAGS-tar: \
15064 configure-tar
15065 @[ -f ./tar/Makefile ] || exit 0; \
15066 r=`${PWD_COMMAND}`; export r; \
15067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15068 $(SET_LIB_PATH) \
15069 for flag in $(EXTRA_HOST_FLAGS); do \
15070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15071 done; \
15072 echo "Doing TAGS in tar" ; \
15073 (cd tar && \
15074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15076 "RANLIB=$${RANLIB}" \
15077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15078 TAGS) \
15079 || exit 1
15082 .PHONY: maybe-install-info-tar install-info-tar
15083 maybe-install-info-tar:
15085 install-info-tar: \
15086 configure-tar \
15087 info-tar
15088 @[ -f ./tar/Makefile ] || exit 0; \
15089 r=`${PWD_COMMAND}`; export r; \
15090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15091 $(SET_LIB_PATH) \
15092 for flag in $(EXTRA_HOST_FLAGS); do \
15093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15094 done; \
15095 echo "Doing install-info in tar" ; \
15096 (cd tar && \
15097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15099 "RANLIB=$${RANLIB}" \
15100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15101 install-info) \
15102 || exit 1
15105 .PHONY: maybe-installcheck-tar installcheck-tar
15106 maybe-installcheck-tar:
15108 installcheck-tar: \
15109 configure-tar
15110 @[ -f ./tar/Makefile ] || exit 0; \
15111 r=`${PWD_COMMAND}`; export r; \
15112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15113 $(SET_LIB_PATH) \
15114 for flag in $(EXTRA_HOST_FLAGS); do \
15115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15116 done; \
15117 echo "Doing installcheck in tar" ; \
15118 (cd tar && \
15119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15121 "RANLIB=$${RANLIB}" \
15122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15123 installcheck) \
15124 || exit 1
15127 .PHONY: maybe-mostlyclean-tar mostlyclean-tar
15128 maybe-mostlyclean-tar:
15130 mostlyclean-tar:
15131 @[ -f ./tar/Makefile ] || exit 0; \
15132 r=`${PWD_COMMAND}`; export r; \
15133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15134 $(SET_LIB_PATH) \
15135 for flag in $(EXTRA_HOST_FLAGS); do \
15136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15137 done; \
15138 echo "Doing mostlyclean in tar" ; \
15139 (cd tar && \
15140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15142 "RANLIB=$${RANLIB}" \
15143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15144 mostlyclean) \
15145 || exit 1
15148 .PHONY: maybe-clean-tar clean-tar
15149 maybe-clean-tar:
15151 clean-tar:
15152 @[ -f ./tar/Makefile ] || exit 0; \
15153 r=`${PWD_COMMAND}`; export r; \
15154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15155 $(SET_LIB_PATH) \
15156 for flag in $(EXTRA_HOST_FLAGS); do \
15157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15158 done; \
15159 echo "Doing clean in tar" ; \
15160 (cd tar && \
15161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15163 "RANLIB=$${RANLIB}" \
15164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15165 clean) \
15166 || exit 1
15169 .PHONY: maybe-distclean-tar distclean-tar
15170 maybe-distclean-tar:
15172 distclean-tar:
15173 @[ -f ./tar/Makefile ] || exit 0; \
15174 r=`${PWD_COMMAND}`; export r; \
15175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15176 $(SET_LIB_PATH) \
15177 for flag in $(EXTRA_HOST_FLAGS); do \
15178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15179 done; \
15180 echo "Doing distclean in tar" ; \
15181 (cd tar && \
15182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15184 "RANLIB=$${RANLIB}" \
15185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15186 distclean) \
15187 || exit 1
15190 .PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
15191 maybe-maintainer-clean-tar:
15193 maintainer-clean-tar:
15194 @[ -f ./tar/Makefile ] || exit 0; \
15195 r=`${PWD_COMMAND}`; export r; \
15196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15197 $(SET_LIB_PATH) \
15198 for flag in $(EXTRA_HOST_FLAGS); do \
15199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15200 done; \
15201 echo "Doing maintainer-clean in tar" ; \
15202 (cd tar && \
15203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15205 "RANLIB=$${RANLIB}" \
15206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15207 maintainer-clean) \
15208 || exit 1
15212 .PHONY: configure-texinfo maybe-configure-texinfo
15213 maybe-configure-texinfo:
15214 configure-texinfo:
15215 @test ! -f texinfo/Makefile || exit 0; \
15216 [ -d texinfo ] || mkdir texinfo; \
15217 r=`${PWD_COMMAND}`; export r; \
15218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15219 CC="$(CC)"; export CC; \
15220 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15221 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15222 CXX="$(CXX)"; export CXX; \
15223 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15224 AR="$(AR)"; export AR; \
15225 AS="$(AS)"; export AS; \
15226 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15227 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15228 LD="$(LD)"; export LD; \
15229 NM="$(NM)"; export NM; \
15230 RANLIB="$(RANLIB)"; export RANLIB; \
15231 WINDRES="$(WINDRES)"; export WINDRES; \
15232 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15233 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15234 echo Configuring in texinfo; \
15235 cd texinfo || exit 1; \
15236 case $(srcdir) in \
15237 \.) \
15238 srcdiroption="--srcdir=."; \
15239 libsrcdir=".";; \
15240 /* | [A-Za-z]:[\\/]*) \
15241 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
15242 libsrcdir="$$s/texinfo";; \
15243 *) \
15244 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
15245 libsrcdir="$$s/texinfo";; \
15246 esac; \
15247 $(SHELL) $${libsrcdir}/configure \
15248 $(HOST_CONFIGARGS) $${srcdiroption} \
15249 || exit 1
15251 .PHONY: all-texinfo maybe-all-texinfo
15252 maybe-all-texinfo:
15253 all-texinfo: configure-texinfo
15254 @r=`${PWD_COMMAND}`; export r; \
15255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15256 $(SET_LIB_PATH) \
15257 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
15259 .PHONY: check-texinfo maybe-check-texinfo
15260 maybe-check-texinfo:
15262 check-texinfo:
15263 @r=`${PWD_COMMAND}`; export r; \
15264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15265 $(SET_LIB_PATH) \
15266 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
15269 .PHONY: install-texinfo maybe-install-texinfo
15270 maybe-install-texinfo:
15272 install-texinfo:
15275 # Other targets (info, dvi, etc.)
15277 .PHONY: maybe-info-texinfo info-texinfo
15278 maybe-info-texinfo:
15280 info-texinfo: \
15281 configure-texinfo
15282 @[ -f ./texinfo/Makefile ] || exit 0; \
15283 r=`${PWD_COMMAND}`; export r; \
15284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15285 $(SET_LIB_PATH) \
15286 for flag in $(EXTRA_HOST_FLAGS); do \
15287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15288 done; \
15289 echo "Doing info in texinfo" ; \
15290 (cd texinfo && \
15291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15293 "RANLIB=$${RANLIB}" \
15294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15295 info) \
15296 || exit 1
15299 .PHONY: maybe-dvi-texinfo dvi-texinfo
15300 maybe-dvi-texinfo:
15302 dvi-texinfo: \
15303 configure-texinfo
15304 @[ -f ./texinfo/Makefile ] || exit 0; \
15305 r=`${PWD_COMMAND}`; export r; \
15306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15307 $(SET_LIB_PATH) \
15308 for flag in $(EXTRA_HOST_FLAGS); do \
15309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15310 done; \
15311 echo "Doing dvi in texinfo" ; \
15312 (cd texinfo && \
15313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15315 "RANLIB=$${RANLIB}" \
15316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15317 dvi) \
15318 || exit 1
15321 .PHONY: maybe-TAGS-texinfo TAGS-texinfo
15322 maybe-TAGS-texinfo:
15324 TAGS-texinfo: \
15325 configure-texinfo
15326 @[ -f ./texinfo/Makefile ] || exit 0; \
15327 r=`${PWD_COMMAND}`; export r; \
15328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15329 $(SET_LIB_PATH) \
15330 for flag in $(EXTRA_HOST_FLAGS); do \
15331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15332 done; \
15333 echo "Doing TAGS in texinfo" ; \
15334 (cd texinfo && \
15335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15337 "RANLIB=$${RANLIB}" \
15338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15339 TAGS) \
15340 || exit 1
15343 .PHONY: maybe-install-info-texinfo install-info-texinfo
15344 maybe-install-info-texinfo:
15346 install-info-texinfo: \
15347 configure-texinfo \
15348 info-texinfo
15349 @[ -f ./texinfo/Makefile ] || exit 0; \
15350 r=`${PWD_COMMAND}`; export r; \
15351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15352 $(SET_LIB_PATH) \
15353 for flag in $(EXTRA_HOST_FLAGS); do \
15354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15355 done; \
15356 echo "Doing install-info in texinfo" ; \
15357 (cd texinfo && \
15358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15360 "RANLIB=$${RANLIB}" \
15361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15362 install-info) \
15363 || exit 1
15366 .PHONY: maybe-installcheck-texinfo installcheck-texinfo
15367 maybe-installcheck-texinfo:
15369 installcheck-texinfo: \
15370 configure-texinfo
15371 @[ -f ./texinfo/Makefile ] || exit 0; \
15372 r=`${PWD_COMMAND}`; export r; \
15373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15374 $(SET_LIB_PATH) \
15375 for flag in $(EXTRA_HOST_FLAGS); do \
15376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15377 done; \
15378 echo "Doing installcheck in texinfo" ; \
15379 (cd texinfo && \
15380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15382 "RANLIB=$${RANLIB}" \
15383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15384 installcheck) \
15385 || exit 1
15388 .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
15389 maybe-mostlyclean-texinfo:
15391 mostlyclean-texinfo:
15392 @[ -f ./texinfo/Makefile ] || exit 0; \
15393 r=`${PWD_COMMAND}`; export r; \
15394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15395 $(SET_LIB_PATH) \
15396 for flag in $(EXTRA_HOST_FLAGS); do \
15397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15398 done; \
15399 echo "Doing mostlyclean in texinfo" ; \
15400 (cd texinfo && \
15401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15403 "RANLIB=$${RANLIB}" \
15404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15405 mostlyclean) \
15406 || exit 1
15409 .PHONY: maybe-clean-texinfo clean-texinfo
15410 maybe-clean-texinfo:
15412 clean-texinfo:
15413 @[ -f ./texinfo/Makefile ] || exit 0; \
15414 r=`${PWD_COMMAND}`; export r; \
15415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15416 $(SET_LIB_PATH) \
15417 for flag in $(EXTRA_HOST_FLAGS); do \
15418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15419 done; \
15420 echo "Doing clean in texinfo" ; \
15421 (cd texinfo && \
15422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15424 "RANLIB=$${RANLIB}" \
15425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15426 clean) \
15427 || exit 1
15430 .PHONY: maybe-distclean-texinfo distclean-texinfo
15431 maybe-distclean-texinfo:
15433 distclean-texinfo:
15434 @[ -f ./texinfo/Makefile ] || exit 0; \
15435 r=`${PWD_COMMAND}`; export r; \
15436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15437 $(SET_LIB_PATH) \
15438 for flag in $(EXTRA_HOST_FLAGS); do \
15439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15440 done; \
15441 echo "Doing distclean in texinfo" ; \
15442 (cd texinfo && \
15443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15445 "RANLIB=$${RANLIB}" \
15446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15447 distclean) \
15448 || exit 1
15451 .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
15452 maybe-maintainer-clean-texinfo:
15454 maintainer-clean-texinfo:
15455 @[ -f ./texinfo/Makefile ] || exit 0; \
15456 r=`${PWD_COMMAND}`; export r; \
15457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15458 $(SET_LIB_PATH) \
15459 for flag in $(EXTRA_HOST_FLAGS); do \
15460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15461 done; \
15462 echo "Doing maintainer-clean in texinfo" ; \
15463 (cd texinfo && \
15464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15466 "RANLIB=$${RANLIB}" \
15467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15468 maintainer-clean) \
15469 || exit 1
15473 .PHONY: configure-textutils maybe-configure-textutils
15474 maybe-configure-textutils:
15475 configure-textutils:
15476 @test ! -f textutils/Makefile || exit 0; \
15477 [ -d textutils ] || mkdir textutils; \
15478 r=`${PWD_COMMAND}`; export r; \
15479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15480 CC="$(CC)"; export CC; \
15481 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15482 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15483 CXX="$(CXX)"; export CXX; \
15484 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15485 AR="$(AR)"; export AR; \
15486 AS="$(AS)"; export AS; \
15487 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15488 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15489 LD="$(LD)"; export LD; \
15490 NM="$(NM)"; export NM; \
15491 RANLIB="$(RANLIB)"; export RANLIB; \
15492 WINDRES="$(WINDRES)"; export WINDRES; \
15493 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15494 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15495 echo Configuring in textutils; \
15496 cd textutils || exit 1; \
15497 case $(srcdir) in \
15498 \.) \
15499 srcdiroption="--srcdir=."; \
15500 libsrcdir=".";; \
15501 /* | [A-Za-z]:[\\/]*) \
15502 srcdiroption="--srcdir=$(srcdir)/textutils"; \
15503 libsrcdir="$$s/textutils";; \
15504 *) \
15505 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
15506 libsrcdir="$$s/textutils";; \
15507 esac; \
15508 $(SHELL) $${libsrcdir}/configure \
15509 $(HOST_CONFIGARGS) $${srcdiroption} \
15510 || exit 1
15512 .PHONY: all-textutils maybe-all-textutils
15513 maybe-all-textutils:
15514 all-textutils: configure-textutils
15515 @r=`${PWD_COMMAND}`; export r; \
15516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15517 $(SET_LIB_PATH) \
15518 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
15520 .PHONY: check-textutils maybe-check-textutils
15521 maybe-check-textutils:
15523 check-textutils:
15524 @r=`${PWD_COMMAND}`; export r; \
15525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15526 $(SET_LIB_PATH) \
15527 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
15530 .PHONY: install-textutils maybe-install-textutils
15531 maybe-install-textutils:
15533 install-textutils: installdirs
15534 @r=`${PWD_COMMAND}`; export r; \
15535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15536 $(SET_LIB_PATH) \
15537 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
15540 # Other targets (info, dvi, etc.)
15542 .PHONY: maybe-info-textutils info-textutils
15543 maybe-info-textutils:
15545 info-textutils: \
15546 configure-textutils
15547 @[ -f ./textutils/Makefile ] || exit 0; \
15548 r=`${PWD_COMMAND}`; export r; \
15549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15550 $(SET_LIB_PATH) \
15551 for flag in $(EXTRA_HOST_FLAGS); do \
15552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15553 done; \
15554 echo "Doing info in textutils" ; \
15555 (cd textutils && \
15556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15558 "RANLIB=$${RANLIB}" \
15559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15560 info) \
15561 || exit 1
15564 .PHONY: maybe-dvi-textutils dvi-textutils
15565 maybe-dvi-textutils:
15567 dvi-textutils: \
15568 configure-textutils
15569 @[ -f ./textutils/Makefile ] || exit 0; \
15570 r=`${PWD_COMMAND}`; export r; \
15571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15572 $(SET_LIB_PATH) \
15573 for flag in $(EXTRA_HOST_FLAGS); do \
15574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15575 done; \
15576 echo "Doing dvi in textutils" ; \
15577 (cd textutils && \
15578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15580 "RANLIB=$${RANLIB}" \
15581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15582 dvi) \
15583 || exit 1
15586 .PHONY: maybe-TAGS-textutils TAGS-textutils
15587 maybe-TAGS-textutils:
15589 TAGS-textutils: \
15590 configure-textutils
15591 @[ -f ./textutils/Makefile ] || exit 0; \
15592 r=`${PWD_COMMAND}`; export r; \
15593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15594 $(SET_LIB_PATH) \
15595 for flag in $(EXTRA_HOST_FLAGS); do \
15596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15597 done; \
15598 echo "Doing TAGS in textutils" ; \
15599 (cd textutils && \
15600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15602 "RANLIB=$${RANLIB}" \
15603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15604 TAGS) \
15605 || exit 1
15608 .PHONY: maybe-install-info-textutils install-info-textutils
15609 maybe-install-info-textutils:
15611 install-info-textutils: \
15612 configure-textutils \
15613 info-textutils
15614 @[ -f ./textutils/Makefile ] || exit 0; \
15615 r=`${PWD_COMMAND}`; export r; \
15616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15617 $(SET_LIB_PATH) \
15618 for flag in $(EXTRA_HOST_FLAGS); do \
15619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15620 done; \
15621 echo "Doing install-info in textutils" ; \
15622 (cd textutils && \
15623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15625 "RANLIB=$${RANLIB}" \
15626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15627 install-info) \
15628 || exit 1
15631 .PHONY: maybe-installcheck-textutils installcheck-textutils
15632 maybe-installcheck-textutils:
15634 installcheck-textutils: \
15635 configure-textutils
15636 @[ -f ./textutils/Makefile ] || exit 0; \
15637 r=`${PWD_COMMAND}`; export r; \
15638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15639 $(SET_LIB_PATH) \
15640 for flag in $(EXTRA_HOST_FLAGS); do \
15641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15642 done; \
15643 echo "Doing installcheck in textutils" ; \
15644 (cd textutils && \
15645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15647 "RANLIB=$${RANLIB}" \
15648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15649 installcheck) \
15650 || exit 1
15653 .PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
15654 maybe-mostlyclean-textutils:
15656 mostlyclean-textutils:
15657 @[ -f ./textutils/Makefile ] || exit 0; \
15658 r=`${PWD_COMMAND}`; export r; \
15659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15660 $(SET_LIB_PATH) \
15661 for flag in $(EXTRA_HOST_FLAGS); do \
15662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15663 done; \
15664 echo "Doing mostlyclean in textutils" ; \
15665 (cd textutils && \
15666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15668 "RANLIB=$${RANLIB}" \
15669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15670 mostlyclean) \
15671 || exit 1
15674 .PHONY: maybe-clean-textutils clean-textutils
15675 maybe-clean-textutils:
15677 clean-textutils:
15678 @[ -f ./textutils/Makefile ] || exit 0; \
15679 r=`${PWD_COMMAND}`; export r; \
15680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15681 $(SET_LIB_PATH) \
15682 for flag in $(EXTRA_HOST_FLAGS); do \
15683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15684 done; \
15685 echo "Doing clean in textutils" ; \
15686 (cd textutils && \
15687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15689 "RANLIB=$${RANLIB}" \
15690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15691 clean) \
15692 || exit 1
15695 .PHONY: maybe-distclean-textutils distclean-textutils
15696 maybe-distclean-textutils:
15698 distclean-textutils:
15699 @[ -f ./textutils/Makefile ] || exit 0; \
15700 r=`${PWD_COMMAND}`; export r; \
15701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15702 $(SET_LIB_PATH) \
15703 for flag in $(EXTRA_HOST_FLAGS); do \
15704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15705 done; \
15706 echo "Doing distclean in textutils" ; \
15707 (cd textutils && \
15708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15710 "RANLIB=$${RANLIB}" \
15711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15712 distclean) \
15713 || exit 1
15716 .PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
15717 maybe-maintainer-clean-textutils:
15719 maintainer-clean-textutils:
15720 @[ -f ./textutils/Makefile ] || exit 0; \
15721 r=`${PWD_COMMAND}`; export r; \
15722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15723 $(SET_LIB_PATH) \
15724 for flag in $(EXTRA_HOST_FLAGS); do \
15725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15726 done; \
15727 echo "Doing maintainer-clean in textutils" ; \
15728 (cd textutils && \
15729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15731 "RANLIB=$${RANLIB}" \
15732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15733 maintainer-clean) \
15734 || exit 1
15738 .PHONY: configure-time maybe-configure-time
15739 maybe-configure-time:
15740 configure-time:
15741 @test ! -f time/Makefile || exit 0; \
15742 [ -d time ] || mkdir time; \
15743 r=`${PWD_COMMAND}`; export r; \
15744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15745 CC="$(CC)"; export CC; \
15746 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15747 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15748 CXX="$(CXX)"; export CXX; \
15749 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15750 AR="$(AR)"; export AR; \
15751 AS="$(AS)"; export AS; \
15752 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15753 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15754 LD="$(LD)"; export LD; \
15755 NM="$(NM)"; export NM; \
15756 RANLIB="$(RANLIB)"; export RANLIB; \
15757 WINDRES="$(WINDRES)"; export WINDRES; \
15758 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15759 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15760 echo Configuring in time; \
15761 cd time || exit 1; \
15762 case $(srcdir) in \
15763 \.) \
15764 srcdiroption="--srcdir=."; \
15765 libsrcdir=".";; \
15766 /* | [A-Za-z]:[\\/]*) \
15767 srcdiroption="--srcdir=$(srcdir)/time"; \
15768 libsrcdir="$$s/time";; \
15769 *) \
15770 srcdiroption="--srcdir=../$(srcdir)/time"; \
15771 libsrcdir="$$s/time";; \
15772 esac; \
15773 $(SHELL) $${libsrcdir}/configure \
15774 $(HOST_CONFIGARGS) $${srcdiroption} \
15775 || exit 1
15777 .PHONY: all-time maybe-all-time
15778 maybe-all-time:
15779 all-time: configure-time
15780 @r=`${PWD_COMMAND}`; export r; \
15781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15782 $(SET_LIB_PATH) \
15783 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
15785 .PHONY: check-time maybe-check-time
15786 maybe-check-time:
15788 check-time:
15789 @r=`${PWD_COMMAND}`; export r; \
15790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15791 $(SET_LIB_PATH) \
15792 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
15795 .PHONY: install-time maybe-install-time
15796 maybe-install-time:
15798 install-time: installdirs
15799 @r=`${PWD_COMMAND}`; export r; \
15800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15801 $(SET_LIB_PATH) \
15802 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
15805 # Other targets (info, dvi, etc.)
15807 .PHONY: maybe-info-time info-time
15808 maybe-info-time:
15810 info-time: \
15811 configure-time
15812 @[ -f ./time/Makefile ] || exit 0; \
15813 r=`${PWD_COMMAND}`; export r; \
15814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15815 $(SET_LIB_PATH) \
15816 for flag in $(EXTRA_HOST_FLAGS); do \
15817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15818 done; \
15819 echo "Doing info in time" ; \
15820 (cd time && \
15821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15823 "RANLIB=$${RANLIB}" \
15824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15825 info) \
15826 || exit 1
15829 .PHONY: maybe-dvi-time dvi-time
15830 maybe-dvi-time:
15832 dvi-time: \
15833 configure-time
15834 @[ -f ./time/Makefile ] || exit 0; \
15835 r=`${PWD_COMMAND}`; export r; \
15836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15837 $(SET_LIB_PATH) \
15838 for flag in $(EXTRA_HOST_FLAGS); do \
15839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15840 done; \
15841 echo "Doing dvi in time" ; \
15842 (cd time && \
15843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15845 "RANLIB=$${RANLIB}" \
15846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15847 dvi) \
15848 || exit 1
15851 .PHONY: maybe-TAGS-time TAGS-time
15852 maybe-TAGS-time:
15854 TAGS-time: \
15855 configure-time
15856 @[ -f ./time/Makefile ] || exit 0; \
15857 r=`${PWD_COMMAND}`; export r; \
15858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15859 $(SET_LIB_PATH) \
15860 for flag in $(EXTRA_HOST_FLAGS); do \
15861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15862 done; \
15863 echo "Doing TAGS in time" ; \
15864 (cd time && \
15865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15867 "RANLIB=$${RANLIB}" \
15868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15869 TAGS) \
15870 || exit 1
15873 .PHONY: maybe-install-info-time install-info-time
15874 maybe-install-info-time:
15876 install-info-time: \
15877 configure-time \
15878 info-time
15879 @[ -f ./time/Makefile ] || exit 0; \
15880 r=`${PWD_COMMAND}`; export r; \
15881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15882 $(SET_LIB_PATH) \
15883 for flag in $(EXTRA_HOST_FLAGS); do \
15884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15885 done; \
15886 echo "Doing install-info in time" ; \
15887 (cd time && \
15888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15890 "RANLIB=$${RANLIB}" \
15891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15892 install-info) \
15893 || exit 1
15896 .PHONY: maybe-installcheck-time installcheck-time
15897 maybe-installcheck-time:
15899 installcheck-time: \
15900 configure-time
15901 @[ -f ./time/Makefile ] || exit 0; \
15902 r=`${PWD_COMMAND}`; export r; \
15903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15904 $(SET_LIB_PATH) \
15905 for flag in $(EXTRA_HOST_FLAGS); do \
15906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15907 done; \
15908 echo "Doing installcheck in time" ; \
15909 (cd time && \
15910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15912 "RANLIB=$${RANLIB}" \
15913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15914 installcheck) \
15915 || exit 1
15918 .PHONY: maybe-mostlyclean-time mostlyclean-time
15919 maybe-mostlyclean-time:
15921 mostlyclean-time:
15922 @[ -f ./time/Makefile ] || exit 0; \
15923 r=`${PWD_COMMAND}`; export r; \
15924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15925 $(SET_LIB_PATH) \
15926 for flag in $(EXTRA_HOST_FLAGS); do \
15927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15928 done; \
15929 echo "Doing mostlyclean in time" ; \
15930 (cd time && \
15931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15933 "RANLIB=$${RANLIB}" \
15934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15935 mostlyclean) \
15936 || exit 1
15939 .PHONY: maybe-clean-time clean-time
15940 maybe-clean-time:
15942 clean-time:
15943 @[ -f ./time/Makefile ] || exit 0; \
15944 r=`${PWD_COMMAND}`; export r; \
15945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15946 $(SET_LIB_PATH) \
15947 for flag in $(EXTRA_HOST_FLAGS); do \
15948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15949 done; \
15950 echo "Doing clean in time" ; \
15951 (cd time && \
15952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15954 "RANLIB=$${RANLIB}" \
15955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15956 clean) \
15957 || exit 1
15960 .PHONY: maybe-distclean-time distclean-time
15961 maybe-distclean-time:
15963 distclean-time:
15964 @[ -f ./time/Makefile ] || exit 0; \
15965 r=`${PWD_COMMAND}`; export r; \
15966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15967 $(SET_LIB_PATH) \
15968 for flag in $(EXTRA_HOST_FLAGS); do \
15969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15970 done; \
15971 echo "Doing distclean in time" ; \
15972 (cd time && \
15973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15975 "RANLIB=$${RANLIB}" \
15976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15977 distclean) \
15978 || exit 1
15981 .PHONY: maybe-maintainer-clean-time maintainer-clean-time
15982 maybe-maintainer-clean-time:
15984 maintainer-clean-time:
15985 @[ -f ./time/Makefile ] || exit 0; \
15986 r=`${PWD_COMMAND}`; export r; \
15987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15988 $(SET_LIB_PATH) \
15989 for flag in $(EXTRA_HOST_FLAGS); do \
15990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15991 done; \
15992 echo "Doing maintainer-clean in time" ; \
15993 (cd time && \
15994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15996 "RANLIB=$${RANLIB}" \
15997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15998 maintainer-clean) \
15999 || exit 1
16003 .PHONY: configure-uudecode maybe-configure-uudecode
16004 maybe-configure-uudecode:
16005 configure-uudecode:
16006 @test ! -f uudecode/Makefile || exit 0; \
16007 [ -d uudecode ] || mkdir uudecode; \
16008 r=`${PWD_COMMAND}`; export r; \
16009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16010 CC="$(CC)"; export CC; \
16011 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16012 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16013 CXX="$(CXX)"; export CXX; \
16014 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16015 AR="$(AR)"; export AR; \
16016 AS="$(AS)"; export AS; \
16017 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16018 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16019 LD="$(LD)"; export LD; \
16020 NM="$(NM)"; export NM; \
16021 RANLIB="$(RANLIB)"; export RANLIB; \
16022 WINDRES="$(WINDRES)"; export WINDRES; \
16023 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16024 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16025 echo Configuring in uudecode; \
16026 cd uudecode || exit 1; \
16027 case $(srcdir) in \
16028 \.) \
16029 srcdiroption="--srcdir=."; \
16030 libsrcdir=".";; \
16031 /* | [A-Za-z]:[\\/]*) \
16032 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
16033 libsrcdir="$$s/uudecode";; \
16034 *) \
16035 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
16036 libsrcdir="$$s/uudecode";; \
16037 esac; \
16038 $(SHELL) $${libsrcdir}/configure \
16039 $(HOST_CONFIGARGS) $${srcdiroption} \
16040 || exit 1
16042 .PHONY: all-uudecode maybe-all-uudecode
16043 maybe-all-uudecode:
16044 all-uudecode: configure-uudecode
16045 @r=`${PWD_COMMAND}`; export r; \
16046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16047 $(SET_LIB_PATH) \
16048 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
16050 .PHONY: check-uudecode maybe-check-uudecode
16051 maybe-check-uudecode:
16053 check-uudecode:
16054 @r=`${PWD_COMMAND}`; export r; \
16055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16056 $(SET_LIB_PATH) \
16057 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
16060 .PHONY: install-uudecode maybe-install-uudecode
16061 maybe-install-uudecode:
16063 install-uudecode: installdirs
16064 @r=`${PWD_COMMAND}`; export r; \
16065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16066 $(SET_LIB_PATH) \
16067 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
16070 # Other targets (info, dvi, etc.)
16072 .PHONY: maybe-info-uudecode info-uudecode
16073 maybe-info-uudecode:
16075 info-uudecode: \
16076 configure-uudecode
16077 @[ -f ./uudecode/Makefile ] || exit 0; \
16078 r=`${PWD_COMMAND}`; export r; \
16079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16080 $(SET_LIB_PATH) \
16081 for flag in $(EXTRA_HOST_FLAGS); do \
16082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16083 done; \
16084 echo "Doing info in uudecode" ; \
16085 (cd uudecode && \
16086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16088 "RANLIB=$${RANLIB}" \
16089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16090 info) \
16091 || exit 1
16094 .PHONY: maybe-dvi-uudecode dvi-uudecode
16095 maybe-dvi-uudecode:
16097 dvi-uudecode: \
16098 configure-uudecode
16099 @[ -f ./uudecode/Makefile ] || exit 0; \
16100 r=`${PWD_COMMAND}`; export r; \
16101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16102 $(SET_LIB_PATH) \
16103 for flag in $(EXTRA_HOST_FLAGS); do \
16104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16105 done; \
16106 echo "Doing dvi in uudecode" ; \
16107 (cd uudecode && \
16108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16110 "RANLIB=$${RANLIB}" \
16111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16112 dvi) \
16113 || exit 1
16116 .PHONY: maybe-TAGS-uudecode TAGS-uudecode
16117 maybe-TAGS-uudecode:
16119 TAGS-uudecode: \
16120 configure-uudecode
16121 @[ -f ./uudecode/Makefile ] || exit 0; \
16122 r=`${PWD_COMMAND}`; export r; \
16123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16124 $(SET_LIB_PATH) \
16125 for flag in $(EXTRA_HOST_FLAGS); do \
16126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16127 done; \
16128 echo "Doing TAGS in uudecode" ; \
16129 (cd uudecode && \
16130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16132 "RANLIB=$${RANLIB}" \
16133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16134 TAGS) \
16135 || exit 1
16138 .PHONY: maybe-install-info-uudecode install-info-uudecode
16139 maybe-install-info-uudecode:
16141 install-info-uudecode: \
16142 configure-uudecode \
16143 info-uudecode
16144 @[ -f ./uudecode/Makefile ] || exit 0; \
16145 r=`${PWD_COMMAND}`; export r; \
16146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16147 $(SET_LIB_PATH) \
16148 for flag in $(EXTRA_HOST_FLAGS); do \
16149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16150 done; \
16151 echo "Doing install-info in uudecode" ; \
16152 (cd uudecode && \
16153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16155 "RANLIB=$${RANLIB}" \
16156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16157 install-info) \
16158 || exit 1
16161 .PHONY: maybe-installcheck-uudecode installcheck-uudecode
16162 maybe-installcheck-uudecode:
16164 installcheck-uudecode: \
16165 configure-uudecode
16166 @[ -f ./uudecode/Makefile ] || exit 0; \
16167 r=`${PWD_COMMAND}`; export r; \
16168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16169 $(SET_LIB_PATH) \
16170 for flag in $(EXTRA_HOST_FLAGS); do \
16171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16172 done; \
16173 echo "Doing installcheck in uudecode" ; \
16174 (cd uudecode && \
16175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16177 "RANLIB=$${RANLIB}" \
16178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16179 installcheck) \
16180 || exit 1
16183 .PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
16184 maybe-mostlyclean-uudecode:
16186 mostlyclean-uudecode:
16187 @[ -f ./uudecode/Makefile ] || exit 0; \
16188 r=`${PWD_COMMAND}`; export r; \
16189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16190 $(SET_LIB_PATH) \
16191 for flag in $(EXTRA_HOST_FLAGS); do \
16192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16193 done; \
16194 echo "Doing mostlyclean in uudecode" ; \
16195 (cd uudecode && \
16196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16198 "RANLIB=$${RANLIB}" \
16199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16200 mostlyclean) \
16201 || exit 1
16204 .PHONY: maybe-clean-uudecode clean-uudecode
16205 maybe-clean-uudecode:
16207 clean-uudecode:
16208 @[ -f ./uudecode/Makefile ] || exit 0; \
16209 r=`${PWD_COMMAND}`; export r; \
16210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16211 $(SET_LIB_PATH) \
16212 for flag in $(EXTRA_HOST_FLAGS); do \
16213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16214 done; \
16215 echo "Doing clean in uudecode" ; \
16216 (cd uudecode && \
16217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16219 "RANLIB=$${RANLIB}" \
16220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16221 clean) \
16222 || exit 1
16225 .PHONY: maybe-distclean-uudecode distclean-uudecode
16226 maybe-distclean-uudecode:
16228 distclean-uudecode:
16229 @[ -f ./uudecode/Makefile ] || exit 0; \
16230 r=`${PWD_COMMAND}`; export r; \
16231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16232 $(SET_LIB_PATH) \
16233 for flag in $(EXTRA_HOST_FLAGS); do \
16234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16235 done; \
16236 echo "Doing distclean in uudecode" ; \
16237 (cd uudecode && \
16238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16240 "RANLIB=$${RANLIB}" \
16241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16242 distclean) \
16243 || exit 1
16246 .PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
16247 maybe-maintainer-clean-uudecode:
16249 maintainer-clean-uudecode:
16250 @[ -f ./uudecode/Makefile ] || exit 0; \
16251 r=`${PWD_COMMAND}`; export r; \
16252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16253 $(SET_LIB_PATH) \
16254 for flag in $(EXTRA_HOST_FLAGS); do \
16255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16256 done; \
16257 echo "Doing maintainer-clean in uudecode" ; \
16258 (cd uudecode && \
16259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16261 "RANLIB=$${RANLIB}" \
16262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16263 maintainer-clean) \
16264 || exit 1
16268 .PHONY: configure-wdiff maybe-configure-wdiff
16269 maybe-configure-wdiff:
16270 configure-wdiff:
16271 @test ! -f wdiff/Makefile || exit 0; \
16272 [ -d wdiff ] || mkdir wdiff; \
16273 r=`${PWD_COMMAND}`; export r; \
16274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16275 CC="$(CC)"; export CC; \
16276 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16277 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16278 CXX="$(CXX)"; export CXX; \
16279 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16280 AR="$(AR)"; export AR; \
16281 AS="$(AS)"; export AS; \
16282 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16283 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16284 LD="$(LD)"; export LD; \
16285 NM="$(NM)"; export NM; \
16286 RANLIB="$(RANLIB)"; export RANLIB; \
16287 WINDRES="$(WINDRES)"; export WINDRES; \
16288 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16289 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16290 echo Configuring in wdiff; \
16291 cd wdiff || exit 1; \
16292 case $(srcdir) in \
16293 \.) \
16294 srcdiroption="--srcdir=."; \
16295 libsrcdir=".";; \
16296 /* | [A-Za-z]:[\\/]*) \
16297 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
16298 libsrcdir="$$s/wdiff";; \
16299 *) \
16300 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
16301 libsrcdir="$$s/wdiff";; \
16302 esac; \
16303 $(SHELL) $${libsrcdir}/configure \
16304 $(HOST_CONFIGARGS) $${srcdiroption} \
16305 || exit 1
16307 .PHONY: all-wdiff maybe-all-wdiff
16308 maybe-all-wdiff:
16309 all-wdiff: configure-wdiff
16310 @r=`${PWD_COMMAND}`; export r; \
16311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16312 $(SET_LIB_PATH) \
16313 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
16315 .PHONY: check-wdiff maybe-check-wdiff
16316 maybe-check-wdiff:
16318 check-wdiff:
16319 @r=`${PWD_COMMAND}`; export r; \
16320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16321 $(SET_LIB_PATH) \
16322 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
16325 .PHONY: install-wdiff maybe-install-wdiff
16326 maybe-install-wdiff:
16328 install-wdiff: installdirs
16329 @r=`${PWD_COMMAND}`; export r; \
16330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16331 $(SET_LIB_PATH) \
16332 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
16335 # Other targets (info, dvi, etc.)
16337 .PHONY: maybe-info-wdiff info-wdiff
16338 maybe-info-wdiff:
16340 info-wdiff: \
16341 configure-wdiff
16342 @[ -f ./wdiff/Makefile ] || exit 0; \
16343 r=`${PWD_COMMAND}`; export r; \
16344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16345 $(SET_LIB_PATH) \
16346 for flag in $(EXTRA_HOST_FLAGS); do \
16347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16348 done; \
16349 echo "Doing info in wdiff" ; \
16350 (cd wdiff && \
16351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16353 "RANLIB=$${RANLIB}" \
16354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16355 info) \
16356 || exit 1
16359 .PHONY: maybe-dvi-wdiff dvi-wdiff
16360 maybe-dvi-wdiff:
16362 dvi-wdiff: \
16363 configure-wdiff
16364 @[ -f ./wdiff/Makefile ] || exit 0; \
16365 r=`${PWD_COMMAND}`; export r; \
16366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16367 $(SET_LIB_PATH) \
16368 for flag in $(EXTRA_HOST_FLAGS); do \
16369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16370 done; \
16371 echo "Doing dvi in wdiff" ; \
16372 (cd wdiff && \
16373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16375 "RANLIB=$${RANLIB}" \
16376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16377 dvi) \
16378 || exit 1
16381 .PHONY: maybe-TAGS-wdiff TAGS-wdiff
16382 maybe-TAGS-wdiff:
16384 TAGS-wdiff: \
16385 configure-wdiff
16386 @[ -f ./wdiff/Makefile ] || exit 0; \
16387 r=`${PWD_COMMAND}`; export r; \
16388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16389 $(SET_LIB_PATH) \
16390 for flag in $(EXTRA_HOST_FLAGS); do \
16391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16392 done; \
16393 echo "Doing TAGS in wdiff" ; \
16394 (cd wdiff && \
16395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16397 "RANLIB=$${RANLIB}" \
16398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16399 TAGS) \
16400 || exit 1
16403 .PHONY: maybe-install-info-wdiff install-info-wdiff
16404 maybe-install-info-wdiff:
16406 install-info-wdiff: \
16407 configure-wdiff \
16408 info-wdiff
16409 @[ -f ./wdiff/Makefile ] || exit 0; \
16410 r=`${PWD_COMMAND}`; export r; \
16411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16412 $(SET_LIB_PATH) \
16413 for flag in $(EXTRA_HOST_FLAGS); do \
16414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16415 done; \
16416 echo "Doing install-info in wdiff" ; \
16417 (cd wdiff && \
16418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16420 "RANLIB=$${RANLIB}" \
16421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16422 install-info) \
16423 || exit 1
16426 .PHONY: maybe-installcheck-wdiff installcheck-wdiff
16427 maybe-installcheck-wdiff:
16429 installcheck-wdiff: \
16430 configure-wdiff
16431 @[ -f ./wdiff/Makefile ] || exit 0; \
16432 r=`${PWD_COMMAND}`; export r; \
16433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16434 $(SET_LIB_PATH) \
16435 for flag in $(EXTRA_HOST_FLAGS); do \
16436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16437 done; \
16438 echo "Doing installcheck in wdiff" ; \
16439 (cd wdiff && \
16440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16442 "RANLIB=$${RANLIB}" \
16443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16444 installcheck) \
16445 || exit 1
16448 .PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
16449 maybe-mostlyclean-wdiff:
16451 mostlyclean-wdiff:
16452 @[ -f ./wdiff/Makefile ] || exit 0; \
16453 r=`${PWD_COMMAND}`; export r; \
16454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16455 $(SET_LIB_PATH) \
16456 for flag in $(EXTRA_HOST_FLAGS); do \
16457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16458 done; \
16459 echo "Doing mostlyclean in wdiff" ; \
16460 (cd wdiff && \
16461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16463 "RANLIB=$${RANLIB}" \
16464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16465 mostlyclean) \
16466 || exit 1
16469 .PHONY: maybe-clean-wdiff clean-wdiff
16470 maybe-clean-wdiff:
16472 clean-wdiff:
16473 @[ -f ./wdiff/Makefile ] || exit 0; \
16474 r=`${PWD_COMMAND}`; export r; \
16475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16476 $(SET_LIB_PATH) \
16477 for flag in $(EXTRA_HOST_FLAGS); do \
16478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16479 done; \
16480 echo "Doing clean in wdiff" ; \
16481 (cd wdiff && \
16482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16484 "RANLIB=$${RANLIB}" \
16485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16486 clean) \
16487 || exit 1
16490 .PHONY: maybe-distclean-wdiff distclean-wdiff
16491 maybe-distclean-wdiff:
16493 distclean-wdiff:
16494 @[ -f ./wdiff/Makefile ] || exit 0; \
16495 r=`${PWD_COMMAND}`; export r; \
16496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16497 $(SET_LIB_PATH) \
16498 for flag in $(EXTRA_HOST_FLAGS); do \
16499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16500 done; \
16501 echo "Doing distclean in wdiff" ; \
16502 (cd wdiff && \
16503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16505 "RANLIB=$${RANLIB}" \
16506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16507 distclean) \
16508 || exit 1
16511 .PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
16512 maybe-maintainer-clean-wdiff:
16514 maintainer-clean-wdiff:
16515 @[ -f ./wdiff/Makefile ] || exit 0; \
16516 r=`${PWD_COMMAND}`; export r; \
16517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16518 $(SET_LIB_PATH) \
16519 for flag in $(EXTRA_HOST_FLAGS); do \
16520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16521 done; \
16522 echo "Doing maintainer-clean in wdiff" ; \
16523 (cd wdiff && \
16524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16526 "RANLIB=$${RANLIB}" \
16527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16528 maintainer-clean) \
16529 || exit 1
16533 .PHONY: configure-zip maybe-configure-zip
16534 maybe-configure-zip:
16535 configure-zip:
16536 @test ! -f zip/Makefile || exit 0; \
16537 [ -d zip ] || mkdir zip; \
16538 r=`${PWD_COMMAND}`; export r; \
16539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16540 CC="$(CC)"; export CC; \
16541 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16542 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16543 CXX="$(CXX)"; export CXX; \
16544 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16545 AR="$(AR)"; export AR; \
16546 AS="$(AS)"; export AS; \
16547 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16548 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16549 LD="$(LD)"; export LD; \
16550 NM="$(NM)"; export NM; \
16551 RANLIB="$(RANLIB)"; export RANLIB; \
16552 WINDRES="$(WINDRES)"; export WINDRES; \
16553 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16554 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16555 echo Configuring in zip; \
16556 cd zip || exit 1; \
16557 case $(srcdir) in \
16558 \.) \
16559 srcdiroption="--srcdir=."; \
16560 libsrcdir=".";; \
16561 /* | [A-Za-z]:[\\/]*) \
16562 srcdiroption="--srcdir=$(srcdir)/zip"; \
16563 libsrcdir="$$s/zip";; \
16564 *) \
16565 srcdiroption="--srcdir=../$(srcdir)/zip"; \
16566 libsrcdir="$$s/zip";; \
16567 esac; \
16568 $(SHELL) $${libsrcdir}/configure \
16569 $(HOST_CONFIGARGS) $${srcdiroption} \
16570 || exit 1
16572 .PHONY: all-zip maybe-all-zip
16573 maybe-all-zip:
16574 all-zip: configure-zip
16575 @r=`${PWD_COMMAND}`; export r; \
16576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16577 $(SET_LIB_PATH) \
16578 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
16580 .PHONY: check-zip maybe-check-zip
16581 maybe-check-zip:
16583 # This module is only tested in a native toolchain.
16584 check-zip:
16585 @if [ '$(host)' = '$(target)' ] ; then \
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16588 $(SET_LIB_PATH) \
16589 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
16593 .PHONY: install-zip maybe-install-zip
16594 maybe-install-zip:
16596 install-zip: installdirs
16597 @r=`${PWD_COMMAND}`; export r; \
16598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16599 $(SET_LIB_PATH) \
16600 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
16603 # Other targets (info, dvi, etc.)
16605 .PHONY: maybe-info-zip info-zip
16606 maybe-info-zip:
16608 info-zip: \
16609 configure-zip
16610 @[ -f ./zip/Makefile ] || exit 0; \
16611 r=`${PWD_COMMAND}`; export r; \
16612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16613 $(SET_LIB_PATH) \
16614 for flag in $(EXTRA_HOST_FLAGS); do \
16615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16616 done; \
16617 echo "Doing info in zip" ; \
16618 (cd zip && \
16619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16621 "RANLIB=$${RANLIB}" \
16622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16623 info) \
16624 || exit 1
16627 .PHONY: maybe-dvi-zip dvi-zip
16628 maybe-dvi-zip:
16630 dvi-zip: \
16631 configure-zip
16632 @[ -f ./zip/Makefile ] || exit 0; \
16633 r=`${PWD_COMMAND}`; export r; \
16634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16635 $(SET_LIB_PATH) \
16636 for flag in $(EXTRA_HOST_FLAGS); do \
16637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16638 done; \
16639 echo "Doing dvi in zip" ; \
16640 (cd zip && \
16641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16643 "RANLIB=$${RANLIB}" \
16644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16645 dvi) \
16646 || exit 1
16649 .PHONY: maybe-TAGS-zip TAGS-zip
16650 maybe-TAGS-zip:
16652 TAGS-zip: \
16653 configure-zip
16654 @[ -f ./zip/Makefile ] || exit 0; \
16655 r=`${PWD_COMMAND}`; export r; \
16656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16657 $(SET_LIB_PATH) \
16658 for flag in $(EXTRA_HOST_FLAGS); do \
16659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16660 done; \
16661 echo "Doing TAGS in zip" ; \
16662 (cd zip && \
16663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16665 "RANLIB=$${RANLIB}" \
16666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16667 TAGS) \
16668 || exit 1
16671 .PHONY: maybe-install-info-zip install-info-zip
16672 maybe-install-info-zip:
16674 install-info-zip: \
16675 configure-zip \
16676 info-zip
16677 @[ -f ./zip/Makefile ] || exit 0; \
16678 r=`${PWD_COMMAND}`; export r; \
16679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16680 $(SET_LIB_PATH) \
16681 for flag in $(EXTRA_HOST_FLAGS); do \
16682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16683 done; \
16684 echo "Doing install-info in zip" ; \
16685 (cd zip && \
16686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16688 "RANLIB=$${RANLIB}" \
16689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16690 install-info) \
16691 || exit 1
16694 .PHONY: maybe-installcheck-zip installcheck-zip
16695 maybe-installcheck-zip:
16697 installcheck-zip: \
16698 configure-zip
16699 @[ -f ./zip/Makefile ] || exit 0; \
16700 r=`${PWD_COMMAND}`; export r; \
16701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16702 $(SET_LIB_PATH) \
16703 for flag in $(EXTRA_HOST_FLAGS); do \
16704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16705 done; \
16706 echo "Doing installcheck in zip" ; \
16707 (cd zip && \
16708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16710 "RANLIB=$${RANLIB}" \
16711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16712 installcheck) \
16713 || exit 1
16716 .PHONY: maybe-mostlyclean-zip mostlyclean-zip
16717 maybe-mostlyclean-zip:
16719 mostlyclean-zip:
16720 @[ -f ./zip/Makefile ] || exit 0; \
16721 r=`${PWD_COMMAND}`; export r; \
16722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16723 $(SET_LIB_PATH) \
16724 for flag in $(EXTRA_HOST_FLAGS); do \
16725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16726 done; \
16727 echo "Doing mostlyclean in zip" ; \
16728 (cd zip && \
16729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16731 "RANLIB=$${RANLIB}" \
16732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16733 mostlyclean) \
16734 || exit 1
16737 .PHONY: maybe-clean-zip clean-zip
16738 maybe-clean-zip:
16740 clean-zip:
16741 @[ -f ./zip/Makefile ] || exit 0; \
16742 r=`${PWD_COMMAND}`; export r; \
16743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16744 $(SET_LIB_PATH) \
16745 for flag in $(EXTRA_HOST_FLAGS); do \
16746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16747 done; \
16748 echo "Doing clean in zip" ; \
16749 (cd zip && \
16750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16752 "RANLIB=$${RANLIB}" \
16753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16754 clean) \
16755 || exit 1
16758 .PHONY: maybe-distclean-zip distclean-zip
16759 maybe-distclean-zip:
16761 distclean-zip:
16762 @[ -f ./zip/Makefile ] || exit 0; \
16763 r=`${PWD_COMMAND}`; export r; \
16764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16765 $(SET_LIB_PATH) \
16766 for flag in $(EXTRA_HOST_FLAGS); do \
16767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16768 done; \
16769 echo "Doing distclean in zip" ; \
16770 (cd zip && \
16771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16773 "RANLIB=$${RANLIB}" \
16774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16775 distclean) \
16776 || exit 1
16779 .PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
16780 maybe-maintainer-clean-zip:
16782 maintainer-clean-zip:
16783 @[ -f ./zip/Makefile ] || exit 0; \
16784 r=`${PWD_COMMAND}`; export r; \
16785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16786 $(SET_LIB_PATH) \
16787 for flag in $(EXTRA_HOST_FLAGS); do \
16788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16789 done; \
16790 echo "Doing maintainer-clean in zip" ; \
16791 (cd zip && \
16792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16794 "RANLIB=$${RANLIB}" \
16795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16796 maintainer-clean) \
16797 || exit 1
16801 .PHONY: configure-zlib maybe-configure-zlib
16802 maybe-configure-zlib:
16803 configure-zlib:
16804 @test ! -f zlib/Makefile || exit 0; \
16805 [ -d zlib ] || mkdir zlib; \
16806 r=`${PWD_COMMAND}`; export r; \
16807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16808 CC="$(CC)"; export CC; \
16809 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16810 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16811 CXX="$(CXX)"; export CXX; \
16812 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16813 AR="$(AR)"; export AR; \
16814 AS="$(AS)"; export AS; \
16815 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16816 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16817 LD="$(LD)"; export LD; \
16818 NM="$(NM)"; export NM; \
16819 RANLIB="$(RANLIB)"; export RANLIB; \
16820 WINDRES="$(WINDRES)"; export WINDRES; \
16821 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16822 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16823 echo Configuring in zlib; \
16824 cd zlib || exit 1; \
16825 case $(srcdir) in \
16826 \.) \
16827 srcdiroption="--srcdir=."; \
16828 libsrcdir=".";; \
16829 /* | [A-Za-z]:[\\/]*) \
16830 srcdiroption="--srcdir=$(srcdir)/zlib"; \
16831 libsrcdir="$$s/zlib";; \
16832 *) \
16833 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
16834 libsrcdir="$$s/zlib";; \
16835 esac; \
16836 $(SHELL) $${libsrcdir}/configure \
16837 $(HOST_CONFIGARGS) $${srcdiroption} \
16838 || exit 1
16840 .PHONY: all-zlib maybe-all-zlib
16841 maybe-all-zlib:
16842 all-zlib: configure-zlib
16843 @r=`${PWD_COMMAND}`; export r; \
16844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16845 $(SET_LIB_PATH) \
16846 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
16848 .PHONY: check-zlib maybe-check-zlib
16849 maybe-check-zlib:
16851 check-zlib:
16854 .PHONY: install-zlib maybe-install-zlib
16855 maybe-install-zlib:
16857 install-zlib:
16860 # Other targets (info, dvi, etc.)
16862 .PHONY: maybe-info-zlib info-zlib
16863 maybe-info-zlib:
16865 info-zlib: \
16866 configure-zlib
16867 @[ -f ./zlib/Makefile ] || exit 0; \
16868 r=`${PWD_COMMAND}`; export r; \
16869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16870 $(SET_LIB_PATH) \
16871 for flag in $(EXTRA_HOST_FLAGS); do \
16872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16873 done; \
16874 echo "Doing info in zlib" ; \
16875 (cd zlib && \
16876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16878 "RANLIB=$${RANLIB}" \
16879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16880 info) \
16881 || exit 1
16884 .PHONY: maybe-dvi-zlib dvi-zlib
16885 maybe-dvi-zlib:
16887 dvi-zlib: \
16888 configure-zlib
16889 @[ -f ./zlib/Makefile ] || exit 0; \
16890 r=`${PWD_COMMAND}`; export r; \
16891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16892 $(SET_LIB_PATH) \
16893 for flag in $(EXTRA_HOST_FLAGS); do \
16894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16895 done; \
16896 echo "Doing dvi in zlib" ; \
16897 (cd zlib && \
16898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16900 "RANLIB=$${RANLIB}" \
16901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16902 dvi) \
16903 || exit 1
16906 .PHONY: maybe-TAGS-zlib TAGS-zlib
16907 maybe-TAGS-zlib:
16909 TAGS-zlib: \
16910 configure-zlib
16911 @[ -f ./zlib/Makefile ] || exit 0; \
16912 r=`${PWD_COMMAND}`; export r; \
16913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16914 $(SET_LIB_PATH) \
16915 for flag in $(EXTRA_HOST_FLAGS); do \
16916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16917 done; \
16918 echo "Doing TAGS in zlib" ; \
16919 (cd zlib && \
16920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16922 "RANLIB=$${RANLIB}" \
16923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16924 TAGS) \
16925 || exit 1
16928 .PHONY: maybe-install-info-zlib install-info-zlib
16929 maybe-install-info-zlib:
16931 install-info-zlib: \
16932 configure-zlib \
16933 info-zlib
16934 @[ -f ./zlib/Makefile ] || exit 0; \
16935 r=`${PWD_COMMAND}`; export r; \
16936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16937 $(SET_LIB_PATH) \
16938 for flag in $(EXTRA_HOST_FLAGS); do \
16939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16940 done; \
16941 echo "Doing install-info in zlib" ; \
16942 (cd zlib && \
16943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16945 "RANLIB=$${RANLIB}" \
16946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16947 install-info) \
16948 || exit 1
16951 .PHONY: maybe-installcheck-zlib installcheck-zlib
16952 maybe-installcheck-zlib:
16954 installcheck-zlib: \
16955 configure-zlib
16956 @[ -f ./zlib/Makefile ] || exit 0; \
16957 r=`${PWD_COMMAND}`; export r; \
16958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16959 $(SET_LIB_PATH) \
16960 for flag in $(EXTRA_HOST_FLAGS); do \
16961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16962 done; \
16963 echo "Doing installcheck in zlib" ; \
16964 (cd zlib && \
16965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16967 "RANLIB=$${RANLIB}" \
16968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16969 installcheck) \
16970 || exit 1
16973 .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
16974 maybe-mostlyclean-zlib:
16976 mostlyclean-zlib:
16977 @[ -f ./zlib/Makefile ] || exit 0; \
16978 r=`${PWD_COMMAND}`; export r; \
16979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16980 $(SET_LIB_PATH) \
16981 for flag in $(EXTRA_HOST_FLAGS); do \
16982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16983 done; \
16984 echo "Doing mostlyclean in zlib" ; \
16985 (cd zlib && \
16986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16988 "RANLIB=$${RANLIB}" \
16989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16990 mostlyclean) \
16991 || exit 1
16994 .PHONY: maybe-clean-zlib clean-zlib
16995 maybe-clean-zlib:
16997 clean-zlib:
16998 @[ -f ./zlib/Makefile ] || exit 0; \
16999 r=`${PWD_COMMAND}`; export r; \
17000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17001 $(SET_LIB_PATH) \
17002 for flag in $(EXTRA_HOST_FLAGS); do \
17003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17004 done; \
17005 echo "Doing clean in zlib" ; \
17006 (cd zlib && \
17007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17009 "RANLIB=$${RANLIB}" \
17010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17011 clean) \
17012 || exit 1
17015 .PHONY: maybe-distclean-zlib distclean-zlib
17016 maybe-distclean-zlib:
17018 distclean-zlib:
17019 @[ -f ./zlib/Makefile ] || exit 0; \
17020 r=`${PWD_COMMAND}`; export r; \
17021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17022 $(SET_LIB_PATH) \
17023 for flag in $(EXTRA_HOST_FLAGS); do \
17024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17025 done; \
17026 echo "Doing distclean in zlib" ; \
17027 (cd zlib && \
17028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17030 "RANLIB=$${RANLIB}" \
17031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17032 distclean) \
17033 || exit 1
17036 .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
17037 maybe-maintainer-clean-zlib:
17039 maintainer-clean-zlib:
17040 @[ -f ./zlib/Makefile ] || exit 0; \
17041 r=`${PWD_COMMAND}`; export r; \
17042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17043 $(SET_LIB_PATH) \
17044 for flag in $(EXTRA_HOST_FLAGS); do \
17045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17046 done; \
17047 echo "Doing maintainer-clean in zlib" ; \
17048 (cd zlib && \
17049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17051 "RANLIB=$${RANLIB}" \
17052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17053 maintainer-clean) \
17054 || exit 1
17058 .PHONY: configure-gdb maybe-configure-gdb
17059 maybe-configure-gdb:
17060 configure-gdb:
17061 @test ! -f gdb/Makefile || exit 0; \
17062 [ -d gdb ] || mkdir gdb; \
17063 r=`${PWD_COMMAND}`; export r; \
17064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17065 CC="$(CC)"; export CC; \
17066 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17067 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17068 CXX="$(CXX)"; export CXX; \
17069 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17070 AR="$(AR)"; export AR; \
17071 AS="$(AS)"; export AS; \
17072 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17073 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17074 LD="$(LD)"; export LD; \
17075 NM="$(NM)"; export NM; \
17076 RANLIB="$(RANLIB)"; export RANLIB; \
17077 WINDRES="$(WINDRES)"; export WINDRES; \
17078 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17079 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17080 echo Configuring in gdb; \
17081 cd gdb || exit 1; \
17082 case $(srcdir) in \
17083 \.) \
17084 srcdiroption="--srcdir=."; \
17085 libsrcdir=".";; \
17086 /* | [A-Za-z]:[\\/]*) \
17087 srcdiroption="--srcdir=$(srcdir)/gdb"; \
17088 libsrcdir="$$s/gdb";; \
17089 *) \
17090 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
17091 libsrcdir="$$s/gdb";; \
17092 esac; \
17093 $(SHELL) $${libsrcdir}/configure \
17094 $(HOST_CONFIGARGS) $${srcdiroption} \
17095 || exit 1
17097 .PHONY: all-gdb maybe-all-gdb
17098 maybe-all-gdb:
17099 all-gdb: configure-gdb
17100 @r=`${PWD_COMMAND}`; export r; \
17101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17102 $(SET_LIB_PATH) \
17103 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17105 .PHONY: check-gdb maybe-check-gdb
17106 maybe-check-gdb:
17108 check-gdb:
17109 @r=`${PWD_COMMAND}`; export r; \
17110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17111 $(SET_LIB_PATH) \
17112 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17115 .PHONY: install-gdb maybe-install-gdb
17116 maybe-install-gdb:
17118 install-gdb: installdirs
17119 @r=`${PWD_COMMAND}`; export r; \
17120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17121 $(SET_LIB_PATH) \
17122 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17125 # Other targets (info, dvi, etc.)
17127 .PHONY: maybe-info-gdb info-gdb
17128 maybe-info-gdb:
17130 info-gdb: \
17131 configure-gdb
17132 @[ -f ./gdb/Makefile ] || exit 0; \
17133 r=`${PWD_COMMAND}`; export r; \
17134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17135 $(SET_LIB_PATH) \
17136 for flag in $(EXTRA_HOST_FLAGS); do \
17137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17138 done; \
17139 echo "Doing info in gdb" ; \
17140 (cd gdb && \
17141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17143 "RANLIB=$${RANLIB}" \
17144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17145 info) \
17146 || exit 1
17149 .PHONY: maybe-dvi-gdb dvi-gdb
17150 maybe-dvi-gdb:
17152 dvi-gdb: \
17153 configure-gdb
17154 @[ -f ./gdb/Makefile ] || exit 0; \
17155 r=`${PWD_COMMAND}`; export r; \
17156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17157 $(SET_LIB_PATH) \
17158 for flag in $(EXTRA_HOST_FLAGS); do \
17159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17160 done; \
17161 echo "Doing dvi in gdb" ; \
17162 (cd gdb && \
17163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17165 "RANLIB=$${RANLIB}" \
17166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17167 dvi) \
17168 || exit 1
17171 .PHONY: maybe-TAGS-gdb TAGS-gdb
17172 maybe-TAGS-gdb:
17174 TAGS-gdb: \
17175 configure-gdb
17176 @[ -f ./gdb/Makefile ] || exit 0; \
17177 r=`${PWD_COMMAND}`; export r; \
17178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17179 $(SET_LIB_PATH) \
17180 for flag in $(EXTRA_HOST_FLAGS); do \
17181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17182 done; \
17183 echo "Doing TAGS in gdb" ; \
17184 (cd gdb && \
17185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17187 "RANLIB=$${RANLIB}" \
17188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17189 TAGS) \
17190 || exit 1
17193 .PHONY: maybe-install-info-gdb install-info-gdb
17194 maybe-install-info-gdb:
17196 install-info-gdb: \
17197 configure-gdb \
17198 info-gdb
17199 @[ -f ./gdb/Makefile ] || exit 0; \
17200 r=`${PWD_COMMAND}`; export r; \
17201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17202 $(SET_LIB_PATH) \
17203 for flag in $(EXTRA_HOST_FLAGS); do \
17204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17205 done; \
17206 echo "Doing install-info in gdb" ; \
17207 (cd gdb && \
17208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17210 "RANLIB=$${RANLIB}" \
17211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17212 install-info) \
17213 || exit 1
17216 .PHONY: maybe-installcheck-gdb installcheck-gdb
17217 maybe-installcheck-gdb:
17219 installcheck-gdb: \
17220 configure-gdb
17221 @[ -f ./gdb/Makefile ] || exit 0; \
17222 r=`${PWD_COMMAND}`; export r; \
17223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17224 $(SET_LIB_PATH) \
17225 for flag in $(EXTRA_HOST_FLAGS); do \
17226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17227 done; \
17228 echo "Doing installcheck in gdb" ; \
17229 (cd gdb && \
17230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17232 "RANLIB=$${RANLIB}" \
17233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17234 installcheck) \
17235 || exit 1
17238 .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
17239 maybe-mostlyclean-gdb:
17241 mostlyclean-gdb:
17242 @[ -f ./gdb/Makefile ] || exit 0; \
17243 r=`${PWD_COMMAND}`; export r; \
17244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17245 $(SET_LIB_PATH) \
17246 for flag in $(EXTRA_HOST_FLAGS); do \
17247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17248 done; \
17249 echo "Doing mostlyclean in gdb" ; \
17250 (cd gdb && \
17251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17253 "RANLIB=$${RANLIB}" \
17254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17255 mostlyclean) \
17256 || exit 1
17259 .PHONY: maybe-clean-gdb clean-gdb
17260 maybe-clean-gdb:
17262 clean-gdb:
17263 @[ -f ./gdb/Makefile ] || exit 0; \
17264 r=`${PWD_COMMAND}`; export r; \
17265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17266 $(SET_LIB_PATH) \
17267 for flag in $(EXTRA_HOST_FLAGS); do \
17268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17269 done; \
17270 echo "Doing clean in gdb" ; \
17271 (cd gdb && \
17272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17274 "RANLIB=$${RANLIB}" \
17275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17276 clean) \
17277 || exit 1
17280 .PHONY: maybe-distclean-gdb distclean-gdb
17281 maybe-distclean-gdb:
17283 distclean-gdb:
17284 @[ -f ./gdb/Makefile ] || exit 0; \
17285 r=`${PWD_COMMAND}`; export r; \
17286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17287 $(SET_LIB_PATH) \
17288 for flag in $(EXTRA_HOST_FLAGS); do \
17289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17290 done; \
17291 echo "Doing distclean in gdb" ; \
17292 (cd gdb && \
17293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17295 "RANLIB=$${RANLIB}" \
17296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17297 distclean) \
17298 || exit 1
17301 .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
17302 maybe-maintainer-clean-gdb:
17304 maintainer-clean-gdb:
17305 @[ -f ./gdb/Makefile ] || exit 0; \
17306 r=`${PWD_COMMAND}`; export r; \
17307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17308 $(SET_LIB_PATH) \
17309 for flag in $(EXTRA_HOST_FLAGS); do \
17310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17311 done; \
17312 echo "Doing maintainer-clean in gdb" ; \
17313 (cd gdb && \
17314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17316 "RANLIB=$${RANLIB}" \
17317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17318 maintainer-clean) \
17319 || exit 1
17323 .PHONY: configure-expect maybe-configure-expect
17324 maybe-configure-expect:
17325 configure-expect:
17326 @test ! -f expect/Makefile || exit 0; \
17327 [ -d expect ] || mkdir expect; \
17328 r=`${PWD_COMMAND}`; export r; \
17329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17330 CC="$(CC)"; export CC; \
17331 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17332 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17333 CXX="$(CXX)"; export CXX; \
17334 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17335 AR="$(AR)"; export AR; \
17336 AS="$(AS)"; export AS; \
17337 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17338 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17339 LD="$(LD)"; export LD; \
17340 NM="$(NM)"; export NM; \
17341 RANLIB="$(RANLIB)"; export RANLIB; \
17342 WINDRES="$(WINDRES)"; export WINDRES; \
17343 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17344 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17345 echo Configuring in expect; \
17346 cd expect || exit 1; \
17347 case $(srcdir) in \
17348 \.) \
17349 srcdiroption="--srcdir=."; \
17350 libsrcdir=".";; \
17351 /* | [A-Za-z]:[\\/]*) \
17352 srcdiroption="--srcdir=$(srcdir)/expect"; \
17353 libsrcdir="$$s/expect";; \
17354 *) \
17355 srcdiroption="--srcdir=../$(srcdir)/expect"; \
17356 libsrcdir="$$s/expect";; \
17357 esac; \
17358 $(SHELL) $${libsrcdir}/configure \
17359 $(HOST_CONFIGARGS) $${srcdiroption} \
17360 || exit 1
17362 .PHONY: all-expect maybe-all-expect
17363 maybe-all-expect:
17364 all-expect: configure-expect
17365 @r=`${PWD_COMMAND}`; export r; \
17366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17367 $(SET_LIB_PATH) \
17368 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17370 .PHONY: check-expect maybe-check-expect
17371 maybe-check-expect:
17373 check-expect:
17374 @r=`${PWD_COMMAND}`; export r; \
17375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17376 $(SET_LIB_PATH) \
17377 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17380 .PHONY: install-expect maybe-install-expect
17381 maybe-install-expect:
17383 install-expect: installdirs
17384 @r=`${PWD_COMMAND}`; export r; \
17385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17386 $(SET_LIB_PATH) \
17387 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17390 # Other targets (info, dvi, etc.)
17392 .PHONY: maybe-info-expect info-expect
17393 maybe-info-expect:
17395 info-expect: \
17396 configure-expect
17397 @[ -f ./expect/Makefile ] || exit 0; \
17398 r=`${PWD_COMMAND}`; export r; \
17399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17400 $(SET_LIB_PATH) \
17401 for flag in $(EXTRA_HOST_FLAGS); do \
17402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17403 done; \
17404 echo "Doing info in expect" ; \
17405 (cd expect && \
17406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17408 "RANLIB=$${RANLIB}" \
17409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17410 info) \
17411 || exit 1
17414 .PHONY: maybe-dvi-expect dvi-expect
17415 maybe-dvi-expect:
17417 dvi-expect: \
17418 configure-expect
17419 @[ -f ./expect/Makefile ] || exit 0; \
17420 r=`${PWD_COMMAND}`; export r; \
17421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17422 $(SET_LIB_PATH) \
17423 for flag in $(EXTRA_HOST_FLAGS); do \
17424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17425 done; \
17426 echo "Doing dvi in expect" ; \
17427 (cd expect && \
17428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17430 "RANLIB=$${RANLIB}" \
17431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17432 dvi) \
17433 || exit 1
17436 .PHONY: maybe-TAGS-expect TAGS-expect
17437 maybe-TAGS-expect:
17439 TAGS-expect: \
17440 configure-expect
17441 @[ -f ./expect/Makefile ] || exit 0; \
17442 r=`${PWD_COMMAND}`; export r; \
17443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17444 $(SET_LIB_PATH) \
17445 for flag in $(EXTRA_HOST_FLAGS); do \
17446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17447 done; \
17448 echo "Doing TAGS in expect" ; \
17449 (cd expect && \
17450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17452 "RANLIB=$${RANLIB}" \
17453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17454 TAGS) \
17455 || exit 1
17458 .PHONY: maybe-install-info-expect install-info-expect
17459 maybe-install-info-expect:
17461 install-info-expect: \
17462 configure-expect \
17463 info-expect
17464 @[ -f ./expect/Makefile ] || exit 0; \
17465 r=`${PWD_COMMAND}`; export r; \
17466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17467 $(SET_LIB_PATH) \
17468 for flag in $(EXTRA_HOST_FLAGS); do \
17469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17470 done; \
17471 echo "Doing install-info in expect" ; \
17472 (cd expect && \
17473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17475 "RANLIB=$${RANLIB}" \
17476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17477 install-info) \
17478 || exit 1
17481 .PHONY: maybe-installcheck-expect installcheck-expect
17482 maybe-installcheck-expect:
17484 installcheck-expect: \
17485 configure-expect
17486 @[ -f ./expect/Makefile ] || exit 0; \
17487 r=`${PWD_COMMAND}`; export r; \
17488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17489 $(SET_LIB_PATH) \
17490 for flag in $(EXTRA_HOST_FLAGS); do \
17491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17492 done; \
17493 echo "Doing installcheck in expect" ; \
17494 (cd expect && \
17495 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17496 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17497 "RANLIB=$${RANLIB}" \
17498 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17499 installcheck) \
17500 || exit 1
17503 .PHONY: maybe-mostlyclean-expect mostlyclean-expect
17504 maybe-mostlyclean-expect:
17506 mostlyclean-expect:
17507 @[ -f ./expect/Makefile ] || exit 0; \
17508 r=`${PWD_COMMAND}`; export r; \
17509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17510 $(SET_LIB_PATH) \
17511 for flag in $(EXTRA_HOST_FLAGS); do \
17512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17513 done; \
17514 echo "Doing mostlyclean in expect" ; \
17515 (cd expect && \
17516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17518 "RANLIB=$${RANLIB}" \
17519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17520 mostlyclean) \
17521 || exit 1
17524 .PHONY: maybe-clean-expect clean-expect
17525 maybe-clean-expect:
17527 clean-expect:
17528 @[ -f ./expect/Makefile ] || exit 0; \
17529 r=`${PWD_COMMAND}`; export r; \
17530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17531 $(SET_LIB_PATH) \
17532 for flag in $(EXTRA_HOST_FLAGS); do \
17533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17534 done; \
17535 echo "Doing clean in expect" ; \
17536 (cd expect && \
17537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17539 "RANLIB=$${RANLIB}" \
17540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17541 clean) \
17542 || exit 1
17545 .PHONY: maybe-distclean-expect distclean-expect
17546 maybe-distclean-expect:
17548 distclean-expect:
17549 @[ -f ./expect/Makefile ] || exit 0; \
17550 r=`${PWD_COMMAND}`; export r; \
17551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17552 $(SET_LIB_PATH) \
17553 for flag in $(EXTRA_HOST_FLAGS); do \
17554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17555 done; \
17556 echo "Doing distclean in expect" ; \
17557 (cd expect && \
17558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17560 "RANLIB=$${RANLIB}" \
17561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17562 distclean) \
17563 || exit 1
17566 .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
17567 maybe-maintainer-clean-expect:
17569 maintainer-clean-expect:
17570 @[ -f ./expect/Makefile ] || exit 0; \
17571 r=`${PWD_COMMAND}`; export r; \
17572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17573 $(SET_LIB_PATH) \
17574 for flag in $(EXTRA_HOST_FLAGS); do \
17575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17576 done; \
17577 echo "Doing maintainer-clean in expect" ; \
17578 (cd expect && \
17579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17581 "RANLIB=$${RANLIB}" \
17582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17583 maintainer-clean) \
17584 || exit 1
17588 .PHONY: configure-guile maybe-configure-guile
17589 maybe-configure-guile:
17590 configure-guile:
17591 @test ! -f guile/Makefile || exit 0; \
17592 [ -d guile ] || mkdir guile; \
17593 r=`${PWD_COMMAND}`; export r; \
17594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17595 CC="$(CC)"; export CC; \
17596 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17597 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17598 CXX="$(CXX)"; export CXX; \
17599 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17600 AR="$(AR)"; export AR; \
17601 AS="$(AS)"; export AS; \
17602 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17603 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17604 LD="$(LD)"; export LD; \
17605 NM="$(NM)"; export NM; \
17606 RANLIB="$(RANLIB)"; export RANLIB; \
17607 WINDRES="$(WINDRES)"; export WINDRES; \
17608 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17609 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17610 echo Configuring in guile; \
17611 cd guile || exit 1; \
17612 case $(srcdir) in \
17613 \.) \
17614 srcdiroption="--srcdir=."; \
17615 libsrcdir=".";; \
17616 /* | [A-Za-z]:[\\/]*) \
17617 srcdiroption="--srcdir=$(srcdir)/guile"; \
17618 libsrcdir="$$s/guile";; \
17619 *) \
17620 srcdiroption="--srcdir=../$(srcdir)/guile"; \
17621 libsrcdir="$$s/guile";; \
17622 esac; \
17623 $(SHELL) $${libsrcdir}/configure \
17624 $(HOST_CONFIGARGS) $${srcdiroption} \
17625 || exit 1
17627 .PHONY: all-guile maybe-all-guile
17628 maybe-all-guile:
17629 all-guile: configure-guile
17630 @r=`${PWD_COMMAND}`; export r; \
17631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17632 $(SET_LIB_PATH) \
17633 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17635 .PHONY: check-guile maybe-check-guile
17636 maybe-check-guile:
17638 check-guile:
17639 @r=`${PWD_COMMAND}`; export r; \
17640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17641 $(SET_LIB_PATH) \
17642 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17645 .PHONY: install-guile maybe-install-guile
17646 maybe-install-guile:
17648 install-guile: installdirs
17649 @r=`${PWD_COMMAND}`; export r; \
17650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17651 $(SET_LIB_PATH) \
17652 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17655 # Other targets (info, dvi, etc.)
17657 .PHONY: maybe-info-guile info-guile
17658 maybe-info-guile:
17660 info-guile: \
17661 configure-guile
17662 @[ -f ./guile/Makefile ] || exit 0; \
17663 r=`${PWD_COMMAND}`; export r; \
17664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17665 $(SET_LIB_PATH) \
17666 for flag in $(EXTRA_HOST_FLAGS); do \
17667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17668 done; \
17669 echo "Doing info in guile" ; \
17670 (cd guile && \
17671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17673 "RANLIB=$${RANLIB}" \
17674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17675 info) \
17676 || exit 1
17679 .PHONY: maybe-dvi-guile dvi-guile
17680 maybe-dvi-guile:
17682 dvi-guile: \
17683 configure-guile
17684 @[ -f ./guile/Makefile ] || exit 0; \
17685 r=`${PWD_COMMAND}`; export r; \
17686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17687 $(SET_LIB_PATH) \
17688 for flag in $(EXTRA_HOST_FLAGS); do \
17689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17690 done; \
17691 echo "Doing dvi in guile" ; \
17692 (cd guile && \
17693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17695 "RANLIB=$${RANLIB}" \
17696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17697 dvi) \
17698 || exit 1
17701 .PHONY: maybe-TAGS-guile TAGS-guile
17702 maybe-TAGS-guile:
17704 TAGS-guile: \
17705 configure-guile
17706 @[ -f ./guile/Makefile ] || exit 0; \
17707 r=`${PWD_COMMAND}`; export r; \
17708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17709 $(SET_LIB_PATH) \
17710 for flag in $(EXTRA_HOST_FLAGS); do \
17711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17712 done; \
17713 echo "Doing TAGS in guile" ; \
17714 (cd guile && \
17715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17717 "RANLIB=$${RANLIB}" \
17718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17719 TAGS) \
17720 || exit 1
17723 .PHONY: maybe-install-info-guile install-info-guile
17724 maybe-install-info-guile:
17726 install-info-guile: \
17727 configure-guile \
17728 info-guile
17729 @[ -f ./guile/Makefile ] || exit 0; \
17730 r=`${PWD_COMMAND}`; export r; \
17731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17732 $(SET_LIB_PATH) \
17733 for flag in $(EXTRA_HOST_FLAGS); do \
17734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17735 done; \
17736 echo "Doing install-info in guile" ; \
17737 (cd guile && \
17738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17740 "RANLIB=$${RANLIB}" \
17741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17742 install-info) \
17743 || exit 1
17746 .PHONY: maybe-installcheck-guile installcheck-guile
17747 maybe-installcheck-guile:
17749 installcheck-guile: \
17750 configure-guile
17751 @[ -f ./guile/Makefile ] || exit 0; \
17752 r=`${PWD_COMMAND}`; export r; \
17753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17754 $(SET_LIB_PATH) \
17755 for flag in $(EXTRA_HOST_FLAGS); do \
17756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17757 done; \
17758 echo "Doing installcheck in guile" ; \
17759 (cd guile && \
17760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17762 "RANLIB=$${RANLIB}" \
17763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17764 installcheck) \
17765 || exit 1
17768 .PHONY: maybe-mostlyclean-guile mostlyclean-guile
17769 maybe-mostlyclean-guile:
17771 mostlyclean-guile:
17772 @[ -f ./guile/Makefile ] || exit 0; \
17773 r=`${PWD_COMMAND}`; export r; \
17774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17775 $(SET_LIB_PATH) \
17776 for flag in $(EXTRA_HOST_FLAGS); do \
17777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17778 done; \
17779 echo "Doing mostlyclean in guile" ; \
17780 (cd guile && \
17781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17783 "RANLIB=$${RANLIB}" \
17784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17785 mostlyclean) \
17786 || exit 1
17789 .PHONY: maybe-clean-guile clean-guile
17790 maybe-clean-guile:
17792 clean-guile:
17793 @[ -f ./guile/Makefile ] || exit 0; \
17794 r=`${PWD_COMMAND}`; export r; \
17795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17796 $(SET_LIB_PATH) \
17797 for flag in $(EXTRA_HOST_FLAGS); do \
17798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17799 done; \
17800 echo "Doing clean in guile" ; \
17801 (cd guile && \
17802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17804 "RANLIB=$${RANLIB}" \
17805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17806 clean) \
17807 || exit 1
17810 .PHONY: maybe-distclean-guile distclean-guile
17811 maybe-distclean-guile:
17813 distclean-guile:
17814 @[ -f ./guile/Makefile ] || exit 0; \
17815 r=`${PWD_COMMAND}`; export r; \
17816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17817 $(SET_LIB_PATH) \
17818 for flag in $(EXTRA_HOST_FLAGS); do \
17819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17820 done; \
17821 echo "Doing distclean in guile" ; \
17822 (cd guile && \
17823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17825 "RANLIB=$${RANLIB}" \
17826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17827 distclean) \
17828 || exit 1
17831 .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
17832 maybe-maintainer-clean-guile:
17834 maintainer-clean-guile:
17835 @[ -f ./guile/Makefile ] || exit 0; \
17836 r=`${PWD_COMMAND}`; export r; \
17837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17838 $(SET_LIB_PATH) \
17839 for flag in $(EXTRA_HOST_FLAGS); do \
17840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17841 done; \
17842 echo "Doing maintainer-clean in guile" ; \
17843 (cd guile && \
17844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17846 "RANLIB=$${RANLIB}" \
17847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17848 maintainer-clean) \
17849 || exit 1
17853 .PHONY: configure-tk maybe-configure-tk
17854 maybe-configure-tk:
17855 configure-tk:
17856 @test ! -f tk/Makefile || exit 0; \
17857 [ -d tk ] || mkdir tk; \
17858 r=`${PWD_COMMAND}`; export r; \
17859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17860 CC="$(CC)"; export CC; \
17861 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17862 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17863 CXX="$(CXX)"; export CXX; \
17864 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17865 AR="$(AR)"; export AR; \
17866 AS="$(AS)"; export AS; \
17867 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17868 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17869 LD="$(LD)"; export LD; \
17870 NM="$(NM)"; export NM; \
17871 RANLIB="$(RANLIB)"; export RANLIB; \
17872 WINDRES="$(WINDRES)"; export WINDRES; \
17873 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17874 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17875 echo Configuring in tk; \
17876 cd tk || exit 1; \
17877 case $(srcdir) in \
17878 \.) \
17879 srcdiroption="--srcdir=."; \
17880 libsrcdir=".";; \
17881 /* | [A-Za-z]:[\\/]*) \
17882 srcdiroption="--srcdir=$(srcdir)/tk"; \
17883 libsrcdir="$$s/tk";; \
17884 *) \
17885 srcdiroption="--srcdir=../$(srcdir)/tk"; \
17886 libsrcdir="$$s/tk";; \
17887 esac; \
17888 $(SHELL) $${libsrcdir}/configure \
17889 $(HOST_CONFIGARGS) $${srcdiroption} \
17890 || exit 1
17892 .PHONY: all-tk maybe-all-tk
17893 maybe-all-tk:
17894 all-tk: configure-tk
17895 @r=`${PWD_COMMAND}`; export r; \
17896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17897 $(SET_LIB_PATH) \
17898 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17900 .PHONY: check-tk maybe-check-tk
17901 maybe-check-tk:
17903 check-tk:
17904 @r=`${PWD_COMMAND}`; export r; \
17905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17906 $(SET_LIB_PATH) \
17907 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17910 .PHONY: install-tk maybe-install-tk
17911 maybe-install-tk:
17913 install-tk: installdirs
17914 @r=`${PWD_COMMAND}`; export r; \
17915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17916 $(SET_LIB_PATH) \
17917 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17920 # Other targets (info, dvi, etc.)
17922 .PHONY: maybe-info-tk info-tk
17923 maybe-info-tk:
17925 info-tk: \
17926 configure-tk
17927 @[ -f ./tk/Makefile ] || exit 0; \
17928 r=`${PWD_COMMAND}`; export r; \
17929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17930 $(SET_LIB_PATH) \
17931 for flag in $(EXTRA_HOST_FLAGS); do \
17932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17933 done; \
17934 echo "Doing info in tk" ; \
17935 (cd tk && \
17936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17938 "RANLIB=$${RANLIB}" \
17939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17940 info) \
17941 || exit 1
17944 .PHONY: maybe-dvi-tk dvi-tk
17945 maybe-dvi-tk:
17947 dvi-tk: \
17948 configure-tk
17949 @[ -f ./tk/Makefile ] || exit 0; \
17950 r=`${PWD_COMMAND}`; export r; \
17951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17952 $(SET_LIB_PATH) \
17953 for flag in $(EXTRA_HOST_FLAGS); do \
17954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17955 done; \
17956 echo "Doing dvi in tk" ; \
17957 (cd tk && \
17958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17960 "RANLIB=$${RANLIB}" \
17961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17962 dvi) \
17963 || exit 1
17966 .PHONY: maybe-TAGS-tk TAGS-tk
17967 maybe-TAGS-tk:
17969 TAGS-tk: \
17970 configure-tk
17971 @[ -f ./tk/Makefile ] || exit 0; \
17972 r=`${PWD_COMMAND}`; export r; \
17973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17974 $(SET_LIB_PATH) \
17975 for flag in $(EXTRA_HOST_FLAGS); do \
17976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17977 done; \
17978 echo "Doing TAGS in tk" ; \
17979 (cd tk && \
17980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17982 "RANLIB=$${RANLIB}" \
17983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17984 TAGS) \
17985 || exit 1
17988 .PHONY: maybe-install-info-tk install-info-tk
17989 maybe-install-info-tk:
17991 install-info-tk: \
17992 configure-tk \
17993 info-tk
17994 @[ -f ./tk/Makefile ] || exit 0; \
17995 r=`${PWD_COMMAND}`; export r; \
17996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17997 $(SET_LIB_PATH) \
17998 for flag in $(EXTRA_HOST_FLAGS); do \
17999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18000 done; \
18001 echo "Doing install-info in tk" ; \
18002 (cd tk && \
18003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18005 "RANLIB=$${RANLIB}" \
18006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18007 install-info) \
18008 || exit 1
18011 .PHONY: maybe-installcheck-tk installcheck-tk
18012 maybe-installcheck-tk:
18014 installcheck-tk: \
18015 configure-tk
18016 @[ -f ./tk/Makefile ] || exit 0; \
18017 r=`${PWD_COMMAND}`; export r; \
18018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18019 $(SET_LIB_PATH) \
18020 for flag in $(EXTRA_HOST_FLAGS); do \
18021 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18022 done; \
18023 echo "Doing installcheck in tk" ; \
18024 (cd tk && \
18025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18027 "RANLIB=$${RANLIB}" \
18028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18029 installcheck) \
18030 || exit 1
18033 .PHONY: maybe-mostlyclean-tk mostlyclean-tk
18034 maybe-mostlyclean-tk:
18036 mostlyclean-tk:
18037 @[ -f ./tk/Makefile ] || exit 0; \
18038 r=`${PWD_COMMAND}`; export r; \
18039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18040 $(SET_LIB_PATH) \
18041 for flag in $(EXTRA_HOST_FLAGS); do \
18042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18043 done; \
18044 echo "Doing mostlyclean in tk" ; \
18045 (cd tk && \
18046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18048 "RANLIB=$${RANLIB}" \
18049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18050 mostlyclean) \
18051 || exit 1
18054 .PHONY: maybe-clean-tk clean-tk
18055 maybe-clean-tk:
18057 clean-tk:
18058 @[ -f ./tk/Makefile ] || exit 0; \
18059 r=`${PWD_COMMAND}`; export r; \
18060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18061 $(SET_LIB_PATH) \
18062 for flag in $(EXTRA_HOST_FLAGS); do \
18063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18064 done; \
18065 echo "Doing clean in tk" ; \
18066 (cd tk && \
18067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18069 "RANLIB=$${RANLIB}" \
18070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18071 clean) \
18072 || exit 1
18075 .PHONY: maybe-distclean-tk distclean-tk
18076 maybe-distclean-tk:
18078 distclean-tk:
18079 @[ -f ./tk/Makefile ] || exit 0; \
18080 r=`${PWD_COMMAND}`; export r; \
18081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18082 $(SET_LIB_PATH) \
18083 for flag in $(EXTRA_HOST_FLAGS); do \
18084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18085 done; \
18086 echo "Doing distclean in tk" ; \
18087 (cd tk && \
18088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18090 "RANLIB=$${RANLIB}" \
18091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18092 distclean) \
18093 || exit 1
18096 .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
18097 maybe-maintainer-clean-tk:
18099 maintainer-clean-tk:
18100 @[ -f ./tk/Makefile ] || exit 0; \
18101 r=`${PWD_COMMAND}`; export r; \
18102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18103 $(SET_LIB_PATH) \
18104 for flag in $(EXTRA_HOST_FLAGS); do \
18105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18106 done; \
18107 echo "Doing maintainer-clean in tk" ; \
18108 (cd tk && \
18109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18111 "RANLIB=$${RANLIB}" \
18112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18113 maintainer-clean) \
18114 || exit 1
18118 .PHONY: configure-tix maybe-configure-tix
18119 maybe-configure-tix:
18120 configure-tix:
18121 @test ! -f tix/Makefile || exit 0; \
18122 [ -d tix ] || mkdir tix; \
18123 r=`${PWD_COMMAND}`; export r; \
18124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18125 CC="$(CC)"; export CC; \
18126 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18127 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18128 CXX="$(CXX)"; export CXX; \
18129 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18130 AR="$(AR)"; export AR; \
18131 AS="$(AS)"; export AS; \
18132 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18133 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18134 LD="$(LD)"; export LD; \
18135 NM="$(NM)"; export NM; \
18136 RANLIB="$(RANLIB)"; export RANLIB; \
18137 WINDRES="$(WINDRES)"; export WINDRES; \
18138 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18139 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18140 echo Configuring in tix; \
18141 cd tix || exit 1; \
18142 case $(srcdir) in \
18143 \.) \
18144 srcdiroption="--srcdir=."; \
18145 libsrcdir=".";; \
18146 /* | [A-Za-z]:[\\/]*) \
18147 srcdiroption="--srcdir=$(srcdir)/tix"; \
18148 libsrcdir="$$s/tix";; \
18149 *) \
18150 srcdiroption="--srcdir=../$(srcdir)/tix"; \
18151 libsrcdir="$$s/tix";; \
18152 esac; \
18153 $(SHELL) $${libsrcdir}/configure \
18154 $(HOST_CONFIGARGS) $${srcdiroption} \
18155 || exit 1
18157 .PHONY: all-tix maybe-all-tix
18158 maybe-all-tix:
18159 all-tix: configure-tix
18160 @r=`${PWD_COMMAND}`; export r; \
18161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18162 $(SET_LIB_PATH) \
18163 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
18165 .PHONY: check-tix maybe-check-tix
18166 maybe-check-tix:
18168 check-tix:
18169 @r=`${PWD_COMMAND}`; export r; \
18170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18171 $(SET_LIB_PATH) \
18172 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
18175 .PHONY: install-tix maybe-install-tix
18176 maybe-install-tix:
18178 install-tix: installdirs
18179 @r=`${PWD_COMMAND}`; export r; \
18180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18181 $(SET_LIB_PATH) \
18182 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
18185 # Other targets (info, dvi, etc.)
18187 .PHONY: maybe-info-tix info-tix
18188 maybe-info-tix:
18190 info-tix: \
18191 configure-tix
18192 @[ -f ./tix/Makefile ] || exit 0; \
18193 r=`${PWD_COMMAND}`; export r; \
18194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18195 $(SET_LIB_PATH) \
18196 for flag in $(EXTRA_HOST_FLAGS); do \
18197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18198 done; \
18199 echo "Doing info in tix" ; \
18200 (cd tix && \
18201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18203 "RANLIB=$${RANLIB}" \
18204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18205 info) \
18206 || exit 1
18209 .PHONY: maybe-dvi-tix dvi-tix
18210 maybe-dvi-tix:
18212 dvi-tix: \
18213 configure-tix
18214 @[ -f ./tix/Makefile ] || exit 0; \
18215 r=`${PWD_COMMAND}`; export r; \
18216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18217 $(SET_LIB_PATH) \
18218 for flag in $(EXTRA_HOST_FLAGS); do \
18219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18220 done; \
18221 echo "Doing dvi in tix" ; \
18222 (cd tix && \
18223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18225 "RANLIB=$${RANLIB}" \
18226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18227 dvi) \
18228 || exit 1
18231 .PHONY: maybe-TAGS-tix TAGS-tix
18232 maybe-TAGS-tix:
18234 TAGS-tix: \
18235 configure-tix
18236 @[ -f ./tix/Makefile ] || exit 0; \
18237 r=`${PWD_COMMAND}`; export r; \
18238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18239 $(SET_LIB_PATH) \
18240 for flag in $(EXTRA_HOST_FLAGS); do \
18241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18242 done; \
18243 echo "Doing TAGS in tix" ; \
18244 (cd tix && \
18245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18247 "RANLIB=$${RANLIB}" \
18248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18249 TAGS) \
18250 || exit 1
18253 .PHONY: maybe-install-info-tix install-info-tix
18254 maybe-install-info-tix:
18256 install-info-tix: \
18257 configure-tix \
18258 info-tix
18259 @[ -f ./tix/Makefile ] || exit 0; \
18260 r=`${PWD_COMMAND}`; export r; \
18261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18262 $(SET_LIB_PATH) \
18263 for flag in $(EXTRA_HOST_FLAGS); do \
18264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18265 done; \
18266 echo "Doing install-info in tix" ; \
18267 (cd tix && \
18268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18270 "RANLIB=$${RANLIB}" \
18271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18272 install-info) \
18273 || exit 1
18276 .PHONY: maybe-installcheck-tix installcheck-tix
18277 maybe-installcheck-tix:
18279 installcheck-tix: \
18280 configure-tix
18281 @[ -f ./tix/Makefile ] || exit 0; \
18282 r=`${PWD_COMMAND}`; export r; \
18283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18284 $(SET_LIB_PATH) \
18285 for flag in $(EXTRA_HOST_FLAGS); do \
18286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18287 done; \
18288 echo "Doing installcheck in tix" ; \
18289 (cd tix && \
18290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18292 "RANLIB=$${RANLIB}" \
18293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18294 installcheck) \
18295 || exit 1
18298 .PHONY: maybe-mostlyclean-tix mostlyclean-tix
18299 maybe-mostlyclean-tix:
18301 mostlyclean-tix:
18302 @[ -f ./tix/Makefile ] || exit 0; \
18303 r=`${PWD_COMMAND}`; export r; \
18304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18305 $(SET_LIB_PATH) \
18306 for flag in $(EXTRA_HOST_FLAGS); do \
18307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18308 done; \
18309 echo "Doing mostlyclean in tix" ; \
18310 (cd tix && \
18311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18313 "RANLIB=$${RANLIB}" \
18314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18315 mostlyclean) \
18316 || exit 1
18319 .PHONY: maybe-clean-tix clean-tix
18320 maybe-clean-tix:
18322 clean-tix:
18323 @[ -f ./tix/Makefile ] || exit 0; \
18324 r=`${PWD_COMMAND}`; export r; \
18325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18326 $(SET_LIB_PATH) \
18327 for flag in $(EXTRA_HOST_FLAGS); do \
18328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18329 done; \
18330 echo "Doing clean in tix" ; \
18331 (cd tix && \
18332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18334 "RANLIB=$${RANLIB}" \
18335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18336 clean) \
18337 || exit 1
18340 .PHONY: maybe-distclean-tix distclean-tix
18341 maybe-distclean-tix:
18343 distclean-tix:
18344 @[ -f ./tix/Makefile ] || exit 0; \
18345 r=`${PWD_COMMAND}`; export r; \
18346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18347 $(SET_LIB_PATH) \
18348 for flag in $(EXTRA_HOST_FLAGS); do \
18349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18350 done; \
18351 echo "Doing distclean in tix" ; \
18352 (cd tix && \
18353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18355 "RANLIB=$${RANLIB}" \
18356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18357 distclean) \
18358 || exit 1
18361 .PHONY: maybe-maintainer-clean-tix maintainer-clean-tix
18362 maybe-maintainer-clean-tix:
18364 maintainer-clean-tix:
18365 @[ -f ./tix/Makefile ] || exit 0; \
18366 r=`${PWD_COMMAND}`; export r; \
18367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18368 $(SET_LIB_PATH) \
18369 for flag in $(EXTRA_HOST_FLAGS); do \
18370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18371 done; \
18372 echo "Doing maintainer-clean in tix" ; \
18373 (cd tix && \
18374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18376 "RANLIB=$${RANLIB}" \
18377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18378 maintainer-clean) \
18379 || exit 1
18383 .PHONY: configure-libtermcap maybe-configure-libtermcap
18384 maybe-configure-libtermcap:
18385 configure-libtermcap:
18386 @test ! -f libtermcap/Makefile || exit 0; \
18387 [ -d libtermcap ] || mkdir libtermcap; \
18388 r=`${PWD_COMMAND}`; export r; \
18389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18390 CC="$(CC)"; export CC; \
18391 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18392 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18393 CXX="$(CXX)"; export CXX; \
18394 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18395 AR="$(AR)"; export AR; \
18396 AS="$(AS)"; export AS; \
18397 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18398 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18399 LD="$(LD)"; export LD; \
18400 NM="$(NM)"; export NM; \
18401 RANLIB="$(RANLIB)"; export RANLIB; \
18402 WINDRES="$(WINDRES)"; export WINDRES; \
18403 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18404 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18405 echo Configuring in libtermcap; \
18406 cd libtermcap || exit 1; \
18407 case $(srcdir) in \
18408 \.) \
18409 srcdiroption="--srcdir=."; \
18410 libsrcdir=".";; \
18411 /* | [A-Za-z]:[\\/]*) \
18412 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
18413 libsrcdir="$$s/libtermcap";; \
18414 *) \
18415 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
18416 libsrcdir="$$s/libtermcap";; \
18417 esac; \
18418 $(SHELL) $${libsrcdir}/configure \
18419 $(HOST_CONFIGARGS) $${srcdiroption} \
18420 || exit 1
18422 .PHONY: all-libtermcap maybe-all-libtermcap
18423 maybe-all-libtermcap:
18424 all-libtermcap: configure-libtermcap
18425 @r=`${PWD_COMMAND}`; export r; \
18426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18427 $(SET_LIB_PATH) \
18428 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
18430 .PHONY: check-libtermcap maybe-check-libtermcap
18431 maybe-check-libtermcap:
18433 check-libtermcap:
18436 .PHONY: install-libtermcap maybe-install-libtermcap
18437 maybe-install-libtermcap:
18439 install-libtermcap: installdirs
18440 @r=`${PWD_COMMAND}`; export r; \
18441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18442 $(SET_LIB_PATH) \
18443 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
18446 # Other targets (info, dvi, etc.)
18448 .PHONY: maybe-info-libtermcap info-libtermcap
18449 maybe-info-libtermcap:
18451 info-libtermcap: \
18452 configure-libtermcap
18453 @[ -f ./libtermcap/Makefile ] || exit 0; \
18454 r=`${PWD_COMMAND}`; export r; \
18455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18456 $(SET_LIB_PATH) \
18457 for flag in $(EXTRA_HOST_FLAGS); do \
18458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18459 done; \
18460 echo "Doing info in libtermcap" ; \
18461 (cd libtermcap && \
18462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18464 "RANLIB=$${RANLIB}" \
18465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18466 info) \
18467 || exit 1
18470 .PHONY: maybe-dvi-libtermcap dvi-libtermcap
18471 maybe-dvi-libtermcap:
18473 dvi-libtermcap: \
18474 configure-libtermcap
18475 @[ -f ./libtermcap/Makefile ] || exit 0; \
18476 r=`${PWD_COMMAND}`; export r; \
18477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18478 $(SET_LIB_PATH) \
18479 for flag in $(EXTRA_HOST_FLAGS); do \
18480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18481 done; \
18482 echo "Doing dvi in libtermcap" ; \
18483 (cd libtermcap && \
18484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18486 "RANLIB=$${RANLIB}" \
18487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18488 dvi) \
18489 || exit 1
18492 .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
18493 maybe-TAGS-libtermcap:
18495 TAGS-libtermcap: \
18496 configure-libtermcap
18497 @[ -f ./libtermcap/Makefile ] || exit 0; \
18498 r=`${PWD_COMMAND}`; export r; \
18499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18500 $(SET_LIB_PATH) \
18501 for flag in $(EXTRA_HOST_FLAGS); do \
18502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18503 done; \
18504 echo "Doing TAGS in libtermcap" ; \
18505 (cd libtermcap && \
18506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18508 "RANLIB=$${RANLIB}" \
18509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18510 TAGS) \
18511 || exit 1
18514 .PHONY: maybe-install-info-libtermcap install-info-libtermcap
18515 maybe-install-info-libtermcap:
18517 install-info-libtermcap: \
18518 configure-libtermcap \
18519 info-libtermcap
18520 @[ -f ./libtermcap/Makefile ] || exit 0; \
18521 r=`${PWD_COMMAND}`; export r; \
18522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18523 $(SET_LIB_PATH) \
18524 for flag in $(EXTRA_HOST_FLAGS); do \
18525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18526 done; \
18527 echo "Doing install-info in libtermcap" ; \
18528 (cd libtermcap && \
18529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18531 "RANLIB=$${RANLIB}" \
18532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18533 install-info) \
18534 || exit 1
18537 .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
18538 maybe-installcheck-libtermcap:
18540 installcheck-libtermcap: \
18541 configure-libtermcap
18542 @[ -f ./libtermcap/Makefile ] || exit 0; \
18543 r=`${PWD_COMMAND}`; export r; \
18544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18545 $(SET_LIB_PATH) \
18546 for flag in $(EXTRA_HOST_FLAGS); do \
18547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18548 done; \
18549 echo "Doing installcheck in libtermcap" ; \
18550 (cd libtermcap && \
18551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18553 "RANLIB=$${RANLIB}" \
18554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18555 installcheck) \
18556 || exit 1
18559 .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
18560 maybe-mostlyclean-libtermcap:
18562 # libtermcap doesn't support mostlyclean.
18563 mostlyclean-libtermcap:
18566 .PHONY: maybe-clean-libtermcap clean-libtermcap
18567 maybe-clean-libtermcap:
18569 # libtermcap doesn't support clean.
18570 clean-libtermcap:
18573 .PHONY: maybe-distclean-libtermcap distclean-libtermcap
18574 maybe-distclean-libtermcap:
18576 # libtermcap doesn't support distclean.
18577 distclean-libtermcap:
18580 .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
18581 maybe-maintainer-clean-libtermcap:
18583 # libtermcap doesn't support maintainer-clean.
18584 maintainer-clean-libtermcap:
18588 .PHONY: configure-utils maybe-configure-utils
18589 maybe-configure-utils:
18590 configure-utils:
18591 @test ! -f utils/Makefile || exit 0; \
18592 [ -d utils ] || mkdir utils; \
18593 r=`${PWD_COMMAND}`; export r; \
18594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18595 CC="$(CC)"; export CC; \
18596 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18597 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18598 CXX="$(CXX)"; export CXX; \
18599 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18600 AR="$(AR)"; export AR; \
18601 AS="$(AS)"; export AS; \
18602 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18603 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18604 LD="$(LD)"; export LD; \
18605 NM="$(NM)"; export NM; \
18606 RANLIB="$(RANLIB)"; export RANLIB; \
18607 WINDRES="$(WINDRES)"; export WINDRES; \
18608 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18609 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18610 echo Configuring in utils; \
18611 cd utils || exit 1; \
18612 case $(srcdir) in \
18613 \.) \
18614 srcdiroption="--srcdir=."; \
18615 libsrcdir=".";; \
18616 /* | [A-Za-z]:[\\/]*) \
18617 srcdiroption="--srcdir=$(srcdir)/utils"; \
18618 libsrcdir="$$s/utils";; \
18619 *) \
18620 srcdiroption="--srcdir=../$(srcdir)/utils"; \
18621 libsrcdir="$$s/utils";; \
18622 esac; \
18623 $(SHELL) $${libsrcdir}/configure \
18624 $(HOST_CONFIGARGS) $${srcdiroption} \
18625 || exit 1
18627 .PHONY: all-utils maybe-all-utils
18628 maybe-all-utils:
18629 all-utils: configure-utils
18630 @r=`${PWD_COMMAND}`; export r; \
18631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18632 $(SET_LIB_PATH) \
18633 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
18635 .PHONY: check-utils maybe-check-utils
18636 maybe-check-utils:
18638 check-utils:
18641 .PHONY: install-utils maybe-install-utils
18642 maybe-install-utils:
18644 install-utils: installdirs
18645 @r=`${PWD_COMMAND}`; export r; \
18646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18647 $(SET_LIB_PATH) \
18648 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
18651 # Other targets (info, dvi, etc.)
18653 .PHONY: maybe-info-utils info-utils
18654 maybe-info-utils:
18656 info-utils: \
18657 configure-utils
18658 @[ -f ./utils/Makefile ] || exit 0; \
18659 r=`${PWD_COMMAND}`; export r; \
18660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18661 $(SET_LIB_PATH) \
18662 for flag in $(EXTRA_HOST_FLAGS); do \
18663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18664 done; \
18665 echo "Doing info in utils" ; \
18666 (cd utils && \
18667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18669 "RANLIB=$${RANLIB}" \
18670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18671 info) \
18672 || exit 1
18675 .PHONY: maybe-dvi-utils dvi-utils
18676 maybe-dvi-utils:
18678 dvi-utils: \
18679 configure-utils
18680 @[ -f ./utils/Makefile ] || exit 0; \
18681 r=`${PWD_COMMAND}`; export r; \
18682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18683 $(SET_LIB_PATH) \
18684 for flag in $(EXTRA_HOST_FLAGS); do \
18685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18686 done; \
18687 echo "Doing dvi in utils" ; \
18688 (cd utils && \
18689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18691 "RANLIB=$${RANLIB}" \
18692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18693 dvi) \
18694 || exit 1
18697 .PHONY: maybe-TAGS-utils TAGS-utils
18698 maybe-TAGS-utils:
18700 TAGS-utils: \
18701 configure-utils
18702 @[ -f ./utils/Makefile ] || exit 0; \
18703 r=`${PWD_COMMAND}`; export r; \
18704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18705 $(SET_LIB_PATH) \
18706 for flag in $(EXTRA_HOST_FLAGS); do \
18707 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18708 done; \
18709 echo "Doing TAGS in utils" ; \
18710 (cd utils && \
18711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18713 "RANLIB=$${RANLIB}" \
18714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18715 TAGS) \
18716 || exit 1
18719 .PHONY: maybe-install-info-utils install-info-utils
18720 maybe-install-info-utils:
18722 install-info-utils: \
18723 configure-utils \
18724 info-utils
18725 @[ -f ./utils/Makefile ] || exit 0; \
18726 r=`${PWD_COMMAND}`; export r; \
18727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18728 $(SET_LIB_PATH) \
18729 for flag in $(EXTRA_HOST_FLAGS); do \
18730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18731 done; \
18732 echo "Doing install-info in utils" ; \
18733 (cd utils && \
18734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18736 "RANLIB=$${RANLIB}" \
18737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18738 install-info) \
18739 || exit 1
18742 .PHONY: maybe-installcheck-utils installcheck-utils
18743 maybe-installcheck-utils:
18745 installcheck-utils: \
18746 configure-utils
18747 @[ -f ./utils/Makefile ] || exit 0; \
18748 r=`${PWD_COMMAND}`; export r; \
18749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18750 $(SET_LIB_PATH) \
18751 for flag in $(EXTRA_HOST_FLAGS); do \
18752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18753 done; \
18754 echo "Doing installcheck in utils" ; \
18755 (cd utils && \
18756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18758 "RANLIB=$${RANLIB}" \
18759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18760 installcheck) \
18761 || exit 1
18764 .PHONY: maybe-mostlyclean-utils mostlyclean-utils
18765 maybe-mostlyclean-utils:
18767 mostlyclean-utils:
18768 @[ -f ./utils/Makefile ] || exit 0; \
18769 r=`${PWD_COMMAND}`; export r; \
18770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18771 $(SET_LIB_PATH) \
18772 for flag in $(EXTRA_HOST_FLAGS); do \
18773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18774 done; \
18775 echo "Doing mostlyclean in utils" ; \
18776 (cd utils && \
18777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18779 "RANLIB=$${RANLIB}" \
18780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18781 mostlyclean) \
18782 || exit 1
18785 .PHONY: maybe-clean-utils clean-utils
18786 maybe-clean-utils:
18788 clean-utils:
18789 @[ -f ./utils/Makefile ] || exit 0; \
18790 r=`${PWD_COMMAND}`; export r; \
18791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18792 $(SET_LIB_PATH) \
18793 for flag in $(EXTRA_HOST_FLAGS); do \
18794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18795 done; \
18796 echo "Doing clean in utils" ; \
18797 (cd utils && \
18798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18800 "RANLIB=$${RANLIB}" \
18801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18802 clean) \
18803 || exit 1
18806 .PHONY: maybe-distclean-utils distclean-utils
18807 maybe-distclean-utils:
18809 distclean-utils:
18810 @[ -f ./utils/Makefile ] || exit 0; \
18811 r=`${PWD_COMMAND}`; export r; \
18812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18813 $(SET_LIB_PATH) \
18814 for flag in $(EXTRA_HOST_FLAGS); do \
18815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18816 done; \
18817 echo "Doing distclean in utils" ; \
18818 (cd utils && \
18819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18821 "RANLIB=$${RANLIB}" \
18822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18823 distclean) \
18824 || exit 1
18827 .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
18828 maybe-maintainer-clean-utils:
18830 maintainer-clean-utils:
18831 @[ -f ./utils/Makefile ] || exit 0; \
18832 r=`${PWD_COMMAND}`; export r; \
18833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18834 $(SET_LIB_PATH) \
18835 for flag in $(EXTRA_HOST_FLAGS); do \
18836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18837 done; \
18838 echo "Doing maintainer-clean in utils" ; \
18839 (cd utils && \
18840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18842 "RANLIB=$${RANLIB}" \
18843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18844 maintainer-clean) \
18845 || exit 1
18850 # ---------------------------------------
18851 # Modules which run on the target machine
18852 # ---------------------------------------
18854 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
18855 maybe-configure-target-libstdc++-v3:
18857 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
18858 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
18859 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
18860 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
18861 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
18863 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
18864 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
18865 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
18866 r=`${PWD_COMMAND}`; export r; \
18867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18868 $(SET_LIB_PATH) \
18869 AR="$(AR_FOR_TARGET)"; export AR; \
18870 AS="$(AS_FOR_TARGET)"; export AS; \
18871 CC="$(CC_FOR_TARGET)"; export CC; \
18872 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
18873 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18874 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
18875 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
18876 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
18877 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
18878 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
18879 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
18880 LD="$(LD_FOR_TARGET)"; export LD; \
18881 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
18882 NM="$(NM_FOR_TARGET)"; export NM; \
18883 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
18884 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
18885 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
18886 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
18887 case $(srcdir) in \
18888 /* | [A-Za-z]:[\\/]*) \
18889 topdir=$(srcdir) ;; \
18890 *) \
18891 case "$(TARGET_SUBDIR)" in \
18892 .) topdir="../$(srcdir)" ;; \
18893 *) topdir="../../$(srcdir)" ;; \
18894 esac ;; \
18895 esac; \
18896 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
18897 libsrcdir="$$s/libstdc++-v3"; \
18898 rm -f no-such-file || : ; \
18899 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
18900 $(TARGET_CONFIGARGS) $${srcdiroption} \
18901 --with-target-subdir="$(TARGET_SUBDIR)" \
18902 || exit 1
18904 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
18905 maybe-all-target-libstdc++-v3:
18906 all-target-libstdc++-v3: configure-target-libstdc++-v3
18907 @r=`${PWD_COMMAND}`; export r; \
18908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18909 $(SET_LIB_PATH) \
18910 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18911 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
18913 .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
18914 maybe-check-target-libstdc++-v3:
18916 check-target-libstdc++-v3:
18917 @r=`${PWD_COMMAND}`; export r; \
18918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18919 $(SET_LIB_PATH) \
18920 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18921 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
18924 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
18925 maybe-install-target-libstdc++-v3:
18927 install-target-libstdc++-v3: installdirs
18928 @r=`${PWD_COMMAND}`; export r; \
18929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18930 $(SET_LIB_PATH) \
18931 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18932 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
18935 # Other targets (info, dvi, etc.)
18937 .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
18938 maybe-info-target-libstdc++-v3:
18940 info-target-libstdc++-v3: \
18941 configure-target-libstdc++-v3
18942 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18943 r=`${PWD_COMMAND}`; export r; \
18944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18945 $(SET_LIB_PATH) \
18946 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18947 for flag in $(EXTRA_TARGET_FLAGS); do \
18948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18949 done; \
18950 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18953 "RANLIB=$${RANLIB}" \
18954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18955 info) \
18956 || exit 1
18959 .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
18960 maybe-dvi-target-libstdc++-v3:
18962 dvi-target-libstdc++-v3: \
18963 configure-target-libstdc++-v3
18964 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18965 r=`${PWD_COMMAND}`; export r; \
18966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18967 $(SET_LIB_PATH) \
18968 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18969 for flag in $(EXTRA_TARGET_FLAGS); do \
18970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18971 done; \
18972 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18975 "RANLIB=$${RANLIB}" \
18976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18977 dvi) \
18978 || exit 1
18981 .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
18982 maybe-TAGS-target-libstdc++-v3:
18984 TAGS-target-libstdc++-v3: \
18985 configure-target-libstdc++-v3
18986 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
18987 r=`${PWD_COMMAND}`; export r; \
18988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18989 $(SET_LIB_PATH) \
18990 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
18991 for flag in $(EXTRA_TARGET_FLAGS); do \
18992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18993 done; \
18994 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
18995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18997 "RANLIB=$${RANLIB}" \
18998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18999 TAGS) \
19000 || exit 1
19003 .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
19004 maybe-install-info-target-libstdc++-v3:
19006 install-info-target-libstdc++-v3: \
19007 configure-target-libstdc++-v3 \
19008 info-target-libstdc++-v3
19009 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19010 r=`${PWD_COMMAND}`; export r; \
19011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19012 $(SET_LIB_PATH) \
19013 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19014 for flag in $(EXTRA_TARGET_FLAGS); do \
19015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19016 done; \
19017 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19020 "RANLIB=$${RANLIB}" \
19021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19022 install-info) \
19023 || exit 1
19026 .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
19027 maybe-installcheck-target-libstdc++-v3:
19029 installcheck-target-libstdc++-v3: \
19030 configure-target-libstdc++-v3
19031 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19032 r=`${PWD_COMMAND}`; export r; \
19033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19034 $(SET_LIB_PATH) \
19035 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19036 for flag in $(EXTRA_TARGET_FLAGS); do \
19037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19038 done; \
19039 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19042 "RANLIB=$${RANLIB}" \
19043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19044 installcheck) \
19045 || exit 1
19048 .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
19049 maybe-mostlyclean-target-libstdc++-v3:
19051 mostlyclean-target-libstdc++-v3:
19052 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19053 r=`${PWD_COMMAND}`; export r; \
19054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19055 $(SET_LIB_PATH) \
19056 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19057 for flag in $(EXTRA_TARGET_FLAGS); do \
19058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19059 done; \
19060 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19063 "RANLIB=$${RANLIB}" \
19064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19065 mostlyclean) \
19066 || exit 1
19069 .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
19070 maybe-clean-target-libstdc++-v3:
19072 clean-target-libstdc++-v3:
19073 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19074 r=`${PWD_COMMAND}`; export r; \
19075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19076 $(SET_LIB_PATH) \
19077 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19078 for flag in $(EXTRA_TARGET_FLAGS); do \
19079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19080 done; \
19081 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19084 "RANLIB=$${RANLIB}" \
19085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19086 clean) \
19087 || exit 1
19090 .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
19091 maybe-distclean-target-libstdc++-v3:
19093 distclean-target-libstdc++-v3:
19094 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19095 r=`${PWD_COMMAND}`; export r; \
19096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19097 $(SET_LIB_PATH) \
19098 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19099 for flag in $(EXTRA_TARGET_FLAGS); do \
19100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19101 done; \
19102 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19105 "RANLIB=$${RANLIB}" \
19106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19107 distclean) \
19108 || exit 1
19111 .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
19112 maybe-maintainer-clean-target-libstdc++-v3:
19114 maintainer-clean-target-libstdc++-v3:
19115 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19116 r=`${PWD_COMMAND}`; export r; \
19117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19118 $(SET_LIB_PATH) \
19119 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19120 for flag in $(EXTRA_TARGET_FLAGS); do \
19121 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19122 done; \
19123 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19126 "RANLIB=$${RANLIB}" \
19127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19128 maintainer-clean) \
19129 || exit 1
19133 .PHONY: configure-target-newlib maybe-configure-target-newlib
19134 maybe-configure-target-newlib:
19136 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19137 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
19138 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19139 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
19140 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
19142 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
19143 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
19144 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19145 r=`${PWD_COMMAND}`; export r; \
19146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19147 $(SET_LIB_PATH) \
19148 AR="$(AR_FOR_TARGET)"; export AR; \
19149 AS="$(AS_FOR_TARGET)"; export AS; \
19150 CC="$(CC_FOR_TARGET)"; export CC; \
19151 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19152 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19153 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19154 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19155 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19156 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19157 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19158 LD="$(LD_FOR_TARGET)"; export LD; \
19159 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19160 NM="$(NM_FOR_TARGET)"; export NM; \
19161 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19162 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19163 echo Configuring in $(TARGET_SUBDIR)/newlib; \
19164 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
19165 case $(srcdir) in \
19166 /* | [A-Za-z]:[\\/]*) \
19167 topdir=$(srcdir) ;; \
19168 *) \
19169 case "$(TARGET_SUBDIR)" in \
19170 .) topdir="../$(srcdir)" ;; \
19171 *) topdir="../../$(srcdir)" ;; \
19172 esac ;; \
19173 esac; \
19174 srcdiroption="--srcdir=$${topdir}/newlib"; \
19175 libsrcdir="$$s/newlib"; \
19176 rm -f no-such-file || : ; \
19177 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19178 $(TARGET_CONFIGARGS) $${srcdiroption} \
19179 --with-target-subdir="$(TARGET_SUBDIR)" \
19180 || exit 1
19182 .PHONY: all-target-newlib maybe-all-target-newlib
19183 maybe-all-target-newlib:
19184 all-target-newlib: configure-target-newlib
19185 @r=`${PWD_COMMAND}`; export r; \
19186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19187 $(SET_LIB_PATH) \
19188 (cd $(TARGET_SUBDIR)/newlib && \
19189 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19191 .PHONY: check-target-newlib maybe-check-target-newlib
19192 maybe-check-target-newlib:
19194 check-target-newlib:
19195 @r=`${PWD_COMMAND}`; export r; \
19196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19197 $(SET_LIB_PATH) \
19198 (cd $(TARGET_SUBDIR)/newlib && \
19199 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19202 .PHONY: install-target-newlib maybe-install-target-newlib
19203 maybe-install-target-newlib:
19205 install-target-newlib: installdirs
19206 @r=`${PWD_COMMAND}`; export r; \
19207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19208 $(SET_LIB_PATH) \
19209 (cd $(TARGET_SUBDIR)/newlib && \
19210 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19213 # Other targets (info, dvi, etc.)
19215 .PHONY: maybe-info-target-newlib info-target-newlib
19216 maybe-info-target-newlib:
19218 info-target-newlib: \
19219 configure-target-newlib
19220 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19221 r=`${PWD_COMMAND}`; export r; \
19222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19223 $(SET_LIB_PATH) \
19224 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
19225 for flag in $(EXTRA_TARGET_FLAGS); do \
19226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19227 done; \
19228 (cd $(TARGET_SUBDIR)/newlib && \
19229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19231 "RANLIB=$${RANLIB}" \
19232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19233 info) \
19234 || exit 1
19237 .PHONY: maybe-dvi-target-newlib dvi-target-newlib
19238 maybe-dvi-target-newlib:
19240 dvi-target-newlib: \
19241 configure-target-newlib
19242 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19243 r=`${PWD_COMMAND}`; export r; \
19244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19245 $(SET_LIB_PATH) \
19246 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
19247 for flag in $(EXTRA_TARGET_FLAGS); do \
19248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19249 done; \
19250 (cd $(TARGET_SUBDIR)/newlib && \
19251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19253 "RANLIB=$${RANLIB}" \
19254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19255 dvi) \
19256 || exit 1
19259 .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
19260 maybe-TAGS-target-newlib:
19262 TAGS-target-newlib: \
19263 configure-target-newlib
19264 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19265 r=`${PWD_COMMAND}`; export r; \
19266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19267 $(SET_LIB_PATH) \
19268 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
19269 for flag in $(EXTRA_TARGET_FLAGS); do \
19270 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19271 done; \
19272 (cd $(TARGET_SUBDIR)/newlib && \
19273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19275 "RANLIB=$${RANLIB}" \
19276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19277 TAGS) \
19278 || exit 1
19281 .PHONY: maybe-install-info-target-newlib install-info-target-newlib
19282 maybe-install-info-target-newlib:
19284 install-info-target-newlib: \
19285 configure-target-newlib \
19286 info-target-newlib
19287 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19288 r=`${PWD_COMMAND}`; export r; \
19289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19290 $(SET_LIB_PATH) \
19291 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
19292 for flag in $(EXTRA_TARGET_FLAGS); do \
19293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19294 done; \
19295 (cd $(TARGET_SUBDIR)/newlib && \
19296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19298 "RANLIB=$${RANLIB}" \
19299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19300 install-info) \
19301 || exit 1
19304 .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
19305 maybe-installcheck-target-newlib:
19307 installcheck-target-newlib: \
19308 configure-target-newlib
19309 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19310 r=`${PWD_COMMAND}`; export r; \
19311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19312 $(SET_LIB_PATH) \
19313 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
19314 for flag in $(EXTRA_TARGET_FLAGS); do \
19315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19316 done; \
19317 (cd $(TARGET_SUBDIR)/newlib && \
19318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19320 "RANLIB=$${RANLIB}" \
19321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19322 installcheck) \
19323 || exit 1
19326 .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
19327 maybe-mostlyclean-target-newlib:
19329 mostlyclean-target-newlib:
19330 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19331 r=`${PWD_COMMAND}`; export r; \
19332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19333 $(SET_LIB_PATH) \
19334 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
19335 for flag in $(EXTRA_TARGET_FLAGS); do \
19336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19337 done; \
19338 (cd $(TARGET_SUBDIR)/newlib && \
19339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19341 "RANLIB=$${RANLIB}" \
19342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19343 mostlyclean) \
19344 || exit 1
19347 .PHONY: maybe-clean-target-newlib clean-target-newlib
19348 maybe-clean-target-newlib:
19350 clean-target-newlib:
19351 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19352 r=`${PWD_COMMAND}`; export r; \
19353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19354 $(SET_LIB_PATH) \
19355 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
19356 for flag in $(EXTRA_TARGET_FLAGS); do \
19357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19358 done; \
19359 (cd $(TARGET_SUBDIR)/newlib && \
19360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19362 "RANLIB=$${RANLIB}" \
19363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19364 clean) \
19365 || exit 1
19368 .PHONY: maybe-distclean-target-newlib distclean-target-newlib
19369 maybe-distclean-target-newlib:
19371 distclean-target-newlib:
19372 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19373 r=`${PWD_COMMAND}`; export r; \
19374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19375 $(SET_LIB_PATH) \
19376 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
19377 for flag in $(EXTRA_TARGET_FLAGS); do \
19378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19379 done; \
19380 (cd $(TARGET_SUBDIR)/newlib && \
19381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19383 "RANLIB=$${RANLIB}" \
19384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19385 distclean) \
19386 || exit 1
19389 .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
19390 maybe-maintainer-clean-target-newlib:
19392 maintainer-clean-target-newlib:
19393 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19394 r=`${PWD_COMMAND}`; export r; \
19395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19396 $(SET_LIB_PATH) \
19397 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
19398 for flag in $(EXTRA_TARGET_FLAGS); do \
19399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19400 done; \
19401 (cd $(TARGET_SUBDIR)/newlib && \
19402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19404 "RANLIB=$${RANLIB}" \
19405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19406 maintainer-clean) \
19407 || exit 1
19411 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
19412 maybe-configure-target-libf2c:
19414 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19415 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
19416 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
19417 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
19418 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
19420 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
19421 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
19422 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
19423 r=`${PWD_COMMAND}`; export r; \
19424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19425 $(SET_LIB_PATH) \
19426 AR="$(AR_FOR_TARGET)"; export AR; \
19427 AS="$(AS_FOR_TARGET)"; export AS; \
19428 CC="$(CC_FOR_TARGET)"; export CC; \
19429 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19430 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19431 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19432 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19433 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19434 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19435 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19436 LD="$(LD_FOR_TARGET)"; export LD; \
19437 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19438 NM="$(NM_FOR_TARGET)"; export NM; \
19439 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19440 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19441 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
19442 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
19443 case $(srcdir) in \
19444 /* | [A-Za-z]:[\\/]*) \
19445 topdir=$(srcdir) ;; \
19446 *) \
19447 case "$(TARGET_SUBDIR)" in \
19448 .) topdir="../$(srcdir)" ;; \
19449 *) topdir="../../$(srcdir)" ;; \
19450 esac ;; \
19451 esac; \
19452 srcdiroption="--srcdir=$${topdir}/libf2c"; \
19453 libsrcdir="$$s/libf2c"; \
19454 rm -f no-such-file || : ; \
19455 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19456 $(TARGET_CONFIGARGS) $${srcdiroption} \
19457 --with-target-subdir="$(TARGET_SUBDIR)" \
19458 || exit 1
19460 .PHONY: all-target-libf2c maybe-all-target-libf2c
19461 maybe-all-target-libf2c:
19462 all-target-libf2c: configure-target-libf2c
19463 @r=`${PWD_COMMAND}`; export r; \
19464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19465 $(SET_LIB_PATH) \
19466 (cd $(TARGET_SUBDIR)/libf2c && \
19467 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19469 .PHONY: check-target-libf2c maybe-check-target-libf2c
19470 maybe-check-target-libf2c:
19472 check-target-libf2c:
19473 @r=`${PWD_COMMAND}`; export r; \
19474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19475 $(SET_LIB_PATH) \
19476 (cd $(TARGET_SUBDIR)/libf2c && \
19477 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19480 .PHONY: install-target-libf2c maybe-install-target-libf2c
19481 maybe-install-target-libf2c:
19483 install-target-libf2c: installdirs
19484 @r=`${PWD_COMMAND}`; export r; \
19485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19486 $(SET_LIB_PATH) \
19487 (cd $(TARGET_SUBDIR)/libf2c && \
19488 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19491 # Other targets (info, dvi, etc.)
19493 .PHONY: maybe-info-target-libf2c info-target-libf2c
19494 maybe-info-target-libf2c:
19496 info-target-libf2c: \
19497 configure-target-libf2c
19498 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19499 r=`${PWD_COMMAND}`; export r; \
19500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19501 $(SET_LIB_PATH) \
19502 echo "Doing info in $(TARGET_SUBDIR)/libf2c" ; \
19503 for flag in $(EXTRA_TARGET_FLAGS); do \
19504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19505 done; \
19506 (cd $(TARGET_SUBDIR)/libf2c && \
19507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19509 "RANLIB=$${RANLIB}" \
19510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19511 info) \
19512 || exit 1
19515 .PHONY: maybe-dvi-target-libf2c dvi-target-libf2c
19516 maybe-dvi-target-libf2c:
19518 dvi-target-libf2c: \
19519 configure-target-libf2c
19520 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19521 r=`${PWD_COMMAND}`; export r; \
19522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19523 $(SET_LIB_PATH) \
19524 echo "Doing dvi in $(TARGET_SUBDIR)/libf2c" ; \
19525 for flag in $(EXTRA_TARGET_FLAGS); do \
19526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19527 done; \
19528 (cd $(TARGET_SUBDIR)/libf2c && \
19529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19531 "RANLIB=$${RANLIB}" \
19532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19533 dvi) \
19534 || exit 1
19537 .PHONY: maybe-TAGS-target-libf2c TAGS-target-libf2c
19538 maybe-TAGS-target-libf2c:
19540 TAGS-target-libf2c: \
19541 configure-target-libf2c
19542 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19543 r=`${PWD_COMMAND}`; export r; \
19544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19545 $(SET_LIB_PATH) \
19546 echo "Doing TAGS in $(TARGET_SUBDIR)/libf2c" ; \
19547 for flag in $(EXTRA_TARGET_FLAGS); do \
19548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19549 done; \
19550 (cd $(TARGET_SUBDIR)/libf2c && \
19551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19553 "RANLIB=$${RANLIB}" \
19554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19555 TAGS) \
19556 || exit 1
19559 .PHONY: maybe-install-info-target-libf2c install-info-target-libf2c
19560 maybe-install-info-target-libf2c:
19562 install-info-target-libf2c: \
19563 configure-target-libf2c \
19564 info-target-libf2c
19565 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19566 r=`${PWD_COMMAND}`; export r; \
19567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19568 $(SET_LIB_PATH) \
19569 echo "Doing install-info in $(TARGET_SUBDIR)/libf2c" ; \
19570 for flag in $(EXTRA_TARGET_FLAGS); do \
19571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19572 done; \
19573 (cd $(TARGET_SUBDIR)/libf2c && \
19574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19576 "RANLIB=$${RANLIB}" \
19577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19578 install-info) \
19579 || exit 1
19582 .PHONY: maybe-installcheck-target-libf2c installcheck-target-libf2c
19583 maybe-installcheck-target-libf2c:
19585 installcheck-target-libf2c: \
19586 configure-target-libf2c
19587 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19588 r=`${PWD_COMMAND}`; export r; \
19589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19590 $(SET_LIB_PATH) \
19591 echo "Doing installcheck in $(TARGET_SUBDIR)/libf2c" ; \
19592 for flag in $(EXTRA_TARGET_FLAGS); do \
19593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19594 done; \
19595 (cd $(TARGET_SUBDIR)/libf2c && \
19596 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19597 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19598 "RANLIB=$${RANLIB}" \
19599 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19600 installcheck) \
19601 || exit 1
19604 .PHONY: maybe-mostlyclean-target-libf2c mostlyclean-target-libf2c
19605 maybe-mostlyclean-target-libf2c:
19607 mostlyclean-target-libf2c:
19608 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19609 r=`${PWD_COMMAND}`; export r; \
19610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19611 $(SET_LIB_PATH) \
19612 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libf2c" ; \
19613 for flag in $(EXTRA_TARGET_FLAGS); do \
19614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19615 done; \
19616 (cd $(TARGET_SUBDIR)/libf2c && \
19617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19619 "RANLIB=$${RANLIB}" \
19620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19621 mostlyclean) \
19622 || exit 1
19625 .PHONY: maybe-clean-target-libf2c clean-target-libf2c
19626 maybe-clean-target-libf2c:
19628 clean-target-libf2c:
19629 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19630 r=`${PWD_COMMAND}`; export r; \
19631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19632 $(SET_LIB_PATH) \
19633 echo "Doing clean in $(TARGET_SUBDIR)/libf2c" ; \
19634 for flag in $(EXTRA_TARGET_FLAGS); do \
19635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19636 done; \
19637 (cd $(TARGET_SUBDIR)/libf2c && \
19638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19640 "RANLIB=$${RANLIB}" \
19641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19642 clean) \
19643 || exit 1
19646 .PHONY: maybe-distclean-target-libf2c distclean-target-libf2c
19647 maybe-distclean-target-libf2c:
19649 distclean-target-libf2c:
19650 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19651 r=`${PWD_COMMAND}`; export r; \
19652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19653 $(SET_LIB_PATH) \
19654 echo "Doing distclean in $(TARGET_SUBDIR)/libf2c" ; \
19655 for flag in $(EXTRA_TARGET_FLAGS); do \
19656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19657 done; \
19658 (cd $(TARGET_SUBDIR)/libf2c && \
19659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19661 "RANLIB=$${RANLIB}" \
19662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19663 distclean) \
19664 || exit 1
19667 .PHONY: maybe-maintainer-clean-target-libf2c maintainer-clean-target-libf2c
19668 maybe-maintainer-clean-target-libf2c:
19670 maintainer-clean-target-libf2c:
19671 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
19672 r=`${PWD_COMMAND}`; export r; \
19673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19674 $(SET_LIB_PATH) \
19675 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libf2c" ; \
19676 for flag in $(EXTRA_TARGET_FLAGS); do \
19677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19678 done; \
19679 (cd $(TARGET_SUBDIR)/libf2c && \
19680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19682 "RANLIB=$${RANLIB}" \
19683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19684 maintainer-clean) \
19685 || exit 1
19689 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
19690 maybe-configure-target-libobjc:
19692 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19693 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
19694 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
19695 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
19696 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
19698 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
19699 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
19700 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
19701 r=`${PWD_COMMAND}`; export r; \
19702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19703 $(SET_LIB_PATH) \
19704 AR="$(AR_FOR_TARGET)"; export AR; \
19705 AS="$(AS_FOR_TARGET)"; export AS; \
19706 CC="$(CC_FOR_TARGET)"; export CC; \
19707 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19708 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19709 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19710 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19711 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19712 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19713 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19714 LD="$(LD_FOR_TARGET)"; export LD; \
19715 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19716 NM="$(NM_FOR_TARGET)"; export NM; \
19717 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19718 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19719 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
19720 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
19721 case $(srcdir) in \
19722 /* | [A-Za-z]:[\\/]*) \
19723 topdir=$(srcdir) ;; \
19724 *) \
19725 case "$(TARGET_SUBDIR)" in \
19726 .) topdir="../$(srcdir)" ;; \
19727 *) topdir="../../$(srcdir)" ;; \
19728 esac ;; \
19729 esac; \
19730 srcdiroption="--srcdir=$${topdir}/libobjc"; \
19731 libsrcdir="$$s/libobjc"; \
19732 rm -f no-such-file || : ; \
19733 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19734 $(TARGET_CONFIGARGS) $${srcdiroption} \
19735 --with-target-subdir="$(TARGET_SUBDIR)" \
19736 || exit 1
19738 .PHONY: all-target-libobjc maybe-all-target-libobjc
19739 maybe-all-target-libobjc:
19740 all-target-libobjc: configure-target-libobjc
19741 @r=`${PWD_COMMAND}`; export r; \
19742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19743 $(SET_LIB_PATH) \
19744 (cd $(TARGET_SUBDIR)/libobjc && \
19745 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19747 .PHONY: check-target-libobjc maybe-check-target-libobjc
19748 maybe-check-target-libobjc:
19750 check-target-libobjc:
19751 @r=`${PWD_COMMAND}`; export r; \
19752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19753 $(SET_LIB_PATH) \
19754 (cd $(TARGET_SUBDIR)/libobjc && \
19755 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19758 .PHONY: install-target-libobjc maybe-install-target-libobjc
19759 maybe-install-target-libobjc:
19761 install-target-libobjc: installdirs
19762 @r=`${PWD_COMMAND}`; export r; \
19763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19764 $(SET_LIB_PATH) \
19765 (cd $(TARGET_SUBDIR)/libobjc && \
19766 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19769 # Other targets (info, dvi, etc.)
19771 .PHONY: maybe-info-target-libobjc info-target-libobjc
19772 maybe-info-target-libobjc:
19774 info-target-libobjc: \
19775 configure-target-libobjc
19776 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19777 r=`${PWD_COMMAND}`; export r; \
19778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19779 $(SET_LIB_PATH) \
19780 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
19781 for flag in $(EXTRA_TARGET_FLAGS); do \
19782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19783 done; \
19784 (cd $(TARGET_SUBDIR)/libobjc && \
19785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19787 "RANLIB=$${RANLIB}" \
19788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19789 info) \
19790 || exit 1
19793 .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
19794 maybe-dvi-target-libobjc:
19796 dvi-target-libobjc: \
19797 configure-target-libobjc
19798 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19799 r=`${PWD_COMMAND}`; export r; \
19800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19801 $(SET_LIB_PATH) \
19802 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
19803 for flag in $(EXTRA_TARGET_FLAGS); do \
19804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19805 done; \
19806 (cd $(TARGET_SUBDIR)/libobjc && \
19807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19809 "RANLIB=$${RANLIB}" \
19810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19811 dvi) \
19812 || exit 1
19815 .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
19816 maybe-TAGS-target-libobjc:
19818 TAGS-target-libobjc: \
19819 configure-target-libobjc
19820 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19821 r=`${PWD_COMMAND}`; export r; \
19822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19823 $(SET_LIB_PATH) \
19824 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
19825 for flag in $(EXTRA_TARGET_FLAGS); do \
19826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19827 done; \
19828 (cd $(TARGET_SUBDIR)/libobjc && \
19829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19831 "RANLIB=$${RANLIB}" \
19832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19833 TAGS) \
19834 || exit 1
19837 .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
19838 maybe-install-info-target-libobjc:
19840 install-info-target-libobjc: \
19841 configure-target-libobjc \
19842 info-target-libobjc
19843 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19844 r=`${PWD_COMMAND}`; export r; \
19845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19846 $(SET_LIB_PATH) \
19847 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
19848 for flag in $(EXTRA_TARGET_FLAGS); do \
19849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19850 done; \
19851 (cd $(TARGET_SUBDIR)/libobjc && \
19852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19854 "RANLIB=$${RANLIB}" \
19855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19856 install-info) \
19857 || exit 1
19860 .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
19861 maybe-installcheck-target-libobjc:
19863 installcheck-target-libobjc: \
19864 configure-target-libobjc
19865 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19866 r=`${PWD_COMMAND}`; export r; \
19867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19868 $(SET_LIB_PATH) \
19869 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
19870 for flag in $(EXTRA_TARGET_FLAGS); do \
19871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19872 done; \
19873 (cd $(TARGET_SUBDIR)/libobjc && \
19874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19876 "RANLIB=$${RANLIB}" \
19877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19878 installcheck) \
19879 || exit 1
19882 .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
19883 maybe-mostlyclean-target-libobjc:
19885 mostlyclean-target-libobjc:
19886 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19887 r=`${PWD_COMMAND}`; export r; \
19888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19889 $(SET_LIB_PATH) \
19890 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
19891 for flag in $(EXTRA_TARGET_FLAGS); do \
19892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19893 done; \
19894 (cd $(TARGET_SUBDIR)/libobjc && \
19895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19897 "RANLIB=$${RANLIB}" \
19898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19899 mostlyclean) \
19900 || exit 1
19903 .PHONY: maybe-clean-target-libobjc clean-target-libobjc
19904 maybe-clean-target-libobjc:
19906 clean-target-libobjc:
19907 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19908 r=`${PWD_COMMAND}`; export r; \
19909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19910 $(SET_LIB_PATH) \
19911 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
19912 for flag in $(EXTRA_TARGET_FLAGS); do \
19913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19914 done; \
19915 (cd $(TARGET_SUBDIR)/libobjc && \
19916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19918 "RANLIB=$${RANLIB}" \
19919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19920 clean) \
19921 || exit 1
19924 .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
19925 maybe-distclean-target-libobjc:
19927 distclean-target-libobjc:
19928 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19929 r=`${PWD_COMMAND}`; export r; \
19930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19931 $(SET_LIB_PATH) \
19932 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
19933 for flag in $(EXTRA_TARGET_FLAGS); do \
19934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19935 done; \
19936 (cd $(TARGET_SUBDIR)/libobjc && \
19937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19939 "RANLIB=$${RANLIB}" \
19940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19941 distclean) \
19942 || exit 1
19945 .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
19946 maybe-maintainer-clean-target-libobjc:
19948 maintainer-clean-target-libobjc:
19949 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
19950 r=`${PWD_COMMAND}`; export r; \
19951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19952 $(SET_LIB_PATH) \
19953 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
19954 for flag in $(EXTRA_TARGET_FLAGS); do \
19955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19956 done; \
19957 (cd $(TARGET_SUBDIR)/libobjc && \
19958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19960 "RANLIB=$${RANLIB}" \
19961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19962 maintainer-clean) \
19963 || exit 1
19967 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
19968 maybe-configure-target-libtermcap:
19970 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19971 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
19972 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
19973 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
19974 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
19976 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
19977 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
19978 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
19979 r=`${PWD_COMMAND}`; export r; \
19980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19981 $(SET_LIB_PATH) \
19982 AR="$(AR_FOR_TARGET)"; export AR; \
19983 AS="$(AS_FOR_TARGET)"; export AS; \
19984 CC="$(CC_FOR_TARGET)"; export CC; \
19985 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19986 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19987 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19988 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19989 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19990 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19991 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19992 LD="$(LD_FOR_TARGET)"; export LD; \
19993 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19994 NM="$(NM_FOR_TARGET)"; export NM; \
19995 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19996 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19997 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
19998 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
19999 case $(srcdir) in \
20000 /* | [A-Za-z]:[\\/]*) \
20001 topdir=$(srcdir) ;; \
20002 *) \
20003 case "$(TARGET_SUBDIR)" in \
20004 .) topdir="../$(srcdir)" ;; \
20005 *) topdir="../../$(srcdir)" ;; \
20006 esac ;; \
20007 esac; \
20008 if [ "$(srcdir)" = "." ] ; then \
20009 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
20010 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
20011 if [ -f Makefile ]; then \
20012 if $(MAKE) distclean; then \
20013 true; \
20014 else \
20015 exit 1; \
20016 fi; \
20017 else \
20018 true; \
20019 fi; \
20020 else \
20021 exit 1; \
20022 fi; \
20023 else \
20024 true; \
20025 fi; \
20026 srcdiroption="--srcdir=."; \
20027 libsrcdir="."; \
20028 else \
20029 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
20030 libsrcdir="$$s/libtermcap"; \
20031 fi; \
20032 rm -f no-such-file || : ; \
20033 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20034 $(TARGET_CONFIGARGS) $${srcdiroption} \
20035 --with-target-subdir="$(TARGET_SUBDIR)" \
20036 || exit 1
20038 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
20039 maybe-all-target-libtermcap:
20040 all-target-libtermcap: configure-target-libtermcap
20041 @r=`${PWD_COMMAND}`; export r; \
20042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20043 $(SET_LIB_PATH) \
20044 (cd $(TARGET_SUBDIR)/libtermcap && \
20045 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20047 .PHONY: check-target-libtermcap maybe-check-target-libtermcap
20048 maybe-check-target-libtermcap:
20050 # Dummy target for uncheckable module.
20051 check-target-libtermcap:
20054 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
20055 maybe-install-target-libtermcap:
20057 install-target-libtermcap: installdirs
20058 @r=`${PWD_COMMAND}`; export r; \
20059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20060 $(SET_LIB_PATH) \
20061 (cd $(TARGET_SUBDIR)/libtermcap && \
20062 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20065 # Other targets (info, dvi, etc.)
20067 .PHONY: maybe-info-target-libtermcap info-target-libtermcap
20068 maybe-info-target-libtermcap:
20070 info-target-libtermcap: \
20071 configure-target-libtermcap
20072 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20073 r=`${PWD_COMMAND}`; export r; \
20074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20075 $(SET_LIB_PATH) \
20076 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
20077 for flag in $(EXTRA_TARGET_FLAGS); do \
20078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20079 done; \
20080 (cd $(TARGET_SUBDIR)/libtermcap && \
20081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20083 "RANLIB=$${RANLIB}" \
20084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20085 info) \
20086 || exit 1
20089 .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
20090 maybe-dvi-target-libtermcap:
20092 dvi-target-libtermcap: \
20093 configure-target-libtermcap
20094 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20095 r=`${PWD_COMMAND}`; export r; \
20096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20097 $(SET_LIB_PATH) \
20098 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
20099 for flag in $(EXTRA_TARGET_FLAGS); do \
20100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20101 done; \
20102 (cd $(TARGET_SUBDIR)/libtermcap && \
20103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20105 "RANLIB=$${RANLIB}" \
20106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20107 dvi) \
20108 || exit 1
20111 .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
20112 maybe-TAGS-target-libtermcap:
20114 TAGS-target-libtermcap: \
20115 configure-target-libtermcap
20116 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20117 r=`${PWD_COMMAND}`; export r; \
20118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20119 $(SET_LIB_PATH) \
20120 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
20121 for flag in $(EXTRA_TARGET_FLAGS); do \
20122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20123 done; \
20124 (cd $(TARGET_SUBDIR)/libtermcap && \
20125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20127 "RANLIB=$${RANLIB}" \
20128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20129 TAGS) \
20130 || exit 1
20133 .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
20134 maybe-install-info-target-libtermcap:
20136 install-info-target-libtermcap: \
20137 configure-target-libtermcap \
20138 info-target-libtermcap
20139 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20140 r=`${PWD_COMMAND}`; export r; \
20141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20142 $(SET_LIB_PATH) \
20143 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
20144 for flag in $(EXTRA_TARGET_FLAGS); do \
20145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20146 done; \
20147 (cd $(TARGET_SUBDIR)/libtermcap && \
20148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20150 "RANLIB=$${RANLIB}" \
20151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20152 install-info) \
20153 || exit 1
20156 .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
20157 maybe-installcheck-target-libtermcap:
20159 installcheck-target-libtermcap: \
20160 configure-target-libtermcap
20161 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
20162 r=`${PWD_COMMAND}`; export r; \
20163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20164 $(SET_LIB_PATH) \
20165 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
20166 for flag in $(EXTRA_TARGET_FLAGS); do \
20167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20168 done; \
20169 (cd $(TARGET_SUBDIR)/libtermcap && \
20170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20172 "RANLIB=$${RANLIB}" \
20173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20174 installcheck) \
20175 || exit 1
20178 .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
20179 maybe-mostlyclean-target-libtermcap:
20181 # libtermcap doesn't support mostlyclean.
20182 mostlyclean-target-libtermcap:
20185 .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
20186 maybe-clean-target-libtermcap:
20188 # libtermcap doesn't support clean.
20189 clean-target-libtermcap:
20192 .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
20193 maybe-distclean-target-libtermcap:
20195 # libtermcap doesn't support distclean.
20196 distclean-target-libtermcap:
20199 .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
20200 maybe-maintainer-clean-target-libtermcap:
20202 # libtermcap doesn't support maintainer-clean.
20203 maintainer-clean-target-libtermcap:
20207 .PHONY: configure-target-winsup maybe-configure-target-winsup
20208 maybe-configure-target-winsup:
20210 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20211 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
20212 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
20213 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
20214 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
20216 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
20217 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
20218 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
20219 r=`${PWD_COMMAND}`; export r; \
20220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20221 $(SET_LIB_PATH) \
20222 AR="$(AR_FOR_TARGET)"; export AR; \
20223 AS="$(AS_FOR_TARGET)"; export AS; \
20224 CC="$(CC_FOR_TARGET)"; export CC; \
20225 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20226 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20227 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20228 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20229 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20230 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20231 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20232 LD="$(LD_FOR_TARGET)"; export LD; \
20233 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20234 NM="$(NM_FOR_TARGET)"; export NM; \
20235 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20236 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20237 echo Configuring in $(TARGET_SUBDIR)/winsup; \
20238 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
20239 case $(srcdir) in \
20240 /* | [A-Za-z]:[\\/]*) \
20241 topdir=$(srcdir) ;; \
20242 *) \
20243 case "$(TARGET_SUBDIR)" in \
20244 .) topdir="../$(srcdir)" ;; \
20245 *) topdir="../../$(srcdir)" ;; \
20246 esac ;; \
20247 esac; \
20248 srcdiroption="--srcdir=$${topdir}/winsup"; \
20249 libsrcdir="$$s/winsup"; \
20250 rm -f no-such-file || : ; \
20251 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20252 $(TARGET_CONFIGARGS) $${srcdiroption} \
20253 --with-target-subdir="$(TARGET_SUBDIR)" \
20254 || exit 1
20256 .PHONY: all-target-winsup maybe-all-target-winsup
20257 maybe-all-target-winsup:
20258 all-target-winsup: configure-target-winsup
20259 @r=`${PWD_COMMAND}`; export r; \
20260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20261 $(SET_LIB_PATH) \
20262 (cd $(TARGET_SUBDIR)/winsup && \
20263 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20265 .PHONY: check-target-winsup maybe-check-target-winsup
20266 maybe-check-target-winsup:
20268 check-target-winsup:
20269 @r=`${PWD_COMMAND}`; export r; \
20270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20271 $(SET_LIB_PATH) \
20272 (cd $(TARGET_SUBDIR)/winsup && \
20273 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20276 .PHONY: install-target-winsup maybe-install-target-winsup
20277 maybe-install-target-winsup:
20279 install-target-winsup: installdirs
20280 @r=`${PWD_COMMAND}`; export r; \
20281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20282 $(SET_LIB_PATH) \
20283 (cd $(TARGET_SUBDIR)/winsup && \
20284 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20287 # Other targets (info, dvi, etc.)
20289 .PHONY: maybe-info-target-winsup info-target-winsup
20290 maybe-info-target-winsup:
20292 info-target-winsup: \
20293 configure-target-winsup
20294 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20295 r=`${PWD_COMMAND}`; export r; \
20296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20297 $(SET_LIB_PATH) \
20298 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
20299 for flag in $(EXTRA_TARGET_FLAGS); do \
20300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20301 done; \
20302 (cd $(TARGET_SUBDIR)/winsup && \
20303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20305 "RANLIB=$${RANLIB}" \
20306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20307 info) \
20308 || exit 1
20311 .PHONY: maybe-dvi-target-winsup dvi-target-winsup
20312 maybe-dvi-target-winsup:
20314 dvi-target-winsup: \
20315 configure-target-winsup
20316 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20317 r=`${PWD_COMMAND}`; export r; \
20318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20319 $(SET_LIB_PATH) \
20320 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
20321 for flag in $(EXTRA_TARGET_FLAGS); do \
20322 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20323 done; \
20324 (cd $(TARGET_SUBDIR)/winsup && \
20325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20327 "RANLIB=$${RANLIB}" \
20328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20329 dvi) \
20330 || exit 1
20333 .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
20334 maybe-TAGS-target-winsup:
20336 TAGS-target-winsup: \
20337 configure-target-winsup
20338 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20339 r=`${PWD_COMMAND}`; export r; \
20340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20341 $(SET_LIB_PATH) \
20342 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
20343 for flag in $(EXTRA_TARGET_FLAGS); do \
20344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20345 done; \
20346 (cd $(TARGET_SUBDIR)/winsup && \
20347 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20348 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20349 "RANLIB=$${RANLIB}" \
20350 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20351 TAGS) \
20352 || exit 1
20355 .PHONY: maybe-install-info-target-winsup install-info-target-winsup
20356 maybe-install-info-target-winsup:
20358 install-info-target-winsup: \
20359 configure-target-winsup \
20360 info-target-winsup
20361 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20362 r=`${PWD_COMMAND}`; export r; \
20363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20364 $(SET_LIB_PATH) \
20365 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
20366 for flag in $(EXTRA_TARGET_FLAGS); do \
20367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20368 done; \
20369 (cd $(TARGET_SUBDIR)/winsup && \
20370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20372 "RANLIB=$${RANLIB}" \
20373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20374 install-info) \
20375 || exit 1
20378 .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
20379 maybe-installcheck-target-winsup:
20381 installcheck-target-winsup: \
20382 configure-target-winsup
20383 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20384 r=`${PWD_COMMAND}`; export r; \
20385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20386 $(SET_LIB_PATH) \
20387 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
20388 for flag in $(EXTRA_TARGET_FLAGS); do \
20389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20390 done; \
20391 (cd $(TARGET_SUBDIR)/winsup && \
20392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20394 "RANLIB=$${RANLIB}" \
20395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20396 installcheck) \
20397 || exit 1
20400 .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
20401 maybe-mostlyclean-target-winsup:
20403 mostlyclean-target-winsup:
20404 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20405 r=`${PWD_COMMAND}`; export r; \
20406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20407 $(SET_LIB_PATH) \
20408 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
20409 for flag in $(EXTRA_TARGET_FLAGS); do \
20410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20411 done; \
20412 (cd $(TARGET_SUBDIR)/winsup && \
20413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20415 "RANLIB=$${RANLIB}" \
20416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20417 mostlyclean) \
20418 || exit 1
20421 .PHONY: maybe-clean-target-winsup clean-target-winsup
20422 maybe-clean-target-winsup:
20424 clean-target-winsup:
20425 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20426 r=`${PWD_COMMAND}`; export r; \
20427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20428 $(SET_LIB_PATH) \
20429 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
20430 for flag in $(EXTRA_TARGET_FLAGS); do \
20431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20432 done; \
20433 (cd $(TARGET_SUBDIR)/winsup && \
20434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20436 "RANLIB=$${RANLIB}" \
20437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20438 clean) \
20439 || exit 1
20442 .PHONY: maybe-distclean-target-winsup distclean-target-winsup
20443 maybe-distclean-target-winsup:
20445 distclean-target-winsup:
20446 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20447 r=`${PWD_COMMAND}`; export r; \
20448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20449 $(SET_LIB_PATH) \
20450 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
20451 for flag in $(EXTRA_TARGET_FLAGS); do \
20452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20453 done; \
20454 (cd $(TARGET_SUBDIR)/winsup && \
20455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20457 "RANLIB=$${RANLIB}" \
20458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20459 distclean) \
20460 || exit 1
20463 .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
20464 maybe-maintainer-clean-target-winsup:
20466 maintainer-clean-target-winsup:
20467 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
20468 r=`${PWD_COMMAND}`; export r; \
20469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20470 $(SET_LIB_PATH) \
20471 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
20472 for flag in $(EXTRA_TARGET_FLAGS); do \
20473 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20474 done; \
20475 (cd $(TARGET_SUBDIR)/winsup && \
20476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20478 "RANLIB=$${RANLIB}" \
20479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20480 maintainer-clean) \
20481 || exit 1
20485 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
20486 maybe-configure-target-libgloss:
20488 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20489 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
20490 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
20491 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
20492 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
20494 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
20495 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
20496 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
20497 r=`${PWD_COMMAND}`; export r; \
20498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20499 $(SET_LIB_PATH) \
20500 AR="$(AR_FOR_TARGET)"; export AR; \
20501 AS="$(AS_FOR_TARGET)"; export AS; \
20502 CC="$(CC_FOR_TARGET)"; export CC; \
20503 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20504 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20505 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20506 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20507 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20508 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20509 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20510 LD="$(LD_FOR_TARGET)"; export LD; \
20511 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20512 NM="$(NM_FOR_TARGET)"; export NM; \
20513 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20514 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20515 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
20516 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
20517 case $(srcdir) in \
20518 /* | [A-Za-z]:[\\/]*) \
20519 topdir=$(srcdir) ;; \
20520 *) \
20521 case "$(TARGET_SUBDIR)" in \
20522 .) topdir="../$(srcdir)" ;; \
20523 *) topdir="../../$(srcdir)" ;; \
20524 esac ;; \
20525 esac; \
20526 srcdiroption="--srcdir=$${topdir}/libgloss"; \
20527 libsrcdir="$$s/libgloss"; \
20528 rm -f no-such-file || : ; \
20529 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20530 $(TARGET_CONFIGARGS) $${srcdiroption} \
20531 --with-target-subdir="$(TARGET_SUBDIR)" \
20532 || exit 1
20534 .PHONY: all-target-libgloss maybe-all-target-libgloss
20535 maybe-all-target-libgloss:
20536 all-target-libgloss: configure-target-libgloss
20537 @r=`${PWD_COMMAND}`; export r; \
20538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20539 $(SET_LIB_PATH) \
20540 (cd $(TARGET_SUBDIR)/libgloss && \
20541 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20543 .PHONY: check-target-libgloss maybe-check-target-libgloss
20544 maybe-check-target-libgloss:
20546 # Dummy target for uncheckable module.
20547 check-target-libgloss:
20550 .PHONY: install-target-libgloss maybe-install-target-libgloss
20551 maybe-install-target-libgloss:
20553 install-target-libgloss: installdirs
20554 @r=`${PWD_COMMAND}`; export r; \
20555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20556 $(SET_LIB_PATH) \
20557 (cd $(TARGET_SUBDIR)/libgloss && \
20558 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20561 # Other targets (info, dvi, etc.)
20563 .PHONY: maybe-info-target-libgloss info-target-libgloss
20564 maybe-info-target-libgloss:
20566 info-target-libgloss: \
20567 configure-target-libgloss
20568 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20569 r=`${PWD_COMMAND}`; export r; \
20570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20571 $(SET_LIB_PATH) \
20572 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
20573 for flag in $(EXTRA_TARGET_FLAGS); do \
20574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20575 done; \
20576 (cd $(TARGET_SUBDIR)/libgloss && \
20577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20579 "RANLIB=$${RANLIB}" \
20580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20581 info) \
20582 || exit 1
20585 .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
20586 maybe-dvi-target-libgloss:
20588 dvi-target-libgloss: \
20589 configure-target-libgloss
20590 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20591 r=`${PWD_COMMAND}`; export r; \
20592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20593 $(SET_LIB_PATH) \
20594 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
20595 for flag in $(EXTRA_TARGET_FLAGS); do \
20596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20597 done; \
20598 (cd $(TARGET_SUBDIR)/libgloss && \
20599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20601 "RANLIB=$${RANLIB}" \
20602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20603 dvi) \
20604 || exit 1
20607 .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
20608 maybe-TAGS-target-libgloss:
20610 TAGS-target-libgloss: \
20611 configure-target-libgloss
20612 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20613 r=`${PWD_COMMAND}`; export r; \
20614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20615 $(SET_LIB_PATH) \
20616 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
20617 for flag in $(EXTRA_TARGET_FLAGS); do \
20618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20619 done; \
20620 (cd $(TARGET_SUBDIR)/libgloss && \
20621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20623 "RANLIB=$${RANLIB}" \
20624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20625 TAGS) \
20626 || exit 1
20629 .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
20630 maybe-install-info-target-libgloss:
20632 install-info-target-libgloss: \
20633 configure-target-libgloss \
20634 info-target-libgloss
20635 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20636 r=`${PWD_COMMAND}`; export r; \
20637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20638 $(SET_LIB_PATH) \
20639 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
20640 for flag in $(EXTRA_TARGET_FLAGS); do \
20641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20642 done; \
20643 (cd $(TARGET_SUBDIR)/libgloss && \
20644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20646 "RANLIB=$${RANLIB}" \
20647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20648 install-info) \
20649 || exit 1
20652 .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
20653 maybe-installcheck-target-libgloss:
20655 installcheck-target-libgloss: \
20656 configure-target-libgloss
20657 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20658 r=`${PWD_COMMAND}`; export r; \
20659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20660 $(SET_LIB_PATH) \
20661 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
20662 for flag in $(EXTRA_TARGET_FLAGS); do \
20663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20664 done; \
20665 (cd $(TARGET_SUBDIR)/libgloss && \
20666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20668 "RANLIB=$${RANLIB}" \
20669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20670 installcheck) \
20671 || exit 1
20674 .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
20675 maybe-mostlyclean-target-libgloss:
20677 mostlyclean-target-libgloss:
20678 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20679 r=`${PWD_COMMAND}`; export r; \
20680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20681 $(SET_LIB_PATH) \
20682 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
20683 for flag in $(EXTRA_TARGET_FLAGS); do \
20684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20685 done; \
20686 (cd $(TARGET_SUBDIR)/libgloss && \
20687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20689 "RANLIB=$${RANLIB}" \
20690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20691 mostlyclean) \
20692 || exit 1
20695 .PHONY: maybe-clean-target-libgloss clean-target-libgloss
20696 maybe-clean-target-libgloss:
20698 clean-target-libgloss:
20699 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20700 r=`${PWD_COMMAND}`; export r; \
20701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20702 $(SET_LIB_PATH) \
20703 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
20704 for flag in $(EXTRA_TARGET_FLAGS); do \
20705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20706 done; \
20707 (cd $(TARGET_SUBDIR)/libgloss && \
20708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20710 "RANLIB=$${RANLIB}" \
20711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20712 clean) \
20713 || exit 1
20716 .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
20717 maybe-distclean-target-libgloss:
20719 distclean-target-libgloss:
20720 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20721 r=`${PWD_COMMAND}`; export r; \
20722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20723 $(SET_LIB_PATH) \
20724 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
20725 for flag in $(EXTRA_TARGET_FLAGS); do \
20726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20727 done; \
20728 (cd $(TARGET_SUBDIR)/libgloss && \
20729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20731 "RANLIB=$${RANLIB}" \
20732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20733 distclean) \
20734 || exit 1
20737 .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
20738 maybe-maintainer-clean-target-libgloss:
20740 maintainer-clean-target-libgloss:
20741 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
20742 r=`${PWD_COMMAND}`; export r; \
20743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20744 $(SET_LIB_PATH) \
20745 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
20746 for flag in $(EXTRA_TARGET_FLAGS); do \
20747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20748 done; \
20749 (cd $(TARGET_SUBDIR)/libgloss && \
20750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20752 "RANLIB=$${RANLIB}" \
20753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20754 maintainer-clean) \
20755 || exit 1
20759 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
20760 maybe-configure-target-libiberty:
20762 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20763 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
20764 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
20765 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
20766 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
20768 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
20769 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
20770 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
20771 r=`${PWD_COMMAND}`; export r; \
20772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20773 $(SET_LIB_PATH) \
20774 AR="$(AR_FOR_TARGET)"; export AR; \
20775 AS="$(AS_FOR_TARGET)"; export AS; \
20776 CC="$(CC_FOR_TARGET)"; export CC; \
20777 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20778 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20779 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20780 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20781 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20782 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20783 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20784 LD="$(LD_FOR_TARGET)"; export LD; \
20785 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20786 NM="$(NM_FOR_TARGET)"; export NM; \
20787 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20788 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20789 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
20790 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
20791 case $(srcdir) in \
20792 /* | [A-Za-z]:[\\/]*) \
20793 topdir=$(srcdir) ;; \
20794 *) \
20795 case "$(TARGET_SUBDIR)" in \
20796 .) topdir="../$(srcdir)" ;; \
20797 *) topdir="../../$(srcdir)" ;; \
20798 esac ;; \
20799 esac; \
20800 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20801 libsrcdir="$$s/libiberty"; \
20802 rm -f no-such-file || : ; \
20803 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20804 $(TARGET_CONFIGARGS) $${srcdiroption} \
20805 --with-target-subdir="$(TARGET_SUBDIR)" \
20806 || exit 1
20808 .PHONY: all-target-libiberty maybe-all-target-libiberty
20809 maybe-all-target-libiberty:
20810 all-target-libiberty: configure-target-libiberty
20811 @r=`${PWD_COMMAND}`; export r; \
20812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20813 $(SET_LIB_PATH) \
20814 (cd $(TARGET_SUBDIR)/libiberty && \
20815 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20817 .PHONY: check-target-libiberty maybe-check-target-libiberty
20818 maybe-check-target-libiberty:
20820 check-target-libiberty:
20821 @r=`${PWD_COMMAND}`; export r; \
20822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20823 $(SET_LIB_PATH) \
20824 (cd $(TARGET_SUBDIR)/libiberty && \
20825 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20828 .PHONY: install-target-libiberty maybe-install-target-libiberty
20829 maybe-install-target-libiberty:
20831 install-target-libiberty: installdirs
20832 @r=`${PWD_COMMAND}`; export r; \
20833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20834 $(SET_LIB_PATH) \
20835 (cd $(TARGET_SUBDIR)/libiberty && \
20836 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20839 # Other targets (info, dvi, etc.)
20841 .PHONY: maybe-info-target-libiberty info-target-libiberty
20842 maybe-info-target-libiberty:
20844 info-target-libiberty: \
20845 configure-target-libiberty
20846 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20847 r=`${PWD_COMMAND}`; export r; \
20848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20849 $(SET_LIB_PATH) \
20850 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
20851 for flag in $(EXTRA_TARGET_FLAGS); do \
20852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20853 done; \
20854 (cd $(TARGET_SUBDIR)/libiberty && \
20855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20857 "RANLIB=$${RANLIB}" \
20858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20859 info) \
20860 || exit 1
20863 .PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
20864 maybe-dvi-target-libiberty:
20866 dvi-target-libiberty: \
20867 configure-target-libiberty
20868 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20869 r=`${PWD_COMMAND}`; export r; \
20870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20871 $(SET_LIB_PATH) \
20872 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
20873 for flag in $(EXTRA_TARGET_FLAGS); do \
20874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20875 done; \
20876 (cd $(TARGET_SUBDIR)/libiberty && \
20877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20879 "RANLIB=$${RANLIB}" \
20880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20881 dvi) \
20882 || exit 1
20885 .PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
20886 maybe-TAGS-target-libiberty:
20888 TAGS-target-libiberty: \
20889 configure-target-libiberty
20890 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20891 r=`${PWD_COMMAND}`; export r; \
20892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20893 $(SET_LIB_PATH) \
20894 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
20895 for flag in $(EXTRA_TARGET_FLAGS); do \
20896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20897 done; \
20898 (cd $(TARGET_SUBDIR)/libiberty && \
20899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20901 "RANLIB=$${RANLIB}" \
20902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20903 TAGS) \
20904 || exit 1
20907 .PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
20908 maybe-install-info-target-libiberty:
20910 install-info-target-libiberty: \
20911 configure-target-libiberty \
20912 info-target-libiberty
20913 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20914 r=`${PWD_COMMAND}`; export r; \
20915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20916 $(SET_LIB_PATH) \
20917 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
20918 for flag in $(EXTRA_TARGET_FLAGS); do \
20919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20920 done; \
20921 (cd $(TARGET_SUBDIR)/libiberty && \
20922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20924 "RANLIB=$${RANLIB}" \
20925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20926 install-info) \
20927 || exit 1
20930 .PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
20931 maybe-installcheck-target-libiberty:
20933 installcheck-target-libiberty: \
20934 configure-target-libiberty
20935 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20936 r=`${PWD_COMMAND}`; export r; \
20937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20938 $(SET_LIB_PATH) \
20939 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
20940 for flag in $(EXTRA_TARGET_FLAGS); do \
20941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20942 done; \
20943 (cd $(TARGET_SUBDIR)/libiberty && \
20944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20946 "RANLIB=$${RANLIB}" \
20947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20948 installcheck) \
20949 || exit 1
20952 .PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
20953 maybe-mostlyclean-target-libiberty:
20955 mostlyclean-target-libiberty:
20956 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20957 r=`${PWD_COMMAND}`; export r; \
20958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20959 $(SET_LIB_PATH) \
20960 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
20961 for flag in $(EXTRA_TARGET_FLAGS); do \
20962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20963 done; \
20964 (cd $(TARGET_SUBDIR)/libiberty && \
20965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20967 "RANLIB=$${RANLIB}" \
20968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20969 mostlyclean) \
20970 || exit 1
20973 .PHONY: maybe-clean-target-libiberty clean-target-libiberty
20974 maybe-clean-target-libiberty:
20976 clean-target-libiberty:
20977 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20978 r=`${PWD_COMMAND}`; export r; \
20979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20980 $(SET_LIB_PATH) \
20981 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
20982 for flag in $(EXTRA_TARGET_FLAGS); do \
20983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20984 done; \
20985 (cd $(TARGET_SUBDIR)/libiberty && \
20986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20988 "RANLIB=$${RANLIB}" \
20989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20990 clean) \
20991 || exit 1
20994 .PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
20995 maybe-distclean-target-libiberty:
20997 distclean-target-libiberty:
20998 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
20999 r=`${PWD_COMMAND}`; export r; \
21000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21001 $(SET_LIB_PATH) \
21002 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
21003 for flag in $(EXTRA_TARGET_FLAGS); do \
21004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21005 done; \
21006 (cd $(TARGET_SUBDIR)/libiberty && \
21007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21009 "RANLIB=$${RANLIB}" \
21010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21011 distclean) \
21012 || exit 1
21015 .PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
21016 maybe-maintainer-clean-target-libiberty:
21018 maintainer-clean-target-libiberty:
21019 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21020 r=`${PWD_COMMAND}`; export r; \
21021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21022 $(SET_LIB_PATH) \
21023 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
21024 for flag in $(EXTRA_TARGET_FLAGS); do \
21025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21026 done; \
21027 (cd $(TARGET_SUBDIR)/libiberty && \
21028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21030 "RANLIB=$${RANLIB}" \
21031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21032 maintainer-clean) \
21033 || exit 1
21037 .PHONY: configure-target-gperf maybe-configure-target-gperf
21038 maybe-configure-target-gperf:
21040 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21041 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
21042 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
21043 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
21044 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
21046 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
21047 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
21048 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
21049 r=`${PWD_COMMAND}`; export r; \
21050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21051 $(SET_LIB_PATH) \
21052 AR="$(AR_FOR_TARGET)"; export AR; \
21053 AS="$(AS_FOR_TARGET)"; export AS; \
21054 CC="$(CC_FOR_TARGET)"; export CC; \
21055 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21056 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21057 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21058 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21059 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21060 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21061 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21062 LD="$(LD_FOR_TARGET)"; export LD; \
21063 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21064 NM="$(NM_FOR_TARGET)"; export NM; \
21065 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21066 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21067 echo Configuring in $(TARGET_SUBDIR)/gperf; \
21068 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
21069 case $(srcdir) in \
21070 /* | [A-Za-z]:[\\/]*) \
21071 topdir=$(srcdir) ;; \
21072 *) \
21073 case "$(TARGET_SUBDIR)" in \
21074 .) topdir="../$(srcdir)" ;; \
21075 *) topdir="../../$(srcdir)" ;; \
21076 esac ;; \
21077 esac; \
21078 srcdiroption="--srcdir=$${topdir}/gperf"; \
21079 libsrcdir="$$s/gperf"; \
21080 rm -f no-such-file || : ; \
21081 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21082 $(TARGET_CONFIGARGS) $${srcdiroption} \
21083 --with-target-subdir="$(TARGET_SUBDIR)" \
21084 || exit 1
21086 .PHONY: all-target-gperf maybe-all-target-gperf
21087 maybe-all-target-gperf:
21088 all-target-gperf: configure-target-gperf
21089 @r=`${PWD_COMMAND}`; export r; \
21090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21091 $(SET_LIB_PATH) \
21092 (cd $(TARGET_SUBDIR)/gperf && \
21093 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21095 .PHONY: check-target-gperf maybe-check-target-gperf
21096 maybe-check-target-gperf:
21098 check-target-gperf:
21099 @r=`${PWD_COMMAND}`; export r; \
21100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21101 $(SET_LIB_PATH) \
21102 (cd $(TARGET_SUBDIR)/gperf && \
21103 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21106 .PHONY: install-target-gperf maybe-install-target-gperf
21107 maybe-install-target-gperf:
21109 install-target-gperf: installdirs
21110 @r=`${PWD_COMMAND}`; export r; \
21111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21112 $(SET_LIB_PATH) \
21113 (cd $(TARGET_SUBDIR)/gperf && \
21114 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21117 # Other targets (info, dvi, etc.)
21119 .PHONY: maybe-info-target-gperf info-target-gperf
21120 maybe-info-target-gperf:
21122 info-target-gperf: \
21123 configure-target-gperf
21124 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21125 r=`${PWD_COMMAND}`; export r; \
21126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21127 $(SET_LIB_PATH) \
21128 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
21129 for flag in $(EXTRA_TARGET_FLAGS); do \
21130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21131 done; \
21132 (cd $(TARGET_SUBDIR)/gperf && \
21133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21135 "RANLIB=$${RANLIB}" \
21136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21137 info) \
21138 || exit 1
21141 .PHONY: maybe-dvi-target-gperf dvi-target-gperf
21142 maybe-dvi-target-gperf:
21144 dvi-target-gperf: \
21145 configure-target-gperf
21146 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21147 r=`${PWD_COMMAND}`; export r; \
21148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21149 $(SET_LIB_PATH) \
21150 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
21151 for flag in $(EXTRA_TARGET_FLAGS); do \
21152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21153 done; \
21154 (cd $(TARGET_SUBDIR)/gperf && \
21155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21157 "RANLIB=$${RANLIB}" \
21158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21159 dvi) \
21160 || exit 1
21163 .PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
21164 maybe-TAGS-target-gperf:
21166 TAGS-target-gperf: \
21167 configure-target-gperf
21168 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21169 r=`${PWD_COMMAND}`; export r; \
21170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21171 $(SET_LIB_PATH) \
21172 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
21173 for flag in $(EXTRA_TARGET_FLAGS); do \
21174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21175 done; \
21176 (cd $(TARGET_SUBDIR)/gperf && \
21177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21179 "RANLIB=$${RANLIB}" \
21180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21181 TAGS) \
21182 || exit 1
21185 .PHONY: maybe-install-info-target-gperf install-info-target-gperf
21186 maybe-install-info-target-gperf:
21188 install-info-target-gperf: \
21189 configure-target-gperf \
21190 info-target-gperf
21191 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21192 r=`${PWD_COMMAND}`; export r; \
21193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21194 $(SET_LIB_PATH) \
21195 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
21196 for flag in $(EXTRA_TARGET_FLAGS); do \
21197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21198 done; \
21199 (cd $(TARGET_SUBDIR)/gperf && \
21200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21202 "RANLIB=$${RANLIB}" \
21203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21204 install-info) \
21205 || exit 1
21208 .PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
21209 maybe-installcheck-target-gperf:
21211 installcheck-target-gperf: \
21212 configure-target-gperf
21213 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21214 r=`${PWD_COMMAND}`; export r; \
21215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21216 $(SET_LIB_PATH) \
21217 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
21218 for flag in $(EXTRA_TARGET_FLAGS); do \
21219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21220 done; \
21221 (cd $(TARGET_SUBDIR)/gperf && \
21222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21224 "RANLIB=$${RANLIB}" \
21225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21226 installcheck) \
21227 || exit 1
21230 .PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
21231 maybe-mostlyclean-target-gperf:
21233 mostlyclean-target-gperf:
21234 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21235 r=`${PWD_COMMAND}`; export r; \
21236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21237 $(SET_LIB_PATH) \
21238 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
21239 for flag in $(EXTRA_TARGET_FLAGS); do \
21240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21241 done; \
21242 (cd $(TARGET_SUBDIR)/gperf && \
21243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21245 "RANLIB=$${RANLIB}" \
21246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21247 mostlyclean) \
21248 || exit 1
21251 .PHONY: maybe-clean-target-gperf clean-target-gperf
21252 maybe-clean-target-gperf:
21254 clean-target-gperf:
21255 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21256 r=`${PWD_COMMAND}`; export r; \
21257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21258 $(SET_LIB_PATH) \
21259 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
21260 for flag in $(EXTRA_TARGET_FLAGS); do \
21261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21262 done; \
21263 (cd $(TARGET_SUBDIR)/gperf && \
21264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21266 "RANLIB=$${RANLIB}" \
21267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21268 clean) \
21269 || exit 1
21272 .PHONY: maybe-distclean-target-gperf distclean-target-gperf
21273 maybe-distclean-target-gperf:
21275 distclean-target-gperf:
21276 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21277 r=`${PWD_COMMAND}`; export r; \
21278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21279 $(SET_LIB_PATH) \
21280 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
21281 for flag in $(EXTRA_TARGET_FLAGS); do \
21282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21283 done; \
21284 (cd $(TARGET_SUBDIR)/gperf && \
21285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21287 "RANLIB=$${RANLIB}" \
21288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21289 distclean) \
21290 || exit 1
21293 .PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
21294 maybe-maintainer-clean-target-gperf:
21296 maintainer-clean-target-gperf:
21297 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
21298 r=`${PWD_COMMAND}`; export r; \
21299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21300 $(SET_LIB_PATH) \
21301 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
21302 for flag in $(EXTRA_TARGET_FLAGS); do \
21303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21304 done; \
21305 (cd $(TARGET_SUBDIR)/gperf && \
21306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21308 "RANLIB=$${RANLIB}" \
21309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21310 maintainer-clean) \
21311 || exit 1
21315 .PHONY: configure-target-examples maybe-configure-target-examples
21316 maybe-configure-target-examples:
21318 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21319 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
21320 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
21321 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
21322 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
21324 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
21325 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
21326 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
21327 r=`${PWD_COMMAND}`; export r; \
21328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21329 $(SET_LIB_PATH) \
21330 AR="$(AR_FOR_TARGET)"; export AR; \
21331 AS="$(AS_FOR_TARGET)"; export AS; \
21332 CC="$(CC_FOR_TARGET)"; export CC; \
21333 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21334 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21335 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21336 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21337 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21338 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21339 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21340 LD="$(LD_FOR_TARGET)"; export LD; \
21341 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21342 NM="$(NM_FOR_TARGET)"; export NM; \
21343 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21344 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21345 echo Configuring in $(TARGET_SUBDIR)/examples; \
21346 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
21347 case $(srcdir) in \
21348 /* | [A-Za-z]:[\\/]*) \
21349 topdir=$(srcdir) ;; \
21350 *) \
21351 case "$(TARGET_SUBDIR)" in \
21352 .) topdir="../$(srcdir)" ;; \
21353 *) topdir="../../$(srcdir)" ;; \
21354 esac ;; \
21355 esac; \
21356 srcdiroption="--srcdir=$${topdir}/examples"; \
21357 libsrcdir="$$s/examples"; \
21358 rm -f no-such-file || : ; \
21359 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21360 $(TARGET_CONFIGARGS) $${srcdiroption} \
21361 --with-target-subdir="$(TARGET_SUBDIR)" \
21362 || exit 1
21364 .PHONY: all-target-examples maybe-all-target-examples
21365 maybe-all-target-examples:
21366 all-target-examples: configure-target-examples
21367 @r=`${PWD_COMMAND}`; export r; \
21368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21369 $(SET_LIB_PATH) \
21370 (cd $(TARGET_SUBDIR)/examples && \
21371 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21373 .PHONY: check-target-examples maybe-check-target-examples
21374 maybe-check-target-examples:
21376 # Dummy target for uncheckable module.
21377 check-target-examples:
21380 .PHONY: install-target-examples maybe-install-target-examples
21381 maybe-install-target-examples:
21383 # Dummy target for uninstallable.
21384 install-target-examples:
21387 # Other targets (info, dvi, etc.)
21389 .PHONY: maybe-info-target-examples info-target-examples
21390 maybe-info-target-examples:
21392 info-target-examples: \
21393 configure-target-examples
21394 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21395 r=`${PWD_COMMAND}`; export r; \
21396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21397 $(SET_LIB_PATH) \
21398 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
21399 for flag in $(EXTRA_TARGET_FLAGS); do \
21400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21401 done; \
21402 (cd $(TARGET_SUBDIR)/examples && \
21403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21405 "RANLIB=$${RANLIB}" \
21406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21407 info) \
21408 || exit 1
21411 .PHONY: maybe-dvi-target-examples dvi-target-examples
21412 maybe-dvi-target-examples:
21414 dvi-target-examples: \
21415 configure-target-examples
21416 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21417 r=`${PWD_COMMAND}`; export r; \
21418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21419 $(SET_LIB_PATH) \
21420 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
21421 for flag in $(EXTRA_TARGET_FLAGS); do \
21422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21423 done; \
21424 (cd $(TARGET_SUBDIR)/examples && \
21425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21427 "RANLIB=$${RANLIB}" \
21428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21429 dvi) \
21430 || exit 1
21433 .PHONY: maybe-TAGS-target-examples TAGS-target-examples
21434 maybe-TAGS-target-examples:
21436 TAGS-target-examples: \
21437 configure-target-examples
21438 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21439 r=`${PWD_COMMAND}`; export r; \
21440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21441 $(SET_LIB_PATH) \
21442 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
21443 for flag in $(EXTRA_TARGET_FLAGS); do \
21444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21445 done; \
21446 (cd $(TARGET_SUBDIR)/examples && \
21447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21449 "RANLIB=$${RANLIB}" \
21450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21451 TAGS) \
21452 || exit 1
21455 .PHONY: maybe-install-info-target-examples install-info-target-examples
21456 maybe-install-info-target-examples:
21458 install-info-target-examples: \
21459 configure-target-examples \
21460 info-target-examples
21461 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21462 r=`${PWD_COMMAND}`; export r; \
21463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21464 $(SET_LIB_PATH) \
21465 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
21466 for flag in $(EXTRA_TARGET_FLAGS); do \
21467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21468 done; \
21469 (cd $(TARGET_SUBDIR)/examples && \
21470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21472 "RANLIB=$${RANLIB}" \
21473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21474 install-info) \
21475 || exit 1
21478 .PHONY: maybe-installcheck-target-examples installcheck-target-examples
21479 maybe-installcheck-target-examples:
21481 installcheck-target-examples: \
21482 configure-target-examples
21483 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21484 r=`${PWD_COMMAND}`; export r; \
21485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21486 $(SET_LIB_PATH) \
21487 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
21488 for flag in $(EXTRA_TARGET_FLAGS); do \
21489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21490 done; \
21491 (cd $(TARGET_SUBDIR)/examples && \
21492 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21493 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21494 "RANLIB=$${RANLIB}" \
21495 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21496 installcheck) \
21497 || exit 1
21500 .PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
21501 maybe-mostlyclean-target-examples:
21503 mostlyclean-target-examples:
21504 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21505 r=`${PWD_COMMAND}`; export r; \
21506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21507 $(SET_LIB_PATH) \
21508 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
21509 for flag in $(EXTRA_TARGET_FLAGS); do \
21510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21511 done; \
21512 (cd $(TARGET_SUBDIR)/examples && \
21513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21515 "RANLIB=$${RANLIB}" \
21516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21517 mostlyclean) \
21518 || exit 1
21521 .PHONY: maybe-clean-target-examples clean-target-examples
21522 maybe-clean-target-examples:
21524 clean-target-examples:
21525 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21526 r=`${PWD_COMMAND}`; export r; \
21527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21528 $(SET_LIB_PATH) \
21529 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
21530 for flag in $(EXTRA_TARGET_FLAGS); do \
21531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21532 done; \
21533 (cd $(TARGET_SUBDIR)/examples && \
21534 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21535 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21536 "RANLIB=$${RANLIB}" \
21537 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21538 clean) \
21539 || exit 1
21542 .PHONY: maybe-distclean-target-examples distclean-target-examples
21543 maybe-distclean-target-examples:
21545 distclean-target-examples:
21546 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21547 r=`${PWD_COMMAND}`; export r; \
21548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21549 $(SET_LIB_PATH) \
21550 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
21551 for flag in $(EXTRA_TARGET_FLAGS); do \
21552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21553 done; \
21554 (cd $(TARGET_SUBDIR)/examples && \
21555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21557 "RANLIB=$${RANLIB}" \
21558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21559 distclean) \
21560 || exit 1
21563 .PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
21564 maybe-maintainer-clean-target-examples:
21566 maintainer-clean-target-examples:
21567 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
21568 r=`${PWD_COMMAND}`; export r; \
21569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21570 $(SET_LIB_PATH) \
21571 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
21572 for flag in $(EXTRA_TARGET_FLAGS); do \
21573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21574 done; \
21575 (cd $(TARGET_SUBDIR)/examples && \
21576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21578 "RANLIB=$${RANLIB}" \
21579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21580 maintainer-clean) \
21581 || exit 1
21585 .PHONY: configure-target-libffi maybe-configure-target-libffi
21586 maybe-configure-target-libffi:
21588 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21589 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
21590 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
21591 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
21592 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
21594 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
21595 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
21596 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
21597 r=`${PWD_COMMAND}`; export r; \
21598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21599 $(SET_LIB_PATH) \
21600 AR="$(AR_FOR_TARGET)"; export AR; \
21601 AS="$(AS_FOR_TARGET)"; export AS; \
21602 CC="$(CC_FOR_TARGET)"; export CC; \
21603 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21604 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21605 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21606 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21607 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21608 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21609 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21610 LD="$(LD_FOR_TARGET)"; export LD; \
21611 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21612 NM="$(NM_FOR_TARGET)"; export NM; \
21613 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21614 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21615 echo Configuring in $(TARGET_SUBDIR)/libffi; \
21616 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
21617 case $(srcdir) in \
21618 /* | [A-Za-z]:[\\/]*) \
21619 topdir=$(srcdir) ;; \
21620 *) \
21621 case "$(TARGET_SUBDIR)" in \
21622 .) topdir="../$(srcdir)" ;; \
21623 *) topdir="../../$(srcdir)" ;; \
21624 esac ;; \
21625 esac; \
21626 srcdiroption="--srcdir=$${topdir}/libffi"; \
21627 libsrcdir="$$s/libffi"; \
21628 rm -f no-such-file || : ; \
21629 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21630 $(TARGET_CONFIGARGS) $${srcdiroption} \
21631 --with-target-subdir="$(TARGET_SUBDIR)" \
21632 || exit 1
21634 .PHONY: all-target-libffi maybe-all-target-libffi
21635 maybe-all-target-libffi:
21636 all-target-libffi: configure-target-libffi
21637 @r=`${PWD_COMMAND}`; export r; \
21638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21639 $(SET_LIB_PATH) \
21640 (cd $(TARGET_SUBDIR)/libffi && \
21641 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21643 .PHONY: check-target-libffi maybe-check-target-libffi
21644 maybe-check-target-libffi:
21646 check-target-libffi:
21647 @r=`${PWD_COMMAND}`; export r; \
21648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21649 $(SET_LIB_PATH) \
21650 (cd $(TARGET_SUBDIR)/libffi && \
21651 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21654 .PHONY: install-target-libffi maybe-install-target-libffi
21655 maybe-install-target-libffi:
21657 install-target-libffi: installdirs
21658 @r=`${PWD_COMMAND}`; export r; \
21659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21660 $(SET_LIB_PATH) \
21661 (cd $(TARGET_SUBDIR)/libffi && \
21662 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21665 # Other targets (info, dvi, etc.)
21667 .PHONY: maybe-info-target-libffi info-target-libffi
21668 maybe-info-target-libffi:
21670 info-target-libffi: \
21671 configure-target-libffi
21672 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21673 r=`${PWD_COMMAND}`; export r; \
21674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21675 $(SET_LIB_PATH) \
21676 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
21677 for flag in $(EXTRA_TARGET_FLAGS); do \
21678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21679 done; \
21680 (cd $(TARGET_SUBDIR)/libffi && \
21681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21683 "RANLIB=$${RANLIB}" \
21684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21685 info) \
21686 || exit 1
21689 .PHONY: maybe-dvi-target-libffi dvi-target-libffi
21690 maybe-dvi-target-libffi:
21692 dvi-target-libffi: \
21693 configure-target-libffi
21694 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21695 r=`${PWD_COMMAND}`; export r; \
21696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21697 $(SET_LIB_PATH) \
21698 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
21699 for flag in $(EXTRA_TARGET_FLAGS); do \
21700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21701 done; \
21702 (cd $(TARGET_SUBDIR)/libffi && \
21703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21705 "RANLIB=$${RANLIB}" \
21706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21707 dvi) \
21708 || exit 1
21711 .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
21712 maybe-TAGS-target-libffi:
21714 TAGS-target-libffi: \
21715 configure-target-libffi
21716 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21717 r=`${PWD_COMMAND}`; export r; \
21718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21719 $(SET_LIB_PATH) \
21720 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
21721 for flag in $(EXTRA_TARGET_FLAGS); do \
21722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21723 done; \
21724 (cd $(TARGET_SUBDIR)/libffi && \
21725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21727 "RANLIB=$${RANLIB}" \
21728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21729 TAGS) \
21730 || exit 1
21733 .PHONY: maybe-install-info-target-libffi install-info-target-libffi
21734 maybe-install-info-target-libffi:
21736 install-info-target-libffi: \
21737 configure-target-libffi \
21738 info-target-libffi
21739 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21740 r=`${PWD_COMMAND}`; export r; \
21741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21742 $(SET_LIB_PATH) \
21743 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
21744 for flag in $(EXTRA_TARGET_FLAGS); do \
21745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21746 done; \
21747 (cd $(TARGET_SUBDIR)/libffi && \
21748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21750 "RANLIB=$${RANLIB}" \
21751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21752 install-info) \
21753 || exit 1
21756 .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
21757 maybe-installcheck-target-libffi:
21759 installcheck-target-libffi: \
21760 configure-target-libffi
21761 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21762 r=`${PWD_COMMAND}`; export r; \
21763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21764 $(SET_LIB_PATH) \
21765 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
21766 for flag in $(EXTRA_TARGET_FLAGS); do \
21767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21768 done; \
21769 (cd $(TARGET_SUBDIR)/libffi && \
21770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21772 "RANLIB=$${RANLIB}" \
21773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21774 installcheck) \
21775 || exit 1
21778 .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
21779 maybe-mostlyclean-target-libffi:
21781 mostlyclean-target-libffi:
21782 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21783 r=`${PWD_COMMAND}`; export r; \
21784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21785 $(SET_LIB_PATH) \
21786 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
21787 for flag in $(EXTRA_TARGET_FLAGS); do \
21788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21789 done; \
21790 (cd $(TARGET_SUBDIR)/libffi && \
21791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21793 "RANLIB=$${RANLIB}" \
21794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21795 mostlyclean) \
21796 || exit 1
21799 .PHONY: maybe-clean-target-libffi clean-target-libffi
21800 maybe-clean-target-libffi:
21802 clean-target-libffi:
21803 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21804 r=`${PWD_COMMAND}`; export r; \
21805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21806 $(SET_LIB_PATH) \
21807 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
21808 for flag in $(EXTRA_TARGET_FLAGS); do \
21809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21810 done; \
21811 (cd $(TARGET_SUBDIR)/libffi && \
21812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21814 "RANLIB=$${RANLIB}" \
21815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21816 clean) \
21817 || exit 1
21820 .PHONY: maybe-distclean-target-libffi distclean-target-libffi
21821 maybe-distclean-target-libffi:
21823 distclean-target-libffi:
21824 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21825 r=`${PWD_COMMAND}`; export r; \
21826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21827 $(SET_LIB_PATH) \
21828 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
21829 for flag in $(EXTRA_TARGET_FLAGS); do \
21830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21831 done; \
21832 (cd $(TARGET_SUBDIR)/libffi && \
21833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21835 "RANLIB=$${RANLIB}" \
21836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21837 distclean) \
21838 || exit 1
21841 .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
21842 maybe-maintainer-clean-target-libffi:
21844 maintainer-clean-target-libffi:
21845 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
21846 r=`${PWD_COMMAND}`; export r; \
21847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21848 $(SET_LIB_PATH) \
21849 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
21850 for flag in $(EXTRA_TARGET_FLAGS); do \
21851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21852 done; \
21853 (cd $(TARGET_SUBDIR)/libffi && \
21854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21856 "RANLIB=$${RANLIB}" \
21857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21858 maintainer-clean) \
21859 || exit 1
21863 .PHONY: configure-target-libjava maybe-configure-target-libjava
21864 maybe-configure-target-libjava:
21866 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21867 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
21868 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
21869 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
21870 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
21872 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
21873 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
21874 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
21875 r=`${PWD_COMMAND}`; export r; \
21876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21877 $(SET_LIB_PATH) \
21878 AR="$(AR_FOR_TARGET)"; export AR; \
21879 AS="$(AS_FOR_TARGET)"; export AS; \
21880 CC="$(CC_FOR_TARGET)"; export CC; \
21881 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21882 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21883 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21884 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
21885 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
21886 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21887 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21888 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21889 LD="$(LD_FOR_TARGET)"; export LD; \
21890 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21891 NM="$(NM_FOR_TARGET)"; export NM; \
21892 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21893 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21894 echo Configuring in $(TARGET_SUBDIR)/libjava; \
21895 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
21896 case $(srcdir) in \
21897 /* | [A-Za-z]:[\\/]*) \
21898 topdir=$(srcdir) ;; \
21899 *) \
21900 case "$(TARGET_SUBDIR)" in \
21901 .) topdir="../$(srcdir)" ;; \
21902 *) topdir="../../$(srcdir)" ;; \
21903 esac ;; \
21904 esac; \
21905 srcdiroption="--srcdir=$${topdir}/libjava"; \
21906 libsrcdir="$$s/libjava"; \
21907 rm -f no-such-file || : ; \
21908 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21909 $(TARGET_CONFIGARGS) $${srcdiroption} \
21910 --with-target-subdir="$(TARGET_SUBDIR)" \
21911 || exit 1
21913 .PHONY: all-target-libjava maybe-all-target-libjava
21914 maybe-all-target-libjava:
21915 all-target-libjava: configure-target-libjava
21916 @r=`${PWD_COMMAND}`; export r; \
21917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21918 $(SET_LIB_PATH) \
21919 (cd $(TARGET_SUBDIR)/libjava && \
21920 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
21922 .PHONY: check-target-libjava maybe-check-target-libjava
21923 maybe-check-target-libjava:
21925 check-target-libjava:
21926 @r=`${PWD_COMMAND}`; export r; \
21927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21928 $(SET_LIB_PATH) \
21929 (cd $(TARGET_SUBDIR)/libjava && \
21930 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
21933 .PHONY: install-target-libjava maybe-install-target-libjava
21934 maybe-install-target-libjava:
21936 install-target-libjava: installdirs
21937 @r=`${PWD_COMMAND}`; export r; \
21938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21939 $(SET_LIB_PATH) \
21940 (cd $(TARGET_SUBDIR)/libjava && \
21941 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21944 # Other targets (info, dvi, etc.)
21946 .PHONY: maybe-info-target-libjava info-target-libjava
21947 maybe-info-target-libjava:
21949 info-target-libjava: \
21950 configure-target-libjava
21951 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21952 r=`${PWD_COMMAND}`; export r; \
21953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21954 $(SET_LIB_PATH) \
21955 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
21956 for flag in $(EXTRA_TARGET_FLAGS); do \
21957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21958 done; \
21959 (cd $(TARGET_SUBDIR)/libjava && \
21960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21962 "RANLIB=$${RANLIB}" \
21963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21964 info) \
21965 || exit 1
21968 .PHONY: maybe-dvi-target-libjava dvi-target-libjava
21969 maybe-dvi-target-libjava:
21971 dvi-target-libjava: \
21972 configure-target-libjava
21973 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21974 r=`${PWD_COMMAND}`; export r; \
21975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21976 $(SET_LIB_PATH) \
21977 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
21978 for flag in $(EXTRA_TARGET_FLAGS); do \
21979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21980 done; \
21981 (cd $(TARGET_SUBDIR)/libjava && \
21982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21984 "RANLIB=$${RANLIB}" \
21985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21986 dvi) \
21987 || exit 1
21990 .PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
21991 maybe-TAGS-target-libjava:
21993 TAGS-target-libjava: \
21994 configure-target-libjava
21995 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
21996 r=`${PWD_COMMAND}`; export r; \
21997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21998 $(SET_LIB_PATH) \
21999 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
22000 for flag in $(EXTRA_TARGET_FLAGS); do \
22001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22002 done; \
22003 (cd $(TARGET_SUBDIR)/libjava && \
22004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22006 "RANLIB=$${RANLIB}" \
22007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22008 TAGS) \
22009 || exit 1
22012 .PHONY: maybe-install-info-target-libjava install-info-target-libjava
22013 maybe-install-info-target-libjava:
22015 install-info-target-libjava: \
22016 configure-target-libjava \
22017 info-target-libjava
22018 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22019 r=`${PWD_COMMAND}`; export r; \
22020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22021 $(SET_LIB_PATH) \
22022 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
22023 for flag in $(EXTRA_TARGET_FLAGS); do \
22024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22025 done; \
22026 (cd $(TARGET_SUBDIR)/libjava && \
22027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22029 "RANLIB=$${RANLIB}" \
22030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22031 install-info) \
22032 || exit 1
22035 .PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
22036 maybe-installcheck-target-libjava:
22038 installcheck-target-libjava: \
22039 configure-target-libjava
22040 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22041 r=`${PWD_COMMAND}`; export r; \
22042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22043 $(SET_LIB_PATH) \
22044 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
22045 for flag in $(EXTRA_TARGET_FLAGS); do \
22046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22047 done; \
22048 (cd $(TARGET_SUBDIR)/libjava && \
22049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22051 "RANLIB=$${RANLIB}" \
22052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22053 installcheck) \
22054 || exit 1
22057 .PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
22058 maybe-mostlyclean-target-libjava:
22060 mostlyclean-target-libjava:
22061 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22062 r=`${PWD_COMMAND}`; export r; \
22063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22064 $(SET_LIB_PATH) \
22065 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
22066 for flag in $(EXTRA_TARGET_FLAGS); do \
22067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22068 done; \
22069 (cd $(TARGET_SUBDIR)/libjava && \
22070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22072 "RANLIB=$${RANLIB}" \
22073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22074 mostlyclean) \
22075 || exit 1
22078 .PHONY: maybe-clean-target-libjava clean-target-libjava
22079 maybe-clean-target-libjava:
22081 clean-target-libjava:
22082 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22083 r=`${PWD_COMMAND}`; export r; \
22084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22085 $(SET_LIB_PATH) \
22086 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
22087 for flag in $(EXTRA_TARGET_FLAGS); do \
22088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22089 done; \
22090 (cd $(TARGET_SUBDIR)/libjava && \
22091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22093 "RANLIB=$${RANLIB}" \
22094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22095 clean) \
22096 || exit 1
22099 .PHONY: maybe-distclean-target-libjava distclean-target-libjava
22100 maybe-distclean-target-libjava:
22102 distclean-target-libjava:
22103 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22104 r=`${PWD_COMMAND}`; export r; \
22105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22106 $(SET_LIB_PATH) \
22107 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
22108 for flag in $(EXTRA_TARGET_FLAGS); do \
22109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22110 done; \
22111 (cd $(TARGET_SUBDIR)/libjava && \
22112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22114 "RANLIB=$${RANLIB}" \
22115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22116 distclean) \
22117 || exit 1
22120 .PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
22121 maybe-maintainer-clean-target-libjava:
22123 maintainer-clean-target-libjava:
22124 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22125 r=`${PWD_COMMAND}`; export r; \
22126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22127 $(SET_LIB_PATH) \
22128 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
22129 for flag in $(EXTRA_TARGET_FLAGS); do \
22130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22131 done; \
22132 (cd $(TARGET_SUBDIR)/libjava && \
22133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22135 "RANLIB=$${RANLIB}" \
22136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22137 maintainer-clean) \
22138 || exit 1
22142 .PHONY: configure-target-zlib maybe-configure-target-zlib
22143 maybe-configure-target-zlib:
22145 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22146 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
22147 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
22148 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
22149 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
22151 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
22152 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
22153 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
22154 r=`${PWD_COMMAND}`; export r; \
22155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22156 $(SET_LIB_PATH) \
22157 AR="$(AR_FOR_TARGET)"; export AR; \
22158 AS="$(AS_FOR_TARGET)"; export AS; \
22159 CC="$(CC_FOR_TARGET)"; export CC; \
22160 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22161 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22162 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22163 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22164 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22165 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22166 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22167 LD="$(LD_FOR_TARGET)"; export LD; \
22168 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22169 NM="$(NM_FOR_TARGET)"; export NM; \
22170 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22171 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22172 echo Configuring in $(TARGET_SUBDIR)/zlib; \
22173 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
22174 case $(srcdir) in \
22175 /* | [A-Za-z]:[\\/]*) \
22176 topdir=$(srcdir) ;; \
22177 *) \
22178 case "$(TARGET_SUBDIR)" in \
22179 .) topdir="../$(srcdir)" ;; \
22180 *) topdir="../../$(srcdir)" ;; \
22181 esac ;; \
22182 esac; \
22183 if [ "$(srcdir)" = "." ] ; then \
22184 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
22185 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
22186 if [ -f Makefile ]; then \
22187 if $(MAKE) distclean; then \
22188 true; \
22189 else \
22190 exit 1; \
22191 fi; \
22192 else \
22193 true; \
22194 fi; \
22195 else \
22196 exit 1; \
22197 fi; \
22198 else \
22199 true; \
22200 fi; \
22201 srcdiroption="--srcdir=."; \
22202 libsrcdir="."; \
22203 else \
22204 srcdiroption="--srcdir=$${topdir}/zlib"; \
22205 libsrcdir="$$s/zlib"; \
22206 fi; \
22207 rm -f no-such-file || : ; \
22208 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22209 $(TARGET_CONFIGARGS) $${srcdiroption} \
22210 --with-target-subdir="$(TARGET_SUBDIR)" \
22211 || exit 1
22213 .PHONY: all-target-zlib maybe-all-target-zlib
22214 maybe-all-target-zlib:
22215 all-target-zlib: configure-target-zlib
22216 @r=`${PWD_COMMAND}`; export r; \
22217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22218 $(SET_LIB_PATH) \
22219 (cd $(TARGET_SUBDIR)/zlib && \
22220 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22222 .PHONY: check-target-zlib maybe-check-target-zlib
22223 maybe-check-target-zlib:
22225 check-target-zlib:
22226 @r=`${PWD_COMMAND}`; export r; \
22227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22228 $(SET_LIB_PATH) \
22229 (cd $(TARGET_SUBDIR)/zlib && \
22230 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22233 .PHONY: install-target-zlib maybe-install-target-zlib
22234 maybe-install-target-zlib:
22236 install-target-zlib: installdirs
22237 @r=`${PWD_COMMAND}`; export r; \
22238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22239 $(SET_LIB_PATH) \
22240 (cd $(TARGET_SUBDIR)/zlib && \
22241 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22244 # Other targets (info, dvi, etc.)
22246 .PHONY: maybe-info-target-zlib info-target-zlib
22247 maybe-info-target-zlib:
22249 info-target-zlib: \
22250 configure-target-zlib
22251 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22252 r=`${PWD_COMMAND}`; export r; \
22253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22254 $(SET_LIB_PATH) \
22255 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
22256 for flag in $(EXTRA_TARGET_FLAGS); do \
22257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22258 done; \
22259 (cd $(TARGET_SUBDIR)/zlib && \
22260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22262 "RANLIB=$${RANLIB}" \
22263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22264 info) \
22265 || exit 1
22268 .PHONY: maybe-dvi-target-zlib dvi-target-zlib
22269 maybe-dvi-target-zlib:
22271 dvi-target-zlib: \
22272 configure-target-zlib
22273 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22274 r=`${PWD_COMMAND}`; export r; \
22275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22276 $(SET_LIB_PATH) \
22277 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
22278 for flag in $(EXTRA_TARGET_FLAGS); do \
22279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22280 done; \
22281 (cd $(TARGET_SUBDIR)/zlib && \
22282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22284 "RANLIB=$${RANLIB}" \
22285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22286 dvi) \
22287 || exit 1
22290 .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
22291 maybe-TAGS-target-zlib:
22293 TAGS-target-zlib: \
22294 configure-target-zlib
22295 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22296 r=`${PWD_COMMAND}`; export r; \
22297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22298 $(SET_LIB_PATH) \
22299 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
22300 for flag in $(EXTRA_TARGET_FLAGS); do \
22301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22302 done; \
22303 (cd $(TARGET_SUBDIR)/zlib && \
22304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22306 "RANLIB=$${RANLIB}" \
22307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22308 TAGS) \
22309 || exit 1
22312 .PHONY: maybe-install-info-target-zlib install-info-target-zlib
22313 maybe-install-info-target-zlib:
22315 install-info-target-zlib: \
22316 configure-target-zlib \
22317 info-target-zlib
22318 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22319 r=`${PWD_COMMAND}`; export r; \
22320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22321 $(SET_LIB_PATH) \
22322 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
22323 for flag in $(EXTRA_TARGET_FLAGS); do \
22324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22325 done; \
22326 (cd $(TARGET_SUBDIR)/zlib && \
22327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22329 "RANLIB=$${RANLIB}" \
22330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22331 install-info) \
22332 || exit 1
22335 .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
22336 maybe-installcheck-target-zlib:
22338 installcheck-target-zlib: \
22339 configure-target-zlib
22340 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22341 r=`${PWD_COMMAND}`; export r; \
22342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22343 $(SET_LIB_PATH) \
22344 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
22345 for flag in $(EXTRA_TARGET_FLAGS); do \
22346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22347 done; \
22348 (cd $(TARGET_SUBDIR)/zlib && \
22349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22351 "RANLIB=$${RANLIB}" \
22352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22353 installcheck) \
22354 || exit 1
22357 .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
22358 maybe-mostlyclean-target-zlib:
22360 mostlyclean-target-zlib:
22361 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22362 r=`${PWD_COMMAND}`; export r; \
22363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22364 $(SET_LIB_PATH) \
22365 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
22366 for flag in $(EXTRA_TARGET_FLAGS); do \
22367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22368 done; \
22369 (cd $(TARGET_SUBDIR)/zlib && \
22370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22372 "RANLIB=$${RANLIB}" \
22373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22374 mostlyclean) \
22375 || exit 1
22378 .PHONY: maybe-clean-target-zlib clean-target-zlib
22379 maybe-clean-target-zlib:
22381 clean-target-zlib:
22382 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22383 r=`${PWD_COMMAND}`; export r; \
22384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22385 $(SET_LIB_PATH) \
22386 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
22387 for flag in $(EXTRA_TARGET_FLAGS); do \
22388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22389 done; \
22390 (cd $(TARGET_SUBDIR)/zlib && \
22391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22393 "RANLIB=$${RANLIB}" \
22394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22395 clean) \
22396 || exit 1
22399 .PHONY: maybe-distclean-target-zlib distclean-target-zlib
22400 maybe-distclean-target-zlib:
22402 distclean-target-zlib:
22403 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22404 r=`${PWD_COMMAND}`; export r; \
22405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22406 $(SET_LIB_PATH) \
22407 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
22408 for flag in $(EXTRA_TARGET_FLAGS); do \
22409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22410 done; \
22411 (cd $(TARGET_SUBDIR)/zlib && \
22412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22414 "RANLIB=$${RANLIB}" \
22415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22416 distclean) \
22417 || exit 1
22420 .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
22421 maybe-maintainer-clean-target-zlib:
22423 maintainer-clean-target-zlib:
22424 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
22425 r=`${PWD_COMMAND}`; export r; \
22426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22427 $(SET_LIB_PATH) \
22428 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
22429 for flag in $(EXTRA_TARGET_FLAGS); do \
22430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22431 done; \
22432 (cd $(TARGET_SUBDIR)/zlib && \
22433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22435 "RANLIB=$${RANLIB}" \
22436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22437 maintainer-clean) \
22438 || exit 1
22442 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
22443 maybe-configure-target-boehm-gc:
22445 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22446 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
22447 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
22448 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
22449 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
22451 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
22452 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
22453 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
22454 r=`${PWD_COMMAND}`; export r; \
22455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22456 $(SET_LIB_PATH) \
22457 AR="$(AR_FOR_TARGET)"; export AR; \
22458 AS="$(AS_FOR_TARGET)"; export AS; \
22459 CC="$(CC_FOR_TARGET)"; export CC; \
22460 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22461 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22462 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22463 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22464 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22465 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22466 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22467 LD="$(LD_FOR_TARGET)"; export LD; \
22468 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22469 NM="$(NM_FOR_TARGET)"; export NM; \
22470 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22471 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22472 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
22473 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
22474 case $(srcdir) in \
22475 /* | [A-Za-z]:[\\/]*) \
22476 topdir=$(srcdir) ;; \
22477 *) \
22478 case "$(TARGET_SUBDIR)" in \
22479 .) topdir="../$(srcdir)" ;; \
22480 *) topdir="../../$(srcdir)" ;; \
22481 esac ;; \
22482 esac; \
22483 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
22484 libsrcdir="$$s/boehm-gc"; \
22485 rm -f no-such-file || : ; \
22486 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22487 $(TARGET_CONFIGARGS) $${srcdiroption} \
22488 --with-target-subdir="$(TARGET_SUBDIR)" \
22489 || exit 1
22491 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
22492 maybe-all-target-boehm-gc:
22493 all-target-boehm-gc: configure-target-boehm-gc
22494 @r=`${PWD_COMMAND}`; export r; \
22495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22496 $(SET_LIB_PATH) \
22497 (cd $(TARGET_SUBDIR)/boehm-gc && \
22498 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22500 .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
22501 maybe-check-target-boehm-gc:
22503 check-target-boehm-gc:
22504 @r=`${PWD_COMMAND}`; export r; \
22505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22506 $(SET_LIB_PATH) \
22507 (cd $(TARGET_SUBDIR)/boehm-gc && \
22508 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22511 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
22512 maybe-install-target-boehm-gc:
22514 install-target-boehm-gc: installdirs
22515 @r=`${PWD_COMMAND}`; export r; \
22516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22517 $(SET_LIB_PATH) \
22518 (cd $(TARGET_SUBDIR)/boehm-gc && \
22519 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22522 # Other targets (info, dvi, etc.)
22524 .PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
22525 maybe-info-target-boehm-gc:
22527 info-target-boehm-gc: \
22528 configure-target-boehm-gc
22529 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22530 r=`${PWD_COMMAND}`; export r; \
22531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22532 $(SET_LIB_PATH) \
22533 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
22534 for flag in $(EXTRA_TARGET_FLAGS); do \
22535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22536 done; \
22537 (cd $(TARGET_SUBDIR)/boehm-gc && \
22538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22540 "RANLIB=$${RANLIB}" \
22541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22542 info) \
22543 || exit 1
22546 .PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
22547 maybe-dvi-target-boehm-gc:
22549 dvi-target-boehm-gc: \
22550 configure-target-boehm-gc
22551 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22552 r=`${PWD_COMMAND}`; export r; \
22553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22554 $(SET_LIB_PATH) \
22555 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
22556 for flag in $(EXTRA_TARGET_FLAGS); do \
22557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22558 done; \
22559 (cd $(TARGET_SUBDIR)/boehm-gc && \
22560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22562 "RANLIB=$${RANLIB}" \
22563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22564 dvi) \
22565 || exit 1
22568 .PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
22569 maybe-TAGS-target-boehm-gc:
22571 TAGS-target-boehm-gc: \
22572 configure-target-boehm-gc
22573 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22574 r=`${PWD_COMMAND}`; export r; \
22575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22576 $(SET_LIB_PATH) \
22577 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
22578 for flag in $(EXTRA_TARGET_FLAGS); do \
22579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22580 done; \
22581 (cd $(TARGET_SUBDIR)/boehm-gc && \
22582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22584 "RANLIB=$${RANLIB}" \
22585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22586 TAGS) \
22587 || exit 1
22590 .PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
22591 maybe-install-info-target-boehm-gc:
22593 install-info-target-boehm-gc: \
22594 configure-target-boehm-gc \
22595 info-target-boehm-gc
22596 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22597 r=`${PWD_COMMAND}`; export r; \
22598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22599 $(SET_LIB_PATH) \
22600 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
22601 for flag in $(EXTRA_TARGET_FLAGS); do \
22602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22603 done; \
22604 (cd $(TARGET_SUBDIR)/boehm-gc && \
22605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22607 "RANLIB=$${RANLIB}" \
22608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22609 install-info) \
22610 || exit 1
22613 .PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
22614 maybe-installcheck-target-boehm-gc:
22616 installcheck-target-boehm-gc: \
22617 configure-target-boehm-gc
22618 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22619 r=`${PWD_COMMAND}`; export r; \
22620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22621 $(SET_LIB_PATH) \
22622 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
22623 for flag in $(EXTRA_TARGET_FLAGS); do \
22624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22625 done; \
22626 (cd $(TARGET_SUBDIR)/boehm-gc && \
22627 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22628 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22629 "RANLIB=$${RANLIB}" \
22630 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22631 installcheck) \
22632 || exit 1
22635 .PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
22636 maybe-mostlyclean-target-boehm-gc:
22638 mostlyclean-target-boehm-gc:
22639 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22640 r=`${PWD_COMMAND}`; export r; \
22641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22642 $(SET_LIB_PATH) \
22643 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
22644 for flag in $(EXTRA_TARGET_FLAGS); do \
22645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22646 done; \
22647 (cd $(TARGET_SUBDIR)/boehm-gc && \
22648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22650 "RANLIB=$${RANLIB}" \
22651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22652 mostlyclean) \
22653 || exit 1
22656 .PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
22657 maybe-clean-target-boehm-gc:
22659 clean-target-boehm-gc:
22660 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22661 r=`${PWD_COMMAND}`; export r; \
22662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22663 $(SET_LIB_PATH) \
22664 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
22665 for flag in $(EXTRA_TARGET_FLAGS); do \
22666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22667 done; \
22668 (cd $(TARGET_SUBDIR)/boehm-gc && \
22669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22671 "RANLIB=$${RANLIB}" \
22672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22673 clean) \
22674 || exit 1
22677 .PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
22678 maybe-distclean-target-boehm-gc:
22680 distclean-target-boehm-gc:
22681 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22682 r=`${PWD_COMMAND}`; export r; \
22683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22684 $(SET_LIB_PATH) \
22685 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
22686 for flag in $(EXTRA_TARGET_FLAGS); do \
22687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22688 done; \
22689 (cd $(TARGET_SUBDIR)/boehm-gc && \
22690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22692 "RANLIB=$${RANLIB}" \
22693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22694 distclean) \
22695 || exit 1
22698 .PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
22699 maybe-maintainer-clean-target-boehm-gc:
22701 maintainer-clean-target-boehm-gc:
22702 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
22703 r=`${PWD_COMMAND}`; export r; \
22704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22705 $(SET_LIB_PATH) \
22706 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
22707 for flag in $(EXTRA_TARGET_FLAGS); do \
22708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22709 done; \
22710 (cd $(TARGET_SUBDIR)/boehm-gc && \
22711 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22712 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22713 "RANLIB=$${RANLIB}" \
22714 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22715 maintainer-clean) \
22716 || exit 1
22720 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
22721 maybe-configure-target-qthreads:
22723 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22724 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
22725 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
22726 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
22727 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
22729 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
22730 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
22731 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
22732 r=`${PWD_COMMAND}`; export r; \
22733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22734 $(SET_LIB_PATH) \
22735 AR="$(AR_FOR_TARGET)"; export AR; \
22736 AS="$(AS_FOR_TARGET)"; export AS; \
22737 CC="$(CC_FOR_TARGET)"; export CC; \
22738 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22739 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22740 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22741 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22742 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22743 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22744 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22745 LD="$(LD_FOR_TARGET)"; export LD; \
22746 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22747 NM="$(NM_FOR_TARGET)"; export NM; \
22748 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22749 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22750 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
22751 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
22752 case $(srcdir) in \
22753 /* | [A-Za-z]:[\\/]*) \
22754 topdir=$(srcdir) ;; \
22755 *) \
22756 case "$(TARGET_SUBDIR)" in \
22757 .) topdir="../$(srcdir)" ;; \
22758 *) topdir="../../$(srcdir)" ;; \
22759 esac ;; \
22760 esac; \
22761 srcdiroption="--srcdir=$${topdir}/qthreads"; \
22762 libsrcdir="$$s/qthreads"; \
22763 rm -f no-such-file || : ; \
22764 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22765 $(TARGET_CONFIGARGS) $${srcdiroption} \
22766 --with-target-subdir="$(TARGET_SUBDIR)" \
22767 || exit 1
22769 .PHONY: all-target-qthreads maybe-all-target-qthreads
22770 maybe-all-target-qthreads:
22771 all-target-qthreads: configure-target-qthreads
22772 @r=`${PWD_COMMAND}`; export r; \
22773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22774 $(SET_LIB_PATH) \
22775 (cd $(TARGET_SUBDIR)/qthreads && \
22776 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22778 .PHONY: check-target-qthreads maybe-check-target-qthreads
22779 maybe-check-target-qthreads:
22781 check-target-qthreads:
22782 @r=`${PWD_COMMAND}`; export r; \
22783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22784 $(SET_LIB_PATH) \
22785 (cd $(TARGET_SUBDIR)/qthreads && \
22786 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22789 .PHONY: install-target-qthreads maybe-install-target-qthreads
22790 maybe-install-target-qthreads:
22792 install-target-qthreads: installdirs
22793 @r=`${PWD_COMMAND}`; export r; \
22794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22795 $(SET_LIB_PATH) \
22796 (cd $(TARGET_SUBDIR)/qthreads && \
22797 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22800 # Other targets (info, dvi, etc.)
22802 .PHONY: maybe-info-target-qthreads info-target-qthreads
22803 maybe-info-target-qthreads:
22805 info-target-qthreads: \
22806 configure-target-qthreads
22807 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22808 r=`${PWD_COMMAND}`; export r; \
22809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22810 $(SET_LIB_PATH) \
22811 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
22812 for flag in $(EXTRA_TARGET_FLAGS); do \
22813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22814 done; \
22815 (cd $(TARGET_SUBDIR)/qthreads && \
22816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22818 "RANLIB=$${RANLIB}" \
22819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22820 info) \
22821 || exit 1
22824 .PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
22825 maybe-dvi-target-qthreads:
22827 dvi-target-qthreads: \
22828 configure-target-qthreads
22829 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22830 r=`${PWD_COMMAND}`; export r; \
22831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22832 $(SET_LIB_PATH) \
22833 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
22834 for flag in $(EXTRA_TARGET_FLAGS); do \
22835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22836 done; \
22837 (cd $(TARGET_SUBDIR)/qthreads && \
22838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22840 "RANLIB=$${RANLIB}" \
22841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22842 dvi) \
22843 || exit 1
22846 .PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
22847 maybe-TAGS-target-qthreads:
22849 TAGS-target-qthreads: \
22850 configure-target-qthreads
22851 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22852 r=`${PWD_COMMAND}`; export r; \
22853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22854 $(SET_LIB_PATH) \
22855 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
22856 for flag in $(EXTRA_TARGET_FLAGS); do \
22857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22858 done; \
22859 (cd $(TARGET_SUBDIR)/qthreads && \
22860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22862 "RANLIB=$${RANLIB}" \
22863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22864 TAGS) \
22865 || exit 1
22868 .PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
22869 maybe-install-info-target-qthreads:
22871 install-info-target-qthreads: \
22872 configure-target-qthreads \
22873 info-target-qthreads
22874 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22875 r=`${PWD_COMMAND}`; export r; \
22876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22877 $(SET_LIB_PATH) \
22878 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
22879 for flag in $(EXTRA_TARGET_FLAGS); do \
22880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22881 done; \
22882 (cd $(TARGET_SUBDIR)/qthreads && \
22883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22885 "RANLIB=$${RANLIB}" \
22886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22887 install-info) \
22888 || exit 1
22891 .PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
22892 maybe-installcheck-target-qthreads:
22894 installcheck-target-qthreads: \
22895 configure-target-qthreads
22896 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22897 r=`${PWD_COMMAND}`; export r; \
22898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22899 $(SET_LIB_PATH) \
22900 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
22901 for flag in $(EXTRA_TARGET_FLAGS); do \
22902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22903 done; \
22904 (cd $(TARGET_SUBDIR)/qthreads && \
22905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22907 "RANLIB=$${RANLIB}" \
22908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22909 installcheck) \
22910 || exit 1
22913 .PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
22914 maybe-mostlyclean-target-qthreads:
22916 mostlyclean-target-qthreads:
22917 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22918 r=`${PWD_COMMAND}`; export r; \
22919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22920 $(SET_LIB_PATH) \
22921 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
22922 for flag in $(EXTRA_TARGET_FLAGS); do \
22923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22924 done; \
22925 (cd $(TARGET_SUBDIR)/qthreads && \
22926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22928 "RANLIB=$${RANLIB}" \
22929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22930 mostlyclean) \
22931 || exit 1
22934 .PHONY: maybe-clean-target-qthreads clean-target-qthreads
22935 maybe-clean-target-qthreads:
22937 clean-target-qthreads:
22938 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22939 r=`${PWD_COMMAND}`; export r; \
22940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22941 $(SET_LIB_PATH) \
22942 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
22943 for flag in $(EXTRA_TARGET_FLAGS); do \
22944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22945 done; \
22946 (cd $(TARGET_SUBDIR)/qthreads && \
22947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22949 "RANLIB=$${RANLIB}" \
22950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22951 clean) \
22952 || exit 1
22955 .PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
22956 maybe-distclean-target-qthreads:
22958 distclean-target-qthreads:
22959 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22960 r=`${PWD_COMMAND}`; export r; \
22961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22962 $(SET_LIB_PATH) \
22963 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
22964 for flag in $(EXTRA_TARGET_FLAGS); do \
22965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22966 done; \
22967 (cd $(TARGET_SUBDIR)/qthreads && \
22968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22970 "RANLIB=$${RANLIB}" \
22971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22972 distclean) \
22973 || exit 1
22976 .PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
22977 maybe-maintainer-clean-target-qthreads:
22979 maintainer-clean-target-qthreads:
22980 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
22981 r=`${PWD_COMMAND}`; export r; \
22982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22983 $(SET_LIB_PATH) \
22984 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
22985 for flag in $(EXTRA_TARGET_FLAGS); do \
22986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22987 done; \
22988 (cd $(TARGET_SUBDIR)/qthreads && \
22989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22991 "RANLIB=$${RANLIB}" \
22992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22993 maintainer-clean) \
22994 || exit 1
22998 .PHONY: configure-target-rda maybe-configure-target-rda
22999 maybe-configure-target-rda:
23001 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23002 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
23003 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
23004 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
23005 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
23007 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
23008 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
23009 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
23010 r=`${PWD_COMMAND}`; export r; \
23011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23012 $(SET_LIB_PATH) \
23013 AR="$(AR_FOR_TARGET)"; export AR; \
23014 AS="$(AS_FOR_TARGET)"; export AS; \
23015 CC="$(CC_FOR_TARGET)"; export CC; \
23016 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23017 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23018 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23019 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23020 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23021 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23022 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23023 LD="$(LD_FOR_TARGET)"; export LD; \
23024 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23025 NM="$(NM_FOR_TARGET)"; export NM; \
23026 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23027 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23028 echo Configuring in $(TARGET_SUBDIR)/rda; \
23029 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
23030 case $(srcdir) in \
23031 /* | [A-Za-z]:[\\/]*) \
23032 topdir=$(srcdir) ;; \
23033 *) \
23034 case "$(TARGET_SUBDIR)" in \
23035 .) topdir="../$(srcdir)" ;; \
23036 *) topdir="../../$(srcdir)" ;; \
23037 esac ;; \
23038 esac; \
23039 srcdiroption="--srcdir=$${topdir}/rda"; \
23040 libsrcdir="$$s/rda"; \
23041 rm -f no-such-file || : ; \
23042 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23043 $(TARGET_CONFIGARGS) $${srcdiroption} \
23044 --with-target-subdir="$(TARGET_SUBDIR)" \
23045 || exit 1
23047 .PHONY: all-target-rda maybe-all-target-rda
23048 maybe-all-target-rda:
23049 all-target-rda: configure-target-rda
23050 @r=`${PWD_COMMAND}`; export r; \
23051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23052 $(SET_LIB_PATH) \
23053 (cd $(TARGET_SUBDIR)/rda && \
23054 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23056 .PHONY: check-target-rda maybe-check-target-rda
23057 maybe-check-target-rda:
23059 check-target-rda:
23060 @r=`${PWD_COMMAND}`; export r; \
23061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23062 $(SET_LIB_PATH) \
23063 (cd $(TARGET_SUBDIR)/rda && \
23064 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23067 .PHONY: install-target-rda maybe-install-target-rda
23068 maybe-install-target-rda:
23070 install-target-rda: installdirs
23071 @r=`${PWD_COMMAND}`; export r; \
23072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23073 $(SET_LIB_PATH) \
23074 (cd $(TARGET_SUBDIR)/rda && \
23075 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23078 # Other targets (info, dvi, etc.)
23080 .PHONY: maybe-info-target-rda info-target-rda
23081 maybe-info-target-rda:
23083 info-target-rda: \
23084 configure-target-rda
23085 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23086 r=`${PWD_COMMAND}`; export r; \
23087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23088 $(SET_LIB_PATH) \
23089 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
23090 for flag in $(EXTRA_TARGET_FLAGS); do \
23091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23092 done; \
23093 (cd $(TARGET_SUBDIR)/rda && \
23094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23096 "RANLIB=$${RANLIB}" \
23097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23098 info) \
23099 || exit 1
23102 .PHONY: maybe-dvi-target-rda dvi-target-rda
23103 maybe-dvi-target-rda:
23105 dvi-target-rda: \
23106 configure-target-rda
23107 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23108 r=`${PWD_COMMAND}`; export r; \
23109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23110 $(SET_LIB_PATH) \
23111 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
23112 for flag in $(EXTRA_TARGET_FLAGS); do \
23113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23114 done; \
23115 (cd $(TARGET_SUBDIR)/rda && \
23116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23118 "RANLIB=$${RANLIB}" \
23119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23120 dvi) \
23121 || exit 1
23124 .PHONY: maybe-TAGS-target-rda TAGS-target-rda
23125 maybe-TAGS-target-rda:
23127 TAGS-target-rda: \
23128 configure-target-rda
23129 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23130 r=`${PWD_COMMAND}`; export r; \
23131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23132 $(SET_LIB_PATH) \
23133 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
23134 for flag in $(EXTRA_TARGET_FLAGS); do \
23135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23136 done; \
23137 (cd $(TARGET_SUBDIR)/rda && \
23138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23140 "RANLIB=$${RANLIB}" \
23141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23142 TAGS) \
23143 || exit 1
23146 .PHONY: maybe-install-info-target-rda install-info-target-rda
23147 maybe-install-info-target-rda:
23149 install-info-target-rda: \
23150 configure-target-rda \
23151 info-target-rda
23152 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23153 r=`${PWD_COMMAND}`; export r; \
23154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23155 $(SET_LIB_PATH) \
23156 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
23157 for flag in $(EXTRA_TARGET_FLAGS); do \
23158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23159 done; \
23160 (cd $(TARGET_SUBDIR)/rda && \
23161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23163 "RANLIB=$${RANLIB}" \
23164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23165 install-info) \
23166 || exit 1
23169 .PHONY: maybe-installcheck-target-rda installcheck-target-rda
23170 maybe-installcheck-target-rda:
23172 installcheck-target-rda: \
23173 configure-target-rda
23174 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23175 r=`${PWD_COMMAND}`; export r; \
23176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23177 $(SET_LIB_PATH) \
23178 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
23179 for flag in $(EXTRA_TARGET_FLAGS); do \
23180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23181 done; \
23182 (cd $(TARGET_SUBDIR)/rda && \
23183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23185 "RANLIB=$${RANLIB}" \
23186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23187 installcheck) \
23188 || exit 1
23191 .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
23192 maybe-mostlyclean-target-rda:
23194 mostlyclean-target-rda:
23195 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23196 r=`${PWD_COMMAND}`; export r; \
23197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23198 $(SET_LIB_PATH) \
23199 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
23200 for flag in $(EXTRA_TARGET_FLAGS); do \
23201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23202 done; \
23203 (cd $(TARGET_SUBDIR)/rda && \
23204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23206 "RANLIB=$${RANLIB}" \
23207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23208 mostlyclean) \
23209 || exit 1
23212 .PHONY: maybe-clean-target-rda clean-target-rda
23213 maybe-clean-target-rda:
23215 clean-target-rda:
23216 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23217 r=`${PWD_COMMAND}`; export r; \
23218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23219 $(SET_LIB_PATH) \
23220 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
23221 for flag in $(EXTRA_TARGET_FLAGS); do \
23222 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23223 done; \
23224 (cd $(TARGET_SUBDIR)/rda && \
23225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23227 "RANLIB=$${RANLIB}" \
23228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23229 clean) \
23230 || exit 1
23233 .PHONY: maybe-distclean-target-rda distclean-target-rda
23234 maybe-distclean-target-rda:
23236 distclean-target-rda:
23237 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23238 r=`${PWD_COMMAND}`; export r; \
23239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23240 $(SET_LIB_PATH) \
23241 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
23242 for flag in $(EXTRA_TARGET_FLAGS); do \
23243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23244 done; \
23245 (cd $(TARGET_SUBDIR)/rda && \
23246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23248 "RANLIB=$${RANLIB}" \
23249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23250 distclean) \
23251 || exit 1
23254 .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
23255 maybe-maintainer-clean-target-rda:
23257 maintainer-clean-target-rda:
23258 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
23259 r=`${PWD_COMMAND}`; export r; \
23260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23261 $(SET_LIB_PATH) \
23262 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
23263 for flag in $(EXTRA_TARGET_FLAGS); do \
23264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23265 done; \
23266 (cd $(TARGET_SUBDIR)/rda && \
23267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23269 "RANLIB=$${RANLIB}" \
23270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23271 maintainer-clean) \
23272 || exit 1
23276 .PHONY: configure-target-libada maybe-configure-target-libada
23277 maybe-configure-target-libada:
23279 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23280 $(TARGET_SUBDIR)/libada/multilib.out: multilib.out
23281 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
23282 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
23283 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
23285 configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
23286 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
23287 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
23288 r=`${PWD_COMMAND}`; export r; \
23289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23290 $(SET_LIB_PATH) \
23291 AR="$(AR_FOR_TARGET)"; export AR; \
23292 AS="$(AS_FOR_TARGET)"; export AS; \
23293 CC="$(CC_FOR_TARGET)"; export CC; \
23294 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23295 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23296 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23297 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23298 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23299 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23300 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23301 LD="$(LD_FOR_TARGET)"; export LD; \
23302 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23303 NM="$(NM_FOR_TARGET)"; export NM; \
23304 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23305 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23306 echo Configuring in $(TARGET_SUBDIR)/libada; \
23307 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
23308 case $(srcdir) in \
23309 /* | [A-Za-z]:[\\/]*) \
23310 topdir=$(srcdir) ;; \
23311 *) \
23312 case "$(TARGET_SUBDIR)" in \
23313 .) topdir="../$(srcdir)" ;; \
23314 *) topdir="../../$(srcdir)" ;; \
23315 esac ;; \
23316 esac; \
23317 srcdiroption="--srcdir=$${topdir}/libada"; \
23318 libsrcdir="$$s/libada"; \
23319 rm -f no-such-file || : ; \
23320 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23321 $(TARGET_CONFIGARGS) $${srcdiroption} \
23322 --with-target-subdir="$(TARGET_SUBDIR)" \
23323 || exit 1
23325 .PHONY: all-target-libada maybe-all-target-libada
23326 maybe-all-target-libada:
23327 all-target-libada: configure-target-libada
23328 @r=`${PWD_COMMAND}`; export r; \
23329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23330 $(SET_LIB_PATH) \
23331 (cd $(TARGET_SUBDIR)/libada && \
23332 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23334 .PHONY: check-target-libada maybe-check-target-libada
23335 maybe-check-target-libada:
23337 check-target-libada:
23338 @r=`${PWD_COMMAND}`; export r; \
23339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23340 $(SET_LIB_PATH) \
23341 (cd $(TARGET_SUBDIR)/libada && \
23342 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23345 .PHONY: install-target-libada maybe-install-target-libada
23346 maybe-install-target-libada:
23348 install-target-libada: installdirs
23349 @r=`${PWD_COMMAND}`; export r; \
23350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23351 $(SET_LIB_PATH) \
23352 (cd $(TARGET_SUBDIR)/libada && \
23353 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23356 # Other targets (info, dvi, etc.)
23358 .PHONY: maybe-info-target-libada info-target-libada
23359 maybe-info-target-libada:
23361 info-target-libada: \
23362 configure-target-libada
23363 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23364 r=`${PWD_COMMAND}`; export r; \
23365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23366 $(SET_LIB_PATH) \
23367 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
23368 for flag in $(EXTRA_TARGET_FLAGS); do \
23369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23370 done; \
23371 (cd $(TARGET_SUBDIR)/libada && \
23372 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23373 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23374 "RANLIB=$${RANLIB}" \
23375 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23376 info) \
23377 || exit 1
23380 .PHONY: maybe-dvi-target-libada dvi-target-libada
23381 maybe-dvi-target-libada:
23383 dvi-target-libada: \
23384 configure-target-libada
23385 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23386 r=`${PWD_COMMAND}`; export r; \
23387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23388 $(SET_LIB_PATH) \
23389 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
23390 for flag in $(EXTRA_TARGET_FLAGS); do \
23391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23392 done; \
23393 (cd $(TARGET_SUBDIR)/libada && \
23394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23396 "RANLIB=$${RANLIB}" \
23397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23398 dvi) \
23399 || exit 1
23402 .PHONY: maybe-TAGS-target-libada TAGS-target-libada
23403 maybe-TAGS-target-libada:
23405 TAGS-target-libada: \
23406 configure-target-libada
23407 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23408 r=`${PWD_COMMAND}`; export r; \
23409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23410 $(SET_LIB_PATH) \
23411 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
23412 for flag in $(EXTRA_TARGET_FLAGS); do \
23413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23414 done; \
23415 (cd $(TARGET_SUBDIR)/libada && \
23416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23418 "RANLIB=$${RANLIB}" \
23419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23420 TAGS) \
23421 || exit 1
23424 .PHONY: maybe-install-info-target-libada install-info-target-libada
23425 maybe-install-info-target-libada:
23427 install-info-target-libada: \
23428 configure-target-libada \
23429 info-target-libada
23430 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23431 r=`${PWD_COMMAND}`; export r; \
23432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23433 $(SET_LIB_PATH) \
23434 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
23435 for flag in $(EXTRA_TARGET_FLAGS); do \
23436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23437 done; \
23438 (cd $(TARGET_SUBDIR)/libada && \
23439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23441 "RANLIB=$${RANLIB}" \
23442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23443 install-info) \
23444 || exit 1
23447 .PHONY: maybe-installcheck-target-libada installcheck-target-libada
23448 maybe-installcheck-target-libada:
23450 installcheck-target-libada: \
23451 configure-target-libada
23452 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23453 r=`${PWD_COMMAND}`; export r; \
23454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23455 $(SET_LIB_PATH) \
23456 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
23457 for flag in $(EXTRA_TARGET_FLAGS); do \
23458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23459 done; \
23460 (cd $(TARGET_SUBDIR)/libada && \
23461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23463 "RANLIB=$${RANLIB}" \
23464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23465 installcheck) \
23466 || exit 1
23469 .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
23470 maybe-mostlyclean-target-libada:
23472 mostlyclean-target-libada:
23473 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23474 r=`${PWD_COMMAND}`; export r; \
23475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23476 $(SET_LIB_PATH) \
23477 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
23478 for flag in $(EXTRA_TARGET_FLAGS); do \
23479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23480 done; \
23481 (cd $(TARGET_SUBDIR)/libada && \
23482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23484 "RANLIB=$${RANLIB}" \
23485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23486 mostlyclean) \
23487 || exit 1
23490 .PHONY: maybe-clean-target-libada clean-target-libada
23491 maybe-clean-target-libada:
23493 clean-target-libada:
23494 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23495 r=`${PWD_COMMAND}`; export r; \
23496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23497 $(SET_LIB_PATH) \
23498 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
23499 for flag in $(EXTRA_TARGET_FLAGS); do \
23500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23501 done; \
23502 (cd $(TARGET_SUBDIR)/libada && \
23503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23505 "RANLIB=$${RANLIB}" \
23506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23507 clean) \
23508 || exit 1
23511 .PHONY: maybe-distclean-target-libada distclean-target-libada
23512 maybe-distclean-target-libada:
23514 distclean-target-libada:
23515 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23516 r=`${PWD_COMMAND}`; export r; \
23517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23518 $(SET_LIB_PATH) \
23519 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
23520 for flag in $(EXTRA_TARGET_FLAGS); do \
23521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23522 done; \
23523 (cd $(TARGET_SUBDIR)/libada && \
23524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23526 "RANLIB=$${RANLIB}" \
23527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23528 distclean) \
23529 || exit 1
23532 .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
23533 maybe-maintainer-clean-target-libada:
23535 maintainer-clean-target-libada:
23536 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
23537 r=`${PWD_COMMAND}`; export r; \
23538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23539 $(SET_LIB_PATH) \
23540 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
23541 for flag in $(EXTRA_TARGET_FLAGS); do \
23542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23543 done; \
23544 (cd $(TARGET_SUBDIR)/libada && \
23545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23547 "RANLIB=$${RANLIB}" \
23548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23549 maintainer-clean) \
23550 || exit 1
23555 # ----------
23556 # GCC module
23557 # ----------
23559 # Unfortunately, while gcc _should_ be a host module,
23560 # libgcc is a target module, and gen* programs are
23561 # build modules. So GCC is a sort of hybrid.
23563 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
23564 # Don't use shared host config.cache, as it will confuse later
23565 # directories; GCC wants slightly different values for some
23566 # precious variables. *sigh*
23568 # We must skip configuring if toplevel bootstrap is going.
23569 .PHONY: configure-gcc maybe-configure-gcc
23570 maybe-configure-gcc:
23571 configure-gcc:
23572 @test ! -f gcc/Makefile || exit 0; \
23573 [ -f stage_last ] && exit 0; \
23574 [ -d gcc ] || mkdir gcc; \
23575 r=`${PWD_COMMAND}`; export r; \
23576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23577 CC="$(CC)"; export CC; \
23578 CFLAGS="$(CFLAGS)"; export CFLAGS; \
23579 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23580 CXX="$(CXX)"; export CXX; \
23581 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
23582 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
23583 AR="$(AR)"; export AR; \
23584 AS="$(AS)"; export AS; \
23585 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
23586 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
23587 LD="$(LD)"; export LD; \
23588 NM="$(NM)"; export NM; \
23589 RANLIB="$(RANLIB)"; export RANLIB; \
23590 WINDRES="$(WINDRES)"; export WINDRES; \
23591 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
23592 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
23593 echo Configuring in gcc; \
23594 cd gcc || exit 1; \
23595 case $(srcdir) in \
23596 \.) \
23597 srcdiroption="--srcdir=."; \
23598 libsrcdir=".";; \
23599 /* | [A-Za-z]:[\\/]*) \
23600 srcdiroption="--srcdir=$(srcdir)/gcc"; \
23601 libsrcdir="$$s/gcc";; \
23602 *) \
23603 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
23604 libsrcdir="$$s/gcc";; \
23605 esac; \
23606 $(SHELL) $${libsrcdir}/configure \
23607 $(HOST_CONFIGARGS) $${srcdiroption} \
23608 || exit 1
23610 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
23611 # causes trouble. This wart will be fixed eventually by moving
23612 # the bootstrap behavior to this file.
23613 .PHONY: all-gcc maybe-all-gcc
23614 maybe-all-gcc:
23615 all-gcc: configure-gcc
23616 r=`${PWD_COMMAND}`; export r; \
23617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23618 if [ -f stage_last ] ; then \
23619 true ; \
23620 elif [ -f gcc/stage_last ] ; then \
23621 $(SET_LIB_PATH) \
23622 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
23623 else \
23624 $(SET_LIB_PATH) \
23625 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
23628 # Building GCC uses some tools for rebuilding "source" files
23629 # like texinfo, bison/byacc, etc. So we must depend on those.
23631 # While building GCC, it may be necessary to run various target
23632 # programs like the assembler, linker, etc. So we depend on
23633 # those too.
23635 # In theory, on an SMP all those dependencies can be resolved
23636 # in parallel.
23638 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
23639 .PHONY: $(GCC_STRAP_TARGETS)
23640 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
23641 @r=`${PWD_COMMAND}`; export r; \
23642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23643 $(SET_LIB_PATH) \
23644 echo "Bootstrapping the compiler"; \
23645 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
23646 @r=`${PWD_COMMAND}`; export r; \
23647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23648 case "$@" in \
23649 *bootstrap4-lean ) \
23650 msg="Comparing stage3 and stage4 of the compiler"; \
23651 compare=compare3-lean ;; \
23652 *bootstrap4 ) \
23653 msg="Comparing stage3 and stage4 of the compiler"; \
23654 compare=compare3 ;; \
23655 *-lean ) \
23656 msg="Comparing stage2 and stage3 of the compiler"; \
23657 compare=compare-lean ;; \
23658 * ) \
23659 msg="Comparing stage2 and stage3 of the compiler"; \
23660 compare=compare ;; \
23661 esac; \
23662 $(SET_LIB_PATH) \
23663 echo "$$msg"; \
23664 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
23665 @r=`${PWD_COMMAND}`; export r; \
23666 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23667 $(SET_LIB_PATH) \
23668 echo "Building runtime libraries"; \
23669 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
23671 profiledbootstrap: all-bootstrap configure-gcc
23672 @r=`${PWD_COMMAND}`; export r; \
23673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23674 $(SET_LIB_PATH) \
23675 echo "Bootstrapping the compiler"; \
23676 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
23677 @r=`${PWD_COMMAND}`; export r; \
23678 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23679 $(SET_LIB_PATH) \
23680 echo "Building runtime libraries and training compiler"; \
23681 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
23682 @r=`${PWD_COMMAND}`; export r; \
23683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23684 $(SET_LIB_PATH) \
23685 echo "Building feedback based compiler"; \
23686 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
23688 .PHONY: cross
23689 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
23690 @r=`${PWD_COMMAND}`; export r; \
23691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23692 $(SET_LIB_PATH) \
23693 echo "Building the C and C++ compiler"; \
23694 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
23695 @r=`${PWD_COMMAND}`; export r; \
23696 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23697 $(SET_LIB_PATH) \
23698 echo "Building runtime libraries"; \
23699 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
23700 LANGUAGES="c c++" all
23702 .PHONY: check-gcc maybe-check-gcc
23703 maybe-check-gcc:
23704 check-gcc:
23705 @if [ -f ./gcc/Makefile ] ; then \
23706 r=`${PWD_COMMAND}`; export r; \
23707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23708 $(SET_LIB_PATH) \
23709 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
23710 else \
23711 true; \
23714 .PHONY: check-gcc-c++
23715 check-gcc-c++:
23716 @if [ -f ./gcc/Makefile ] ; then \
23717 r=`${PWD_COMMAND}`; export r; \
23718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23719 $(SET_LIB_PATH) \
23720 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
23721 else \
23722 true; \
23725 .PHONY: check-c++
23726 check-c++: check-target-libstdc++-v3 check-gcc-c++
23728 .PHONY: install-gcc maybe-install-gcc
23729 maybe-install-gcc:
23730 install-gcc:
23731 @if [ -f ./gcc/Makefile ] ; then \
23732 r=`${PWD_COMMAND}`; export r; \
23733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23734 $(SET_LIB_PATH) \
23735 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
23736 else \
23737 true; \
23740 # Install the gcc headers files, but not the fixed include files,
23741 # which Cygnus is not allowed to distribute. This rule is very
23742 # dependent on the workings of the gcc Makefile.in.
23743 .PHONY: gcc-no-fixedincludes
23744 gcc-no-fixedincludes:
23745 @if [ -f ./gcc/Makefile ]; then \
23746 rm -rf gcc/tmp-include; \
23747 mv gcc/include gcc/tmp-include 2>/dev/null; \
23748 mkdir gcc/include; \
23749 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
23750 touch gcc/stmp-fixinc gcc/include/fixed; \
23751 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
23752 r=`${PWD_COMMAND}`; export r; \
23753 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
23754 $(SET_LIB_PATH) \
23755 (cd ./gcc && \
23756 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
23757 rm -rf gcc/include; \
23758 mv gcc/tmp-include gcc/include 2>/dev/null; \
23759 else true; fi
23761 # Other targets (dvi, info, etc.)
23763 .PHONY: maybe-info-gcc info-gcc
23764 maybe-info-gcc:
23765 info-gcc: \
23766 configure-gcc
23767 @[ -f ./gcc/Makefile ] || exit 0; \
23768 r=`${PWD_COMMAND}`; export r; \
23769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23770 $(SET_LIB_PATH) \
23771 for flag in $(EXTRA_GCC_FLAGS); do \
23772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23773 done; \
23774 echo "Doing info in gcc" ; \
23775 (cd gcc && \
23776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23778 "RANLIB=$${RANLIB}" \
23779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23780 info) \
23781 || exit 1
23784 .PHONY: maybe-dvi-gcc dvi-gcc
23785 maybe-dvi-gcc:
23786 dvi-gcc: \
23787 configure-gcc
23788 @[ -f ./gcc/Makefile ] || exit 0; \
23789 r=`${PWD_COMMAND}`; export r; \
23790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23791 $(SET_LIB_PATH) \
23792 for flag in $(EXTRA_GCC_FLAGS); do \
23793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23794 done; \
23795 echo "Doing dvi in gcc" ; \
23796 (cd gcc && \
23797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23799 "RANLIB=$${RANLIB}" \
23800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23801 dvi) \
23802 || exit 1
23805 .PHONY: maybe-TAGS-gcc TAGS-gcc
23806 maybe-TAGS-gcc:
23807 TAGS-gcc: \
23808 configure-gcc
23809 @[ -f ./gcc/Makefile ] || exit 0; \
23810 r=`${PWD_COMMAND}`; export r; \
23811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23812 $(SET_LIB_PATH) \
23813 for flag in $(EXTRA_GCC_FLAGS); do \
23814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23815 done; \
23816 echo "Doing TAGS in gcc" ; \
23817 (cd gcc && \
23818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23820 "RANLIB=$${RANLIB}" \
23821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23822 TAGS) \
23823 || exit 1
23826 .PHONY: maybe-install-info-gcc install-info-gcc
23827 maybe-install-info-gcc:
23828 install-info-gcc: \
23829 configure-gcc \
23830 info-gcc
23831 @[ -f ./gcc/Makefile ] || exit 0; \
23832 r=`${PWD_COMMAND}`; export r; \
23833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23834 $(SET_LIB_PATH) \
23835 for flag in $(EXTRA_GCC_FLAGS); do \
23836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23837 done; \
23838 echo "Doing install-info in gcc" ; \
23839 (cd gcc && \
23840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23842 "RANLIB=$${RANLIB}" \
23843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23844 install-info) \
23845 || exit 1
23848 .PHONY: maybe-installcheck-gcc installcheck-gcc
23849 maybe-installcheck-gcc:
23850 installcheck-gcc: \
23851 configure-gcc
23852 @[ -f ./gcc/Makefile ] || exit 0; \
23853 r=`${PWD_COMMAND}`; export r; \
23854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23855 $(SET_LIB_PATH) \
23856 for flag in $(EXTRA_GCC_FLAGS); do \
23857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23858 done; \
23859 echo "Doing installcheck in gcc" ; \
23860 (cd gcc && \
23861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23863 "RANLIB=$${RANLIB}" \
23864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23865 installcheck) \
23866 || exit 1
23869 .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
23870 maybe-mostlyclean-gcc:
23871 mostlyclean-gcc:
23872 @[ -f ./gcc/Makefile ] || exit 0; \
23873 r=`${PWD_COMMAND}`; export r; \
23874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23875 $(SET_LIB_PATH) \
23876 for flag in $(EXTRA_GCC_FLAGS); do \
23877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23878 done; \
23879 echo "Doing mostlyclean in gcc" ; \
23880 (cd gcc && \
23881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23883 "RANLIB=$${RANLIB}" \
23884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23885 mostlyclean) \
23886 || exit 1
23889 .PHONY: maybe-clean-gcc clean-gcc
23890 maybe-clean-gcc:
23891 clean-gcc:
23892 @[ -f ./gcc/Makefile ] || exit 0; \
23893 r=`${PWD_COMMAND}`; export r; \
23894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23895 $(SET_LIB_PATH) \
23896 for flag in $(EXTRA_GCC_FLAGS); do \
23897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23898 done; \
23899 echo "Doing clean in gcc" ; \
23900 (cd gcc && \
23901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23903 "RANLIB=$${RANLIB}" \
23904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23905 clean) \
23906 || exit 1
23909 .PHONY: maybe-distclean-gcc distclean-gcc
23910 maybe-distclean-gcc:
23911 distclean-gcc:
23912 @[ -f ./gcc/Makefile ] || exit 0; \
23913 r=`${PWD_COMMAND}`; export r; \
23914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23915 $(SET_LIB_PATH) \
23916 for flag in $(EXTRA_GCC_FLAGS); do \
23917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23918 done; \
23919 echo "Doing distclean in gcc" ; \
23920 (cd gcc && \
23921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23923 "RANLIB=$${RANLIB}" \
23924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23925 distclean) \
23926 || exit 1
23929 .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
23930 maybe-maintainer-clean-gcc:
23931 maintainer-clean-gcc:
23932 @[ -f ./gcc/Makefile ] || exit 0; \
23933 r=`${PWD_COMMAND}`; export r; \
23934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23935 $(SET_LIB_PATH) \
23936 for flag in $(EXTRA_GCC_FLAGS); do \
23937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23938 done; \
23939 echo "Doing maintainer-clean in gcc" ; \
23940 (cd gcc && \
23941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23943 "RANLIB=$${RANLIB}" \
23944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23945 maintainer-clean) \
23946 || exit 1
23950 # ---------------------
23951 # GCC bootstrap support
23952 # ---------------------
23954 # We name the directories for the various stages "stage1-gcc",
23955 # "stage2-gcc","stage3-gcc", etc.
23956 # Unfortunately, the 'compare' process will fail (on debugging information)
23957 # if any directory names are different!
23958 # So in the building rule for each stage, we relocate them before and after.
23959 # The current one is 'gcc', while the previous one is 'prev-gcc'. (The
23960 # current one must be 'gcc' for now because the scripts in that directory
23961 # assume it.)
23962 # At the end of the bootstrap, 'stage3-gcc' must be moved to 'gcc' so that
23963 # libraries can find it. Ick!
23965 # Bugs: This is almost certainly not parallel-make safe.
23967 # 'touch' doesn't work right on some platforms.
23968 STAMP = echo timestamp >
23970 # Only build the C compiler for stage1, because that is the only one that
23971 # we can guarantee will build with the native compiler, and also it is the
23972 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
23973 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
23974 # overrideable (for a bootstrap build stage1 also builds gcc.info).
23976 STAGE1_CFLAGS=@stage1_cflags@
23977 STAGE1_LANGUAGES=@stage1_languages@
23979 # For stage 1:
23980 # * We force-disable intermodule optimizations, even if
23981 # --enable-intermodule was passed, since the installed compiler probably
23982 # can't handle them. Luckily, autoconf always respects
23983 # the last argument when conflicting --enable arguments are passed.
23984 # * Likewise, we force-disable coverage flags, since the installed compiler
23985 # probably has never heard of them.
23986 # * We build only C (and possibly Ada).
23987 configure-stage1-gcc:
23988 echo configure-stage1-gcc > stage_last ; \
23989 if [ -f stage1-gcc/Makefile ] ; then \
23990 $(STAMP) configure-stage1-gcc ; \
23991 exit 0; \
23992 else \
23993 true ; \
23994 fi ; \
23995 [ -d stage1-gcc ] || mkdir stage1-gcc; \
23996 mv stage1-gcc gcc ; \
23997 r=`${PWD_COMMAND}`; export r; \
23998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23999 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24000 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24001 CC="$(CC)"; export CC; \
24002 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24003 CXX="$(CXX)"; export CXX; \
24004 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24005 AR="$(AR)"; export AR; \
24006 AS="$(AS)"; export AS; \
24007 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
24008 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24009 LD="$(LD)"; export LD; \
24010 NM="$(NM)"; export NM; \
24011 RANLIB="$(RANLIB)"; export RANLIB; \
24012 WINDRES="$(WINDRES)"; export WINDRES; \
24013 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24014 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24015 echo Configuring stage 1 in gcc; \
24016 cd gcc || exit 1; \
24017 case $(srcdir) in \
24018 \.) \
24019 srcdiroption="--srcdir=."; \
24020 libsrcdir=".";; \
24021 /* | [A-Za-z]:[\\/]*) \
24022 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24023 libsrcdir="$$s/gcc";; \
24024 *) \
24025 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24026 libsrcdir="$$s/gcc";; \
24027 esac; \
24028 $(SHELL) $${libsrcdir}/configure \
24029 $(HOST_CONFIGARGS) $${srcdiroption} \
24030 --disable-intermodule --disable-coverage \
24031 --enable-languages="$(STAGE1_LANGUAGES)"; \
24032 cd .. ; \
24033 mv gcc stage1-gcc ; \
24034 $(STAMP) configure-stage1-gcc
24036 # Real targets act phony if they depend on phony targets; this hack
24037 # prevents gratuitous rebuilding of stage 1.
24038 prebootstrap:
24039 $(MAKE) all-bootstrap
24040 $(STAMP) prebootstrap
24042 all-stage1-gcc: configure-stage1-gcc prebootstrap
24043 echo all-stage1-gcc > stage_last ; \
24044 r=`${PWD_COMMAND}`; export r; \
24045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24046 mv stage1-gcc gcc ; \
24047 cd gcc && \
24048 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24049 CFLAGS="$(STAGE1_CFLAGS)" \
24050 || exit 1 ; \
24051 cd .. ; \
24052 mv gcc stage1-gcc ; \
24053 $(STAMP) all-stage1-gcc
24055 # TODO: Deal with STAGE_PREFIX (which is only for ada, incidentally)
24056 # Possibly pass --enable-werror-always (depending on --enable-werror);
24057 # that's what @stage2_werror_flag@ is for
24058 configure-stage2-gcc: all-stage1-gcc
24059 echo configure-stage2-gcc > stage_last ; \
24060 if [ -f stage2-gcc/Makefile ] ; then \
24061 $(STAMP) configure-stage2-gcc ; \
24062 exit 0; \
24063 else \
24064 true ; \
24065 fi ; \
24066 [ -d stage2-gcc ] || mkdir stage2-gcc; \
24067 mv stage2-gcc gcc ; \
24068 mv stage1-gcc prev-gcc ; \
24069 r=`${PWD_COMMAND}`; export r; \
24070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24071 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24072 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24073 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24074 CXX="$(CXX)"; export CXX; \
24075 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24076 AR="$(AR)"; export AR; \
24077 AS="$(AS)"; export AS; \
24078 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24079 LD="$(LD)"; export LD; \
24080 NM="$(NM)"; export NM; \
24081 RANLIB="$(RANLIB)"; export RANLIB; \
24082 WINDRES="$(WINDRES)"; export WINDRES; \
24083 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24084 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24085 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
24086 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
24087 echo Configuring stage 2 in gcc; \
24088 cd gcc || exit 1; \
24089 case $(srcdir) in \
24090 \.) \
24091 srcdiroption="--srcdir=."; \
24092 libsrcdir=".";; \
24093 /* | [A-Za-z]:[\\/]*) \
24094 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24095 libsrcdir="$$s/gcc";; \
24096 *) \
24097 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24098 libsrcdir="$$s/gcc";; \
24099 esac; \
24100 $(SHELL) $${libsrcdir}/configure \
24101 $(HOST_CONFIGARGS) $${srcdiroption} @stage2_werror_flag@ ; \
24102 cd .. ; \
24103 mv gcc stage2-gcc ; \
24104 mv prev-gcc stage1-gcc ; \
24105 $(STAMP) configure-stage2-gcc
24107 # Flags to pass to stage2 and later makes.
24108 BOOT_CFLAGS= -g -O2
24109 POSTSTAGE1_FLAGS_TO_PASS = \
24110 CFLAGS="$(BOOT_CFLAGS)" \
24111 ADAC="\$$(CC)"
24113 all-stage2-gcc: all-stage1-gcc configure-stage2-gcc
24114 echo all-stage2-gcc > stage_last ; \
24115 r=`${PWD_COMMAND}`; export r; \
24116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24117 mv stage2-gcc gcc ; \
24118 mv stage1-gcc prev-gcc ; \
24119 cd gcc && \
24120 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24121 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24122 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24123 STAGE_PREFIX=$$r/prev-gcc/ \
24124 $(POSTSTAGE1_FLAGS_TO_PASS) || exit 1 ; \
24125 cd .. ; \
24126 mv prev-gcc stage1-gcc ; \
24127 mv gcc stage2-gcc ; \
24128 $(STAMP) all-stage2-gcc
24130 configure-stage3-gcc: all-stage2-gcc
24131 echo configure-stage3-gcc > stage_last ; \
24132 if [ -f stage3-gcc/Makefile ] ; then \
24133 $(STAMP) configure-stage3-gcc ; \
24134 exit 0; \
24135 else \
24136 true ; \
24137 fi ; \
24138 [ -d stage3-gcc ] || mkdir stage3-gcc; \
24139 mv stage3-gcc gcc ; \
24140 mv stage2-gcc prev-gcc ; \
24141 r=`${PWD_COMMAND}`; export r; \
24142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24143 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24144 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24145 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24146 CXX="$(CXX)"; export CXX; \
24147 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24148 AR="$(AR)"; export AR; \
24149 AS="$(AS)"; export AS; \
24150 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24151 LD="$(LD)"; export LD; \
24152 NM="$(NM)"; export NM; \
24153 RANLIB="$(RANLIB)"; export RANLIB; \
24154 WINDRES="$(WINDRES)"; export WINDRES; \
24155 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24156 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24157 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
24158 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
24159 echo Configuring stage 3 in gcc; \
24160 cd gcc || exit 1; \
24161 case $(srcdir) in \
24162 \.) \
24163 srcdiroption="--srcdir=."; \
24164 libsrcdir=".";; \
24165 /* | [A-Za-z]:[\\/]*) \
24166 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24167 libsrcdir="$$s/gcc";; \
24168 *) \
24169 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24170 libsrcdir="$$s/gcc";; \
24171 esac; \
24172 $(SHELL) $${libsrcdir}/configure \
24173 $(HOST_CONFIGARGS) $${srcdiroption} @stage2_werror_flag@ ; \
24174 cd .. ; \
24175 mv gcc stage3-gcc ; \
24176 mv prev-gcc stage2-gcc ; \
24177 $(STAMP) configure-stage3-gcc
24179 all-stage3-gcc: all-stage2-gcc configure-stage3-gcc
24180 echo all-stage3-gcc > stage_last ; \
24181 r=`${PWD_COMMAND}`; export r; \
24182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24183 mv stage2-gcc prev-gcc ; \
24184 mv stage3-gcc gcc ; \
24185 cd gcc && \
24186 $(MAKE) $(GCC_FLAGS_TO_PASS) \
24187 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24188 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
24189 STAGE_PREFIX=$$r/prev-gcc/ \
24190 $(POSTSTAGE1_FLAGS_TO_PASS) || exit 1 ; \
24191 cd .. ; \
24192 mv prev-gcc stage2-gcc ; \
24193 mv gcc stage3-gcc ; \
24194 $(STAMP) all-stage3-gcc
24196 # We only want to compare .o files, so set this!
24197 objext = .o
24199 compare: all-stage3-gcc
24200 r=`${PWD_COMMAND}`; export r; \
24201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24202 rm -f .bad_compare ; \
24203 cd stage3-gcc; \
24204 files=`find . -name "*$(objext)" -print` ; \
24205 cd .. ; \
24206 for file in $${files} ; do \
24207 cmp --ignore-initial=16 $$r/stage2-gcc/$$file $$r/stage3-gcc/$$file \
24208 > /dev/null 2>&1; \
24209 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
24210 done ; \
24211 if [ -f .bad_compare ]; then \
24212 echo "Bootstrap comparison failure!"; \
24213 cat .bad_compare; \
24214 exit 1; \
24215 else \
24216 true; \
24217 fi ; \
24218 $(STAMP) compare
24220 .PHONY: new-bootstrap
24221 # This target exists so that everything can be made in one pass.
24222 # 'all-gcc' has to avoid stomping on the bootstrap-generated gcc for
24223 # this to work.
24224 new-bootstrap: compare
24225 mv stage3-gcc gcc ; \
24226 $(MAKE) all ; \
24227 mv gcc stage3-gcc
24229 # --------------------------------------
24230 # Dependencies between different modules
24231 # --------------------------------------
24233 # There are two types of dependencies here: 'hard' dependencies, where one
24234 # module simply won't build without the other; and 'soft' dependencies, where
24235 # if the depended-on module is missing, the depending module will do without
24236 # or find a substitute somewhere (perhaps installed). Soft dependencies
24237 # are specified by depending on a 'maybe-' target. If you're not sure,
24238 # it's safer to use a soft dependency.
24240 # Host modules specific to gcc.
24241 # GCC needs to identify certain tools.
24242 # GCC also needs the information exported by the intl configure script.
24243 configure-gcc: maybe-configure-intl maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
24244 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
24245 # This is a slightly kludgy method of getting dependencies on
24246 # all-build-libiberty correct; it would be better to build it every time.
24247 all-gcc: maybe-all-build-libiberty
24248 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
24250 # Host modules specific to gdb.
24251 # GDB needs to know that the simulator is being built.
24252 configure-gdb: maybe-configure-itcl maybe-configure-tcl maybe-configure-tk maybe-configure-sim
24253 GDB_TK = @GDB_TK@
24254 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)
24255 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
24256 configure-libgui: maybe-configure-tcl maybe-configure-tk
24257 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
24259 # Host modules specific to binutils.
24260 configure-bfd: configure-libiberty
24261 all-bfd: maybe-all-libiberty maybe-all-intl
24262 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
24263 # We put install-opcodes before install-binutils because the installed
24264 # binutils might be on PATH, and they might need the shared opcodes
24265 # library.
24266 install-binutils: maybe-install-opcodes
24267 # libopcodes depends on libbfd
24268 install-opcodes: maybe-install-bfd
24269 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
24270 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
24271 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
24272 all-opcodes: maybe-all-bfd maybe-all-libiberty
24274 # Other host modules in the 'src' repository.
24275 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
24276 configure-expect: maybe-configure-tcl maybe-configure-tk
24277 all-expect: maybe-all-tcl maybe-all-tk
24278 configure-itcl: maybe-configure-tcl maybe-configure-tk
24279 all-itcl: maybe-all-tcl maybe-all-tk
24280 # We put install-tcl before install-itcl because itcl wants to run a
24281 # program on installation which uses the Tcl libraries.
24282 install-itcl: maybe-install-tcl
24283 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
24284 install-sid: maybe-install-tcl maybe-install-tk
24285 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
24286 configure-tk: maybe-configure-tcl
24287 all-tk: maybe-all-tcl
24288 configure-tix: maybe-configure-tcl maybe-configure-tk
24289 all-tix: maybe-all-tcl maybe-all-tk
24290 all-texinfo: maybe-all-libiberty
24292 # Other host modules. Warning, these are not well tested.
24293 all-autoconf: maybe-all-m4 maybe-all-texinfo
24294 all-automake: maybe-all-m4 maybe-all-texinfo
24295 all-bison: maybe-all-texinfo
24296 all-diff: maybe-all-libiberty
24297 all-fastjar: maybe-all-zlib maybe-all-libiberty
24298 all-fileutils: maybe-all-libiberty
24299 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
24300 all-gzip: maybe-all-libiberty
24301 all-hello: maybe-all-libiberty
24302 all-m4: maybe-all-libiberty maybe-all-texinfo
24303 all-make: maybe-all-libiberty maybe-all-intl
24304 all-patch: maybe-all-libiberty
24305 all-prms: maybe-all-libiberty
24306 all-recode: maybe-all-libiberty
24307 all-sed: maybe-all-libiberty
24308 all-send-pr: maybe-all-prms
24309 all-tar: maybe-all-libiberty
24310 all-uudecode: maybe-all-libiberty
24312 ALL_GCC = maybe-all-gcc
24313 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
24314 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
24316 # Target modules specific to gcc.
24317 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
24318 configure-target-fastjar: maybe-configure-target-zlib
24319 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
24320 configure-target-libada: $(ALL_GCC_C)
24321 configure-target-libf2c: $(ALL_GCC_C)
24322 all-target-libf2c: maybe-all-target-libiberty
24323 configure-target-libffi: $(ALL_GCC_C)
24324 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
24325 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
24326 configure-target-libobjc: $(ALL_GCC_C)
24327 all-target-libobjc: maybe-all-target-libiberty
24328 configure-target-libstdc++-v3: $(ALL_GCC_C)
24329 all-target-libstdc++-v3: maybe-all-target-libiberty
24330 configure-target-zlib: $(ALL_GCC_C)
24332 # Target modules in the 'src' repository.
24333 configure-target-examples: $(ALL_GCC_C)
24334 configure-target-libgloss: $(ALL_GCC)
24335 all-target-libgloss: maybe-configure-target-newlib
24336 configure-target-libiberty: $(ALL_GCC)
24337 configure-target-libtermcap: $(ALL_GCC_C)
24338 configure-target-newlib: $(ALL_GCC)
24339 configure-target-rda: $(ALL_GCC_C)
24340 configure-target-winsup: $(ALL_GCC_C)
24341 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
24343 # Other target modules. Warning, these are not well tested.
24344 configure-target-gperf: $(ALL_GCC_CXX)
24345 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
24346 configure-target-qthreads: $(ALL_GCC_C)
24348 # Dependencies of maybe-foo on foo. These are used because, for example,
24349 # all-gcc only depends on all-gas if gas is present and being configured.
24350 @maybe_dependencies@
24352 # Serialization dependencies. Host configures don't work well in parallel to
24353 # each other, due to contention over config.cache. Target configures and
24354 # build configures are similar.
24355 @serialization_dependencies@
24357 # --------------------------------
24358 # Regenerating top level configury
24359 # --------------------------------
24361 # Multilib.out tells target dirs what multilibs they should build.
24362 # There is really only one copy. We use the 'timestamp' method to
24363 # work around various timestamp bugs on some systems.
24364 # We use move-if-change so that it's only considered updated when it
24365 # actually changes, because it has to depend on a phony target.
24366 multilib.out: maybe-all-gcc
24367 @r=`${PWD_COMMAND}`; export r; \
24368 echo "Checking multilib configuration..."; \
24369 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
24370 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
24372 # Rebuilding Makefile.in, using autogen.
24373 AUTOGEN = autogen
24374 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
24375 cd $(srcdir) && $(AUTOGEN) Makefile.def
24377 # Rebuilding Makefile.
24378 Makefile: $(srcdir)/Makefile.in config.status
24379 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
24381 config.status: configure $(gcc_version_trigger)
24382 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
24384 # Rebuilding configure.
24385 AUTOCONF = autoconf
24386 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
24387 cd $(srcdir) && $(AUTOCONF)
24389 # ------------------------------
24390 # Special directives to GNU Make
24391 # ------------------------------
24393 # Don't pass command-line variables to submakes.
24394 .NOEXPORT:
24395 MAKEOVERRIDES=
24397 # end of Makefile.in