2004-05-15 Andrew Pinski <pinskia@physics.uc.edu>
[official-gcc.git] / Makefile.in
blobff065ac1ce632affb9a52bc905bd654a0f5da92b
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 libbanshee
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 # Where to find GMP
128 HOST_GMPLIBS = @gmplibs@
129 HOST_GMPINC = @gmpinc@
131 # ----------------------------------------------
132 # Programs producing files for the BUILD machine
133 # ----------------------------------------------
135 SHELL = @config_shell@
137 # pwd command to use. Allow user to override default by setting PWDCMD in
138 # the environment to account for automounters. The make variable must not
139 # be called PWDCMD, otherwise the value set here is passed to make
140 # subprocesses and overrides the setting from the user's environment.
141 # Don't use PWD since it is a common shell environment variable and we
142 # don't want to corrupt it.
143 PWD_COMMAND = $${PWDCMD-pwd}
145 # compilers to use to create programs which must be run in the build
146 # environment.
147 CC_FOR_BUILD = @CC_FOR_BUILD@
148 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
150 CXX_FOR_BUILD = $(CXX)
152 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
153 # here so that they can be overridden by Makefile fragments.
154 BUILD_PREFIX = @BUILD_PREFIX@
155 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
157 BISON=@BISON@
158 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
159 echo $$r/bison/bison -L $$s/bison/ ; \
160 else \
161 echo bison ; \
164 DEFAULT_YACC = @DEFAULT_YACC@
165 YACC=@YACC@
166 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
167 echo $$r/bison/bison -y -L $$s/bison/ ; \
168 elif [ -f $$r/byacc/byacc ] ; then \
169 echo $$r/byacc/byacc ; \
170 else \
171 echo ${DEFAULT_YACC} ; \
174 DEFAULT_LEX = @DEFAULT_LEX@
175 LEX=@LEX@
176 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
177 then echo $$r/flex/flex ; \
178 else echo ${DEFAULT_LEX} ; fi`
180 DEFAULT_M4 = @DEFAULT_M4@
181 M4 = `if [ -f $$r/m4/m4 ] ; \
182 then echo $$r/m4/m4 ; \
183 else echo ${DEFAULT_M4} ; fi`
185 # For an installed makeinfo, we require it to be from texinfo 4.2 or
186 # higher, else we use the "missing" dummy.
187 MAKEINFO=@MAKEINFO@
188 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
189 then echo $$r/texinfo/makeinfo/makeinfo ; \
190 else if (makeinfo --version \
191 | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
192 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
194 # This just becomes part of the MAKEINFO definition passed down to
195 # sub-makes. It lets flags be given on the command line while still
196 # using the makeinfo from the object tree.
197 # (Default to avoid splitting info files by setting the threshold high.)
198 MAKEINFOFLAGS = --split-size=5000000
200 EXPECT = `if [ -f $$r/expect/expect ] ; \
201 then echo $$r/expect/expect ; \
202 else echo expect ; fi`
204 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
205 then echo $$s/dejagnu/runtest ; \
206 else echo runtest ; fi`
208 # ---------------------------------------------
209 # Programs producing files for the HOST machine
210 # ---------------------------------------------
212 # This is the list of directories that may be needed in RPATH_ENVVAR
213 # so that programs built for the host machine work.
214 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
216 AS = @AS@
218 AR = @AR@
219 AR_FLAGS = rc
221 CC = @CC@
222 CFLAGS = @CFLAGS@
223 LIBCFLAGS = $(CFLAGS)
225 CXX = @CXX@
226 CXXFLAGS = @CXXFLAGS@
227 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
229 DLLTOOL = @DLLTOOL@
231 NM = @NM@
233 LD = @LD@
234 LDFLAGS =
236 RANLIB = @RANLIB@
238 WINDRES = @WINDRES@
240 PICFLAG =
242 # -----------------------------------------------
243 # Programs producing files for the TARGET machine
244 # -----------------------------------------------
246 # This is the list of directories that may be needed in RPATH_ENVVAR
247 # so that prorgams built for the target machine work.
248 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
250 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
252 AR_FOR_TARGET=@AR_FOR_TARGET@
253 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
254 USUAL_AR_FOR_TARGET = ` \
255 if [ -f $$r/binutils/ar ] ; then \
256 echo $$r/binutils/ar ; \
257 else \
258 if [ '$(host)' = '$(target)' ] ; then \
259 echo $(AR); \
260 else \
261 echo $(CONFIGURED_AR_FOR_TARGET) ; \
262 fi; \
265 AS_FOR_TARGET=@AS_FOR_TARGET@
266 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
267 USUAL_AS_FOR_TARGET = ` \
268 if [ -f $$r/gas/as-new ] ; then \
269 echo $$r/gas/as-new ; \
270 elif [ -f $$r/gcc/xgcc ]; then \
271 $(CC_FOR_TARGET) -print-prog-name=as ; \
272 else \
273 if [ '$(host)' = '$(target)' ] ; then \
274 echo $(AS); \
275 else \
276 echo $(CONFIGURED_AS_FOR_TARGET) ; \
277 fi; \
280 CC_FOR_TARGET = @CC_FOR_TARGET@
281 # During gcc bootstrap, if we use some random cc for stage1 then
282 # CFLAGS will be just -g. We want to ensure that TARGET libraries
283 # (which we know are built with gcc) are built with optimizations so
284 # prepend -O2 when setting CFLAGS_FOR_TARGET.
285 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
286 # If GCC_FOR_TARGET is not overriden on the command line, then this
287 # variable is passed down to the gcc Makefile, where it is used to
288 # build libgcc2.a. We define it here so that it can itself be
289 # overridden on the command line.
290 GCC_FOR_TARGET=@GCC_FOR_TARGET@
291 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
292 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
294 CXX_FOR_TARGET = @CXX_FOR_TARGET@
295 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
296 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
297 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
298 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
299 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
301 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
302 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
303 USUAL_DLLTOOL_FOR_TARGET = ` \
304 if [ -f $$r/binutils/dlltool ] ; then \
305 echo $$r/binutils/dlltool ; \
306 else \
307 if [ '$(host)' = '$(target)' ] ; then \
308 echo $(DLLTOOL); \
309 else \
310 echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
311 fi; \
314 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
315 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
317 LD_FOR_TARGET=@LD_FOR_TARGET@
318 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
319 USUAL_LD_FOR_TARGET = ` \
320 if [ -f $$r/ld/ld-new ] ; then \
321 echo $$r/ld/ld-new ; \
322 elif [ -f $$r/gcc/xgcc ]; then \
323 $(CC_FOR_TARGET) -print-prog-name=ld ; \
324 else \
325 if [ '$(host)' = '$(target)' ] ; then \
326 echo $(LD); \
327 else \
328 echo $(CONFIGURED_LD_FOR_TARGET) ; \
329 fi; \
332 LDFLAGS_FOR_TARGET =
334 NM_FOR_TARGET=@NM_FOR_TARGET@
335 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
336 USUAL_NM_FOR_TARGET = ` \
337 if [ -f $$r/binutils/nm-new ] ; then \
338 echo $$r/binutils/nm-new ; \
339 elif [ -f $$r/gcc/xgcc ]; then \
340 $(CC_FOR_TARGET) -print-prog-name=nm ; \
341 else \
342 if [ '$(host)' = '$(target)' ] ; then \
343 echo $(NM); \
344 else \
345 echo $(CONFIGURED_NM_FOR_TARGET) ; \
346 fi; \
349 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
350 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
351 USUAL_RANLIB_FOR_TARGET = ` \
352 if [ -f $$r/binutils/ranlib ] ; then \
353 echo $$r/binutils/ranlib ; \
354 else \
355 if [ '$(host)' = '$(target)' ] ; then \
356 if [ x'$(RANLIB)' != x ]; then \
357 echo $(RANLIB); \
358 else \
359 echo ranlib; \
360 fi; \
361 else \
362 echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
363 fi; \
366 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
367 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
368 USUAL_WINDRES_FOR_TARGET = ` \
369 if [ -f $$r/binutils/windres ] ; then \
370 echo $$r/binutils/windres ; \
371 else \
372 if [ '$(host)' = '$(target)' ] ; then \
373 echo $(WINDRES); \
374 else \
375 echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
376 fi; \
379 PICFLAG_FOR_TARGET =
381 # ------------------------------------
382 # Miscellaneous targets and flag lists
383 # ------------------------------------
385 # The first rule in the file had better be this one. Don't put any above it.
386 # This lives here to allow makefile fragments to contain dependencies.
387 all: all.normal
388 .PHONY: all
390 #### host and target specific makefile fragments come in here.
391 @target_makefile_frag@
392 @alphaieee_frag@
393 @ospace_frag@
394 @host_makefile_frag@
397 # Flags to pass down to all sub-makes.
398 BASE_FLAGS_TO_PASS = \
399 "DESTDIR=$(DESTDIR)" \
400 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
401 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
402 "bindir=$(bindir)" \
403 "datadir=$(datadir)" \
404 "exec_prefix=$(exec_prefix)" \
405 "includedir=$(includedir)" \
406 "infodir=$(infodir)" \
407 "libdir=$(libdir)" \
408 "libexecdir=$(libexecdir)" \
409 "lispdir=$(lispdir)" \
410 "libstdcxx_incdir=$(libstdcxx_incdir)" \
411 "libsubdir=$(libsubdir)" \
412 "localstatedir=$(localstatedir)" \
413 "mandir=$(mandir)" \
414 "oldincludedir=$(oldincludedir)" \
415 "prefix=$(prefix)" \
416 "sbindir=$(sbindir)" \
417 "sharedstatedir=$(sharedstatedir)" \
418 "sysconfdir=$(sysconfdir)" \
419 "tooldir=$(tooldir)" \
420 "build_tooldir=$(build_tooldir)" \
421 "gxx_include_dir=$(gxx_include_dir)" \
422 "gcc_version=$(gcc_version)" \
423 "gcc_version_trigger=$(gcc_version_trigger)" \
424 "target_alias=$(target_alias)" \
425 "BISON=$(BISON)" \
426 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
427 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
428 "EXPECT=$(EXPECT)" \
429 "INSTALL=$(INSTALL)" \
430 "INSTALL_DATA=$(INSTALL_DATA)" \
431 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
432 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
433 "LEX=$(LEX)" \
434 "M4=$(M4)" \
435 "MAKE=$(MAKE)" \
436 "RUNTEST=$(RUNTEST)" \
437 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
438 "SHELL=$(SHELL)" \
439 "YACC=$(YACC)" \
440 "AR_FLAGS=$(AR_FLAGS)" \
441 "CFLAGS=$(CFLAGS)" \
442 "CXXFLAGS=$(CXXFLAGS)" \
443 "LDFLAGS=$(LDFLAGS)" \
444 "LIBCFLAGS=$(LIBCFLAGS)" \
445 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
446 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
447 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
448 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
449 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
450 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
451 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
452 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
453 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
454 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
455 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
456 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
457 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
458 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
459 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
460 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
461 "CONFIG_SHELL=$(SHELL)" \
462 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
464 # For any flags above that may contain shell code that varies from one
465 # target library to another. When doing recursive invocations of the
466 # top-level Makefile, we don't want the outer make to evaluate them,
467 # so we pass these variables down unchanged. They must not contain
468 # single nor double quotes.
469 RECURSE_FLAGS = \
470 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
471 RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
473 # Flags to pass down to most sub-makes, in which we're building with
474 # the host environment.
475 EXTRA_HOST_FLAGS = \
476 'AR=$(AR)' \
477 'AS=$(AS)' \
478 'CC=$(CC)' \
479 'CXX=$(CXX)' \
480 'DLLTOOL=$(DLLTOOL)' \
481 'LD=$(LD)' \
482 'NM=$(NM)' \
483 'RANLIB=$(RANLIB)' \
484 'WINDRES=$(WINDRES)'
486 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
488 # Flags that are concerned with the location of the X11 include files
489 # and library files
491 # NOTE: until the top-level is getting the values via autoconf, it only
492 # causes problems to have this top-level Makefile overriding the autoconf-set
493 # values in child directories. Only variables that don't conflict with
494 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
496 X11_FLAGS_TO_PASS = \
497 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
498 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
500 # Flags to pass down to makes which are built with the target environment.
501 # The double $ decreases the length of the command line; the variables
502 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
503 EXTRA_TARGET_FLAGS = \
504 'AR=$$(AR_FOR_TARGET)' \
505 'AS=$$(AS_FOR_TARGET)' \
506 'CC=$$(CC_FOR_TARGET)' \
507 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
508 'CXX=$$(CXX_FOR_TARGET)' \
509 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
510 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
511 'LD=$$(LD_FOR_TARGET)' \
512 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
513 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
514 'NM=$$(NM_FOR_TARGET)' \
515 'RANLIB=$$(RANLIB_FOR_TARGET)' \
516 'WINDRES=$$(WINDRES_FOR_TARGET)'
518 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
520 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
521 # unfortunately needs the native compiler and the target ar and
522 # ranlib.
523 # If any variables are added here, they must be added to do-*, below.
524 # The BUILD_* variables are a special case, which are used for the gcc
525 # cross-building scheme.
526 EXTRA_GCC_FLAGS = \
527 'BUILD_PREFIX=$(BUILD_PREFIX)' \
528 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
529 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
530 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
531 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
532 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
533 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
534 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
535 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
536 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
537 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
538 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
539 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
541 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
543 .PHONY: configure-host
544 configure-host: maybe-configure-gcc \
545 maybe-configure-ash \
546 maybe-configure-autoconf \
547 maybe-configure-automake \
548 maybe-configure-bash \
549 maybe-configure-bfd \
550 maybe-configure-opcodes \
551 maybe-configure-binutils \
552 maybe-configure-bison \
553 maybe-configure-byacc \
554 maybe-configure-bzip2 \
555 maybe-configure-dejagnu \
556 maybe-configure-diff \
557 maybe-configure-dosutils \
558 maybe-configure-etc \
559 maybe-configure-fastjar \
560 maybe-configure-fileutils \
561 maybe-configure-findutils \
562 maybe-configure-find \
563 maybe-configure-flex \
564 maybe-configure-gas \
565 maybe-configure-gawk \
566 maybe-configure-gettext \
567 maybe-configure-gnuserv \
568 maybe-configure-gprof \
569 maybe-configure-gzip \
570 maybe-configure-hello \
571 maybe-configure-indent \
572 maybe-configure-intl \
573 maybe-configure-tcl \
574 maybe-configure-itcl \
575 maybe-configure-ld \
576 maybe-configure-libgui \
577 maybe-configure-libbanshee \
578 maybe-configure-libiberty \
579 maybe-configure-libtool \
580 maybe-configure-m4 \
581 maybe-configure-make \
582 maybe-configure-mmalloc \
583 maybe-configure-patch \
584 maybe-configure-perl \
585 maybe-configure-prms \
586 maybe-configure-rcs \
587 maybe-configure-readline \
588 maybe-configure-release \
589 maybe-configure-recode \
590 maybe-configure-sed \
591 maybe-configure-send-pr \
592 maybe-configure-shellutils \
593 maybe-configure-sid \
594 maybe-configure-sim \
595 maybe-configure-tar \
596 maybe-configure-texinfo \
597 maybe-configure-textutils \
598 maybe-configure-time \
599 maybe-configure-uudecode \
600 maybe-configure-wdiff \
601 maybe-configure-zip \
602 maybe-configure-zlib \
603 maybe-configure-gdb \
604 maybe-configure-expect \
605 maybe-configure-guile \
606 maybe-configure-tk \
607 maybe-configure-tix \
608 maybe-configure-libtermcap \
609 maybe-configure-utils
610 .PHONY: configure-target
611 configure-target: \
612 maybe-configure-target-libstdc++-v3 \
613 maybe-configure-target-libmudflap \
614 maybe-configure-target-newlib \
615 maybe-configure-target-libf2c \
616 maybe-configure-target-libgfortran \
617 maybe-configure-target-libobjc \
618 maybe-configure-target-libtermcap \
619 maybe-configure-target-winsup \
620 maybe-configure-target-libgloss \
621 maybe-configure-target-libiberty \
622 maybe-configure-target-gperf \
623 maybe-configure-target-examples \
624 maybe-configure-target-libffi \
625 maybe-configure-target-libjava \
626 maybe-configure-target-zlib \
627 maybe-configure-target-boehm-gc \
628 maybe-configure-target-qthreads \
629 maybe-configure-target-rda \
630 maybe-configure-target-libada
632 # The target built for a native build.
633 .PHONY: all.normal
634 all.normal: @all_build_modules@ all-host all-target
636 .PHONY: all-host
637 all-host: maybe-all-gcc \
638 maybe-all-ash \
639 maybe-all-autoconf \
640 maybe-all-automake \
641 maybe-all-bash \
642 maybe-all-bfd \
643 maybe-all-opcodes \
644 maybe-all-binutils \
645 maybe-all-bison \
646 maybe-all-byacc \
647 maybe-all-bzip2 \
648 maybe-all-dejagnu \
649 maybe-all-diff \
650 maybe-all-dosutils \
651 maybe-all-etc \
652 maybe-all-fastjar \
653 maybe-all-fileutils \
654 maybe-all-findutils \
655 maybe-all-find \
656 maybe-all-flex \
657 maybe-all-gas \
658 maybe-all-gawk \
659 maybe-all-gettext \
660 maybe-all-gnuserv \
661 maybe-all-gprof \
662 maybe-all-gzip \
663 maybe-all-hello \
664 maybe-all-indent \
665 maybe-all-intl \
666 maybe-all-tcl \
667 maybe-all-itcl \
668 maybe-all-ld \
669 maybe-all-libgui \
670 maybe-all-libbanshee \
671 maybe-all-libiberty \
672 maybe-all-libtool \
673 maybe-all-m4 \
674 maybe-all-make \
675 maybe-all-mmalloc \
676 maybe-all-patch \
677 maybe-all-perl \
678 maybe-all-prms \
679 maybe-all-rcs \
680 maybe-all-readline \
681 maybe-all-release \
682 maybe-all-recode \
683 maybe-all-sed \
684 maybe-all-send-pr \
685 maybe-all-shellutils \
686 maybe-all-sid \
687 maybe-all-sim \
688 maybe-all-tar \
689 maybe-all-texinfo \
690 maybe-all-textutils \
691 maybe-all-time \
692 maybe-all-uudecode \
693 maybe-all-wdiff \
694 maybe-all-zip \
695 maybe-all-zlib \
696 maybe-all-gdb \
697 maybe-all-expect \
698 maybe-all-guile \
699 maybe-all-tk \
700 maybe-all-tix \
701 maybe-all-libtermcap \
702 maybe-all-utils
703 .PHONY: all-target
704 all-target: \
705 maybe-all-target-libstdc++-v3 \
706 maybe-all-target-libmudflap \
707 maybe-all-target-newlib \
708 maybe-all-target-libf2c \
709 maybe-all-target-libgfortran \
710 maybe-all-target-libobjc \
711 maybe-all-target-libtermcap \
712 maybe-all-target-winsup \
713 maybe-all-target-libgloss \
714 maybe-all-target-libiberty \
715 maybe-all-target-gperf \
716 maybe-all-target-examples \
717 maybe-all-target-libffi \
718 maybe-all-target-libjava \
719 maybe-all-target-zlib \
720 maybe-all-target-boehm-gc \
721 maybe-all-target-qthreads \
722 maybe-all-target-rda \
723 maybe-all-target-libada
725 # Do a target for all the subdirectories. A ``make do-X'' will do a
726 # ``make X'' in all subdirectories (because, in general, there is a
727 # dependency (below) of X upon do-X, a ``make X'' will also do this,
728 # but it may do additional work as well).
730 .PHONY: do-info
731 do-info: info-host info-target
733 .PHONY: info-host
734 info-host: maybe-info-gcc \
735 maybe-info-ash \
736 maybe-info-autoconf \
737 maybe-info-automake \
738 maybe-info-bash \
739 maybe-info-bfd \
740 maybe-info-opcodes \
741 maybe-info-binutils \
742 maybe-info-bison \
743 maybe-info-byacc \
744 maybe-info-bzip2 \
745 maybe-info-dejagnu \
746 maybe-info-diff \
747 maybe-info-dosutils \
748 maybe-info-etc \
749 maybe-info-fastjar \
750 maybe-info-fileutils \
751 maybe-info-findutils \
752 maybe-info-find \
753 maybe-info-flex \
754 maybe-info-gas \
755 maybe-info-gawk \
756 maybe-info-gettext \
757 maybe-info-gnuserv \
758 maybe-info-gprof \
759 maybe-info-gzip \
760 maybe-info-hello \
761 maybe-info-indent \
762 maybe-info-intl \
763 maybe-info-tcl \
764 maybe-info-itcl \
765 maybe-info-ld \
766 maybe-info-libgui \
767 maybe-info-libbanshee \
768 maybe-info-libiberty \
769 maybe-info-libtool \
770 maybe-info-m4 \
771 maybe-info-make \
772 maybe-info-mmalloc \
773 maybe-info-patch \
774 maybe-info-perl \
775 maybe-info-prms \
776 maybe-info-rcs \
777 maybe-info-readline \
778 maybe-info-release \
779 maybe-info-recode \
780 maybe-info-sed \
781 maybe-info-send-pr \
782 maybe-info-shellutils \
783 maybe-info-sid \
784 maybe-info-sim \
785 maybe-info-tar \
786 maybe-info-texinfo \
787 maybe-info-textutils \
788 maybe-info-time \
789 maybe-info-uudecode \
790 maybe-info-wdiff \
791 maybe-info-zip \
792 maybe-info-zlib \
793 maybe-info-gdb \
794 maybe-info-expect \
795 maybe-info-guile \
796 maybe-info-tk \
797 maybe-info-tix \
798 maybe-info-libtermcap \
799 maybe-info-utils
801 .PHONY: info-target
802 info-target: \
803 maybe-info-target-libstdc++-v3 \
804 maybe-info-target-libmudflap \
805 maybe-info-target-newlib \
806 maybe-info-target-libf2c \
807 maybe-info-target-libgfortran \
808 maybe-info-target-libobjc \
809 maybe-info-target-libtermcap \
810 maybe-info-target-winsup \
811 maybe-info-target-libgloss \
812 maybe-info-target-libiberty \
813 maybe-info-target-gperf \
814 maybe-info-target-examples \
815 maybe-info-target-libffi \
816 maybe-info-target-libjava \
817 maybe-info-target-zlib \
818 maybe-info-target-boehm-gc \
819 maybe-info-target-qthreads \
820 maybe-info-target-rda \
821 maybe-info-target-libada
823 .PHONY: do-dvi
824 do-dvi: dvi-host dvi-target
826 .PHONY: dvi-host
827 dvi-host: maybe-dvi-gcc \
828 maybe-dvi-ash \
829 maybe-dvi-autoconf \
830 maybe-dvi-automake \
831 maybe-dvi-bash \
832 maybe-dvi-bfd \
833 maybe-dvi-opcodes \
834 maybe-dvi-binutils \
835 maybe-dvi-bison \
836 maybe-dvi-byacc \
837 maybe-dvi-bzip2 \
838 maybe-dvi-dejagnu \
839 maybe-dvi-diff \
840 maybe-dvi-dosutils \
841 maybe-dvi-etc \
842 maybe-dvi-fastjar \
843 maybe-dvi-fileutils \
844 maybe-dvi-findutils \
845 maybe-dvi-find \
846 maybe-dvi-flex \
847 maybe-dvi-gas \
848 maybe-dvi-gawk \
849 maybe-dvi-gettext \
850 maybe-dvi-gnuserv \
851 maybe-dvi-gprof \
852 maybe-dvi-gzip \
853 maybe-dvi-hello \
854 maybe-dvi-indent \
855 maybe-dvi-intl \
856 maybe-dvi-tcl \
857 maybe-dvi-itcl \
858 maybe-dvi-ld \
859 maybe-dvi-libgui \
860 maybe-dvi-libbanshee \
861 maybe-dvi-libiberty \
862 maybe-dvi-libtool \
863 maybe-dvi-m4 \
864 maybe-dvi-make \
865 maybe-dvi-mmalloc \
866 maybe-dvi-patch \
867 maybe-dvi-perl \
868 maybe-dvi-prms \
869 maybe-dvi-rcs \
870 maybe-dvi-readline \
871 maybe-dvi-release \
872 maybe-dvi-recode \
873 maybe-dvi-sed \
874 maybe-dvi-send-pr \
875 maybe-dvi-shellutils \
876 maybe-dvi-sid \
877 maybe-dvi-sim \
878 maybe-dvi-tar \
879 maybe-dvi-texinfo \
880 maybe-dvi-textutils \
881 maybe-dvi-time \
882 maybe-dvi-uudecode \
883 maybe-dvi-wdiff \
884 maybe-dvi-zip \
885 maybe-dvi-zlib \
886 maybe-dvi-gdb \
887 maybe-dvi-expect \
888 maybe-dvi-guile \
889 maybe-dvi-tk \
890 maybe-dvi-tix \
891 maybe-dvi-libtermcap \
892 maybe-dvi-utils
894 .PHONY: dvi-target
895 dvi-target: \
896 maybe-dvi-target-libstdc++-v3 \
897 maybe-dvi-target-libmudflap \
898 maybe-dvi-target-newlib \
899 maybe-dvi-target-libf2c \
900 maybe-dvi-target-libgfortran \
901 maybe-dvi-target-libobjc \
902 maybe-dvi-target-libtermcap \
903 maybe-dvi-target-winsup \
904 maybe-dvi-target-libgloss \
905 maybe-dvi-target-libiberty \
906 maybe-dvi-target-gperf \
907 maybe-dvi-target-examples \
908 maybe-dvi-target-libffi \
909 maybe-dvi-target-libjava \
910 maybe-dvi-target-zlib \
911 maybe-dvi-target-boehm-gc \
912 maybe-dvi-target-qthreads \
913 maybe-dvi-target-rda \
914 maybe-dvi-target-libada
916 .PHONY: do-TAGS
917 do-TAGS: TAGS-host TAGS-target
919 .PHONY: TAGS-host
920 TAGS-host: maybe-TAGS-gcc \
921 maybe-TAGS-ash \
922 maybe-TAGS-autoconf \
923 maybe-TAGS-automake \
924 maybe-TAGS-bash \
925 maybe-TAGS-bfd \
926 maybe-TAGS-opcodes \
927 maybe-TAGS-binutils \
928 maybe-TAGS-bison \
929 maybe-TAGS-byacc \
930 maybe-TAGS-bzip2 \
931 maybe-TAGS-dejagnu \
932 maybe-TAGS-diff \
933 maybe-TAGS-dosutils \
934 maybe-TAGS-etc \
935 maybe-TAGS-fastjar \
936 maybe-TAGS-fileutils \
937 maybe-TAGS-findutils \
938 maybe-TAGS-find \
939 maybe-TAGS-flex \
940 maybe-TAGS-gas \
941 maybe-TAGS-gawk \
942 maybe-TAGS-gettext \
943 maybe-TAGS-gnuserv \
944 maybe-TAGS-gprof \
945 maybe-TAGS-gzip \
946 maybe-TAGS-hello \
947 maybe-TAGS-indent \
948 maybe-TAGS-intl \
949 maybe-TAGS-tcl \
950 maybe-TAGS-itcl \
951 maybe-TAGS-ld \
952 maybe-TAGS-libgui \
953 maybe-TAGS-libbanshee \
954 maybe-TAGS-libiberty \
955 maybe-TAGS-libtool \
956 maybe-TAGS-m4 \
957 maybe-TAGS-make \
958 maybe-TAGS-mmalloc \
959 maybe-TAGS-patch \
960 maybe-TAGS-perl \
961 maybe-TAGS-prms \
962 maybe-TAGS-rcs \
963 maybe-TAGS-readline \
964 maybe-TAGS-release \
965 maybe-TAGS-recode \
966 maybe-TAGS-sed \
967 maybe-TAGS-send-pr \
968 maybe-TAGS-shellutils \
969 maybe-TAGS-sid \
970 maybe-TAGS-sim \
971 maybe-TAGS-tar \
972 maybe-TAGS-texinfo \
973 maybe-TAGS-textutils \
974 maybe-TAGS-time \
975 maybe-TAGS-uudecode \
976 maybe-TAGS-wdiff \
977 maybe-TAGS-zip \
978 maybe-TAGS-zlib \
979 maybe-TAGS-gdb \
980 maybe-TAGS-expect \
981 maybe-TAGS-guile \
982 maybe-TAGS-tk \
983 maybe-TAGS-tix \
984 maybe-TAGS-libtermcap \
985 maybe-TAGS-utils
987 .PHONY: TAGS-target
988 TAGS-target: \
989 maybe-TAGS-target-libstdc++-v3 \
990 maybe-TAGS-target-libmudflap \
991 maybe-TAGS-target-newlib \
992 maybe-TAGS-target-libf2c \
993 maybe-TAGS-target-libgfortran \
994 maybe-TAGS-target-libobjc \
995 maybe-TAGS-target-libtermcap \
996 maybe-TAGS-target-winsup \
997 maybe-TAGS-target-libgloss \
998 maybe-TAGS-target-libiberty \
999 maybe-TAGS-target-gperf \
1000 maybe-TAGS-target-examples \
1001 maybe-TAGS-target-libffi \
1002 maybe-TAGS-target-libjava \
1003 maybe-TAGS-target-zlib \
1004 maybe-TAGS-target-boehm-gc \
1005 maybe-TAGS-target-qthreads \
1006 maybe-TAGS-target-rda \
1007 maybe-TAGS-target-libada
1009 .PHONY: do-install-info
1010 do-install-info: install-info-host install-info-target
1012 .PHONY: install-info-host
1013 install-info-host: maybe-install-info-gcc \
1014 maybe-install-info-ash \
1015 maybe-install-info-autoconf \
1016 maybe-install-info-automake \
1017 maybe-install-info-bash \
1018 maybe-install-info-bfd \
1019 maybe-install-info-opcodes \
1020 maybe-install-info-binutils \
1021 maybe-install-info-bison \
1022 maybe-install-info-byacc \
1023 maybe-install-info-bzip2 \
1024 maybe-install-info-dejagnu \
1025 maybe-install-info-diff \
1026 maybe-install-info-dosutils \
1027 maybe-install-info-etc \
1028 maybe-install-info-fastjar \
1029 maybe-install-info-fileutils \
1030 maybe-install-info-findutils \
1031 maybe-install-info-find \
1032 maybe-install-info-flex \
1033 maybe-install-info-gas \
1034 maybe-install-info-gawk \
1035 maybe-install-info-gettext \
1036 maybe-install-info-gnuserv \
1037 maybe-install-info-gprof \
1038 maybe-install-info-gzip \
1039 maybe-install-info-hello \
1040 maybe-install-info-indent \
1041 maybe-install-info-intl \
1042 maybe-install-info-tcl \
1043 maybe-install-info-itcl \
1044 maybe-install-info-ld \
1045 maybe-install-info-libgui \
1046 maybe-install-info-libbanshee \
1047 maybe-install-info-libiberty \
1048 maybe-install-info-libtool \
1049 maybe-install-info-m4 \
1050 maybe-install-info-make \
1051 maybe-install-info-mmalloc \
1052 maybe-install-info-patch \
1053 maybe-install-info-perl \
1054 maybe-install-info-prms \
1055 maybe-install-info-rcs \
1056 maybe-install-info-readline \
1057 maybe-install-info-release \
1058 maybe-install-info-recode \
1059 maybe-install-info-sed \
1060 maybe-install-info-send-pr \
1061 maybe-install-info-shellutils \
1062 maybe-install-info-sid \
1063 maybe-install-info-sim \
1064 maybe-install-info-tar \
1065 maybe-install-info-texinfo \
1066 maybe-install-info-textutils \
1067 maybe-install-info-time \
1068 maybe-install-info-uudecode \
1069 maybe-install-info-wdiff \
1070 maybe-install-info-zip \
1071 maybe-install-info-zlib \
1072 maybe-install-info-gdb \
1073 maybe-install-info-expect \
1074 maybe-install-info-guile \
1075 maybe-install-info-tk \
1076 maybe-install-info-tix \
1077 maybe-install-info-libtermcap \
1078 maybe-install-info-utils
1080 .PHONY: install-info-target
1081 install-info-target: \
1082 maybe-install-info-target-libstdc++-v3 \
1083 maybe-install-info-target-libmudflap \
1084 maybe-install-info-target-newlib \
1085 maybe-install-info-target-libf2c \
1086 maybe-install-info-target-libgfortran \
1087 maybe-install-info-target-libobjc \
1088 maybe-install-info-target-libtermcap \
1089 maybe-install-info-target-winsup \
1090 maybe-install-info-target-libgloss \
1091 maybe-install-info-target-libiberty \
1092 maybe-install-info-target-gperf \
1093 maybe-install-info-target-examples \
1094 maybe-install-info-target-libffi \
1095 maybe-install-info-target-libjava \
1096 maybe-install-info-target-zlib \
1097 maybe-install-info-target-boehm-gc \
1098 maybe-install-info-target-qthreads \
1099 maybe-install-info-target-rda \
1100 maybe-install-info-target-libada
1102 .PHONY: do-installcheck
1103 do-installcheck: installcheck-host installcheck-target
1105 .PHONY: installcheck-host
1106 installcheck-host: maybe-installcheck-gcc \
1107 maybe-installcheck-ash \
1108 maybe-installcheck-autoconf \
1109 maybe-installcheck-automake \
1110 maybe-installcheck-bash \
1111 maybe-installcheck-bfd \
1112 maybe-installcheck-opcodes \
1113 maybe-installcheck-binutils \
1114 maybe-installcheck-bison \
1115 maybe-installcheck-byacc \
1116 maybe-installcheck-bzip2 \
1117 maybe-installcheck-dejagnu \
1118 maybe-installcheck-diff \
1119 maybe-installcheck-dosutils \
1120 maybe-installcheck-etc \
1121 maybe-installcheck-fastjar \
1122 maybe-installcheck-fileutils \
1123 maybe-installcheck-findutils \
1124 maybe-installcheck-find \
1125 maybe-installcheck-flex \
1126 maybe-installcheck-gas \
1127 maybe-installcheck-gawk \
1128 maybe-installcheck-gettext \
1129 maybe-installcheck-gnuserv \
1130 maybe-installcheck-gprof \
1131 maybe-installcheck-gzip \
1132 maybe-installcheck-hello \
1133 maybe-installcheck-indent \
1134 maybe-installcheck-intl \
1135 maybe-installcheck-tcl \
1136 maybe-installcheck-itcl \
1137 maybe-installcheck-ld \
1138 maybe-installcheck-libgui \
1139 maybe-installcheck-libbanshee \
1140 maybe-installcheck-libiberty \
1141 maybe-installcheck-libtool \
1142 maybe-installcheck-m4 \
1143 maybe-installcheck-make \
1144 maybe-installcheck-mmalloc \
1145 maybe-installcheck-patch \
1146 maybe-installcheck-perl \
1147 maybe-installcheck-prms \
1148 maybe-installcheck-rcs \
1149 maybe-installcheck-readline \
1150 maybe-installcheck-release \
1151 maybe-installcheck-recode \
1152 maybe-installcheck-sed \
1153 maybe-installcheck-send-pr \
1154 maybe-installcheck-shellutils \
1155 maybe-installcheck-sid \
1156 maybe-installcheck-sim \
1157 maybe-installcheck-tar \
1158 maybe-installcheck-texinfo \
1159 maybe-installcheck-textutils \
1160 maybe-installcheck-time \
1161 maybe-installcheck-uudecode \
1162 maybe-installcheck-wdiff \
1163 maybe-installcheck-zip \
1164 maybe-installcheck-zlib \
1165 maybe-installcheck-gdb \
1166 maybe-installcheck-expect \
1167 maybe-installcheck-guile \
1168 maybe-installcheck-tk \
1169 maybe-installcheck-tix \
1170 maybe-installcheck-libtermcap \
1171 maybe-installcheck-utils
1173 .PHONY: installcheck-target
1174 installcheck-target: \
1175 maybe-installcheck-target-libstdc++-v3 \
1176 maybe-installcheck-target-libmudflap \
1177 maybe-installcheck-target-newlib \
1178 maybe-installcheck-target-libf2c \
1179 maybe-installcheck-target-libgfortran \
1180 maybe-installcheck-target-libobjc \
1181 maybe-installcheck-target-libtermcap \
1182 maybe-installcheck-target-winsup \
1183 maybe-installcheck-target-libgloss \
1184 maybe-installcheck-target-libiberty \
1185 maybe-installcheck-target-gperf \
1186 maybe-installcheck-target-examples \
1187 maybe-installcheck-target-libffi \
1188 maybe-installcheck-target-libjava \
1189 maybe-installcheck-target-zlib \
1190 maybe-installcheck-target-boehm-gc \
1191 maybe-installcheck-target-qthreads \
1192 maybe-installcheck-target-rda \
1193 maybe-installcheck-target-libada
1195 .PHONY: do-mostlyclean
1196 do-mostlyclean: mostlyclean-host mostlyclean-target
1198 .PHONY: mostlyclean-host
1199 mostlyclean-host: maybe-mostlyclean-gcc \
1200 maybe-mostlyclean-ash \
1201 maybe-mostlyclean-autoconf \
1202 maybe-mostlyclean-automake \
1203 maybe-mostlyclean-bash \
1204 maybe-mostlyclean-bfd \
1205 maybe-mostlyclean-opcodes \
1206 maybe-mostlyclean-binutils \
1207 maybe-mostlyclean-bison \
1208 maybe-mostlyclean-byacc \
1209 maybe-mostlyclean-bzip2 \
1210 maybe-mostlyclean-dejagnu \
1211 maybe-mostlyclean-diff \
1212 maybe-mostlyclean-dosutils \
1213 maybe-mostlyclean-etc \
1214 maybe-mostlyclean-fastjar \
1215 maybe-mostlyclean-fileutils \
1216 maybe-mostlyclean-findutils \
1217 maybe-mostlyclean-find \
1218 maybe-mostlyclean-flex \
1219 maybe-mostlyclean-gas \
1220 maybe-mostlyclean-gawk \
1221 maybe-mostlyclean-gettext \
1222 maybe-mostlyclean-gnuserv \
1223 maybe-mostlyclean-gprof \
1224 maybe-mostlyclean-gzip \
1225 maybe-mostlyclean-hello \
1226 maybe-mostlyclean-indent \
1227 maybe-mostlyclean-intl \
1228 maybe-mostlyclean-tcl \
1229 maybe-mostlyclean-itcl \
1230 maybe-mostlyclean-ld \
1231 maybe-mostlyclean-libgui \
1232 maybe-mostlyclean-libbanshee \
1233 maybe-mostlyclean-libiberty \
1234 maybe-mostlyclean-libtool \
1235 maybe-mostlyclean-m4 \
1236 maybe-mostlyclean-make \
1237 maybe-mostlyclean-mmalloc \
1238 maybe-mostlyclean-patch \
1239 maybe-mostlyclean-perl \
1240 maybe-mostlyclean-prms \
1241 maybe-mostlyclean-rcs \
1242 maybe-mostlyclean-readline \
1243 maybe-mostlyclean-release \
1244 maybe-mostlyclean-recode \
1245 maybe-mostlyclean-sed \
1246 maybe-mostlyclean-send-pr \
1247 maybe-mostlyclean-shellutils \
1248 maybe-mostlyclean-sid \
1249 maybe-mostlyclean-sim \
1250 maybe-mostlyclean-tar \
1251 maybe-mostlyclean-texinfo \
1252 maybe-mostlyclean-textutils \
1253 maybe-mostlyclean-time \
1254 maybe-mostlyclean-uudecode \
1255 maybe-mostlyclean-wdiff \
1256 maybe-mostlyclean-zip \
1257 maybe-mostlyclean-zlib \
1258 maybe-mostlyclean-gdb \
1259 maybe-mostlyclean-expect \
1260 maybe-mostlyclean-guile \
1261 maybe-mostlyclean-tk \
1262 maybe-mostlyclean-tix \
1263 maybe-mostlyclean-libtermcap \
1264 maybe-mostlyclean-utils
1266 .PHONY: mostlyclean-target
1267 mostlyclean-target: \
1268 maybe-mostlyclean-target-libstdc++-v3 \
1269 maybe-mostlyclean-target-libmudflap \
1270 maybe-mostlyclean-target-newlib \
1271 maybe-mostlyclean-target-libf2c \
1272 maybe-mostlyclean-target-libgfortran \
1273 maybe-mostlyclean-target-libobjc \
1274 maybe-mostlyclean-target-libtermcap \
1275 maybe-mostlyclean-target-winsup \
1276 maybe-mostlyclean-target-libgloss \
1277 maybe-mostlyclean-target-libiberty \
1278 maybe-mostlyclean-target-gperf \
1279 maybe-mostlyclean-target-examples \
1280 maybe-mostlyclean-target-libffi \
1281 maybe-mostlyclean-target-libjava \
1282 maybe-mostlyclean-target-zlib \
1283 maybe-mostlyclean-target-boehm-gc \
1284 maybe-mostlyclean-target-qthreads \
1285 maybe-mostlyclean-target-rda \
1286 maybe-mostlyclean-target-libada
1288 .PHONY: do-clean
1289 do-clean: clean-host clean-target
1291 .PHONY: clean-host
1292 clean-host: maybe-clean-gcc \
1293 maybe-clean-ash \
1294 maybe-clean-autoconf \
1295 maybe-clean-automake \
1296 maybe-clean-bash \
1297 maybe-clean-bfd \
1298 maybe-clean-opcodes \
1299 maybe-clean-binutils \
1300 maybe-clean-bison \
1301 maybe-clean-byacc \
1302 maybe-clean-bzip2 \
1303 maybe-clean-dejagnu \
1304 maybe-clean-diff \
1305 maybe-clean-dosutils \
1306 maybe-clean-etc \
1307 maybe-clean-fastjar \
1308 maybe-clean-fileutils \
1309 maybe-clean-findutils \
1310 maybe-clean-find \
1311 maybe-clean-flex \
1312 maybe-clean-gas \
1313 maybe-clean-gawk \
1314 maybe-clean-gettext \
1315 maybe-clean-gnuserv \
1316 maybe-clean-gprof \
1317 maybe-clean-gzip \
1318 maybe-clean-hello \
1319 maybe-clean-indent \
1320 maybe-clean-intl \
1321 maybe-clean-tcl \
1322 maybe-clean-itcl \
1323 maybe-clean-ld \
1324 maybe-clean-libgui \
1325 maybe-clean-libbanshee \
1326 maybe-clean-libiberty \
1327 maybe-clean-libtool \
1328 maybe-clean-m4 \
1329 maybe-clean-make \
1330 maybe-clean-mmalloc \
1331 maybe-clean-patch \
1332 maybe-clean-perl \
1333 maybe-clean-prms \
1334 maybe-clean-rcs \
1335 maybe-clean-readline \
1336 maybe-clean-release \
1337 maybe-clean-recode \
1338 maybe-clean-sed \
1339 maybe-clean-send-pr \
1340 maybe-clean-shellutils \
1341 maybe-clean-sid \
1342 maybe-clean-sim \
1343 maybe-clean-tar \
1344 maybe-clean-texinfo \
1345 maybe-clean-textutils \
1346 maybe-clean-time \
1347 maybe-clean-uudecode \
1348 maybe-clean-wdiff \
1349 maybe-clean-zip \
1350 maybe-clean-zlib \
1351 maybe-clean-gdb \
1352 maybe-clean-expect \
1353 maybe-clean-guile \
1354 maybe-clean-tk \
1355 maybe-clean-tix \
1356 maybe-clean-libtermcap \
1357 maybe-clean-utils
1359 .PHONY: clean-target
1360 clean-target: \
1361 maybe-clean-target-libstdc++-v3 \
1362 maybe-clean-target-libmudflap \
1363 maybe-clean-target-newlib \
1364 maybe-clean-target-libf2c \
1365 maybe-clean-target-libgfortran \
1366 maybe-clean-target-libobjc \
1367 maybe-clean-target-libtermcap \
1368 maybe-clean-target-winsup \
1369 maybe-clean-target-libgloss \
1370 maybe-clean-target-libiberty \
1371 maybe-clean-target-gperf \
1372 maybe-clean-target-examples \
1373 maybe-clean-target-libffi \
1374 maybe-clean-target-libjava \
1375 maybe-clean-target-zlib \
1376 maybe-clean-target-boehm-gc \
1377 maybe-clean-target-qthreads \
1378 maybe-clean-target-rda \
1379 maybe-clean-target-libada
1381 .PHONY: do-distclean
1382 do-distclean: distclean-host distclean-target
1384 .PHONY: distclean-host
1385 distclean-host: maybe-distclean-gcc \
1386 maybe-distclean-ash \
1387 maybe-distclean-autoconf \
1388 maybe-distclean-automake \
1389 maybe-distclean-bash \
1390 maybe-distclean-bfd \
1391 maybe-distclean-opcodes \
1392 maybe-distclean-binutils \
1393 maybe-distclean-bison \
1394 maybe-distclean-byacc \
1395 maybe-distclean-bzip2 \
1396 maybe-distclean-dejagnu \
1397 maybe-distclean-diff \
1398 maybe-distclean-dosutils \
1399 maybe-distclean-etc \
1400 maybe-distclean-fastjar \
1401 maybe-distclean-fileutils \
1402 maybe-distclean-findutils \
1403 maybe-distclean-find \
1404 maybe-distclean-flex \
1405 maybe-distclean-gas \
1406 maybe-distclean-gawk \
1407 maybe-distclean-gettext \
1408 maybe-distclean-gnuserv \
1409 maybe-distclean-gprof \
1410 maybe-distclean-gzip \
1411 maybe-distclean-hello \
1412 maybe-distclean-indent \
1413 maybe-distclean-intl \
1414 maybe-distclean-tcl \
1415 maybe-distclean-itcl \
1416 maybe-distclean-ld \
1417 maybe-distclean-libgui \
1418 maybe-distclean-libbanshee \
1419 maybe-distclean-libiberty \
1420 maybe-distclean-libtool \
1421 maybe-distclean-m4 \
1422 maybe-distclean-make \
1423 maybe-distclean-mmalloc \
1424 maybe-distclean-patch \
1425 maybe-distclean-perl \
1426 maybe-distclean-prms \
1427 maybe-distclean-rcs \
1428 maybe-distclean-readline \
1429 maybe-distclean-release \
1430 maybe-distclean-recode \
1431 maybe-distclean-sed \
1432 maybe-distclean-send-pr \
1433 maybe-distclean-shellutils \
1434 maybe-distclean-sid \
1435 maybe-distclean-sim \
1436 maybe-distclean-tar \
1437 maybe-distclean-texinfo \
1438 maybe-distclean-textutils \
1439 maybe-distclean-time \
1440 maybe-distclean-uudecode \
1441 maybe-distclean-wdiff \
1442 maybe-distclean-zip \
1443 maybe-distclean-zlib \
1444 maybe-distclean-gdb \
1445 maybe-distclean-expect \
1446 maybe-distclean-guile \
1447 maybe-distclean-tk \
1448 maybe-distclean-tix \
1449 maybe-distclean-libtermcap \
1450 maybe-distclean-utils
1452 .PHONY: distclean-target
1453 distclean-target: \
1454 maybe-distclean-target-libstdc++-v3 \
1455 maybe-distclean-target-libmudflap \
1456 maybe-distclean-target-newlib \
1457 maybe-distclean-target-libf2c \
1458 maybe-distclean-target-libgfortran \
1459 maybe-distclean-target-libobjc \
1460 maybe-distclean-target-libtermcap \
1461 maybe-distclean-target-winsup \
1462 maybe-distclean-target-libgloss \
1463 maybe-distclean-target-libiberty \
1464 maybe-distclean-target-gperf \
1465 maybe-distclean-target-examples \
1466 maybe-distclean-target-libffi \
1467 maybe-distclean-target-libjava \
1468 maybe-distclean-target-zlib \
1469 maybe-distclean-target-boehm-gc \
1470 maybe-distclean-target-qthreads \
1471 maybe-distclean-target-rda \
1472 maybe-distclean-target-libada
1474 .PHONY: do-maintainer-clean
1475 do-maintainer-clean: maintainer-clean-host maintainer-clean-target
1477 .PHONY: maintainer-clean-host
1478 maintainer-clean-host: maybe-maintainer-clean-gcc \
1479 maybe-maintainer-clean-ash \
1480 maybe-maintainer-clean-autoconf \
1481 maybe-maintainer-clean-automake \
1482 maybe-maintainer-clean-bash \
1483 maybe-maintainer-clean-bfd \
1484 maybe-maintainer-clean-opcodes \
1485 maybe-maintainer-clean-binutils \
1486 maybe-maintainer-clean-bison \
1487 maybe-maintainer-clean-byacc \
1488 maybe-maintainer-clean-bzip2 \
1489 maybe-maintainer-clean-dejagnu \
1490 maybe-maintainer-clean-diff \
1491 maybe-maintainer-clean-dosutils \
1492 maybe-maintainer-clean-etc \
1493 maybe-maintainer-clean-fastjar \
1494 maybe-maintainer-clean-fileutils \
1495 maybe-maintainer-clean-findutils \
1496 maybe-maintainer-clean-find \
1497 maybe-maintainer-clean-flex \
1498 maybe-maintainer-clean-gas \
1499 maybe-maintainer-clean-gawk \
1500 maybe-maintainer-clean-gettext \
1501 maybe-maintainer-clean-gnuserv \
1502 maybe-maintainer-clean-gprof \
1503 maybe-maintainer-clean-gzip \
1504 maybe-maintainer-clean-hello \
1505 maybe-maintainer-clean-indent \
1506 maybe-maintainer-clean-intl \
1507 maybe-maintainer-clean-tcl \
1508 maybe-maintainer-clean-itcl \
1509 maybe-maintainer-clean-ld \
1510 maybe-maintainer-clean-libgui \
1511 maybe-maintainer-clean-libbanshee \
1512 maybe-maintainer-clean-libiberty \
1513 maybe-maintainer-clean-libtool \
1514 maybe-maintainer-clean-m4 \
1515 maybe-maintainer-clean-make \
1516 maybe-maintainer-clean-mmalloc \
1517 maybe-maintainer-clean-patch \
1518 maybe-maintainer-clean-perl \
1519 maybe-maintainer-clean-prms \
1520 maybe-maintainer-clean-rcs \
1521 maybe-maintainer-clean-readline \
1522 maybe-maintainer-clean-release \
1523 maybe-maintainer-clean-recode \
1524 maybe-maintainer-clean-sed \
1525 maybe-maintainer-clean-send-pr \
1526 maybe-maintainer-clean-shellutils \
1527 maybe-maintainer-clean-sid \
1528 maybe-maintainer-clean-sim \
1529 maybe-maintainer-clean-tar \
1530 maybe-maintainer-clean-texinfo \
1531 maybe-maintainer-clean-textutils \
1532 maybe-maintainer-clean-time \
1533 maybe-maintainer-clean-uudecode \
1534 maybe-maintainer-clean-wdiff \
1535 maybe-maintainer-clean-zip \
1536 maybe-maintainer-clean-zlib \
1537 maybe-maintainer-clean-gdb \
1538 maybe-maintainer-clean-expect \
1539 maybe-maintainer-clean-guile \
1540 maybe-maintainer-clean-tk \
1541 maybe-maintainer-clean-tix \
1542 maybe-maintainer-clean-libtermcap \
1543 maybe-maintainer-clean-utils
1545 .PHONY: maintainer-clean-target
1546 maintainer-clean-target: \
1547 maybe-maintainer-clean-target-libstdc++-v3 \
1548 maybe-maintainer-clean-target-libmudflap \
1549 maybe-maintainer-clean-target-newlib \
1550 maybe-maintainer-clean-target-libf2c \
1551 maybe-maintainer-clean-target-libgfortran \
1552 maybe-maintainer-clean-target-libobjc \
1553 maybe-maintainer-clean-target-libtermcap \
1554 maybe-maintainer-clean-target-winsup \
1555 maybe-maintainer-clean-target-libgloss \
1556 maybe-maintainer-clean-target-libiberty \
1557 maybe-maintainer-clean-target-gperf \
1558 maybe-maintainer-clean-target-examples \
1559 maybe-maintainer-clean-target-libffi \
1560 maybe-maintainer-clean-target-libjava \
1561 maybe-maintainer-clean-target-zlib \
1562 maybe-maintainer-clean-target-boehm-gc \
1563 maybe-maintainer-clean-target-qthreads \
1564 maybe-maintainer-clean-target-rda \
1565 maybe-maintainer-clean-target-libada
1568 # Here are the targets which correspond to the do-X targets.
1570 .PHONY: info installcheck dvi install-info
1571 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1572 .PHONY: local-clean local-distclean local-maintainer-clean
1573 info: do-info
1574 installcheck: do-installcheck
1575 dvi: do-dvi
1577 # Make sure makeinfo is built before we do a `make info', if we're
1578 # in fact building texinfo.
1579 do-info: maybe-all-texinfo
1581 install-info: do-install-info dir.info
1582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1583 if [ -f dir.info ] ; then \
1584 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1585 else true ; fi
1587 local-clean:
1588 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1590 local-distclean:
1591 -rm -f Makefile config.status config.cache mh-frag mt-frag
1592 -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1593 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1594 rm -rf $(TARGET_SUBDIR); \
1595 else true; fi
1596 -rm -rf $(BUILD_SUBDIR)
1597 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1598 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1599 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1600 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1601 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1603 local-maintainer-clean:
1604 @echo "This command is intended for maintainers to use;"
1605 @echo "it deletes files that may require special tools to rebuild."
1607 clean: do-clean local-clean
1608 mostlyclean: do-mostlyclean local-clean
1609 distclean: do-distclean local-clean local-distclean
1610 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1611 maintainer-clean: local-distclean
1612 realclean: maintainer-clean
1614 # Extra dependency for clean-target, owing to the mixed nature of gcc
1615 clean-target: clean-target-libgcc
1616 clean-target-libgcc:
1617 test ! -d gcc/libgcc || \
1618 (cd gcc/libgcc && find . -type d -print) | \
1619 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1620 -rm -rf gcc/libgcc
1622 # Check target.
1624 .PHONY: check do-check
1625 check: do-check
1627 # Only include modules actually being configured and built.
1628 do-check: maybe-check-gcc \
1629 maybe-check-ash \
1630 maybe-check-autoconf \
1631 maybe-check-automake \
1632 maybe-check-bash \
1633 maybe-check-bfd \
1634 maybe-check-opcodes \
1635 maybe-check-binutils \
1636 maybe-check-bison \
1637 maybe-check-byacc \
1638 maybe-check-bzip2 \
1639 maybe-check-dejagnu \
1640 maybe-check-diff \
1641 maybe-check-dosutils \
1642 maybe-check-etc \
1643 maybe-check-fastjar \
1644 maybe-check-fileutils \
1645 maybe-check-findutils \
1646 maybe-check-find \
1647 maybe-check-flex \
1648 maybe-check-gas \
1649 maybe-check-gawk \
1650 maybe-check-gettext \
1651 maybe-check-gnuserv \
1652 maybe-check-gprof \
1653 maybe-check-gzip \
1654 maybe-check-hello \
1655 maybe-check-indent \
1656 maybe-check-intl \
1657 maybe-check-tcl \
1658 maybe-check-itcl \
1659 maybe-check-ld \
1660 maybe-check-libgui \
1661 maybe-check-libbanshee \
1662 maybe-check-libiberty \
1663 maybe-check-libtool \
1664 maybe-check-m4 \
1665 maybe-check-make \
1666 maybe-check-mmalloc \
1667 maybe-check-patch \
1668 maybe-check-perl \
1669 maybe-check-prms \
1670 maybe-check-rcs \
1671 maybe-check-readline \
1672 maybe-check-release \
1673 maybe-check-recode \
1674 maybe-check-sed \
1675 maybe-check-send-pr \
1676 maybe-check-shellutils \
1677 maybe-check-sid \
1678 maybe-check-sim \
1679 maybe-check-tar \
1680 maybe-check-texinfo \
1681 maybe-check-textutils \
1682 maybe-check-time \
1683 maybe-check-uudecode \
1684 maybe-check-wdiff \
1685 maybe-check-zip \
1686 maybe-check-zlib \
1687 maybe-check-gdb \
1688 maybe-check-expect \
1689 maybe-check-guile \
1690 maybe-check-tk \
1691 maybe-check-tix \
1692 maybe-check-libtermcap \
1693 maybe-check-utils \
1694 maybe-check-target-libstdc++-v3 \
1695 maybe-check-target-libmudflap \
1696 maybe-check-target-newlib \
1697 maybe-check-target-libf2c \
1698 maybe-check-target-libgfortran \
1699 maybe-check-target-libobjc \
1700 maybe-check-target-libtermcap \
1701 maybe-check-target-winsup \
1702 maybe-check-target-libgloss \
1703 maybe-check-target-libiberty \
1704 maybe-check-target-gperf \
1705 maybe-check-target-examples \
1706 maybe-check-target-libffi \
1707 maybe-check-target-libjava \
1708 maybe-check-target-zlib \
1709 maybe-check-target-boehm-gc \
1710 maybe-check-target-qthreads \
1711 maybe-check-target-rda \
1712 maybe-check-target-libada
1714 # Automated reporting of test results.
1716 warning.log: build.log
1717 $(srcdir)/contrib/warn_summary build.log > $@
1719 mail-report.log:
1720 if test x'$(BOOT_CFLAGS)' != x''; then \
1721 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1722 fi; \
1723 $(srcdir)/contrib/test_summary -t >$@
1724 chmod +x $@
1725 echo If you really want to send e-mail, run ./$@ now
1727 mail-report-with-warnings.log: warning.log
1728 if test x'$(BOOT_CFLAGS)' != x''; then \
1729 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1730 fi; \
1731 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1732 chmod +x $@
1733 echo If you really want to send e-mail, run ./$@ now
1735 # Installation targets.
1737 .PHONY: install uninstall
1738 install: installdirs install-host install-target
1740 .PHONY: install-host-nogcc
1741 install-host-nogcc: \
1742 maybe-install-ash \
1743 maybe-install-autoconf \
1744 maybe-install-automake \
1745 maybe-install-bash \
1746 maybe-install-bfd \
1747 maybe-install-opcodes \
1748 maybe-install-binutils \
1749 maybe-install-bison \
1750 maybe-install-byacc \
1751 maybe-install-bzip2 \
1752 maybe-install-dejagnu \
1753 maybe-install-diff \
1754 maybe-install-dosutils \
1755 maybe-install-etc \
1756 maybe-install-fastjar \
1757 maybe-install-fileutils \
1758 maybe-install-findutils \
1759 maybe-install-find \
1760 maybe-install-flex \
1761 maybe-install-gas \
1762 maybe-install-gawk \
1763 maybe-install-gettext \
1764 maybe-install-gnuserv \
1765 maybe-install-gprof \
1766 maybe-install-gzip \
1767 maybe-install-hello \
1768 maybe-install-indent \
1769 maybe-install-intl \
1770 maybe-install-tcl \
1771 maybe-install-itcl \
1772 maybe-install-ld \
1773 maybe-install-libgui \
1774 maybe-install-libbanshee \
1775 maybe-install-libiberty \
1776 maybe-install-libtool \
1777 maybe-install-m4 \
1778 maybe-install-make \
1779 maybe-install-mmalloc \
1780 maybe-install-patch \
1781 maybe-install-perl \
1782 maybe-install-prms \
1783 maybe-install-rcs \
1784 maybe-install-readline \
1785 maybe-install-release \
1786 maybe-install-recode \
1787 maybe-install-sed \
1788 maybe-install-send-pr \
1789 maybe-install-shellutils \
1790 maybe-install-sid \
1791 maybe-install-sim \
1792 maybe-install-tar \
1793 maybe-install-texinfo \
1794 maybe-install-textutils \
1795 maybe-install-time \
1796 maybe-install-uudecode \
1797 maybe-install-wdiff \
1798 maybe-install-zip \
1799 maybe-install-zlib \
1800 maybe-install-gdb \
1801 maybe-install-expect \
1802 maybe-install-guile \
1803 maybe-install-tk \
1804 maybe-install-tix \
1805 maybe-install-libtermcap \
1806 maybe-install-utils
1808 .PHONY: install-host
1809 install-host: maybe-install-gcc \
1810 maybe-install-ash \
1811 maybe-install-autoconf \
1812 maybe-install-automake \
1813 maybe-install-bash \
1814 maybe-install-bfd \
1815 maybe-install-opcodes \
1816 maybe-install-binutils \
1817 maybe-install-bison \
1818 maybe-install-byacc \
1819 maybe-install-bzip2 \
1820 maybe-install-dejagnu \
1821 maybe-install-diff \
1822 maybe-install-dosutils \
1823 maybe-install-etc \
1824 maybe-install-fastjar \
1825 maybe-install-fileutils \
1826 maybe-install-findutils \
1827 maybe-install-find \
1828 maybe-install-flex \
1829 maybe-install-gas \
1830 maybe-install-gawk \
1831 maybe-install-gettext \
1832 maybe-install-gnuserv \
1833 maybe-install-gprof \
1834 maybe-install-gzip \
1835 maybe-install-hello \
1836 maybe-install-indent \
1837 maybe-install-intl \
1838 maybe-install-tcl \
1839 maybe-install-itcl \
1840 maybe-install-ld \
1841 maybe-install-libgui \
1842 maybe-install-libbanshee \
1843 maybe-install-libiberty \
1844 maybe-install-libtool \
1845 maybe-install-m4 \
1846 maybe-install-make \
1847 maybe-install-mmalloc \
1848 maybe-install-patch \
1849 maybe-install-perl \
1850 maybe-install-prms \
1851 maybe-install-rcs \
1852 maybe-install-readline \
1853 maybe-install-release \
1854 maybe-install-recode \
1855 maybe-install-sed \
1856 maybe-install-send-pr \
1857 maybe-install-shellutils \
1858 maybe-install-sid \
1859 maybe-install-sim \
1860 maybe-install-tar \
1861 maybe-install-texinfo \
1862 maybe-install-textutils \
1863 maybe-install-time \
1864 maybe-install-uudecode \
1865 maybe-install-wdiff \
1866 maybe-install-zip \
1867 maybe-install-zlib \
1868 maybe-install-gdb \
1869 maybe-install-expect \
1870 maybe-install-guile \
1871 maybe-install-tk \
1872 maybe-install-tix \
1873 maybe-install-libtermcap \
1874 maybe-install-utils
1876 .PHONY: install-target
1877 install-target: \
1878 maybe-install-target-libstdc++-v3 \
1879 maybe-install-target-libmudflap \
1880 maybe-install-target-newlib \
1881 maybe-install-target-libf2c \
1882 maybe-install-target-libgfortran \
1883 maybe-install-target-libobjc \
1884 maybe-install-target-libtermcap \
1885 maybe-install-target-winsup \
1886 maybe-install-target-libgloss \
1887 maybe-install-target-libiberty \
1888 maybe-install-target-gperf \
1889 maybe-install-target-examples \
1890 maybe-install-target-libffi \
1891 maybe-install-target-libjava \
1892 maybe-install-target-zlib \
1893 maybe-install-target-boehm-gc \
1894 maybe-install-target-qthreads \
1895 maybe-install-target-rda \
1896 maybe-install-target-libada
1898 uninstall:
1899 @echo "the uninstall target is not supported in this tree"
1901 .PHONY: install.all
1902 install.all: install-no-fixedincludes
1903 @if [ -f ./gcc/Makefile ] ; then \
1904 r=`${PWD_COMMAND}` ; export r ; \
1905 $(SET_LIB_PATH) \
1906 (cd ./gcc && \
1907 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1908 else \
1909 true ; \
1912 # install-no-fixedincludes is used because Cygnus can not distribute
1913 # the fixed header files.
1914 .PHONY: install-no-fixedincludes
1915 install-no-fixedincludes: installdirs install-host-nogcc \
1916 install-target gcc-no-fixedincludes
1918 ### other supporting targets
1920 MAKEDIRS= \
1921 $(DESTDIR)$(prefix) \
1922 $(DESTDIR)$(exec_prefix)
1923 .PHONY: installdirs
1924 installdirs: mkinstalldirs
1925 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1927 dir.info: do-install-info
1928 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1929 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1930 mv -f dir.info.new dir.info ; \
1931 else true ; \
1934 dist:
1935 @echo "Building a full distribution of this tree isn't done"
1936 @echo "via 'make dist'. Check out the etc/ subdirectory"
1938 etags tags: TAGS
1940 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1941 # ability to use several tags files at once, so there is probably no need
1942 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1943 # (if we felt like it) have this Makefile write a piece of elisp which
1944 # the user could load to tell emacs19 where all the TAGS files we just
1945 # built are.
1946 TAGS: do-TAGS
1948 # --------------------------------------
1949 # Modules which run on the build machine
1950 # --------------------------------------
1952 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
1953 maybe-configure-build-libiberty:
1954 configure-build-libiberty:
1955 @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
1956 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
1957 r=`${PWD_COMMAND}`; export r; \
1958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1959 AR="$(AR_FOR_BUILD)"; export AR; \
1960 AS="$(AS_FOR_BUILD)"; export AS; \
1961 CC="$(CC_FOR_BUILD)"; export CC; \
1962 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1963 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
1964 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1965 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1966 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1967 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
1968 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1969 LD="$(LD_FOR_BUILD)"; export LD; \
1970 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1971 NM="$(NM_FOR_BUILD)"; export NM; \
1972 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1973 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1974 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
1975 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
1976 case $(srcdir) in \
1977 /* | [A-Za-z]:[\\/]*) \
1978 topdir=$(srcdir) ;; \
1979 *) \
1980 case "$(BUILD_SUBDIR)" in \
1981 .) topdir="../$(srcdir)" ;; \
1982 *) topdir="../../$(srcdir)" ;; \
1983 esac ;; \
1984 esac; \
1985 if [ "$(srcdir)" = "." ] ; then \
1986 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1987 if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
1988 if [ -f Makefile ]; then \
1989 if $(MAKE) distclean; then \
1990 true; \
1991 else \
1992 exit 1; \
1993 fi; \
1994 else \
1995 true; \
1996 fi; \
1997 else \
1998 exit 1; \
1999 fi; \
2000 else \
2001 true; \
2002 fi; \
2003 srcdiroption="--srcdir=."; \
2004 libsrcdir="."; \
2005 else \
2006 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2007 libsrcdir="$$s/libiberty"; \
2008 fi; \
2009 rm -f no-such-file || : ; \
2010 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2011 $(BUILD_CONFIGARGS) $${srcdiroption} \
2012 --with-build-subdir="$(BUILD_SUBDIR)" \
2013 || exit 1
2015 .PHONY: all-build-libiberty maybe-all-build-libiberty
2016 maybe-all-build-libiberty:
2017 all-build-libiberty: configure-build-libiberty
2018 @r=`${PWD_COMMAND}`; export r; \
2019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2020 (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
2022 .PHONY: configure-build-libbanshee maybe-configure-build-libbanshee
2023 maybe-configure-build-libbanshee:
2024 configure-build-libbanshee:
2025 @test ! -f $(BUILD_SUBDIR)/libbanshee/Makefile || exit 0; \
2026 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libbanshee ; \
2027 r=`${PWD_COMMAND}`; export r; \
2028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2029 AR="$(AR_FOR_BUILD)"; export AR; \
2030 AS="$(AS_FOR_BUILD)"; export AS; \
2031 CC="$(CC_FOR_BUILD)"; export CC; \
2032 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
2033 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2034 CXX="$(CXX_FOR_BUILD)"; export CXX; \
2035 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
2036 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
2037 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
2038 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
2039 LD="$(LD_FOR_BUILD)"; export LD; \
2040 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
2041 NM="$(NM_FOR_BUILD)"; export NM; \
2042 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
2043 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
2044 echo Configuring in $(BUILD_SUBDIR)/libbanshee; \
2045 cd "$(BUILD_SUBDIR)/libbanshee" || exit 1; \
2046 case $(srcdir) in \
2047 /* | [A-Za-z]:[\\/]*) \
2048 topdir=$(srcdir) ;; \
2049 *) \
2050 case "$(BUILD_SUBDIR)" in \
2051 .) topdir="../$(srcdir)" ;; \
2052 *) topdir="../../$(srcdir)" ;; \
2053 esac ;; \
2054 esac; \
2055 if [ "$(srcdir)" = "." ] ; then \
2056 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2057 if $(SHELL) $$s/symlink-tree $${topdir}/libbanshee "no-such-file" ; then \
2058 if [ -f Makefile ]; then \
2059 if $(MAKE) distclean; then \
2060 true; \
2061 else \
2062 exit 1; \
2063 fi; \
2064 else \
2065 true; \
2066 fi; \
2067 else \
2068 exit 1; \
2069 fi; \
2070 else \
2071 true; \
2072 fi; \
2073 srcdiroption="--srcdir=."; \
2074 libsrcdir="."; \
2075 else \
2076 srcdiroption="--srcdir=$${topdir}/libbanshee"; \
2077 libsrcdir="$$s/libbanshee"; \
2078 fi; \
2079 rm -f no-such-file || : ; \
2080 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2081 $(BUILD_CONFIGARGS) $${srcdiroption} \
2082 --with-build-subdir="$(BUILD_SUBDIR)" \
2083 || exit 1
2085 .PHONY: all-build-libbanshee maybe-all-build-libbanshee
2086 maybe-all-build-libbanshee:
2087 all-build-libbanshee: configure-build-libbanshee
2088 @r=`${PWD_COMMAND}`; export r; \
2089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2090 (cd $(BUILD_SUBDIR)/libbanshee && $(MAKE) all)
2093 # --------------------------------------
2094 # Modules which run on the host machine
2095 # --------------------------------------
2097 .PHONY: configure-ash maybe-configure-ash
2098 maybe-configure-ash:
2099 configure-ash:
2100 @test ! -f ash/Makefile || exit 0; \
2101 [ -d ash ] || mkdir ash; \
2102 r=`${PWD_COMMAND}`; export r; \
2103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2104 CC="$(CC)"; export CC; \
2105 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2106 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2107 CXX="$(CXX)"; export CXX; \
2108 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2109 AR="$(AR)"; export AR; \
2110 AS="$(AS)"; export AS; \
2111 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2112 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2113 LD="$(LD)"; export LD; \
2114 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2115 NM="$(NM)"; export NM; \
2116 RANLIB="$(RANLIB)"; export RANLIB; \
2117 WINDRES="$(WINDRES)"; export WINDRES; \
2118 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2119 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2120 echo Configuring in ash; \
2121 cd ash || exit 1; \
2122 case $(srcdir) in \
2123 \.) \
2124 srcdiroption="--srcdir=."; \
2125 libsrcdir=".";; \
2126 /* | [A-Za-z]:[\\/]*) \
2127 srcdiroption="--srcdir=$(srcdir)/ash"; \
2128 libsrcdir="$$s/ash";; \
2129 *) \
2130 srcdiroption="--srcdir=../$(srcdir)/ash"; \
2131 libsrcdir="$$s/ash";; \
2132 esac; \
2133 $(SHELL) $${libsrcdir}/configure \
2134 $(HOST_CONFIGARGS) $${srcdiroption} \
2135 || exit 1
2137 .PHONY: all-ash maybe-all-ash
2138 maybe-all-ash:
2139 all-ash: configure-ash
2140 @r=`${PWD_COMMAND}`; export r; \
2141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2142 $(SET_LIB_PATH) \
2143 (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2145 .PHONY: check-ash maybe-check-ash
2146 maybe-check-ash:
2148 check-ash:
2149 @r=`${PWD_COMMAND}`; export r; \
2150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2151 $(SET_LIB_PATH) \
2152 (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2155 .PHONY: install-ash maybe-install-ash
2156 maybe-install-ash:
2158 install-ash: installdirs
2159 @r=`${PWD_COMMAND}`; export r; \
2160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2161 $(SET_LIB_PATH) \
2162 (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2165 # Other targets (info, dvi, etc.)
2167 .PHONY: maybe-info-ash info-ash
2168 maybe-info-ash:
2170 info-ash: \
2171 configure-ash
2172 @[ -f ./ash/Makefile ] || exit 0; \
2173 r=`${PWD_COMMAND}`; export r; \
2174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2175 $(SET_LIB_PATH) \
2176 for flag in $(EXTRA_HOST_FLAGS); do \
2177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2178 done; \
2179 echo "Doing info in ash" ; \
2180 (cd ash && \
2181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2183 "RANLIB=$${RANLIB}" \
2184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2185 info) \
2186 || exit 1
2189 .PHONY: maybe-dvi-ash dvi-ash
2190 maybe-dvi-ash:
2192 dvi-ash: \
2193 configure-ash
2194 @[ -f ./ash/Makefile ] || exit 0; \
2195 r=`${PWD_COMMAND}`; export r; \
2196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2197 $(SET_LIB_PATH) \
2198 for flag in $(EXTRA_HOST_FLAGS); do \
2199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2200 done; \
2201 echo "Doing dvi in ash" ; \
2202 (cd ash && \
2203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2205 "RANLIB=$${RANLIB}" \
2206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2207 dvi) \
2208 || exit 1
2211 .PHONY: maybe-TAGS-ash TAGS-ash
2212 maybe-TAGS-ash:
2214 TAGS-ash: \
2215 configure-ash
2216 @[ -f ./ash/Makefile ] || exit 0; \
2217 r=`${PWD_COMMAND}`; export r; \
2218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2219 $(SET_LIB_PATH) \
2220 for flag in $(EXTRA_HOST_FLAGS); do \
2221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2222 done; \
2223 echo "Doing TAGS in ash" ; \
2224 (cd ash && \
2225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2227 "RANLIB=$${RANLIB}" \
2228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2229 TAGS) \
2230 || exit 1
2233 .PHONY: maybe-install-info-ash install-info-ash
2234 maybe-install-info-ash:
2236 install-info-ash: \
2237 configure-ash \
2238 info-ash
2239 @[ -f ./ash/Makefile ] || exit 0; \
2240 r=`${PWD_COMMAND}`; export r; \
2241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2242 $(SET_LIB_PATH) \
2243 for flag in $(EXTRA_HOST_FLAGS); do \
2244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2245 done; \
2246 echo "Doing install-info in ash" ; \
2247 (cd ash && \
2248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2250 "RANLIB=$${RANLIB}" \
2251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2252 install-info) \
2253 || exit 1
2256 .PHONY: maybe-installcheck-ash installcheck-ash
2257 maybe-installcheck-ash:
2259 installcheck-ash: \
2260 configure-ash
2261 @[ -f ./ash/Makefile ] || exit 0; \
2262 r=`${PWD_COMMAND}`; export r; \
2263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2264 $(SET_LIB_PATH) \
2265 for flag in $(EXTRA_HOST_FLAGS); do \
2266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2267 done; \
2268 echo "Doing installcheck in ash" ; \
2269 (cd ash && \
2270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2272 "RANLIB=$${RANLIB}" \
2273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2274 installcheck) \
2275 || exit 1
2278 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2279 maybe-mostlyclean-ash:
2281 mostlyclean-ash:
2282 @[ -f ./ash/Makefile ] || exit 0; \
2283 r=`${PWD_COMMAND}`; export r; \
2284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2285 $(SET_LIB_PATH) \
2286 for flag in $(EXTRA_HOST_FLAGS); do \
2287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2288 done; \
2289 echo "Doing mostlyclean in ash" ; \
2290 (cd ash && \
2291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2293 "RANLIB=$${RANLIB}" \
2294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2295 mostlyclean) \
2296 || exit 1
2299 .PHONY: maybe-clean-ash clean-ash
2300 maybe-clean-ash:
2302 clean-ash:
2303 @[ -f ./ash/Makefile ] || exit 0; \
2304 r=`${PWD_COMMAND}`; export r; \
2305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2306 $(SET_LIB_PATH) \
2307 for flag in $(EXTRA_HOST_FLAGS); do \
2308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2309 done; \
2310 echo "Doing clean in ash" ; \
2311 (cd ash && \
2312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2314 "RANLIB=$${RANLIB}" \
2315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2316 clean) \
2317 || exit 1
2320 .PHONY: maybe-distclean-ash distclean-ash
2321 maybe-distclean-ash:
2323 distclean-ash:
2324 @[ -f ./ash/Makefile ] || exit 0; \
2325 r=`${PWD_COMMAND}`; export r; \
2326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2327 $(SET_LIB_PATH) \
2328 for flag in $(EXTRA_HOST_FLAGS); do \
2329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2330 done; \
2331 echo "Doing distclean in ash" ; \
2332 (cd ash && \
2333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2335 "RANLIB=$${RANLIB}" \
2336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2337 distclean) \
2338 || exit 1
2341 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2342 maybe-maintainer-clean-ash:
2344 maintainer-clean-ash:
2345 @[ -f ./ash/Makefile ] || exit 0; \
2346 r=`${PWD_COMMAND}`; export r; \
2347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2348 $(SET_LIB_PATH) \
2349 for flag in $(EXTRA_HOST_FLAGS); do \
2350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2351 done; \
2352 echo "Doing maintainer-clean in ash" ; \
2353 (cd ash && \
2354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2356 "RANLIB=$${RANLIB}" \
2357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2358 maintainer-clean) \
2359 || exit 1
2363 .PHONY: configure-autoconf maybe-configure-autoconf
2364 maybe-configure-autoconf:
2365 configure-autoconf:
2366 @test ! -f autoconf/Makefile || exit 0; \
2367 [ -d autoconf ] || mkdir autoconf; \
2368 r=`${PWD_COMMAND}`; export r; \
2369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2370 CC="$(CC)"; export CC; \
2371 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2372 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2373 CXX="$(CXX)"; export CXX; \
2374 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2375 AR="$(AR)"; export AR; \
2376 AS="$(AS)"; export AS; \
2377 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2378 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2379 LD="$(LD)"; export LD; \
2380 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2381 NM="$(NM)"; export NM; \
2382 RANLIB="$(RANLIB)"; export RANLIB; \
2383 WINDRES="$(WINDRES)"; export WINDRES; \
2384 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2385 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2386 echo Configuring in autoconf; \
2387 cd autoconf || exit 1; \
2388 case $(srcdir) in \
2389 \.) \
2390 srcdiroption="--srcdir=."; \
2391 libsrcdir=".";; \
2392 /* | [A-Za-z]:[\\/]*) \
2393 srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2394 libsrcdir="$$s/autoconf";; \
2395 *) \
2396 srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2397 libsrcdir="$$s/autoconf";; \
2398 esac; \
2399 $(SHELL) $${libsrcdir}/configure \
2400 $(HOST_CONFIGARGS) $${srcdiroption} \
2401 || exit 1
2403 .PHONY: all-autoconf maybe-all-autoconf
2404 maybe-all-autoconf:
2405 all-autoconf: configure-autoconf
2406 @r=`${PWD_COMMAND}`; export r; \
2407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2408 $(SET_LIB_PATH) \
2409 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2411 .PHONY: check-autoconf maybe-check-autoconf
2412 maybe-check-autoconf:
2414 check-autoconf:
2415 @r=`${PWD_COMMAND}`; export r; \
2416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2417 $(SET_LIB_PATH) \
2418 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2421 .PHONY: install-autoconf maybe-install-autoconf
2422 maybe-install-autoconf:
2424 install-autoconf: installdirs
2425 @r=`${PWD_COMMAND}`; export r; \
2426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2427 $(SET_LIB_PATH) \
2428 (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2431 # Other targets (info, dvi, etc.)
2433 .PHONY: maybe-info-autoconf info-autoconf
2434 maybe-info-autoconf:
2436 info-autoconf: \
2437 configure-autoconf
2438 @[ -f ./autoconf/Makefile ] || exit 0; \
2439 r=`${PWD_COMMAND}`; export r; \
2440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2441 $(SET_LIB_PATH) \
2442 for flag in $(EXTRA_HOST_FLAGS); do \
2443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2444 done; \
2445 echo "Doing info in autoconf" ; \
2446 (cd autoconf && \
2447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2449 "RANLIB=$${RANLIB}" \
2450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2451 info) \
2452 || exit 1
2455 .PHONY: maybe-dvi-autoconf dvi-autoconf
2456 maybe-dvi-autoconf:
2458 dvi-autoconf: \
2459 configure-autoconf
2460 @[ -f ./autoconf/Makefile ] || exit 0; \
2461 r=`${PWD_COMMAND}`; export r; \
2462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2463 $(SET_LIB_PATH) \
2464 for flag in $(EXTRA_HOST_FLAGS); do \
2465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2466 done; \
2467 echo "Doing dvi in autoconf" ; \
2468 (cd autoconf && \
2469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2471 "RANLIB=$${RANLIB}" \
2472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2473 dvi) \
2474 || exit 1
2477 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2478 maybe-TAGS-autoconf:
2480 TAGS-autoconf: \
2481 configure-autoconf
2482 @[ -f ./autoconf/Makefile ] || exit 0; \
2483 r=`${PWD_COMMAND}`; export r; \
2484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2485 $(SET_LIB_PATH) \
2486 for flag in $(EXTRA_HOST_FLAGS); do \
2487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2488 done; \
2489 echo "Doing TAGS in autoconf" ; \
2490 (cd autoconf && \
2491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2493 "RANLIB=$${RANLIB}" \
2494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2495 TAGS) \
2496 || exit 1
2499 .PHONY: maybe-install-info-autoconf install-info-autoconf
2500 maybe-install-info-autoconf:
2502 install-info-autoconf: \
2503 configure-autoconf \
2504 info-autoconf
2505 @[ -f ./autoconf/Makefile ] || exit 0; \
2506 r=`${PWD_COMMAND}`; export r; \
2507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2508 $(SET_LIB_PATH) \
2509 for flag in $(EXTRA_HOST_FLAGS); do \
2510 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2511 done; \
2512 echo "Doing install-info in autoconf" ; \
2513 (cd autoconf && \
2514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2516 "RANLIB=$${RANLIB}" \
2517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2518 install-info) \
2519 || exit 1
2522 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2523 maybe-installcheck-autoconf:
2525 installcheck-autoconf: \
2526 configure-autoconf
2527 @[ -f ./autoconf/Makefile ] || exit 0; \
2528 r=`${PWD_COMMAND}`; export r; \
2529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2530 $(SET_LIB_PATH) \
2531 for flag in $(EXTRA_HOST_FLAGS); do \
2532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2533 done; \
2534 echo "Doing installcheck in autoconf" ; \
2535 (cd autoconf && \
2536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2538 "RANLIB=$${RANLIB}" \
2539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2540 installcheck) \
2541 || exit 1
2544 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
2545 maybe-mostlyclean-autoconf:
2547 mostlyclean-autoconf:
2548 @[ -f ./autoconf/Makefile ] || exit 0; \
2549 r=`${PWD_COMMAND}`; export r; \
2550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2551 $(SET_LIB_PATH) \
2552 for flag in $(EXTRA_HOST_FLAGS); do \
2553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2554 done; \
2555 echo "Doing mostlyclean in autoconf" ; \
2556 (cd autoconf && \
2557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2559 "RANLIB=$${RANLIB}" \
2560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2561 mostlyclean) \
2562 || exit 1
2565 .PHONY: maybe-clean-autoconf clean-autoconf
2566 maybe-clean-autoconf:
2568 clean-autoconf:
2569 @[ -f ./autoconf/Makefile ] || exit 0; \
2570 r=`${PWD_COMMAND}`; export r; \
2571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2572 $(SET_LIB_PATH) \
2573 for flag in $(EXTRA_HOST_FLAGS); do \
2574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2575 done; \
2576 echo "Doing clean in autoconf" ; \
2577 (cd autoconf && \
2578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2580 "RANLIB=$${RANLIB}" \
2581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2582 clean) \
2583 || exit 1
2586 .PHONY: maybe-distclean-autoconf distclean-autoconf
2587 maybe-distclean-autoconf:
2589 distclean-autoconf:
2590 @[ -f ./autoconf/Makefile ] || exit 0; \
2591 r=`${PWD_COMMAND}`; export r; \
2592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2593 $(SET_LIB_PATH) \
2594 for flag in $(EXTRA_HOST_FLAGS); do \
2595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2596 done; \
2597 echo "Doing distclean in autoconf" ; \
2598 (cd autoconf && \
2599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2601 "RANLIB=$${RANLIB}" \
2602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2603 distclean) \
2604 || exit 1
2607 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
2608 maybe-maintainer-clean-autoconf:
2610 maintainer-clean-autoconf:
2611 @[ -f ./autoconf/Makefile ] || exit 0; \
2612 r=`${PWD_COMMAND}`; export r; \
2613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2614 $(SET_LIB_PATH) \
2615 for flag in $(EXTRA_HOST_FLAGS); do \
2616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2617 done; \
2618 echo "Doing maintainer-clean in autoconf" ; \
2619 (cd autoconf && \
2620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2622 "RANLIB=$${RANLIB}" \
2623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2624 maintainer-clean) \
2625 || exit 1
2629 .PHONY: configure-automake maybe-configure-automake
2630 maybe-configure-automake:
2631 configure-automake:
2632 @test ! -f automake/Makefile || exit 0; \
2633 [ -d automake ] || mkdir automake; \
2634 r=`${PWD_COMMAND}`; export r; \
2635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2636 CC="$(CC)"; export CC; \
2637 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2638 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2639 CXX="$(CXX)"; export CXX; \
2640 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2641 AR="$(AR)"; export AR; \
2642 AS="$(AS)"; export AS; \
2643 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2644 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2645 LD="$(LD)"; export LD; \
2646 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2647 NM="$(NM)"; export NM; \
2648 RANLIB="$(RANLIB)"; export RANLIB; \
2649 WINDRES="$(WINDRES)"; export WINDRES; \
2650 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2651 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2652 echo Configuring in automake; \
2653 cd automake || exit 1; \
2654 case $(srcdir) in \
2655 \.) \
2656 srcdiroption="--srcdir=."; \
2657 libsrcdir=".";; \
2658 /* | [A-Za-z]:[\\/]*) \
2659 srcdiroption="--srcdir=$(srcdir)/automake"; \
2660 libsrcdir="$$s/automake";; \
2661 *) \
2662 srcdiroption="--srcdir=../$(srcdir)/automake"; \
2663 libsrcdir="$$s/automake";; \
2664 esac; \
2665 $(SHELL) $${libsrcdir}/configure \
2666 $(HOST_CONFIGARGS) $${srcdiroption} \
2667 || exit 1
2669 .PHONY: all-automake maybe-all-automake
2670 maybe-all-automake:
2671 all-automake: configure-automake
2672 @r=`${PWD_COMMAND}`; export r; \
2673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2674 $(SET_LIB_PATH) \
2675 (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
2677 .PHONY: check-automake maybe-check-automake
2678 maybe-check-automake:
2680 check-automake:
2681 @r=`${PWD_COMMAND}`; export r; \
2682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2683 $(SET_LIB_PATH) \
2684 (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
2687 .PHONY: install-automake maybe-install-automake
2688 maybe-install-automake:
2690 install-automake: installdirs
2691 @r=`${PWD_COMMAND}`; export r; \
2692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2693 $(SET_LIB_PATH) \
2694 (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2697 # Other targets (info, dvi, etc.)
2699 .PHONY: maybe-info-automake info-automake
2700 maybe-info-automake:
2702 info-automake: \
2703 configure-automake
2704 @[ -f ./automake/Makefile ] || exit 0; \
2705 r=`${PWD_COMMAND}`; export r; \
2706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2707 $(SET_LIB_PATH) \
2708 for flag in $(EXTRA_HOST_FLAGS); do \
2709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2710 done; \
2711 echo "Doing info in automake" ; \
2712 (cd automake && \
2713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2715 "RANLIB=$${RANLIB}" \
2716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2717 info) \
2718 || exit 1
2721 .PHONY: maybe-dvi-automake dvi-automake
2722 maybe-dvi-automake:
2724 dvi-automake: \
2725 configure-automake
2726 @[ -f ./automake/Makefile ] || exit 0; \
2727 r=`${PWD_COMMAND}`; export r; \
2728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2729 $(SET_LIB_PATH) \
2730 for flag in $(EXTRA_HOST_FLAGS); do \
2731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2732 done; \
2733 echo "Doing dvi in automake" ; \
2734 (cd automake && \
2735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2737 "RANLIB=$${RANLIB}" \
2738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2739 dvi) \
2740 || exit 1
2743 .PHONY: maybe-TAGS-automake TAGS-automake
2744 maybe-TAGS-automake:
2746 TAGS-automake: \
2747 configure-automake
2748 @[ -f ./automake/Makefile ] || exit 0; \
2749 r=`${PWD_COMMAND}`; export r; \
2750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2751 $(SET_LIB_PATH) \
2752 for flag in $(EXTRA_HOST_FLAGS); do \
2753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2754 done; \
2755 echo "Doing TAGS in automake" ; \
2756 (cd automake && \
2757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2759 "RANLIB=$${RANLIB}" \
2760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2761 TAGS) \
2762 || exit 1
2765 .PHONY: maybe-install-info-automake install-info-automake
2766 maybe-install-info-automake:
2768 install-info-automake: \
2769 configure-automake \
2770 info-automake
2771 @[ -f ./automake/Makefile ] || exit 0; \
2772 r=`${PWD_COMMAND}`; export r; \
2773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2774 $(SET_LIB_PATH) \
2775 for flag in $(EXTRA_HOST_FLAGS); do \
2776 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2777 done; \
2778 echo "Doing install-info in automake" ; \
2779 (cd automake && \
2780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2782 "RANLIB=$${RANLIB}" \
2783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2784 install-info) \
2785 || exit 1
2788 .PHONY: maybe-installcheck-automake installcheck-automake
2789 maybe-installcheck-automake:
2791 installcheck-automake: \
2792 configure-automake
2793 @[ -f ./automake/Makefile ] || exit 0; \
2794 r=`${PWD_COMMAND}`; export r; \
2795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2796 $(SET_LIB_PATH) \
2797 for flag in $(EXTRA_HOST_FLAGS); do \
2798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2799 done; \
2800 echo "Doing installcheck in automake" ; \
2801 (cd automake && \
2802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2804 "RANLIB=$${RANLIB}" \
2805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2806 installcheck) \
2807 || exit 1
2810 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
2811 maybe-mostlyclean-automake:
2813 mostlyclean-automake:
2814 @[ -f ./automake/Makefile ] || exit 0; \
2815 r=`${PWD_COMMAND}`; export r; \
2816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2817 $(SET_LIB_PATH) \
2818 for flag in $(EXTRA_HOST_FLAGS); do \
2819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2820 done; \
2821 echo "Doing mostlyclean in automake" ; \
2822 (cd automake && \
2823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2825 "RANLIB=$${RANLIB}" \
2826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2827 mostlyclean) \
2828 || exit 1
2831 .PHONY: maybe-clean-automake clean-automake
2832 maybe-clean-automake:
2834 clean-automake:
2835 @[ -f ./automake/Makefile ] || exit 0; \
2836 r=`${PWD_COMMAND}`; export r; \
2837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2838 $(SET_LIB_PATH) \
2839 for flag in $(EXTRA_HOST_FLAGS); do \
2840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2841 done; \
2842 echo "Doing clean in automake" ; \
2843 (cd automake && \
2844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2846 "RANLIB=$${RANLIB}" \
2847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2848 clean) \
2849 || exit 1
2852 .PHONY: maybe-distclean-automake distclean-automake
2853 maybe-distclean-automake:
2855 distclean-automake:
2856 @[ -f ./automake/Makefile ] || exit 0; \
2857 r=`${PWD_COMMAND}`; export r; \
2858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2859 $(SET_LIB_PATH) \
2860 for flag in $(EXTRA_HOST_FLAGS); do \
2861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2862 done; \
2863 echo "Doing distclean in automake" ; \
2864 (cd automake && \
2865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2867 "RANLIB=$${RANLIB}" \
2868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2869 distclean) \
2870 || exit 1
2873 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
2874 maybe-maintainer-clean-automake:
2876 maintainer-clean-automake:
2877 @[ -f ./automake/Makefile ] || exit 0; \
2878 r=`${PWD_COMMAND}`; export r; \
2879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2880 $(SET_LIB_PATH) \
2881 for flag in $(EXTRA_HOST_FLAGS); do \
2882 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2883 done; \
2884 echo "Doing maintainer-clean in automake" ; \
2885 (cd automake && \
2886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2888 "RANLIB=$${RANLIB}" \
2889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2890 maintainer-clean) \
2891 || exit 1
2895 .PHONY: configure-bash maybe-configure-bash
2896 maybe-configure-bash:
2897 configure-bash:
2898 @test ! -f bash/Makefile || exit 0; \
2899 [ -d bash ] || mkdir bash; \
2900 r=`${PWD_COMMAND}`; export r; \
2901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2902 CC="$(CC)"; export CC; \
2903 CFLAGS="$(CFLAGS)"; export CFLAGS; \
2904 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
2905 CXX="$(CXX)"; export CXX; \
2906 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
2907 AR="$(AR)"; export AR; \
2908 AS="$(AS)"; export AS; \
2909 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
2910 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
2911 LD="$(LD)"; export LD; \
2912 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
2913 NM="$(NM)"; export NM; \
2914 RANLIB="$(RANLIB)"; export RANLIB; \
2915 WINDRES="$(WINDRES)"; export WINDRES; \
2916 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
2917 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2918 echo Configuring in bash; \
2919 cd bash || exit 1; \
2920 case $(srcdir) in \
2921 \.) \
2922 srcdiroption="--srcdir=."; \
2923 libsrcdir=".";; \
2924 /* | [A-Za-z]:[\\/]*) \
2925 srcdiroption="--srcdir=$(srcdir)/bash"; \
2926 libsrcdir="$$s/bash";; \
2927 *) \
2928 srcdiroption="--srcdir=../$(srcdir)/bash"; \
2929 libsrcdir="$$s/bash";; \
2930 esac; \
2931 $(SHELL) $${libsrcdir}/configure \
2932 $(HOST_CONFIGARGS) $${srcdiroption} \
2933 || exit 1
2935 .PHONY: all-bash maybe-all-bash
2936 maybe-all-bash:
2937 all-bash: configure-bash
2938 @r=`${PWD_COMMAND}`; export r; \
2939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2940 $(SET_LIB_PATH) \
2941 (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
2943 .PHONY: check-bash maybe-check-bash
2944 maybe-check-bash:
2946 check-bash:
2947 @r=`${PWD_COMMAND}`; export r; \
2948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2949 $(SET_LIB_PATH) \
2950 (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
2953 .PHONY: install-bash maybe-install-bash
2954 maybe-install-bash:
2956 install-bash: installdirs
2957 @r=`${PWD_COMMAND}`; export r; \
2958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2959 $(SET_LIB_PATH) \
2960 (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
2963 # Other targets (info, dvi, etc.)
2965 .PHONY: maybe-info-bash info-bash
2966 maybe-info-bash:
2968 info-bash: \
2969 configure-bash
2970 @[ -f ./bash/Makefile ] || exit 0; \
2971 r=`${PWD_COMMAND}`; export r; \
2972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2973 $(SET_LIB_PATH) \
2974 for flag in $(EXTRA_HOST_FLAGS); do \
2975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2976 done; \
2977 echo "Doing info in bash" ; \
2978 (cd bash && \
2979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2981 "RANLIB=$${RANLIB}" \
2982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2983 info) \
2984 || exit 1
2987 .PHONY: maybe-dvi-bash dvi-bash
2988 maybe-dvi-bash:
2990 dvi-bash: \
2991 configure-bash
2992 @[ -f ./bash/Makefile ] || exit 0; \
2993 r=`${PWD_COMMAND}`; export r; \
2994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2995 $(SET_LIB_PATH) \
2996 for flag in $(EXTRA_HOST_FLAGS); do \
2997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2998 done; \
2999 echo "Doing dvi in bash" ; \
3000 (cd bash && \
3001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3003 "RANLIB=$${RANLIB}" \
3004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3005 dvi) \
3006 || exit 1
3009 .PHONY: maybe-TAGS-bash TAGS-bash
3010 maybe-TAGS-bash:
3012 TAGS-bash: \
3013 configure-bash
3014 @[ -f ./bash/Makefile ] || exit 0; \
3015 r=`${PWD_COMMAND}`; export r; \
3016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3017 $(SET_LIB_PATH) \
3018 for flag in $(EXTRA_HOST_FLAGS); do \
3019 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3020 done; \
3021 echo "Doing TAGS in bash" ; \
3022 (cd bash && \
3023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3025 "RANLIB=$${RANLIB}" \
3026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3027 TAGS) \
3028 || exit 1
3031 .PHONY: maybe-install-info-bash install-info-bash
3032 maybe-install-info-bash:
3034 install-info-bash: \
3035 configure-bash \
3036 info-bash
3037 @[ -f ./bash/Makefile ] || exit 0; \
3038 r=`${PWD_COMMAND}`; export r; \
3039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3040 $(SET_LIB_PATH) \
3041 for flag in $(EXTRA_HOST_FLAGS); do \
3042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3043 done; \
3044 echo "Doing install-info in bash" ; \
3045 (cd bash && \
3046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3048 "RANLIB=$${RANLIB}" \
3049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3050 install-info) \
3051 || exit 1
3054 .PHONY: maybe-installcheck-bash installcheck-bash
3055 maybe-installcheck-bash:
3057 installcheck-bash: \
3058 configure-bash
3059 @[ -f ./bash/Makefile ] || exit 0; \
3060 r=`${PWD_COMMAND}`; export r; \
3061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3062 $(SET_LIB_PATH) \
3063 for flag in $(EXTRA_HOST_FLAGS); do \
3064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3065 done; \
3066 echo "Doing installcheck in bash" ; \
3067 (cd bash && \
3068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3070 "RANLIB=$${RANLIB}" \
3071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3072 installcheck) \
3073 || exit 1
3076 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3077 maybe-mostlyclean-bash:
3079 mostlyclean-bash:
3080 @[ -f ./bash/Makefile ] || exit 0; \
3081 r=`${PWD_COMMAND}`; export r; \
3082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3083 $(SET_LIB_PATH) \
3084 for flag in $(EXTRA_HOST_FLAGS); do \
3085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3086 done; \
3087 echo "Doing mostlyclean in bash" ; \
3088 (cd bash && \
3089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3091 "RANLIB=$${RANLIB}" \
3092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3093 mostlyclean) \
3094 || exit 1
3097 .PHONY: maybe-clean-bash clean-bash
3098 maybe-clean-bash:
3100 clean-bash:
3101 @[ -f ./bash/Makefile ] || exit 0; \
3102 r=`${PWD_COMMAND}`; export r; \
3103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3104 $(SET_LIB_PATH) \
3105 for flag in $(EXTRA_HOST_FLAGS); do \
3106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3107 done; \
3108 echo "Doing clean in bash" ; \
3109 (cd bash && \
3110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3112 "RANLIB=$${RANLIB}" \
3113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3114 clean) \
3115 || exit 1
3118 .PHONY: maybe-distclean-bash distclean-bash
3119 maybe-distclean-bash:
3121 distclean-bash:
3122 @[ -f ./bash/Makefile ] || exit 0; \
3123 r=`${PWD_COMMAND}`; export r; \
3124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3125 $(SET_LIB_PATH) \
3126 for flag in $(EXTRA_HOST_FLAGS); do \
3127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3128 done; \
3129 echo "Doing distclean in bash" ; \
3130 (cd bash && \
3131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3133 "RANLIB=$${RANLIB}" \
3134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3135 distclean) \
3136 || exit 1
3139 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3140 maybe-maintainer-clean-bash:
3142 maintainer-clean-bash:
3143 @[ -f ./bash/Makefile ] || exit 0; \
3144 r=`${PWD_COMMAND}`; export r; \
3145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3146 $(SET_LIB_PATH) \
3147 for flag in $(EXTRA_HOST_FLAGS); do \
3148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3149 done; \
3150 echo "Doing maintainer-clean in bash" ; \
3151 (cd bash && \
3152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3154 "RANLIB=$${RANLIB}" \
3155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3156 maintainer-clean) \
3157 || exit 1
3161 .PHONY: configure-bfd maybe-configure-bfd
3162 maybe-configure-bfd:
3163 configure-bfd:
3164 @test ! -f bfd/Makefile || exit 0; \
3165 [ -d bfd ] || mkdir bfd; \
3166 r=`${PWD_COMMAND}`; export r; \
3167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3168 CC="$(CC)"; export CC; \
3169 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3170 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3171 CXX="$(CXX)"; export CXX; \
3172 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3173 AR="$(AR)"; export AR; \
3174 AS="$(AS)"; export AS; \
3175 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3176 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3177 LD="$(LD)"; export LD; \
3178 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3179 NM="$(NM)"; export NM; \
3180 RANLIB="$(RANLIB)"; export RANLIB; \
3181 WINDRES="$(WINDRES)"; export WINDRES; \
3182 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3183 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3184 echo Configuring in bfd; \
3185 cd bfd || exit 1; \
3186 case $(srcdir) in \
3187 \.) \
3188 srcdiroption="--srcdir=."; \
3189 libsrcdir=".";; \
3190 /* | [A-Za-z]:[\\/]*) \
3191 srcdiroption="--srcdir=$(srcdir)/bfd"; \
3192 libsrcdir="$$s/bfd";; \
3193 *) \
3194 srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3195 libsrcdir="$$s/bfd";; \
3196 esac; \
3197 $(SHELL) $${libsrcdir}/configure \
3198 $(HOST_CONFIGARGS) $${srcdiroption} \
3199 || exit 1
3201 .PHONY: all-bfd maybe-all-bfd
3202 maybe-all-bfd:
3203 all-bfd: configure-bfd
3204 @r=`${PWD_COMMAND}`; export r; \
3205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3206 $(SET_LIB_PATH) \
3207 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
3209 .PHONY: check-bfd maybe-check-bfd
3210 maybe-check-bfd:
3212 check-bfd:
3213 @r=`${PWD_COMMAND}`; export r; \
3214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3215 $(SET_LIB_PATH) \
3216 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
3219 .PHONY: install-bfd maybe-install-bfd
3220 maybe-install-bfd:
3222 install-bfd: installdirs
3223 @r=`${PWD_COMMAND}`; export r; \
3224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3225 $(SET_LIB_PATH) \
3226 (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
3229 # Other targets (info, dvi, etc.)
3231 .PHONY: maybe-info-bfd info-bfd
3232 maybe-info-bfd:
3234 info-bfd: \
3235 configure-bfd
3236 @[ -f ./bfd/Makefile ] || exit 0; \
3237 r=`${PWD_COMMAND}`; export r; \
3238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3239 $(SET_LIB_PATH) \
3240 for flag in $(EXTRA_HOST_FLAGS); do \
3241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3242 done; \
3243 echo "Doing info in bfd" ; \
3244 (cd bfd && \
3245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3247 "RANLIB=$${RANLIB}" \
3248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3249 info) \
3250 || exit 1
3253 .PHONY: maybe-dvi-bfd dvi-bfd
3254 maybe-dvi-bfd:
3256 dvi-bfd: \
3257 configure-bfd
3258 @[ -f ./bfd/Makefile ] || exit 0; \
3259 r=`${PWD_COMMAND}`; export r; \
3260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3261 $(SET_LIB_PATH) \
3262 for flag in $(EXTRA_HOST_FLAGS); do \
3263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3264 done; \
3265 echo "Doing dvi in bfd" ; \
3266 (cd bfd && \
3267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3269 "RANLIB=$${RANLIB}" \
3270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3271 dvi) \
3272 || exit 1
3275 .PHONY: maybe-TAGS-bfd TAGS-bfd
3276 maybe-TAGS-bfd:
3278 TAGS-bfd: \
3279 configure-bfd
3280 @[ -f ./bfd/Makefile ] || exit 0; \
3281 r=`${PWD_COMMAND}`; export r; \
3282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3283 $(SET_LIB_PATH) \
3284 for flag in $(EXTRA_HOST_FLAGS); do \
3285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3286 done; \
3287 echo "Doing TAGS in bfd" ; \
3288 (cd bfd && \
3289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3291 "RANLIB=$${RANLIB}" \
3292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3293 TAGS) \
3294 || exit 1
3297 .PHONY: maybe-install-info-bfd install-info-bfd
3298 maybe-install-info-bfd:
3300 install-info-bfd: \
3301 configure-bfd \
3302 info-bfd
3303 @[ -f ./bfd/Makefile ] || exit 0; \
3304 r=`${PWD_COMMAND}`; export r; \
3305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3306 $(SET_LIB_PATH) \
3307 for flag in $(EXTRA_HOST_FLAGS); do \
3308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3309 done; \
3310 echo "Doing install-info in bfd" ; \
3311 (cd bfd && \
3312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3314 "RANLIB=$${RANLIB}" \
3315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3316 install-info) \
3317 || exit 1
3320 .PHONY: maybe-installcheck-bfd installcheck-bfd
3321 maybe-installcheck-bfd:
3323 installcheck-bfd: \
3324 configure-bfd
3325 @[ -f ./bfd/Makefile ] || exit 0; \
3326 r=`${PWD_COMMAND}`; export r; \
3327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3328 $(SET_LIB_PATH) \
3329 for flag in $(EXTRA_HOST_FLAGS); do \
3330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3331 done; \
3332 echo "Doing installcheck in bfd" ; \
3333 (cd bfd && \
3334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3336 "RANLIB=$${RANLIB}" \
3337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3338 installcheck) \
3339 || exit 1
3342 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3343 maybe-mostlyclean-bfd:
3345 mostlyclean-bfd:
3346 @[ -f ./bfd/Makefile ] || exit 0; \
3347 r=`${PWD_COMMAND}`; export r; \
3348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3349 $(SET_LIB_PATH) \
3350 for flag in $(EXTRA_HOST_FLAGS); do \
3351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3352 done; \
3353 echo "Doing mostlyclean in bfd" ; \
3354 (cd bfd && \
3355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3357 "RANLIB=$${RANLIB}" \
3358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3359 mostlyclean) \
3360 || exit 1
3363 .PHONY: maybe-clean-bfd clean-bfd
3364 maybe-clean-bfd:
3366 clean-bfd:
3367 @[ -f ./bfd/Makefile ] || exit 0; \
3368 r=`${PWD_COMMAND}`; export r; \
3369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3370 $(SET_LIB_PATH) \
3371 for flag in $(EXTRA_HOST_FLAGS); do \
3372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3373 done; \
3374 echo "Doing clean in bfd" ; \
3375 (cd bfd && \
3376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3378 "RANLIB=$${RANLIB}" \
3379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3380 clean) \
3381 || exit 1
3384 .PHONY: maybe-distclean-bfd distclean-bfd
3385 maybe-distclean-bfd:
3387 distclean-bfd:
3388 @[ -f ./bfd/Makefile ] || exit 0; \
3389 r=`${PWD_COMMAND}`; export r; \
3390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3391 $(SET_LIB_PATH) \
3392 for flag in $(EXTRA_HOST_FLAGS); do \
3393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3394 done; \
3395 echo "Doing distclean in bfd" ; \
3396 (cd bfd && \
3397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3399 "RANLIB=$${RANLIB}" \
3400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3401 distclean) \
3402 || exit 1
3405 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3406 maybe-maintainer-clean-bfd:
3408 maintainer-clean-bfd:
3409 @[ -f ./bfd/Makefile ] || exit 0; \
3410 r=`${PWD_COMMAND}`; export r; \
3411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3412 $(SET_LIB_PATH) \
3413 for flag in $(EXTRA_HOST_FLAGS); do \
3414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3415 done; \
3416 echo "Doing maintainer-clean in bfd" ; \
3417 (cd bfd && \
3418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3420 "RANLIB=$${RANLIB}" \
3421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3422 maintainer-clean) \
3423 || exit 1
3427 .PHONY: configure-opcodes maybe-configure-opcodes
3428 maybe-configure-opcodes:
3429 configure-opcodes:
3430 @test ! -f opcodes/Makefile || exit 0; \
3431 [ -d opcodes ] || mkdir opcodes; \
3432 r=`${PWD_COMMAND}`; export r; \
3433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3434 CC="$(CC)"; export CC; \
3435 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3436 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3437 CXX="$(CXX)"; export CXX; \
3438 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3439 AR="$(AR)"; export AR; \
3440 AS="$(AS)"; export AS; \
3441 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3442 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3443 LD="$(LD)"; export LD; \
3444 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3445 NM="$(NM)"; export NM; \
3446 RANLIB="$(RANLIB)"; export RANLIB; \
3447 WINDRES="$(WINDRES)"; export WINDRES; \
3448 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3449 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3450 echo Configuring in opcodes; \
3451 cd opcodes || exit 1; \
3452 case $(srcdir) in \
3453 \.) \
3454 srcdiroption="--srcdir=."; \
3455 libsrcdir=".";; \
3456 /* | [A-Za-z]:[\\/]*) \
3457 srcdiroption="--srcdir=$(srcdir)/opcodes"; \
3458 libsrcdir="$$s/opcodes";; \
3459 *) \
3460 srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
3461 libsrcdir="$$s/opcodes";; \
3462 esac; \
3463 $(SHELL) $${libsrcdir}/configure \
3464 $(HOST_CONFIGARGS) $${srcdiroption} \
3465 || exit 1
3467 .PHONY: all-opcodes maybe-all-opcodes
3468 maybe-all-opcodes:
3469 all-opcodes: configure-opcodes
3470 @r=`${PWD_COMMAND}`; export r; \
3471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3472 $(SET_LIB_PATH) \
3473 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
3475 .PHONY: check-opcodes maybe-check-opcodes
3476 maybe-check-opcodes:
3478 check-opcodes:
3479 @r=`${PWD_COMMAND}`; export r; \
3480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3481 $(SET_LIB_PATH) \
3482 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
3485 .PHONY: install-opcodes maybe-install-opcodes
3486 maybe-install-opcodes:
3488 install-opcodes: installdirs
3489 @r=`${PWD_COMMAND}`; export r; \
3490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3491 $(SET_LIB_PATH) \
3492 (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
3495 # Other targets (info, dvi, etc.)
3497 .PHONY: maybe-info-opcodes info-opcodes
3498 maybe-info-opcodes:
3500 info-opcodes: \
3501 configure-opcodes
3502 @[ -f ./opcodes/Makefile ] || exit 0; \
3503 r=`${PWD_COMMAND}`; export r; \
3504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3505 $(SET_LIB_PATH) \
3506 for flag in $(EXTRA_HOST_FLAGS); do \
3507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3508 done; \
3509 echo "Doing info in opcodes" ; \
3510 (cd opcodes && \
3511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3513 "RANLIB=$${RANLIB}" \
3514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3515 info) \
3516 || exit 1
3519 .PHONY: maybe-dvi-opcodes dvi-opcodes
3520 maybe-dvi-opcodes:
3522 dvi-opcodes: \
3523 configure-opcodes
3524 @[ -f ./opcodes/Makefile ] || exit 0; \
3525 r=`${PWD_COMMAND}`; export r; \
3526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3527 $(SET_LIB_PATH) \
3528 for flag in $(EXTRA_HOST_FLAGS); do \
3529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3530 done; \
3531 echo "Doing dvi in opcodes" ; \
3532 (cd opcodes && \
3533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3535 "RANLIB=$${RANLIB}" \
3536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3537 dvi) \
3538 || exit 1
3541 .PHONY: maybe-TAGS-opcodes TAGS-opcodes
3542 maybe-TAGS-opcodes:
3544 TAGS-opcodes: \
3545 configure-opcodes
3546 @[ -f ./opcodes/Makefile ] || exit 0; \
3547 r=`${PWD_COMMAND}`; export r; \
3548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3549 $(SET_LIB_PATH) \
3550 for flag in $(EXTRA_HOST_FLAGS); do \
3551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3552 done; \
3553 echo "Doing TAGS in opcodes" ; \
3554 (cd opcodes && \
3555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3557 "RANLIB=$${RANLIB}" \
3558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3559 TAGS) \
3560 || exit 1
3563 .PHONY: maybe-install-info-opcodes install-info-opcodes
3564 maybe-install-info-opcodes:
3566 install-info-opcodes: \
3567 configure-opcodes \
3568 info-opcodes
3569 @[ -f ./opcodes/Makefile ] || exit 0; \
3570 r=`${PWD_COMMAND}`; export r; \
3571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3572 $(SET_LIB_PATH) \
3573 for flag in $(EXTRA_HOST_FLAGS); do \
3574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3575 done; \
3576 echo "Doing install-info in opcodes" ; \
3577 (cd opcodes && \
3578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3580 "RANLIB=$${RANLIB}" \
3581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3582 install-info) \
3583 || exit 1
3586 .PHONY: maybe-installcheck-opcodes installcheck-opcodes
3587 maybe-installcheck-opcodes:
3589 installcheck-opcodes: \
3590 configure-opcodes
3591 @[ -f ./opcodes/Makefile ] || exit 0; \
3592 r=`${PWD_COMMAND}`; export r; \
3593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3594 $(SET_LIB_PATH) \
3595 for flag in $(EXTRA_HOST_FLAGS); do \
3596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3597 done; \
3598 echo "Doing installcheck in opcodes" ; \
3599 (cd opcodes && \
3600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3602 "RANLIB=$${RANLIB}" \
3603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3604 installcheck) \
3605 || exit 1
3608 .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
3609 maybe-mostlyclean-opcodes:
3611 mostlyclean-opcodes:
3612 @[ -f ./opcodes/Makefile ] || exit 0; \
3613 r=`${PWD_COMMAND}`; export r; \
3614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3615 $(SET_LIB_PATH) \
3616 for flag in $(EXTRA_HOST_FLAGS); do \
3617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3618 done; \
3619 echo "Doing mostlyclean in opcodes" ; \
3620 (cd opcodes && \
3621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3623 "RANLIB=$${RANLIB}" \
3624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3625 mostlyclean) \
3626 || exit 1
3629 .PHONY: maybe-clean-opcodes clean-opcodes
3630 maybe-clean-opcodes:
3632 clean-opcodes:
3633 @[ -f ./opcodes/Makefile ] || exit 0; \
3634 r=`${PWD_COMMAND}`; export r; \
3635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3636 $(SET_LIB_PATH) \
3637 for flag in $(EXTRA_HOST_FLAGS); do \
3638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3639 done; \
3640 echo "Doing clean in opcodes" ; \
3641 (cd opcodes && \
3642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3644 "RANLIB=$${RANLIB}" \
3645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3646 clean) \
3647 || exit 1
3650 .PHONY: maybe-distclean-opcodes distclean-opcodes
3651 maybe-distclean-opcodes:
3653 distclean-opcodes:
3654 @[ -f ./opcodes/Makefile ] || exit 0; \
3655 r=`${PWD_COMMAND}`; export r; \
3656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3657 $(SET_LIB_PATH) \
3658 for flag in $(EXTRA_HOST_FLAGS); do \
3659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3660 done; \
3661 echo "Doing distclean in opcodes" ; \
3662 (cd opcodes && \
3663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3665 "RANLIB=$${RANLIB}" \
3666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3667 distclean) \
3668 || exit 1
3671 .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
3672 maybe-maintainer-clean-opcodes:
3674 maintainer-clean-opcodes:
3675 @[ -f ./opcodes/Makefile ] || exit 0; \
3676 r=`${PWD_COMMAND}`; export r; \
3677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3678 $(SET_LIB_PATH) \
3679 for flag in $(EXTRA_HOST_FLAGS); do \
3680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3681 done; \
3682 echo "Doing maintainer-clean in opcodes" ; \
3683 (cd opcodes && \
3684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3686 "RANLIB=$${RANLIB}" \
3687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3688 maintainer-clean) \
3689 || exit 1
3693 .PHONY: configure-binutils maybe-configure-binutils
3694 maybe-configure-binutils:
3695 configure-binutils:
3696 @test ! -f binutils/Makefile || exit 0; \
3697 [ -d binutils ] || mkdir binutils; \
3698 r=`${PWD_COMMAND}`; export r; \
3699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3700 CC="$(CC)"; export CC; \
3701 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3702 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3703 CXX="$(CXX)"; export CXX; \
3704 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3705 AR="$(AR)"; export AR; \
3706 AS="$(AS)"; export AS; \
3707 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3708 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3709 LD="$(LD)"; export LD; \
3710 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3711 NM="$(NM)"; export NM; \
3712 RANLIB="$(RANLIB)"; export RANLIB; \
3713 WINDRES="$(WINDRES)"; export WINDRES; \
3714 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3715 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3716 echo Configuring in binutils; \
3717 cd binutils || exit 1; \
3718 case $(srcdir) in \
3719 \.) \
3720 srcdiroption="--srcdir=."; \
3721 libsrcdir=".";; \
3722 /* | [A-Za-z]:[\\/]*) \
3723 srcdiroption="--srcdir=$(srcdir)/binutils"; \
3724 libsrcdir="$$s/binutils";; \
3725 *) \
3726 srcdiroption="--srcdir=../$(srcdir)/binutils"; \
3727 libsrcdir="$$s/binutils";; \
3728 esac; \
3729 $(SHELL) $${libsrcdir}/configure \
3730 $(HOST_CONFIGARGS) $${srcdiroption} \
3731 || exit 1
3733 .PHONY: all-binutils maybe-all-binutils
3734 maybe-all-binutils:
3735 all-binutils: configure-binutils
3736 @r=`${PWD_COMMAND}`; export r; \
3737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3738 $(SET_LIB_PATH) \
3739 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
3741 .PHONY: check-binutils maybe-check-binutils
3742 maybe-check-binutils:
3744 check-binutils:
3745 @r=`${PWD_COMMAND}`; export r; \
3746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3747 $(SET_LIB_PATH) \
3748 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
3751 .PHONY: install-binutils maybe-install-binutils
3752 maybe-install-binutils:
3754 install-binutils: installdirs
3755 @r=`${PWD_COMMAND}`; export r; \
3756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3757 $(SET_LIB_PATH) \
3758 (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
3761 # Other targets (info, dvi, etc.)
3763 .PHONY: maybe-info-binutils info-binutils
3764 maybe-info-binutils:
3766 info-binutils: \
3767 configure-binutils
3768 @[ -f ./binutils/Makefile ] || exit 0; \
3769 r=`${PWD_COMMAND}`; export r; \
3770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3771 $(SET_LIB_PATH) \
3772 for flag in $(EXTRA_HOST_FLAGS); do \
3773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3774 done; \
3775 echo "Doing info in binutils" ; \
3776 (cd binutils && \
3777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3779 "RANLIB=$${RANLIB}" \
3780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3781 info) \
3782 || exit 1
3785 .PHONY: maybe-dvi-binutils dvi-binutils
3786 maybe-dvi-binutils:
3788 dvi-binutils: \
3789 configure-binutils
3790 @[ -f ./binutils/Makefile ] || exit 0; \
3791 r=`${PWD_COMMAND}`; export r; \
3792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3793 $(SET_LIB_PATH) \
3794 for flag in $(EXTRA_HOST_FLAGS); do \
3795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3796 done; \
3797 echo "Doing dvi in binutils" ; \
3798 (cd binutils && \
3799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3801 "RANLIB=$${RANLIB}" \
3802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3803 dvi) \
3804 || exit 1
3807 .PHONY: maybe-TAGS-binutils TAGS-binutils
3808 maybe-TAGS-binutils:
3810 TAGS-binutils: \
3811 configure-binutils
3812 @[ -f ./binutils/Makefile ] || exit 0; \
3813 r=`${PWD_COMMAND}`; export r; \
3814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3815 $(SET_LIB_PATH) \
3816 for flag in $(EXTRA_HOST_FLAGS); do \
3817 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3818 done; \
3819 echo "Doing TAGS in binutils" ; \
3820 (cd binutils && \
3821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3823 "RANLIB=$${RANLIB}" \
3824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3825 TAGS) \
3826 || exit 1
3829 .PHONY: maybe-install-info-binutils install-info-binutils
3830 maybe-install-info-binutils:
3832 install-info-binutils: \
3833 configure-binutils \
3834 info-binutils
3835 @[ -f ./binutils/Makefile ] || exit 0; \
3836 r=`${PWD_COMMAND}`; export r; \
3837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3838 $(SET_LIB_PATH) \
3839 for flag in $(EXTRA_HOST_FLAGS); do \
3840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3841 done; \
3842 echo "Doing install-info in binutils" ; \
3843 (cd binutils && \
3844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3846 "RANLIB=$${RANLIB}" \
3847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3848 install-info) \
3849 || exit 1
3852 .PHONY: maybe-installcheck-binutils installcheck-binutils
3853 maybe-installcheck-binutils:
3855 installcheck-binutils: \
3856 configure-binutils
3857 @[ -f ./binutils/Makefile ] || exit 0; \
3858 r=`${PWD_COMMAND}`; export r; \
3859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3860 $(SET_LIB_PATH) \
3861 for flag in $(EXTRA_HOST_FLAGS); do \
3862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3863 done; \
3864 echo "Doing installcheck in binutils" ; \
3865 (cd binutils && \
3866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3868 "RANLIB=$${RANLIB}" \
3869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3870 installcheck) \
3871 || exit 1
3874 .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
3875 maybe-mostlyclean-binutils:
3877 mostlyclean-binutils:
3878 @[ -f ./binutils/Makefile ] || exit 0; \
3879 r=`${PWD_COMMAND}`; export r; \
3880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3881 $(SET_LIB_PATH) \
3882 for flag in $(EXTRA_HOST_FLAGS); do \
3883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3884 done; \
3885 echo "Doing mostlyclean in binutils" ; \
3886 (cd binutils && \
3887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3889 "RANLIB=$${RANLIB}" \
3890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3891 mostlyclean) \
3892 || exit 1
3895 .PHONY: maybe-clean-binutils clean-binutils
3896 maybe-clean-binutils:
3898 clean-binutils:
3899 @[ -f ./binutils/Makefile ] || exit 0; \
3900 r=`${PWD_COMMAND}`; export r; \
3901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3902 $(SET_LIB_PATH) \
3903 for flag in $(EXTRA_HOST_FLAGS); do \
3904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3905 done; \
3906 echo "Doing clean in binutils" ; \
3907 (cd binutils && \
3908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3910 "RANLIB=$${RANLIB}" \
3911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3912 clean) \
3913 || exit 1
3916 .PHONY: maybe-distclean-binutils distclean-binutils
3917 maybe-distclean-binutils:
3919 distclean-binutils:
3920 @[ -f ./binutils/Makefile ] || exit 0; \
3921 r=`${PWD_COMMAND}`; export r; \
3922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3923 $(SET_LIB_PATH) \
3924 for flag in $(EXTRA_HOST_FLAGS); do \
3925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3926 done; \
3927 echo "Doing distclean in binutils" ; \
3928 (cd binutils && \
3929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3931 "RANLIB=$${RANLIB}" \
3932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3933 distclean) \
3934 || exit 1
3937 .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
3938 maybe-maintainer-clean-binutils:
3940 maintainer-clean-binutils:
3941 @[ -f ./binutils/Makefile ] || exit 0; \
3942 r=`${PWD_COMMAND}`; export r; \
3943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3944 $(SET_LIB_PATH) \
3945 for flag in $(EXTRA_HOST_FLAGS); do \
3946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3947 done; \
3948 echo "Doing maintainer-clean in binutils" ; \
3949 (cd binutils && \
3950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3952 "RANLIB=$${RANLIB}" \
3953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3954 maintainer-clean) \
3955 || exit 1
3959 .PHONY: configure-bison maybe-configure-bison
3960 maybe-configure-bison:
3961 configure-bison:
3962 @test ! -f bison/Makefile || exit 0; \
3963 [ -d bison ] || mkdir bison; \
3964 r=`${PWD_COMMAND}`; export r; \
3965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3966 CC="$(CC)"; export CC; \
3967 CFLAGS="$(CFLAGS)"; export CFLAGS; \
3968 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
3969 CXX="$(CXX)"; export CXX; \
3970 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
3971 AR="$(AR)"; export AR; \
3972 AS="$(AS)"; export AS; \
3973 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
3974 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
3975 LD="$(LD)"; export LD; \
3976 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
3977 NM="$(NM)"; export NM; \
3978 RANLIB="$(RANLIB)"; export RANLIB; \
3979 WINDRES="$(WINDRES)"; export WINDRES; \
3980 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
3981 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
3982 echo Configuring in bison; \
3983 cd bison || exit 1; \
3984 case $(srcdir) in \
3985 \.) \
3986 srcdiroption="--srcdir=."; \
3987 libsrcdir=".";; \
3988 /* | [A-Za-z]:[\\/]*) \
3989 srcdiroption="--srcdir=$(srcdir)/bison"; \
3990 libsrcdir="$$s/bison";; \
3991 *) \
3992 srcdiroption="--srcdir=../$(srcdir)/bison"; \
3993 libsrcdir="$$s/bison";; \
3994 esac; \
3995 $(SHELL) $${libsrcdir}/configure \
3996 $(HOST_CONFIGARGS) $${srcdiroption} \
3997 || exit 1
3999 .PHONY: all-bison maybe-all-bison
4000 maybe-all-bison:
4001 all-bison: configure-bison
4002 @r=`${PWD_COMMAND}`; export r; \
4003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4004 $(SET_LIB_PATH) \
4005 (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
4007 .PHONY: check-bison maybe-check-bison
4008 maybe-check-bison:
4010 # This module is only tested in a native toolchain.
4011 check-bison:
4012 @if [ '$(host)' = '$(target)' ] ; then \
4013 r=`${PWD_COMMAND}`; export r; \
4014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4015 $(SET_LIB_PATH) \
4016 (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
4020 .PHONY: install-bison maybe-install-bison
4021 maybe-install-bison:
4023 install-bison: installdirs
4024 @r=`${PWD_COMMAND}`; export r; \
4025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4026 $(SET_LIB_PATH) \
4027 (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
4030 # Other targets (info, dvi, etc.)
4032 .PHONY: maybe-info-bison info-bison
4033 maybe-info-bison:
4035 info-bison: \
4036 configure-bison
4037 @[ -f ./bison/Makefile ] || exit 0; \
4038 r=`${PWD_COMMAND}`; export r; \
4039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4040 $(SET_LIB_PATH) \
4041 for flag in $(EXTRA_HOST_FLAGS); do \
4042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4043 done; \
4044 echo "Doing info in bison" ; \
4045 (cd bison && \
4046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4048 "RANLIB=$${RANLIB}" \
4049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4050 info) \
4051 || exit 1
4054 .PHONY: maybe-dvi-bison dvi-bison
4055 maybe-dvi-bison:
4057 dvi-bison: \
4058 configure-bison
4059 @[ -f ./bison/Makefile ] || exit 0; \
4060 r=`${PWD_COMMAND}`; export r; \
4061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4062 $(SET_LIB_PATH) \
4063 for flag in $(EXTRA_HOST_FLAGS); do \
4064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4065 done; \
4066 echo "Doing dvi in bison" ; \
4067 (cd bison && \
4068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4070 "RANLIB=$${RANLIB}" \
4071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4072 dvi) \
4073 || exit 1
4076 .PHONY: maybe-TAGS-bison TAGS-bison
4077 maybe-TAGS-bison:
4079 TAGS-bison: \
4080 configure-bison
4081 @[ -f ./bison/Makefile ] || exit 0; \
4082 r=`${PWD_COMMAND}`; export r; \
4083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4084 $(SET_LIB_PATH) \
4085 for flag in $(EXTRA_HOST_FLAGS); do \
4086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4087 done; \
4088 echo "Doing TAGS in bison" ; \
4089 (cd bison && \
4090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4092 "RANLIB=$${RANLIB}" \
4093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4094 TAGS) \
4095 || exit 1
4098 .PHONY: maybe-install-info-bison install-info-bison
4099 maybe-install-info-bison:
4101 install-info-bison: \
4102 configure-bison \
4103 info-bison
4104 @[ -f ./bison/Makefile ] || exit 0; \
4105 r=`${PWD_COMMAND}`; export r; \
4106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4107 $(SET_LIB_PATH) \
4108 for flag in $(EXTRA_HOST_FLAGS); do \
4109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4110 done; \
4111 echo "Doing install-info in bison" ; \
4112 (cd bison && \
4113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4115 "RANLIB=$${RANLIB}" \
4116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4117 install-info) \
4118 || exit 1
4121 .PHONY: maybe-installcheck-bison installcheck-bison
4122 maybe-installcheck-bison:
4124 installcheck-bison: \
4125 configure-bison
4126 @[ -f ./bison/Makefile ] || exit 0; \
4127 r=`${PWD_COMMAND}`; export r; \
4128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4129 $(SET_LIB_PATH) \
4130 for flag in $(EXTRA_HOST_FLAGS); do \
4131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4132 done; \
4133 echo "Doing installcheck in bison" ; \
4134 (cd bison && \
4135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4137 "RANLIB=$${RANLIB}" \
4138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4139 installcheck) \
4140 || exit 1
4143 .PHONY: maybe-mostlyclean-bison mostlyclean-bison
4144 maybe-mostlyclean-bison:
4146 mostlyclean-bison:
4147 @[ -f ./bison/Makefile ] || exit 0; \
4148 r=`${PWD_COMMAND}`; export r; \
4149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4150 $(SET_LIB_PATH) \
4151 for flag in $(EXTRA_HOST_FLAGS); do \
4152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4153 done; \
4154 echo "Doing mostlyclean in bison" ; \
4155 (cd bison && \
4156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4158 "RANLIB=$${RANLIB}" \
4159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4160 mostlyclean) \
4161 || exit 1
4164 .PHONY: maybe-clean-bison clean-bison
4165 maybe-clean-bison:
4167 clean-bison:
4168 @[ -f ./bison/Makefile ] || exit 0; \
4169 r=`${PWD_COMMAND}`; export r; \
4170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4171 $(SET_LIB_PATH) \
4172 for flag in $(EXTRA_HOST_FLAGS); do \
4173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4174 done; \
4175 echo "Doing clean in bison" ; \
4176 (cd bison && \
4177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4179 "RANLIB=$${RANLIB}" \
4180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4181 clean) \
4182 || exit 1
4185 .PHONY: maybe-distclean-bison distclean-bison
4186 maybe-distclean-bison:
4188 distclean-bison:
4189 @[ -f ./bison/Makefile ] || exit 0; \
4190 r=`${PWD_COMMAND}`; export r; \
4191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4192 $(SET_LIB_PATH) \
4193 for flag in $(EXTRA_HOST_FLAGS); do \
4194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4195 done; \
4196 echo "Doing distclean in bison" ; \
4197 (cd bison && \
4198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4200 "RANLIB=$${RANLIB}" \
4201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4202 distclean) \
4203 || exit 1
4206 .PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
4207 maybe-maintainer-clean-bison:
4209 maintainer-clean-bison:
4210 @[ -f ./bison/Makefile ] || exit 0; \
4211 r=`${PWD_COMMAND}`; export r; \
4212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4213 $(SET_LIB_PATH) \
4214 for flag in $(EXTRA_HOST_FLAGS); do \
4215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4216 done; \
4217 echo "Doing maintainer-clean in bison" ; \
4218 (cd bison && \
4219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4221 "RANLIB=$${RANLIB}" \
4222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4223 maintainer-clean) \
4224 || exit 1
4228 .PHONY: configure-byacc maybe-configure-byacc
4229 maybe-configure-byacc:
4230 configure-byacc:
4231 @test ! -f byacc/Makefile || exit 0; \
4232 [ -d byacc ] || mkdir byacc; \
4233 r=`${PWD_COMMAND}`; export r; \
4234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4235 CC="$(CC)"; export CC; \
4236 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4237 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4238 CXX="$(CXX)"; export CXX; \
4239 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4240 AR="$(AR)"; export AR; \
4241 AS="$(AS)"; export AS; \
4242 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4243 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4244 LD="$(LD)"; export LD; \
4245 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
4246 NM="$(NM)"; export NM; \
4247 RANLIB="$(RANLIB)"; export RANLIB; \
4248 WINDRES="$(WINDRES)"; export WINDRES; \
4249 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4250 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4251 echo Configuring in byacc; \
4252 cd byacc || exit 1; \
4253 case $(srcdir) in \
4254 \.) \
4255 srcdiroption="--srcdir=."; \
4256 libsrcdir=".";; \
4257 /* | [A-Za-z]:[\\/]*) \
4258 srcdiroption="--srcdir=$(srcdir)/byacc"; \
4259 libsrcdir="$$s/byacc";; \
4260 *) \
4261 srcdiroption="--srcdir=../$(srcdir)/byacc"; \
4262 libsrcdir="$$s/byacc";; \
4263 esac; \
4264 $(SHELL) $${libsrcdir}/configure \
4265 $(HOST_CONFIGARGS) $${srcdiroption} \
4266 || exit 1
4268 .PHONY: all-byacc maybe-all-byacc
4269 maybe-all-byacc:
4270 all-byacc: configure-byacc
4271 @r=`${PWD_COMMAND}`; export r; \
4272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4273 $(SET_LIB_PATH) \
4274 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all)
4276 .PHONY: check-byacc maybe-check-byacc
4277 maybe-check-byacc:
4279 # This module is only tested in a native toolchain.
4280 check-byacc:
4281 @if [ '$(host)' = '$(target)' ] ; then \
4282 r=`${PWD_COMMAND}`; export r; \
4283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4284 $(SET_LIB_PATH) \
4285 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \
4289 .PHONY: install-byacc maybe-install-byacc
4290 maybe-install-byacc:
4292 install-byacc: installdirs
4293 @r=`${PWD_COMMAND}`; export r; \
4294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4295 $(SET_LIB_PATH) \
4296 (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install)
4299 # Other targets (info, dvi, etc.)
4301 .PHONY: maybe-info-byacc info-byacc
4302 maybe-info-byacc:
4304 info-byacc: \
4305 configure-byacc
4306 @[ -f ./byacc/Makefile ] || exit 0; \
4307 r=`${PWD_COMMAND}`; export r; \
4308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4309 $(SET_LIB_PATH) \
4310 for flag in $(EXTRA_HOST_FLAGS); do \
4311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4312 done; \
4313 echo "Doing info in byacc" ; \
4314 (cd byacc && \
4315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4317 "RANLIB=$${RANLIB}" \
4318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4319 info) \
4320 || exit 1
4323 .PHONY: maybe-dvi-byacc dvi-byacc
4324 maybe-dvi-byacc:
4326 dvi-byacc: \
4327 configure-byacc
4328 @[ -f ./byacc/Makefile ] || exit 0; \
4329 r=`${PWD_COMMAND}`; export r; \
4330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4331 $(SET_LIB_PATH) \
4332 for flag in $(EXTRA_HOST_FLAGS); do \
4333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4334 done; \
4335 echo "Doing dvi in byacc" ; \
4336 (cd byacc && \
4337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4339 "RANLIB=$${RANLIB}" \
4340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4341 dvi) \
4342 || exit 1
4345 .PHONY: maybe-TAGS-byacc TAGS-byacc
4346 maybe-TAGS-byacc:
4348 TAGS-byacc: \
4349 configure-byacc
4350 @[ -f ./byacc/Makefile ] || exit 0; \
4351 r=`${PWD_COMMAND}`; export r; \
4352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4353 $(SET_LIB_PATH) \
4354 for flag in $(EXTRA_HOST_FLAGS); do \
4355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4356 done; \
4357 echo "Doing TAGS in byacc" ; \
4358 (cd byacc && \
4359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4361 "RANLIB=$${RANLIB}" \
4362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4363 TAGS) \
4364 || exit 1
4367 .PHONY: maybe-install-info-byacc install-info-byacc
4368 maybe-install-info-byacc:
4370 install-info-byacc: \
4371 configure-byacc \
4372 info-byacc
4373 @[ -f ./byacc/Makefile ] || exit 0; \
4374 r=`${PWD_COMMAND}`; export r; \
4375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4376 $(SET_LIB_PATH) \
4377 for flag in $(EXTRA_HOST_FLAGS); do \
4378 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4379 done; \
4380 echo "Doing install-info in byacc" ; \
4381 (cd byacc && \
4382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4384 "RANLIB=$${RANLIB}" \
4385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4386 install-info) \
4387 || exit 1
4390 .PHONY: maybe-installcheck-byacc installcheck-byacc
4391 maybe-installcheck-byacc:
4393 installcheck-byacc: \
4394 configure-byacc
4395 @[ -f ./byacc/Makefile ] || exit 0; \
4396 r=`${PWD_COMMAND}`; export r; \
4397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4398 $(SET_LIB_PATH) \
4399 for flag in $(EXTRA_HOST_FLAGS); do \
4400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4401 done; \
4402 echo "Doing installcheck in byacc" ; \
4403 (cd byacc && \
4404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4406 "RANLIB=$${RANLIB}" \
4407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4408 installcheck) \
4409 || exit 1
4412 .PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
4413 maybe-mostlyclean-byacc:
4415 mostlyclean-byacc:
4416 @[ -f ./byacc/Makefile ] || exit 0; \
4417 r=`${PWD_COMMAND}`; export r; \
4418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4419 $(SET_LIB_PATH) \
4420 for flag in $(EXTRA_HOST_FLAGS); do \
4421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4422 done; \
4423 echo "Doing mostlyclean in byacc" ; \
4424 (cd byacc && \
4425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4427 "RANLIB=$${RANLIB}" \
4428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4429 mostlyclean) \
4430 || exit 1
4433 .PHONY: maybe-clean-byacc clean-byacc
4434 maybe-clean-byacc:
4436 clean-byacc:
4437 @[ -f ./byacc/Makefile ] || exit 0; \
4438 r=`${PWD_COMMAND}`; export r; \
4439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4440 $(SET_LIB_PATH) \
4441 for flag in $(EXTRA_HOST_FLAGS); do \
4442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4443 done; \
4444 echo "Doing clean in byacc" ; \
4445 (cd byacc && \
4446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4448 "RANLIB=$${RANLIB}" \
4449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4450 clean) \
4451 || exit 1
4454 .PHONY: maybe-distclean-byacc distclean-byacc
4455 maybe-distclean-byacc:
4457 distclean-byacc:
4458 @[ -f ./byacc/Makefile ] || exit 0; \
4459 r=`${PWD_COMMAND}`; export r; \
4460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4461 $(SET_LIB_PATH) \
4462 for flag in $(EXTRA_HOST_FLAGS); do \
4463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4464 done; \
4465 echo "Doing distclean in byacc" ; \
4466 (cd byacc && \
4467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4469 "RANLIB=$${RANLIB}" \
4470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4471 distclean) \
4472 || exit 1
4475 .PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
4476 maybe-maintainer-clean-byacc:
4478 maintainer-clean-byacc:
4479 @[ -f ./byacc/Makefile ] || exit 0; \
4480 r=`${PWD_COMMAND}`; export r; \
4481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4482 $(SET_LIB_PATH) \
4483 for flag in $(EXTRA_HOST_FLAGS); do \
4484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4485 done; \
4486 echo "Doing maintainer-clean in byacc" ; \
4487 (cd byacc && \
4488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4490 "RANLIB=$${RANLIB}" \
4491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4492 maintainer-clean) \
4493 || exit 1
4497 .PHONY: configure-bzip2 maybe-configure-bzip2
4498 maybe-configure-bzip2:
4499 configure-bzip2:
4500 @test ! -f bzip2/Makefile || exit 0; \
4501 [ -d bzip2 ] || mkdir bzip2; \
4502 r=`${PWD_COMMAND}`; export r; \
4503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4504 CC="$(CC)"; export CC; \
4505 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4506 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4507 CXX="$(CXX)"; export CXX; \
4508 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4509 AR="$(AR)"; export AR; \
4510 AS="$(AS)"; export AS; \
4511 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4512 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4513 LD="$(LD)"; export LD; \
4514 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
4515 NM="$(NM)"; export NM; \
4516 RANLIB="$(RANLIB)"; export RANLIB; \
4517 WINDRES="$(WINDRES)"; export WINDRES; \
4518 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4519 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4520 echo Configuring in bzip2; \
4521 cd bzip2 || exit 1; \
4522 case $(srcdir) in \
4523 \.) \
4524 srcdiroption="--srcdir=."; \
4525 libsrcdir=".";; \
4526 /* | [A-Za-z]:[\\/]*) \
4527 srcdiroption="--srcdir=$(srcdir)/bzip2"; \
4528 libsrcdir="$$s/bzip2";; \
4529 *) \
4530 srcdiroption="--srcdir=../$(srcdir)/bzip2"; \
4531 libsrcdir="$$s/bzip2";; \
4532 esac; \
4533 $(SHELL) $${libsrcdir}/configure \
4534 $(HOST_CONFIGARGS) $${srcdiroption} \
4535 || exit 1
4537 .PHONY: all-bzip2 maybe-all-bzip2
4538 maybe-all-bzip2:
4539 all-bzip2: configure-bzip2
4540 @r=`${PWD_COMMAND}`; export r; \
4541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4542 $(SET_LIB_PATH) \
4543 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all)
4545 .PHONY: check-bzip2 maybe-check-bzip2
4546 maybe-check-bzip2:
4548 check-bzip2:
4549 @r=`${PWD_COMMAND}`; export r; \
4550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4551 $(SET_LIB_PATH) \
4552 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check)
4555 .PHONY: install-bzip2 maybe-install-bzip2
4556 maybe-install-bzip2:
4558 install-bzip2: installdirs
4559 @r=`${PWD_COMMAND}`; export r; \
4560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4561 $(SET_LIB_PATH) \
4562 (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install)
4565 # Other targets (info, dvi, etc.)
4567 .PHONY: maybe-info-bzip2 info-bzip2
4568 maybe-info-bzip2:
4570 info-bzip2: \
4571 configure-bzip2
4572 @[ -f ./bzip2/Makefile ] || exit 0; \
4573 r=`${PWD_COMMAND}`; export r; \
4574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4575 $(SET_LIB_PATH) \
4576 for flag in $(EXTRA_HOST_FLAGS); do \
4577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4578 done; \
4579 echo "Doing info in bzip2" ; \
4580 (cd bzip2 && \
4581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4583 "RANLIB=$${RANLIB}" \
4584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4585 info) \
4586 || exit 1
4589 .PHONY: maybe-dvi-bzip2 dvi-bzip2
4590 maybe-dvi-bzip2:
4592 dvi-bzip2: \
4593 configure-bzip2
4594 @[ -f ./bzip2/Makefile ] || exit 0; \
4595 r=`${PWD_COMMAND}`; export r; \
4596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4597 $(SET_LIB_PATH) \
4598 for flag in $(EXTRA_HOST_FLAGS); do \
4599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4600 done; \
4601 echo "Doing dvi in bzip2" ; \
4602 (cd bzip2 && \
4603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4605 "RANLIB=$${RANLIB}" \
4606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4607 dvi) \
4608 || exit 1
4611 .PHONY: maybe-TAGS-bzip2 TAGS-bzip2
4612 maybe-TAGS-bzip2:
4614 TAGS-bzip2: \
4615 configure-bzip2
4616 @[ -f ./bzip2/Makefile ] || exit 0; \
4617 r=`${PWD_COMMAND}`; export r; \
4618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4619 $(SET_LIB_PATH) \
4620 for flag in $(EXTRA_HOST_FLAGS); do \
4621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4622 done; \
4623 echo "Doing TAGS in bzip2" ; \
4624 (cd bzip2 && \
4625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4627 "RANLIB=$${RANLIB}" \
4628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4629 TAGS) \
4630 || exit 1
4633 .PHONY: maybe-install-info-bzip2 install-info-bzip2
4634 maybe-install-info-bzip2:
4636 install-info-bzip2: \
4637 configure-bzip2 \
4638 info-bzip2
4639 @[ -f ./bzip2/Makefile ] || exit 0; \
4640 r=`${PWD_COMMAND}`; export r; \
4641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4642 $(SET_LIB_PATH) \
4643 for flag in $(EXTRA_HOST_FLAGS); do \
4644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4645 done; \
4646 echo "Doing install-info in bzip2" ; \
4647 (cd bzip2 && \
4648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4650 "RANLIB=$${RANLIB}" \
4651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4652 install-info) \
4653 || exit 1
4656 .PHONY: maybe-installcheck-bzip2 installcheck-bzip2
4657 maybe-installcheck-bzip2:
4659 installcheck-bzip2: \
4660 configure-bzip2
4661 @[ -f ./bzip2/Makefile ] || exit 0; \
4662 r=`${PWD_COMMAND}`; export r; \
4663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4664 $(SET_LIB_PATH) \
4665 for flag in $(EXTRA_HOST_FLAGS); do \
4666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4667 done; \
4668 echo "Doing installcheck in bzip2" ; \
4669 (cd bzip2 && \
4670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4672 "RANLIB=$${RANLIB}" \
4673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4674 installcheck) \
4675 || exit 1
4678 .PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
4679 maybe-mostlyclean-bzip2:
4681 mostlyclean-bzip2:
4682 @[ -f ./bzip2/Makefile ] || exit 0; \
4683 r=`${PWD_COMMAND}`; export r; \
4684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4685 $(SET_LIB_PATH) \
4686 for flag in $(EXTRA_HOST_FLAGS); do \
4687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4688 done; \
4689 echo "Doing mostlyclean in bzip2" ; \
4690 (cd bzip2 && \
4691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4693 "RANLIB=$${RANLIB}" \
4694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4695 mostlyclean) \
4696 || exit 1
4699 .PHONY: maybe-clean-bzip2 clean-bzip2
4700 maybe-clean-bzip2:
4702 clean-bzip2:
4703 @[ -f ./bzip2/Makefile ] || exit 0; \
4704 r=`${PWD_COMMAND}`; export r; \
4705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4706 $(SET_LIB_PATH) \
4707 for flag in $(EXTRA_HOST_FLAGS); do \
4708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4709 done; \
4710 echo "Doing clean in bzip2" ; \
4711 (cd bzip2 && \
4712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4714 "RANLIB=$${RANLIB}" \
4715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4716 clean) \
4717 || exit 1
4720 .PHONY: maybe-distclean-bzip2 distclean-bzip2
4721 maybe-distclean-bzip2:
4723 distclean-bzip2:
4724 @[ -f ./bzip2/Makefile ] || exit 0; \
4725 r=`${PWD_COMMAND}`; export r; \
4726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4727 $(SET_LIB_PATH) \
4728 for flag in $(EXTRA_HOST_FLAGS); do \
4729 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4730 done; \
4731 echo "Doing distclean in bzip2" ; \
4732 (cd bzip2 && \
4733 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4734 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4735 "RANLIB=$${RANLIB}" \
4736 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4737 distclean) \
4738 || exit 1
4741 .PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
4742 maybe-maintainer-clean-bzip2:
4744 maintainer-clean-bzip2:
4745 @[ -f ./bzip2/Makefile ] || exit 0; \
4746 r=`${PWD_COMMAND}`; export r; \
4747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4748 $(SET_LIB_PATH) \
4749 for flag in $(EXTRA_HOST_FLAGS); do \
4750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4751 done; \
4752 echo "Doing maintainer-clean in bzip2" ; \
4753 (cd bzip2 && \
4754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4756 "RANLIB=$${RANLIB}" \
4757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4758 maintainer-clean) \
4759 || exit 1
4763 .PHONY: configure-dejagnu maybe-configure-dejagnu
4764 maybe-configure-dejagnu:
4765 configure-dejagnu:
4766 @test ! -f dejagnu/Makefile || exit 0; \
4767 [ -d dejagnu ] || mkdir dejagnu; \
4768 r=`${PWD_COMMAND}`; export r; \
4769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4770 CC="$(CC)"; export CC; \
4771 CFLAGS="$(CFLAGS)"; export CFLAGS; \
4772 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
4773 CXX="$(CXX)"; export CXX; \
4774 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
4775 AR="$(AR)"; export AR; \
4776 AS="$(AS)"; export AS; \
4777 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
4778 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
4779 LD="$(LD)"; export LD; \
4780 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
4781 NM="$(NM)"; export NM; \
4782 RANLIB="$(RANLIB)"; export RANLIB; \
4783 WINDRES="$(WINDRES)"; export WINDRES; \
4784 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
4785 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
4786 echo Configuring in dejagnu; \
4787 cd dejagnu || exit 1; \
4788 case $(srcdir) in \
4789 \.) \
4790 srcdiroption="--srcdir=."; \
4791 libsrcdir=".";; \
4792 /* | [A-Za-z]:[\\/]*) \
4793 srcdiroption="--srcdir=$(srcdir)/dejagnu"; \
4794 libsrcdir="$$s/dejagnu";; \
4795 *) \
4796 srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \
4797 libsrcdir="$$s/dejagnu";; \
4798 esac; \
4799 $(SHELL) $${libsrcdir}/configure \
4800 $(HOST_CONFIGARGS) $${srcdiroption} \
4801 || exit 1
4803 .PHONY: all-dejagnu maybe-all-dejagnu
4804 maybe-all-dejagnu:
4805 all-dejagnu: configure-dejagnu
4806 @r=`${PWD_COMMAND}`; export r; \
4807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4808 $(SET_LIB_PATH) \
4809 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all)
4811 .PHONY: check-dejagnu maybe-check-dejagnu
4812 maybe-check-dejagnu:
4814 check-dejagnu:
4815 @r=`${PWD_COMMAND}`; export r; \
4816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4817 $(SET_LIB_PATH) \
4818 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check)
4821 .PHONY: install-dejagnu maybe-install-dejagnu
4822 maybe-install-dejagnu:
4824 install-dejagnu: installdirs
4825 @r=`${PWD_COMMAND}`; export r; \
4826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4827 $(SET_LIB_PATH) \
4828 (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install)
4831 # Other targets (info, dvi, etc.)
4833 .PHONY: maybe-info-dejagnu info-dejagnu
4834 maybe-info-dejagnu:
4836 info-dejagnu: \
4837 configure-dejagnu
4838 @[ -f ./dejagnu/Makefile ] || exit 0; \
4839 r=`${PWD_COMMAND}`; export r; \
4840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4841 $(SET_LIB_PATH) \
4842 for flag in $(EXTRA_HOST_FLAGS); do \
4843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4844 done; \
4845 echo "Doing info in dejagnu" ; \
4846 (cd dejagnu && \
4847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4849 "RANLIB=$${RANLIB}" \
4850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4851 info) \
4852 || exit 1
4855 .PHONY: maybe-dvi-dejagnu dvi-dejagnu
4856 maybe-dvi-dejagnu:
4858 dvi-dejagnu: \
4859 configure-dejagnu
4860 @[ -f ./dejagnu/Makefile ] || exit 0; \
4861 r=`${PWD_COMMAND}`; export r; \
4862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4863 $(SET_LIB_PATH) \
4864 for flag in $(EXTRA_HOST_FLAGS); do \
4865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4866 done; \
4867 echo "Doing dvi in dejagnu" ; \
4868 (cd dejagnu && \
4869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4871 "RANLIB=$${RANLIB}" \
4872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4873 dvi) \
4874 || exit 1
4877 .PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
4878 maybe-TAGS-dejagnu:
4880 TAGS-dejagnu: \
4881 configure-dejagnu
4882 @[ -f ./dejagnu/Makefile ] || exit 0; \
4883 r=`${PWD_COMMAND}`; export r; \
4884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4885 $(SET_LIB_PATH) \
4886 for flag in $(EXTRA_HOST_FLAGS); do \
4887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4888 done; \
4889 echo "Doing TAGS in dejagnu" ; \
4890 (cd dejagnu && \
4891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4893 "RANLIB=$${RANLIB}" \
4894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4895 TAGS) \
4896 || exit 1
4899 .PHONY: maybe-install-info-dejagnu install-info-dejagnu
4900 maybe-install-info-dejagnu:
4902 install-info-dejagnu: \
4903 configure-dejagnu \
4904 info-dejagnu
4905 @[ -f ./dejagnu/Makefile ] || exit 0; \
4906 r=`${PWD_COMMAND}`; export r; \
4907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4908 $(SET_LIB_PATH) \
4909 for flag in $(EXTRA_HOST_FLAGS); do \
4910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4911 done; \
4912 echo "Doing install-info in dejagnu" ; \
4913 (cd dejagnu && \
4914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4916 "RANLIB=$${RANLIB}" \
4917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4918 install-info) \
4919 || exit 1
4922 .PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
4923 maybe-installcheck-dejagnu:
4925 installcheck-dejagnu: \
4926 configure-dejagnu
4927 @[ -f ./dejagnu/Makefile ] || exit 0; \
4928 r=`${PWD_COMMAND}`; export r; \
4929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4930 $(SET_LIB_PATH) \
4931 for flag in $(EXTRA_HOST_FLAGS); do \
4932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4933 done; \
4934 echo "Doing installcheck in dejagnu" ; \
4935 (cd dejagnu && \
4936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4938 "RANLIB=$${RANLIB}" \
4939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4940 installcheck) \
4941 || exit 1
4944 .PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
4945 maybe-mostlyclean-dejagnu:
4947 mostlyclean-dejagnu:
4948 @[ -f ./dejagnu/Makefile ] || exit 0; \
4949 r=`${PWD_COMMAND}`; export r; \
4950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4951 $(SET_LIB_PATH) \
4952 for flag in $(EXTRA_HOST_FLAGS); do \
4953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4954 done; \
4955 echo "Doing mostlyclean in dejagnu" ; \
4956 (cd dejagnu && \
4957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4959 "RANLIB=$${RANLIB}" \
4960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4961 mostlyclean) \
4962 || exit 1
4965 .PHONY: maybe-clean-dejagnu clean-dejagnu
4966 maybe-clean-dejagnu:
4968 clean-dejagnu:
4969 @[ -f ./dejagnu/Makefile ] || exit 0; \
4970 r=`${PWD_COMMAND}`; export r; \
4971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4972 $(SET_LIB_PATH) \
4973 for flag in $(EXTRA_HOST_FLAGS); do \
4974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4975 done; \
4976 echo "Doing clean in dejagnu" ; \
4977 (cd dejagnu && \
4978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4980 "RANLIB=$${RANLIB}" \
4981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4982 clean) \
4983 || exit 1
4986 .PHONY: maybe-distclean-dejagnu distclean-dejagnu
4987 maybe-distclean-dejagnu:
4989 distclean-dejagnu:
4990 @[ -f ./dejagnu/Makefile ] || exit 0; \
4991 r=`${PWD_COMMAND}`; export r; \
4992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4993 $(SET_LIB_PATH) \
4994 for flag in $(EXTRA_HOST_FLAGS); do \
4995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4996 done; \
4997 echo "Doing distclean in dejagnu" ; \
4998 (cd dejagnu && \
4999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5001 "RANLIB=$${RANLIB}" \
5002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5003 distclean) \
5004 || exit 1
5007 .PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
5008 maybe-maintainer-clean-dejagnu:
5010 maintainer-clean-dejagnu:
5011 @[ -f ./dejagnu/Makefile ] || exit 0; \
5012 r=`${PWD_COMMAND}`; export r; \
5013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5014 $(SET_LIB_PATH) \
5015 for flag in $(EXTRA_HOST_FLAGS); do \
5016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5017 done; \
5018 echo "Doing maintainer-clean in dejagnu" ; \
5019 (cd dejagnu && \
5020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5022 "RANLIB=$${RANLIB}" \
5023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5024 maintainer-clean) \
5025 || exit 1
5029 .PHONY: configure-diff maybe-configure-diff
5030 maybe-configure-diff:
5031 configure-diff:
5032 @test ! -f diff/Makefile || exit 0; \
5033 [ -d diff ] || mkdir diff; \
5034 r=`${PWD_COMMAND}`; export r; \
5035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5036 CC="$(CC)"; export CC; \
5037 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5038 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5039 CXX="$(CXX)"; export CXX; \
5040 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5041 AR="$(AR)"; export AR; \
5042 AS="$(AS)"; export AS; \
5043 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5044 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5045 LD="$(LD)"; export LD; \
5046 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
5047 NM="$(NM)"; export NM; \
5048 RANLIB="$(RANLIB)"; export RANLIB; \
5049 WINDRES="$(WINDRES)"; export WINDRES; \
5050 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5051 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5052 echo Configuring in diff; \
5053 cd diff || exit 1; \
5054 case $(srcdir) in \
5055 \.) \
5056 srcdiroption="--srcdir=."; \
5057 libsrcdir=".";; \
5058 /* | [A-Za-z]:[\\/]*) \
5059 srcdiroption="--srcdir=$(srcdir)/diff"; \
5060 libsrcdir="$$s/diff";; \
5061 *) \
5062 srcdiroption="--srcdir=../$(srcdir)/diff"; \
5063 libsrcdir="$$s/diff";; \
5064 esac; \
5065 $(SHELL) $${libsrcdir}/configure \
5066 $(HOST_CONFIGARGS) $${srcdiroption} \
5067 || exit 1
5069 .PHONY: all-diff maybe-all-diff
5070 maybe-all-diff:
5071 all-diff: configure-diff
5072 @r=`${PWD_COMMAND}`; export r; \
5073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5074 $(SET_LIB_PATH) \
5075 (cd diff && $(MAKE) $(FLAGS_TO_PASS) all)
5077 .PHONY: check-diff maybe-check-diff
5078 maybe-check-diff:
5080 check-diff:
5081 @r=`${PWD_COMMAND}`; export r; \
5082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5083 $(SET_LIB_PATH) \
5084 (cd diff && $(MAKE) $(FLAGS_TO_PASS) check)
5087 .PHONY: install-diff maybe-install-diff
5088 maybe-install-diff:
5090 install-diff: installdirs
5091 @r=`${PWD_COMMAND}`; export r; \
5092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5093 $(SET_LIB_PATH) \
5094 (cd diff && $(MAKE) $(FLAGS_TO_PASS) install)
5097 # Other targets (info, dvi, etc.)
5099 .PHONY: maybe-info-diff info-diff
5100 maybe-info-diff:
5102 info-diff: \
5103 configure-diff
5104 @[ -f ./diff/Makefile ] || exit 0; \
5105 r=`${PWD_COMMAND}`; export r; \
5106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5107 $(SET_LIB_PATH) \
5108 for flag in $(EXTRA_HOST_FLAGS); do \
5109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5110 done; \
5111 echo "Doing info in diff" ; \
5112 (cd diff && \
5113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5115 "RANLIB=$${RANLIB}" \
5116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5117 info) \
5118 || exit 1
5121 .PHONY: maybe-dvi-diff dvi-diff
5122 maybe-dvi-diff:
5124 dvi-diff: \
5125 configure-diff
5126 @[ -f ./diff/Makefile ] || exit 0; \
5127 r=`${PWD_COMMAND}`; export r; \
5128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5129 $(SET_LIB_PATH) \
5130 for flag in $(EXTRA_HOST_FLAGS); do \
5131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5132 done; \
5133 echo "Doing dvi in diff" ; \
5134 (cd diff && \
5135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5137 "RANLIB=$${RANLIB}" \
5138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5139 dvi) \
5140 || exit 1
5143 .PHONY: maybe-TAGS-diff TAGS-diff
5144 maybe-TAGS-diff:
5146 TAGS-diff: \
5147 configure-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 TAGS 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 TAGS) \
5162 || exit 1
5165 .PHONY: maybe-install-info-diff install-info-diff
5166 maybe-install-info-diff:
5168 install-info-diff: \
5169 configure-diff \
5170 info-diff
5171 @[ -f ./diff/Makefile ] || exit 0; \
5172 r=`${PWD_COMMAND}`; export r; \
5173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5174 $(SET_LIB_PATH) \
5175 for flag in $(EXTRA_HOST_FLAGS); do \
5176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5177 done; \
5178 echo "Doing install-info in diff" ; \
5179 (cd diff && \
5180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5182 "RANLIB=$${RANLIB}" \
5183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5184 install-info) \
5185 || exit 1
5188 .PHONY: maybe-installcheck-diff installcheck-diff
5189 maybe-installcheck-diff:
5191 installcheck-diff: \
5192 configure-diff
5193 @[ -f ./diff/Makefile ] || exit 0; \
5194 r=`${PWD_COMMAND}`; export r; \
5195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5196 $(SET_LIB_PATH) \
5197 for flag in $(EXTRA_HOST_FLAGS); do \
5198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5199 done; \
5200 echo "Doing installcheck in diff" ; \
5201 (cd diff && \
5202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5204 "RANLIB=$${RANLIB}" \
5205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5206 installcheck) \
5207 || exit 1
5210 .PHONY: maybe-mostlyclean-diff mostlyclean-diff
5211 maybe-mostlyclean-diff:
5213 mostlyclean-diff:
5214 @[ -f ./diff/Makefile ] || exit 0; \
5215 r=`${PWD_COMMAND}`; export r; \
5216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5217 $(SET_LIB_PATH) \
5218 for flag in $(EXTRA_HOST_FLAGS); do \
5219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5220 done; \
5221 echo "Doing mostlyclean in diff" ; \
5222 (cd diff && \
5223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5225 "RANLIB=$${RANLIB}" \
5226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5227 mostlyclean) \
5228 || exit 1
5231 .PHONY: maybe-clean-diff clean-diff
5232 maybe-clean-diff:
5234 clean-diff:
5235 @[ -f ./diff/Makefile ] || exit 0; \
5236 r=`${PWD_COMMAND}`; export r; \
5237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5238 $(SET_LIB_PATH) \
5239 for flag in $(EXTRA_HOST_FLAGS); do \
5240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5241 done; \
5242 echo "Doing clean in diff" ; \
5243 (cd diff && \
5244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5246 "RANLIB=$${RANLIB}" \
5247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5248 clean) \
5249 || exit 1
5252 .PHONY: maybe-distclean-diff distclean-diff
5253 maybe-distclean-diff:
5255 distclean-diff:
5256 @[ -f ./diff/Makefile ] || exit 0; \
5257 r=`${PWD_COMMAND}`; export r; \
5258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5259 $(SET_LIB_PATH) \
5260 for flag in $(EXTRA_HOST_FLAGS); do \
5261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5262 done; \
5263 echo "Doing distclean in diff" ; \
5264 (cd diff && \
5265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5267 "RANLIB=$${RANLIB}" \
5268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5269 distclean) \
5270 || exit 1
5273 .PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
5274 maybe-maintainer-clean-diff:
5276 maintainer-clean-diff:
5277 @[ -f ./diff/Makefile ] || exit 0; \
5278 r=`${PWD_COMMAND}`; export r; \
5279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5280 $(SET_LIB_PATH) \
5281 for flag in $(EXTRA_HOST_FLAGS); do \
5282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5283 done; \
5284 echo "Doing maintainer-clean in diff" ; \
5285 (cd diff && \
5286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5288 "RANLIB=$${RANLIB}" \
5289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5290 maintainer-clean) \
5291 || exit 1
5295 .PHONY: configure-dosutils maybe-configure-dosutils
5296 maybe-configure-dosutils:
5297 configure-dosutils:
5298 @test ! -f dosutils/Makefile || exit 0; \
5299 [ -d dosutils ] || mkdir dosutils; \
5300 r=`${PWD_COMMAND}`; export r; \
5301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5302 CC="$(CC)"; export CC; \
5303 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5304 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5305 CXX="$(CXX)"; export CXX; \
5306 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5307 AR="$(AR)"; export AR; \
5308 AS="$(AS)"; export AS; \
5309 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5310 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5311 LD="$(LD)"; export LD; \
5312 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
5313 NM="$(NM)"; export NM; \
5314 RANLIB="$(RANLIB)"; export RANLIB; \
5315 WINDRES="$(WINDRES)"; export WINDRES; \
5316 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5317 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5318 echo Configuring in dosutils; \
5319 cd dosutils || exit 1; \
5320 case $(srcdir) in \
5321 \.) \
5322 srcdiroption="--srcdir=."; \
5323 libsrcdir=".";; \
5324 /* | [A-Za-z]:[\\/]*) \
5325 srcdiroption="--srcdir=$(srcdir)/dosutils"; \
5326 libsrcdir="$$s/dosutils";; \
5327 *) \
5328 srcdiroption="--srcdir=../$(srcdir)/dosutils"; \
5329 libsrcdir="$$s/dosutils";; \
5330 esac; \
5331 $(SHELL) $${libsrcdir}/configure \
5332 $(HOST_CONFIGARGS) $${srcdiroption} \
5333 || exit 1
5335 .PHONY: all-dosutils maybe-all-dosutils
5336 maybe-all-dosutils:
5337 all-dosutils: configure-dosutils
5338 @r=`${PWD_COMMAND}`; export r; \
5339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5340 $(SET_LIB_PATH) \
5341 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all)
5343 .PHONY: check-dosutils maybe-check-dosutils
5344 maybe-check-dosutils:
5346 check-dosutils:
5349 .PHONY: install-dosutils maybe-install-dosutils
5350 maybe-install-dosutils:
5352 install-dosutils: installdirs
5353 @r=`${PWD_COMMAND}`; export r; \
5354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5355 $(SET_LIB_PATH) \
5356 (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install)
5359 # Other targets (info, dvi, etc.)
5361 .PHONY: maybe-info-dosutils info-dosutils
5362 maybe-info-dosutils:
5364 info-dosutils: \
5365 configure-dosutils
5366 @[ -f ./dosutils/Makefile ] || exit 0; \
5367 r=`${PWD_COMMAND}`; export r; \
5368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5369 $(SET_LIB_PATH) \
5370 for flag in $(EXTRA_HOST_FLAGS); do \
5371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5372 done; \
5373 echo "Doing info in dosutils" ; \
5374 (cd dosutils && \
5375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5377 "RANLIB=$${RANLIB}" \
5378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5379 info) \
5380 || exit 1
5383 .PHONY: maybe-dvi-dosutils dvi-dosutils
5384 maybe-dvi-dosutils:
5386 dvi-dosutils: \
5387 configure-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 dvi 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 dvi) \
5402 || exit 1
5405 .PHONY: maybe-TAGS-dosutils TAGS-dosutils
5406 maybe-TAGS-dosutils:
5408 TAGS-dosutils: \
5409 configure-dosutils
5410 @[ -f ./dosutils/Makefile ] || exit 0; \
5411 r=`${PWD_COMMAND}`; export r; \
5412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5413 $(SET_LIB_PATH) \
5414 for flag in $(EXTRA_HOST_FLAGS); do \
5415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5416 done; \
5417 echo "Doing TAGS in dosutils" ; \
5418 (cd dosutils && \
5419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5421 "RANLIB=$${RANLIB}" \
5422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5423 TAGS) \
5424 || exit 1
5427 .PHONY: maybe-install-info-dosutils install-info-dosutils
5428 maybe-install-info-dosutils:
5430 install-info-dosutils: \
5431 configure-dosutils \
5432 info-dosutils
5433 @[ -f ./dosutils/Makefile ] || exit 0; \
5434 r=`${PWD_COMMAND}`; export r; \
5435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5436 $(SET_LIB_PATH) \
5437 for flag in $(EXTRA_HOST_FLAGS); do \
5438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5439 done; \
5440 echo "Doing install-info in dosutils" ; \
5441 (cd dosutils && \
5442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5444 "RANLIB=$${RANLIB}" \
5445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5446 install-info) \
5447 || exit 1
5450 .PHONY: maybe-installcheck-dosutils installcheck-dosutils
5451 maybe-installcheck-dosutils:
5453 installcheck-dosutils: \
5454 configure-dosutils
5455 @[ -f ./dosutils/Makefile ] || exit 0; \
5456 r=`${PWD_COMMAND}`; export r; \
5457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5458 $(SET_LIB_PATH) \
5459 for flag in $(EXTRA_HOST_FLAGS); do \
5460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5461 done; \
5462 echo "Doing installcheck in dosutils" ; \
5463 (cd dosutils && \
5464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5466 "RANLIB=$${RANLIB}" \
5467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5468 installcheck) \
5469 || exit 1
5472 .PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
5473 maybe-mostlyclean-dosutils:
5475 mostlyclean-dosutils:
5476 @[ -f ./dosutils/Makefile ] || exit 0; \
5477 r=`${PWD_COMMAND}`; export r; \
5478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5479 $(SET_LIB_PATH) \
5480 for flag in $(EXTRA_HOST_FLAGS); do \
5481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5482 done; \
5483 echo "Doing mostlyclean in dosutils" ; \
5484 (cd dosutils && \
5485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5487 "RANLIB=$${RANLIB}" \
5488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5489 mostlyclean) \
5490 || exit 1
5493 .PHONY: maybe-clean-dosutils clean-dosutils
5494 maybe-clean-dosutils:
5496 clean-dosutils:
5497 @[ -f ./dosutils/Makefile ] || exit 0; \
5498 r=`${PWD_COMMAND}`; export r; \
5499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5500 $(SET_LIB_PATH) \
5501 for flag in $(EXTRA_HOST_FLAGS); do \
5502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5503 done; \
5504 echo "Doing clean in dosutils" ; \
5505 (cd dosutils && \
5506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5508 "RANLIB=$${RANLIB}" \
5509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5510 clean) \
5511 || exit 1
5514 .PHONY: maybe-distclean-dosutils distclean-dosutils
5515 maybe-distclean-dosutils:
5517 distclean-dosutils:
5518 @[ -f ./dosutils/Makefile ] || exit 0; \
5519 r=`${PWD_COMMAND}`; export r; \
5520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5521 $(SET_LIB_PATH) \
5522 for flag in $(EXTRA_HOST_FLAGS); do \
5523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5524 done; \
5525 echo "Doing distclean in dosutils" ; \
5526 (cd dosutils && \
5527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5529 "RANLIB=$${RANLIB}" \
5530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5531 distclean) \
5532 || exit 1
5535 .PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
5536 maybe-maintainer-clean-dosutils:
5538 maintainer-clean-dosutils:
5539 @[ -f ./dosutils/Makefile ] || exit 0; \
5540 r=`${PWD_COMMAND}`; export r; \
5541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5542 $(SET_LIB_PATH) \
5543 for flag in $(EXTRA_HOST_FLAGS); do \
5544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5545 done; \
5546 echo "Doing maintainer-clean in dosutils" ; \
5547 (cd dosutils && \
5548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5550 "RANLIB=$${RANLIB}" \
5551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5552 maintainer-clean) \
5553 || exit 1
5557 .PHONY: configure-etc maybe-configure-etc
5558 maybe-configure-etc:
5559 configure-etc:
5560 @test ! -f etc/Makefile || exit 0; \
5561 [ -d etc ] || mkdir etc; \
5562 r=`${PWD_COMMAND}`; export r; \
5563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5564 CC="$(CC)"; export CC; \
5565 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5566 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5567 CXX="$(CXX)"; export CXX; \
5568 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5569 AR="$(AR)"; export AR; \
5570 AS="$(AS)"; export AS; \
5571 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5572 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5573 LD="$(LD)"; export LD; \
5574 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
5575 NM="$(NM)"; export NM; \
5576 RANLIB="$(RANLIB)"; export RANLIB; \
5577 WINDRES="$(WINDRES)"; export WINDRES; \
5578 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5579 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5580 echo Configuring in etc; \
5581 cd etc || exit 1; \
5582 case $(srcdir) in \
5583 \.) \
5584 srcdiroption="--srcdir=."; \
5585 libsrcdir=".";; \
5586 /* | [A-Za-z]:[\\/]*) \
5587 srcdiroption="--srcdir=$(srcdir)/etc"; \
5588 libsrcdir="$$s/etc";; \
5589 *) \
5590 srcdiroption="--srcdir=../$(srcdir)/etc"; \
5591 libsrcdir="$$s/etc";; \
5592 esac; \
5593 $(SHELL) $${libsrcdir}/configure \
5594 $(HOST_CONFIGARGS) $${srcdiroption} \
5595 || exit 1
5597 .PHONY: all-etc maybe-all-etc
5598 maybe-all-etc:
5599 all-etc: configure-etc
5600 @r=`${PWD_COMMAND}`; export r; \
5601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5602 $(SET_LIB_PATH) \
5603 (cd etc && $(MAKE) $(FLAGS_TO_PASS) all)
5605 .PHONY: check-etc maybe-check-etc
5606 maybe-check-etc:
5608 check-etc:
5609 @r=`${PWD_COMMAND}`; export r; \
5610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5611 $(SET_LIB_PATH) \
5612 (cd etc && $(MAKE) $(FLAGS_TO_PASS) check)
5615 .PHONY: install-etc maybe-install-etc
5616 maybe-install-etc:
5618 install-etc: installdirs
5619 @r=`${PWD_COMMAND}`; export r; \
5620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5621 $(SET_LIB_PATH) \
5622 (cd etc && $(MAKE) $(FLAGS_TO_PASS) install)
5625 # Other targets (info, dvi, etc.)
5627 .PHONY: maybe-info-etc info-etc
5628 maybe-info-etc:
5630 info-etc: \
5631 configure-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 info 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 info) \
5646 || exit 1
5649 .PHONY: maybe-dvi-etc dvi-etc
5650 maybe-dvi-etc:
5652 dvi-etc: \
5653 configure-etc
5654 @[ -f ./etc/Makefile ] || exit 0; \
5655 r=`${PWD_COMMAND}`; export r; \
5656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5657 $(SET_LIB_PATH) \
5658 for flag in $(EXTRA_HOST_FLAGS); do \
5659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5660 done; \
5661 echo "Doing dvi in etc" ; \
5662 (cd etc && \
5663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5665 "RANLIB=$${RANLIB}" \
5666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5667 dvi) \
5668 || exit 1
5671 .PHONY: maybe-TAGS-etc TAGS-etc
5672 maybe-TAGS-etc:
5674 TAGS-etc: \
5675 configure-etc
5676 @[ -f ./etc/Makefile ] || exit 0; \
5677 r=`${PWD_COMMAND}`; export r; \
5678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5679 $(SET_LIB_PATH) \
5680 for flag in $(EXTRA_HOST_FLAGS); do \
5681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5682 done; \
5683 echo "Doing TAGS in etc" ; \
5684 (cd etc && \
5685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5687 "RANLIB=$${RANLIB}" \
5688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5689 TAGS) \
5690 || exit 1
5693 .PHONY: maybe-install-info-etc install-info-etc
5694 maybe-install-info-etc:
5696 install-info-etc: \
5697 configure-etc \
5698 info-etc
5699 @[ -f ./etc/Makefile ] || exit 0; \
5700 r=`${PWD_COMMAND}`; export r; \
5701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5702 $(SET_LIB_PATH) \
5703 for flag in $(EXTRA_HOST_FLAGS); do \
5704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5705 done; \
5706 echo "Doing install-info in etc" ; \
5707 (cd etc && \
5708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5710 "RANLIB=$${RANLIB}" \
5711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5712 install-info) \
5713 || exit 1
5716 .PHONY: maybe-installcheck-etc installcheck-etc
5717 maybe-installcheck-etc:
5719 installcheck-etc: \
5720 configure-etc
5721 @[ -f ./etc/Makefile ] || exit 0; \
5722 r=`${PWD_COMMAND}`; export r; \
5723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5724 $(SET_LIB_PATH) \
5725 for flag in $(EXTRA_HOST_FLAGS); do \
5726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5727 done; \
5728 echo "Doing installcheck in etc" ; \
5729 (cd etc && \
5730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5732 "RANLIB=$${RANLIB}" \
5733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5734 installcheck) \
5735 || exit 1
5738 .PHONY: maybe-mostlyclean-etc mostlyclean-etc
5739 maybe-mostlyclean-etc:
5741 mostlyclean-etc:
5742 @[ -f ./etc/Makefile ] || exit 0; \
5743 r=`${PWD_COMMAND}`; export r; \
5744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5745 $(SET_LIB_PATH) \
5746 for flag in $(EXTRA_HOST_FLAGS); do \
5747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5748 done; \
5749 echo "Doing mostlyclean in etc" ; \
5750 (cd etc && \
5751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5753 "RANLIB=$${RANLIB}" \
5754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5755 mostlyclean) \
5756 || exit 1
5759 .PHONY: maybe-clean-etc clean-etc
5760 maybe-clean-etc:
5762 clean-etc:
5763 @[ -f ./etc/Makefile ] || exit 0; \
5764 r=`${PWD_COMMAND}`; export r; \
5765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5766 $(SET_LIB_PATH) \
5767 for flag in $(EXTRA_HOST_FLAGS); do \
5768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5769 done; \
5770 echo "Doing clean in etc" ; \
5771 (cd etc && \
5772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5774 "RANLIB=$${RANLIB}" \
5775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5776 clean) \
5777 || exit 1
5780 .PHONY: maybe-distclean-etc distclean-etc
5781 maybe-distclean-etc:
5783 distclean-etc:
5784 @[ -f ./etc/Makefile ] || exit 0; \
5785 r=`${PWD_COMMAND}`; export r; \
5786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5787 $(SET_LIB_PATH) \
5788 for flag in $(EXTRA_HOST_FLAGS); do \
5789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5790 done; \
5791 echo "Doing distclean in etc" ; \
5792 (cd etc && \
5793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5795 "RANLIB=$${RANLIB}" \
5796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5797 distclean) \
5798 || exit 1
5801 .PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
5802 maybe-maintainer-clean-etc:
5804 maintainer-clean-etc:
5805 @[ -f ./etc/Makefile ] || exit 0; \
5806 r=`${PWD_COMMAND}`; export r; \
5807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5808 $(SET_LIB_PATH) \
5809 for flag in $(EXTRA_HOST_FLAGS); do \
5810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5811 done; \
5812 echo "Doing maintainer-clean in etc" ; \
5813 (cd etc && \
5814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5816 "RANLIB=$${RANLIB}" \
5817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5818 maintainer-clean) \
5819 || exit 1
5823 .PHONY: configure-fastjar maybe-configure-fastjar
5824 maybe-configure-fastjar:
5825 configure-fastjar:
5826 @test ! -f fastjar/Makefile || exit 0; \
5827 [ -d fastjar ] || mkdir fastjar; \
5828 r=`${PWD_COMMAND}`; export r; \
5829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5830 CC="$(CC)"; export CC; \
5831 CFLAGS="$(CFLAGS)"; export CFLAGS; \
5832 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
5833 CXX="$(CXX)"; export CXX; \
5834 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
5835 AR="$(AR)"; export AR; \
5836 AS="$(AS)"; export AS; \
5837 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
5838 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
5839 LD="$(LD)"; export LD; \
5840 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
5841 NM="$(NM)"; export NM; \
5842 RANLIB="$(RANLIB)"; export RANLIB; \
5843 WINDRES="$(WINDRES)"; export WINDRES; \
5844 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
5845 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
5846 echo Configuring in fastjar; \
5847 cd fastjar || exit 1; \
5848 case $(srcdir) in \
5849 \.) \
5850 srcdiroption="--srcdir=."; \
5851 libsrcdir=".";; \
5852 /* | [A-Za-z]:[\\/]*) \
5853 srcdiroption="--srcdir=$(srcdir)/fastjar"; \
5854 libsrcdir="$$s/fastjar";; \
5855 *) \
5856 srcdiroption="--srcdir=../$(srcdir)/fastjar"; \
5857 libsrcdir="$$s/fastjar";; \
5858 esac; \
5859 $(SHELL) $${libsrcdir}/configure \
5860 $(HOST_CONFIGARGS) $${srcdiroption} \
5861 || exit 1
5863 .PHONY: all-fastjar maybe-all-fastjar
5864 maybe-all-fastjar:
5865 all-fastjar: configure-fastjar
5866 @r=`${PWD_COMMAND}`; export r; \
5867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5868 $(SET_LIB_PATH) \
5869 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all)
5871 .PHONY: check-fastjar maybe-check-fastjar
5872 maybe-check-fastjar:
5874 # This module is only tested in a native toolchain.
5875 check-fastjar:
5876 @if [ '$(host)' = '$(target)' ] ; then \
5877 r=`${PWD_COMMAND}`; export r; \
5878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5879 $(SET_LIB_PATH) \
5880 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \
5884 .PHONY: install-fastjar maybe-install-fastjar
5885 maybe-install-fastjar:
5887 install-fastjar: installdirs
5888 @r=`${PWD_COMMAND}`; export r; \
5889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5890 $(SET_LIB_PATH) \
5891 (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install)
5894 # Other targets (info, dvi, etc.)
5896 .PHONY: maybe-info-fastjar info-fastjar
5897 maybe-info-fastjar:
5899 info-fastjar: \
5900 configure-fastjar
5901 @[ -f ./fastjar/Makefile ] || exit 0; \
5902 r=`${PWD_COMMAND}`; export r; \
5903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5904 $(SET_LIB_PATH) \
5905 for flag in $(EXTRA_HOST_FLAGS); do \
5906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5907 done; \
5908 echo "Doing info in fastjar" ; \
5909 (cd fastjar && \
5910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5912 "RANLIB=$${RANLIB}" \
5913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5914 info) \
5915 || exit 1
5918 .PHONY: maybe-dvi-fastjar dvi-fastjar
5919 maybe-dvi-fastjar:
5921 dvi-fastjar: \
5922 configure-fastjar
5923 @[ -f ./fastjar/Makefile ] || exit 0; \
5924 r=`${PWD_COMMAND}`; export r; \
5925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5926 $(SET_LIB_PATH) \
5927 for flag in $(EXTRA_HOST_FLAGS); do \
5928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5929 done; \
5930 echo "Doing dvi in fastjar" ; \
5931 (cd fastjar && \
5932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5934 "RANLIB=$${RANLIB}" \
5935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5936 dvi) \
5937 || exit 1
5940 .PHONY: maybe-TAGS-fastjar TAGS-fastjar
5941 maybe-TAGS-fastjar:
5943 TAGS-fastjar: \
5944 configure-fastjar
5945 @[ -f ./fastjar/Makefile ] || exit 0; \
5946 r=`${PWD_COMMAND}`; export r; \
5947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5948 $(SET_LIB_PATH) \
5949 for flag in $(EXTRA_HOST_FLAGS); do \
5950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5951 done; \
5952 echo "Doing TAGS in fastjar" ; \
5953 (cd fastjar && \
5954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5956 "RANLIB=$${RANLIB}" \
5957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5958 TAGS) \
5959 || exit 1
5962 .PHONY: maybe-install-info-fastjar install-info-fastjar
5963 maybe-install-info-fastjar:
5965 install-info-fastjar: \
5966 configure-fastjar \
5967 info-fastjar
5968 @[ -f ./fastjar/Makefile ] || exit 0; \
5969 r=`${PWD_COMMAND}`; export r; \
5970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5971 $(SET_LIB_PATH) \
5972 for flag in $(EXTRA_HOST_FLAGS); do \
5973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5974 done; \
5975 echo "Doing install-info in fastjar" ; \
5976 (cd fastjar && \
5977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5979 "RANLIB=$${RANLIB}" \
5980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5981 install-info) \
5982 || exit 1
5985 .PHONY: maybe-installcheck-fastjar installcheck-fastjar
5986 maybe-installcheck-fastjar:
5988 installcheck-fastjar: \
5989 configure-fastjar
5990 @[ -f ./fastjar/Makefile ] || exit 0; \
5991 r=`${PWD_COMMAND}`; export r; \
5992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5993 $(SET_LIB_PATH) \
5994 for flag in $(EXTRA_HOST_FLAGS); do \
5995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5996 done; \
5997 echo "Doing installcheck in fastjar" ; \
5998 (cd fastjar && \
5999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6001 "RANLIB=$${RANLIB}" \
6002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6003 installcheck) \
6004 || exit 1
6007 .PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
6008 maybe-mostlyclean-fastjar:
6010 mostlyclean-fastjar:
6011 @[ -f ./fastjar/Makefile ] || exit 0; \
6012 r=`${PWD_COMMAND}`; export r; \
6013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6014 $(SET_LIB_PATH) \
6015 for flag in $(EXTRA_HOST_FLAGS); do \
6016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6017 done; \
6018 echo "Doing mostlyclean in fastjar" ; \
6019 (cd fastjar && \
6020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6022 "RANLIB=$${RANLIB}" \
6023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6024 mostlyclean) \
6025 || exit 1
6028 .PHONY: maybe-clean-fastjar clean-fastjar
6029 maybe-clean-fastjar:
6031 clean-fastjar:
6032 @[ -f ./fastjar/Makefile ] || exit 0; \
6033 r=`${PWD_COMMAND}`; export r; \
6034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6035 $(SET_LIB_PATH) \
6036 for flag in $(EXTRA_HOST_FLAGS); do \
6037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6038 done; \
6039 echo "Doing clean in fastjar" ; \
6040 (cd fastjar && \
6041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6043 "RANLIB=$${RANLIB}" \
6044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6045 clean) \
6046 || exit 1
6049 .PHONY: maybe-distclean-fastjar distclean-fastjar
6050 maybe-distclean-fastjar:
6052 distclean-fastjar:
6053 @[ -f ./fastjar/Makefile ] || exit 0; \
6054 r=`${PWD_COMMAND}`; export r; \
6055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6056 $(SET_LIB_PATH) \
6057 for flag in $(EXTRA_HOST_FLAGS); do \
6058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6059 done; \
6060 echo "Doing distclean in fastjar" ; \
6061 (cd fastjar && \
6062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6064 "RANLIB=$${RANLIB}" \
6065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6066 distclean) \
6067 || exit 1
6070 .PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
6071 maybe-maintainer-clean-fastjar:
6073 maintainer-clean-fastjar:
6074 @[ -f ./fastjar/Makefile ] || exit 0; \
6075 r=`${PWD_COMMAND}`; export r; \
6076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6077 $(SET_LIB_PATH) \
6078 for flag in $(EXTRA_HOST_FLAGS); do \
6079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6080 done; \
6081 echo "Doing maintainer-clean in fastjar" ; \
6082 (cd fastjar && \
6083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6085 "RANLIB=$${RANLIB}" \
6086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6087 maintainer-clean) \
6088 || exit 1
6092 .PHONY: configure-fileutils maybe-configure-fileutils
6093 maybe-configure-fileutils:
6094 configure-fileutils:
6095 @test ! -f fileutils/Makefile || exit 0; \
6096 [ -d fileutils ] || mkdir fileutils; \
6097 r=`${PWD_COMMAND}`; export r; \
6098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6099 CC="$(CC)"; export CC; \
6100 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6101 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6102 CXX="$(CXX)"; export CXX; \
6103 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6104 AR="$(AR)"; export AR; \
6105 AS="$(AS)"; export AS; \
6106 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6107 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6108 LD="$(LD)"; export LD; \
6109 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
6110 NM="$(NM)"; export NM; \
6111 RANLIB="$(RANLIB)"; export RANLIB; \
6112 WINDRES="$(WINDRES)"; export WINDRES; \
6113 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6114 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6115 echo Configuring in fileutils; \
6116 cd fileutils || exit 1; \
6117 case $(srcdir) in \
6118 \.) \
6119 srcdiroption="--srcdir=."; \
6120 libsrcdir=".";; \
6121 /* | [A-Za-z]:[\\/]*) \
6122 srcdiroption="--srcdir=$(srcdir)/fileutils"; \
6123 libsrcdir="$$s/fileutils";; \
6124 *) \
6125 srcdiroption="--srcdir=../$(srcdir)/fileutils"; \
6126 libsrcdir="$$s/fileutils";; \
6127 esac; \
6128 $(SHELL) $${libsrcdir}/configure \
6129 $(HOST_CONFIGARGS) $${srcdiroption} \
6130 || exit 1
6132 .PHONY: all-fileutils maybe-all-fileutils
6133 maybe-all-fileutils:
6134 all-fileutils: configure-fileutils
6135 @r=`${PWD_COMMAND}`; export r; \
6136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6137 $(SET_LIB_PATH) \
6138 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all)
6140 .PHONY: check-fileutils maybe-check-fileutils
6141 maybe-check-fileutils:
6143 check-fileutils:
6144 @r=`${PWD_COMMAND}`; export r; \
6145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6146 $(SET_LIB_PATH) \
6147 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check)
6150 .PHONY: install-fileutils maybe-install-fileutils
6151 maybe-install-fileutils:
6153 install-fileutils: installdirs
6154 @r=`${PWD_COMMAND}`; export r; \
6155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6156 $(SET_LIB_PATH) \
6157 (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install)
6160 # Other targets (info, dvi, etc.)
6162 .PHONY: maybe-info-fileutils info-fileutils
6163 maybe-info-fileutils:
6165 info-fileutils: \
6166 configure-fileutils
6167 @[ -f ./fileutils/Makefile ] || exit 0; \
6168 r=`${PWD_COMMAND}`; export r; \
6169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6170 $(SET_LIB_PATH) \
6171 for flag in $(EXTRA_HOST_FLAGS); do \
6172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6173 done; \
6174 echo "Doing info in fileutils" ; \
6175 (cd fileutils && \
6176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6178 "RANLIB=$${RANLIB}" \
6179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6180 info) \
6181 || exit 1
6184 .PHONY: maybe-dvi-fileutils dvi-fileutils
6185 maybe-dvi-fileutils:
6187 dvi-fileutils: \
6188 configure-fileutils
6189 @[ -f ./fileutils/Makefile ] || exit 0; \
6190 r=`${PWD_COMMAND}`; export r; \
6191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6192 $(SET_LIB_PATH) \
6193 for flag in $(EXTRA_HOST_FLAGS); do \
6194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6195 done; \
6196 echo "Doing dvi in fileutils" ; \
6197 (cd fileutils && \
6198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6200 "RANLIB=$${RANLIB}" \
6201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6202 dvi) \
6203 || exit 1
6206 .PHONY: maybe-TAGS-fileutils TAGS-fileutils
6207 maybe-TAGS-fileutils:
6209 TAGS-fileutils: \
6210 configure-fileutils
6211 @[ -f ./fileutils/Makefile ] || exit 0; \
6212 r=`${PWD_COMMAND}`; export r; \
6213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6214 $(SET_LIB_PATH) \
6215 for flag in $(EXTRA_HOST_FLAGS); do \
6216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6217 done; \
6218 echo "Doing TAGS in fileutils" ; \
6219 (cd fileutils && \
6220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6222 "RANLIB=$${RANLIB}" \
6223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6224 TAGS) \
6225 || exit 1
6228 .PHONY: maybe-install-info-fileutils install-info-fileutils
6229 maybe-install-info-fileutils:
6231 install-info-fileutils: \
6232 configure-fileutils \
6233 info-fileutils
6234 @[ -f ./fileutils/Makefile ] || exit 0; \
6235 r=`${PWD_COMMAND}`; export r; \
6236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6237 $(SET_LIB_PATH) \
6238 for flag in $(EXTRA_HOST_FLAGS); do \
6239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6240 done; \
6241 echo "Doing install-info in fileutils" ; \
6242 (cd fileutils && \
6243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6245 "RANLIB=$${RANLIB}" \
6246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6247 install-info) \
6248 || exit 1
6251 .PHONY: maybe-installcheck-fileutils installcheck-fileutils
6252 maybe-installcheck-fileutils:
6254 installcheck-fileutils: \
6255 configure-fileutils
6256 @[ -f ./fileutils/Makefile ] || exit 0; \
6257 r=`${PWD_COMMAND}`; export r; \
6258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6259 $(SET_LIB_PATH) \
6260 for flag in $(EXTRA_HOST_FLAGS); do \
6261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6262 done; \
6263 echo "Doing installcheck in fileutils" ; \
6264 (cd fileutils && \
6265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6267 "RANLIB=$${RANLIB}" \
6268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6269 installcheck) \
6270 || exit 1
6273 .PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
6274 maybe-mostlyclean-fileutils:
6276 mostlyclean-fileutils:
6277 @[ -f ./fileutils/Makefile ] || exit 0; \
6278 r=`${PWD_COMMAND}`; export r; \
6279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6280 $(SET_LIB_PATH) \
6281 for flag in $(EXTRA_HOST_FLAGS); do \
6282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6283 done; \
6284 echo "Doing mostlyclean in fileutils" ; \
6285 (cd fileutils && \
6286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6288 "RANLIB=$${RANLIB}" \
6289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6290 mostlyclean) \
6291 || exit 1
6294 .PHONY: maybe-clean-fileutils clean-fileutils
6295 maybe-clean-fileutils:
6297 clean-fileutils:
6298 @[ -f ./fileutils/Makefile ] || exit 0; \
6299 r=`${PWD_COMMAND}`; export r; \
6300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6301 $(SET_LIB_PATH) \
6302 for flag in $(EXTRA_HOST_FLAGS); do \
6303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6304 done; \
6305 echo "Doing clean in fileutils" ; \
6306 (cd fileutils && \
6307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6309 "RANLIB=$${RANLIB}" \
6310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6311 clean) \
6312 || exit 1
6315 .PHONY: maybe-distclean-fileutils distclean-fileutils
6316 maybe-distclean-fileutils:
6318 distclean-fileutils:
6319 @[ -f ./fileutils/Makefile ] || exit 0; \
6320 r=`${PWD_COMMAND}`; export r; \
6321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6322 $(SET_LIB_PATH) \
6323 for flag in $(EXTRA_HOST_FLAGS); do \
6324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6325 done; \
6326 echo "Doing distclean in fileutils" ; \
6327 (cd fileutils && \
6328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6330 "RANLIB=$${RANLIB}" \
6331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6332 distclean) \
6333 || exit 1
6336 .PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
6337 maybe-maintainer-clean-fileutils:
6339 maintainer-clean-fileutils:
6340 @[ -f ./fileutils/Makefile ] || exit 0; \
6341 r=`${PWD_COMMAND}`; export r; \
6342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6343 $(SET_LIB_PATH) \
6344 for flag in $(EXTRA_HOST_FLAGS); do \
6345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6346 done; \
6347 echo "Doing maintainer-clean in fileutils" ; \
6348 (cd fileutils && \
6349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6351 "RANLIB=$${RANLIB}" \
6352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6353 maintainer-clean) \
6354 || exit 1
6358 .PHONY: configure-findutils maybe-configure-findutils
6359 maybe-configure-findutils:
6360 configure-findutils:
6361 @test ! -f findutils/Makefile || exit 0; \
6362 [ -d findutils ] || mkdir findutils; \
6363 r=`${PWD_COMMAND}`; export r; \
6364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6365 CC="$(CC)"; export CC; \
6366 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6367 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6368 CXX="$(CXX)"; export CXX; \
6369 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6370 AR="$(AR)"; export AR; \
6371 AS="$(AS)"; export AS; \
6372 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6373 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6374 LD="$(LD)"; export LD; \
6375 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
6376 NM="$(NM)"; export NM; \
6377 RANLIB="$(RANLIB)"; export RANLIB; \
6378 WINDRES="$(WINDRES)"; export WINDRES; \
6379 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6380 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6381 echo Configuring in findutils; \
6382 cd findutils || exit 1; \
6383 case $(srcdir) in \
6384 \.) \
6385 srcdiroption="--srcdir=."; \
6386 libsrcdir=".";; \
6387 /* | [A-Za-z]:[\\/]*) \
6388 srcdiroption="--srcdir=$(srcdir)/findutils"; \
6389 libsrcdir="$$s/findutils";; \
6390 *) \
6391 srcdiroption="--srcdir=../$(srcdir)/findutils"; \
6392 libsrcdir="$$s/findutils";; \
6393 esac; \
6394 $(SHELL) $${libsrcdir}/configure \
6395 $(HOST_CONFIGARGS) $${srcdiroption} \
6396 || exit 1
6398 .PHONY: all-findutils maybe-all-findutils
6399 maybe-all-findutils:
6400 all-findutils: configure-findutils
6401 @r=`${PWD_COMMAND}`; export r; \
6402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6403 $(SET_LIB_PATH) \
6404 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all)
6406 .PHONY: check-findutils maybe-check-findutils
6407 maybe-check-findutils:
6409 check-findutils:
6410 @r=`${PWD_COMMAND}`; export r; \
6411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6412 $(SET_LIB_PATH) \
6413 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check)
6416 .PHONY: install-findutils maybe-install-findutils
6417 maybe-install-findutils:
6419 install-findutils: installdirs
6420 @r=`${PWD_COMMAND}`; export r; \
6421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6422 $(SET_LIB_PATH) \
6423 (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install)
6426 # Other targets (info, dvi, etc.)
6428 .PHONY: maybe-info-findutils info-findutils
6429 maybe-info-findutils:
6431 info-findutils: \
6432 configure-findutils
6433 @[ -f ./findutils/Makefile ] || exit 0; \
6434 r=`${PWD_COMMAND}`; export r; \
6435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6436 $(SET_LIB_PATH) \
6437 for flag in $(EXTRA_HOST_FLAGS); do \
6438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6439 done; \
6440 echo "Doing info in findutils" ; \
6441 (cd findutils && \
6442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6444 "RANLIB=$${RANLIB}" \
6445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6446 info) \
6447 || exit 1
6450 .PHONY: maybe-dvi-findutils dvi-findutils
6451 maybe-dvi-findutils:
6453 dvi-findutils: \
6454 configure-findutils
6455 @[ -f ./findutils/Makefile ] || exit 0; \
6456 r=`${PWD_COMMAND}`; export r; \
6457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6458 $(SET_LIB_PATH) \
6459 for flag in $(EXTRA_HOST_FLAGS); do \
6460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6461 done; \
6462 echo "Doing dvi in findutils" ; \
6463 (cd findutils && \
6464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6466 "RANLIB=$${RANLIB}" \
6467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6468 dvi) \
6469 || exit 1
6472 .PHONY: maybe-TAGS-findutils TAGS-findutils
6473 maybe-TAGS-findutils:
6475 TAGS-findutils: \
6476 configure-findutils
6477 @[ -f ./findutils/Makefile ] || exit 0; \
6478 r=`${PWD_COMMAND}`; export r; \
6479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6480 $(SET_LIB_PATH) \
6481 for flag in $(EXTRA_HOST_FLAGS); do \
6482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6483 done; \
6484 echo "Doing TAGS in findutils" ; \
6485 (cd findutils && \
6486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6488 "RANLIB=$${RANLIB}" \
6489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6490 TAGS) \
6491 || exit 1
6494 .PHONY: maybe-install-info-findutils install-info-findutils
6495 maybe-install-info-findutils:
6497 install-info-findutils: \
6498 configure-findutils \
6499 info-findutils
6500 @[ -f ./findutils/Makefile ] || exit 0; \
6501 r=`${PWD_COMMAND}`; export r; \
6502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6503 $(SET_LIB_PATH) \
6504 for flag in $(EXTRA_HOST_FLAGS); do \
6505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6506 done; \
6507 echo "Doing install-info in findutils" ; \
6508 (cd findutils && \
6509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6511 "RANLIB=$${RANLIB}" \
6512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6513 install-info) \
6514 || exit 1
6517 .PHONY: maybe-installcheck-findutils installcheck-findutils
6518 maybe-installcheck-findutils:
6520 installcheck-findutils: \
6521 configure-findutils
6522 @[ -f ./findutils/Makefile ] || exit 0; \
6523 r=`${PWD_COMMAND}`; export r; \
6524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6525 $(SET_LIB_PATH) \
6526 for flag in $(EXTRA_HOST_FLAGS); do \
6527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6528 done; \
6529 echo "Doing installcheck in findutils" ; \
6530 (cd findutils && \
6531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6533 "RANLIB=$${RANLIB}" \
6534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6535 installcheck) \
6536 || exit 1
6539 .PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
6540 maybe-mostlyclean-findutils:
6542 mostlyclean-findutils:
6543 @[ -f ./findutils/Makefile ] || exit 0; \
6544 r=`${PWD_COMMAND}`; export r; \
6545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6546 $(SET_LIB_PATH) \
6547 for flag in $(EXTRA_HOST_FLAGS); do \
6548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6549 done; \
6550 echo "Doing mostlyclean in findutils" ; \
6551 (cd findutils && \
6552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6554 "RANLIB=$${RANLIB}" \
6555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6556 mostlyclean) \
6557 || exit 1
6560 .PHONY: maybe-clean-findutils clean-findutils
6561 maybe-clean-findutils:
6563 clean-findutils:
6564 @[ -f ./findutils/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 clean in findutils" ; \
6572 (cd findutils && \
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 clean) \
6578 || exit 1
6581 .PHONY: maybe-distclean-findutils distclean-findutils
6582 maybe-distclean-findutils:
6584 distclean-findutils:
6585 @[ -f ./findutils/Makefile ] || exit 0; \
6586 r=`${PWD_COMMAND}`; export r; \
6587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6588 $(SET_LIB_PATH) \
6589 for flag in $(EXTRA_HOST_FLAGS); do \
6590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6591 done; \
6592 echo "Doing distclean in findutils" ; \
6593 (cd findutils && \
6594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6596 "RANLIB=$${RANLIB}" \
6597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6598 distclean) \
6599 || exit 1
6602 .PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
6603 maybe-maintainer-clean-findutils:
6605 maintainer-clean-findutils:
6606 @[ -f ./findutils/Makefile ] || exit 0; \
6607 r=`${PWD_COMMAND}`; export r; \
6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6609 $(SET_LIB_PATH) \
6610 for flag in $(EXTRA_HOST_FLAGS); do \
6611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6612 done; \
6613 echo "Doing maintainer-clean in findutils" ; \
6614 (cd findutils && \
6615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6617 "RANLIB=$${RANLIB}" \
6618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6619 maintainer-clean) \
6620 || exit 1
6624 .PHONY: configure-find maybe-configure-find
6625 maybe-configure-find:
6626 configure-find:
6627 @test ! -f find/Makefile || exit 0; \
6628 [ -d find ] || mkdir find; \
6629 r=`${PWD_COMMAND}`; export r; \
6630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6631 CC="$(CC)"; export CC; \
6632 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6633 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6634 CXX="$(CXX)"; export CXX; \
6635 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6636 AR="$(AR)"; export AR; \
6637 AS="$(AS)"; export AS; \
6638 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6639 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6640 LD="$(LD)"; export LD; \
6641 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
6642 NM="$(NM)"; export NM; \
6643 RANLIB="$(RANLIB)"; export RANLIB; \
6644 WINDRES="$(WINDRES)"; export WINDRES; \
6645 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6646 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6647 echo Configuring in find; \
6648 cd find || exit 1; \
6649 case $(srcdir) in \
6650 \.) \
6651 srcdiroption="--srcdir=."; \
6652 libsrcdir=".";; \
6653 /* | [A-Za-z]:[\\/]*) \
6654 srcdiroption="--srcdir=$(srcdir)/find"; \
6655 libsrcdir="$$s/find";; \
6656 *) \
6657 srcdiroption="--srcdir=../$(srcdir)/find"; \
6658 libsrcdir="$$s/find";; \
6659 esac; \
6660 $(SHELL) $${libsrcdir}/configure \
6661 $(HOST_CONFIGARGS) $${srcdiroption} \
6662 || exit 1
6664 .PHONY: all-find maybe-all-find
6665 maybe-all-find:
6666 all-find: configure-find
6667 @r=`${PWD_COMMAND}`; export r; \
6668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6669 $(SET_LIB_PATH) \
6670 (cd find && $(MAKE) $(FLAGS_TO_PASS) all)
6672 .PHONY: check-find maybe-check-find
6673 maybe-check-find:
6675 check-find:
6676 @r=`${PWD_COMMAND}`; export r; \
6677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6678 $(SET_LIB_PATH) \
6679 (cd find && $(MAKE) $(FLAGS_TO_PASS) check)
6682 .PHONY: install-find maybe-install-find
6683 maybe-install-find:
6685 install-find: installdirs
6686 @r=`${PWD_COMMAND}`; export r; \
6687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6688 $(SET_LIB_PATH) \
6689 (cd find && $(MAKE) $(FLAGS_TO_PASS) install)
6692 # Other targets (info, dvi, etc.)
6694 .PHONY: maybe-info-find info-find
6695 maybe-info-find:
6697 info-find: \
6698 configure-find
6699 @[ -f ./find/Makefile ] || exit 0; \
6700 r=`${PWD_COMMAND}`; export r; \
6701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6702 $(SET_LIB_PATH) \
6703 for flag in $(EXTRA_HOST_FLAGS); do \
6704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6705 done; \
6706 echo "Doing info in find" ; \
6707 (cd find && \
6708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6710 "RANLIB=$${RANLIB}" \
6711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6712 info) \
6713 || exit 1
6716 .PHONY: maybe-dvi-find dvi-find
6717 maybe-dvi-find:
6719 dvi-find: \
6720 configure-find
6721 @[ -f ./find/Makefile ] || exit 0; \
6722 r=`${PWD_COMMAND}`; export r; \
6723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6724 $(SET_LIB_PATH) \
6725 for flag in $(EXTRA_HOST_FLAGS); do \
6726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6727 done; \
6728 echo "Doing dvi in find" ; \
6729 (cd find && \
6730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6732 "RANLIB=$${RANLIB}" \
6733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6734 dvi) \
6735 || exit 1
6738 .PHONY: maybe-TAGS-find TAGS-find
6739 maybe-TAGS-find:
6741 TAGS-find: \
6742 configure-find
6743 @[ -f ./find/Makefile ] || exit 0; \
6744 r=`${PWD_COMMAND}`; export r; \
6745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6746 $(SET_LIB_PATH) \
6747 for flag in $(EXTRA_HOST_FLAGS); do \
6748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6749 done; \
6750 echo "Doing TAGS in find" ; \
6751 (cd find && \
6752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6754 "RANLIB=$${RANLIB}" \
6755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6756 TAGS) \
6757 || exit 1
6760 .PHONY: maybe-install-info-find install-info-find
6761 maybe-install-info-find:
6763 install-info-find: \
6764 configure-find \
6765 info-find
6766 @[ -f ./find/Makefile ] || exit 0; \
6767 r=`${PWD_COMMAND}`; export r; \
6768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6769 $(SET_LIB_PATH) \
6770 for flag in $(EXTRA_HOST_FLAGS); do \
6771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6772 done; \
6773 echo "Doing install-info in find" ; \
6774 (cd find && \
6775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6777 "RANLIB=$${RANLIB}" \
6778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6779 install-info) \
6780 || exit 1
6783 .PHONY: maybe-installcheck-find installcheck-find
6784 maybe-installcheck-find:
6786 installcheck-find: \
6787 configure-find
6788 @[ -f ./find/Makefile ] || exit 0; \
6789 r=`${PWD_COMMAND}`; export r; \
6790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6791 $(SET_LIB_PATH) \
6792 for flag in $(EXTRA_HOST_FLAGS); do \
6793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6794 done; \
6795 echo "Doing installcheck in find" ; \
6796 (cd find && \
6797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6799 "RANLIB=$${RANLIB}" \
6800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6801 installcheck) \
6802 || exit 1
6805 .PHONY: maybe-mostlyclean-find mostlyclean-find
6806 maybe-mostlyclean-find:
6808 mostlyclean-find:
6809 @[ -f ./find/Makefile ] || exit 0; \
6810 r=`${PWD_COMMAND}`; export r; \
6811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6812 $(SET_LIB_PATH) \
6813 for flag in $(EXTRA_HOST_FLAGS); do \
6814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6815 done; \
6816 echo "Doing mostlyclean in find" ; \
6817 (cd find && \
6818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6820 "RANLIB=$${RANLIB}" \
6821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6822 mostlyclean) \
6823 || exit 1
6826 .PHONY: maybe-clean-find clean-find
6827 maybe-clean-find:
6829 clean-find:
6830 @[ -f ./find/Makefile ] || exit 0; \
6831 r=`${PWD_COMMAND}`; export r; \
6832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6833 $(SET_LIB_PATH) \
6834 for flag in $(EXTRA_HOST_FLAGS); do \
6835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6836 done; \
6837 echo "Doing clean in find" ; \
6838 (cd find && \
6839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6841 "RANLIB=$${RANLIB}" \
6842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6843 clean) \
6844 || exit 1
6847 .PHONY: maybe-distclean-find distclean-find
6848 maybe-distclean-find:
6850 distclean-find:
6851 @[ -f ./find/Makefile ] || exit 0; \
6852 r=`${PWD_COMMAND}`; export r; \
6853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6854 $(SET_LIB_PATH) \
6855 for flag in $(EXTRA_HOST_FLAGS); do \
6856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6857 done; \
6858 echo "Doing distclean in find" ; \
6859 (cd find && \
6860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6862 "RANLIB=$${RANLIB}" \
6863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6864 distclean) \
6865 || exit 1
6868 .PHONY: maybe-maintainer-clean-find maintainer-clean-find
6869 maybe-maintainer-clean-find:
6871 maintainer-clean-find:
6872 @[ -f ./find/Makefile ] || exit 0; \
6873 r=`${PWD_COMMAND}`; export r; \
6874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6875 $(SET_LIB_PATH) \
6876 for flag in $(EXTRA_HOST_FLAGS); do \
6877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6878 done; \
6879 echo "Doing maintainer-clean in find" ; \
6880 (cd find && \
6881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6883 "RANLIB=$${RANLIB}" \
6884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6885 maintainer-clean) \
6886 || exit 1
6890 .PHONY: configure-flex maybe-configure-flex
6891 maybe-configure-flex:
6892 configure-flex:
6893 @test ! -f flex/Makefile || exit 0; \
6894 [ -d flex ] || mkdir flex; \
6895 r=`${PWD_COMMAND}`; export r; \
6896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6897 CC="$(CC)"; export CC; \
6898 CFLAGS="$(CFLAGS)"; export CFLAGS; \
6899 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
6900 CXX="$(CXX)"; export CXX; \
6901 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
6902 AR="$(AR)"; export AR; \
6903 AS="$(AS)"; export AS; \
6904 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
6905 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
6906 LD="$(LD)"; export LD; \
6907 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
6908 NM="$(NM)"; export NM; \
6909 RANLIB="$(RANLIB)"; export RANLIB; \
6910 WINDRES="$(WINDRES)"; export WINDRES; \
6911 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
6912 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
6913 echo Configuring in flex; \
6914 cd flex || exit 1; \
6915 case $(srcdir) in \
6916 \.) \
6917 srcdiroption="--srcdir=."; \
6918 libsrcdir=".";; \
6919 /* | [A-Za-z]:[\\/]*) \
6920 srcdiroption="--srcdir=$(srcdir)/flex"; \
6921 libsrcdir="$$s/flex";; \
6922 *) \
6923 srcdiroption="--srcdir=../$(srcdir)/flex"; \
6924 libsrcdir="$$s/flex";; \
6925 esac; \
6926 $(SHELL) $${libsrcdir}/configure \
6927 $(HOST_CONFIGARGS) $${srcdiroption} \
6928 || exit 1
6930 .PHONY: all-flex maybe-all-flex
6931 maybe-all-flex:
6932 all-flex: configure-flex
6933 @r=`${PWD_COMMAND}`; export r; \
6934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6935 $(SET_LIB_PATH) \
6936 (cd flex && $(MAKE) $(FLAGS_TO_PASS) all)
6938 .PHONY: check-flex maybe-check-flex
6939 maybe-check-flex:
6941 # This module is only tested in a native toolchain.
6942 check-flex:
6943 @if [ '$(host)' = '$(target)' ] ; then \
6944 r=`${PWD_COMMAND}`; export r; \
6945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6946 $(SET_LIB_PATH) \
6947 (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \
6951 .PHONY: install-flex maybe-install-flex
6952 maybe-install-flex:
6954 install-flex: installdirs
6955 @r=`${PWD_COMMAND}`; export r; \
6956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6957 $(SET_LIB_PATH) \
6958 (cd flex && $(MAKE) $(FLAGS_TO_PASS) install)
6961 # Other targets (info, dvi, etc.)
6963 .PHONY: maybe-info-flex info-flex
6964 maybe-info-flex:
6966 info-flex: \
6967 configure-flex
6968 @[ -f ./flex/Makefile ] || exit 0; \
6969 r=`${PWD_COMMAND}`; export r; \
6970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6971 $(SET_LIB_PATH) \
6972 for flag in $(EXTRA_HOST_FLAGS); do \
6973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6974 done; \
6975 echo "Doing info in flex" ; \
6976 (cd flex && \
6977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6979 "RANLIB=$${RANLIB}" \
6980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6981 info) \
6982 || exit 1
6985 .PHONY: maybe-dvi-flex dvi-flex
6986 maybe-dvi-flex:
6988 dvi-flex: \
6989 configure-flex
6990 @[ -f ./flex/Makefile ] || exit 0; \
6991 r=`${PWD_COMMAND}`; export r; \
6992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6993 $(SET_LIB_PATH) \
6994 for flag in $(EXTRA_HOST_FLAGS); do \
6995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6996 done; \
6997 echo "Doing dvi in flex" ; \
6998 (cd flex && \
6999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7001 "RANLIB=$${RANLIB}" \
7002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7003 dvi) \
7004 || exit 1
7007 .PHONY: maybe-TAGS-flex TAGS-flex
7008 maybe-TAGS-flex:
7010 TAGS-flex: \
7011 configure-flex
7012 @[ -f ./flex/Makefile ] || exit 0; \
7013 r=`${PWD_COMMAND}`; export r; \
7014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7015 $(SET_LIB_PATH) \
7016 for flag in $(EXTRA_HOST_FLAGS); do \
7017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7018 done; \
7019 echo "Doing TAGS in flex" ; \
7020 (cd flex && \
7021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7023 "RANLIB=$${RANLIB}" \
7024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7025 TAGS) \
7026 || exit 1
7029 .PHONY: maybe-install-info-flex install-info-flex
7030 maybe-install-info-flex:
7032 install-info-flex: \
7033 configure-flex \
7034 info-flex
7035 @[ -f ./flex/Makefile ] || exit 0; \
7036 r=`${PWD_COMMAND}`; export r; \
7037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7038 $(SET_LIB_PATH) \
7039 for flag in $(EXTRA_HOST_FLAGS); do \
7040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7041 done; \
7042 echo "Doing install-info in flex" ; \
7043 (cd flex && \
7044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7046 "RANLIB=$${RANLIB}" \
7047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7048 install-info) \
7049 || exit 1
7052 .PHONY: maybe-installcheck-flex installcheck-flex
7053 maybe-installcheck-flex:
7055 installcheck-flex: \
7056 configure-flex
7057 @[ -f ./flex/Makefile ] || exit 0; \
7058 r=`${PWD_COMMAND}`; export r; \
7059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7060 $(SET_LIB_PATH) \
7061 for flag in $(EXTRA_HOST_FLAGS); do \
7062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7063 done; \
7064 echo "Doing installcheck in flex" ; \
7065 (cd flex && \
7066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7068 "RANLIB=$${RANLIB}" \
7069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7070 installcheck) \
7071 || exit 1
7074 .PHONY: maybe-mostlyclean-flex mostlyclean-flex
7075 maybe-mostlyclean-flex:
7077 mostlyclean-flex:
7078 @[ -f ./flex/Makefile ] || exit 0; \
7079 r=`${PWD_COMMAND}`; export r; \
7080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7081 $(SET_LIB_PATH) \
7082 for flag in $(EXTRA_HOST_FLAGS); do \
7083 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7084 done; \
7085 echo "Doing mostlyclean in flex" ; \
7086 (cd flex && \
7087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7089 "RANLIB=$${RANLIB}" \
7090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7091 mostlyclean) \
7092 || exit 1
7095 .PHONY: maybe-clean-flex clean-flex
7096 maybe-clean-flex:
7098 clean-flex:
7099 @[ -f ./flex/Makefile ] || exit 0; \
7100 r=`${PWD_COMMAND}`; export r; \
7101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7102 $(SET_LIB_PATH) \
7103 for flag in $(EXTRA_HOST_FLAGS); do \
7104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7105 done; \
7106 echo "Doing clean in flex" ; \
7107 (cd flex && \
7108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7110 "RANLIB=$${RANLIB}" \
7111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7112 clean) \
7113 || exit 1
7116 .PHONY: maybe-distclean-flex distclean-flex
7117 maybe-distclean-flex:
7119 distclean-flex:
7120 @[ -f ./flex/Makefile ] || exit 0; \
7121 r=`${PWD_COMMAND}`; export r; \
7122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7123 $(SET_LIB_PATH) \
7124 for flag in $(EXTRA_HOST_FLAGS); do \
7125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7126 done; \
7127 echo "Doing distclean in flex" ; \
7128 (cd flex && \
7129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7131 "RANLIB=$${RANLIB}" \
7132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7133 distclean) \
7134 || exit 1
7137 .PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
7138 maybe-maintainer-clean-flex:
7140 maintainer-clean-flex:
7141 @[ -f ./flex/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 maintainer-clean in flex" ; \
7149 (cd flex && \
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 maintainer-clean) \
7155 || exit 1
7159 .PHONY: configure-gas maybe-configure-gas
7160 maybe-configure-gas:
7161 configure-gas:
7162 @test ! -f gas/Makefile || exit 0; \
7163 [ -d gas ] || mkdir gas; \
7164 r=`${PWD_COMMAND}`; export r; \
7165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7166 CC="$(CC)"; export CC; \
7167 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7168 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7169 CXX="$(CXX)"; export CXX; \
7170 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7171 AR="$(AR)"; export AR; \
7172 AS="$(AS)"; export AS; \
7173 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7174 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7175 LD="$(LD)"; export LD; \
7176 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
7177 NM="$(NM)"; export NM; \
7178 RANLIB="$(RANLIB)"; export RANLIB; \
7179 WINDRES="$(WINDRES)"; export WINDRES; \
7180 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7181 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7182 echo Configuring in gas; \
7183 cd gas || exit 1; \
7184 case $(srcdir) in \
7185 \.) \
7186 srcdiroption="--srcdir=."; \
7187 libsrcdir=".";; \
7188 /* | [A-Za-z]:[\\/]*) \
7189 srcdiroption="--srcdir=$(srcdir)/gas"; \
7190 libsrcdir="$$s/gas";; \
7191 *) \
7192 srcdiroption="--srcdir=../$(srcdir)/gas"; \
7193 libsrcdir="$$s/gas";; \
7194 esac; \
7195 $(SHELL) $${libsrcdir}/configure \
7196 $(HOST_CONFIGARGS) $${srcdiroption} \
7197 || exit 1
7199 .PHONY: all-gas maybe-all-gas
7200 maybe-all-gas:
7201 all-gas: configure-gas
7202 @r=`${PWD_COMMAND}`; export r; \
7203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7204 $(SET_LIB_PATH) \
7205 (cd gas && $(MAKE) $(FLAGS_TO_PASS) all)
7207 .PHONY: check-gas maybe-check-gas
7208 maybe-check-gas:
7210 check-gas:
7211 @r=`${PWD_COMMAND}`; export r; \
7212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7213 $(SET_LIB_PATH) \
7214 (cd gas && $(MAKE) $(FLAGS_TO_PASS) check)
7217 .PHONY: install-gas maybe-install-gas
7218 maybe-install-gas:
7220 install-gas: installdirs
7221 @r=`${PWD_COMMAND}`; export r; \
7222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7223 $(SET_LIB_PATH) \
7224 (cd gas && $(MAKE) $(FLAGS_TO_PASS) install)
7227 # Other targets (info, dvi, etc.)
7229 .PHONY: maybe-info-gas info-gas
7230 maybe-info-gas:
7232 info-gas: \
7233 configure-gas
7234 @[ -f ./gas/Makefile ] || exit 0; \
7235 r=`${PWD_COMMAND}`; export r; \
7236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7237 $(SET_LIB_PATH) \
7238 for flag in $(EXTRA_HOST_FLAGS); do \
7239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7240 done; \
7241 echo "Doing info in gas" ; \
7242 (cd gas && \
7243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7245 "RANLIB=$${RANLIB}" \
7246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7247 info) \
7248 || exit 1
7251 .PHONY: maybe-dvi-gas dvi-gas
7252 maybe-dvi-gas:
7254 dvi-gas: \
7255 configure-gas
7256 @[ -f ./gas/Makefile ] || exit 0; \
7257 r=`${PWD_COMMAND}`; export r; \
7258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7259 $(SET_LIB_PATH) \
7260 for flag in $(EXTRA_HOST_FLAGS); do \
7261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7262 done; \
7263 echo "Doing dvi in gas" ; \
7264 (cd gas && \
7265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7267 "RANLIB=$${RANLIB}" \
7268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7269 dvi) \
7270 || exit 1
7273 .PHONY: maybe-TAGS-gas TAGS-gas
7274 maybe-TAGS-gas:
7276 TAGS-gas: \
7277 configure-gas
7278 @[ -f ./gas/Makefile ] || exit 0; \
7279 r=`${PWD_COMMAND}`; export r; \
7280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7281 $(SET_LIB_PATH) \
7282 for flag in $(EXTRA_HOST_FLAGS); do \
7283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7284 done; \
7285 echo "Doing TAGS in gas" ; \
7286 (cd gas && \
7287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7289 "RANLIB=$${RANLIB}" \
7290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7291 TAGS) \
7292 || exit 1
7295 .PHONY: maybe-install-info-gas install-info-gas
7296 maybe-install-info-gas:
7298 install-info-gas: \
7299 configure-gas \
7300 info-gas
7301 @[ -f ./gas/Makefile ] || exit 0; \
7302 r=`${PWD_COMMAND}`; export r; \
7303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7304 $(SET_LIB_PATH) \
7305 for flag in $(EXTRA_HOST_FLAGS); do \
7306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7307 done; \
7308 echo "Doing install-info in gas" ; \
7309 (cd gas && \
7310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7312 "RANLIB=$${RANLIB}" \
7313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7314 install-info) \
7315 || exit 1
7318 .PHONY: maybe-installcheck-gas installcheck-gas
7319 maybe-installcheck-gas:
7321 installcheck-gas: \
7322 configure-gas
7323 @[ -f ./gas/Makefile ] || exit 0; \
7324 r=`${PWD_COMMAND}`; export r; \
7325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7326 $(SET_LIB_PATH) \
7327 for flag in $(EXTRA_HOST_FLAGS); do \
7328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7329 done; \
7330 echo "Doing installcheck in gas" ; \
7331 (cd gas && \
7332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7334 "RANLIB=$${RANLIB}" \
7335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7336 installcheck) \
7337 || exit 1
7340 .PHONY: maybe-mostlyclean-gas mostlyclean-gas
7341 maybe-mostlyclean-gas:
7343 mostlyclean-gas:
7344 @[ -f ./gas/Makefile ] || exit 0; \
7345 r=`${PWD_COMMAND}`; export r; \
7346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7347 $(SET_LIB_PATH) \
7348 for flag in $(EXTRA_HOST_FLAGS); do \
7349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7350 done; \
7351 echo "Doing mostlyclean in gas" ; \
7352 (cd gas && \
7353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7355 "RANLIB=$${RANLIB}" \
7356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7357 mostlyclean) \
7358 || exit 1
7361 .PHONY: maybe-clean-gas clean-gas
7362 maybe-clean-gas:
7364 clean-gas:
7365 @[ -f ./gas/Makefile ] || exit 0; \
7366 r=`${PWD_COMMAND}`; export r; \
7367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7368 $(SET_LIB_PATH) \
7369 for flag in $(EXTRA_HOST_FLAGS); do \
7370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7371 done; \
7372 echo "Doing clean in gas" ; \
7373 (cd gas && \
7374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7376 "RANLIB=$${RANLIB}" \
7377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7378 clean) \
7379 || exit 1
7382 .PHONY: maybe-distclean-gas distclean-gas
7383 maybe-distclean-gas:
7385 distclean-gas:
7386 @[ -f ./gas/Makefile ] || exit 0; \
7387 r=`${PWD_COMMAND}`; export r; \
7388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7389 $(SET_LIB_PATH) \
7390 for flag in $(EXTRA_HOST_FLAGS); do \
7391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7392 done; \
7393 echo "Doing distclean in gas" ; \
7394 (cd gas && \
7395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7397 "RANLIB=$${RANLIB}" \
7398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7399 distclean) \
7400 || exit 1
7403 .PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
7404 maybe-maintainer-clean-gas:
7406 maintainer-clean-gas:
7407 @[ -f ./gas/Makefile ] || exit 0; \
7408 r=`${PWD_COMMAND}`; export r; \
7409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7410 $(SET_LIB_PATH) \
7411 for flag in $(EXTRA_HOST_FLAGS); do \
7412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7413 done; \
7414 echo "Doing maintainer-clean in gas" ; \
7415 (cd gas && \
7416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7418 "RANLIB=$${RANLIB}" \
7419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7420 maintainer-clean) \
7421 || exit 1
7425 .PHONY: configure-gawk maybe-configure-gawk
7426 maybe-configure-gawk:
7427 configure-gawk:
7428 @test ! -f gawk/Makefile || exit 0; \
7429 [ -d gawk ] || mkdir gawk; \
7430 r=`${PWD_COMMAND}`; export r; \
7431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7432 CC="$(CC)"; export CC; \
7433 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7434 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7435 CXX="$(CXX)"; export CXX; \
7436 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7437 AR="$(AR)"; export AR; \
7438 AS="$(AS)"; export AS; \
7439 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7440 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7441 LD="$(LD)"; export LD; \
7442 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
7443 NM="$(NM)"; export NM; \
7444 RANLIB="$(RANLIB)"; export RANLIB; \
7445 WINDRES="$(WINDRES)"; export WINDRES; \
7446 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7447 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7448 echo Configuring in gawk; \
7449 cd gawk || exit 1; \
7450 case $(srcdir) in \
7451 \.) \
7452 srcdiroption="--srcdir=."; \
7453 libsrcdir=".";; \
7454 /* | [A-Za-z]:[\\/]*) \
7455 srcdiroption="--srcdir=$(srcdir)/gawk"; \
7456 libsrcdir="$$s/gawk";; \
7457 *) \
7458 srcdiroption="--srcdir=../$(srcdir)/gawk"; \
7459 libsrcdir="$$s/gawk";; \
7460 esac; \
7461 $(SHELL) $${libsrcdir}/configure \
7462 $(HOST_CONFIGARGS) $${srcdiroption} \
7463 || exit 1
7465 .PHONY: all-gawk maybe-all-gawk
7466 maybe-all-gawk:
7467 all-gawk: configure-gawk
7468 @r=`${PWD_COMMAND}`; export r; \
7469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7470 $(SET_LIB_PATH) \
7471 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all)
7473 .PHONY: check-gawk maybe-check-gawk
7474 maybe-check-gawk:
7476 check-gawk:
7477 @r=`${PWD_COMMAND}`; export r; \
7478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7479 $(SET_LIB_PATH) \
7480 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check)
7483 .PHONY: install-gawk maybe-install-gawk
7484 maybe-install-gawk:
7486 install-gawk: installdirs
7487 @r=`${PWD_COMMAND}`; export r; \
7488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7489 $(SET_LIB_PATH) \
7490 (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install)
7493 # Other targets (info, dvi, etc.)
7495 .PHONY: maybe-info-gawk info-gawk
7496 maybe-info-gawk:
7498 info-gawk: \
7499 configure-gawk
7500 @[ -f ./gawk/Makefile ] || exit 0; \
7501 r=`${PWD_COMMAND}`; export r; \
7502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7503 $(SET_LIB_PATH) \
7504 for flag in $(EXTRA_HOST_FLAGS); do \
7505 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7506 done; \
7507 echo "Doing info in gawk" ; \
7508 (cd gawk && \
7509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7511 "RANLIB=$${RANLIB}" \
7512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7513 info) \
7514 || exit 1
7517 .PHONY: maybe-dvi-gawk dvi-gawk
7518 maybe-dvi-gawk:
7520 dvi-gawk: \
7521 configure-gawk
7522 @[ -f ./gawk/Makefile ] || exit 0; \
7523 r=`${PWD_COMMAND}`; export r; \
7524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7525 $(SET_LIB_PATH) \
7526 for flag in $(EXTRA_HOST_FLAGS); do \
7527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7528 done; \
7529 echo "Doing dvi in gawk" ; \
7530 (cd gawk && \
7531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7533 "RANLIB=$${RANLIB}" \
7534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7535 dvi) \
7536 || exit 1
7539 .PHONY: maybe-TAGS-gawk TAGS-gawk
7540 maybe-TAGS-gawk:
7542 TAGS-gawk: \
7543 configure-gawk
7544 @[ -f ./gawk/Makefile ] || exit 0; \
7545 r=`${PWD_COMMAND}`; export r; \
7546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7547 $(SET_LIB_PATH) \
7548 for flag in $(EXTRA_HOST_FLAGS); do \
7549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7550 done; \
7551 echo "Doing TAGS in gawk" ; \
7552 (cd gawk && \
7553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7555 "RANLIB=$${RANLIB}" \
7556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7557 TAGS) \
7558 || exit 1
7561 .PHONY: maybe-install-info-gawk install-info-gawk
7562 maybe-install-info-gawk:
7564 install-info-gawk: \
7565 configure-gawk \
7566 info-gawk
7567 @[ -f ./gawk/Makefile ] || exit 0; \
7568 r=`${PWD_COMMAND}`; export r; \
7569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7570 $(SET_LIB_PATH) \
7571 for flag in $(EXTRA_HOST_FLAGS); do \
7572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7573 done; \
7574 echo "Doing install-info in gawk" ; \
7575 (cd gawk && \
7576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7578 "RANLIB=$${RANLIB}" \
7579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7580 install-info) \
7581 || exit 1
7584 .PHONY: maybe-installcheck-gawk installcheck-gawk
7585 maybe-installcheck-gawk:
7587 installcheck-gawk: \
7588 configure-gawk
7589 @[ -f ./gawk/Makefile ] || exit 0; \
7590 r=`${PWD_COMMAND}`; export r; \
7591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7592 $(SET_LIB_PATH) \
7593 for flag in $(EXTRA_HOST_FLAGS); do \
7594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7595 done; \
7596 echo "Doing installcheck in gawk" ; \
7597 (cd gawk && \
7598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7600 "RANLIB=$${RANLIB}" \
7601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7602 installcheck) \
7603 || exit 1
7606 .PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
7607 maybe-mostlyclean-gawk:
7609 mostlyclean-gawk:
7610 @[ -f ./gawk/Makefile ] || exit 0; \
7611 r=`${PWD_COMMAND}`; export r; \
7612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7613 $(SET_LIB_PATH) \
7614 for flag in $(EXTRA_HOST_FLAGS); do \
7615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7616 done; \
7617 echo "Doing mostlyclean in gawk" ; \
7618 (cd gawk && \
7619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7621 "RANLIB=$${RANLIB}" \
7622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7623 mostlyclean) \
7624 || exit 1
7627 .PHONY: maybe-clean-gawk clean-gawk
7628 maybe-clean-gawk:
7630 clean-gawk:
7631 @[ -f ./gawk/Makefile ] || exit 0; \
7632 r=`${PWD_COMMAND}`; export r; \
7633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7634 $(SET_LIB_PATH) \
7635 for flag in $(EXTRA_HOST_FLAGS); do \
7636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7637 done; \
7638 echo "Doing clean in gawk" ; \
7639 (cd gawk && \
7640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7642 "RANLIB=$${RANLIB}" \
7643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7644 clean) \
7645 || exit 1
7648 .PHONY: maybe-distclean-gawk distclean-gawk
7649 maybe-distclean-gawk:
7651 distclean-gawk:
7652 @[ -f ./gawk/Makefile ] || exit 0; \
7653 r=`${PWD_COMMAND}`; export r; \
7654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7655 $(SET_LIB_PATH) \
7656 for flag in $(EXTRA_HOST_FLAGS); do \
7657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7658 done; \
7659 echo "Doing distclean in gawk" ; \
7660 (cd gawk && \
7661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7663 "RANLIB=$${RANLIB}" \
7664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7665 distclean) \
7666 || exit 1
7669 .PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
7670 maybe-maintainer-clean-gawk:
7672 maintainer-clean-gawk:
7673 @[ -f ./gawk/Makefile ] || exit 0; \
7674 r=`${PWD_COMMAND}`; export r; \
7675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7676 $(SET_LIB_PATH) \
7677 for flag in $(EXTRA_HOST_FLAGS); do \
7678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7679 done; \
7680 echo "Doing maintainer-clean in gawk" ; \
7681 (cd gawk && \
7682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7684 "RANLIB=$${RANLIB}" \
7685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7686 maintainer-clean) \
7687 || exit 1
7691 .PHONY: configure-gettext maybe-configure-gettext
7692 maybe-configure-gettext:
7693 configure-gettext:
7694 @test ! -f gettext/Makefile || exit 0; \
7695 [ -d gettext ] || mkdir gettext; \
7696 r=`${PWD_COMMAND}`; export r; \
7697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7698 CC="$(CC)"; export CC; \
7699 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7700 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7701 CXX="$(CXX)"; export CXX; \
7702 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7703 AR="$(AR)"; export AR; \
7704 AS="$(AS)"; export AS; \
7705 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7706 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7707 LD="$(LD)"; export LD; \
7708 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
7709 NM="$(NM)"; export NM; \
7710 RANLIB="$(RANLIB)"; export RANLIB; \
7711 WINDRES="$(WINDRES)"; export WINDRES; \
7712 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7713 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7714 echo Configuring in gettext; \
7715 cd gettext || exit 1; \
7716 case $(srcdir) in \
7717 \.) \
7718 srcdiroption="--srcdir=."; \
7719 libsrcdir=".";; \
7720 /* | [A-Za-z]:[\\/]*) \
7721 srcdiroption="--srcdir=$(srcdir)/gettext"; \
7722 libsrcdir="$$s/gettext";; \
7723 *) \
7724 srcdiroption="--srcdir=../$(srcdir)/gettext"; \
7725 libsrcdir="$$s/gettext";; \
7726 esac; \
7727 $(SHELL) $${libsrcdir}/configure \
7728 $(HOST_CONFIGARGS) $${srcdiroption} \
7729 || exit 1
7731 .PHONY: all-gettext maybe-all-gettext
7732 maybe-all-gettext:
7733 all-gettext: configure-gettext
7734 @r=`${PWD_COMMAND}`; export r; \
7735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7736 $(SET_LIB_PATH) \
7737 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all)
7739 .PHONY: check-gettext maybe-check-gettext
7740 maybe-check-gettext:
7742 check-gettext:
7743 @r=`${PWD_COMMAND}`; export r; \
7744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7745 $(SET_LIB_PATH) \
7746 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check)
7749 .PHONY: install-gettext maybe-install-gettext
7750 maybe-install-gettext:
7752 install-gettext: installdirs
7753 @r=`${PWD_COMMAND}`; export r; \
7754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7755 $(SET_LIB_PATH) \
7756 (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install)
7759 # Other targets (info, dvi, etc.)
7761 .PHONY: maybe-info-gettext info-gettext
7762 maybe-info-gettext:
7764 info-gettext: \
7765 configure-gettext
7766 @[ -f ./gettext/Makefile ] || exit 0; \
7767 r=`${PWD_COMMAND}`; export r; \
7768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7769 $(SET_LIB_PATH) \
7770 for flag in $(EXTRA_HOST_FLAGS); do \
7771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7772 done; \
7773 echo "Doing info in gettext" ; \
7774 (cd gettext && \
7775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7777 "RANLIB=$${RANLIB}" \
7778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7779 info) \
7780 || exit 1
7783 .PHONY: maybe-dvi-gettext dvi-gettext
7784 maybe-dvi-gettext:
7786 dvi-gettext: \
7787 configure-gettext
7788 @[ -f ./gettext/Makefile ] || exit 0; \
7789 r=`${PWD_COMMAND}`; export r; \
7790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7791 $(SET_LIB_PATH) \
7792 for flag in $(EXTRA_HOST_FLAGS); do \
7793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7794 done; \
7795 echo "Doing dvi in gettext" ; \
7796 (cd gettext && \
7797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7799 "RANLIB=$${RANLIB}" \
7800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7801 dvi) \
7802 || exit 1
7805 .PHONY: maybe-TAGS-gettext TAGS-gettext
7806 maybe-TAGS-gettext:
7808 TAGS-gettext: \
7809 configure-gettext
7810 @[ -f ./gettext/Makefile ] || exit 0; \
7811 r=`${PWD_COMMAND}`; export r; \
7812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7813 $(SET_LIB_PATH) \
7814 for flag in $(EXTRA_HOST_FLAGS); do \
7815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7816 done; \
7817 echo "Doing TAGS in gettext" ; \
7818 (cd gettext && \
7819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7821 "RANLIB=$${RANLIB}" \
7822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7823 TAGS) \
7824 || exit 1
7827 .PHONY: maybe-install-info-gettext install-info-gettext
7828 maybe-install-info-gettext:
7830 install-info-gettext: \
7831 configure-gettext \
7832 info-gettext
7833 @[ -f ./gettext/Makefile ] || exit 0; \
7834 r=`${PWD_COMMAND}`; export r; \
7835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7836 $(SET_LIB_PATH) \
7837 for flag in $(EXTRA_HOST_FLAGS); do \
7838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7839 done; \
7840 echo "Doing install-info in gettext" ; \
7841 (cd gettext && \
7842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7844 "RANLIB=$${RANLIB}" \
7845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7846 install-info) \
7847 || exit 1
7850 .PHONY: maybe-installcheck-gettext installcheck-gettext
7851 maybe-installcheck-gettext:
7853 installcheck-gettext: \
7854 configure-gettext
7855 @[ -f ./gettext/Makefile ] || exit 0; \
7856 r=`${PWD_COMMAND}`; export r; \
7857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7858 $(SET_LIB_PATH) \
7859 for flag in $(EXTRA_HOST_FLAGS); do \
7860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7861 done; \
7862 echo "Doing installcheck in gettext" ; \
7863 (cd gettext && \
7864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7866 "RANLIB=$${RANLIB}" \
7867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7868 installcheck) \
7869 || exit 1
7872 .PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
7873 maybe-mostlyclean-gettext:
7875 mostlyclean-gettext:
7876 @[ -f ./gettext/Makefile ] || exit 0; \
7877 r=`${PWD_COMMAND}`; export r; \
7878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7879 $(SET_LIB_PATH) \
7880 for flag in $(EXTRA_HOST_FLAGS); do \
7881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7882 done; \
7883 echo "Doing mostlyclean in gettext" ; \
7884 (cd gettext && \
7885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7887 "RANLIB=$${RANLIB}" \
7888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7889 mostlyclean) \
7890 || exit 1
7893 .PHONY: maybe-clean-gettext clean-gettext
7894 maybe-clean-gettext:
7896 clean-gettext:
7897 @[ -f ./gettext/Makefile ] || exit 0; \
7898 r=`${PWD_COMMAND}`; export r; \
7899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7900 $(SET_LIB_PATH) \
7901 for flag in $(EXTRA_HOST_FLAGS); do \
7902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7903 done; \
7904 echo "Doing clean in gettext" ; \
7905 (cd gettext && \
7906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7908 "RANLIB=$${RANLIB}" \
7909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7910 clean) \
7911 || exit 1
7914 .PHONY: maybe-distclean-gettext distclean-gettext
7915 maybe-distclean-gettext:
7917 distclean-gettext:
7918 @[ -f ./gettext/Makefile ] || exit 0; \
7919 r=`${PWD_COMMAND}`; export r; \
7920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7921 $(SET_LIB_PATH) \
7922 for flag in $(EXTRA_HOST_FLAGS); do \
7923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7924 done; \
7925 echo "Doing distclean in gettext" ; \
7926 (cd gettext && \
7927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7929 "RANLIB=$${RANLIB}" \
7930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7931 distclean) \
7932 || exit 1
7935 .PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
7936 maybe-maintainer-clean-gettext:
7938 maintainer-clean-gettext:
7939 @[ -f ./gettext/Makefile ] || exit 0; \
7940 r=`${PWD_COMMAND}`; export r; \
7941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7942 $(SET_LIB_PATH) \
7943 for flag in $(EXTRA_HOST_FLAGS); do \
7944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7945 done; \
7946 echo "Doing maintainer-clean in gettext" ; \
7947 (cd gettext && \
7948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7950 "RANLIB=$${RANLIB}" \
7951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7952 maintainer-clean) \
7953 || exit 1
7957 .PHONY: configure-gnuserv maybe-configure-gnuserv
7958 maybe-configure-gnuserv:
7959 configure-gnuserv:
7960 @test ! -f gnuserv/Makefile || exit 0; \
7961 [ -d gnuserv ] || mkdir gnuserv; \
7962 r=`${PWD_COMMAND}`; export r; \
7963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7964 CC="$(CC)"; export CC; \
7965 CFLAGS="$(CFLAGS)"; export CFLAGS; \
7966 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
7967 CXX="$(CXX)"; export CXX; \
7968 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
7969 AR="$(AR)"; export AR; \
7970 AS="$(AS)"; export AS; \
7971 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
7972 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
7973 LD="$(LD)"; export LD; \
7974 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
7975 NM="$(NM)"; export NM; \
7976 RANLIB="$(RANLIB)"; export RANLIB; \
7977 WINDRES="$(WINDRES)"; export WINDRES; \
7978 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
7979 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
7980 echo Configuring in gnuserv; \
7981 cd gnuserv || exit 1; \
7982 case $(srcdir) in \
7983 \.) \
7984 srcdiroption="--srcdir=."; \
7985 libsrcdir=".";; \
7986 /* | [A-Za-z]:[\\/]*) \
7987 srcdiroption="--srcdir=$(srcdir)/gnuserv"; \
7988 libsrcdir="$$s/gnuserv";; \
7989 *) \
7990 srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \
7991 libsrcdir="$$s/gnuserv";; \
7992 esac; \
7993 $(SHELL) $${libsrcdir}/configure \
7994 $(HOST_CONFIGARGS) $${srcdiroption} \
7995 || exit 1
7997 .PHONY: all-gnuserv maybe-all-gnuserv
7998 maybe-all-gnuserv:
7999 all-gnuserv: configure-gnuserv
8000 @r=`${PWD_COMMAND}`; export r; \
8001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8002 $(SET_LIB_PATH) \
8003 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all)
8005 .PHONY: check-gnuserv maybe-check-gnuserv
8006 maybe-check-gnuserv:
8008 check-gnuserv:
8009 @r=`${PWD_COMMAND}`; export r; \
8010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8011 $(SET_LIB_PATH) \
8012 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check)
8015 .PHONY: install-gnuserv maybe-install-gnuserv
8016 maybe-install-gnuserv:
8018 install-gnuserv: installdirs
8019 @r=`${PWD_COMMAND}`; export r; \
8020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8021 $(SET_LIB_PATH) \
8022 (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install)
8025 # Other targets (info, dvi, etc.)
8027 .PHONY: maybe-info-gnuserv info-gnuserv
8028 maybe-info-gnuserv:
8030 info-gnuserv: \
8031 configure-gnuserv
8032 @[ -f ./gnuserv/Makefile ] || exit 0; \
8033 r=`${PWD_COMMAND}`; export r; \
8034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8035 $(SET_LIB_PATH) \
8036 for flag in $(EXTRA_HOST_FLAGS); do \
8037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8038 done; \
8039 echo "Doing info in gnuserv" ; \
8040 (cd gnuserv && \
8041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8043 "RANLIB=$${RANLIB}" \
8044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8045 info) \
8046 || exit 1
8049 .PHONY: maybe-dvi-gnuserv dvi-gnuserv
8050 maybe-dvi-gnuserv:
8052 dvi-gnuserv: \
8053 configure-gnuserv
8054 @[ -f ./gnuserv/Makefile ] || exit 0; \
8055 r=`${PWD_COMMAND}`; export r; \
8056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8057 $(SET_LIB_PATH) \
8058 for flag in $(EXTRA_HOST_FLAGS); do \
8059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8060 done; \
8061 echo "Doing dvi in gnuserv" ; \
8062 (cd gnuserv && \
8063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8065 "RANLIB=$${RANLIB}" \
8066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8067 dvi) \
8068 || exit 1
8071 .PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
8072 maybe-TAGS-gnuserv:
8074 TAGS-gnuserv: \
8075 configure-gnuserv
8076 @[ -f ./gnuserv/Makefile ] || exit 0; \
8077 r=`${PWD_COMMAND}`; export r; \
8078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8079 $(SET_LIB_PATH) \
8080 for flag in $(EXTRA_HOST_FLAGS); do \
8081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8082 done; \
8083 echo "Doing TAGS in gnuserv" ; \
8084 (cd gnuserv && \
8085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8087 "RANLIB=$${RANLIB}" \
8088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8089 TAGS) \
8090 || exit 1
8093 .PHONY: maybe-install-info-gnuserv install-info-gnuserv
8094 maybe-install-info-gnuserv:
8096 install-info-gnuserv: \
8097 configure-gnuserv \
8098 info-gnuserv
8099 @[ -f ./gnuserv/Makefile ] || exit 0; \
8100 r=`${PWD_COMMAND}`; export r; \
8101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8102 $(SET_LIB_PATH) \
8103 for flag in $(EXTRA_HOST_FLAGS); do \
8104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8105 done; \
8106 echo "Doing install-info in gnuserv" ; \
8107 (cd gnuserv && \
8108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8110 "RANLIB=$${RANLIB}" \
8111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8112 install-info) \
8113 || exit 1
8116 .PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
8117 maybe-installcheck-gnuserv:
8119 installcheck-gnuserv: \
8120 configure-gnuserv
8121 @[ -f ./gnuserv/Makefile ] || exit 0; \
8122 r=`${PWD_COMMAND}`; export r; \
8123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8124 $(SET_LIB_PATH) \
8125 for flag in $(EXTRA_HOST_FLAGS); do \
8126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8127 done; \
8128 echo "Doing installcheck in gnuserv" ; \
8129 (cd gnuserv && \
8130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8132 "RANLIB=$${RANLIB}" \
8133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8134 installcheck) \
8135 || exit 1
8138 .PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
8139 maybe-mostlyclean-gnuserv:
8141 mostlyclean-gnuserv:
8142 @[ -f ./gnuserv/Makefile ] || exit 0; \
8143 r=`${PWD_COMMAND}`; export r; \
8144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8145 $(SET_LIB_PATH) \
8146 for flag in $(EXTRA_HOST_FLAGS); do \
8147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8148 done; \
8149 echo "Doing mostlyclean in gnuserv" ; \
8150 (cd gnuserv && \
8151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8153 "RANLIB=$${RANLIB}" \
8154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8155 mostlyclean) \
8156 || exit 1
8159 .PHONY: maybe-clean-gnuserv clean-gnuserv
8160 maybe-clean-gnuserv:
8162 clean-gnuserv:
8163 @[ -f ./gnuserv/Makefile ] || exit 0; \
8164 r=`${PWD_COMMAND}`; export r; \
8165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8166 $(SET_LIB_PATH) \
8167 for flag in $(EXTRA_HOST_FLAGS); do \
8168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8169 done; \
8170 echo "Doing clean in gnuserv" ; \
8171 (cd gnuserv && \
8172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8174 "RANLIB=$${RANLIB}" \
8175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8176 clean) \
8177 || exit 1
8180 .PHONY: maybe-distclean-gnuserv distclean-gnuserv
8181 maybe-distclean-gnuserv:
8183 distclean-gnuserv:
8184 @[ -f ./gnuserv/Makefile ] || exit 0; \
8185 r=`${PWD_COMMAND}`; export r; \
8186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8187 $(SET_LIB_PATH) \
8188 for flag in $(EXTRA_HOST_FLAGS); do \
8189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8190 done; \
8191 echo "Doing distclean in gnuserv" ; \
8192 (cd gnuserv && \
8193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8195 "RANLIB=$${RANLIB}" \
8196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8197 distclean) \
8198 || exit 1
8201 .PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
8202 maybe-maintainer-clean-gnuserv:
8204 maintainer-clean-gnuserv:
8205 @[ -f ./gnuserv/Makefile ] || exit 0; \
8206 r=`${PWD_COMMAND}`; export r; \
8207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8208 $(SET_LIB_PATH) \
8209 for flag in $(EXTRA_HOST_FLAGS); do \
8210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8211 done; \
8212 echo "Doing maintainer-clean in gnuserv" ; \
8213 (cd gnuserv && \
8214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8216 "RANLIB=$${RANLIB}" \
8217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8218 maintainer-clean) \
8219 || exit 1
8223 .PHONY: configure-gprof maybe-configure-gprof
8224 maybe-configure-gprof:
8225 configure-gprof:
8226 @test ! -f gprof/Makefile || exit 0; \
8227 [ -d gprof ] || mkdir gprof; \
8228 r=`${PWD_COMMAND}`; export r; \
8229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8230 CC="$(CC)"; export CC; \
8231 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8232 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8233 CXX="$(CXX)"; export CXX; \
8234 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8235 AR="$(AR)"; export AR; \
8236 AS="$(AS)"; export AS; \
8237 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8238 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8239 LD="$(LD)"; export LD; \
8240 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
8241 NM="$(NM)"; export NM; \
8242 RANLIB="$(RANLIB)"; export RANLIB; \
8243 WINDRES="$(WINDRES)"; export WINDRES; \
8244 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8245 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8246 echo Configuring in gprof; \
8247 cd gprof || exit 1; \
8248 case $(srcdir) in \
8249 \.) \
8250 srcdiroption="--srcdir=."; \
8251 libsrcdir=".";; \
8252 /* | [A-Za-z]:[\\/]*) \
8253 srcdiroption="--srcdir=$(srcdir)/gprof"; \
8254 libsrcdir="$$s/gprof";; \
8255 *) \
8256 srcdiroption="--srcdir=../$(srcdir)/gprof"; \
8257 libsrcdir="$$s/gprof";; \
8258 esac; \
8259 $(SHELL) $${libsrcdir}/configure \
8260 $(HOST_CONFIGARGS) $${srcdiroption} \
8261 || exit 1
8263 .PHONY: all-gprof maybe-all-gprof
8264 maybe-all-gprof:
8265 all-gprof: configure-gprof
8266 @r=`${PWD_COMMAND}`; export r; \
8267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8268 $(SET_LIB_PATH) \
8269 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all)
8271 .PHONY: check-gprof maybe-check-gprof
8272 maybe-check-gprof:
8274 check-gprof:
8275 @r=`${PWD_COMMAND}`; export r; \
8276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8277 $(SET_LIB_PATH) \
8278 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check)
8281 .PHONY: install-gprof maybe-install-gprof
8282 maybe-install-gprof:
8284 install-gprof: installdirs
8285 @r=`${PWD_COMMAND}`; export r; \
8286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8287 $(SET_LIB_PATH) \
8288 (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install)
8291 # Other targets (info, dvi, etc.)
8293 .PHONY: maybe-info-gprof info-gprof
8294 maybe-info-gprof:
8296 info-gprof: \
8297 configure-gprof
8298 @[ -f ./gprof/Makefile ] || exit 0; \
8299 r=`${PWD_COMMAND}`; export r; \
8300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8301 $(SET_LIB_PATH) \
8302 for flag in $(EXTRA_HOST_FLAGS); do \
8303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8304 done; \
8305 echo "Doing info in gprof" ; \
8306 (cd gprof && \
8307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8309 "RANLIB=$${RANLIB}" \
8310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8311 info) \
8312 || exit 1
8315 .PHONY: maybe-dvi-gprof dvi-gprof
8316 maybe-dvi-gprof:
8318 dvi-gprof: \
8319 configure-gprof
8320 @[ -f ./gprof/Makefile ] || exit 0; \
8321 r=`${PWD_COMMAND}`; export r; \
8322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8323 $(SET_LIB_PATH) \
8324 for flag in $(EXTRA_HOST_FLAGS); do \
8325 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8326 done; \
8327 echo "Doing dvi in gprof" ; \
8328 (cd gprof && \
8329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8331 "RANLIB=$${RANLIB}" \
8332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8333 dvi) \
8334 || exit 1
8337 .PHONY: maybe-TAGS-gprof TAGS-gprof
8338 maybe-TAGS-gprof:
8340 TAGS-gprof: \
8341 configure-gprof
8342 @[ -f ./gprof/Makefile ] || exit 0; \
8343 r=`${PWD_COMMAND}`; export r; \
8344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8345 $(SET_LIB_PATH) \
8346 for flag in $(EXTRA_HOST_FLAGS); do \
8347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8348 done; \
8349 echo "Doing TAGS in gprof" ; \
8350 (cd gprof && \
8351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8353 "RANLIB=$${RANLIB}" \
8354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8355 TAGS) \
8356 || exit 1
8359 .PHONY: maybe-install-info-gprof install-info-gprof
8360 maybe-install-info-gprof:
8362 install-info-gprof: \
8363 configure-gprof \
8364 info-gprof
8365 @[ -f ./gprof/Makefile ] || exit 0; \
8366 r=`${PWD_COMMAND}`; export r; \
8367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8368 $(SET_LIB_PATH) \
8369 for flag in $(EXTRA_HOST_FLAGS); do \
8370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8371 done; \
8372 echo "Doing install-info in gprof" ; \
8373 (cd gprof && \
8374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8376 "RANLIB=$${RANLIB}" \
8377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8378 install-info) \
8379 || exit 1
8382 .PHONY: maybe-installcheck-gprof installcheck-gprof
8383 maybe-installcheck-gprof:
8385 installcheck-gprof: \
8386 configure-gprof
8387 @[ -f ./gprof/Makefile ] || exit 0; \
8388 r=`${PWD_COMMAND}`; export r; \
8389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8390 $(SET_LIB_PATH) \
8391 for flag in $(EXTRA_HOST_FLAGS); do \
8392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8393 done; \
8394 echo "Doing installcheck in gprof" ; \
8395 (cd gprof && \
8396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8398 "RANLIB=$${RANLIB}" \
8399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8400 installcheck) \
8401 || exit 1
8404 .PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
8405 maybe-mostlyclean-gprof:
8407 mostlyclean-gprof:
8408 @[ -f ./gprof/Makefile ] || exit 0; \
8409 r=`${PWD_COMMAND}`; export r; \
8410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8411 $(SET_LIB_PATH) \
8412 for flag in $(EXTRA_HOST_FLAGS); do \
8413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8414 done; \
8415 echo "Doing mostlyclean in gprof" ; \
8416 (cd gprof && \
8417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8419 "RANLIB=$${RANLIB}" \
8420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8421 mostlyclean) \
8422 || exit 1
8425 .PHONY: maybe-clean-gprof clean-gprof
8426 maybe-clean-gprof:
8428 clean-gprof:
8429 @[ -f ./gprof/Makefile ] || exit 0; \
8430 r=`${PWD_COMMAND}`; export r; \
8431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8432 $(SET_LIB_PATH) \
8433 for flag in $(EXTRA_HOST_FLAGS); do \
8434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8435 done; \
8436 echo "Doing clean in gprof" ; \
8437 (cd gprof && \
8438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8440 "RANLIB=$${RANLIB}" \
8441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8442 clean) \
8443 || exit 1
8446 .PHONY: maybe-distclean-gprof distclean-gprof
8447 maybe-distclean-gprof:
8449 distclean-gprof:
8450 @[ -f ./gprof/Makefile ] || exit 0; \
8451 r=`${PWD_COMMAND}`; export r; \
8452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8453 $(SET_LIB_PATH) \
8454 for flag in $(EXTRA_HOST_FLAGS); do \
8455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8456 done; \
8457 echo "Doing distclean in gprof" ; \
8458 (cd gprof && \
8459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8461 "RANLIB=$${RANLIB}" \
8462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8463 distclean) \
8464 || exit 1
8467 .PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
8468 maybe-maintainer-clean-gprof:
8470 maintainer-clean-gprof:
8471 @[ -f ./gprof/Makefile ] || exit 0; \
8472 r=`${PWD_COMMAND}`; export r; \
8473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8474 $(SET_LIB_PATH) \
8475 for flag in $(EXTRA_HOST_FLAGS); do \
8476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8477 done; \
8478 echo "Doing maintainer-clean in gprof" ; \
8479 (cd gprof && \
8480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8482 "RANLIB=$${RANLIB}" \
8483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8484 maintainer-clean) \
8485 || exit 1
8489 .PHONY: configure-gzip maybe-configure-gzip
8490 maybe-configure-gzip:
8491 configure-gzip:
8492 @test ! -f gzip/Makefile || exit 0; \
8493 [ -d gzip ] || mkdir gzip; \
8494 r=`${PWD_COMMAND}`; export r; \
8495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8496 CC="$(CC)"; export CC; \
8497 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8498 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8499 CXX="$(CXX)"; export CXX; \
8500 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8501 AR="$(AR)"; export AR; \
8502 AS="$(AS)"; export AS; \
8503 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8504 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8505 LD="$(LD)"; export LD; \
8506 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
8507 NM="$(NM)"; export NM; \
8508 RANLIB="$(RANLIB)"; export RANLIB; \
8509 WINDRES="$(WINDRES)"; export WINDRES; \
8510 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8511 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8512 echo Configuring in gzip; \
8513 cd gzip || exit 1; \
8514 case $(srcdir) in \
8515 \.) \
8516 srcdiroption="--srcdir=."; \
8517 libsrcdir=".";; \
8518 /* | [A-Za-z]:[\\/]*) \
8519 srcdiroption="--srcdir=$(srcdir)/gzip"; \
8520 libsrcdir="$$s/gzip";; \
8521 *) \
8522 srcdiroption="--srcdir=../$(srcdir)/gzip"; \
8523 libsrcdir="$$s/gzip";; \
8524 esac; \
8525 $(SHELL) $${libsrcdir}/configure \
8526 $(HOST_CONFIGARGS) $${srcdiroption} \
8527 || exit 1
8529 .PHONY: all-gzip maybe-all-gzip
8530 maybe-all-gzip:
8531 all-gzip: configure-gzip
8532 @r=`${PWD_COMMAND}`; export r; \
8533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8534 $(SET_LIB_PATH) \
8535 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all)
8537 .PHONY: check-gzip maybe-check-gzip
8538 maybe-check-gzip:
8540 check-gzip:
8541 @r=`${PWD_COMMAND}`; export r; \
8542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8543 $(SET_LIB_PATH) \
8544 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check)
8547 .PHONY: install-gzip maybe-install-gzip
8548 maybe-install-gzip:
8550 install-gzip: installdirs
8551 @r=`${PWD_COMMAND}`; export r; \
8552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8553 $(SET_LIB_PATH) \
8554 (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install)
8557 # Other targets (info, dvi, etc.)
8559 .PHONY: maybe-info-gzip info-gzip
8560 maybe-info-gzip:
8562 info-gzip: \
8563 configure-gzip
8564 @[ -f ./gzip/Makefile ] || exit 0; \
8565 r=`${PWD_COMMAND}`; export r; \
8566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8567 $(SET_LIB_PATH) \
8568 for flag in $(EXTRA_HOST_FLAGS); do \
8569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8570 done; \
8571 echo "Doing info in gzip" ; \
8572 (cd gzip && \
8573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8575 "RANLIB=$${RANLIB}" \
8576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8577 info) \
8578 || exit 1
8581 .PHONY: maybe-dvi-gzip dvi-gzip
8582 maybe-dvi-gzip:
8584 dvi-gzip: \
8585 configure-gzip
8586 @[ -f ./gzip/Makefile ] || exit 0; \
8587 r=`${PWD_COMMAND}`; export r; \
8588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8589 $(SET_LIB_PATH) \
8590 for flag in $(EXTRA_HOST_FLAGS); do \
8591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8592 done; \
8593 echo "Doing dvi in gzip" ; \
8594 (cd gzip && \
8595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8597 "RANLIB=$${RANLIB}" \
8598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8599 dvi) \
8600 || exit 1
8603 .PHONY: maybe-TAGS-gzip TAGS-gzip
8604 maybe-TAGS-gzip:
8606 TAGS-gzip: \
8607 configure-gzip
8608 @[ -f ./gzip/Makefile ] || exit 0; \
8609 r=`${PWD_COMMAND}`; export r; \
8610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8611 $(SET_LIB_PATH) \
8612 for flag in $(EXTRA_HOST_FLAGS); do \
8613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8614 done; \
8615 echo "Doing TAGS in gzip" ; \
8616 (cd gzip && \
8617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8619 "RANLIB=$${RANLIB}" \
8620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8621 TAGS) \
8622 || exit 1
8625 .PHONY: maybe-install-info-gzip install-info-gzip
8626 maybe-install-info-gzip:
8628 install-info-gzip: \
8629 configure-gzip \
8630 info-gzip
8631 @[ -f ./gzip/Makefile ] || exit 0; \
8632 r=`${PWD_COMMAND}`; export r; \
8633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8634 $(SET_LIB_PATH) \
8635 for flag in $(EXTRA_HOST_FLAGS); do \
8636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8637 done; \
8638 echo "Doing install-info in gzip" ; \
8639 (cd gzip && \
8640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8642 "RANLIB=$${RANLIB}" \
8643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8644 install-info) \
8645 || exit 1
8648 .PHONY: maybe-installcheck-gzip installcheck-gzip
8649 maybe-installcheck-gzip:
8651 installcheck-gzip: \
8652 configure-gzip
8653 @[ -f ./gzip/Makefile ] || exit 0; \
8654 r=`${PWD_COMMAND}`; export r; \
8655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8656 $(SET_LIB_PATH) \
8657 for flag in $(EXTRA_HOST_FLAGS); do \
8658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8659 done; \
8660 echo "Doing installcheck in gzip" ; \
8661 (cd gzip && \
8662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8664 "RANLIB=$${RANLIB}" \
8665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8666 installcheck) \
8667 || exit 1
8670 .PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
8671 maybe-mostlyclean-gzip:
8673 mostlyclean-gzip:
8674 @[ -f ./gzip/Makefile ] || exit 0; \
8675 r=`${PWD_COMMAND}`; export r; \
8676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8677 $(SET_LIB_PATH) \
8678 for flag in $(EXTRA_HOST_FLAGS); do \
8679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8680 done; \
8681 echo "Doing mostlyclean in gzip" ; \
8682 (cd gzip && \
8683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8685 "RANLIB=$${RANLIB}" \
8686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8687 mostlyclean) \
8688 || exit 1
8691 .PHONY: maybe-clean-gzip clean-gzip
8692 maybe-clean-gzip:
8694 clean-gzip:
8695 @[ -f ./gzip/Makefile ] || exit 0; \
8696 r=`${PWD_COMMAND}`; export r; \
8697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8698 $(SET_LIB_PATH) \
8699 for flag in $(EXTRA_HOST_FLAGS); do \
8700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8701 done; \
8702 echo "Doing clean in gzip" ; \
8703 (cd gzip && \
8704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8706 "RANLIB=$${RANLIB}" \
8707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8708 clean) \
8709 || exit 1
8712 .PHONY: maybe-distclean-gzip distclean-gzip
8713 maybe-distclean-gzip:
8715 distclean-gzip:
8716 @[ -f ./gzip/Makefile ] || exit 0; \
8717 r=`${PWD_COMMAND}`; export r; \
8718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8719 $(SET_LIB_PATH) \
8720 for flag in $(EXTRA_HOST_FLAGS); do \
8721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8722 done; \
8723 echo "Doing distclean in gzip" ; \
8724 (cd gzip && \
8725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8727 "RANLIB=$${RANLIB}" \
8728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8729 distclean) \
8730 || exit 1
8733 .PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
8734 maybe-maintainer-clean-gzip:
8736 maintainer-clean-gzip:
8737 @[ -f ./gzip/Makefile ] || exit 0; \
8738 r=`${PWD_COMMAND}`; export r; \
8739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8740 $(SET_LIB_PATH) \
8741 for flag in $(EXTRA_HOST_FLAGS); do \
8742 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8743 done; \
8744 echo "Doing maintainer-clean in gzip" ; \
8745 (cd gzip && \
8746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8748 "RANLIB=$${RANLIB}" \
8749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8750 maintainer-clean) \
8751 || exit 1
8755 .PHONY: configure-hello maybe-configure-hello
8756 maybe-configure-hello:
8757 configure-hello:
8758 @test ! -f hello/Makefile || exit 0; \
8759 [ -d hello ] || mkdir hello; \
8760 r=`${PWD_COMMAND}`; export r; \
8761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8762 CC="$(CC)"; export CC; \
8763 CFLAGS="$(CFLAGS)"; export CFLAGS; \
8764 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
8765 CXX="$(CXX)"; export CXX; \
8766 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
8767 AR="$(AR)"; export AR; \
8768 AS="$(AS)"; export AS; \
8769 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
8770 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
8771 LD="$(LD)"; export LD; \
8772 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
8773 NM="$(NM)"; export NM; \
8774 RANLIB="$(RANLIB)"; export RANLIB; \
8775 WINDRES="$(WINDRES)"; export WINDRES; \
8776 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
8777 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
8778 echo Configuring in hello; \
8779 cd hello || exit 1; \
8780 case $(srcdir) in \
8781 \.) \
8782 srcdiroption="--srcdir=."; \
8783 libsrcdir=".";; \
8784 /* | [A-Za-z]:[\\/]*) \
8785 srcdiroption="--srcdir=$(srcdir)/hello"; \
8786 libsrcdir="$$s/hello";; \
8787 *) \
8788 srcdiroption="--srcdir=../$(srcdir)/hello"; \
8789 libsrcdir="$$s/hello";; \
8790 esac; \
8791 $(SHELL) $${libsrcdir}/configure \
8792 $(HOST_CONFIGARGS) $${srcdiroption} \
8793 || exit 1
8795 .PHONY: all-hello maybe-all-hello
8796 maybe-all-hello:
8797 all-hello: configure-hello
8798 @r=`${PWD_COMMAND}`; export r; \
8799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8800 $(SET_LIB_PATH) \
8801 (cd hello && $(MAKE) $(FLAGS_TO_PASS) all)
8803 .PHONY: check-hello maybe-check-hello
8804 maybe-check-hello:
8806 check-hello:
8807 @r=`${PWD_COMMAND}`; export r; \
8808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8809 $(SET_LIB_PATH) \
8810 (cd hello && $(MAKE) $(FLAGS_TO_PASS) check)
8813 .PHONY: install-hello maybe-install-hello
8814 maybe-install-hello:
8816 install-hello: installdirs
8817 @r=`${PWD_COMMAND}`; export r; \
8818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8819 $(SET_LIB_PATH) \
8820 (cd hello && $(MAKE) $(FLAGS_TO_PASS) install)
8823 # Other targets (info, dvi, etc.)
8825 .PHONY: maybe-info-hello info-hello
8826 maybe-info-hello:
8828 info-hello: \
8829 configure-hello
8830 @[ -f ./hello/Makefile ] || exit 0; \
8831 r=`${PWD_COMMAND}`; export r; \
8832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8833 $(SET_LIB_PATH) \
8834 for flag in $(EXTRA_HOST_FLAGS); do \
8835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8836 done; \
8837 echo "Doing info in hello" ; \
8838 (cd hello && \
8839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8841 "RANLIB=$${RANLIB}" \
8842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8843 info) \
8844 || exit 1
8847 .PHONY: maybe-dvi-hello dvi-hello
8848 maybe-dvi-hello:
8850 dvi-hello: \
8851 configure-hello
8852 @[ -f ./hello/Makefile ] || exit 0; \
8853 r=`${PWD_COMMAND}`; export r; \
8854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8855 $(SET_LIB_PATH) \
8856 for flag in $(EXTRA_HOST_FLAGS); do \
8857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8858 done; \
8859 echo "Doing dvi in hello" ; \
8860 (cd hello && \
8861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8863 "RANLIB=$${RANLIB}" \
8864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8865 dvi) \
8866 || exit 1
8869 .PHONY: maybe-TAGS-hello TAGS-hello
8870 maybe-TAGS-hello:
8872 TAGS-hello: \
8873 configure-hello
8874 @[ -f ./hello/Makefile ] || exit 0; \
8875 r=`${PWD_COMMAND}`; export r; \
8876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8877 $(SET_LIB_PATH) \
8878 for flag in $(EXTRA_HOST_FLAGS); do \
8879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8880 done; \
8881 echo "Doing TAGS in hello" ; \
8882 (cd hello && \
8883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8885 "RANLIB=$${RANLIB}" \
8886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8887 TAGS) \
8888 || exit 1
8891 .PHONY: maybe-install-info-hello install-info-hello
8892 maybe-install-info-hello:
8894 install-info-hello: \
8895 configure-hello \
8896 info-hello
8897 @[ -f ./hello/Makefile ] || exit 0; \
8898 r=`${PWD_COMMAND}`; export r; \
8899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8900 $(SET_LIB_PATH) \
8901 for flag in $(EXTRA_HOST_FLAGS); do \
8902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8903 done; \
8904 echo "Doing install-info in hello" ; \
8905 (cd hello && \
8906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8908 "RANLIB=$${RANLIB}" \
8909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8910 install-info) \
8911 || exit 1
8914 .PHONY: maybe-installcheck-hello installcheck-hello
8915 maybe-installcheck-hello:
8917 installcheck-hello: \
8918 configure-hello
8919 @[ -f ./hello/Makefile ] || exit 0; \
8920 r=`${PWD_COMMAND}`; export r; \
8921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8922 $(SET_LIB_PATH) \
8923 for flag in $(EXTRA_HOST_FLAGS); do \
8924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8925 done; \
8926 echo "Doing installcheck in hello" ; \
8927 (cd hello && \
8928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8930 "RANLIB=$${RANLIB}" \
8931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8932 installcheck) \
8933 || exit 1
8936 .PHONY: maybe-mostlyclean-hello mostlyclean-hello
8937 maybe-mostlyclean-hello:
8939 mostlyclean-hello:
8940 @[ -f ./hello/Makefile ] || exit 0; \
8941 r=`${PWD_COMMAND}`; export r; \
8942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8943 $(SET_LIB_PATH) \
8944 for flag in $(EXTRA_HOST_FLAGS); do \
8945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8946 done; \
8947 echo "Doing mostlyclean in hello" ; \
8948 (cd hello && \
8949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8951 "RANLIB=$${RANLIB}" \
8952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8953 mostlyclean) \
8954 || exit 1
8957 .PHONY: maybe-clean-hello clean-hello
8958 maybe-clean-hello:
8960 clean-hello:
8961 @[ -f ./hello/Makefile ] || exit 0; \
8962 r=`${PWD_COMMAND}`; export r; \
8963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8964 $(SET_LIB_PATH) \
8965 for flag in $(EXTRA_HOST_FLAGS); do \
8966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8967 done; \
8968 echo "Doing clean in hello" ; \
8969 (cd hello && \
8970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8972 "RANLIB=$${RANLIB}" \
8973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8974 clean) \
8975 || exit 1
8978 .PHONY: maybe-distclean-hello distclean-hello
8979 maybe-distclean-hello:
8981 distclean-hello:
8982 @[ -f ./hello/Makefile ] || exit 0; \
8983 r=`${PWD_COMMAND}`; export r; \
8984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8985 $(SET_LIB_PATH) \
8986 for flag in $(EXTRA_HOST_FLAGS); do \
8987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8988 done; \
8989 echo "Doing distclean in hello" ; \
8990 (cd hello && \
8991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8993 "RANLIB=$${RANLIB}" \
8994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8995 distclean) \
8996 || exit 1
8999 .PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
9000 maybe-maintainer-clean-hello:
9002 maintainer-clean-hello:
9003 @[ -f ./hello/Makefile ] || exit 0; \
9004 r=`${PWD_COMMAND}`; export r; \
9005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9006 $(SET_LIB_PATH) \
9007 for flag in $(EXTRA_HOST_FLAGS); do \
9008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9009 done; \
9010 echo "Doing maintainer-clean in hello" ; \
9011 (cd hello && \
9012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9014 "RANLIB=$${RANLIB}" \
9015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9016 maintainer-clean) \
9017 || exit 1
9021 .PHONY: configure-indent maybe-configure-indent
9022 maybe-configure-indent:
9023 configure-indent:
9024 @test ! -f indent/Makefile || exit 0; \
9025 [ -d indent ] || mkdir indent; \
9026 r=`${PWD_COMMAND}`; export r; \
9027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9028 CC="$(CC)"; export CC; \
9029 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9030 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9031 CXX="$(CXX)"; export CXX; \
9032 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9033 AR="$(AR)"; export AR; \
9034 AS="$(AS)"; export AS; \
9035 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9036 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9037 LD="$(LD)"; export LD; \
9038 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
9039 NM="$(NM)"; export NM; \
9040 RANLIB="$(RANLIB)"; export RANLIB; \
9041 WINDRES="$(WINDRES)"; export WINDRES; \
9042 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9043 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9044 echo Configuring in indent; \
9045 cd indent || exit 1; \
9046 case $(srcdir) in \
9047 \.) \
9048 srcdiroption="--srcdir=."; \
9049 libsrcdir=".";; \
9050 /* | [A-Za-z]:[\\/]*) \
9051 srcdiroption="--srcdir=$(srcdir)/indent"; \
9052 libsrcdir="$$s/indent";; \
9053 *) \
9054 srcdiroption="--srcdir=../$(srcdir)/indent"; \
9055 libsrcdir="$$s/indent";; \
9056 esac; \
9057 $(SHELL) $${libsrcdir}/configure \
9058 $(HOST_CONFIGARGS) $${srcdiroption} \
9059 || exit 1
9061 .PHONY: all-indent maybe-all-indent
9062 maybe-all-indent:
9063 all-indent: configure-indent
9064 @r=`${PWD_COMMAND}`; export r; \
9065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9066 $(SET_LIB_PATH) \
9067 (cd indent && $(MAKE) $(FLAGS_TO_PASS) all)
9069 .PHONY: check-indent maybe-check-indent
9070 maybe-check-indent:
9072 check-indent:
9073 @r=`${PWD_COMMAND}`; export r; \
9074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9075 $(SET_LIB_PATH) \
9076 (cd indent && $(MAKE) $(FLAGS_TO_PASS) check)
9079 .PHONY: install-indent maybe-install-indent
9080 maybe-install-indent:
9082 install-indent: installdirs
9083 @r=`${PWD_COMMAND}`; export r; \
9084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9085 $(SET_LIB_PATH) \
9086 (cd indent && $(MAKE) $(FLAGS_TO_PASS) install)
9089 # Other targets (info, dvi, etc.)
9091 .PHONY: maybe-info-indent info-indent
9092 maybe-info-indent:
9094 info-indent: \
9095 configure-indent
9096 @[ -f ./indent/Makefile ] || exit 0; \
9097 r=`${PWD_COMMAND}`; export r; \
9098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9099 $(SET_LIB_PATH) \
9100 for flag in $(EXTRA_HOST_FLAGS); do \
9101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9102 done; \
9103 echo "Doing info in indent" ; \
9104 (cd indent && \
9105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9107 "RANLIB=$${RANLIB}" \
9108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9109 info) \
9110 || exit 1
9113 .PHONY: maybe-dvi-indent dvi-indent
9114 maybe-dvi-indent:
9116 dvi-indent: \
9117 configure-indent
9118 @[ -f ./indent/Makefile ] || exit 0; \
9119 r=`${PWD_COMMAND}`; export r; \
9120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9121 $(SET_LIB_PATH) \
9122 for flag in $(EXTRA_HOST_FLAGS); do \
9123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9124 done; \
9125 echo "Doing dvi in indent" ; \
9126 (cd indent && \
9127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9129 "RANLIB=$${RANLIB}" \
9130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9131 dvi) \
9132 || exit 1
9135 .PHONY: maybe-TAGS-indent TAGS-indent
9136 maybe-TAGS-indent:
9138 TAGS-indent: \
9139 configure-indent
9140 @[ -f ./indent/Makefile ] || exit 0; \
9141 r=`${PWD_COMMAND}`; export r; \
9142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9143 $(SET_LIB_PATH) \
9144 for flag in $(EXTRA_HOST_FLAGS); do \
9145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9146 done; \
9147 echo "Doing TAGS in indent" ; \
9148 (cd indent && \
9149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9151 "RANLIB=$${RANLIB}" \
9152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9153 TAGS) \
9154 || exit 1
9157 .PHONY: maybe-install-info-indent install-info-indent
9158 maybe-install-info-indent:
9160 install-info-indent: \
9161 configure-indent \
9162 info-indent
9163 @[ -f ./indent/Makefile ] || exit 0; \
9164 r=`${PWD_COMMAND}`; export r; \
9165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9166 $(SET_LIB_PATH) \
9167 for flag in $(EXTRA_HOST_FLAGS); do \
9168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9169 done; \
9170 echo "Doing install-info in indent" ; \
9171 (cd indent && \
9172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9174 "RANLIB=$${RANLIB}" \
9175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9176 install-info) \
9177 || exit 1
9180 .PHONY: maybe-installcheck-indent installcheck-indent
9181 maybe-installcheck-indent:
9183 installcheck-indent: \
9184 configure-indent
9185 @[ -f ./indent/Makefile ] || exit 0; \
9186 r=`${PWD_COMMAND}`; export r; \
9187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9188 $(SET_LIB_PATH) \
9189 for flag in $(EXTRA_HOST_FLAGS); do \
9190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9191 done; \
9192 echo "Doing installcheck in indent" ; \
9193 (cd indent && \
9194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9196 "RANLIB=$${RANLIB}" \
9197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9198 installcheck) \
9199 || exit 1
9202 .PHONY: maybe-mostlyclean-indent mostlyclean-indent
9203 maybe-mostlyclean-indent:
9205 mostlyclean-indent:
9206 @[ -f ./indent/Makefile ] || exit 0; \
9207 r=`${PWD_COMMAND}`; export r; \
9208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9209 $(SET_LIB_PATH) \
9210 for flag in $(EXTRA_HOST_FLAGS); do \
9211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9212 done; \
9213 echo "Doing mostlyclean in indent" ; \
9214 (cd indent && \
9215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9217 "RANLIB=$${RANLIB}" \
9218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9219 mostlyclean) \
9220 || exit 1
9223 .PHONY: maybe-clean-indent clean-indent
9224 maybe-clean-indent:
9226 clean-indent:
9227 @[ -f ./indent/Makefile ] || exit 0; \
9228 r=`${PWD_COMMAND}`; export r; \
9229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9230 $(SET_LIB_PATH) \
9231 for flag in $(EXTRA_HOST_FLAGS); do \
9232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9233 done; \
9234 echo "Doing clean in indent" ; \
9235 (cd indent && \
9236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9238 "RANLIB=$${RANLIB}" \
9239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9240 clean) \
9241 || exit 1
9244 .PHONY: maybe-distclean-indent distclean-indent
9245 maybe-distclean-indent:
9247 distclean-indent:
9248 @[ -f ./indent/Makefile ] || exit 0; \
9249 r=`${PWD_COMMAND}`; export r; \
9250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9251 $(SET_LIB_PATH) \
9252 for flag in $(EXTRA_HOST_FLAGS); do \
9253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9254 done; \
9255 echo "Doing distclean in indent" ; \
9256 (cd indent && \
9257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9259 "RANLIB=$${RANLIB}" \
9260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9261 distclean) \
9262 || exit 1
9265 .PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
9266 maybe-maintainer-clean-indent:
9268 maintainer-clean-indent:
9269 @[ -f ./indent/Makefile ] || exit 0; \
9270 r=`${PWD_COMMAND}`; export r; \
9271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9272 $(SET_LIB_PATH) \
9273 for flag in $(EXTRA_HOST_FLAGS); do \
9274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9275 done; \
9276 echo "Doing maintainer-clean in indent" ; \
9277 (cd indent && \
9278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9280 "RANLIB=$${RANLIB}" \
9281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9282 maintainer-clean) \
9283 || exit 1
9287 .PHONY: configure-intl maybe-configure-intl
9288 maybe-configure-intl:
9289 configure-intl:
9290 @test ! -f intl/Makefile || exit 0; \
9291 [ -d intl ] || mkdir intl; \
9292 r=`${PWD_COMMAND}`; export r; \
9293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9294 CC="$(CC)"; export CC; \
9295 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9296 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9297 CXX="$(CXX)"; export CXX; \
9298 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9299 AR="$(AR)"; export AR; \
9300 AS="$(AS)"; export AS; \
9301 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9302 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9303 LD="$(LD)"; export LD; \
9304 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
9305 NM="$(NM)"; export NM; \
9306 RANLIB="$(RANLIB)"; export RANLIB; \
9307 WINDRES="$(WINDRES)"; export WINDRES; \
9308 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9309 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9310 echo Configuring in intl; \
9311 cd intl || exit 1; \
9312 case $(srcdir) in \
9313 \.) \
9314 srcdiroption="--srcdir=."; \
9315 libsrcdir=".";; \
9316 /* | [A-Za-z]:[\\/]*) \
9317 srcdiroption="--srcdir=$(srcdir)/intl"; \
9318 libsrcdir="$$s/intl";; \
9319 *) \
9320 srcdiroption="--srcdir=../$(srcdir)/intl"; \
9321 libsrcdir="$$s/intl";; \
9322 esac; \
9323 $(SHELL) $${libsrcdir}/configure \
9324 $(HOST_CONFIGARGS) $${srcdiroption} \
9325 || exit 1
9327 .PHONY: all-intl maybe-all-intl
9328 maybe-all-intl:
9329 all-intl: configure-intl
9330 @r=`${PWD_COMMAND}`; export r; \
9331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9332 $(SET_LIB_PATH) \
9333 (cd intl && $(MAKE) $(FLAGS_TO_PASS) all)
9335 .PHONY: check-intl maybe-check-intl
9336 maybe-check-intl:
9338 check-intl:
9339 @r=`${PWD_COMMAND}`; export r; \
9340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9341 $(SET_LIB_PATH) \
9342 (cd intl && $(MAKE) $(FLAGS_TO_PASS) check)
9345 .PHONY: install-intl maybe-install-intl
9346 maybe-install-intl:
9348 install-intl: installdirs
9349 @r=`${PWD_COMMAND}`; export r; \
9350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9351 $(SET_LIB_PATH) \
9352 (cd intl && $(MAKE) $(FLAGS_TO_PASS) install)
9355 # Other targets (info, dvi, etc.)
9357 .PHONY: maybe-info-intl info-intl
9358 maybe-info-intl:
9360 info-intl: \
9361 configure-intl
9362 @[ -f ./intl/Makefile ] || exit 0; \
9363 r=`${PWD_COMMAND}`; export r; \
9364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9365 $(SET_LIB_PATH) \
9366 for flag in $(EXTRA_HOST_FLAGS); do \
9367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9368 done; \
9369 echo "Doing info in intl" ; \
9370 (cd intl && \
9371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9373 "RANLIB=$${RANLIB}" \
9374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9375 info) \
9376 || exit 1
9379 .PHONY: maybe-dvi-intl dvi-intl
9380 maybe-dvi-intl:
9382 dvi-intl: \
9383 configure-intl
9384 @[ -f ./intl/Makefile ] || exit 0; \
9385 r=`${PWD_COMMAND}`; export r; \
9386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9387 $(SET_LIB_PATH) \
9388 for flag in $(EXTRA_HOST_FLAGS); do \
9389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9390 done; \
9391 echo "Doing dvi in intl" ; \
9392 (cd intl && \
9393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9395 "RANLIB=$${RANLIB}" \
9396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9397 dvi) \
9398 || exit 1
9401 .PHONY: maybe-TAGS-intl TAGS-intl
9402 maybe-TAGS-intl:
9404 TAGS-intl: \
9405 configure-intl
9406 @[ -f ./intl/Makefile ] || exit 0; \
9407 r=`${PWD_COMMAND}`; export r; \
9408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9409 $(SET_LIB_PATH) \
9410 for flag in $(EXTRA_HOST_FLAGS); do \
9411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9412 done; \
9413 echo "Doing TAGS in intl" ; \
9414 (cd intl && \
9415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9417 "RANLIB=$${RANLIB}" \
9418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9419 TAGS) \
9420 || exit 1
9423 .PHONY: maybe-install-info-intl install-info-intl
9424 maybe-install-info-intl:
9426 install-info-intl: \
9427 configure-intl \
9428 info-intl
9429 @[ -f ./intl/Makefile ] || exit 0; \
9430 r=`${PWD_COMMAND}`; export r; \
9431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9432 $(SET_LIB_PATH) \
9433 for flag in $(EXTRA_HOST_FLAGS); do \
9434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9435 done; \
9436 echo "Doing install-info in intl" ; \
9437 (cd intl && \
9438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9440 "RANLIB=$${RANLIB}" \
9441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9442 install-info) \
9443 || exit 1
9446 .PHONY: maybe-installcheck-intl installcheck-intl
9447 maybe-installcheck-intl:
9449 installcheck-intl: \
9450 configure-intl
9451 @[ -f ./intl/Makefile ] || exit 0; \
9452 r=`${PWD_COMMAND}`; export r; \
9453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9454 $(SET_LIB_PATH) \
9455 for flag in $(EXTRA_HOST_FLAGS); do \
9456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9457 done; \
9458 echo "Doing installcheck in intl" ; \
9459 (cd intl && \
9460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9462 "RANLIB=$${RANLIB}" \
9463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9464 installcheck) \
9465 || exit 1
9468 .PHONY: maybe-mostlyclean-intl mostlyclean-intl
9469 maybe-mostlyclean-intl:
9471 mostlyclean-intl:
9472 @[ -f ./intl/Makefile ] || exit 0; \
9473 r=`${PWD_COMMAND}`; export r; \
9474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9475 $(SET_LIB_PATH) \
9476 for flag in $(EXTRA_HOST_FLAGS); do \
9477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9478 done; \
9479 echo "Doing mostlyclean in intl" ; \
9480 (cd intl && \
9481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9483 "RANLIB=$${RANLIB}" \
9484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9485 mostlyclean) \
9486 || exit 1
9489 .PHONY: maybe-clean-intl clean-intl
9490 maybe-clean-intl:
9492 clean-intl:
9493 @[ -f ./intl/Makefile ] || exit 0; \
9494 r=`${PWD_COMMAND}`; export r; \
9495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9496 $(SET_LIB_PATH) \
9497 for flag in $(EXTRA_HOST_FLAGS); do \
9498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9499 done; \
9500 echo "Doing clean in intl" ; \
9501 (cd intl && \
9502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9504 "RANLIB=$${RANLIB}" \
9505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9506 clean) \
9507 || exit 1
9510 .PHONY: maybe-distclean-intl distclean-intl
9511 maybe-distclean-intl:
9513 distclean-intl:
9514 @[ -f ./intl/Makefile ] || exit 0; \
9515 r=`${PWD_COMMAND}`; export r; \
9516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9517 $(SET_LIB_PATH) \
9518 for flag in $(EXTRA_HOST_FLAGS); do \
9519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9520 done; \
9521 echo "Doing distclean in intl" ; \
9522 (cd intl && \
9523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9525 "RANLIB=$${RANLIB}" \
9526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9527 distclean) \
9528 || exit 1
9531 .PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
9532 maybe-maintainer-clean-intl:
9534 maintainer-clean-intl:
9535 @[ -f ./intl/Makefile ] || exit 0; \
9536 r=`${PWD_COMMAND}`; export r; \
9537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9538 $(SET_LIB_PATH) \
9539 for flag in $(EXTRA_HOST_FLAGS); do \
9540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9541 done; \
9542 echo "Doing maintainer-clean in intl" ; \
9543 (cd intl && \
9544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9546 "RANLIB=$${RANLIB}" \
9547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9548 maintainer-clean) \
9549 || exit 1
9553 .PHONY: configure-tcl maybe-configure-tcl
9554 maybe-configure-tcl:
9555 configure-tcl:
9556 @test ! -f tcl/Makefile || exit 0; \
9557 [ -d tcl ] || mkdir tcl; \
9558 r=`${PWD_COMMAND}`; export r; \
9559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9560 CC="$(CC)"; export CC; \
9561 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9562 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9563 CXX="$(CXX)"; export CXX; \
9564 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9565 AR="$(AR)"; export AR; \
9566 AS="$(AS)"; export AS; \
9567 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9568 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9569 LD="$(LD)"; export LD; \
9570 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
9571 NM="$(NM)"; export NM; \
9572 RANLIB="$(RANLIB)"; export RANLIB; \
9573 WINDRES="$(WINDRES)"; export WINDRES; \
9574 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9575 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9576 echo Configuring in tcl; \
9577 cd tcl || exit 1; \
9578 case $(srcdir) in \
9579 \.) \
9580 srcdiroption="--srcdir=."; \
9581 libsrcdir=".";; \
9582 /* | [A-Za-z]:[\\/]*) \
9583 srcdiroption="--srcdir=$(srcdir)/tcl"; \
9584 libsrcdir="$$s/tcl";; \
9585 *) \
9586 srcdiroption="--srcdir=../$(srcdir)/tcl"; \
9587 libsrcdir="$$s/tcl";; \
9588 esac; \
9589 $(SHELL) $${libsrcdir}/configure \
9590 $(HOST_CONFIGARGS) $${srcdiroption} \
9591 || exit 1
9593 .PHONY: all-tcl maybe-all-tcl
9594 maybe-all-tcl:
9595 all-tcl: configure-tcl
9596 @r=`${PWD_COMMAND}`; export r; \
9597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9598 $(SET_LIB_PATH) \
9599 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all)
9601 .PHONY: check-tcl maybe-check-tcl
9602 maybe-check-tcl:
9604 check-tcl:
9605 @r=`${PWD_COMMAND}`; export r; \
9606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9607 $(SET_LIB_PATH) \
9608 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check)
9611 .PHONY: install-tcl maybe-install-tcl
9612 maybe-install-tcl:
9614 install-tcl: installdirs
9615 @r=`${PWD_COMMAND}`; export r; \
9616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9617 $(SET_LIB_PATH) \
9618 (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install)
9621 # Other targets (info, dvi, etc.)
9623 .PHONY: maybe-info-tcl info-tcl
9624 maybe-info-tcl:
9626 info-tcl: \
9627 configure-tcl
9628 @[ -f ./tcl/Makefile ] || exit 0; \
9629 r=`${PWD_COMMAND}`; export r; \
9630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9631 $(SET_LIB_PATH) \
9632 for flag in $(EXTRA_HOST_FLAGS); do \
9633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9634 done; \
9635 echo "Doing info in tcl" ; \
9636 (cd tcl && \
9637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9639 "RANLIB=$${RANLIB}" \
9640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9641 info) \
9642 || exit 1
9645 .PHONY: maybe-dvi-tcl dvi-tcl
9646 maybe-dvi-tcl:
9648 dvi-tcl: \
9649 configure-tcl
9650 @[ -f ./tcl/Makefile ] || exit 0; \
9651 r=`${PWD_COMMAND}`; export r; \
9652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9653 $(SET_LIB_PATH) \
9654 for flag in $(EXTRA_HOST_FLAGS); do \
9655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9656 done; \
9657 echo "Doing dvi in tcl" ; \
9658 (cd tcl && \
9659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9661 "RANLIB=$${RANLIB}" \
9662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9663 dvi) \
9664 || exit 1
9667 .PHONY: maybe-TAGS-tcl TAGS-tcl
9668 maybe-TAGS-tcl:
9670 TAGS-tcl: \
9671 configure-tcl
9672 @[ -f ./tcl/Makefile ] || exit 0; \
9673 r=`${PWD_COMMAND}`; export r; \
9674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9675 $(SET_LIB_PATH) \
9676 for flag in $(EXTRA_HOST_FLAGS); do \
9677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9678 done; \
9679 echo "Doing TAGS in tcl" ; \
9680 (cd tcl && \
9681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9683 "RANLIB=$${RANLIB}" \
9684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9685 TAGS) \
9686 || exit 1
9689 .PHONY: maybe-install-info-tcl install-info-tcl
9690 maybe-install-info-tcl:
9692 install-info-tcl: \
9693 configure-tcl \
9694 info-tcl
9695 @[ -f ./tcl/Makefile ] || exit 0; \
9696 r=`${PWD_COMMAND}`; export r; \
9697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9698 $(SET_LIB_PATH) \
9699 for flag in $(EXTRA_HOST_FLAGS); do \
9700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9701 done; \
9702 echo "Doing install-info in tcl" ; \
9703 (cd tcl && \
9704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9706 "RANLIB=$${RANLIB}" \
9707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9708 install-info) \
9709 || exit 1
9712 .PHONY: maybe-installcheck-tcl installcheck-tcl
9713 maybe-installcheck-tcl:
9715 installcheck-tcl: \
9716 configure-tcl
9717 @[ -f ./tcl/Makefile ] || exit 0; \
9718 r=`${PWD_COMMAND}`; export r; \
9719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9720 $(SET_LIB_PATH) \
9721 for flag in $(EXTRA_HOST_FLAGS); do \
9722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9723 done; \
9724 echo "Doing installcheck in tcl" ; \
9725 (cd tcl && \
9726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9728 "RANLIB=$${RANLIB}" \
9729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9730 installcheck) \
9731 || exit 1
9734 .PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
9735 maybe-mostlyclean-tcl:
9737 # tcl doesn't support mostlyclean.
9738 mostlyclean-tcl:
9741 .PHONY: maybe-clean-tcl clean-tcl
9742 maybe-clean-tcl:
9744 clean-tcl:
9745 @[ -f ./tcl/Makefile ] || exit 0; \
9746 r=`${PWD_COMMAND}`; export r; \
9747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9748 $(SET_LIB_PATH) \
9749 for flag in $(EXTRA_HOST_FLAGS); do \
9750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9751 done; \
9752 echo "Doing clean in tcl" ; \
9753 (cd tcl && \
9754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9756 "RANLIB=$${RANLIB}" \
9757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9758 clean) \
9759 || exit 1
9762 .PHONY: maybe-distclean-tcl distclean-tcl
9763 maybe-distclean-tcl:
9765 distclean-tcl:
9766 @[ -f ./tcl/Makefile ] || exit 0; \
9767 r=`${PWD_COMMAND}`; export r; \
9768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9769 $(SET_LIB_PATH) \
9770 for flag in $(EXTRA_HOST_FLAGS); do \
9771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9772 done; \
9773 echo "Doing distclean in tcl" ; \
9774 (cd tcl && \
9775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9777 "RANLIB=$${RANLIB}" \
9778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9779 distclean) \
9780 || exit 1
9783 .PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
9784 maybe-maintainer-clean-tcl:
9786 maintainer-clean-tcl:
9787 @[ -f ./tcl/Makefile ] || exit 0; \
9788 r=`${PWD_COMMAND}`; export r; \
9789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9790 $(SET_LIB_PATH) \
9791 for flag in $(EXTRA_HOST_FLAGS); do \
9792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9793 done; \
9794 echo "Doing maintainer-clean in tcl" ; \
9795 (cd tcl && \
9796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9798 "RANLIB=$${RANLIB}" \
9799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9800 maintainer-clean) \
9801 || exit 1
9805 .PHONY: configure-itcl maybe-configure-itcl
9806 maybe-configure-itcl:
9807 configure-itcl:
9808 @test ! -f itcl/Makefile || exit 0; \
9809 [ -d itcl ] || mkdir itcl; \
9810 r=`${PWD_COMMAND}`; export r; \
9811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9812 CC="$(CC)"; export CC; \
9813 CFLAGS="$(CFLAGS)"; export CFLAGS; \
9814 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
9815 CXX="$(CXX)"; export CXX; \
9816 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
9817 AR="$(AR)"; export AR; \
9818 AS="$(AS)"; export AS; \
9819 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
9820 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
9821 LD="$(LD)"; export LD; \
9822 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
9823 NM="$(NM)"; export NM; \
9824 RANLIB="$(RANLIB)"; export RANLIB; \
9825 WINDRES="$(WINDRES)"; export WINDRES; \
9826 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
9827 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
9828 echo Configuring in itcl; \
9829 cd itcl || exit 1; \
9830 case $(srcdir) in \
9831 \.) \
9832 srcdiroption="--srcdir=."; \
9833 libsrcdir=".";; \
9834 /* | [A-Za-z]:[\\/]*) \
9835 srcdiroption="--srcdir=$(srcdir)/itcl"; \
9836 libsrcdir="$$s/itcl";; \
9837 *) \
9838 srcdiroption="--srcdir=../$(srcdir)/itcl"; \
9839 libsrcdir="$$s/itcl";; \
9840 esac; \
9841 $(SHELL) $${libsrcdir}/configure \
9842 $(HOST_CONFIGARGS) $${srcdiroption} \
9843 || exit 1
9845 .PHONY: all-itcl maybe-all-itcl
9846 maybe-all-itcl:
9847 all-itcl: configure-itcl
9848 @r=`${PWD_COMMAND}`; export r; \
9849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9850 $(SET_LIB_PATH) \
9851 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all)
9853 .PHONY: check-itcl maybe-check-itcl
9854 maybe-check-itcl:
9856 check-itcl:
9857 @r=`${PWD_COMMAND}`; export r; \
9858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9859 $(SET_LIB_PATH) \
9860 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check)
9863 .PHONY: install-itcl maybe-install-itcl
9864 maybe-install-itcl:
9866 install-itcl: installdirs
9867 @r=`${PWD_COMMAND}`; export r; \
9868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9869 $(SET_LIB_PATH) \
9870 (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install)
9873 # Other targets (info, dvi, etc.)
9875 .PHONY: maybe-info-itcl info-itcl
9876 maybe-info-itcl:
9878 info-itcl: \
9879 configure-itcl
9880 @[ -f ./itcl/Makefile ] || exit 0; \
9881 r=`${PWD_COMMAND}`; export r; \
9882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9883 $(SET_LIB_PATH) \
9884 for flag in $(EXTRA_HOST_FLAGS); do \
9885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9886 done; \
9887 echo "Doing info in itcl" ; \
9888 (cd itcl && \
9889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9891 "RANLIB=$${RANLIB}" \
9892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9893 info) \
9894 || exit 1
9897 .PHONY: maybe-dvi-itcl dvi-itcl
9898 maybe-dvi-itcl:
9900 dvi-itcl: \
9901 configure-itcl
9902 @[ -f ./itcl/Makefile ] || exit 0; \
9903 r=`${PWD_COMMAND}`; export r; \
9904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9905 $(SET_LIB_PATH) \
9906 for flag in $(EXTRA_HOST_FLAGS); do \
9907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9908 done; \
9909 echo "Doing dvi in itcl" ; \
9910 (cd itcl && \
9911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9913 "RANLIB=$${RANLIB}" \
9914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9915 dvi) \
9916 || exit 1
9919 .PHONY: maybe-TAGS-itcl TAGS-itcl
9920 maybe-TAGS-itcl:
9922 TAGS-itcl: \
9923 configure-itcl
9924 @[ -f ./itcl/Makefile ] || exit 0; \
9925 r=`${PWD_COMMAND}`; export r; \
9926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9927 $(SET_LIB_PATH) \
9928 for flag in $(EXTRA_HOST_FLAGS); do \
9929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9930 done; \
9931 echo "Doing TAGS in itcl" ; \
9932 (cd itcl && \
9933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9935 "RANLIB=$${RANLIB}" \
9936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9937 TAGS) \
9938 || exit 1
9941 .PHONY: maybe-install-info-itcl install-info-itcl
9942 maybe-install-info-itcl:
9944 install-info-itcl: \
9945 configure-itcl \
9946 info-itcl
9947 @[ -f ./itcl/Makefile ] || exit 0; \
9948 r=`${PWD_COMMAND}`; export r; \
9949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9950 $(SET_LIB_PATH) \
9951 for flag in $(EXTRA_HOST_FLAGS); do \
9952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9953 done; \
9954 echo "Doing install-info in itcl" ; \
9955 (cd itcl && \
9956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9958 "RANLIB=$${RANLIB}" \
9959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9960 install-info) \
9961 || exit 1
9964 .PHONY: maybe-installcheck-itcl installcheck-itcl
9965 maybe-installcheck-itcl:
9967 installcheck-itcl: \
9968 configure-itcl
9969 @[ -f ./itcl/Makefile ] || exit 0; \
9970 r=`${PWD_COMMAND}`; export r; \
9971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9972 $(SET_LIB_PATH) \
9973 for flag in $(EXTRA_HOST_FLAGS); do \
9974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9975 done; \
9976 echo "Doing installcheck in itcl" ; \
9977 (cd itcl && \
9978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9980 "RANLIB=$${RANLIB}" \
9981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9982 installcheck) \
9983 || exit 1
9986 .PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
9987 maybe-mostlyclean-itcl:
9989 mostlyclean-itcl:
9990 @[ -f ./itcl/Makefile ] || exit 0; \
9991 r=`${PWD_COMMAND}`; export r; \
9992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9993 $(SET_LIB_PATH) \
9994 for flag in $(EXTRA_HOST_FLAGS); do \
9995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9996 done; \
9997 echo "Doing mostlyclean in itcl" ; \
9998 (cd itcl && \
9999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10001 "RANLIB=$${RANLIB}" \
10002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10003 mostlyclean) \
10004 || exit 1
10007 .PHONY: maybe-clean-itcl clean-itcl
10008 maybe-clean-itcl:
10010 clean-itcl:
10011 @[ -f ./itcl/Makefile ] || exit 0; \
10012 r=`${PWD_COMMAND}`; export r; \
10013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10014 $(SET_LIB_PATH) \
10015 for flag in $(EXTRA_HOST_FLAGS); do \
10016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10017 done; \
10018 echo "Doing clean in itcl" ; \
10019 (cd itcl && \
10020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10022 "RANLIB=$${RANLIB}" \
10023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10024 clean) \
10025 || exit 1
10028 .PHONY: maybe-distclean-itcl distclean-itcl
10029 maybe-distclean-itcl:
10031 distclean-itcl:
10032 @[ -f ./itcl/Makefile ] || exit 0; \
10033 r=`${PWD_COMMAND}`; export r; \
10034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10035 $(SET_LIB_PATH) \
10036 for flag in $(EXTRA_HOST_FLAGS); do \
10037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10038 done; \
10039 echo "Doing distclean in itcl" ; \
10040 (cd itcl && \
10041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10043 "RANLIB=$${RANLIB}" \
10044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10045 distclean) \
10046 || exit 1
10049 .PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
10050 maybe-maintainer-clean-itcl:
10052 maintainer-clean-itcl:
10053 @[ -f ./itcl/Makefile ] || exit 0; \
10054 r=`${PWD_COMMAND}`; export r; \
10055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10056 $(SET_LIB_PATH) \
10057 for flag in $(EXTRA_HOST_FLAGS); do \
10058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10059 done; \
10060 echo "Doing maintainer-clean in itcl" ; \
10061 (cd itcl && \
10062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10064 "RANLIB=$${RANLIB}" \
10065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10066 maintainer-clean) \
10067 || exit 1
10071 .PHONY: configure-ld maybe-configure-ld
10072 maybe-configure-ld:
10073 configure-ld:
10074 @test ! -f ld/Makefile || exit 0; \
10075 [ -d ld ] || mkdir ld; \
10076 r=`${PWD_COMMAND}`; export r; \
10077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10078 CC="$(CC)"; export CC; \
10079 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10080 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10081 CXX="$(CXX)"; export CXX; \
10082 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10083 AR="$(AR)"; export AR; \
10084 AS="$(AS)"; export AS; \
10085 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10086 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10087 LD="$(LD)"; export LD; \
10088 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
10089 NM="$(NM)"; export NM; \
10090 RANLIB="$(RANLIB)"; export RANLIB; \
10091 WINDRES="$(WINDRES)"; export WINDRES; \
10092 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10093 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10094 echo Configuring in ld; \
10095 cd ld || exit 1; \
10096 case $(srcdir) in \
10097 \.) \
10098 srcdiroption="--srcdir=."; \
10099 libsrcdir=".";; \
10100 /* | [A-Za-z]:[\\/]*) \
10101 srcdiroption="--srcdir=$(srcdir)/ld"; \
10102 libsrcdir="$$s/ld";; \
10103 *) \
10104 srcdiroption="--srcdir=../$(srcdir)/ld"; \
10105 libsrcdir="$$s/ld";; \
10106 esac; \
10107 $(SHELL) $${libsrcdir}/configure \
10108 $(HOST_CONFIGARGS) $${srcdiroption} \
10109 || exit 1
10111 .PHONY: all-ld maybe-all-ld
10112 maybe-all-ld:
10113 all-ld: configure-ld
10114 @r=`${PWD_COMMAND}`; export r; \
10115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10116 $(SET_LIB_PATH) \
10117 (cd ld && $(MAKE) $(FLAGS_TO_PASS) all)
10119 .PHONY: check-ld maybe-check-ld
10120 maybe-check-ld:
10122 check-ld:
10123 @r=`${PWD_COMMAND}`; export r; \
10124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10125 $(SET_LIB_PATH) \
10126 (cd ld && $(MAKE) $(FLAGS_TO_PASS) check)
10129 .PHONY: install-ld maybe-install-ld
10130 maybe-install-ld:
10132 install-ld: installdirs
10133 @r=`${PWD_COMMAND}`; export r; \
10134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10135 $(SET_LIB_PATH) \
10136 (cd ld && $(MAKE) $(FLAGS_TO_PASS) install)
10139 # Other targets (info, dvi, etc.)
10141 .PHONY: maybe-info-ld info-ld
10142 maybe-info-ld:
10144 info-ld: \
10145 configure-ld
10146 @[ -f ./ld/Makefile ] || exit 0; \
10147 r=`${PWD_COMMAND}`; export r; \
10148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10149 $(SET_LIB_PATH) \
10150 for flag in $(EXTRA_HOST_FLAGS); do \
10151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10152 done; \
10153 echo "Doing info in ld" ; \
10154 (cd ld && \
10155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10157 "RANLIB=$${RANLIB}" \
10158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10159 info) \
10160 || exit 1
10163 .PHONY: maybe-dvi-ld dvi-ld
10164 maybe-dvi-ld:
10166 dvi-ld: \
10167 configure-ld
10168 @[ -f ./ld/Makefile ] || exit 0; \
10169 r=`${PWD_COMMAND}`; export r; \
10170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10171 $(SET_LIB_PATH) \
10172 for flag in $(EXTRA_HOST_FLAGS); do \
10173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10174 done; \
10175 echo "Doing dvi in ld" ; \
10176 (cd ld && \
10177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10179 "RANLIB=$${RANLIB}" \
10180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10181 dvi) \
10182 || exit 1
10185 .PHONY: maybe-TAGS-ld TAGS-ld
10186 maybe-TAGS-ld:
10188 TAGS-ld: \
10189 configure-ld
10190 @[ -f ./ld/Makefile ] || exit 0; \
10191 r=`${PWD_COMMAND}`; export r; \
10192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10193 $(SET_LIB_PATH) \
10194 for flag in $(EXTRA_HOST_FLAGS); do \
10195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10196 done; \
10197 echo "Doing TAGS in ld" ; \
10198 (cd ld && \
10199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10201 "RANLIB=$${RANLIB}" \
10202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10203 TAGS) \
10204 || exit 1
10207 .PHONY: maybe-install-info-ld install-info-ld
10208 maybe-install-info-ld:
10210 install-info-ld: \
10211 configure-ld \
10212 info-ld
10213 @[ -f ./ld/Makefile ] || exit 0; \
10214 r=`${PWD_COMMAND}`; export r; \
10215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10216 $(SET_LIB_PATH) \
10217 for flag in $(EXTRA_HOST_FLAGS); do \
10218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10219 done; \
10220 echo "Doing install-info in ld" ; \
10221 (cd ld && \
10222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10224 "RANLIB=$${RANLIB}" \
10225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10226 install-info) \
10227 || exit 1
10230 .PHONY: maybe-installcheck-ld installcheck-ld
10231 maybe-installcheck-ld:
10233 installcheck-ld: \
10234 configure-ld
10235 @[ -f ./ld/Makefile ] || exit 0; \
10236 r=`${PWD_COMMAND}`; export r; \
10237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10238 $(SET_LIB_PATH) \
10239 for flag in $(EXTRA_HOST_FLAGS); do \
10240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10241 done; \
10242 echo "Doing installcheck in ld" ; \
10243 (cd ld && \
10244 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10245 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10246 "RANLIB=$${RANLIB}" \
10247 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10248 installcheck) \
10249 || exit 1
10252 .PHONY: maybe-mostlyclean-ld mostlyclean-ld
10253 maybe-mostlyclean-ld:
10255 mostlyclean-ld:
10256 @[ -f ./ld/Makefile ] || exit 0; \
10257 r=`${PWD_COMMAND}`; export r; \
10258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10259 $(SET_LIB_PATH) \
10260 for flag in $(EXTRA_HOST_FLAGS); do \
10261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10262 done; \
10263 echo "Doing mostlyclean in ld" ; \
10264 (cd ld && \
10265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10267 "RANLIB=$${RANLIB}" \
10268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10269 mostlyclean) \
10270 || exit 1
10273 .PHONY: maybe-clean-ld clean-ld
10274 maybe-clean-ld:
10276 clean-ld:
10277 @[ -f ./ld/Makefile ] || exit 0; \
10278 r=`${PWD_COMMAND}`; export r; \
10279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10280 $(SET_LIB_PATH) \
10281 for flag in $(EXTRA_HOST_FLAGS); do \
10282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10283 done; \
10284 echo "Doing clean in ld" ; \
10285 (cd ld && \
10286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10288 "RANLIB=$${RANLIB}" \
10289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10290 clean) \
10291 || exit 1
10294 .PHONY: maybe-distclean-ld distclean-ld
10295 maybe-distclean-ld:
10297 distclean-ld:
10298 @[ -f ./ld/Makefile ] || exit 0; \
10299 r=`${PWD_COMMAND}`; export r; \
10300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10301 $(SET_LIB_PATH) \
10302 for flag in $(EXTRA_HOST_FLAGS); do \
10303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10304 done; \
10305 echo "Doing distclean in ld" ; \
10306 (cd ld && \
10307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10309 "RANLIB=$${RANLIB}" \
10310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10311 distclean) \
10312 || exit 1
10315 .PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
10316 maybe-maintainer-clean-ld:
10318 maintainer-clean-ld:
10319 @[ -f ./ld/Makefile ] || exit 0; \
10320 r=`${PWD_COMMAND}`; export r; \
10321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10322 $(SET_LIB_PATH) \
10323 for flag in $(EXTRA_HOST_FLAGS); do \
10324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10325 done; \
10326 echo "Doing maintainer-clean in ld" ; \
10327 (cd ld && \
10328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10330 "RANLIB=$${RANLIB}" \
10331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10332 maintainer-clean) \
10333 || exit 1
10337 .PHONY: configure-libgui maybe-configure-libgui
10338 maybe-configure-libgui:
10339 configure-libgui:
10340 @test ! -f libgui/Makefile || exit 0; \
10341 [ -d libgui ] || mkdir libgui; \
10342 r=`${PWD_COMMAND}`; export r; \
10343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10344 CC="$(CC)"; export CC; \
10345 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10346 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10347 CXX="$(CXX)"; export CXX; \
10348 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10349 AR="$(AR)"; export AR; \
10350 AS="$(AS)"; export AS; \
10351 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10352 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10353 LD="$(LD)"; export LD; \
10354 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
10355 NM="$(NM)"; export NM; \
10356 RANLIB="$(RANLIB)"; export RANLIB; \
10357 WINDRES="$(WINDRES)"; export WINDRES; \
10358 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10359 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10360 echo Configuring in libgui; \
10361 cd libgui || exit 1; \
10362 case $(srcdir) in \
10363 \.) \
10364 srcdiroption="--srcdir=."; \
10365 libsrcdir=".";; \
10366 /* | [A-Za-z]:[\\/]*) \
10367 srcdiroption="--srcdir=$(srcdir)/libgui"; \
10368 libsrcdir="$$s/libgui";; \
10369 *) \
10370 srcdiroption="--srcdir=../$(srcdir)/libgui"; \
10371 libsrcdir="$$s/libgui";; \
10372 esac; \
10373 $(SHELL) $${libsrcdir}/configure \
10374 $(HOST_CONFIGARGS) $${srcdiroption} \
10375 || exit 1
10377 .PHONY: all-libgui maybe-all-libgui
10378 maybe-all-libgui:
10379 all-libgui: configure-libgui
10380 @r=`${PWD_COMMAND}`; export r; \
10381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10382 $(SET_LIB_PATH) \
10383 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all)
10385 .PHONY: check-libgui maybe-check-libgui
10386 maybe-check-libgui:
10388 check-libgui:
10389 @r=`${PWD_COMMAND}`; export r; \
10390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10391 $(SET_LIB_PATH) \
10392 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check)
10395 .PHONY: install-libgui maybe-install-libgui
10396 maybe-install-libgui:
10398 install-libgui: installdirs
10399 @r=`${PWD_COMMAND}`; export r; \
10400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10401 $(SET_LIB_PATH) \
10402 (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install)
10405 # Other targets (info, dvi, etc.)
10407 .PHONY: maybe-info-libgui info-libgui
10408 maybe-info-libgui:
10410 info-libgui: \
10411 configure-libgui
10412 @[ -f ./libgui/Makefile ] || exit 0; \
10413 r=`${PWD_COMMAND}`; export r; \
10414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10415 $(SET_LIB_PATH) \
10416 for flag in $(EXTRA_HOST_FLAGS); do \
10417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10418 done; \
10419 echo "Doing info in libgui" ; \
10420 (cd libgui && \
10421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10423 "RANLIB=$${RANLIB}" \
10424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10425 info) \
10426 || exit 1
10429 .PHONY: maybe-dvi-libgui dvi-libgui
10430 maybe-dvi-libgui:
10432 dvi-libgui: \
10433 configure-libgui
10434 @[ -f ./libgui/Makefile ] || exit 0; \
10435 r=`${PWD_COMMAND}`; export r; \
10436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10437 $(SET_LIB_PATH) \
10438 for flag in $(EXTRA_HOST_FLAGS); do \
10439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10440 done; \
10441 echo "Doing dvi in libgui" ; \
10442 (cd libgui && \
10443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10445 "RANLIB=$${RANLIB}" \
10446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10447 dvi) \
10448 || exit 1
10451 .PHONY: maybe-TAGS-libgui TAGS-libgui
10452 maybe-TAGS-libgui:
10454 TAGS-libgui: \
10455 configure-libgui
10456 @[ -f ./libgui/Makefile ] || exit 0; \
10457 r=`${PWD_COMMAND}`; export r; \
10458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10459 $(SET_LIB_PATH) \
10460 for flag in $(EXTRA_HOST_FLAGS); do \
10461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10462 done; \
10463 echo "Doing TAGS in libgui" ; \
10464 (cd libgui && \
10465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10467 "RANLIB=$${RANLIB}" \
10468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10469 TAGS) \
10470 || exit 1
10473 .PHONY: maybe-install-info-libgui install-info-libgui
10474 maybe-install-info-libgui:
10476 install-info-libgui: \
10477 configure-libgui \
10478 info-libgui
10479 @[ -f ./libgui/Makefile ] || exit 0; \
10480 r=`${PWD_COMMAND}`; export r; \
10481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10482 $(SET_LIB_PATH) \
10483 for flag in $(EXTRA_HOST_FLAGS); do \
10484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10485 done; \
10486 echo "Doing install-info in libgui" ; \
10487 (cd libgui && \
10488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10490 "RANLIB=$${RANLIB}" \
10491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10492 install-info) \
10493 || exit 1
10496 .PHONY: maybe-installcheck-libgui installcheck-libgui
10497 maybe-installcheck-libgui:
10499 installcheck-libgui: \
10500 configure-libgui
10501 @[ -f ./libgui/Makefile ] || exit 0; \
10502 r=`${PWD_COMMAND}`; export r; \
10503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10504 $(SET_LIB_PATH) \
10505 for flag in $(EXTRA_HOST_FLAGS); do \
10506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10507 done; \
10508 echo "Doing installcheck in libgui" ; \
10509 (cd libgui && \
10510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10512 "RANLIB=$${RANLIB}" \
10513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10514 installcheck) \
10515 || exit 1
10518 .PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
10519 maybe-mostlyclean-libgui:
10521 mostlyclean-libgui:
10522 @[ -f ./libgui/Makefile ] || exit 0; \
10523 r=`${PWD_COMMAND}`; export r; \
10524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10525 $(SET_LIB_PATH) \
10526 for flag in $(EXTRA_HOST_FLAGS); do \
10527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10528 done; \
10529 echo "Doing mostlyclean in libgui" ; \
10530 (cd libgui && \
10531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10533 "RANLIB=$${RANLIB}" \
10534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10535 mostlyclean) \
10536 || exit 1
10539 .PHONY: maybe-clean-libgui clean-libgui
10540 maybe-clean-libgui:
10542 clean-libgui:
10543 @[ -f ./libgui/Makefile ] || exit 0; \
10544 r=`${PWD_COMMAND}`; export r; \
10545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10546 $(SET_LIB_PATH) \
10547 for flag in $(EXTRA_HOST_FLAGS); do \
10548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10549 done; \
10550 echo "Doing clean in libgui" ; \
10551 (cd libgui && \
10552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10554 "RANLIB=$${RANLIB}" \
10555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10556 clean) \
10557 || exit 1
10560 .PHONY: maybe-distclean-libgui distclean-libgui
10561 maybe-distclean-libgui:
10563 distclean-libgui:
10564 @[ -f ./libgui/Makefile ] || exit 0; \
10565 r=`${PWD_COMMAND}`; export r; \
10566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10567 $(SET_LIB_PATH) \
10568 for flag in $(EXTRA_HOST_FLAGS); do \
10569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10570 done; \
10571 echo "Doing distclean in libgui" ; \
10572 (cd libgui && \
10573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10575 "RANLIB=$${RANLIB}" \
10576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10577 distclean) \
10578 || exit 1
10581 .PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
10582 maybe-maintainer-clean-libgui:
10584 maintainer-clean-libgui:
10585 @[ -f ./libgui/Makefile ] || exit 0; \
10586 r=`${PWD_COMMAND}`; export r; \
10587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10588 $(SET_LIB_PATH) \
10589 for flag in $(EXTRA_HOST_FLAGS); do \
10590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10591 done; \
10592 echo "Doing maintainer-clean in libgui" ; \
10593 (cd libgui && \
10594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10596 "RANLIB=$${RANLIB}" \
10597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10598 maintainer-clean) \
10599 || exit 1
10603 .PHONY: configure-libbanshee maybe-configure-libbanshee
10604 maybe-configure-libbanshee:
10605 configure-libbanshee:
10606 @test ! -f libbanshee/Makefile || exit 0; \
10607 [ -d libbanshee ] || mkdir libbanshee; \
10608 r=`${PWD_COMMAND}`; export r; \
10609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10610 CC="$(CC)"; export CC; \
10611 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10612 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10613 CXX="$(CXX)"; export CXX; \
10614 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10615 AR="$(AR)"; export AR; \
10616 AS="$(AS)"; export AS; \
10617 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10618 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10619 LD="$(LD)"; export LD; \
10620 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
10621 NM="$(NM)"; export NM; \
10622 RANLIB="$(RANLIB)"; export RANLIB; \
10623 WINDRES="$(WINDRES)"; export WINDRES; \
10624 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10625 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10626 echo Configuring in libbanshee; \
10627 cd libbanshee || exit 1; \
10628 case $(srcdir) in \
10629 \.) \
10630 srcdiroption="--srcdir=."; \
10631 libsrcdir=".";; \
10632 /* | [A-Za-z]:[\\/]*) \
10633 srcdiroption="--srcdir=$(srcdir)/libbanshee"; \
10634 libsrcdir="$$s/libbanshee";; \
10635 *) \
10636 srcdiroption="--srcdir=../$(srcdir)/libbanshee"; \
10637 libsrcdir="$$s/libbanshee";; \
10638 esac; \
10639 $(SHELL) $${libsrcdir}/configure \
10640 $(HOST_CONFIGARGS) $${srcdiroption} \
10641 || exit 1
10643 .PHONY: all-libbanshee maybe-all-libbanshee
10644 maybe-all-libbanshee:
10645 all-libbanshee: configure-libbanshee
10646 @r=`${PWD_COMMAND}`; export r; \
10647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10648 $(SET_LIB_PATH) \
10649 (cd libbanshee && $(MAKE) $(FLAGS_TO_PASS) all)
10651 .PHONY: check-libbanshee maybe-check-libbanshee
10652 maybe-check-libbanshee:
10654 check-libbanshee:
10655 @r=`${PWD_COMMAND}`; export r; \
10656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10657 $(SET_LIB_PATH) \
10658 (cd libbanshee && $(MAKE) $(FLAGS_TO_PASS) check)
10661 .PHONY: install-libbanshee maybe-install-libbanshee
10662 maybe-install-libbanshee:
10664 install-libbanshee:
10667 # Other targets (info, dvi, etc.)
10669 .PHONY: maybe-info-libbanshee info-libbanshee
10670 maybe-info-libbanshee:
10672 info-libbanshee: \
10673 configure-libbanshee
10674 @[ -f ./libbanshee/Makefile ] || exit 0; \
10675 r=`${PWD_COMMAND}`; export r; \
10676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10677 $(SET_LIB_PATH) \
10678 for flag in $(EXTRA_HOST_FLAGS); do \
10679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10680 done; \
10681 echo "Doing info in libbanshee" ; \
10682 (cd libbanshee && \
10683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10685 "RANLIB=$${RANLIB}" \
10686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10687 info) \
10688 || exit 1
10691 .PHONY: maybe-dvi-libbanshee dvi-libbanshee
10692 maybe-dvi-libbanshee:
10694 dvi-libbanshee: \
10695 configure-libbanshee
10696 @[ -f ./libbanshee/Makefile ] || exit 0; \
10697 r=`${PWD_COMMAND}`; export r; \
10698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10699 $(SET_LIB_PATH) \
10700 for flag in $(EXTRA_HOST_FLAGS); do \
10701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10702 done; \
10703 echo "Doing dvi in libbanshee" ; \
10704 (cd libbanshee && \
10705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10707 "RANLIB=$${RANLIB}" \
10708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10709 dvi) \
10710 || exit 1
10713 .PHONY: maybe-TAGS-libbanshee TAGS-libbanshee
10714 maybe-TAGS-libbanshee:
10716 TAGS-libbanshee: \
10717 configure-libbanshee
10718 @[ -f ./libbanshee/Makefile ] || exit 0; \
10719 r=`${PWD_COMMAND}`; export r; \
10720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10721 $(SET_LIB_PATH) \
10722 for flag in $(EXTRA_HOST_FLAGS); do \
10723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10724 done; \
10725 echo "Doing TAGS in libbanshee" ; \
10726 (cd libbanshee && \
10727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10729 "RANLIB=$${RANLIB}" \
10730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10731 TAGS) \
10732 || exit 1
10735 .PHONY: maybe-install-info-libbanshee install-info-libbanshee
10736 maybe-install-info-libbanshee:
10738 install-info-libbanshee: \
10739 configure-libbanshee \
10740 info-libbanshee
10741 @[ -f ./libbanshee/Makefile ] || exit 0; \
10742 r=`${PWD_COMMAND}`; export r; \
10743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10744 $(SET_LIB_PATH) \
10745 for flag in $(EXTRA_HOST_FLAGS); do \
10746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10747 done; \
10748 echo "Doing install-info in libbanshee" ; \
10749 (cd libbanshee && \
10750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10752 "RANLIB=$${RANLIB}" \
10753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10754 install-info) \
10755 || exit 1
10758 .PHONY: maybe-installcheck-libbanshee installcheck-libbanshee
10759 maybe-installcheck-libbanshee:
10761 installcheck-libbanshee: \
10762 configure-libbanshee
10763 @[ -f ./libbanshee/Makefile ] || exit 0; \
10764 r=`${PWD_COMMAND}`; export r; \
10765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10766 $(SET_LIB_PATH) \
10767 for flag in $(EXTRA_HOST_FLAGS); do \
10768 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10769 done; \
10770 echo "Doing installcheck in libbanshee" ; \
10771 (cd libbanshee && \
10772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10774 "RANLIB=$${RANLIB}" \
10775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10776 installcheck) \
10777 || exit 1
10780 .PHONY: maybe-mostlyclean-libbanshee mostlyclean-libbanshee
10781 maybe-mostlyclean-libbanshee:
10783 mostlyclean-libbanshee:
10784 @[ -f ./libbanshee/Makefile ] || exit 0; \
10785 r=`${PWD_COMMAND}`; export r; \
10786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10787 $(SET_LIB_PATH) \
10788 for flag in $(EXTRA_HOST_FLAGS); do \
10789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10790 done; \
10791 echo "Doing mostlyclean in libbanshee" ; \
10792 (cd libbanshee && \
10793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10795 "RANLIB=$${RANLIB}" \
10796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10797 mostlyclean) \
10798 || exit 1
10801 .PHONY: maybe-clean-libbanshee clean-libbanshee
10802 maybe-clean-libbanshee:
10804 clean-libbanshee:
10805 @[ -f ./libbanshee/Makefile ] || exit 0; \
10806 r=`${PWD_COMMAND}`; export r; \
10807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10808 $(SET_LIB_PATH) \
10809 for flag in $(EXTRA_HOST_FLAGS); do \
10810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10811 done; \
10812 echo "Doing clean in libbanshee" ; \
10813 (cd libbanshee && \
10814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10816 "RANLIB=$${RANLIB}" \
10817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10818 clean) \
10819 || exit 1
10822 .PHONY: maybe-distclean-libbanshee distclean-libbanshee
10823 maybe-distclean-libbanshee:
10825 distclean-libbanshee:
10826 @[ -f ./libbanshee/Makefile ] || exit 0; \
10827 r=`${PWD_COMMAND}`; export r; \
10828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10829 $(SET_LIB_PATH) \
10830 for flag in $(EXTRA_HOST_FLAGS); do \
10831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10832 done; \
10833 echo "Doing distclean in libbanshee" ; \
10834 (cd libbanshee && \
10835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10837 "RANLIB=$${RANLIB}" \
10838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10839 distclean) \
10840 || exit 1
10843 .PHONY: maybe-maintainer-clean-libbanshee maintainer-clean-libbanshee
10844 maybe-maintainer-clean-libbanshee:
10846 maintainer-clean-libbanshee:
10847 @[ -f ./libbanshee/Makefile ] || exit 0; \
10848 r=`${PWD_COMMAND}`; export r; \
10849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10850 $(SET_LIB_PATH) \
10851 for flag in $(EXTRA_HOST_FLAGS); do \
10852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10853 done; \
10854 echo "Doing maintainer-clean in libbanshee" ; \
10855 (cd libbanshee && \
10856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10858 "RANLIB=$${RANLIB}" \
10859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10860 maintainer-clean) \
10861 || exit 1
10865 .PHONY: configure-libiberty maybe-configure-libiberty
10866 maybe-configure-libiberty:
10867 configure-libiberty:
10868 @test ! -f libiberty/Makefile || exit 0; \
10869 [ -d libiberty ] || mkdir libiberty; \
10870 r=`${PWD_COMMAND}`; export r; \
10871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10872 CC="$(CC)"; export CC; \
10873 CFLAGS="$(CFLAGS)"; export CFLAGS; \
10874 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
10875 CXX="$(CXX)"; export CXX; \
10876 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
10877 AR="$(AR)"; export AR; \
10878 AS="$(AS)"; export AS; \
10879 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
10880 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
10881 LD="$(LD)"; export LD; \
10882 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
10883 NM="$(NM)"; export NM; \
10884 RANLIB="$(RANLIB)"; export RANLIB; \
10885 WINDRES="$(WINDRES)"; export WINDRES; \
10886 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
10887 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
10888 echo Configuring in libiberty; \
10889 cd libiberty || exit 1; \
10890 case $(srcdir) in \
10891 \.) \
10892 srcdiroption="--srcdir=."; \
10893 libsrcdir=".";; \
10894 /* | [A-Za-z]:[\\/]*) \
10895 srcdiroption="--srcdir=$(srcdir)/libiberty"; \
10896 libsrcdir="$$s/libiberty";; \
10897 *) \
10898 srcdiroption="--srcdir=../$(srcdir)/libiberty"; \
10899 libsrcdir="$$s/libiberty";; \
10900 esac; \
10901 $(SHELL) $${libsrcdir}/configure \
10902 $(HOST_CONFIGARGS) $${srcdiroption} \
10903 || exit 1
10905 .PHONY: all-libiberty maybe-all-libiberty
10906 maybe-all-libiberty:
10907 all-libiberty: configure-libiberty
10908 @r=`${PWD_COMMAND}`; export r; \
10909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10910 $(SET_LIB_PATH) \
10911 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all)
10913 .PHONY: check-libiberty maybe-check-libiberty
10914 maybe-check-libiberty:
10916 check-libiberty:
10917 @r=`${PWD_COMMAND}`; export r; \
10918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10919 $(SET_LIB_PATH) \
10920 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check)
10923 .PHONY: install-libiberty maybe-install-libiberty
10924 maybe-install-libiberty:
10926 install-libiberty: installdirs
10927 @r=`${PWD_COMMAND}`; export r; \
10928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10929 $(SET_LIB_PATH) \
10930 (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install)
10933 # Other targets (info, dvi, etc.)
10935 .PHONY: maybe-info-libiberty info-libiberty
10936 maybe-info-libiberty:
10938 info-libiberty: \
10939 configure-libiberty
10940 @[ -f ./libiberty/Makefile ] || exit 0; \
10941 r=`${PWD_COMMAND}`; export r; \
10942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10943 $(SET_LIB_PATH) \
10944 for flag in $(EXTRA_HOST_FLAGS); do \
10945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10946 done; \
10947 echo "Doing info in libiberty" ; \
10948 (cd libiberty && \
10949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10951 "RANLIB=$${RANLIB}" \
10952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10953 info) \
10954 || exit 1
10957 .PHONY: maybe-dvi-libiberty dvi-libiberty
10958 maybe-dvi-libiberty:
10960 dvi-libiberty: \
10961 configure-libiberty
10962 @[ -f ./libiberty/Makefile ] || exit 0; \
10963 r=`${PWD_COMMAND}`; export r; \
10964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10965 $(SET_LIB_PATH) \
10966 for flag in $(EXTRA_HOST_FLAGS); do \
10967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10968 done; \
10969 echo "Doing dvi in libiberty" ; \
10970 (cd libiberty && \
10971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10973 "RANLIB=$${RANLIB}" \
10974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10975 dvi) \
10976 || exit 1
10979 .PHONY: maybe-TAGS-libiberty TAGS-libiberty
10980 maybe-TAGS-libiberty:
10982 TAGS-libiberty: \
10983 configure-libiberty
10984 @[ -f ./libiberty/Makefile ] || exit 0; \
10985 r=`${PWD_COMMAND}`; export r; \
10986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10987 $(SET_LIB_PATH) \
10988 for flag in $(EXTRA_HOST_FLAGS); do \
10989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10990 done; \
10991 echo "Doing TAGS in libiberty" ; \
10992 (cd libiberty && \
10993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10995 "RANLIB=$${RANLIB}" \
10996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10997 TAGS) \
10998 || exit 1
11001 .PHONY: maybe-install-info-libiberty install-info-libiberty
11002 maybe-install-info-libiberty:
11004 install-info-libiberty: \
11005 configure-libiberty \
11006 info-libiberty
11007 @[ -f ./libiberty/Makefile ] || exit 0; \
11008 r=`${PWD_COMMAND}`; export r; \
11009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11010 $(SET_LIB_PATH) \
11011 for flag in $(EXTRA_HOST_FLAGS); do \
11012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11013 done; \
11014 echo "Doing install-info in libiberty" ; \
11015 (cd libiberty && \
11016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11018 "RANLIB=$${RANLIB}" \
11019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11020 install-info) \
11021 || exit 1
11024 .PHONY: maybe-installcheck-libiberty installcheck-libiberty
11025 maybe-installcheck-libiberty:
11027 installcheck-libiberty: \
11028 configure-libiberty
11029 @[ -f ./libiberty/Makefile ] || exit 0; \
11030 r=`${PWD_COMMAND}`; export r; \
11031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11032 $(SET_LIB_PATH) \
11033 for flag in $(EXTRA_HOST_FLAGS); do \
11034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11035 done; \
11036 echo "Doing installcheck in libiberty" ; \
11037 (cd libiberty && \
11038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11040 "RANLIB=$${RANLIB}" \
11041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11042 installcheck) \
11043 || exit 1
11046 .PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
11047 maybe-mostlyclean-libiberty:
11049 mostlyclean-libiberty:
11050 @[ -f ./libiberty/Makefile ] || exit 0; \
11051 r=`${PWD_COMMAND}`; export r; \
11052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11053 $(SET_LIB_PATH) \
11054 for flag in $(EXTRA_HOST_FLAGS); do \
11055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11056 done; \
11057 echo "Doing mostlyclean in libiberty" ; \
11058 (cd libiberty && \
11059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11061 "RANLIB=$${RANLIB}" \
11062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11063 mostlyclean) \
11064 || exit 1
11067 .PHONY: maybe-clean-libiberty clean-libiberty
11068 maybe-clean-libiberty:
11070 clean-libiberty:
11071 @[ -f ./libiberty/Makefile ] || exit 0; \
11072 r=`${PWD_COMMAND}`; export r; \
11073 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11074 $(SET_LIB_PATH) \
11075 for flag in $(EXTRA_HOST_FLAGS); do \
11076 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11077 done; \
11078 echo "Doing clean in libiberty" ; \
11079 (cd libiberty && \
11080 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11081 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11082 "RANLIB=$${RANLIB}" \
11083 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11084 clean) \
11085 || exit 1
11088 .PHONY: maybe-distclean-libiberty distclean-libiberty
11089 maybe-distclean-libiberty:
11091 distclean-libiberty:
11092 @[ -f ./libiberty/Makefile ] || exit 0; \
11093 r=`${PWD_COMMAND}`; export r; \
11094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11095 $(SET_LIB_PATH) \
11096 for flag in $(EXTRA_HOST_FLAGS); do \
11097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11098 done; \
11099 echo "Doing distclean in libiberty" ; \
11100 (cd libiberty && \
11101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11103 "RANLIB=$${RANLIB}" \
11104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11105 distclean) \
11106 || exit 1
11109 .PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
11110 maybe-maintainer-clean-libiberty:
11112 maintainer-clean-libiberty:
11113 @[ -f ./libiberty/Makefile ] || exit 0; \
11114 r=`${PWD_COMMAND}`; export r; \
11115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11116 $(SET_LIB_PATH) \
11117 for flag in $(EXTRA_HOST_FLAGS); do \
11118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11119 done; \
11120 echo "Doing maintainer-clean in libiberty" ; \
11121 (cd libiberty && \
11122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11124 "RANLIB=$${RANLIB}" \
11125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11126 maintainer-clean) \
11127 || exit 1
11131 .PHONY: configure-libtool maybe-configure-libtool
11132 maybe-configure-libtool:
11133 configure-libtool:
11134 @test ! -f libtool/Makefile || exit 0; \
11135 [ -d libtool ] || mkdir libtool; \
11136 r=`${PWD_COMMAND}`; export r; \
11137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11138 CC="$(CC)"; export CC; \
11139 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11140 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11141 CXX="$(CXX)"; export CXX; \
11142 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11143 AR="$(AR)"; export AR; \
11144 AS="$(AS)"; export AS; \
11145 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11146 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11147 LD="$(LD)"; export LD; \
11148 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
11149 NM="$(NM)"; export NM; \
11150 RANLIB="$(RANLIB)"; export RANLIB; \
11151 WINDRES="$(WINDRES)"; export WINDRES; \
11152 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11153 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11154 echo Configuring in libtool; \
11155 cd libtool || exit 1; \
11156 case $(srcdir) in \
11157 \.) \
11158 srcdiroption="--srcdir=."; \
11159 libsrcdir=".";; \
11160 /* | [A-Za-z]:[\\/]*) \
11161 srcdiroption="--srcdir=$(srcdir)/libtool"; \
11162 libsrcdir="$$s/libtool";; \
11163 *) \
11164 srcdiroption="--srcdir=../$(srcdir)/libtool"; \
11165 libsrcdir="$$s/libtool";; \
11166 esac; \
11167 $(SHELL) $${libsrcdir}/configure \
11168 $(HOST_CONFIGARGS) $${srcdiroption} \
11169 || exit 1
11171 .PHONY: all-libtool maybe-all-libtool
11172 maybe-all-libtool:
11173 all-libtool: configure-libtool
11174 @r=`${PWD_COMMAND}`; export r; \
11175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11176 $(SET_LIB_PATH) \
11177 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all)
11179 .PHONY: check-libtool maybe-check-libtool
11180 maybe-check-libtool:
11182 check-libtool:
11183 @r=`${PWD_COMMAND}`; export r; \
11184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11185 $(SET_LIB_PATH) \
11186 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check)
11189 .PHONY: install-libtool maybe-install-libtool
11190 maybe-install-libtool:
11192 install-libtool: installdirs
11193 @r=`${PWD_COMMAND}`; export r; \
11194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11195 $(SET_LIB_PATH) \
11196 (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install)
11199 # Other targets (info, dvi, etc.)
11201 .PHONY: maybe-info-libtool info-libtool
11202 maybe-info-libtool:
11204 info-libtool: \
11205 configure-libtool
11206 @[ -f ./libtool/Makefile ] || exit 0; \
11207 r=`${PWD_COMMAND}`; export r; \
11208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11209 $(SET_LIB_PATH) \
11210 for flag in $(EXTRA_HOST_FLAGS); do \
11211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11212 done; \
11213 echo "Doing info in libtool" ; \
11214 (cd libtool && \
11215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11217 "RANLIB=$${RANLIB}" \
11218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11219 info) \
11220 || exit 1
11223 .PHONY: maybe-dvi-libtool dvi-libtool
11224 maybe-dvi-libtool:
11226 dvi-libtool: \
11227 configure-libtool
11228 @[ -f ./libtool/Makefile ] || exit 0; \
11229 r=`${PWD_COMMAND}`; export r; \
11230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11231 $(SET_LIB_PATH) \
11232 for flag in $(EXTRA_HOST_FLAGS); do \
11233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11234 done; \
11235 echo "Doing dvi in libtool" ; \
11236 (cd libtool && \
11237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11239 "RANLIB=$${RANLIB}" \
11240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11241 dvi) \
11242 || exit 1
11245 .PHONY: maybe-TAGS-libtool TAGS-libtool
11246 maybe-TAGS-libtool:
11248 TAGS-libtool: \
11249 configure-libtool
11250 @[ -f ./libtool/Makefile ] || exit 0; \
11251 r=`${PWD_COMMAND}`; export r; \
11252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11253 $(SET_LIB_PATH) \
11254 for flag in $(EXTRA_HOST_FLAGS); do \
11255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11256 done; \
11257 echo "Doing TAGS in libtool" ; \
11258 (cd libtool && \
11259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11261 "RANLIB=$${RANLIB}" \
11262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11263 TAGS) \
11264 || exit 1
11267 .PHONY: maybe-install-info-libtool install-info-libtool
11268 maybe-install-info-libtool:
11270 install-info-libtool: \
11271 configure-libtool \
11272 info-libtool
11273 @[ -f ./libtool/Makefile ] || exit 0; \
11274 r=`${PWD_COMMAND}`; export r; \
11275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11276 $(SET_LIB_PATH) \
11277 for flag in $(EXTRA_HOST_FLAGS); do \
11278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11279 done; \
11280 echo "Doing install-info in libtool" ; \
11281 (cd libtool && \
11282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11284 "RANLIB=$${RANLIB}" \
11285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11286 install-info) \
11287 || exit 1
11290 .PHONY: maybe-installcheck-libtool installcheck-libtool
11291 maybe-installcheck-libtool:
11293 installcheck-libtool: \
11294 configure-libtool
11295 @[ -f ./libtool/Makefile ] || exit 0; \
11296 r=`${PWD_COMMAND}`; export r; \
11297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11298 $(SET_LIB_PATH) \
11299 for flag in $(EXTRA_HOST_FLAGS); do \
11300 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11301 done; \
11302 echo "Doing installcheck in libtool" ; \
11303 (cd libtool && \
11304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11306 "RANLIB=$${RANLIB}" \
11307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11308 installcheck) \
11309 || exit 1
11312 .PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
11313 maybe-mostlyclean-libtool:
11315 mostlyclean-libtool:
11316 @[ -f ./libtool/Makefile ] || exit 0; \
11317 r=`${PWD_COMMAND}`; export r; \
11318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11319 $(SET_LIB_PATH) \
11320 for flag in $(EXTRA_HOST_FLAGS); do \
11321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11322 done; \
11323 echo "Doing mostlyclean in libtool" ; \
11324 (cd libtool && \
11325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11327 "RANLIB=$${RANLIB}" \
11328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11329 mostlyclean) \
11330 || exit 1
11333 .PHONY: maybe-clean-libtool clean-libtool
11334 maybe-clean-libtool:
11336 clean-libtool:
11337 @[ -f ./libtool/Makefile ] || exit 0; \
11338 r=`${PWD_COMMAND}`; export r; \
11339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11340 $(SET_LIB_PATH) \
11341 for flag in $(EXTRA_HOST_FLAGS); do \
11342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11343 done; \
11344 echo "Doing clean in libtool" ; \
11345 (cd libtool && \
11346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11348 "RANLIB=$${RANLIB}" \
11349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11350 clean) \
11351 || exit 1
11354 .PHONY: maybe-distclean-libtool distclean-libtool
11355 maybe-distclean-libtool:
11357 distclean-libtool:
11358 @[ -f ./libtool/Makefile ] || exit 0; \
11359 r=`${PWD_COMMAND}`; export r; \
11360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11361 $(SET_LIB_PATH) \
11362 for flag in $(EXTRA_HOST_FLAGS); do \
11363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11364 done; \
11365 echo "Doing distclean in libtool" ; \
11366 (cd libtool && \
11367 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11368 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11369 "RANLIB=$${RANLIB}" \
11370 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11371 distclean) \
11372 || exit 1
11375 .PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
11376 maybe-maintainer-clean-libtool:
11378 maintainer-clean-libtool:
11379 @[ -f ./libtool/Makefile ] || exit 0; \
11380 r=`${PWD_COMMAND}`; export r; \
11381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11382 $(SET_LIB_PATH) \
11383 for flag in $(EXTRA_HOST_FLAGS); do \
11384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11385 done; \
11386 echo "Doing maintainer-clean in libtool" ; \
11387 (cd libtool && \
11388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11390 "RANLIB=$${RANLIB}" \
11391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11392 maintainer-clean) \
11393 || exit 1
11397 .PHONY: configure-m4 maybe-configure-m4
11398 maybe-configure-m4:
11399 configure-m4:
11400 @test ! -f m4/Makefile || exit 0; \
11401 [ -d m4 ] || mkdir m4; \
11402 r=`${PWD_COMMAND}`; export r; \
11403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11404 CC="$(CC)"; export CC; \
11405 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11406 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11407 CXX="$(CXX)"; export CXX; \
11408 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11409 AR="$(AR)"; export AR; \
11410 AS="$(AS)"; export AS; \
11411 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11412 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11413 LD="$(LD)"; export LD; \
11414 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
11415 NM="$(NM)"; export NM; \
11416 RANLIB="$(RANLIB)"; export RANLIB; \
11417 WINDRES="$(WINDRES)"; export WINDRES; \
11418 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11419 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11420 echo Configuring in m4; \
11421 cd m4 || exit 1; \
11422 case $(srcdir) in \
11423 \.) \
11424 srcdiroption="--srcdir=."; \
11425 libsrcdir=".";; \
11426 /* | [A-Za-z]:[\\/]*) \
11427 srcdiroption="--srcdir=$(srcdir)/m4"; \
11428 libsrcdir="$$s/m4";; \
11429 *) \
11430 srcdiroption="--srcdir=../$(srcdir)/m4"; \
11431 libsrcdir="$$s/m4";; \
11432 esac; \
11433 $(SHELL) $${libsrcdir}/configure \
11434 $(HOST_CONFIGARGS) $${srcdiroption} \
11435 || exit 1
11437 .PHONY: all-m4 maybe-all-m4
11438 maybe-all-m4:
11439 all-m4: configure-m4
11440 @r=`${PWD_COMMAND}`; export r; \
11441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11442 $(SET_LIB_PATH) \
11443 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all)
11445 .PHONY: check-m4 maybe-check-m4
11446 maybe-check-m4:
11448 check-m4:
11449 @r=`${PWD_COMMAND}`; export r; \
11450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11451 $(SET_LIB_PATH) \
11452 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check)
11455 .PHONY: install-m4 maybe-install-m4
11456 maybe-install-m4:
11458 install-m4: installdirs
11459 @r=`${PWD_COMMAND}`; export r; \
11460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11461 $(SET_LIB_PATH) \
11462 (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install)
11465 # Other targets (info, dvi, etc.)
11467 .PHONY: maybe-info-m4 info-m4
11468 maybe-info-m4:
11470 info-m4: \
11471 configure-m4
11472 @[ -f ./m4/Makefile ] || exit 0; \
11473 r=`${PWD_COMMAND}`; export r; \
11474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11475 $(SET_LIB_PATH) \
11476 for flag in $(EXTRA_HOST_FLAGS); do \
11477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11478 done; \
11479 echo "Doing info in m4" ; \
11480 (cd m4 && \
11481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11483 "RANLIB=$${RANLIB}" \
11484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11485 info) \
11486 || exit 1
11489 .PHONY: maybe-dvi-m4 dvi-m4
11490 maybe-dvi-m4:
11492 dvi-m4: \
11493 configure-m4
11494 @[ -f ./m4/Makefile ] || exit 0; \
11495 r=`${PWD_COMMAND}`; export r; \
11496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11497 $(SET_LIB_PATH) \
11498 for flag in $(EXTRA_HOST_FLAGS); do \
11499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11500 done; \
11501 echo "Doing dvi in m4" ; \
11502 (cd m4 && \
11503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11505 "RANLIB=$${RANLIB}" \
11506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11507 dvi) \
11508 || exit 1
11511 .PHONY: maybe-TAGS-m4 TAGS-m4
11512 maybe-TAGS-m4:
11514 TAGS-m4: \
11515 configure-m4
11516 @[ -f ./m4/Makefile ] || exit 0; \
11517 r=`${PWD_COMMAND}`; export r; \
11518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11519 $(SET_LIB_PATH) \
11520 for flag in $(EXTRA_HOST_FLAGS); do \
11521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11522 done; \
11523 echo "Doing TAGS in m4" ; \
11524 (cd m4 && \
11525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11527 "RANLIB=$${RANLIB}" \
11528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11529 TAGS) \
11530 || exit 1
11533 .PHONY: maybe-install-info-m4 install-info-m4
11534 maybe-install-info-m4:
11536 install-info-m4: \
11537 configure-m4 \
11538 info-m4
11539 @[ -f ./m4/Makefile ] || exit 0; \
11540 r=`${PWD_COMMAND}`; export r; \
11541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11542 $(SET_LIB_PATH) \
11543 for flag in $(EXTRA_HOST_FLAGS); do \
11544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11545 done; \
11546 echo "Doing install-info in m4" ; \
11547 (cd m4 && \
11548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11550 "RANLIB=$${RANLIB}" \
11551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11552 install-info) \
11553 || exit 1
11556 .PHONY: maybe-installcheck-m4 installcheck-m4
11557 maybe-installcheck-m4:
11559 installcheck-m4: \
11560 configure-m4
11561 @[ -f ./m4/Makefile ] || exit 0; \
11562 r=`${PWD_COMMAND}`; export r; \
11563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11564 $(SET_LIB_PATH) \
11565 for flag in $(EXTRA_HOST_FLAGS); do \
11566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11567 done; \
11568 echo "Doing installcheck in m4" ; \
11569 (cd m4 && \
11570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11572 "RANLIB=$${RANLIB}" \
11573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11574 installcheck) \
11575 || exit 1
11578 .PHONY: maybe-mostlyclean-m4 mostlyclean-m4
11579 maybe-mostlyclean-m4:
11581 mostlyclean-m4:
11582 @[ -f ./m4/Makefile ] || exit 0; \
11583 r=`${PWD_COMMAND}`; export r; \
11584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11585 $(SET_LIB_PATH) \
11586 for flag in $(EXTRA_HOST_FLAGS); do \
11587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11588 done; \
11589 echo "Doing mostlyclean in m4" ; \
11590 (cd m4 && \
11591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11593 "RANLIB=$${RANLIB}" \
11594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11595 mostlyclean) \
11596 || exit 1
11599 .PHONY: maybe-clean-m4 clean-m4
11600 maybe-clean-m4:
11602 clean-m4:
11603 @[ -f ./m4/Makefile ] || exit 0; \
11604 r=`${PWD_COMMAND}`; export r; \
11605 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11606 $(SET_LIB_PATH) \
11607 for flag in $(EXTRA_HOST_FLAGS); do \
11608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11609 done; \
11610 echo "Doing clean in m4" ; \
11611 (cd m4 && \
11612 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11613 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11614 "RANLIB=$${RANLIB}" \
11615 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11616 clean) \
11617 || exit 1
11620 .PHONY: maybe-distclean-m4 distclean-m4
11621 maybe-distclean-m4:
11623 distclean-m4:
11624 @[ -f ./m4/Makefile ] || exit 0; \
11625 r=`${PWD_COMMAND}`; export r; \
11626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11627 $(SET_LIB_PATH) \
11628 for flag in $(EXTRA_HOST_FLAGS); do \
11629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11630 done; \
11631 echo "Doing distclean in m4" ; \
11632 (cd m4 && \
11633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11635 "RANLIB=$${RANLIB}" \
11636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11637 distclean) \
11638 || exit 1
11641 .PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
11642 maybe-maintainer-clean-m4:
11644 maintainer-clean-m4:
11645 @[ -f ./m4/Makefile ] || exit 0; \
11646 r=`${PWD_COMMAND}`; export r; \
11647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11648 $(SET_LIB_PATH) \
11649 for flag in $(EXTRA_HOST_FLAGS); do \
11650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11651 done; \
11652 echo "Doing maintainer-clean in m4" ; \
11653 (cd m4 && \
11654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11656 "RANLIB=$${RANLIB}" \
11657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11658 maintainer-clean) \
11659 || exit 1
11663 .PHONY: configure-make maybe-configure-make
11664 maybe-configure-make:
11665 configure-make:
11666 @test ! -f make/Makefile || exit 0; \
11667 [ -d make ] || mkdir make; \
11668 r=`${PWD_COMMAND}`; export r; \
11669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11670 CC="$(CC)"; export CC; \
11671 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11672 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11673 CXX="$(CXX)"; export CXX; \
11674 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11675 AR="$(AR)"; export AR; \
11676 AS="$(AS)"; export AS; \
11677 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11678 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11679 LD="$(LD)"; export LD; \
11680 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
11681 NM="$(NM)"; export NM; \
11682 RANLIB="$(RANLIB)"; export RANLIB; \
11683 WINDRES="$(WINDRES)"; export WINDRES; \
11684 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11685 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11686 echo Configuring in make; \
11687 cd make || exit 1; \
11688 case $(srcdir) in \
11689 \.) \
11690 srcdiroption="--srcdir=."; \
11691 libsrcdir=".";; \
11692 /* | [A-Za-z]:[\\/]*) \
11693 srcdiroption="--srcdir=$(srcdir)/make"; \
11694 libsrcdir="$$s/make";; \
11695 *) \
11696 srcdiroption="--srcdir=../$(srcdir)/make"; \
11697 libsrcdir="$$s/make";; \
11698 esac; \
11699 $(SHELL) $${libsrcdir}/configure \
11700 $(HOST_CONFIGARGS) $${srcdiroption} \
11701 || exit 1
11703 .PHONY: all-make maybe-all-make
11704 maybe-all-make:
11705 all-make: configure-make
11706 @r=`${PWD_COMMAND}`; export r; \
11707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11708 $(SET_LIB_PATH) \
11709 (cd make && $(MAKE) $(FLAGS_TO_PASS) all)
11711 .PHONY: check-make maybe-check-make
11712 maybe-check-make:
11714 check-make:
11715 @r=`${PWD_COMMAND}`; export r; \
11716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11717 $(SET_LIB_PATH) \
11718 (cd make && $(MAKE) $(FLAGS_TO_PASS) check)
11721 .PHONY: install-make maybe-install-make
11722 maybe-install-make:
11724 install-make: installdirs
11725 @r=`${PWD_COMMAND}`; export r; \
11726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11727 $(SET_LIB_PATH) \
11728 (cd make && $(MAKE) $(FLAGS_TO_PASS) install)
11731 # Other targets (info, dvi, etc.)
11733 .PHONY: maybe-info-make info-make
11734 maybe-info-make:
11736 info-make: \
11737 configure-make
11738 @[ -f ./make/Makefile ] || exit 0; \
11739 r=`${PWD_COMMAND}`; export r; \
11740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11741 $(SET_LIB_PATH) \
11742 for flag in $(EXTRA_HOST_FLAGS); do \
11743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11744 done; \
11745 echo "Doing info in make" ; \
11746 (cd make && \
11747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11749 "RANLIB=$${RANLIB}" \
11750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11751 info) \
11752 || exit 1
11755 .PHONY: maybe-dvi-make dvi-make
11756 maybe-dvi-make:
11758 dvi-make: \
11759 configure-make
11760 @[ -f ./make/Makefile ] || exit 0; \
11761 r=`${PWD_COMMAND}`; export r; \
11762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11763 $(SET_LIB_PATH) \
11764 for flag in $(EXTRA_HOST_FLAGS); do \
11765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11766 done; \
11767 echo "Doing dvi in make" ; \
11768 (cd make && \
11769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11771 "RANLIB=$${RANLIB}" \
11772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11773 dvi) \
11774 || exit 1
11777 .PHONY: maybe-TAGS-make TAGS-make
11778 maybe-TAGS-make:
11780 TAGS-make: \
11781 configure-make
11782 @[ -f ./make/Makefile ] || exit 0; \
11783 r=`${PWD_COMMAND}`; export r; \
11784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11785 $(SET_LIB_PATH) \
11786 for flag in $(EXTRA_HOST_FLAGS); do \
11787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11788 done; \
11789 echo "Doing TAGS in make" ; \
11790 (cd make && \
11791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11793 "RANLIB=$${RANLIB}" \
11794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11795 TAGS) \
11796 || exit 1
11799 .PHONY: maybe-install-info-make install-info-make
11800 maybe-install-info-make:
11802 install-info-make: \
11803 configure-make \
11804 info-make
11805 @[ -f ./make/Makefile ] || exit 0; \
11806 r=`${PWD_COMMAND}`; export r; \
11807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11808 $(SET_LIB_PATH) \
11809 for flag in $(EXTRA_HOST_FLAGS); do \
11810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11811 done; \
11812 echo "Doing install-info in make" ; \
11813 (cd make && \
11814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11816 "RANLIB=$${RANLIB}" \
11817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11818 install-info) \
11819 || exit 1
11822 .PHONY: maybe-installcheck-make installcheck-make
11823 maybe-installcheck-make:
11825 installcheck-make: \
11826 configure-make
11827 @[ -f ./make/Makefile ] || exit 0; \
11828 r=`${PWD_COMMAND}`; export r; \
11829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11830 $(SET_LIB_PATH) \
11831 for flag in $(EXTRA_HOST_FLAGS); do \
11832 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11833 done; \
11834 echo "Doing installcheck in make" ; \
11835 (cd make && \
11836 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11837 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11838 "RANLIB=$${RANLIB}" \
11839 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11840 installcheck) \
11841 || exit 1
11844 .PHONY: maybe-mostlyclean-make mostlyclean-make
11845 maybe-mostlyclean-make:
11847 mostlyclean-make:
11848 @[ -f ./make/Makefile ] || exit 0; \
11849 r=`${PWD_COMMAND}`; export r; \
11850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11851 $(SET_LIB_PATH) \
11852 for flag in $(EXTRA_HOST_FLAGS); do \
11853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11854 done; \
11855 echo "Doing mostlyclean in make" ; \
11856 (cd make && \
11857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11859 "RANLIB=$${RANLIB}" \
11860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11861 mostlyclean) \
11862 || exit 1
11865 .PHONY: maybe-clean-make clean-make
11866 maybe-clean-make:
11868 clean-make:
11869 @[ -f ./make/Makefile ] || exit 0; \
11870 r=`${PWD_COMMAND}`; export r; \
11871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11872 $(SET_LIB_PATH) \
11873 for flag in $(EXTRA_HOST_FLAGS); do \
11874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11875 done; \
11876 echo "Doing clean in make" ; \
11877 (cd make && \
11878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11880 "RANLIB=$${RANLIB}" \
11881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11882 clean) \
11883 || exit 1
11886 .PHONY: maybe-distclean-make distclean-make
11887 maybe-distclean-make:
11889 distclean-make:
11890 @[ -f ./make/Makefile ] || exit 0; \
11891 r=`${PWD_COMMAND}`; export r; \
11892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11893 $(SET_LIB_PATH) \
11894 for flag in $(EXTRA_HOST_FLAGS); do \
11895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11896 done; \
11897 echo "Doing distclean in make" ; \
11898 (cd make && \
11899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11901 "RANLIB=$${RANLIB}" \
11902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11903 distclean) \
11904 || exit 1
11907 .PHONY: maybe-maintainer-clean-make maintainer-clean-make
11908 maybe-maintainer-clean-make:
11910 maintainer-clean-make:
11911 @[ -f ./make/Makefile ] || exit 0; \
11912 r=`${PWD_COMMAND}`; export r; \
11913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11914 $(SET_LIB_PATH) \
11915 for flag in $(EXTRA_HOST_FLAGS); do \
11916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11917 done; \
11918 echo "Doing maintainer-clean in make" ; \
11919 (cd make && \
11920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11922 "RANLIB=$${RANLIB}" \
11923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11924 maintainer-clean) \
11925 || exit 1
11929 .PHONY: configure-mmalloc maybe-configure-mmalloc
11930 maybe-configure-mmalloc:
11931 configure-mmalloc:
11932 @test ! -f mmalloc/Makefile || exit 0; \
11933 [ -d mmalloc ] || mkdir mmalloc; \
11934 r=`${PWD_COMMAND}`; export r; \
11935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11936 CC="$(CC)"; export CC; \
11937 CFLAGS="$(CFLAGS)"; export CFLAGS; \
11938 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
11939 CXX="$(CXX)"; export CXX; \
11940 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
11941 AR="$(AR)"; export AR; \
11942 AS="$(AS)"; export AS; \
11943 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
11944 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
11945 LD="$(LD)"; export LD; \
11946 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
11947 NM="$(NM)"; export NM; \
11948 RANLIB="$(RANLIB)"; export RANLIB; \
11949 WINDRES="$(WINDRES)"; export WINDRES; \
11950 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
11951 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
11952 echo Configuring in mmalloc; \
11953 cd mmalloc || exit 1; \
11954 case $(srcdir) in \
11955 \.) \
11956 srcdiroption="--srcdir=."; \
11957 libsrcdir=".";; \
11958 /* | [A-Za-z]:[\\/]*) \
11959 srcdiroption="--srcdir=$(srcdir)/mmalloc"; \
11960 libsrcdir="$$s/mmalloc";; \
11961 *) \
11962 srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \
11963 libsrcdir="$$s/mmalloc";; \
11964 esac; \
11965 $(SHELL) $${libsrcdir}/configure \
11966 $(HOST_CONFIGARGS) $${srcdiroption} \
11967 || exit 1
11969 .PHONY: all-mmalloc maybe-all-mmalloc
11970 maybe-all-mmalloc:
11971 all-mmalloc: configure-mmalloc
11972 @r=`${PWD_COMMAND}`; export r; \
11973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11974 $(SET_LIB_PATH) \
11975 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all)
11977 .PHONY: check-mmalloc maybe-check-mmalloc
11978 maybe-check-mmalloc:
11980 check-mmalloc:
11983 .PHONY: install-mmalloc maybe-install-mmalloc
11984 maybe-install-mmalloc:
11986 install-mmalloc: installdirs
11987 @r=`${PWD_COMMAND}`; export r; \
11988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11989 $(SET_LIB_PATH) \
11990 (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install)
11993 # Other targets (info, dvi, etc.)
11995 .PHONY: maybe-info-mmalloc info-mmalloc
11996 maybe-info-mmalloc:
11998 info-mmalloc: \
11999 configure-mmalloc
12000 @[ -f ./mmalloc/Makefile ] || exit 0; \
12001 r=`${PWD_COMMAND}`; export r; \
12002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12003 $(SET_LIB_PATH) \
12004 for flag in $(EXTRA_HOST_FLAGS); do \
12005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12006 done; \
12007 echo "Doing info in mmalloc" ; \
12008 (cd mmalloc && \
12009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12011 "RANLIB=$${RANLIB}" \
12012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12013 info) \
12014 || exit 1
12017 .PHONY: maybe-dvi-mmalloc dvi-mmalloc
12018 maybe-dvi-mmalloc:
12020 dvi-mmalloc: \
12021 configure-mmalloc
12022 @[ -f ./mmalloc/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 dvi in mmalloc" ; \
12030 (cd mmalloc && \
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 dvi) \
12036 || exit 1
12039 .PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
12040 maybe-TAGS-mmalloc:
12042 TAGS-mmalloc: \
12043 configure-mmalloc
12044 @[ -f ./mmalloc/Makefile ] || exit 0; \
12045 r=`${PWD_COMMAND}`; export r; \
12046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12047 $(SET_LIB_PATH) \
12048 for flag in $(EXTRA_HOST_FLAGS); do \
12049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12050 done; \
12051 echo "Doing TAGS in mmalloc" ; \
12052 (cd mmalloc && \
12053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12055 "RANLIB=$${RANLIB}" \
12056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12057 TAGS) \
12058 || exit 1
12061 .PHONY: maybe-install-info-mmalloc install-info-mmalloc
12062 maybe-install-info-mmalloc:
12064 install-info-mmalloc: \
12065 configure-mmalloc \
12066 info-mmalloc
12067 @[ -f ./mmalloc/Makefile ] || exit 0; \
12068 r=`${PWD_COMMAND}`; export r; \
12069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12070 $(SET_LIB_PATH) \
12071 for flag in $(EXTRA_HOST_FLAGS); do \
12072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12073 done; \
12074 echo "Doing install-info in mmalloc" ; \
12075 (cd mmalloc && \
12076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12078 "RANLIB=$${RANLIB}" \
12079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12080 install-info) \
12081 || exit 1
12084 .PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
12085 maybe-installcheck-mmalloc:
12087 installcheck-mmalloc: \
12088 configure-mmalloc
12089 @[ -f ./mmalloc/Makefile ] || exit 0; \
12090 r=`${PWD_COMMAND}`; export r; \
12091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12092 $(SET_LIB_PATH) \
12093 for flag in $(EXTRA_HOST_FLAGS); do \
12094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12095 done; \
12096 echo "Doing installcheck in mmalloc" ; \
12097 (cd mmalloc && \
12098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12100 "RANLIB=$${RANLIB}" \
12101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12102 installcheck) \
12103 || exit 1
12106 .PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
12107 maybe-mostlyclean-mmalloc:
12109 mostlyclean-mmalloc:
12110 @[ -f ./mmalloc/Makefile ] || exit 0; \
12111 r=`${PWD_COMMAND}`; export r; \
12112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12113 $(SET_LIB_PATH) \
12114 for flag in $(EXTRA_HOST_FLAGS); do \
12115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12116 done; \
12117 echo "Doing mostlyclean in mmalloc" ; \
12118 (cd mmalloc && \
12119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12121 "RANLIB=$${RANLIB}" \
12122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12123 mostlyclean) \
12124 || exit 1
12127 .PHONY: maybe-clean-mmalloc clean-mmalloc
12128 maybe-clean-mmalloc:
12130 clean-mmalloc:
12131 @[ -f ./mmalloc/Makefile ] || exit 0; \
12132 r=`${PWD_COMMAND}`; export r; \
12133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12134 $(SET_LIB_PATH) \
12135 for flag in $(EXTRA_HOST_FLAGS); do \
12136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12137 done; \
12138 echo "Doing clean in mmalloc" ; \
12139 (cd mmalloc && \
12140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12142 "RANLIB=$${RANLIB}" \
12143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12144 clean) \
12145 || exit 1
12148 .PHONY: maybe-distclean-mmalloc distclean-mmalloc
12149 maybe-distclean-mmalloc:
12151 distclean-mmalloc:
12152 @[ -f ./mmalloc/Makefile ] || exit 0; \
12153 r=`${PWD_COMMAND}`; export r; \
12154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12155 $(SET_LIB_PATH) \
12156 for flag in $(EXTRA_HOST_FLAGS); do \
12157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12158 done; \
12159 echo "Doing distclean in mmalloc" ; \
12160 (cd mmalloc && \
12161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12163 "RANLIB=$${RANLIB}" \
12164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12165 distclean) \
12166 || exit 1
12169 .PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
12170 maybe-maintainer-clean-mmalloc:
12172 maintainer-clean-mmalloc:
12173 @[ -f ./mmalloc/Makefile ] || exit 0; \
12174 r=`${PWD_COMMAND}`; export r; \
12175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12176 $(SET_LIB_PATH) \
12177 for flag in $(EXTRA_HOST_FLAGS); do \
12178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12179 done; \
12180 echo "Doing maintainer-clean in mmalloc" ; \
12181 (cd mmalloc && \
12182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12184 "RANLIB=$${RANLIB}" \
12185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12186 maintainer-clean) \
12187 || exit 1
12191 .PHONY: configure-patch maybe-configure-patch
12192 maybe-configure-patch:
12193 configure-patch:
12194 @test ! -f patch/Makefile || exit 0; \
12195 [ -d patch ] || mkdir patch; \
12196 r=`${PWD_COMMAND}`; export r; \
12197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12198 CC="$(CC)"; export CC; \
12199 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12200 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12201 CXX="$(CXX)"; export CXX; \
12202 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12203 AR="$(AR)"; export AR; \
12204 AS="$(AS)"; export AS; \
12205 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12206 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12207 LD="$(LD)"; export LD; \
12208 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
12209 NM="$(NM)"; export NM; \
12210 RANLIB="$(RANLIB)"; export RANLIB; \
12211 WINDRES="$(WINDRES)"; export WINDRES; \
12212 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12213 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12214 echo Configuring in patch; \
12215 cd patch || exit 1; \
12216 case $(srcdir) in \
12217 \.) \
12218 srcdiroption="--srcdir=."; \
12219 libsrcdir=".";; \
12220 /* | [A-Za-z]:[\\/]*) \
12221 srcdiroption="--srcdir=$(srcdir)/patch"; \
12222 libsrcdir="$$s/patch";; \
12223 *) \
12224 srcdiroption="--srcdir=../$(srcdir)/patch"; \
12225 libsrcdir="$$s/patch";; \
12226 esac; \
12227 $(SHELL) $${libsrcdir}/configure \
12228 $(HOST_CONFIGARGS) $${srcdiroption} \
12229 || exit 1
12231 .PHONY: all-patch maybe-all-patch
12232 maybe-all-patch:
12233 all-patch: configure-patch
12234 @r=`${PWD_COMMAND}`; export r; \
12235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12236 $(SET_LIB_PATH) \
12237 (cd patch && $(MAKE) $(FLAGS_TO_PASS) all)
12239 .PHONY: check-patch maybe-check-patch
12240 maybe-check-patch:
12242 check-patch:
12243 @r=`${PWD_COMMAND}`; export r; \
12244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12245 $(SET_LIB_PATH) \
12246 (cd patch && $(MAKE) $(FLAGS_TO_PASS) check)
12249 .PHONY: install-patch maybe-install-patch
12250 maybe-install-patch:
12252 install-patch: installdirs
12253 @r=`${PWD_COMMAND}`; export r; \
12254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12255 $(SET_LIB_PATH) \
12256 (cd patch && $(MAKE) $(FLAGS_TO_PASS) install)
12259 # Other targets (info, dvi, etc.)
12261 .PHONY: maybe-info-patch info-patch
12262 maybe-info-patch:
12264 info-patch: \
12265 configure-patch
12266 @[ -f ./patch/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 info in patch" ; \
12274 (cd patch && \
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 info) \
12280 || exit 1
12283 .PHONY: maybe-dvi-patch dvi-patch
12284 maybe-dvi-patch:
12286 dvi-patch: \
12287 configure-patch
12288 @[ -f ./patch/Makefile ] || exit 0; \
12289 r=`${PWD_COMMAND}`; export r; \
12290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12291 $(SET_LIB_PATH) \
12292 for flag in $(EXTRA_HOST_FLAGS); do \
12293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12294 done; \
12295 echo "Doing dvi in patch" ; \
12296 (cd patch && \
12297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12299 "RANLIB=$${RANLIB}" \
12300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12301 dvi) \
12302 || exit 1
12305 .PHONY: maybe-TAGS-patch TAGS-patch
12306 maybe-TAGS-patch:
12308 TAGS-patch: \
12309 configure-patch
12310 @[ -f ./patch/Makefile ] || exit 0; \
12311 r=`${PWD_COMMAND}`; export r; \
12312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12313 $(SET_LIB_PATH) \
12314 for flag in $(EXTRA_HOST_FLAGS); do \
12315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12316 done; \
12317 echo "Doing TAGS in patch" ; \
12318 (cd patch && \
12319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12321 "RANLIB=$${RANLIB}" \
12322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12323 TAGS) \
12324 || exit 1
12327 .PHONY: maybe-install-info-patch install-info-patch
12328 maybe-install-info-patch:
12330 install-info-patch: \
12331 configure-patch \
12332 info-patch
12333 @[ -f ./patch/Makefile ] || exit 0; \
12334 r=`${PWD_COMMAND}`; export r; \
12335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12336 $(SET_LIB_PATH) \
12337 for flag in $(EXTRA_HOST_FLAGS); do \
12338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12339 done; \
12340 echo "Doing install-info in patch" ; \
12341 (cd patch && \
12342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12344 "RANLIB=$${RANLIB}" \
12345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12346 install-info) \
12347 || exit 1
12350 .PHONY: maybe-installcheck-patch installcheck-patch
12351 maybe-installcheck-patch:
12353 installcheck-patch: \
12354 configure-patch
12355 @[ -f ./patch/Makefile ] || exit 0; \
12356 r=`${PWD_COMMAND}`; export r; \
12357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12358 $(SET_LIB_PATH) \
12359 for flag in $(EXTRA_HOST_FLAGS); do \
12360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12361 done; \
12362 echo "Doing installcheck in patch" ; \
12363 (cd patch && \
12364 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12365 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12366 "RANLIB=$${RANLIB}" \
12367 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12368 installcheck) \
12369 || exit 1
12372 .PHONY: maybe-mostlyclean-patch mostlyclean-patch
12373 maybe-mostlyclean-patch:
12375 mostlyclean-patch:
12376 @[ -f ./patch/Makefile ] || exit 0; \
12377 r=`${PWD_COMMAND}`; export r; \
12378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12379 $(SET_LIB_PATH) \
12380 for flag in $(EXTRA_HOST_FLAGS); do \
12381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12382 done; \
12383 echo "Doing mostlyclean in patch" ; \
12384 (cd patch && \
12385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12387 "RANLIB=$${RANLIB}" \
12388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12389 mostlyclean) \
12390 || exit 1
12393 .PHONY: maybe-clean-patch clean-patch
12394 maybe-clean-patch:
12396 clean-patch:
12397 @[ -f ./patch/Makefile ] || exit 0; \
12398 r=`${PWD_COMMAND}`; export r; \
12399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12400 $(SET_LIB_PATH) \
12401 for flag in $(EXTRA_HOST_FLAGS); do \
12402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12403 done; \
12404 echo "Doing clean in patch" ; \
12405 (cd patch && \
12406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12408 "RANLIB=$${RANLIB}" \
12409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12410 clean) \
12411 || exit 1
12414 .PHONY: maybe-distclean-patch distclean-patch
12415 maybe-distclean-patch:
12417 distclean-patch:
12418 @[ -f ./patch/Makefile ] || exit 0; \
12419 r=`${PWD_COMMAND}`; export r; \
12420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12421 $(SET_LIB_PATH) \
12422 for flag in $(EXTRA_HOST_FLAGS); do \
12423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12424 done; \
12425 echo "Doing distclean in patch" ; \
12426 (cd patch && \
12427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12429 "RANLIB=$${RANLIB}" \
12430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12431 distclean) \
12432 || exit 1
12435 .PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
12436 maybe-maintainer-clean-patch:
12438 maintainer-clean-patch:
12439 @[ -f ./patch/Makefile ] || exit 0; \
12440 r=`${PWD_COMMAND}`; export r; \
12441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12442 $(SET_LIB_PATH) \
12443 for flag in $(EXTRA_HOST_FLAGS); do \
12444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12445 done; \
12446 echo "Doing maintainer-clean in patch" ; \
12447 (cd patch && \
12448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12450 "RANLIB=$${RANLIB}" \
12451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12452 maintainer-clean) \
12453 || exit 1
12457 .PHONY: configure-perl maybe-configure-perl
12458 maybe-configure-perl:
12459 configure-perl:
12460 @test ! -f perl/Makefile || exit 0; \
12461 [ -d perl ] || mkdir perl; \
12462 r=`${PWD_COMMAND}`; export r; \
12463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12464 CC="$(CC)"; export CC; \
12465 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12466 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12467 CXX="$(CXX)"; export CXX; \
12468 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12469 AR="$(AR)"; export AR; \
12470 AS="$(AS)"; export AS; \
12471 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12472 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12473 LD="$(LD)"; export LD; \
12474 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
12475 NM="$(NM)"; export NM; \
12476 RANLIB="$(RANLIB)"; export RANLIB; \
12477 WINDRES="$(WINDRES)"; export WINDRES; \
12478 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12479 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12480 echo Configuring in perl; \
12481 cd perl || exit 1; \
12482 case $(srcdir) in \
12483 \.) \
12484 srcdiroption="--srcdir=."; \
12485 libsrcdir=".";; \
12486 /* | [A-Za-z]:[\\/]*) \
12487 srcdiroption="--srcdir=$(srcdir)/perl"; \
12488 libsrcdir="$$s/perl";; \
12489 *) \
12490 srcdiroption="--srcdir=../$(srcdir)/perl"; \
12491 libsrcdir="$$s/perl";; \
12492 esac; \
12493 $(SHELL) $${libsrcdir}/configure \
12494 $(HOST_CONFIGARGS) $${srcdiroption} \
12495 || exit 1
12497 .PHONY: all-perl maybe-all-perl
12498 maybe-all-perl:
12499 all-perl: configure-perl
12500 @r=`${PWD_COMMAND}`; export r; \
12501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12502 $(SET_LIB_PATH) \
12503 (cd perl && $(MAKE) $(FLAGS_TO_PASS) all)
12505 .PHONY: check-perl maybe-check-perl
12506 maybe-check-perl:
12508 check-perl:
12509 @r=`${PWD_COMMAND}`; export r; \
12510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12511 $(SET_LIB_PATH) \
12512 (cd perl && $(MAKE) $(FLAGS_TO_PASS) check)
12515 .PHONY: install-perl maybe-install-perl
12516 maybe-install-perl:
12518 install-perl: installdirs
12519 @r=`${PWD_COMMAND}`; export r; \
12520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12521 $(SET_LIB_PATH) \
12522 (cd perl && $(MAKE) $(FLAGS_TO_PASS) install)
12525 # Other targets (info, dvi, etc.)
12527 .PHONY: maybe-info-perl info-perl
12528 maybe-info-perl:
12530 info-perl: \
12531 configure-perl
12532 @[ -f ./perl/Makefile ] || exit 0; \
12533 r=`${PWD_COMMAND}`; export r; \
12534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12535 $(SET_LIB_PATH) \
12536 for flag in $(EXTRA_HOST_FLAGS); do \
12537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12538 done; \
12539 echo "Doing info in perl" ; \
12540 (cd perl && \
12541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12543 "RANLIB=$${RANLIB}" \
12544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12545 info) \
12546 || exit 1
12549 .PHONY: maybe-dvi-perl dvi-perl
12550 maybe-dvi-perl:
12552 dvi-perl: \
12553 configure-perl
12554 @[ -f ./perl/Makefile ] || exit 0; \
12555 r=`${PWD_COMMAND}`; export r; \
12556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12557 $(SET_LIB_PATH) \
12558 for flag in $(EXTRA_HOST_FLAGS); do \
12559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12560 done; \
12561 echo "Doing dvi in perl" ; \
12562 (cd perl && \
12563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12565 "RANLIB=$${RANLIB}" \
12566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12567 dvi) \
12568 || exit 1
12571 .PHONY: maybe-TAGS-perl TAGS-perl
12572 maybe-TAGS-perl:
12574 TAGS-perl: \
12575 configure-perl
12576 @[ -f ./perl/Makefile ] || exit 0; \
12577 r=`${PWD_COMMAND}`; export r; \
12578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12579 $(SET_LIB_PATH) \
12580 for flag in $(EXTRA_HOST_FLAGS); do \
12581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12582 done; \
12583 echo "Doing TAGS in perl" ; \
12584 (cd perl && \
12585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12587 "RANLIB=$${RANLIB}" \
12588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12589 TAGS) \
12590 || exit 1
12593 .PHONY: maybe-install-info-perl install-info-perl
12594 maybe-install-info-perl:
12596 install-info-perl: \
12597 configure-perl \
12598 info-perl
12599 @[ -f ./perl/Makefile ] || exit 0; \
12600 r=`${PWD_COMMAND}`; export r; \
12601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12602 $(SET_LIB_PATH) \
12603 for flag in $(EXTRA_HOST_FLAGS); do \
12604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12605 done; \
12606 echo "Doing install-info in perl" ; \
12607 (cd perl && \
12608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12610 "RANLIB=$${RANLIB}" \
12611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12612 install-info) \
12613 || exit 1
12616 .PHONY: maybe-installcheck-perl installcheck-perl
12617 maybe-installcheck-perl:
12619 installcheck-perl: \
12620 configure-perl
12621 @[ -f ./perl/Makefile ] || exit 0; \
12622 r=`${PWD_COMMAND}`; export r; \
12623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12624 $(SET_LIB_PATH) \
12625 for flag in $(EXTRA_HOST_FLAGS); do \
12626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12627 done; \
12628 echo "Doing installcheck in perl" ; \
12629 (cd perl && \
12630 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12631 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12632 "RANLIB=$${RANLIB}" \
12633 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12634 installcheck) \
12635 || exit 1
12638 .PHONY: maybe-mostlyclean-perl mostlyclean-perl
12639 maybe-mostlyclean-perl:
12641 mostlyclean-perl:
12642 @[ -f ./perl/Makefile ] || exit 0; \
12643 r=`${PWD_COMMAND}`; export r; \
12644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12645 $(SET_LIB_PATH) \
12646 for flag in $(EXTRA_HOST_FLAGS); do \
12647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12648 done; \
12649 echo "Doing mostlyclean in perl" ; \
12650 (cd perl && \
12651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12653 "RANLIB=$${RANLIB}" \
12654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12655 mostlyclean) \
12656 || exit 1
12659 .PHONY: maybe-clean-perl clean-perl
12660 maybe-clean-perl:
12662 clean-perl:
12663 @[ -f ./perl/Makefile ] || exit 0; \
12664 r=`${PWD_COMMAND}`; export r; \
12665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12666 $(SET_LIB_PATH) \
12667 for flag in $(EXTRA_HOST_FLAGS); do \
12668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12669 done; \
12670 echo "Doing clean in perl" ; \
12671 (cd perl && \
12672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12674 "RANLIB=$${RANLIB}" \
12675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12676 clean) \
12677 || exit 1
12680 .PHONY: maybe-distclean-perl distclean-perl
12681 maybe-distclean-perl:
12683 distclean-perl:
12684 @[ -f ./perl/Makefile ] || exit 0; \
12685 r=`${PWD_COMMAND}`; export r; \
12686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12687 $(SET_LIB_PATH) \
12688 for flag in $(EXTRA_HOST_FLAGS); do \
12689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12690 done; \
12691 echo "Doing distclean in perl" ; \
12692 (cd perl && \
12693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12695 "RANLIB=$${RANLIB}" \
12696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12697 distclean) \
12698 || exit 1
12701 .PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
12702 maybe-maintainer-clean-perl:
12704 maintainer-clean-perl:
12705 @[ -f ./perl/Makefile ] || exit 0; \
12706 r=`${PWD_COMMAND}`; export r; \
12707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12708 $(SET_LIB_PATH) \
12709 for flag in $(EXTRA_HOST_FLAGS); do \
12710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12711 done; \
12712 echo "Doing maintainer-clean in perl" ; \
12713 (cd perl && \
12714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12716 "RANLIB=$${RANLIB}" \
12717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12718 maintainer-clean) \
12719 || exit 1
12723 .PHONY: configure-prms maybe-configure-prms
12724 maybe-configure-prms:
12725 configure-prms:
12726 @test ! -f prms/Makefile || exit 0; \
12727 [ -d prms ] || mkdir prms; \
12728 r=`${PWD_COMMAND}`; export r; \
12729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12730 CC="$(CC)"; export CC; \
12731 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12732 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12733 CXX="$(CXX)"; export CXX; \
12734 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
12735 AR="$(AR)"; export AR; \
12736 AS="$(AS)"; export AS; \
12737 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
12738 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
12739 LD="$(LD)"; export LD; \
12740 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
12741 NM="$(NM)"; export NM; \
12742 RANLIB="$(RANLIB)"; export RANLIB; \
12743 WINDRES="$(WINDRES)"; export WINDRES; \
12744 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
12745 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
12746 echo Configuring in prms; \
12747 cd prms || exit 1; \
12748 case $(srcdir) in \
12749 \.) \
12750 srcdiroption="--srcdir=."; \
12751 libsrcdir=".";; \
12752 /* | [A-Za-z]:[\\/]*) \
12753 srcdiroption="--srcdir=$(srcdir)/prms"; \
12754 libsrcdir="$$s/prms";; \
12755 *) \
12756 srcdiroption="--srcdir=../$(srcdir)/prms"; \
12757 libsrcdir="$$s/prms";; \
12758 esac; \
12759 $(SHELL) $${libsrcdir}/configure \
12760 $(HOST_CONFIGARGS) $${srcdiroption} \
12761 || exit 1
12763 .PHONY: all-prms maybe-all-prms
12764 maybe-all-prms:
12765 all-prms: configure-prms
12766 @r=`${PWD_COMMAND}`; export r; \
12767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12768 $(SET_LIB_PATH) \
12769 (cd prms && $(MAKE) $(FLAGS_TO_PASS) all)
12771 .PHONY: check-prms maybe-check-prms
12772 maybe-check-prms:
12774 check-prms:
12775 @r=`${PWD_COMMAND}`; export r; \
12776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12777 $(SET_LIB_PATH) \
12778 (cd prms && $(MAKE) $(FLAGS_TO_PASS) check)
12781 .PHONY: install-prms maybe-install-prms
12782 maybe-install-prms:
12784 install-prms: installdirs
12785 @r=`${PWD_COMMAND}`; export r; \
12786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12787 $(SET_LIB_PATH) \
12788 (cd prms && $(MAKE) $(FLAGS_TO_PASS) install)
12791 # Other targets (info, dvi, etc.)
12793 .PHONY: maybe-info-prms info-prms
12794 maybe-info-prms:
12796 info-prms: \
12797 configure-prms
12798 @[ -f ./prms/Makefile ] || exit 0; \
12799 r=`${PWD_COMMAND}`; export r; \
12800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12801 $(SET_LIB_PATH) \
12802 for flag in $(EXTRA_HOST_FLAGS); do \
12803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12804 done; \
12805 echo "Doing info in prms" ; \
12806 (cd prms && \
12807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12809 "RANLIB=$${RANLIB}" \
12810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12811 info) \
12812 || exit 1
12815 .PHONY: maybe-dvi-prms dvi-prms
12816 maybe-dvi-prms:
12818 dvi-prms: \
12819 configure-prms
12820 @[ -f ./prms/Makefile ] || exit 0; \
12821 r=`${PWD_COMMAND}`; export r; \
12822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12823 $(SET_LIB_PATH) \
12824 for flag in $(EXTRA_HOST_FLAGS); do \
12825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12826 done; \
12827 echo "Doing dvi in prms" ; \
12828 (cd prms && \
12829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12831 "RANLIB=$${RANLIB}" \
12832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12833 dvi) \
12834 || exit 1
12837 .PHONY: maybe-TAGS-prms TAGS-prms
12838 maybe-TAGS-prms:
12840 TAGS-prms: \
12841 configure-prms
12842 @[ -f ./prms/Makefile ] || exit 0; \
12843 r=`${PWD_COMMAND}`; export r; \
12844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12845 $(SET_LIB_PATH) \
12846 for flag in $(EXTRA_HOST_FLAGS); do \
12847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12848 done; \
12849 echo "Doing TAGS in prms" ; \
12850 (cd prms && \
12851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12853 "RANLIB=$${RANLIB}" \
12854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12855 TAGS) \
12856 || exit 1
12859 .PHONY: maybe-install-info-prms install-info-prms
12860 maybe-install-info-prms:
12862 install-info-prms: \
12863 configure-prms \
12864 info-prms
12865 @[ -f ./prms/Makefile ] || exit 0; \
12866 r=`${PWD_COMMAND}`; export r; \
12867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12868 $(SET_LIB_PATH) \
12869 for flag in $(EXTRA_HOST_FLAGS); do \
12870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12871 done; \
12872 echo "Doing install-info in prms" ; \
12873 (cd prms && \
12874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12876 "RANLIB=$${RANLIB}" \
12877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12878 install-info) \
12879 || exit 1
12882 .PHONY: maybe-installcheck-prms installcheck-prms
12883 maybe-installcheck-prms:
12885 installcheck-prms: \
12886 configure-prms
12887 @[ -f ./prms/Makefile ] || exit 0; \
12888 r=`${PWD_COMMAND}`; export r; \
12889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12890 $(SET_LIB_PATH) \
12891 for flag in $(EXTRA_HOST_FLAGS); do \
12892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12893 done; \
12894 echo "Doing installcheck in prms" ; \
12895 (cd prms && \
12896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12898 "RANLIB=$${RANLIB}" \
12899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12900 installcheck) \
12901 || exit 1
12904 .PHONY: maybe-mostlyclean-prms mostlyclean-prms
12905 maybe-mostlyclean-prms:
12907 mostlyclean-prms:
12908 @[ -f ./prms/Makefile ] || exit 0; \
12909 r=`${PWD_COMMAND}`; export r; \
12910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12911 $(SET_LIB_PATH) \
12912 for flag in $(EXTRA_HOST_FLAGS); do \
12913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12914 done; \
12915 echo "Doing mostlyclean in prms" ; \
12916 (cd prms && \
12917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12919 "RANLIB=$${RANLIB}" \
12920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12921 mostlyclean) \
12922 || exit 1
12925 .PHONY: maybe-clean-prms clean-prms
12926 maybe-clean-prms:
12928 clean-prms:
12929 @[ -f ./prms/Makefile ] || exit 0; \
12930 r=`${PWD_COMMAND}`; export r; \
12931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12932 $(SET_LIB_PATH) \
12933 for flag in $(EXTRA_HOST_FLAGS); do \
12934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12935 done; \
12936 echo "Doing clean in prms" ; \
12937 (cd prms && \
12938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12940 "RANLIB=$${RANLIB}" \
12941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12942 clean) \
12943 || exit 1
12946 .PHONY: maybe-distclean-prms distclean-prms
12947 maybe-distclean-prms:
12949 distclean-prms:
12950 @[ -f ./prms/Makefile ] || exit 0; \
12951 r=`${PWD_COMMAND}`; export r; \
12952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12953 $(SET_LIB_PATH) \
12954 for flag in $(EXTRA_HOST_FLAGS); do \
12955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12956 done; \
12957 echo "Doing distclean in prms" ; \
12958 (cd prms && \
12959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12961 "RANLIB=$${RANLIB}" \
12962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12963 distclean) \
12964 || exit 1
12967 .PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
12968 maybe-maintainer-clean-prms:
12970 maintainer-clean-prms:
12971 @[ -f ./prms/Makefile ] || exit 0; \
12972 r=`${PWD_COMMAND}`; export r; \
12973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12974 $(SET_LIB_PATH) \
12975 for flag in $(EXTRA_HOST_FLAGS); do \
12976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12977 done; \
12978 echo "Doing maintainer-clean in prms" ; \
12979 (cd prms && \
12980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12982 "RANLIB=$${RANLIB}" \
12983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12984 maintainer-clean) \
12985 || exit 1
12989 .PHONY: configure-rcs maybe-configure-rcs
12990 maybe-configure-rcs:
12991 configure-rcs:
12992 @test ! -f rcs/Makefile || exit 0; \
12993 [ -d rcs ] || mkdir rcs; \
12994 r=`${PWD_COMMAND}`; export r; \
12995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12996 CC="$(CC)"; export CC; \
12997 CFLAGS="$(CFLAGS)"; export CFLAGS; \
12998 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
12999 CXX="$(CXX)"; export CXX; \
13000 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13001 AR="$(AR)"; export AR; \
13002 AS="$(AS)"; export AS; \
13003 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13004 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13005 LD="$(LD)"; export LD; \
13006 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
13007 NM="$(NM)"; export NM; \
13008 RANLIB="$(RANLIB)"; export RANLIB; \
13009 WINDRES="$(WINDRES)"; export WINDRES; \
13010 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13011 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13012 echo Configuring in rcs; \
13013 cd rcs || exit 1; \
13014 case $(srcdir) in \
13015 \.) \
13016 srcdiroption="--srcdir=."; \
13017 libsrcdir=".";; \
13018 /* | [A-Za-z]:[\\/]*) \
13019 srcdiroption="--srcdir=$(srcdir)/rcs"; \
13020 libsrcdir="$$s/rcs";; \
13021 *) \
13022 srcdiroption="--srcdir=../$(srcdir)/rcs"; \
13023 libsrcdir="$$s/rcs";; \
13024 esac; \
13025 $(SHELL) $${libsrcdir}/configure \
13026 $(HOST_CONFIGARGS) $${srcdiroption} \
13027 || exit 1
13029 .PHONY: all-rcs maybe-all-rcs
13030 maybe-all-rcs:
13031 all-rcs: configure-rcs
13032 @r=`${PWD_COMMAND}`; export r; \
13033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13034 $(SET_LIB_PATH) \
13035 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all)
13037 .PHONY: check-rcs maybe-check-rcs
13038 maybe-check-rcs:
13040 check-rcs:
13041 @r=`${PWD_COMMAND}`; export r; \
13042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13043 $(SET_LIB_PATH) \
13044 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check)
13047 .PHONY: install-rcs maybe-install-rcs
13048 maybe-install-rcs:
13050 install-rcs: installdirs
13051 @r=`${PWD_COMMAND}`; export r; \
13052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13053 $(SET_LIB_PATH) \
13054 (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install)
13057 # Other targets (info, dvi, etc.)
13059 .PHONY: maybe-info-rcs info-rcs
13060 maybe-info-rcs:
13062 info-rcs: \
13063 configure-rcs
13064 @[ -f ./rcs/Makefile ] || exit 0; \
13065 r=`${PWD_COMMAND}`; export r; \
13066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13067 $(SET_LIB_PATH) \
13068 for flag in $(EXTRA_HOST_FLAGS); do \
13069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13070 done; \
13071 echo "Doing info in rcs" ; \
13072 (cd rcs && \
13073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13075 "RANLIB=$${RANLIB}" \
13076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13077 info) \
13078 || exit 1
13081 .PHONY: maybe-dvi-rcs dvi-rcs
13082 maybe-dvi-rcs:
13084 dvi-rcs: \
13085 configure-rcs
13086 @[ -f ./rcs/Makefile ] || exit 0; \
13087 r=`${PWD_COMMAND}`; export r; \
13088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13089 $(SET_LIB_PATH) \
13090 for flag in $(EXTRA_HOST_FLAGS); do \
13091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13092 done; \
13093 echo "Doing dvi in rcs" ; \
13094 (cd rcs && \
13095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13097 "RANLIB=$${RANLIB}" \
13098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13099 dvi) \
13100 || exit 1
13103 .PHONY: maybe-TAGS-rcs TAGS-rcs
13104 maybe-TAGS-rcs:
13106 TAGS-rcs: \
13107 configure-rcs
13108 @[ -f ./rcs/Makefile ] || exit 0; \
13109 r=`${PWD_COMMAND}`; export r; \
13110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13111 $(SET_LIB_PATH) \
13112 for flag in $(EXTRA_HOST_FLAGS); do \
13113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13114 done; \
13115 echo "Doing TAGS in rcs" ; \
13116 (cd rcs && \
13117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13119 "RANLIB=$${RANLIB}" \
13120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13121 TAGS) \
13122 || exit 1
13125 .PHONY: maybe-install-info-rcs install-info-rcs
13126 maybe-install-info-rcs:
13128 install-info-rcs: \
13129 configure-rcs \
13130 info-rcs
13131 @[ -f ./rcs/Makefile ] || exit 0; \
13132 r=`${PWD_COMMAND}`; export r; \
13133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13134 $(SET_LIB_PATH) \
13135 for flag in $(EXTRA_HOST_FLAGS); do \
13136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13137 done; \
13138 echo "Doing install-info in rcs" ; \
13139 (cd rcs && \
13140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13142 "RANLIB=$${RANLIB}" \
13143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13144 install-info) \
13145 || exit 1
13148 .PHONY: maybe-installcheck-rcs installcheck-rcs
13149 maybe-installcheck-rcs:
13151 installcheck-rcs: \
13152 configure-rcs
13153 @[ -f ./rcs/Makefile ] || exit 0; \
13154 r=`${PWD_COMMAND}`; export r; \
13155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13156 $(SET_LIB_PATH) \
13157 for flag in $(EXTRA_HOST_FLAGS); do \
13158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13159 done; \
13160 echo "Doing installcheck in rcs" ; \
13161 (cd rcs && \
13162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13164 "RANLIB=$${RANLIB}" \
13165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13166 installcheck) \
13167 || exit 1
13170 .PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
13171 maybe-mostlyclean-rcs:
13173 mostlyclean-rcs:
13174 @[ -f ./rcs/Makefile ] || exit 0; \
13175 r=`${PWD_COMMAND}`; export r; \
13176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13177 $(SET_LIB_PATH) \
13178 for flag in $(EXTRA_HOST_FLAGS); do \
13179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13180 done; \
13181 echo "Doing mostlyclean in rcs" ; \
13182 (cd rcs && \
13183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13185 "RANLIB=$${RANLIB}" \
13186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13187 mostlyclean) \
13188 || exit 1
13191 .PHONY: maybe-clean-rcs clean-rcs
13192 maybe-clean-rcs:
13194 clean-rcs:
13195 @[ -f ./rcs/Makefile ] || exit 0; \
13196 r=`${PWD_COMMAND}`; export r; \
13197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13198 $(SET_LIB_PATH) \
13199 for flag in $(EXTRA_HOST_FLAGS); do \
13200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13201 done; \
13202 echo "Doing clean in rcs" ; \
13203 (cd rcs && \
13204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13206 "RANLIB=$${RANLIB}" \
13207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13208 clean) \
13209 || exit 1
13212 .PHONY: maybe-distclean-rcs distclean-rcs
13213 maybe-distclean-rcs:
13215 distclean-rcs:
13216 @[ -f ./rcs/Makefile ] || exit 0; \
13217 r=`${PWD_COMMAND}`; export r; \
13218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13219 $(SET_LIB_PATH) \
13220 for flag in $(EXTRA_HOST_FLAGS); do \
13221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13222 done; \
13223 echo "Doing distclean in rcs" ; \
13224 (cd rcs && \
13225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13227 "RANLIB=$${RANLIB}" \
13228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13229 distclean) \
13230 || exit 1
13233 .PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
13234 maybe-maintainer-clean-rcs:
13236 maintainer-clean-rcs:
13237 @[ -f ./rcs/Makefile ] || exit 0; \
13238 r=`${PWD_COMMAND}`; export r; \
13239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13240 $(SET_LIB_PATH) \
13241 for flag in $(EXTRA_HOST_FLAGS); do \
13242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13243 done; \
13244 echo "Doing maintainer-clean in rcs" ; \
13245 (cd rcs && \
13246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13248 "RANLIB=$${RANLIB}" \
13249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13250 maintainer-clean) \
13251 || exit 1
13255 .PHONY: configure-readline maybe-configure-readline
13256 maybe-configure-readline:
13257 configure-readline:
13258 @test ! -f readline/Makefile || exit 0; \
13259 [ -d readline ] || mkdir readline; \
13260 r=`${PWD_COMMAND}`; export r; \
13261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13262 CC="$(CC)"; export CC; \
13263 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13264 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13265 CXX="$(CXX)"; export CXX; \
13266 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13267 AR="$(AR)"; export AR; \
13268 AS="$(AS)"; export AS; \
13269 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13270 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13271 LD="$(LD)"; export LD; \
13272 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
13273 NM="$(NM)"; export NM; \
13274 RANLIB="$(RANLIB)"; export RANLIB; \
13275 WINDRES="$(WINDRES)"; export WINDRES; \
13276 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13277 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13278 echo Configuring in readline; \
13279 cd readline || exit 1; \
13280 case $(srcdir) in \
13281 \.) \
13282 srcdiroption="--srcdir=."; \
13283 libsrcdir=".";; \
13284 /* | [A-Za-z]:[\\/]*) \
13285 srcdiroption="--srcdir=$(srcdir)/readline"; \
13286 libsrcdir="$$s/readline";; \
13287 *) \
13288 srcdiroption="--srcdir=../$(srcdir)/readline"; \
13289 libsrcdir="$$s/readline";; \
13290 esac; \
13291 $(SHELL) $${libsrcdir}/configure \
13292 $(HOST_CONFIGARGS) $${srcdiroption} \
13293 || exit 1
13295 .PHONY: all-readline maybe-all-readline
13296 maybe-all-readline:
13297 all-readline: configure-readline
13298 @r=`${PWD_COMMAND}`; export r; \
13299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13300 $(SET_LIB_PATH) \
13301 (cd readline && $(MAKE) $(FLAGS_TO_PASS) all)
13303 .PHONY: check-readline maybe-check-readline
13304 maybe-check-readline:
13306 check-readline:
13307 @r=`${PWD_COMMAND}`; export r; \
13308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13309 $(SET_LIB_PATH) \
13310 (cd readline && $(MAKE) $(FLAGS_TO_PASS) check)
13313 .PHONY: install-readline maybe-install-readline
13314 maybe-install-readline:
13316 install-readline: installdirs
13317 @r=`${PWD_COMMAND}`; export r; \
13318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13319 $(SET_LIB_PATH) \
13320 (cd readline && $(MAKE) $(FLAGS_TO_PASS) install)
13323 # Other targets (info, dvi, etc.)
13325 .PHONY: maybe-info-readline info-readline
13326 maybe-info-readline:
13328 info-readline: \
13329 configure-readline
13330 @[ -f ./readline/Makefile ] || exit 0; \
13331 r=`${PWD_COMMAND}`; export r; \
13332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13333 $(SET_LIB_PATH) \
13334 for flag in $(EXTRA_HOST_FLAGS); do \
13335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13336 done; \
13337 echo "Doing info in readline" ; \
13338 (cd readline && \
13339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13341 "RANLIB=$${RANLIB}" \
13342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13343 info) \
13344 || exit 1
13347 .PHONY: maybe-dvi-readline dvi-readline
13348 maybe-dvi-readline:
13350 dvi-readline: \
13351 configure-readline
13352 @[ -f ./readline/Makefile ] || exit 0; \
13353 r=`${PWD_COMMAND}`; export r; \
13354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13355 $(SET_LIB_PATH) \
13356 for flag in $(EXTRA_HOST_FLAGS); do \
13357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13358 done; \
13359 echo "Doing dvi in readline" ; \
13360 (cd readline && \
13361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13363 "RANLIB=$${RANLIB}" \
13364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13365 dvi) \
13366 || exit 1
13369 .PHONY: maybe-TAGS-readline TAGS-readline
13370 maybe-TAGS-readline:
13372 TAGS-readline: \
13373 configure-readline
13374 @[ -f ./readline/Makefile ] || exit 0; \
13375 r=`${PWD_COMMAND}`; export r; \
13376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13377 $(SET_LIB_PATH) \
13378 for flag in $(EXTRA_HOST_FLAGS); do \
13379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13380 done; \
13381 echo "Doing TAGS in readline" ; \
13382 (cd readline && \
13383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13385 "RANLIB=$${RANLIB}" \
13386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13387 TAGS) \
13388 || exit 1
13391 .PHONY: maybe-install-info-readline install-info-readline
13392 maybe-install-info-readline:
13394 install-info-readline: \
13395 configure-readline \
13396 info-readline
13397 @[ -f ./readline/Makefile ] || exit 0; \
13398 r=`${PWD_COMMAND}`; export r; \
13399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13400 $(SET_LIB_PATH) \
13401 for flag in $(EXTRA_HOST_FLAGS); do \
13402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13403 done; \
13404 echo "Doing install-info in readline" ; \
13405 (cd readline && \
13406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13408 "RANLIB=$${RANLIB}" \
13409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13410 install-info) \
13411 || exit 1
13414 .PHONY: maybe-installcheck-readline installcheck-readline
13415 maybe-installcheck-readline:
13417 installcheck-readline: \
13418 configure-readline
13419 @[ -f ./readline/Makefile ] || exit 0; \
13420 r=`${PWD_COMMAND}`; export r; \
13421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13422 $(SET_LIB_PATH) \
13423 for flag in $(EXTRA_HOST_FLAGS); do \
13424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13425 done; \
13426 echo "Doing installcheck in readline" ; \
13427 (cd readline && \
13428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13430 "RANLIB=$${RANLIB}" \
13431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13432 installcheck) \
13433 || exit 1
13436 .PHONY: maybe-mostlyclean-readline mostlyclean-readline
13437 maybe-mostlyclean-readline:
13439 mostlyclean-readline:
13440 @[ -f ./readline/Makefile ] || exit 0; \
13441 r=`${PWD_COMMAND}`; export r; \
13442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13443 $(SET_LIB_PATH) \
13444 for flag in $(EXTRA_HOST_FLAGS); do \
13445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13446 done; \
13447 echo "Doing mostlyclean in readline" ; \
13448 (cd readline && \
13449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13451 "RANLIB=$${RANLIB}" \
13452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13453 mostlyclean) \
13454 || exit 1
13457 .PHONY: maybe-clean-readline clean-readline
13458 maybe-clean-readline:
13460 clean-readline:
13461 @[ -f ./readline/Makefile ] || exit 0; \
13462 r=`${PWD_COMMAND}`; export r; \
13463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13464 $(SET_LIB_PATH) \
13465 for flag in $(EXTRA_HOST_FLAGS); do \
13466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13467 done; \
13468 echo "Doing clean in readline" ; \
13469 (cd readline && \
13470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13472 "RANLIB=$${RANLIB}" \
13473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13474 clean) \
13475 || exit 1
13478 .PHONY: maybe-distclean-readline distclean-readline
13479 maybe-distclean-readline:
13481 distclean-readline:
13482 @[ -f ./readline/Makefile ] || exit 0; \
13483 r=`${PWD_COMMAND}`; export r; \
13484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13485 $(SET_LIB_PATH) \
13486 for flag in $(EXTRA_HOST_FLAGS); do \
13487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13488 done; \
13489 echo "Doing distclean in readline" ; \
13490 (cd readline && \
13491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13493 "RANLIB=$${RANLIB}" \
13494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13495 distclean) \
13496 || exit 1
13499 .PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
13500 maybe-maintainer-clean-readline:
13502 maintainer-clean-readline:
13503 @[ -f ./readline/Makefile ] || exit 0; \
13504 r=`${PWD_COMMAND}`; export r; \
13505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13506 $(SET_LIB_PATH) \
13507 for flag in $(EXTRA_HOST_FLAGS); do \
13508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13509 done; \
13510 echo "Doing maintainer-clean in readline" ; \
13511 (cd readline && \
13512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13514 "RANLIB=$${RANLIB}" \
13515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13516 maintainer-clean) \
13517 || exit 1
13521 .PHONY: configure-release maybe-configure-release
13522 maybe-configure-release:
13523 configure-release:
13524 @test ! -f release/Makefile || exit 0; \
13525 [ -d release ] || mkdir release; \
13526 r=`${PWD_COMMAND}`; export r; \
13527 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13528 CC="$(CC)"; export CC; \
13529 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13530 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13531 CXX="$(CXX)"; export CXX; \
13532 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13533 AR="$(AR)"; export AR; \
13534 AS="$(AS)"; export AS; \
13535 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13536 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13537 LD="$(LD)"; export LD; \
13538 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
13539 NM="$(NM)"; export NM; \
13540 RANLIB="$(RANLIB)"; export RANLIB; \
13541 WINDRES="$(WINDRES)"; export WINDRES; \
13542 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13543 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13544 echo Configuring in release; \
13545 cd release || exit 1; \
13546 case $(srcdir) in \
13547 \.) \
13548 srcdiroption="--srcdir=."; \
13549 libsrcdir=".";; \
13550 /* | [A-Za-z]:[\\/]*) \
13551 srcdiroption="--srcdir=$(srcdir)/release"; \
13552 libsrcdir="$$s/release";; \
13553 *) \
13554 srcdiroption="--srcdir=../$(srcdir)/release"; \
13555 libsrcdir="$$s/release";; \
13556 esac; \
13557 $(SHELL) $${libsrcdir}/configure \
13558 $(HOST_CONFIGARGS) $${srcdiroption} \
13559 || exit 1
13561 .PHONY: all-release maybe-all-release
13562 maybe-all-release:
13563 all-release: configure-release
13564 @r=`${PWD_COMMAND}`; export r; \
13565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13566 $(SET_LIB_PATH) \
13567 (cd release && $(MAKE) $(FLAGS_TO_PASS) all)
13569 .PHONY: check-release maybe-check-release
13570 maybe-check-release:
13572 check-release:
13575 .PHONY: install-release maybe-install-release
13576 maybe-install-release:
13578 install-release:
13581 # Other targets (info, dvi, etc.)
13583 .PHONY: maybe-info-release info-release
13584 maybe-info-release:
13586 info-release: \
13587 configure-release
13588 @[ -f ./release/Makefile ] || exit 0; \
13589 r=`${PWD_COMMAND}`; export r; \
13590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13591 $(SET_LIB_PATH) \
13592 for flag in $(EXTRA_HOST_FLAGS); do \
13593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13594 done; \
13595 echo "Doing info in release" ; \
13596 (cd release && \
13597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13599 "RANLIB=$${RANLIB}" \
13600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13601 info) \
13602 || exit 1
13605 .PHONY: maybe-dvi-release dvi-release
13606 maybe-dvi-release:
13608 dvi-release: \
13609 configure-release
13610 @[ -f ./release/Makefile ] || exit 0; \
13611 r=`${PWD_COMMAND}`; export r; \
13612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13613 $(SET_LIB_PATH) \
13614 for flag in $(EXTRA_HOST_FLAGS); do \
13615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13616 done; \
13617 echo "Doing dvi in release" ; \
13618 (cd release && \
13619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13621 "RANLIB=$${RANLIB}" \
13622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13623 dvi) \
13624 || exit 1
13627 .PHONY: maybe-TAGS-release TAGS-release
13628 maybe-TAGS-release:
13630 TAGS-release: \
13631 configure-release
13632 @[ -f ./release/Makefile ] || exit 0; \
13633 r=`${PWD_COMMAND}`; export r; \
13634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13635 $(SET_LIB_PATH) \
13636 for flag in $(EXTRA_HOST_FLAGS); do \
13637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13638 done; \
13639 echo "Doing TAGS in release" ; \
13640 (cd release && \
13641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13643 "RANLIB=$${RANLIB}" \
13644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13645 TAGS) \
13646 || exit 1
13649 .PHONY: maybe-install-info-release install-info-release
13650 maybe-install-info-release:
13652 install-info-release: \
13653 configure-release \
13654 info-release
13655 @[ -f ./release/Makefile ] || exit 0; \
13656 r=`${PWD_COMMAND}`; export r; \
13657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13658 $(SET_LIB_PATH) \
13659 for flag in $(EXTRA_HOST_FLAGS); do \
13660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13661 done; \
13662 echo "Doing install-info in release" ; \
13663 (cd release && \
13664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13666 "RANLIB=$${RANLIB}" \
13667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13668 install-info) \
13669 || exit 1
13672 .PHONY: maybe-installcheck-release installcheck-release
13673 maybe-installcheck-release:
13675 installcheck-release: \
13676 configure-release
13677 @[ -f ./release/Makefile ] || exit 0; \
13678 r=`${PWD_COMMAND}`; export r; \
13679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13680 $(SET_LIB_PATH) \
13681 for flag in $(EXTRA_HOST_FLAGS); do \
13682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13683 done; \
13684 echo "Doing installcheck in release" ; \
13685 (cd release && \
13686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13688 "RANLIB=$${RANLIB}" \
13689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13690 installcheck) \
13691 || exit 1
13694 .PHONY: maybe-mostlyclean-release mostlyclean-release
13695 maybe-mostlyclean-release:
13697 mostlyclean-release:
13698 @[ -f ./release/Makefile ] || exit 0; \
13699 r=`${PWD_COMMAND}`; export r; \
13700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13701 $(SET_LIB_PATH) \
13702 for flag in $(EXTRA_HOST_FLAGS); do \
13703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13704 done; \
13705 echo "Doing mostlyclean in release" ; \
13706 (cd release && \
13707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13709 "RANLIB=$${RANLIB}" \
13710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13711 mostlyclean) \
13712 || exit 1
13715 .PHONY: maybe-clean-release clean-release
13716 maybe-clean-release:
13718 clean-release:
13719 @[ -f ./release/Makefile ] || exit 0; \
13720 r=`${PWD_COMMAND}`; export r; \
13721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13722 $(SET_LIB_PATH) \
13723 for flag in $(EXTRA_HOST_FLAGS); do \
13724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13725 done; \
13726 echo "Doing clean in release" ; \
13727 (cd release && \
13728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13730 "RANLIB=$${RANLIB}" \
13731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13732 clean) \
13733 || exit 1
13736 .PHONY: maybe-distclean-release distclean-release
13737 maybe-distclean-release:
13739 distclean-release:
13740 @[ -f ./release/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 distclean in release" ; \
13748 (cd release && \
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 distclean) \
13754 || exit 1
13757 .PHONY: maybe-maintainer-clean-release maintainer-clean-release
13758 maybe-maintainer-clean-release:
13760 maintainer-clean-release:
13761 @[ -f ./release/Makefile ] || exit 0; \
13762 r=`${PWD_COMMAND}`; export r; \
13763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13764 $(SET_LIB_PATH) \
13765 for flag in $(EXTRA_HOST_FLAGS); do \
13766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13767 done; \
13768 echo "Doing maintainer-clean in release" ; \
13769 (cd release && \
13770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13772 "RANLIB=$${RANLIB}" \
13773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13774 maintainer-clean) \
13775 || exit 1
13779 .PHONY: configure-recode maybe-configure-recode
13780 maybe-configure-recode:
13781 configure-recode:
13782 @test ! -f recode/Makefile || exit 0; \
13783 [ -d recode ] || mkdir recode; \
13784 r=`${PWD_COMMAND}`; export r; \
13785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13786 CC="$(CC)"; export CC; \
13787 CFLAGS="$(CFLAGS)"; export CFLAGS; \
13788 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
13789 CXX="$(CXX)"; export CXX; \
13790 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
13791 AR="$(AR)"; export AR; \
13792 AS="$(AS)"; export AS; \
13793 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
13794 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
13795 LD="$(LD)"; export LD; \
13796 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
13797 NM="$(NM)"; export NM; \
13798 RANLIB="$(RANLIB)"; export RANLIB; \
13799 WINDRES="$(WINDRES)"; export WINDRES; \
13800 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
13801 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
13802 echo Configuring in recode; \
13803 cd recode || exit 1; \
13804 case $(srcdir) in \
13805 \.) \
13806 srcdiroption="--srcdir=."; \
13807 libsrcdir=".";; \
13808 /* | [A-Za-z]:[\\/]*) \
13809 srcdiroption="--srcdir=$(srcdir)/recode"; \
13810 libsrcdir="$$s/recode";; \
13811 *) \
13812 srcdiroption="--srcdir=../$(srcdir)/recode"; \
13813 libsrcdir="$$s/recode";; \
13814 esac; \
13815 $(SHELL) $${libsrcdir}/configure \
13816 $(HOST_CONFIGARGS) $${srcdiroption} \
13817 || exit 1
13819 .PHONY: all-recode maybe-all-recode
13820 maybe-all-recode:
13821 all-recode: configure-recode
13822 @r=`${PWD_COMMAND}`; export r; \
13823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13824 $(SET_LIB_PATH) \
13825 (cd recode && $(MAKE) $(FLAGS_TO_PASS) all)
13827 .PHONY: check-recode maybe-check-recode
13828 maybe-check-recode:
13830 check-recode:
13831 @r=`${PWD_COMMAND}`; export r; \
13832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13833 $(SET_LIB_PATH) \
13834 (cd recode && $(MAKE) $(FLAGS_TO_PASS) check)
13837 .PHONY: install-recode maybe-install-recode
13838 maybe-install-recode:
13840 install-recode: installdirs
13841 @r=`${PWD_COMMAND}`; export r; \
13842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13843 $(SET_LIB_PATH) \
13844 (cd recode && $(MAKE) $(FLAGS_TO_PASS) install)
13847 # Other targets (info, dvi, etc.)
13849 .PHONY: maybe-info-recode info-recode
13850 maybe-info-recode:
13852 info-recode: \
13853 configure-recode
13854 @[ -f ./recode/Makefile ] || exit 0; \
13855 r=`${PWD_COMMAND}`; export r; \
13856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13857 $(SET_LIB_PATH) \
13858 for flag in $(EXTRA_HOST_FLAGS); do \
13859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13860 done; \
13861 echo "Doing info in recode" ; \
13862 (cd recode && \
13863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13865 "RANLIB=$${RANLIB}" \
13866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13867 info) \
13868 || exit 1
13871 .PHONY: maybe-dvi-recode dvi-recode
13872 maybe-dvi-recode:
13874 dvi-recode: \
13875 configure-recode
13876 @[ -f ./recode/Makefile ] || exit 0; \
13877 r=`${PWD_COMMAND}`; export r; \
13878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13879 $(SET_LIB_PATH) \
13880 for flag in $(EXTRA_HOST_FLAGS); do \
13881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13882 done; \
13883 echo "Doing dvi in recode" ; \
13884 (cd recode && \
13885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13887 "RANLIB=$${RANLIB}" \
13888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13889 dvi) \
13890 || exit 1
13893 .PHONY: maybe-TAGS-recode TAGS-recode
13894 maybe-TAGS-recode:
13896 TAGS-recode: \
13897 configure-recode
13898 @[ -f ./recode/Makefile ] || exit 0; \
13899 r=`${PWD_COMMAND}`; export r; \
13900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13901 $(SET_LIB_PATH) \
13902 for flag in $(EXTRA_HOST_FLAGS); do \
13903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13904 done; \
13905 echo "Doing TAGS in recode" ; \
13906 (cd recode && \
13907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13909 "RANLIB=$${RANLIB}" \
13910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13911 TAGS) \
13912 || exit 1
13915 .PHONY: maybe-install-info-recode install-info-recode
13916 maybe-install-info-recode:
13918 install-info-recode: \
13919 configure-recode \
13920 info-recode
13921 @[ -f ./recode/Makefile ] || exit 0; \
13922 r=`${PWD_COMMAND}`; export r; \
13923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13924 $(SET_LIB_PATH) \
13925 for flag in $(EXTRA_HOST_FLAGS); do \
13926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13927 done; \
13928 echo "Doing install-info in recode" ; \
13929 (cd recode && \
13930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13932 "RANLIB=$${RANLIB}" \
13933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13934 install-info) \
13935 || exit 1
13938 .PHONY: maybe-installcheck-recode installcheck-recode
13939 maybe-installcheck-recode:
13941 installcheck-recode: \
13942 configure-recode
13943 @[ -f ./recode/Makefile ] || exit 0; \
13944 r=`${PWD_COMMAND}`; export r; \
13945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13946 $(SET_LIB_PATH) \
13947 for flag in $(EXTRA_HOST_FLAGS); do \
13948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13949 done; \
13950 echo "Doing installcheck in recode" ; \
13951 (cd recode && \
13952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13954 "RANLIB=$${RANLIB}" \
13955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13956 installcheck) \
13957 || exit 1
13960 .PHONY: maybe-mostlyclean-recode mostlyclean-recode
13961 maybe-mostlyclean-recode:
13963 mostlyclean-recode:
13964 @[ -f ./recode/Makefile ] || exit 0; \
13965 r=`${PWD_COMMAND}`; export r; \
13966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13967 $(SET_LIB_PATH) \
13968 for flag in $(EXTRA_HOST_FLAGS); do \
13969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13970 done; \
13971 echo "Doing mostlyclean in recode" ; \
13972 (cd recode && \
13973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13975 "RANLIB=$${RANLIB}" \
13976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13977 mostlyclean) \
13978 || exit 1
13981 .PHONY: maybe-clean-recode clean-recode
13982 maybe-clean-recode:
13984 clean-recode:
13985 @[ -f ./recode/Makefile ] || exit 0; \
13986 r=`${PWD_COMMAND}`; export r; \
13987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13988 $(SET_LIB_PATH) \
13989 for flag in $(EXTRA_HOST_FLAGS); do \
13990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13991 done; \
13992 echo "Doing clean in recode" ; \
13993 (cd recode && \
13994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13996 "RANLIB=$${RANLIB}" \
13997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13998 clean) \
13999 || exit 1
14002 .PHONY: maybe-distclean-recode distclean-recode
14003 maybe-distclean-recode:
14005 distclean-recode:
14006 @[ -f ./recode/Makefile ] || exit 0; \
14007 r=`${PWD_COMMAND}`; export r; \
14008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14009 $(SET_LIB_PATH) \
14010 for flag in $(EXTRA_HOST_FLAGS); do \
14011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14012 done; \
14013 echo "Doing distclean in recode" ; \
14014 (cd recode && \
14015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14017 "RANLIB=$${RANLIB}" \
14018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14019 distclean) \
14020 || exit 1
14023 .PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
14024 maybe-maintainer-clean-recode:
14026 maintainer-clean-recode:
14027 @[ -f ./recode/Makefile ] || exit 0; \
14028 r=`${PWD_COMMAND}`; export r; \
14029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14030 $(SET_LIB_PATH) \
14031 for flag in $(EXTRA_HOST_FLAGS); do \
14032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14033 done; \
14034 echo "Doing maintainer-clean in recode" ; \
14035 (cd recode && \
14036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14038 "RANLIB=$${RANLIB}" \
14039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14040 maintainer-clean) \
14041 || exit 1
14045 .PHONY: configure-sed maybe-configure-sed
14046 maybe-configure-sed:
14047 configure-sed:
14048 @test ! -f sed/Makefile || exit 0; \
14049 [ -d sed ] || mkdir sed; \
14050 r=`${PWD_COMMAND}`; export r; \
14051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14052 CC="$(CC)"; export CC; \
14053 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14054 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14055 CXX="$(CXX)"; export CXX; \
14056 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14057 AR="$(AR)"; export AR; \
14058 AS="$(AS)"; export AS; \
14059 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14060 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14061 LD="$(LD)"; export LD; \
14062 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
14063 NM="$(NM)"; export NM; \
14064 RANLIB="$(RANLIB)"; export RANLIB; \
14065 WINDRES="$(WINDRES)"; export WINDRES; \
14066 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14067 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14068 echo Configuring in sed; \
14069 cd sed || exit 1; \
14070 case $(srcdir) in \
14071 \.) \
14072 srcdiroption="--srcdir=."; \
14073 libsrcdir=".";; \
14074 /* | [A-Za-z]:[\\/]*) \
14075 srcdiroption="--srcdir=$(srcdir)/sed"; \
14076 libsrcdir="$$s/sed";; \
14077 *) \
14078 srcdiroption="--srcdir=../$(srcdir)/sed"; \
14079 libsrcdir="$$s/sed";; \
14080 esac; \
14081 $(SHELL) $${libsrcdir}/configure \
14082 $(HOST_CONFIGARGS) $${srcdiroption} \
14083 || exit 1
14085 .PHONY: all-sed maybe-all-sed
14086 maybe-all-sed:
14087 all-sed: configure-sed
14088 @r=`${PWD_COMMAND}`; export r; \
14089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14090 $(SET_LIB_PATH) \
14091 (cd sed && $(MAKE) $(FLAGS_TO_PASS) all)
14093 .PHONY: check-sed maybe-check-sed
14094 maybe-check-sed:
14096 check-sed:
14097 @r=`${PWD_COMMAND}`; export r; \
14098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14099 $(SET_LIB_PATH) \
14100 (cd sed && $(MAKE) $(FLAGS_TO_PASS) check)
14103 .PHONY: install-sed maybe-install-sed
14104 maybe-install-sed:
14106 install-sed: installdirs
14107 @r=`${PWD_COMMAND}`; export r; \
14108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14109 $(SET_LIB_PATH) \
14110 (cd sed && $(MAKE) $(FLAGS_TO_PASS) install)
14113 # Other targets (info, dvi, etc.)
14115 .PHONY: maybe-info-sed info-sed
14116 maybe-info-sed:
14118 info-sed: \
14119 configure-sed
14120 @[ -f ./sed/Makefile ] || exit 0; \
14121 r=`${PWD_COMMAND}`; export r; \
14122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14123 $(SET_LIB_PATH) \
14124 for flag in $(EXTRA_HOST_FLAGS); do \
14125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14126 done; \
14127 echo "Doing info in sed" ; \
14128 (cd sed && \
14129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14131 "RANLIB=$${RANLIB}" \
14132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14133 info) \
14134 || exit 1
14137 .PHONY: maybe-dvi-sed dvi-sed
14138 maybe-dvi-sed:
14140 dvi-sed: \
14141 configure-sed
14142 @[ -f ./sed/Makefile ] || exit 0; \
14143 r=`${PWD_COMMAND}`; export r; \
14144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14145 $(SET_LIB_PATH) \
14146 for flag in $(EXTRA_HOST_FLAGS); do \
14147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14148 done; \
14149 echo "Doing dvi in sed" ; \
14150 (cd sed && \
14151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14153 "RANLIB=$${RANLIB}" \
14154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14155 dvi) \
14156 || exit 1
14159 .PHONY: maybe-TAGS-sed TAGS-sed
14160 maybe-TAGS-sed:
14162 TAGS-sed: \
14163 configure-sed
14164 @[ -f ./sed/Makefile ] || exit 0; \
14165 r=`${PWD_COMMAND}`; export r; \
14166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14167 $(SET_LIB_PATH) \
14168 for flag in $(EXTRA_HOST_FLAGS); do \
14169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14170 done; \
14171 echo "Doing TAGS in sed" ; \
14172 (cd sed && \
14173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14175 "RANLIB=$${RANLIB}" \
14176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14177 TAGS) \
14178 || exit 1
14181 .PHONY: maybe-install-info-sed install-info-sed
14182 maybe-install-info-sed:
14184 install-info-sed: \
14185 configure-sed \
14186 info-sed
14187 @[ -f ./sed/Makefile ] || exit 0; \
14188 r=`${PWD_COMMAND}`; export r; \
14189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14190 $(SET_LIB_PATH) \
14191 for flag in $(EXTRA_HOST_FLAGS); do \
14192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14193 done; \
14194 echo "Doing install-info in sed" ; \
14195 (cd sed && \
14196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14198 "RANLIB=$${RANLIB}" \
14199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14200 install-info) \
14201 || exit 1
14204 .PHONY: maybe-installcheck-sed installcheck-sed
14205 maybe-installcheck-sed:
14207 installcheck-sed: \
14208 configure-sed
14209 @[ -f ./sed/Makefile ] || exit 0; \
14210 r=`${PWD_COMMAND}`; export r; \
14211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14212 $(SET_LIB_PATH) \
14213 for flag in $(EXTRA_HOST_FLAGS); do \
14214 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14215 done; \
14216 echo "Doing installcheck in sed" ; \
14217 (cd sed && \
14218 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14219 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14220 "RANLIB=$${RANLIB}" \
14221 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14222 installcheck) \
14223 || exit 1
14226 .PHONY: maybe-mostlyclean-sed mostlyclean-sed
14227 maybe-mostlyclean-sed:
14229 mostlyclean-sed:
14230 @[ -f ./sed/Makefile ] || exit 0; \
14231 r=`${PWD_COMMAND}`; export r; \
14232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14233 $(SET_LIB_PATH) \
14234 for flag in $(EXTRA_HOST_FLAGS); do \
14235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14236 done; \
14237 echo "Doing mostlyclean in sed" ; \
14238 (cd sed && \
14239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14241 "RANLIB=$${RANLIB}" \
14242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14243 mostlyclean) \
14244 || exit 1
14247 .PHONY: maybe-clean-sed clean-sed
14248 maybe-clean-sed:
14250 clean-sed:
14251 @[ -f ./sed/Makefile ] || exit 0; \
14252 r=`${PWD_COMMAND}`; export r; \
14253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14254 $(SET_LIB_PATH) \
14255 for flag in $(EXTRA_HOST_FLAGS); do \
14256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14257 done; \
14258 echo "Doing clean in sed" ; \
14259 (cd sed && \
14260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14262 "RANLIB=$${RANLIB}" \
14263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14264 clean) \
14265 || exit 1
14268 .PHONY: maybe-distclean-sed distclean-sed
14269 maybe-distclean-sed:
14271 distclean-sed:
14272 @[ -f ./sed/Makefile ] || exit 0; \
14273 r=`${PWD_COMMAND}`; export r; \
14274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14275 $(SET_LIB_PATH) \
14276 for flag in $(EXTRA_HOST_FLAGS); do \
14277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14278 done; \
14279 echo "Doing distclean in sed" ; \
14280 (cd sed && \
14281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14283 "RANLIB=$${RANLIB}" \
14284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14285 distclean) \
14286 || exit 1
14289 .PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
14290 maybe-maintainer-clean-sed:
14292 maintainer-clean-sed:
14293 @[ -f ./sed/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 maintainer-clean in sed" ; \
14301 (cd sed && \
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 maintainer-clean) \
14307 || exit 1
14311 .PHONY: configure-send-pr maybe-configure-send-pr
14312 maybe-configure-send-pr:
14313 configure-send-pr:
14314 @test ! -f send-pr/Makefile || exit 0; \
14315 [ -d send-pr ] || mkdir send-pr; \
14316 r=`${PWD_COMMAND}`; export r; \
14317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14318 CC="$(CC)"; export CC; \
14319 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14320 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14321 CXX="$(CXX)"; export CXX; \
14322 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14323 AR="$(AR)"; export AR; \
14324 AS="$(AS)"; export AS; \
14325 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14326 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14327 LD="$(LD)"; export LD; \
14328 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
14329 NM="$(NM)"; export NM; \
14330 RANLIB="$(RANLIB)"; export RANLIB; \
14331 WINDRES="$(WINDRES)"; export WINDRES; \
14332 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14333 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14334 echo Configuring in send-pr; \
14335 cd send-pr || exit 1; \
14336 case $(srcdir) in \
14337 \.) \
14338 srcdiroption="--srcdir=."; \
14339 libsrcdir=".";; \
14340 /* | [A-Za-z]:[\\/]*) \
14341 srcdiroption="--srcdir=$(srcdir)/send-pr"; \
14342 libsrcdir="$$s/send-pr";; \
14343 *) \
14344 srcdiroption="--srcdir=../$(srcdir)/send-pr"; \
14345 libsrcdir="$$s/send-pr";; \
14346 esac; \
14347 $(SHELL) $${libsrcdir}/configure \
14348 $(HOST_CONFIGARGS) $${srcdiroption} \
14349 || exit 1
14351 .PHONY: all-send-pr maybe-all-send-pr
14352 maybe-all-send-pr:
14353 all-send-pr: configure-send-pr
14354 @r=`${PWD_COMMAND}`; export r; \
14355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14356 $(SET_LIB_PATH) \
14357 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all)
14359 .PHONY: check-send-pr maybe-check-send-pr
14360 maybe-check-send-pr:
14362 check-send-pr:
14363 @r=`${PWD_COMMAND}`; export r; \
14364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14365 $(SET_LIB_PATH) \
14366 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check)
14369 .PHONY: install-send-pr maybe-install-send-pr
14370 maybe-install-send-pr:
14372 install-send-pr: installdirs
14373 @r=`${PWD_COMMAND}`; export r; \
14374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14375 $(SET_LIB_PATH) \
14376 (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install)
14379 # Other targets (info, dvi, etc.)
14381 .PHONY: maybe-info-send-pr info-send-pr
14382 maybe-info-send-pr:
14384 info-send-pr: \
14385 configure-send-pr
14386 @[ -f ./send-pr/Makefile ] || exit 0; \
14387 r=`${PWD_COMMAND}`; export r; \
14388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14389 $(SET_LIB_PATH) \
14390 for flag in $(EXTRA_HOST_FLAGS); do \
14391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14392 done; \
14393 echo "Doing info in send-pr" ; \
14394 (cd send-pr && \
14395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14397 "RANLIB=$${RANLIB}" \
14398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14399 info) \
14400 || exit 1
14403 .PHONY: maybe-dvi-send-pr dvi-send-pr
14404 maybe-dvi-send-pr:
14406 dvi-send-pr: \
14407 configure-send-pr
14408 @[ -f ./send-pr/Makefile ] || exit 0; \
14409 r=`${PWD_COMMAND}`; export r; \
14410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14411 $(SET_LIB_PATH) \
14412 for flag in $(EXTRA_HOST_FLAGS); do \
14413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14414 done; \
14415 echo "Doing dvi in send-pr" ; \
14416 (cd send-pr && \
14417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14419 "RANLIB=$${RANLIB}" \
14420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14421 dvi) \
14422 || exit 1
14425 .PHONY: maybe-TAGS-send-pr TAGS-send-pr
14426 maybe-TAGS-send-pr:
14428 TAGS-send-pr: \
14429 configure-send-pr
14430 @[ -f ./send-pr/Makefile ] || exit 0; \
14431 r=`${PWD_COMMAND}`; export r; \
14432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14433 $(SET_LIB_PATH) \
14434 for flag in $(EXTRA_HOST_FLAGS); do \
14435 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14436 done; \
14437 echo "Doing TAGS in send-pr" ; \
14438 (cd send-pr && \
14439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14441 "RANLIB=$${RANLIB}" \
14442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14443 TAGS) \
14444 || exit 1
14447 .PHONY: maybe-install-info-send-pr install-info-send-pr
14448 maybe-install-info-send-pr:
14450 install-info-send-pr: \
14451 configure-send-pr \
14452 info-send-pr
14453 @[ -f ./send-pr/Makefile ] || exit 0; \
14454 r=`${PWD_COMMAND}`; export r; \
14455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14456 $(SET_LIB_PATH) \
14457 for flag in $(EXTRA_HOST_FLAGS); do \
14458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14459 done; \
14460 echo "Doing install-info in send-pr" ; \
14461 (cd send-pr && \
14462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14464 "RANLIB=$${RANLIB}" \
14465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14466 install-info) \
14467 || exit 1
14470 .PHONY: maybe-installcheck-send-pr installcheck-send-pr
14471 maybe-installcheck-send-pr:
14473 installcheck-send-pr: \
14474 configure-send-pr
14475 @[ -f ./send-pr/Makefile ] || exit 0; \
14476 r=`${PWD_COMMAND}`; export r; \
14477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14478 $(SET_LIB_PATH) \
14479 for flag in $(EXTRA_HOST_FLAGS); do \
14480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14481 done; \
14482 echo "Doing installcheck in send-pr" ; \
14483 (cd send-pr && \
14484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14486 "RANLIB=$${RANLIB}" \
14487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14488 installcheck) \
14489 || exit 1
14492 .PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
14493 maybe-mostlyclean-send-pr:
14495 mostlyclean-send-pr:
14496 @[ -f ./send-pr/Makefile ] || exit 0; \
14497 r=`${PWD_COMMAND}`; export r; \
14498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14499 $(SET_LIB_PATH) \
14500 for flag in $(EXTRA_HOST_FLAGS); do \
14501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14502 done; \
14503 echo "Doing mostlyclean in send-pr" ; \
14504 (cd send-pr && \
14505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14507 "RANLIB=$${RANLIB}" \
14508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14509 mostlyclean) \
14510 || exit 1
14513 .PHONY: maybe-clean-send-pr clean-send-pr
14514 maybe-clean-send-pr:
14516 clean-send-pr:
14517 @[ -f ./send-pr/Makefile ] || exit 0; \
14518 r=`${PWD_COMMAND}`; export r; \
14519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14520 $(SET_LIB_PATH) \
14521 for flag in $(EXTRA_HOST_FLAGS); do \
14522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14523 done; \
14524 echo "Doing clean in send-pr" ; \
14525 (cd send-pr && \
14526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14528 "RANLIB=$${RANLIB}" \
14529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14530 clean) \
14531 || exit 1
14534 .PHONY: maybe-distclean-send-pr distclean-send-pr
14535 maybe-distclean-send-pr:
14537 distclean-send-pr:
14538 @[ -f ./send-pr/Makefile ] || exit 0; \
14539 r=`${PWD_COMMAND}`; export r; \
14540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14541 $(SET_LIB_PATH) \
14542 for flag in $(EXTRA_HOST_FLAGS); do \
14543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14544 done; \
14545 echo "Doing distclean in send-pr" ; \
14546 (cd send-pr && \
14547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14549 "RANLIB=$${RANLIB}" \
14550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14551 distclean) \
14552 || exit 1
14555 .PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
14556 maybe-maintainer-clean-send-pr:
14558 maintainer-clean-send-pr:
14559 @[ -f ./send-pr/Makefile ] || exit 0; \
14560 r=`${PWD_COMMAND}`; export r; \
14561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14562 $(SET_LIB_PATH) \
14563 for flag in $(EXTRA_HOST_FLAGS); do \
14564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14565 done; \
14566 echo "Doing maintainer-clean in send-pr" ; \
14567 (cd send-pr && \
14568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14570 "RANLIB=$${RANLIB}" \
14571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14572 maintainer-clean) \
14573 || exit 1
14577 .PHONY: configure-shellutils maybe-configure-shellutils
14578 maybe-configure-shellutils:
14579 configure-shellutils:
14580 @test ! -f shellutils/Makefile || exit 0; \
14581 [ -d shellutils ] || mkdir shellutils; \
14582 r=`${PWD_COMMAND}`; export r; \
14583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14584 CC="$(CC)"; export CC; \
14585 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14586 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14587 CXX="$(CXX)"; export CXX; \
14588 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14589 AR="$(AR)"; export AR; \
14590 AS="$(AS)"; export AS; \
14591 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14592 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14593 LD="$(LD)"; export LD; \
14594 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
14595 NM="$(NM)"; export NM; \
14596 RANLIB="$(RANLIB)"; export RANLIB; \
14597 WINDRES="$(WINDRES)"; export WINDRES; \
14598 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14599 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14600 echo Configuring in shellutils; \
14601 cd shellutils || exit 1; \
14602 case $(srcdir) in \
14603 \.) \
14604 srcdiroption="--srcdir=."; \
14605 libsrcdir=".";; \
14606 /* | [A-Za-z]:[\\/]*) \
14607 srcdiroption="--srcdir=$(srcdir)/shellutils"; \
14608 libsrcdir="$$s/shellutils";; \
14609 *) \
14610 srcdiroption="--srcdir=../$(srcdir)/shellutils"; \
14611 libsrcdir="$$s/shellutils";; \
14612 esac; \
14613 $(SHELL) $${libsrcdir}/configure \
14614 $(HOST_CONFIGARGS) $${srcdiroption} \
14615 || exit 1
14617 .PHONY: all-shellutils maybe-all-shellutils
14618 maybe-all-shellutils:
14619 all-shellutils: configure-shellutils
14620 @r=`${PWD_COMMAND}`; export r; \
14621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14622 $(SET_LIB_PATH) \
14623 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all)
14625 .PHONY: check-shellutils maybe-check-shellutils
14626 maybe-check-shellutils:
14628 check-shellutils:
14629 @r=`${PWD_COMMAND}`; export r; \
14630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14631 $(SET_LIB_PATH) \
14632 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check)
14635 .PHONY: install-shellutils maybe-install-shellutils
14636 maybe-install-shellutils:
14638 install-shellutils: installdirs
14639 @r=`${PWD_COMMAND}`; export r; \
14640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14641 $(SET_LIB_PATH) \
14642 (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install)
14645 # Other targets (info, dvi, etc.)
14647 .PHONY: maybe-info-shellutils info-shellutils
14648 maybe-info-shellutils:
14650 info-shellutils: \
14651 configure-shellutils
14652 @[ -f ./shellutils/Makefile ] || exit 0; \
14653 r=`${PWD_COMMAND}`; export r; \
14654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14655 $(SET_LIB_PATH) \
14656 for flag in $(EXTRA_HOST_FLAGS); do \
14657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14658 done; \
14659 echo "Doing info in shellutils" ; \
14660 (cd shellutils && \
14661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14663 "RANLIB=$${RANLIB}" \
14664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14665 info) \
14666 || exit 1
14669 .PHONY: maybe-dvi-shellutils dvi-shellutils
14670 maybe-dvi-shellutils:
14672 dvi-shellutils: \
14673 configure-shellutils
14674 @[ -f ./shellutils/Makefile ] || exit 0; \
14675 r=`${PWD_COMMAND}`; export r; \
14676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14677 $(SET_LIB_PATH) \
14678 for flag in $(EXTRA_HOST_FLAGS); do \
14679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14680 done; \
14681 echo "Doing dvi in shellutils" ; \
14682 (cd shellutils && \
14683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14685 "RANLIB=$${RANLIB}" \
14686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14687 dvi) \
14688 || exit 1
14691 .PHONY: maybe-TAGS-shellutils TAGS-shellutils
14692 maybe-TAGS-shellutils:
14694 TAGS-shellutils: \
14695 configure-shellutils
14696 @[ -f ./shellutils/Makefile ] || exit 0; \
14697 r=`${PWD_COMMAND}`; export r; \
14698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14699 $(SET_LIB_PATH) \
14700 for flag in $(EXTRA_HOST_FLAGS); do \
14701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14702 done; \
14703 echo "Doing TAGS in shellutils" ; \
14704 (cd shellutils && \
14705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14707 "RANLIB=$${RANLIB}" \
14708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14709 TAGS) \
14710 || exit 1
14713 .PHONY: maybe-install-info-shellutils install-info-shellutils
14714 maybe-install-info-shellutils:
14716 install-info-shellutils: \
14717 configure-shellutils \
14718 info-shellutils
14719 @[ -f ./shellutils/Makefile ] || exit 0; \
14720 r=`${PWD_COMMAND}`; export r; \
14721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14722 $(SET_LIB_PATH) \
14723 for flag in $(EXTRA_HOST_FLAGS); do \
14724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14725 done; \
14726 echo "Doing install-info in shellutils" ; \
14727 (cd shellutils && \
14728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14730 "RANLIB=$${RANLIB}" \
14731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14732 install-info) \
14733 || exit 1
14736 .PHONY: maybe-installcheck-shellutils installcheck-shellutils
14737 maybe-installcheck-shellutils:
14739 installcheck-shellutils: \
14740 configure-shellutils
14741 @[ -f ./shellutils/Makefile ] || exit 0; \
14742 r=`${PWD_COMMAND}`; export r; \
14743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14744 $(SET_LIB_PATH) \
14745 for flag in $(EXTRA_HOST_FLAGS); do \
14746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14747 done; \
14748 echo "Doing installcheck in shellutils" ; \
14749 (cd shellutils && \
14750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14752 "RANLIB=$${RANLIB}" \
14753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14754 installcheck) \
14755 || exit 1
14758 .PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
14759 maybe-mostlyclean-shellutils:
14761 mostlyclean-shellutils:
14762 @[ -f ./shellutils/Makefile ] || exit 0; \
14763 r=`${PWD_COMMAND}`; export r; \
14764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14765 $(SET_LIB_PATH) \
14766 for flag in $(EXTRA_HOST_FLAGS); do \
14767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14768 done; \
14769 echo "Doing mostlyclean in shellutils" ; \
14770 (cd shellutils && \
14771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14773 "RANLIB=$${RANLIB}" \
14774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14775 mostlyclean) \
14776 || exit 1
14779 .PHONY: maybe-clean-shellutils clean-shellutils
14780 maybe-clean-shellutils:
14782 clean-shellutils:
14783 @[ -f ./shellutils/Makefile ] || exit 0; \
14784 r=`${PWD_COMMAND}`; export r; \
14785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14786 $(SET_LIB_PATH) \
14787 for flag in $(EXTRA_HOST_FLAGS); do \
14788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14789 done; \
14790 echo "Doing clean in shellutils" ; \
14791 (cd shellutils && \
14792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14794 "RANLIB=$${RANLIB}" \
14795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14796 clean) \
14797 || exit 1
14800 .PHONY: maybe-distclean-shellutils distclean-shellutils
14801 maybe-distclean-shellutils:
14803 distclean-shellutils:
14804 @[ -f ./shellutils/Makefile ] || exit 0; \
14805 r=`${PWD_COMMAND}`; export r; \
14806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14807 $(SET_LIB_PATH) \
14808 for flag in $(EXTRA_HOST_FLAGS); do \
14809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14810 done; \
14811 echo "Doing distclean in shellutils" ; \
14812 (cd shellutils && \
14813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14815 "RANLIB=$${RANLIB}" \
14816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14817 distclean) \
14818 || exit 1
14821 .PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
14822 maybe-maintainer-clean-shellutils:
14824 maintainer-clean-shellutils:
14825 @[ -f ./shellutils/Makefile ] || exit 0; \
14826 r=`${PWD_COMMAND}`; export r; \
14827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14828 $(SET_LIB_PATH) \
14829 for flag in $(EXTRA_HOST_FLAGS); do \
14830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14831 done; \
14832 echo "Doing maintainer-clean in shellutils" ; \
14833 (cd shellutils && \
14834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14836 "RANLIB=$${RANLIB}" \
14837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14838 maintainer-clean) \
14839 || exit 1
14843 .PHONY: configure-sid maybe-configure-sid
14844 maybe-configure-sid:
14845 configure-sid:
14846 @test ! -f sid/Makefile || exit 0; \
14847 [ -d sid ] || mkdir sid; \
14848 r=`${PWD_COMMAND}`; export r; \
14849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14850 CC="$(CC)"; export CC; \
14851 CFLAGS="$(CFLAGS)"; export CFLAGS; \
14852 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
14853 CXX="$(CXX)"; export CXX; \
14854 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
14855 AR="$(AR)"; export AR; \
14856 AS="$(AS)"; export AS; \
14857 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
14858 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
14859 LD="$(LD)"; export LD; \
14860 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
14861 NM="$(NM)"; export NM; \
14862 RANLIB="$(RANLIB)"; export RANLIB; \
14863 WINDRES="$(WINDRES)"; export WINDRES; \
14864 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
14865 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
14866 echo Configuring in sid; \
14867 cd sid || exit 1; \
14868 case $(srcdir) in \
14869 \.) \
14870 srcdiroption="--srcdir=."; \
14871 libsrcdir=".";; \
14872 /* | [A-Za-z]:[\\/]*) \
14873 srcdiroption="--srcdir=$(srcdir)/sid"; \
14874 libsrcdir="$$s/sid";; \
14875 *) \
14876 srcdiroption="--srcdir=../$(srcdir)/sid"; \
14877 libsrcdir="$$s/sid";; \
14878 esac; \
14879 $(SHELL) $${libsrcdir}/configure \
14880 $(HOST_CONFIGARGS) $${srcdiroption} \
14881 || exit 1
14883 .PHONY: all-sid maybe-all-sid
14884 maybe-all-sid:
14885 all-sid: configure-sid
14886 @r=`${PWD_COMMAND}`; export r; \
14887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14888 $(SET_LIB_PATH) \
14889 (cd sid && $(MAKE) $(FLAGS_TO_PASS) all)
14891 .PHONY: check-sid maybe-check-sid
14892 maybe-check-sid:
14894 check-sid:
14895 @r=`${PWD_COMMAND}`; export r; \
14896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14897 $(SET_LIB_PATH) \
14898 (cd sid && $(MAKE) $(FLAGS_TO_PASS) check)
14901 .PHONY: install-sid maybe-install-sid
14902 maybe-install-sid:
14904 install-sid: installdirs
14905 @r=`${PWD_COMMAND}`; export r; \
14906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14907 $(SET_LIB_PATH) \
14908 (cd sid && $(MAKE) $(FLAGS_TO_PASS) install)
14911 # Other targets (info, dvi, etc.)
14913 .PHONY: maybe-info-sid info-sid
14914 maybe-info-sid:
14916 info-sid: \
14917 configure-sid
14918 @[ -f ./sid/Makefile ] || exit 0; \
14919 r=`${PWD_COMMAND}`; export r; \
14920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14921 $(SET_LIB_PATH) \
14922 for flag in $(EXTRA_HOST_FLAGS); do \
14923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14924 done; \
14925 echo "Doing info in sid" ; \
14926 (cd sid && \
14927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14929 "RANLIB=$${RANLIB}" \
14930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14931 info) \
14932 || exit 1
14935 .PHONY: maybe-dvi-sid dvi-sid
14936 maybe-dvi-sid:
14938 dvi-sid: \
14939 configure-sid
14940 @[ -f ./sid/Makefile ] || exit 0; \
14941 r=`${PWD_COMMAND}`; export r; \
14942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14943 $(SET_LIB_PATH) \
14944 for flag in $(EXTRA_HOST_FLAGS); do \
14945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14946 done; \
14947 echo "Doing dvi in sid" ; \
14948 (cd sid && \
14949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14951 "RANLIB=$${RANLIB}" \
14952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14953 dvi) \
14954 || exit 1
14957 .PHONY: maybe-TAGS-sid TAGS-sid
14958 maybe-TAGS-sid:
14960 TAGS-sid: \
14961 configure-sid
14962 @[ -f ./sid/Makefile ] || exit 0; \
14963 r=`${PWD_COMMAND}`; export r; \
14964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14965 $(SET_LIB_PATH) \
14966 for flag in $(EXTRA_HOST_FLAGS); do \
14967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14968 done; \
14969 echo "Doing TAGS in sid" ; \
14970 (cd sid && \
14971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14973 "RANLIB=$${RANLIB}" \
14974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14975 TAGS) \
14976 || exit 1
14979 .PHONY: maybe-install-info-sid install-info-sid
14980 maybe-install-info-sid:
14982 install-info-sid: \
14983 configure-sid \
14984 info-sid
14985 @[ -f ./sid/Makefile ] || exit 0; \
14986 r=`${PWD_COMMAND}`; export r; \
14987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14988 $(SET_LIB_PATH) \
14989 for flag in $(EXTRA_HOST_FLAGS); do \
14990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14991 done; \
14992 echo "Doing install-info in sid" ; \
14993 (cd sid && \
14994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14996 "RANLIB=$${RANLIB}" \
14997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14998 install-info) \
14999 || exit 1
15002 .PHONY: maybe-installcheck-sid installcheck-sid
15003 maybe-installcheck-sid:
15005 installcheck-sid: \
15006 configure-sid
15007 @[ -f ./sid/Makefile ] || exit 0; \
15008 r=`${PWD_COMMAND}`; export r; \
15009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15010 $(SET_LIB_PATH) \
15011 for flag in $(EXTRA_HOST_FLAGS); do \
15012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15013 done; \
15014 echo "Doing installcheck in sid" ; \
15015 (cd sid && \
15016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15018 "RANLIB=$${RANLIB}" \
15019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15020 installcheck) \
15021 || exit 1
15024 .PHONY: maybe-mostlyclean-sid mostlyclean-sid
15025 maybe-mostlyclean-sid:
15027 mostlyclean-sid:
15028 @[ -f ./sid/Makefile ] || exit 0; \
15029 r=`${PWD_COMMAND}`; export r; \
15030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15031 $(SET_LIB_PATH) \
15032 for flag in $(EXTRA_HOST_FLAGS); do \
15033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15034 done; \
15035 echo "Doing mostlyclean in sid" ; \
15036 (cd sid && \
15037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15039 "RANLIB=$${RANLIB}" \
15040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15041 mostlyclean) \
15042 || exit 1
15045 .PHONY: maybe-clean-sid clean-sid
15046 maybe-clean-sid:
15048 clean-sid:
15049 @[ -f ./sid/Makefile ] || exit 0; \
15050 r=`${PWD_COMMAND}`; export r; \
15051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15052 $(SET_LIB_PATH) \
15053 for flag in $(EXTRA_HOST_FLAGS); do \
15054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15055 done; \
15056 echo "Doing clean in sid" ; \
15057 (cd sid && \
15058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15060 "RANLIB=$${RANLIB}" \
15061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15062 clean) \
15063 || exit 1
15066 .PHONY: maybe-distclean-sid distclean-sid
15067 maybe-distclean-sid:
15069 distclean-sid:
15070 @[ -f ./sid/Makefile ] || exit 0; \
15071 r=`${PWD_COMMAND}`; export r; \
15072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15073 $(SET_LIB_PATH) \
15074 for flag in $(EXTRA_HOST_FLAGS); do \
15075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15076 done; \
15077 echo "Doing distclean in sid" ; \
15078 (cd sid && \
15079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15081 "RANLIB=$${RANLIB}" \
15082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15083 distclean) \
15084 || exit 1
15087 .PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
15088 maybe-maintainer-clean-sid:
15090 maintainer-clean-sid:
15091 @[ -f ./sid/Makefile ] || exit 0; \
15092 r=`${PWD_COMMAND}`; export r; \
15093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15094 $(SET_LIB_PATH) \
15095 for flag in $(EXTRA_HOST_FLAGS); do \
15096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15097 done; \
15098 echo "Doing maintainer-clean in sid" ; \
15099 (cd sid && \
15100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15102 "RANLIB=$${RANLIB}" \
15103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15104 maintainer-clean) \
15105 || exit 1
15109 .PHONY: configure-sim maybe-configure-sim
15110 maybe-configure-sim:
15111 configure-sim:
15112 @test ! -f sim/Makefile || exit 0; \
15113 [ -d sim ] || mkdir sim; \
15114 r=`${PWD_COMMAND}`; export r; \
15115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15116 CC="$(CC)"; export CC; \
15117 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15118 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15119 CXX="$(CXX)"; export CXX; \
15120 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15121 AR="$(AR)"; export AR; \
15122 AS="$(AS)"; export AS; \
15123 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15124 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15125 LD="$(LD)"; export LD; \
15126 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
15127 NM="$(NM)"; export NM; \
15128 RANLIB="$(RANLIB)"; export RANLIB; \
15129 WINDRES="$(WINDRES)"; export WINDRES; \
15130 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15131 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15132 echo Configuring in sim; \
15133 cd sim || exit 1; \
15134 case $(srcdir) in \
15135 \.) \
15136 srcdiroption="--srcdir=."; \
15137 libsrcdir=".";; \
15138 /* | [A-Za-z]:[\\/]*) \
15139 srcdiroption="--srcdir=$(srcdir)/sim"; \
15140 libsrcdir="$$s/sim";; \
15141 *) \
15142 srcdiroption="--srcdir=../$(srcdir)/sim"; \
15143 libsrcdir="$$s/sim";; \
15144 esac; \
15145 $(SHELL) $${libsrcdir}/configure \
15146 $(HOST_CONFIGARGS) $${srcdiroption} \
15147 || exit 1
15149 .PHONY: all-sim maybe-all-sim
15150 maybe-all-sim:
15151 all-sim: configure-sim
15152 @r=`${PWD_COMMAND}`; export r; \
15153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15154 $(SET_LIB_PATH) \
15155 (cd sim && $(MAKE) $(FLAGS_TO_PASS) all)
15157 .PHONY: check-sim maybe-check-sim
15158 maybe-check-sim:
15160 check-sim:
15161 @r=`${PWD_COMMAND}`; export r; \
15162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15163 $(SET_LIB_PATH) \
15164 (cd sim && $(MAKE) $(FLAGS_TO_PASS) check)
15167 .PHONY: install-sim maybe-install-sim
15168 maybe-install-sim:
15170 install-sim: installdirs
15171 @r=`${PWD_COMMAND}`; export r; \
15172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15173 $(SET_LIB_PATH) \
15174 (cd sim && $(MAKE) $(FLAGS_TO_PASS) install)
15177 # Other targets (info, dvi, etc.)
15179 .PHONY: maybe-info-sim info-sim
15180 maybe-info-sim:
15182 info-sim: \
15183 configure-sim
15184 @[ -f ./sim/Makefile ] || exit 0; \
15185 r=`${PWD_COMMAND}`; export r; \
15186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15187 $(SET_LIB_PATH) \
15188 for flag in $(EXTRA_HOST_FLAGS); do \
15189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15190 done; \
15191 echo "Doing info in sim" ; \
15192 (cd sim && \
15193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15195 "RANLIB=$${RANLIB}" \
15196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15197 info) \
15198 || exit 1
15201 .PHONY: maybe-dvi-sim dvi-sim
15202 maybe-dvi-sim:
15204 dvi-sim: \
15205 configure-sim
15206 @[ -f ./sim/Makefile ] || exit 0; \
15207 r=`${PWD_COMMAND}`; export r; \
15208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15209 $(SET_LIB_PATH) \
15210 for flag in $(EXTRA_HOST_FLAGS); do \
15211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15212 done; \
15213 echo "Doing dvi in sim" ; \
15214 (cd sim && \
15215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15217 "RANLIB=$${RANLIB}" \
15218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15219 dvi) \
15220 || exit 1
15223 .PHONY: maybe-TAGS-sim TAGS-sim
15224 maybe-TAGS-sim:
15226 TAGS-sim: \
15227 configure-sim
15228 @[ -f ./sim/Makefile ] || exit 0; \
15229 r=`${PWD_COMMAND}`; export r; \
15230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15231 $(SET_LIB_PATH) \
15232 for flag in $(EXTRA_HOST_FLAGS); do \
15233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15234 done; \
15235 echo "Doing TAGS in sim" ; \
15236 (cd sim && \
15237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15239 "RANLIB=$${RANLIB}" \
15240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15241 TAGS) \
15242 || exit 1
15245 .PHONY: maybe-install-info-sim install-info-sim
15246 maybe-install-info-sim:
15248 install-info-sim: \
15249 configure-sim \
15250 info-sim
15251 @[ -f ./sim/Makefile ] || exit 0; \
15252 r=`${PWD_COMMAND}`; export r; \
15253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15254 $(SET_LIB_PATH) \
15255 for flag in $(EXTRA_HOST_FLAGS); do \
15256 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15257 done; \
15258 echo "Doing install-info in sim" ; \
15259 (cd sim && \
15260 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15261 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15262 "RANLIB=$${RANLIB}" \
15263 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15264 install-info) \
15265 || exit 1
15268 .PHONY: maybe-installcheck-sim installcheck-sim
15269 maybe-installcheck-sim:
15271 installcheck-sim: \
15272 configure-sim
15273 @[ -f ./sim/Makefile ] || exit 0; \
15274 r=`${PWD_COMMAND}`; export r; \
15275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15276 $(SET_LIB_PATH) \
15277 for flag in $(EXTRA_HOST_FLAGS); do \
15278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15279 done; \
15280 echo "Doing installcheck in sim" ; \
15281 (cd sim && \
15282 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15283 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15284 "RANLIB=$${RANLIB}" \
15285 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15286 installcheck) \
15287 || exit 1
15290 .PHONY: maybe-mostlyclean-sim mostlyclean-sim
15291 maybe-mostlyclean-sim:
15293 mostlyclean-sim:
15294 @[ -f ./sim/Makefile ] || exit 0; \
15295 r=`${PWD_COMMAND}`; export r; \
15296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15297 $(SET_LIB_PATH) \
15298 for flag in $(EXTRA_HOST_FLAGS); do \
15299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15300 done; \
15301 echo "Doing mostlyclean in sim" ; \
15302 (cd sim && \
15303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15305 "RANLIB=$${RANLIB}" \
15306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15307 mostlyclean) \
15308 || exit 1
15311 .PHONY: maybe-clean-sim clean-sim
15312 maybe-clean-sim:
15314 clean-sim:
15315 @[ -f ./sim/Makefile ] || exit 0; \
15316 r=`${PWD_COMMAND}`; export r; \
15317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15318 $(SET_LIB_PATH) \
15319 for flag in $(EXTRA_HOST_FLAGS); do \
15320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15321 done; \
15322 echo "Doing clean in sim" ; \
15323 (cd sim && \
15324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15326 "RANLIB=$${RANLIB}" \
15327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15328 clean) \
15329 || exit 1
15332 .PHONY: maybe-distclean-sim distclean-sim
15333 maybe-distclean-sim:
15335 distclean-sim:
15336 @[ -f ./sim/Makefile ] || exit 0; \
15337 r=`${PWD_COMMAND}`; export r; \
15338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15339 $(SET_LIB_PATH) \
15340 for flag in $(EXTRA_HOST_FLAGS); do \
15341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15342 done; \
15343 echo "Doing distclean in sim" ; \
15344 (cd sim && \
15345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15347 "RANLIB=$${RANLIB}" \
15348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15349 distclean) \
15350 || exit 1
15353 .PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
15354 maybe-maintainer-clean-sim:
15356 maintainer-clean-sim:
15357 @[ -f ./sim/Makefile ] || exit 0; \
15358 r=`${PWD_COMMAND}`; export r; \
15359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15360 $(SET_LIB_PATH) \
15361 for flag in $(EXTRA_HOST_FLAGS); do \
15362 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15363 done; \
15364 echo "Doing maintainer-clean in sim" ; \
15365 (cd sim && \
15366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15368 "RANLIB=$${RANLIB}" \
15369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15370 maintainer-clean) \
15371 || exit 1
15375 .PHONY: configure-tar maybe-configure-tar
15376 maybe-configure-tar:
15377 configure-tar:
15378 @test ! -f tar/Makefile || exit 0; \
15379 [ -d tar ] || mkdir tar; \
15380 r=`${PWD_COMMAND}`; export r; \
15381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15382 CC="$(CC)"; export CC; \
15383 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15384 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15385 CXX="$(CXX)"; export CXX; \
15386 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15387 AR="$(AR)"; export AR; \
15388 AS="$(AS)"; export AS; \
15389 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15390 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15391 LD="$(LD)"; export LD; \
15392 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
15393 NM="$(NM)"; export NM; \
15394 RANLIB="$(RANLIB)"; export RANLIB; \
15395 WINDRES="$(WINDRES)"; export WINDRES; \
15396 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15397 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15398 echo Configuring in tar; \
15399 cd tar || exit 1; \
15400 case $(srcdir) in \
15401 \.) \
15402 srcdiroption="--srcdir=."; \
15403 libsrcdir=".";; \
15404 /* | [A-Za-z]:[\\/]*) \
15405 srcdiroption="--srcdir=$(srcdir)/tar"; \
15406 libsrcdir="$$s/tar";; \
15407 *) \
15408 srcdiroption="--srcdir=../$(srcdir)/tar"; \
15409 libsrcdir="$$s/tar";; \
15410 esac; \
15411 $(SHELL) $${libsrcdir}/configure \
15412 $(HOST_CONFIGARGS) $${srcdiroption} \
15413 || exit 1
15415 .PHONY: all-tar maybe-all-tar
15416 maybe-all-tar:
15417 all-tar: configure-tar
15418 @r=`${PWD_COMMAND}`; export r; \
15419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15420 $(SET_LIB_PATH) \
15421 (cd tar && $(MAKE) $(FLAGS_TO_PASS) all)
15423 .PHONY: check-tar maybe-check-tar
15424 maybe-check-tar:
15426 check-tar:
15427 @r=`${PWD_COMMAND}`; export r; \
15428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15429 $(SET_LIB_PATH) \
15430 (cd tar && $(MAKE) $(FLAGS_TO_PASS) check)
15433 .PHONY: install-tar maybe-install-tar
15434 maybe-install-tar:
15436 install-tar: installdirs
15437 @r=`${PWD_COMMAND}`; export r; \
15438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15439 $(SET_LIB_PATH) \
15440 (cd tar && $(MAKE) $(FLAGS_TO_PASS) install)
15443 # Other targets (info, dvi, etc.)
15445 .PHONY: maybe-info-tar info-tar
15446 maybe-info-tar:
15448 info-tar: \
15449 configure-tar
15450 @[ -f ./tar/Makefile ] || exit 0; \
15451 r=`${PWD_COMMAND}`; export r; \
15452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15453 $(SET_LIB_PATH) \
15454 for flag in $(EXTRA_HOST_FLAGS); do \
15455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15456 done; \
15457 echo "Doing info in tar" ; \
15458 (cd tar && \
15459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15461 "RANLIB=$${RANLIB}" \
15462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15463 info) \
15464 || exit 1
15467 .PHONY: maybe-dvi-tar dvi-tar
15468 maybe-dvi-tar:
15470 dvi-tar: \
15471 configure-tar
15472 @[ -f ./tar/Makefile ] || exit 0; \
15473 r=`${PWD_COMMAND}`; export r; \
15474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15475 $(SET_LIB_PATH) \
15476 for flag in $(EXTRA_HOST_FLAGS); do \
15477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15478 done; \
15479 echo "Doing dvi in tar" ; \
15480 (cd tar && \
15481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15483 "RANLIB=$${RANLIB}" \
15484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15485 dvi) \
15486 || exit 1
15489 .PHONY: maybe-TAGS-tar TAGS-tar
15490 maybe-TAGS-tar:
15492 TAGS-tar: \
15493 configure-tar
15494 @[ -f ./tar/Makefile ] || exit 0; \
15495 r=`${PWD_COMMAND}`; export r; \
15496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15497 $(SET_LIB_PATH) \
15498 for flag in $(EXTRA_HOST_FLAGS); do \
15499 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15500 done; \
15501 echo "Doing TAGS in tar" ; \
15502 (cd tar && \
15503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15505 "RANLIB=$${RANLIB}" \
15506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15507 TAGS) \
15508 || exit 1
15511 .PHONY: maybe-install-info-tar install-info-tar
15512 maybe-install-info-tar:
15514 install-info-tar: \
15515 configure-tar \
15516 info-tar
15517 @[ -f ./tar/Makefile ] || exit 0; \
15518 r=`${PWD_COMMAND}`; export r; \
15519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15520 $(SET_LIB_PATH) \
15521 for flag in $(EXTRA_HOST_FLAGS); do \
15522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15523 done; \
15524 echo "Doing install-info in tar" ; \
15525 (cd tar && \
15526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15528 "RANLIB=$${RANLIB}" \
15529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15530 install-info) \
15531 || exit 1
15534 .PHONY: maybe-installcheck-tar installcheck-tar
15535 maybe-installcheck-tar:
15537 installcheck-tar: \
15538 configure-tar
15539 @[ -f ./tar/Makefile ] || exit 0; \
15540 r=`${PWD_COMMAND}`; export r; \
15541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15542 $(SET_LIB_PATH) \
15543 for flag in $(EXTRA_HOST_FLAGS); do \
15544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15545 done; \
15546 echo "Doing installcheck in tar" ; \
15547 (cd tar && \
15548 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15549 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15550 "RANLIB=$${RANLIB}" \
15551 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15552 installcheck) \
15553 || exit 1
15556 .PHONY: maybe-mostlyclean-tar mostlyclean-tar
15557 maybe-mostlyclean-tar:
15559 mostlyclean-tar:
15560 @[ -f ./tar/Makefile ] || exit 0; \
15561 r=`${PWD_COMMAND}`; export r; \
15562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15563 $(SET_LIB_PATH) \
15564 for flag in $(EXTRA_HOST_FLAGS); do \
15565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15566 done; \
15567 echo "Doing mostlyclean in tar" ; \
15568 (cd tar && \
15569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15571 "RANLIB=$${RANLIB}" \
15572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15573 mostlyclean) \
15574 || exit 1
15577 .PHONY: maybe-clean-tar clean-tar
15578 maybe-clean-tar:
15580 clean-tar:
15581 @[ -f ./tar/Makefile ] || exit 0; \
15582 r=`${PWD_COMMAND}`; export r; \
15583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15584 $(SET_LIB_PATH) \
15585 for flag in $(EXTRA_HOST_FLAGS); do \
15586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15587 done; \
15588 echo "Doing clean in tar" ; \
15589 (cd tar && \
15590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15592 "RANLIB=$${RANLIB}" \
15593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15594 clean) \
15595 || exit 1
15598 .PHONY: maybe-distclean-tar distclean-tar
15599 maybe-distclean-tar:
15601 distclean-tar:
15602 @[ -f ./tar/Makefile ] || exit 0; \
15603 r=`${PWD_COMMAND}`; export r; \
15604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15605 $(SET_LIB_PATH) \
15606 for flag in $(EXTRA_HOST_FLAGS); do \
15607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15608 done; \
15609 echo "Doing distclean in tar" ; \
15610 (cd tar && \
15611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15613 "RANLIB=$${RANLIB}" \
15614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15615 distclean) \
15616 || exit 1
15619 .PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
15620 maybe-maintainer-clean-tar:
15622 maintainer-clean-tar:
15623 @[ -f ./tar/Makefile ] || exit 0; \
15624 r=`${PWD_COMMAND}`; export r; \
15625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15626 $(SET_LIB_PATH) \
15627 for flag in $(EXTRA_HOST_FLAGS); do \
15628 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15629 done; \
15630 echo "Doing maintainer-clean in tar" ; \
15631 (cd tar && \
15632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15634 "RANLIB=$${RANLIB}" \
15635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15636 maintainer-clean) \
15637 || exit 1
15641 .PHONY: configure-texinfo maybe-configure-texinfo
15642 maybe-configure-texinfo:
15643 configure-texinfo:
15644 @test ! -f texinfo/Makefile || exit 0; \
15645 [ -d texinfo ] || mkdir texinfo; \
15646 r=`${PWD_COMMAND}`; export r; \
15647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15648 CC="$(CC)"; export CC; \
15649 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15650 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15651 CXX="$(CXX)"; export CXX; \
15652 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15653 AR="$(AR)"; export AR; \
15654 AS="$(AS)"; export AS; \
15655 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15656 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15657 LD="$(LD)"; export LD; \
15658 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
15659 NM="$(NM)"; export NM; \
15660 RANLIB="$(RANLIB)"; export RANLIB; \
15661 WINDRES="$(WINDRES)"; export WINDRES; \
15662 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15663 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15664 echo Configuring in texinfo; \
15665 cd texinfo || exit 1; \
15666 case $(srcdir) in \
15667 \.) \
15668 srcdiroption="--srcdir=."; \
15669 libsrcdir=".";; \
15670 /* | [A-Za-z]:[\\/]*) \
15671 srcdiroption="--srcdir=$(srcdir)/texinfo"; \
15672 libsrcdir="$$s/texinfo";; \
15673 *) \
15674 srcdiroption="--srcdir=../$(srcdir)/texinfo"; \
15675 libsrcdir="$$s/texinfo";; \
15676 esac; \
15677 $(SHELL) $${libsrcdir}/configure \
15678 $(HOST_CONFIGARGS) $${srcdiroption} \
15679 || exit 1
15681 .PHONY: all-texinfo maybe-all-texinfo
15682 maybe-all-texinfo:
15683 all-texinfo: configure-texinfo
15684 @r=`${PWD_COMMAND}`; export r; \
15685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15686 $(SET_LIB_PATH) \
15687 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all)
15689 .PHONY: check-texinfo maybe-check-texinfo
15690 maybe-check-texinfo:
15692 check-texinfo:
15693 @r=`${PWD_COMMAND}`; export r; \
15694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15695 $(SET_LIB_PATH) \
15696 (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check)
15699 .PHONY: install-texinfo maybe-install-texinfo
15700 maybe-install-texinfo:
15702 install-texinfo:
15705 # Other targets (info, dvi, etc.)
15707 .PHONY: maybe-info-texinfo info-texinfo
15708 maybe-info-texinfo:
15710 info-texinfo: \
15711 configure-texinfo
15712 @[ -f ./texinfo/Makefile ] || exit 0; \
15713 r=`${PWD_COMMAND}`; export r; \
15714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15715 $(SET_LIB_PATH) \
15716 for flag in $(EXTRA_HOST_FLAGS); do \
15717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15718 done; \
15719 echo "Doing info in texinfo" ; \
15720 (cd texinfo && \
15721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15723 "RANLIB=$${RANLIB}" \
15724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15725 info) \
15726 || exit 1
15729 .PHONY: maybe-dvi-texinfo dvi-texinfo
15730 maybe-dvi-texinfo:
15732 dvi-texinfo: \
15733 configure-texinfo
15734 @[ -f ./texinfo/Makefile ] || exit 0; \
15735 r=`${PWD_COMMAND}`; export r; \
15736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15737 $(SET_LIB_PATH) \
15738 for flag in $(EXTRA_HOST_FLAGS); do \
15739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15740 done; \
15741 echo "Doing dvi in texinfo" ; \
15742 (cd texinfo && \
15743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15745 "RANLIB=$${RANLIB}" \
15746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15747 dvi) \
15748 || exit 1
15751 .PHONY: maybe-TAGS-texinfo TAGS-texinfo
15752 maybe-TAGS-texinfo:
15754 TAGS-texinfo: \
15755 configure-texinfo
15756 @[ -f ./texinfo/Makefile ] || exit 0; \
15757 r=`${PWD_COMMAND}`; export r; \
15758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15759 $(SET_LIB_PATH) \
15760 for flag in $(EXTRA_HOST_FLAGS); do \
15761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15762 done; \
15763 echo "Doing TAGS in texinfo" ; \
15764 (cd texinfo && \
15765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15767 "RANLIB=$${RANLIB}" \
15768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15769 TAGS) \
15770 || exit 1
15773 .PHONY: maybe-install-info-texinfo install-info-texinfo
15774 maybe-install-info-texinfo:
15776 install-info-texinfo: \
15777 configure-texinfo \
15778 info-texinfo
15779 @[ -f ./texinfo/Makefile ] || exit 0; \
15780 r=`${PWD_COMMAND}`; export r; \
15781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15782 $(SET_LIB_PATH) \
15783 for flag in $(EXTRA_HOST_FLAGS); do \
15784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15785 done; \
15786 echo "Doing install-info in texinfo" ; \
15787 (cd texinfo && \
15788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15790 "RANLIB=$${RANLIB}" \
15791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15792 install-info) \
15793 || exit 1
15796 .PHONY: maybe-installcheck-texinfo installcheck-texinfo
15797 maybe-installcheck-texinfo:
15799 installcheck-texinfo: \
15800 configure-texinfo
15801 @[ -f ./texinfo/Makefile ] || exit 0; \
15802 r=`${PWD_COMMAND}`; export r; \
15803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15804 $(SET_LIB_PATH) \
15805 for flag in $(EXTRA_HOST_FLAGS); do \
15806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15807 done; \
15808 echo "Doing installcheck in texinfo" ; \
15809 (cd texinfo && \
15810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15812 "RANLIB=$${RANLIB}" \
15813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15814 installcheck) \
15815 || exit 1
15818 .PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
15819 maybe-mostlyclean-texinfo:
15821 mostlyclean-texinfo:
15822 @[ -f ./texinfo/Makefile ] || exit 0; \
15823 r=`${PWD_COMMAND}`; export r; \
15824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15825 $(SET_LIB_PATH) \
15826 for flag in $(EXTRA_HOST_FLAGS); do \
15827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15828 done; \
15829 echo "Doing mostlyclean in texinfo" ; \
15830 (cd texinfo && \
15831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15833 "RANLIB=$${RANLIB}" \
15834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15835 mostlyclean) \
15836 || exit 1
15839 .PHONY: maybe-clean-texinfo clean-texinfo
15840 maybe-clean-texinfo:
15842 clean-texinfo:
15843 @[ -f ./texinfo/Makefile ] || exit 0; \
15844 r=`${PWD_COMMAND}`; export r; \
15845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15846 $(SET_LIB_PATH) \
15847 for flag in $(EXTRA_HOST_FLAGS); do \
15848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15849 done; \
15850 echo "Doing clean in texinfo" ; \
15851 (cd texinfo && \
15852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15854 "RANLIB=$${RANLIB}" \
15855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15856 clean) \
15857 || exit 1
15860 .PHONY: maybe-distclean-texinfo distclean-texinfo
15861 maybe-distclean-texinfo:
15863 distclean-texinfo:
15864 @[ -f ./texinfo/Makefile ] || exit 0; \
15865 r=`${PWD_COMMAND}`; export r; \
15866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15867 $(SET_LIB_PATH) \
15868 for flag in $(EXTRA_HOST_FLAGS); do \
15869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15870 done; \
15871 echo "Doing distclean in texinfo" ; \
15872 (cd texinfo && \
15873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15875 "RANLIB=$${RANLIB}" \
15876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15877 distclean) \
15878 || exit 1
15881 .PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
15882 maybe-maintainer-clean-texinfo:
15884 maintainer-clean-texinfo:
15885 @[ -f ./texinfo/Makefile ] || exit 0; \
15886 r=`${PWD_COMMAND}`; export r; \
15887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15888 $(SET_LIB_PATH) \
15889 for flag in $(EXTRA_HOST_FLAGS); do \
15890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15891 done; \
15892 echo "Doing maintainer-clean in texinfo" ; \
15893 (cd texinfo && \
15894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15896 "RANLIB=$${RANLIB}" \
15897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15898 maintainer-clean) \
15899 || exit 1
15903 .PHONY: configure-textutils maybe-configure-textutils
15904 maybe-configure-textutils:
15905 configure-textutils:
15906 @test ! -f textutils/Makefile || exit 0; \
15907 [ -d textutils ] || mkdir textutils; \
15908 r=`${PWD_COMMAND}`; export r; \
15909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15910 CC="$(CC)"; export CC; \
15911 CFLAGS="$(CFLAGS)"; export CFLAGS; \
15912 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
15913 CXX="$(CXX)"; export CXX; \
15914 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
15915 AR="$(AR)"; export AR; \
15916 AS="$(AS)"; export AS; \
15917 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
15918 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
15919 LD="$(LD)"; export LD; \
15920 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
15921 NM="$(NM)"; export NM; \
15922 RANLIB="$(RANLIB)"; export RANLIB; \
15923 WINDRES="$(WINDRES)"; export WINDRES; \
15924 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
15925 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
15926 echo Configuring in textutils; \
15927 cd textutils || exit 1; \
15928 case $(srcdir) in \
15929 \.) \
15930 srcdiroption="--srcdir=."; \
15931 libsrcdir=".";; \
15932 /* | [A-Za-z]:[\\/]*) \
15933 srcdiroption="--srcdir=$(srcdir)/textutils"; \
15934 libsrcdir="$$s/textutils";; \
15935 *) \
15936 srcdiroption="--srcdir=../$(srcdir)/textutils"; \
15937 libsrcdir="$$s/textutils";; \
15938 esac; \
15939 $(SHELL) $${libsrcdir}/configure \
15940 $(HOST_CONFIGARGS) $${srcdiroption} \
15941 || exit 1
15943 .PHONY: all-textutils maybe-all-textutils
15944 maybe-all-textutils:
15945 all-textutils: configure-textutils
15946 @r=`${PWD_COMMAND}`; export r; \
15947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15948 $(SET_LIB_PATH) \
15949 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all)
15951 .PHONY: check-textutils maybe-check-textutils
15952 maybe-check-textutils:
15954 check-textutils:
15955 @r=`${PWD_COMMAND}`; export r; \
15956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15957 $(SET_LIB_PATH) \
15958 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check)
15961 .PHONY: install-textutils maybe-install-textutils
15962 maybe-install-textutils:
15964 install-textutils: installdirs
15965 @r=`${PWD_COMMAND}`; export r; \
15966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15967 $(SET_LIB_PATH) \
15968 (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install)
15971 # Other targets (info, dvi, etc.)
15973 .PHONY: maybe-info-textutils info-textutils
15974 maybe-info-textutils:
15976 info-textutils: \
15977 configure-textutils
15978 @[ -f ./textutils/Makefile ] || exit 0; \
15979 r=`${PWD_COMMAND}`; export r; \
15980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15981 $(SET_LIB_PATH) \
15982 for flag in $(EXTRA_HOST_FLAGS); do \
15983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15984 done; \
15985 echo "Doing info in textutils" ; \
15986 (cd textutils && \
15987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15989 "RANLIB=$${RANLIB}" \
15990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15991 info) \
15992 || exit 1
15995 .PHONY: maybe-dvi-textutils dvi-textutils
15996 maybe-dvi-textutils:
15998 dvi-textutils: \
15999 configure-textutils
16000 @[ -f ./textutils/Makefile ] || exit 0; \
16001 r=`${PWD_COMMAND}`; export r; \
16002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16003 $(SET_LIB_PATH) \
16004 for flag in $(EXTRA_HOST_FLAGS); do \
16005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16006 done; \
16007 echo "Doing dvi in textutils" ; \
16008 (cd textutils && \
16009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16011 "RANLIB=$${RANLIB}" \
16012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16013 dvi) \
16014 || exit 1
16017 .PHONY: maybe-TAGS-textutils TAGS-textutils
16018 maybe-TAGS-textutils:
16020 TAGS-textutils: \
16021 configure-textutils
16022 @[ -f ./textutils/Makefile ] || exit 0; \
16023 r=`${PWD_COMMAND}`; export r; \
16024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16025 $(SET_LIB_PATH) \
16026 for flag in $(EXTRA_HOST_FLAGS); do \
16027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16028 done; \
16029 echo "Doing TAGS in textutils" ; \
16030 (cd textutils && \
16031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16033 "RANLIB=$${RANLIB}" \
16034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16035 TAGS) \
16036 || exit 1
16039 .PHONY: maybe-install-info-textutils install-info-textutils
16040 maybe-install-info-textutils:
16042 install-info-textutils: \
16043 configure-textutils \
16044 info-textutils
16045 @[ -f ./textutils/Makefile ] || exit 0; \
16046 r=`${PWD_COMMAND}`; export r; \
16047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16048 $(SET_LIB_PATH) \
16049 for flag in $(EXTRA_HOST_FLAGS); do \
16050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16051 done; \
16052 echo "Doing install-info in textutils" ; \
16053 (cd textutils && \
16054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16056 "RANLIB=$${RANLIB}" \
16057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16058 install-info) \
16059 || exit 1
16062 .PHONY: maybe-installcheck-textutils installcheck-textutils
16063 maybe-installcheck-textutils:
16065 installcheck-textutils: \
16066 configure-textutils
16067 @[ -f ./textutils/Makefile ] || exit 0; \
16068 r=`${PWD_COMMAND}`; export r; \
16069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16070 $(SET_LIB_PATH) \
16071 for flag in $(EXTRA_HOST_FLAGS); do \
16072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16073 done; \
16074 echo "Doing installcheck in textutils" ; \
16075 (cd textutils && \
16076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16078 "RANLIB=$${RANLIB}" \
16079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16080 installcheck) \
16081 || exit 1
16084 .PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
16085 maybe-mostlyclean-textutils:
16087 mostlyclean-textutils:
16088 @[ -f ./textutils/Makefile ] || exit 0; \
16089 r=`${PWD_COMMAND}`; export r; \
16090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16091 $(SET_LIB_PATH) \
16092 for flag in $(EXTRA_HOST_FLAGS); do \
16093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16094 done; \
16095 echo "Doing mostlyclean in textutils" ; \
16096 (cd textutils && \
16097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16099 "RANLIB=$${RANLIB}" \
16100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16101 mostlyclean) \
16102 || exit 1
16105 .PHONY: maybe-clean-textutils clean-textutils
16106 maybe-clean-textutils:
16108 clean-textutils:
16109 @[ -f ./textutils/Makefile ] || exit 0; \
16110 r=`${PWD_COMMAND}`; export r; \
16111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16112 $(SET_LIB_PATH) \
16113 for flag in $(EXTRA_HOST_FLAGS); do \
16114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16115 done; \
16116 echo "Doing clean in textutils" ; \
16117 (cd textutils && \
16118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16120 "RANLIB=$${RANLIB}" \
16121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16122 clean) \
16123 || exit 1
16126 .PHONY: maybe-distclean-textutils distclean-textutils
16127 maybe-distclean-textutils:
16129 distclean-textutils:
16130 @[ -f ./textutils/Makefile ] || exit 0; \
16131 r=`${PWD_COMMAND}`; export r; \
16132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16133 $(SET_LIB_PATH) \
16134 for flag in $(EXTRA_HOST_FLAGS); do \
16135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16136 done; \
16137 echo "Doing distclean in textutils" ; \
16138 (cd textutils && \
16139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16141 "RANLIB=$${RANLIB}" \
16142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16143 distclean) \
16144 || exit 1
16147 .PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
16148 maybe-maintainer-clean-textutils:
16150 maintainer-clean-textutils:
16151 @[ -f ./textutils/Makefile ] || exit 0; \
16152 r=`${PWD_COMMAND}`; export r; \
16153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16154 $(SET_LIB_PATH) \
16155 for flag in $(EXTRA_HOST_FLAGS); do \
16156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16157 done; \
16158 echo "Doing maintainer-clean in textutils" ; \
16159 (cd textutils && \
16160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16162 "RANLIB=$${RANLIB}" \
16163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16164 maintainer-clean) \
16165 || exit 1
16169 .PHONY: configure-time maybe-configure-time
16170 maybe-configure-time:
16171 configure-time:
16172 @test ! -f time/Makefile || exit 0; \
16173 [ -d time ] || mkdir time; \
16174 r=`${PWD_COMMAND}`; export r; \
16175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16176 CC="$(CC)"; export CC; \
16177 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16178 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16179 CXX="$(CXX)"; export CXX; \
16180 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16181 AR="$(AR)"; export AR; \
16182 AS="$(AS)"; export AS; \
16183 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16184 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16185 LD="$(LD)"; export LD; \
16186 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
16187 NM="$(NM)"; export NM; \
16188 RANLIB="$(RANLIB)"; export RANLIB; \
16189 WINDRES="$(WINDRES)"; export WINDRES; \
16190 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16191 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16192 echo Configuring in time; \
16193 cd time || exit 1; \
16194 case $(srcdir) in \
16195 \.) \
16196 srcdiroption="--srcdir=."; \
16197 libsrcdir=".";; \
16198 /* | [A-Za-z]:[\\/]*) \
16199 srcdiroption="--srcdir=$(srcdir)/time"; \
16200 libsrcdir="$$s/time";; \
16201 *) \
16202 srcdiroption="--srcdir=../$(srcdir)/time"; \
16203 libsrcdir="$$s/time";; \
16204 esac; \
16205 $(SHELL) $${libsrcdir}/configure \
16206 $(HOST_CONFIGARGS) $${srcdiroption} \
16207 || exit 1
16209 .PHONY: all-time maybe-all-time
16210 maybe-all-time:
16211 all-time: configure-time
16212 @r=`${PWD_COMMAND}`; export r; \
16213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16214 $(SET_LIB_PATH) \
16215 (cd time && $(MAKE) $(FLAGS_TO_PASS) all)
16217 .PHONY: check-time maybe-check-time
16218 maybe-check-time:
16220 check-time:
16221 @r=`${PWD_COMMAND}`; export r; \
16222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16223 $(SET_LIB_PATH) \
16224 (cd time && $(MAKE) $(FLAGS_TO_PASS) check)
16227 .PHONY: install-time maybe-install-time
16228 maybe-install-time:
16230 install-time: installdirs
16231 @r=`${PWD_COMMAND}`; export r; \
16232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16233 $(SET_LIB_PATH) \
16234 (cd time && $(MAKE) $(FLAGS_TO_PASS) install)
16237 # Other targets (info, dvi, etc.)
16239 .PHONY: maybe-info-time info-time
16240 maybe-info-time:
16242 info-time: \
16243 configure-time
16244 @[ -f ./time/Makefile ] || exit 0; \
16245 r=`${PWD_COMMAND}`; export r; \
16246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16247 $(SET_LIB_PATH) \
16248 for flag in $(EXTRA_HOST_FLAGS); do \
16249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16250 done; \
16251 echo "Doing info in time" ; \
16252 (cd time && \
16253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16255 "RANLIB=$${RANLIB}" \
16256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16257 info) \
16258 || exit 1
16261 .PHONY: maybe-dvi-time dvi-time
16262 maybe-dvi-time:
16264 dvi-time: \
16265 configure-time
16266 @[ -f ./time/Makefile ] || exit 0; \
16267 r=`${PWD_COMMAND}`; export r; \
16268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16269 $(SET_LIB_PATH) \
16270 for flag in $(EXTRA_HOST_FLAGS); do \
16271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16272 done; \
16273 echo "Doing dvi in time" ; \
16274 (cd time && \
16275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16277 "RANLIB=$${RANLIB}" \
16278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16279 dvi) \
16280 || exit 1
16283 .PHONY: maybe-TAGS-time TAGS-time
16284 maybe-TAGS-time:
16286 TAGS-time: \
16287 configure-time
16288 @[ -f ./time/Makefile ] || exit 0; \
16289 r=`${PWD_COMMAND}`; export r; \
16290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16291 $(SET_LIB_PATH) \
16292 for flag in $(EXTRA_HOST_FLAGS); do \
16293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16294 done; \
16295 echo "Doing TAGS in time" ; \
16296 (cd time && \
16297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16299 "RANLIB=$${RANLIB}" \
16300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16301 TAGS) \
16302 || exit 1
16305 .PHONY: maybe-install-info-time install-info-time
16306 maybe-install-info-time:
16308 install-info-time: \
16309 configure-time \
16310 info-time
16311 @[ -f ./time/Makefile ] || exit 0; \
16312 r=`${PWD_COMMAND}`; export r; \
16313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16314 $(SET_LIB_PATH) \
16315 for flag in $(EXTRA_HOST_FLAGS); do \
16316 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16317 done; \
16318 echo "Doing install-info in time" ; \
16319 (cd time && \
16320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16322 "RANLIB=$${RANLIB}" \
16323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16324 install-info) \
16325 || exit 1
16328 .PHONY: maybe-installcheck-time installcheck-time
16329 maybe-installcheck-time:
16331 installcheck-time: \
16332 configure-time
16333 @[ -f ./time/Makefile ] || exit 0; \
16334 r=`${PWD_COMMAND}`; export r; \
16335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16336 $(SET_LIB_PATH) \
16337 for flag in $(EXTRA_HOST_FLAGS); do \
16338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16339 done; \
16340 echo "Doing installcheck in time" ; \
16341 (cd time && \
16342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16344 "RANLIB=$${RANLIB}" \
16345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16346 installcheck) \
16347 || exit 1
16350 .PHONY: maybe-mostlyclean-time mostlyclean-time
16351 maybe-mostlyclean-time:
16353 mostlyclean-time:
16354 @[ -f ./time/Makefile ] || exit 0; \
16355 r=`${PWD_COMMAND}`; export r; \
16356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16357 $(SET_LIB_PATH) \
16358 for flag in $(EXTRA_HOST_FLAGS); do \
16359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16360 done; \
16361 echo "Doing mostlyclean in time" ; \
16362 (cd time && \
16363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16365 "RANLIB=$${RANLIB}" \
16366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16367 mostlyclean) \
16368 || exit 1
16371 .PHONY: maybe-clean-time clean-time
16372 maybe-clean-time:
16374 clean-time:
16375 @[ -f ./time/Makefile ] || exit 0; \
16376 r=`${PWD_COMMAND}`; export r; \
16377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16378 $(SET_LIB_PATH) \
16379 for flag in $(EXTRA_HOST_FLAGS); do \
16380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16381 done; \
16382 echo "Doing clean in time" ; \
16383 (cd time && \
16384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16386 "RANLIB=$${RANLIB}" \
16387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16388 clean) \
16389 || exit 1
16392 .PHONY: maybe-distclean-time distclean-time
16393 maybe-distclean-time:
16395 distclean-time:
16396 @[ -f ./time/Makefile ] || exit 0; \
16397 r=`${PWD_COMMAND}`; export r; \
16398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16399 $(SET_LIB_PATH) \
16400 for flag in $(EXTRA_HOST_FLAGS); do \
16401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16402 done; \
16403 echo "Doing distclean in time" ; \
16404 (cd time && \
16405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16407 "RANLIB=$${RANLIB}" \
16408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16409 distclean) \
16410 || exit 1
16413 .PHONY: maybe-maintainer-clean-time maintainer-clean-time
16414 maybe-maintainer-clean-time:
16416 maintainer-clean-time:
16417 @[ -f ./time/Makefile ] || exit 0; \
16418 r=`${PWD_COMMAND}`; export r; \
16419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16420 $(SET_LIB_PATH) \
16421 for flag in $(EXTRA_HOST_FLAGS); do \
16422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16423 done; \
16424 echo "Doing maintainer-clean in time" ; \
16425 (cd time && \
16426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16428 "RANLIB=$${RANLIB}" \
16429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16430 maintainer-clean) \
16431 || exit 1
16435 .PHONY: configure-uudecode maybe-configure-uudecode
16436 maybe-configure-uudecode:
16437 configure-uudecode:
16438 @test ! -f uudecode/Makefile || exit 0; \
16439 [ -d uudecode ] || mkdir uudecode; \
16440 r=`${PWD_COMMAND}`; export r; \
16441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16442 CC="$(CC)"; export CC; \
16443 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16444 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16445 CXX="$(CXX)"; export CXX; \
16446 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16447 AR="$(AR)"; export AR; \
16448 AS="$(AS)"; export AS; \
16449 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16450 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16451 LD="$(LD)"; export LD; \
16452 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
16453 NM="$(NM)"; export NM; \
16454 RANLIB="$(RANLIB)"; export RANLIB; \
16455 WINDRES="$(WINDRES)"; export WINDRES; \
16456 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16457 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16458 echo Configuring in uudecode; \
16459 cd uudecode || exit 1; \
16460 case $(srcdir) in \
16461 \.) \
16462 srcdiroption="--srcdir=."; \
16463 libsrcdir=".";; \
16464 /* | [A-Za-z]:[\\/]*) \
16465 srcdiroption="--srcdir=$(srcdir)/uudecode"; \
16466 libsrcdir="$$s/uudecode";; \
16467 *) \
16468 srcdiroption="--srcdir=../$(srcdir)/uudecode"; \
16469 libsrcdir="$$s/uudecode";; \
16470 esac; \
16471 $(SHELL) $${libsrcdir}/configure \
16472 $(HOST_CONFIGARGS) $${srcdiroption} \
16473 || exit 1
16475 .PHONY: all-uudecode maybe-all-uudecode
16476 maybe-all-uudecode:
16477 all-uudecode: configure-uudecode
16478 @r=`${PWD_COMMAND}`; export r; \
16479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16480 $(SET_LIB_PATH) \
16481 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all)
16483 .PHONY: check-uudecode maybe-check-uudecode
16484 maybe-check-uudecode:
16486 check-uudecode:
16487 @r=`${PWD_COMMAND}`; export r; \
16488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16489 $(SET_LIB_PATH) \
16490 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check)
16493 .PHONY: install-uudecode maybe-install-uudecode
16494 maybe-install-uudecode:
16496 install-uudecode: installdirs
16497 @r=`${PWD_COMMAND}`; export r; \
16498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16499 $(SET_LIB_PATH) \
16500 (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install)
16503 # Other targets (info, dvi, etc.)
16505 .PHONY: maybe-info-uudecode info-uudecode
16506 maybe-info-uudecode:
16508 info-uudecode: \
16509 configure-uudecode
16510 @[ -f ./uudecode/Makefile ] || exit 0; \
16511 r=`${PWD_COMMAND}`; export r; \
16512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16513 $(SET_LIB_PATH) \
16514 for flag in $(EXTRA_HOST_FLAGS); do \
16515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16516 done; \
16517 echo "Doing info in uudecode" ; \
16518 (cd uudecode && \
16519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16521 "RANLIB=$${RANLIB}" \
16522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16523 info) \
16524 || exit 1
16527 .PHONY: maybe-dvi-uudecode dvi-uudecode
16528 maybe-dvi-uudecode:
16530 dvi-uudecode: \
16531 configure-uudecode
16532 @[ -f ./uudecode/Makefile ] || exit 0; \
16533 r=`${PWD_COMMAND}`; export r; \
16534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16535 $(SET_LIB_PATH) \
16536 for flag in $(EXTRA_HOST_FLAGS); do \
16537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16538 done; \
16539 echo "Doing dvi in uudecode" ; \
16540 (cd uudecode && \
16541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16543 "RANLIB=$${RANLIB}" \
16544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16545 dvi) \
16546 || exit 1
16549 .PHONY: maybe-TAGS-uudecode TAGS-uudecode
16550 maybe-TAGS-uudecode:
16552 TAGS-uudecode: \
16553 configure-uudecode
16554 @[ -f ./uudecode/Makefile ] || exit 0; \
16555 r=`${PWD_COMMAND}`; export r; \
16556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16557 $(SET_LIB_PATH) \
16558 for flag in $(EXTRA_HOST_FLAGS); do \
16559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16560 done; \
16561 echo "Doing TAGS in uudecode" ; \
16562 (cd uudecode && \
16563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16565 "RANLIB=$${RANLIB}" \
16566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16567 TAGS) \
16568 || exit 1
16571 .PHONY: maybe-install-info-uudecode install-info-uudecode
16572 maybe-install-info-uudecode:
16574 install-info-uudecode: \
16575 configure-uudecode \
16576 info-uudecode
16577 @[ -f ./uudecode/Makefile ] || exit 0; \
16578 r=`${PWD_COMMAND}`; export r; \
16579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16580 $(SET_LIB_PATH) \
16581 for flag in $(EXTRA_HOST_FLAGS); do \
16582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16583 done; \
16584 echo "Doing install-info in uudecode" ; \
16585 (cd uudecode && \
16586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16588 "RANLIB=$${RANLIB}" \
16589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16590 install-info) \
16591 || exit 1
16594 .PHONY: maybe-installcheck-uudecode installcheck-uudecode
16595 maybe-installcheck-uudecode:
16597 installcheck-uudecode: \
16598 configure-uudecode
16599 @[ -f ./uudecode/Makefile ] || exit 0; \
16600 r=`${PWD_COMMAND}`; export r; \
16601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16602 $(SET_LIB_PATH) \
16603 for flag in $(EXTRA_HOST_FLAGS); do \
16604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16605 done; \
16606 echo "Doing installcheck in uudecode" ; \
16607 (cd uudecode && \
16608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16610 "RANLIB=$${RANLIB}" \
16611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16612 installcheck) \
16613 || exit 1
16616 .PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
16617 maybe-mostlyclean-uudecode:
16619 mostlyclean-uudecode:
16620 @[ -f ./uudecode/Makefile ] || exit 0; \
16621 r=`${PWD_COMMAND}`; export r; \
16622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16623 $(SET_LIB_PATH) \
16624 for flag in $(EXTRA_HOST_FLAGS); do \
16625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16626 done; \
16627 echo "Doing mostlyclean in uudecode" ; \
16628 (cd uudecode && \
16629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16631 "RANLIB=$${RANLIB}" \
16632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16633 mostlyclean) \
16634 || exit 1
16637 .PHONY: maybe-clean-uudecode clean-uudecode
16638 maybe-clean-uudecode:
16640 clean-uudecode:
16641 @[ -f ./uudecode/Makefile ] || exit 0; \
16642 r=`${PWD_COMMAND}`; export r; \
16643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16644 $(SET_LIB_PATH) \
16645 for flag in $(EXTRA_HOST_FLAGS); do \
16646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16647 done; \
16648 echo "Doing clean in uudecode" ; \
16649 (cd uudecode && \
16650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16652 "RANLIB=$${RANLIB}" \
16653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16654 clean) \
16655 || exit 1
16658 .PHONY: maybe-distclean-uudecode distclean-uudecode
16659 maybe-distclean-uudecode:
16661 distclean-uudecode:
16662 @[ -f ./uudecode/Makefile ] || exit 0; \
16663 r=`${PWD_COMMAND}`; export r; \
16664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16665 $(SET_LIB_PATH) \
16666 for flag in $(EXTRA_HOST_FLAGS); do \
16667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16668 done; \
16669 echo "Doing distclean in uudecode" ; \
16670 (cd uudecode && \
16671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16673 "RANLIB=$${RANLIB}" \
16674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16675 distclean) \
16676 || exit 1
16679 .PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
16680 maybe-maintainer-clean-uudecode:
16682 maintainer-clean-uudecode:
16683 @[ -f ./uudecode/Makefile ] || exit 0; \
16684 r=`${PWD_COMMAND}`; export r; \
16685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16686 $(SET_LIB_PATH) \
16687 for flag in $(EXTRA_HOST_FLAGS); do \
16688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16689 done; \
16690 echo "Doing maintainer-clean in uudecode" ; \
16691 (cd uudecode && \
16692 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16693 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16694 "RANLIB=$${RANLIB}" \
16695 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16696 maintainer-clean) \
16697 || exit 1
16701 .PHONY: configure-wdiff maybe-configure-wdiff
16702 maybe-configure-wdiff:
16703 configure-wdiff:
16704 @test ! -f wdiff/Makefile || exit 0; \
16705 [ -d wdiff ] || mkdir wdiff; \
16706 r=`${PWD_COMMAND}`; export r; \
16707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16708 CC="$(CC)"; export CC; \
16709 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16710 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16711 CXX="$(CXX)"; export CXX; \
16712 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16713 AR="$(AR)"; export AR; \
16714 AS="$(AS)"; export AS; \
16715 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16716 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16717 LD="$(LD)"; export LD; \
16718 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
16719 NM="$(NM)"; export NM; \
16720 RANLIB="$(RANLIB)"; export RANLIB; \
16721 WINDRES="$(WINDRES)"; export WINDRES; \
16722 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16723 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16724 echo Configuring in wdiff; \
16725 cd wdiff || exit 1; \
16726 case $(srcdir) in \
16727 \.) \
16728 srcdiroption="--srcdir=."; \
16729 libsrcdir=".";; \
16730 /* | [A-Za-z]:[\\/]*) \
16731 srcdiroption="--srcdir=$(srcdir)/wdiff"; \
16732 libsrcdir="$$s/wdiff";; \
16733 *) \
16734 srcdiroption="--srcdir=../$(srcdir)/wdiff"; \
16735 libsrcdir="$$s/wdiff";; \
16736 esac; \
16737 $(SHELL) $${libsrcdir}/configure \
16738 $(HOST_CONFIGARGS) $${srcdiroption} \
16739 || exit 1
16741 .PHONY: all-wdiff maybe-all-wdiff
16742 maybe-all-wdiff:
16743 all-wdiff: configure-wdiff
16744 @r=`${PWD_COMMAND}`; export r; \
16745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16746 $(SET_LIB_PATH) \
16747 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all)
16749 .PHONY: check-wdiff maybe-check-wdiff
16750 maybe-check-wdiff:
16752 check-wdiff:
16753 @r=`${PWD_COMMAND}`; export r; \
16754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16755 $(SET_LIB_PATH) \
16756 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check)
16759 .PHONY: install-wdiff maybe-install-wdiff
16760 maybe-install-wdiff:
16762 install-wdiff: installdirs
16763 @r=`${PWD_COMMAND}`; export r; \
16764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16765 $(SET_LIB_PATH) \
16766 (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install)
16769 # Other targets (info, dvi, etc.)
16771 .PHONY: maybe-info-wdiff info-wdiff
16772 maybe-info-wdiff:
16774 info-wdiff: \
16775 configure-wdiff
16776 @[ -f ./wdiff/Makefile ] || exit 0; \
16777 r=`${PWD_COMMAND}`; export r; \
16778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16779 $(SET_LIB_PATH) \
16780 for flag in $(EXTRA_HOST_FLAGS); do \
16781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16782 done; \
16783 echo "Doing info in wdiff" ; \
16784 (cd wdiff && \
16785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16787 "RANLIB=$${RANLIB}" \
16788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16789 info) \
16790 || exit 1
16793 .PHONY: maybe-dvi-wdiff dvi-wdiff
16794 maybe-dvi-wdiff:
16796 dvi-wdiff: \
16797 configure-wdiff
16798 @[ -f ./wdiff/Makefile ] || exit 0; \
16799 r=`${PWD_COMMAND}`; export r; \
16800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16801 $(SET_LIB_PATH) \
16802 for flag in $(EXTRA_HOST_FLAGS); do \
16803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16804 done; \
16805 echo "Doing dvi in wdiff" ; \
16806 (cd wdiff && \
16807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16809 "RANLIB=$${RANLIB}" \
16810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16811 dvi) \
16812 || exit 1
16815 .PHONY: maybe-TAGS-wdiff TAGS-wdiff
16816 maybe-TAGS-wdiff:
16818 TAGS-wdiff: \
16819 configure-wdiff
16820 @[ -f ./wdiff/Makefile ] || exit 0; \
16821 r=`${PWD_COMMAND}`; export r; \
16822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16823 $(SET_LIB_PATH) \
16824 for flag in $(EXTRA_HOST_FLAGS); do \
16825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16826 done; \
16827 echo "Doing TAGS in wdiff" ; \
16828 (cd wdiff && \
16829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16831 "RANLIB=$${RANLIB}" \
16832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16833 TAGS) \
16834 || exit 1
16837 .PHONY: maybe-install-info-wdiff install-info-wdiff
16838 maybe-install-info-wdiff:
16840 install-info-wdiff: \
16841 configure-wdiff \
16842 info-wdiff
16843 @[ -f ./wdiff/Makefile ] || exit 0; \
16844 r=`${PWD_COMMAND}`; export r; \
16845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16846 $(SET_LIB_PATH) \
16847 for flag in $(EXTRA_HOST_FLAGS); do \
16848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16849 done; \
16850 echo "Doing install-info in wdiff" ; \
16851 (cd wdiff && \
16852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16854 "RANLIB=$${RANLIB}" \
16855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16856 install-info) \
16857 || exit 1
16860 .PHONY: maybe-installcheck-wdiff installcheck-wdiff
16861 maybe-installcheck-wdiff:
16863 installcheck-wdiff: \
16864 configure-wdiff
16865 @[ -f ./wdiff/Makefile ] || exit 0; \
16866 r=`${PWD_COMMAND}`; export r; \
16867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16868 $(SET_LIB_PATH) \
16869 for flag in $(EXTRA_HOST_FLAGS); do \
16870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16871 done; \
16872 echo "Doing installcheck in wdiff" ; \
16873 (cd wdiff && \
16874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16876 "RANLIB=$${RANLIB}" \
16877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16878 installcheck) \
16879 || exit 1
16882 .PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
16883 maybe-mostlyclean-wdiff:
16885 mostlyclean-wdiff:
16886 @[ -f ./wdiff/Makefile ] || exit 0; \
16887 r=`${PWD_COMMAND}`; export r; \
16888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16889 $(SET_LIB_PATH) \
16890 for flag in $(EXTRA_HOST_FLAGS); do \
16891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16892 done; \
16893 echo "Doing mostlyclean in wdiff" ; \
16894 (cd wdiff && \
16895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16897 "RANLIB=$${RANLIB}" \
16898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16899 mostlyclean) \
16900 || exit 1
16903 .PHONY: maybe-clean-wdiff clean-wdiff
16904 maybe-clean-wdiff:
16906 clean-wdiff:
16907 @[ -f ./wdiff/Makefile ] || exit 0; \
16908 r=`${PWD_COMMAND}`; export r; \
16909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16910 $(SET_LIB_PATH) \
16911 for flag in $(EXTRA_HOST_FLAGS); do \
16912 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16913 done; \
16914 echo "Doing clean in wdiff" ; \
16915 (cd wdiff && \
16916 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16917 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16918 "RANLIB=$${RANLIB}" \
16919 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16920 clean) \
16921 || exit 1
16924 .PHONY: maybe-distclean-wdiff distclean-wdiff
16925 maybe-distclean-wdiff:
16927 distclean-wdiff:
16928 @[ -f ./wdiff/Makefile ] || exit 0; \
16929 r=`${PWD_COMMAND}`; export r; \
16930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16931 $(SET_LIB_PATH) \
16932 for flag in $(EXTRA_HOST_FLAGS); do \
16933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16934 done; \
16935 echo "Doing distclean in wdiff" ; \
16936 (cd wdiff && \
16937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16939 "RANLIB=$${RANLIB}" \
16940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16941 distclean) \
16942 || exit 1
16945 .PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
16946 maybe-maintainer-clean-wdiff:
16948 maintainer-clean-wdiff:
16949 @[ -f ./wdiff/Makefile ] || exit 0; \
16950 r=`${PWD_COMMAND}`; export r; \
16951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16952 $(SET_LIB_PATH) \
16953 for flag in $(EXTRA_HOST_FLAGS); do \
16954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16955 done; \
16956 echo "Doing maintainer-clean in wdiff" ; \
16957 (cd wdiff && \
16958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16960 "RANLIB=$${RANLIB}" \
16961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16962 maintainer-clean) \
16963 || exit 1
16967 .PHONY: configure-zip maybe-configure-zip
16968 maybe-configure-zip:
16969 configure-zip:
16970 @test ! -f zip/Makefile || exit 0; \
16971 [ -d zip ] || mkdir zip; \
16972 r=`${PWD_COMMAND}`; export r; \
16973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16974 CC="$(CC)"; export CC; \
16975 CFLAGS="$(CFLAGS)"; export CFLAGS; \
16976 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
16977 CXX="$(CXX)"; export CXX; \
16978 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
16979 AR="$(AR)"; export AR; \
16980 AS="$(AS)"; export AS; \
16981 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
16982 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
16983 LD="$(LD)"; export LD; \
16984 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
16985 NM="$(NM)"; export NM; \
16986 RANLIB="$(RANLIB)"; export RANLIB; \
16987 WINDRES="$(WINDRES)"; export WINDRES; \
16988 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
16989 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
16990 echo Configuring in zip; \
16991 cd zip || exit 1; \
16992 case $(srcdir) in \
16993 \.) \
16994 srcdiroption="--srcdir=."; \
16995 libsrcdir=".";; \
16996 /* | [A-Za-z]:[\\/]*) \
16997 srcdiroption="--srcdir=$(srcdir)/zip"; \
16998 libsrcdir="$$s/zip";; \
16999 *) \
17000 srcdiroption="--srcdir=../$(srcdir)/zip"; \
17001 libsrcdir="$$s/zip";; \
17002 esac; \
17003 $(SHELL) $${libsrcdir}/configure \
17004 $(HOST_CONFIGARGS) $${srcdiroption} \
17005 || exit 1
17007 .PHONY: all-zip maybe-all-zip
17008 maybe-all-zip:
17009 all-zip: configure-zip
17010 @r=`${PWD_COMMAND}`; export r; \
17011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17012 $(SET_LIB_PATH) \
17013 (cd zip && $(MAKE) $(FLAGS_TO_PASS) all)
17015 .PHONY: check-zip maybe-check-zip
17016 maybe-check-zip:
17018 # This module is only tested in a native toolchain.
17019 check-zip:
17020 @if [ '$(host)' = '$(target)' ] ; then \
17021 r=`${PWD_COMMAND}`; export r; \
17022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17023 $(SET_LIB_PATH) \
17024 (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \
17028 .PHONY: install-zip maybe-install-zip
17029 maybe-install-zip:
17031 install-zip: installdirs
17032 @r=`${PWD_COMMAND}`; export r; \
17033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17034 $(SET_LIB_PATH) \
17035 (cd zip && $(MAKE) $(FLAGS_TO_PASS) install)
17038 # Other targets (info, dvi, etc.)
17040 .PHONY: maybe-info-zip info-zip
17041 maybe-info-zip:
17043 info-zip: \
17044 configure-zip
17045 @[ -f ./zip/Makefile ] || exit 0; \
17046 r=`${PWD_COMMAND}`; export r; \
17047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17048 $(SET_LIB_PATH) \
17049 for flag in $(EXTRA_HOST_FLAGS); do \
17050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17051 done; \
17052 echo "Doing info in zip" ; \
17053 (cd zip && \
17054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17056 "RANLIB=$${RANLIB}" \
17057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17058 info) \
17059 || exit 1
17062 .PHONY: maybe-dvi-zip dvi-zip
17063 maybe-dvi-zip:
17065 dvi-zip: \
17066 configure-zip
17067 @[ -f ./zip/Makefile ] || exit 0; \
17068 r=`${PWD_COMMAND}`; export r; \
17069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17070 $(SET_LIB_PATH) \
17071 for flag in $(EXTRA_HOST_FLAGS); do \
17072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17073 done; \
17074 echo "Doing dvi in zip" ; \
17075 (cd zip && \
17076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17078 "RANLIB=$${RANLIB}" \
17079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17080 dvi) \
17081 || exit 1
17084 .PHONY: maybe-TAGS-zip TAGS-zip
17085 maybe-TAGS-zip:
17087 TAGS-zip: \
17088 configure-zip
17089 @[ -f ./zip/Makefile ] || exit 0; \
17090 r=`${PWD_COMMAND}`; export r; \
17091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17092 $(SET_LIB_PATH) \
17093 for flag in $(EXTRA_HOST_FLAGS); do \
17094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17095 done; \
17096 echo "Doing TAGS in zip" ; \
17097 (cd zip && \
17098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17100 "RANLIB=$${RANLIB}" \
17101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17102 TAGS) \
17103 || exit 1
17106 .PHONY: maybe-install-info-zip install-info-zip
17107 maybe-install-info-zip:
17109 install-info-zip: \
17110 configure-zip \
17111 info-zip
17112 @[ -f ./zip/Makefile ] || exit 0; \
17113 r=`${PWD_COMMAND}`; export r; \
17114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17115 $(SET_LIB_PATH) \
17116 for flag in $(EXTRA_HOST_FLAGS); do \
17117 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17118 done; \
17119 echo "Doing install-info in zip" ; \
17120 (cd zip && \
17121 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17122 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17123 "RANLIB=$${RANLIB}" \
17124 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17125 install-info) \
17126 || exit 1
17129 .PHONY: maybe-installcheck-zip installcheck-zip
17130 maybe-installcheck-zip:
17132 installcheck-zip: \
17133 configure-zip
17134 @[ -f ./zip/Makefile ] || exit 0; \
17135 r=`${PWD_COMMAND}`; export r; \
17136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17137 $(SET_LIB_PATH) \
17138 for flag in $(EXTRA_HOST_FLAGS); do \
17139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17140 done; \
17141 echo "Doing installcheck in zip" ; \
17142 (cd zip && \
17143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17145 "RANLIB=$${RANLIB}" \
17146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17147 installcheck) \
17148 || exit 1
17151 .PHONY: maybe-mostlyclean-zip mostlyclean-zip
17152 maybe-mostlyclean-zip:
17154 mostlyclean-zip:
17155 @[ -f ./zip/Makefile ] || exit 0; \
17156 r=`${PWD_COMMAND}`; export r; \
17157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17158 $(SET_LIB_PATH) \
17159 for flag in $(EXTRA_HOST_FLAGS); do \
17160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17161 done; \
17162 echo "Doing mostlyclean in zip" ; \
17163 (cd zip && \
17164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17166 "RANLIB=$${RANLIB}" \
17167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17168 mostlyclean) \
17169 || exit 1
17172 .PHONY: maybe-clean-zip clean-zip
17173 maybe-clean-zip:
17175 clean-zip:
17176 @[ -f ./zip/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 clean in zip" ; \
17184 (cd zip && \
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 clean) \
17190 || exit 1
17193 .PHONY: maybe-distclean-zip distclean-zip
17194 maybe-distclean-zip:
17196 distclean-zip:
17197 @[ -f ./zip/Makefile ] || exit 0; \
17198 r=`${PWD_COMMAND}`; export r; \
17199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17200 $(SET_LIB_PATH) \
17201 for flag in $(EXTRA_HOST_FLAGS); do \
17202 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17203 done; \
17204 echo "Doing distclean in zip" ; \
17205 (cd zip && \
17206 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17207 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17208 "RANLIB=$${RANLIB}" \
17209 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17210 distclean) \
17211 || exit 1
17214 .PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
17215 maybe-maintainer-clean-zip:
17217 maintainer-clean-zip:
17218 @[ -f ./zip/Makefile ] || exit 0; \
17219 r=`${PWD_COMMAND}`; export r; \
17220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17221 $(SET_LIB_PATH) \
17222 for flag in $(EXTRA_HOST_FLAGS); do \
17223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17224 done; \
17225 echo "Doing maintainer-clean in zip" ; \
17226 (cd zip && \
17227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17229 "RANLIB=$${RANLIB}" \
17230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17231 maintainer-clean) \
17232 || exit 1
17236 .PHONY: configure-zlib maybe-configure-zlib
17237 maybe-configure-zlib:
17238 configure-zlib:
17239 @test ! -f zlib/Makefile || exit 0; \
17240 [ -d zlib ] || mkdir zlib; \
17241 r=`${PWD_COMMAND}`; export r; \
17242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17243 CC="$(CC)"; export CC; \
17244 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17245 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17246 CXX="$(CXX)"; export CXX; \
17247 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17248 AR="$(AR)"; export AR; \
17249 AS="$(AS)"; export AS; \
17250 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17251 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17252 LD="$(LD)"; export LD; \
17253 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
17254 NM="$(NM)"; export NM; \
17255 RANLIB="$(RANLIB)"; export RANLIB; \
17256 WINDRES="$(WINDRES)"; export WINDRES; \
17257 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17258 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17259 echo Configuring in zlib; \
17260 cd zlib || exit 1; \
17261 case $(srcdir) in \
17262 \.) \
17263 srcdiroption="--srcdir=."; \
17264 libsrcdir=".";; \
17265 /* | [A-Za-z]:[\\/]*) \
17266 srcdiroption="--srcdir=$(srcdir)/zlib"; \
17267 libsrcdir="$$s/zlib";; \
17268 *) \
17269 srcdiroption="--srcdir=../$(srcdir)/zlib"; \
17270 libsrcdir="$$s/zlib";; \
17271 esac; \
17272 $(SHELL) $${libsrcdir}/configure \
17273 $(HOST_CONFIGARGS) $${srcdiroption} \
17274 || exit 1
17276 .PHONY: all-zlib maybe-all-zlib
17277 maybe-all-zlib:
17278 all-zlib: configure-zlib
17279 @r=`${PWD_COMMAND}`; export r; \
17280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17281 $(SET_LIB_PATH) \
17282 (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all)
17284 .PHONY: check-zlib maybe-check-zlib
17285 maybe-check-zlib:
17287 check-zlib:
17290 .PHONY: install-zlib maybe-install-zlib
17291 maybe-install-zlib:
17293 install-zlib:
17296 # Other targets (info, dvi, etc.)
17298 .PHONY: maybe-info-zlib info-zlib
17299 maybe-info-zlib:
17301 info-zlib: \
17302 configure-zlib
17303 @[ -f ./zlib/Makefile ] || exit 0; \
17304 r=`${PWD_COMMAND}`; export r; \
17305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17306 $(SET_LIB_PATH) \
17307 for flag in $(EXTRA_HOST_FLAGS); do \
17308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17309 done; \
17310 echo "Doing info in zlib" ; \
17311 (cd zlib && \
17312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17314 "RANLIB=$${RANLIB}" \
17315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17316 info) \
17317 || exit 1
17320 .PHONY: maybe-dvi-zlib dvi-zlib
17321 maybe-dvi-zlib:
17323 dvi-zlib: \
17324 configure-zlib
17325 @[ -f ./zlib/Makefile ] || exit 0; \
17326 r=`${PWD_COMMAND}`; export r; \
17327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17328 $(SET_LIB_PATH) \
17329 for flag in $(EXTRA_HOST_FLAGS); do \
17330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17331 done; \
17332 echo "Doing dvi in zlib" ; \
17333 (cd zlib && \
17334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17336 "RANLIB=$${RANLIB}" \
17337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17338 dvi) \
17339 || exit 1
17342 .PHONY: maybe-TAGS-zlib TAGS-zlib
17343 maybe-TAGS-zlib:
17345 TAGS-zlib: \
17346 configure-zlib
17347 @[ -f ./zlib/Makefile ] || exit 0; \
17348 r=`${PWD_COMMAND}`; export r; \
17349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17350 $(SET_LIB_PATH) \
17351 for flag in $(EXTRA_HOST_FLAGS); do \
17352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17353 done; \
17354 echo "Doing TAGS in zlib" ; \
17355 (cd zlib && \
17356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17358 "RANLIB=$${RANLIB}" \
17359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17360 TAGS) \
17361 || exit 1
17364 .PHONY: maybe-install-info-zlib install-info-zlib
17365 maybe-install-info-zlib:
17367 install-info-zlib: \
17368 configure-zlib \
17369 info-zlib
17370 @[ -f ./zlib/Makefile ] || exit 0; \
17371 r=`${PWD_COMMAND}`; export r; \
17372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17373 $(SET_LIB_PATH) \
17374 for flag in $(EXTRA_HOST_FLAGS); do \
17375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17376 done; \
17377 echo "Doing install-info in zlib" ; \
17378 (cd zlib && \
17379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17381 "RANLIB=$${RANLIB}" \
17382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17383 install-info) \
17384 || exit 1
17387 .PHONY: maybe-installcheck-zlib installcheck-zlib
17388 maybe-installcheck-zlib:
17390 installcheck-zlib: \
17391 configure-zlib
17392 @[ -f ./zlib/Makefile ] || exit 0; \
17393 r=`${PWD_COMMAND}`; export r; \
17394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17395 $(SET_LIB_PATH) \
17396 for flag in $(EXTRA_HOST_FLAGS); do \
17397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17398 done; \
17399 echo "Doing installcheck in zlib" ; \
17400 (cd zlib && \
17401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17403 "RANLIB=$${RANLIB}" \
17404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17405 installcheck) \
17406 || exit 1
17409 .PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
17410 maybe-mostlyclean-zlib:
17412 mostlyclean-zlib:
17413 @[ -f ./zlib/Makefile ] || exit 0; \
17414 r=`${PWD_COMMAND}`; export r; \
17415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17416 $(SET_LIB_PATH) \
17417 for flag in $(EXTRA_HOST_FLAGS); do \
17418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17419 done; \
17420 echo "Doing mostlyclean in zlib" ; \
17421 (cd zlib && \
17422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17424 "RANLIB=$${RANLIB}" \
17425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17426 mostlyclean) \
17427 || exit 1
17430 .PHONY: maybe-clean-zlib clean-zlib
17431 maybe-clean-zlib:
17433 clean-zlib:
17434 @[ -f ./zlib/Makefile ] || exit 0; \
17435 r=`${PWD_COMMAND}`; export r; \
17436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17437 $(SET_LIB_PATH) \
17438 for flag in $(EXTRA_HOST_FLAGS); do \
17439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17440 done; \
17441 echo "Doing clean in zlib" ; \
17442 (cd zlib && \
17443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17445 "RANLIB=$${RANLIB}" \
17446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17447 clean) \
17448 || exit 1
17451 .PHONY: maybe-distclean-zlib distclean-zlib
17452 maybe-distclean-zlib:
17454 distclean-zlib:
17455 @[ -f ./zlib/Makefile ] || exit 0; \
17456 r=`${PWD_COMMAND}`; export r; \
17457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17458 $(SET_LIB_PATH) \
17459 for flag in $(EXTRA_HOST_FLAGS); do \
17460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17461 done; \
17462 echo "Doing distclean in zlib" ; \
17463 (cd zlib && \
17464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17466 "RANLIB=$${RANLIB}" \
17467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17468 distclean) \
17469 || exit 1
17472 .PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
17473 maybe-maintainer-clean-zlib:
17475 maintainer-clean-zlib:
17476 @[ -f ./zlib/Makefile ] || exit 0; \
17477 r=`${PWD_COMMAND}`; export r; \
17478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17479 $(SET_LIB_PATH) \
17480 for flag in $(EXTRA_HOST_FLAGS); do \
17481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17482 done; \
17483 echo "Doing maintainer-clean in zlib" ; \
17484 (cd zlib && \
17485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17487 "RANLIB=$${RANLIB}" \
17488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17489 maintainer-clean) \
17490 || exit 1
17494 .PHONY: configure-gdb maybe-configure-gdb
17495 maybe-configure-gdb:
17496 configure-gdb:
17497 @test ! -f gdb/Makefile || exit 0; \
17498 [ -d gdb ] || mkdir gdb; \
17499 r=`${PWD_COMMAND}`; export r; \
17500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17501 CC="$(CC)"; export CC; \
17502 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17503 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17504 CXX="$(CXX)"; export CXX; \
17505 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17506 AR="$(AR)"; export AR; \
17507 AS="$(AS)"; export AS; \
17508 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17509 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17510 LD="$(LD)"; export LD; \
17511 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
17512 NM="$(NM)"; export NM; \
17513 RANLIB="$(RANLIB)"; export RANLIB; \
17514 WINDRES="$(WINDRES)"; export WINDRES; \
17515 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17516 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17517 echo Configuring in gdb; \
17518 cd gdb || exit 1; \
17519 case $(srcdir) in \
17520 \.) \
17521 srcdiroption="--srcdir=."; \
17522 libsrcdir=".";; \
17523 /* | [A-Za-z]:[\\/]*) \
17524 srcdiroption="--srcdir=$(srcdir)/gdb"; \
17525 libsrcdir="$$s/gdb";; \
17526 *) \
17527 srcdiroption="--srcdir=../$(srcdir)/gdb"; \
17528 libsrcdir="$$s/gdb";; \
17529 esac; \
17530 $(SHELL) $${libsrcdir}/configure \
17531 $(HOST_CONFIGARGS) $${srcdiroption} \
17532 || exit 1
17534 .PHONY: all-gdb maybe-all-gdb
17535 maybe-all-gdb:
17536 all-gdb: configure-gdb
17537 @r=`${PWD_COMMAND}`; export r; \
17538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17539 $(SET_LIB_PATH) \
17540 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17542 .PHONY: check-gdb maybe-check-gdb
17543 maybe-check-gdb:
17545 check-gdb:
17546 @r=`${PWD_COMMAND}`; export r; \
17547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17548 $(SET_LIB_PATH) \
17549 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17552 .PHONY: install-gdb maybe-install-gdb
17553 maybe-install-gdb:
17555 install-gdb: installdirs
17556 @r=`${PWD_COMMAND}`; export r; \
17557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17558 $(SET_LIB_PATH) \
17559 (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17562 # Other targets (info, dvi, etc.)
17564 .PHONY: maybe-info-gdb info-gdb
17565 maybe-info-gdb:
17567 info-gdb: \
17568 configure-gdb
17569 @[ -f ./gdb/Makefile ] || exit 0; \
17570 r=`${PWD_COMMAND}`; export r; \
17571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17572 $(SET_LIB_PATH) \
17573 for flag in $(EXTRA_HOST_FLAGS); do \
17574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17575 done; \
17576 echo "Doing info in gdb" ; \
17577 (cd gdb && \
17578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17580 "RANLIB=$${RANLIB}" \
17581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17582 info) \
17583 || exit 1
17586 .PHONY: maybe-dvi-gdb dvi-gdb
17587 maybe-dvi-gdb:
17589 dvi-gdb: \
17590 configure-gdb
17591 @[ -f ./gdb/Makefile ] || exit 0; \
17592 r=`${PWD_COMMAND}`; export r; \
17593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17594 $(SET_LIB_PATH) \
17595 for flag in $(EXTRA_HOST_FLAGS); do \
17596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17597 done; \
17598 echo "Doing dvi in gdb" ; \
17599 (cd gdb && \
17600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17602 "RANLIB=$${RANLIB}" \
17603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17604 dvi) \
17605 || exit 1
17608 .PHONY: maybe-TAGS-gdb TAGS-gdb
17609 maybe-TAGS-gdb:
17611 TAGS-gdb: \
17612 configure-gdb
17613 @[ -f ./gdb/Makefile ] || exit 0; \
17614 r=`${PWD_COMMAND}`; export r; \
17615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17616 $(SET_LIB_PATH) \
17617 for flag in $(EXTRA_HOST_FLAGS); do \
17618 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17619 done; \
17620 echo "Doing TAGS in gdb" ; \
17621 (cd gdb && \
17622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17624 "RANLIB=$${RANLIB}" \
17625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17626 TAGS) \
17627 || exit 1
17630 .PHONY: maybe-install-info-gdb install-info-gdb
17631 maybe-install-info-gdb:
17633 install-info-gdb: \
17634 configure-gdb \
17635 info-gdb
17636 @[ -f ./gdb/Makefile ] || exit 0; \
17637 r=`${PWD_COMMAND}`; export r; \
17638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17639 $(SET_LIB_PATH) \
17640 for flag in $(EXTRA_HOST_FLAGS); do \
17641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17642 done; \
17643 echo "Doing install-info in gdb" ; \
17644 (cd gdb && \
17645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17647 "RANLIB=$${RANLIB}" \
17648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17649 install-info) \
17650 || exit 1
17653 .PHONY: maybe-installcheck-gdb installcheck-gdb
17654 maybe-installcheck-gdb:
17656 installcheck-gdb: \
17657 configure-gdb
17658 @[ -f ./gdb/Makefile ] || exit 0; \
17659 r=`${PWD_COMMAND}`; export r; \
17660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17661 $(SET_LIB_PATH) \
17662 for flag in $(EXTRA_HOST_FLAGS); do \
17663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17664 done; \
17665 echo "Doing installcheck in gdb" ; \
17666 (cd gdb && \
17667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17669 "RANLIB=$${RANLIB}" \
17670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17671 installcheck) \
17672 || exit 1
17675 .PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
17676 maybe-mostlyclean-gdb:
17678 mostlyclean-gdb:
17679 @[ -f ./gdb/Makefile ] || exit 0; \
17680 r=`${PWD_COMMAND}`; export r; \
17681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17682 $(SET_LIB_PATH) \
17683 for flag in $(EXTRA_HOST_FLAGS); do \
17684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17685 done; \
17686 echo "Doing mostlyclean in gdb" ; \
17687 (cd gdb && \
17688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17690 "RANLIB=$${RANLIB}" \
17691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17692 mostlyclean) \
17693 || exit 1
17696 .PHONY: maybe-clean-gdb clean-gdb
17697 maybe-clean-gdb:
17699 clean-gdb:
17700 @[ -f ./gdb/Makefile ] || exit 0; \
17701 r=`${PWD_COMMAND}`; export r; \
17702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17703 $(SET_LIB_PATH) \
17704 for flag in $(EXTRA_HOST_FLAGS); do \
17705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17706 done; \
17707 echo "Doing clean in gdb" ; \
17708 (cd gdb && \
17709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17711 "RANLIB=$${RANLIB}" \
17712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17713 clean) \
17714 || exit 1
17717 .PHONY: maybe-distclean-gdb distclean-gdb
17718 maybe-distclean-gdb:
17720 distclean-gdb:
17721 @[ -f ./gdb/Makefile ] || exit 0; \
17722 r=`${PWD_COMMAND}`; export r; \
17723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17724 $(SET_LIB_PATH) \
17725 for flag in $(EXTRA_HOST_FLAGS); do \
17726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17727 done; \
17728 echo "Doing distclean in gdb" ; \
17729 (cd gdb && \
17730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17732 "RANLIB=$${RANLIB}" \
17733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17734 distclean) \
17735 || exit 1
17738 .PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
17739 maybe-maintainer-clean-gdb:
17741 maintainer-clean-gdb:
17742 @[ -f ./gdb/Makefile ] || exit 0; \
17743 r=`${PWD_COMMAND}`; export r; \
17744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17745 $(SET_LIB_PATH) \
17746 for flag in $(EXTRA_HOST_FLAGS); do \
17747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17748 done; \
17749 echo "Doing maintainer-clean in gdb" ; \
17750 (cd gdb && \
17751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17753 "RANLIB=$${RANLIB}" \
17754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17755 maintainer-clean) \
17756 || exit 1
17760 .PHONY: configure-expect maybe-configure-expect
17761 maybe-configure-expect:
17762 configure-expect:
17763 @test ! -f expect/Makefile || exit 0; \
17764 [ -d expect ] || mkdir expect; \
17765 r=`${PWD_COMMAND}`; export r; \
17766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17767 CC="$(CC)"; export CC; \
17768 CFLAGS="$(CFLAGS)"; export CFLAGS; \
17769 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
17770 CXX="$(CXX)"; export CXX; \
17771 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
17772 AR="$(AR)"; export AR; \
17773 AS="$(AS)"; export AS; \
17774 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
17775 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
17776 LD="$(LD)"; export LD; \
17777 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
17778 NM="$(NM)"; export NM; \
17779 RANLIB="$(RANLIB)"; export RANLIB; \
17780 WINDRES="$(WINDRES)"; export WINDRES; \
17781 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
17782 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
17783 echo Configuring in expect; \
17784 cd expect || exit 1; \
17785 case $(srcdir) in \
17786 \.) \
17787 srcdiroption="--srcdir=."; \
17788 libsrcdir=".";; \
17789 /* | [A-Za-z]:[\\/]*) \
17790 srcdiroption="--srcdir=$(srcdir)/expect"; \
17791 libsrcdir="$$s/expect";; \
17792 *) \
17793 srcdiroption="--srcdir=../$(srcdir)/expect"; \
17794 libsrcdir="$$s/expect";; \
17795 esac; \
17796 $(SHELL) $${libsrcdir}/configure \
17797 $(HOST_CONFIGARGS) $${srcdiroption} \
17798 || exit 1
17800 .PHONY: all-expect maybe-all-expect
17801 maybe-all-expect:
17802 all-expect: configure-expect
17803 @r=`${PWD_COMMAND}`; export r; \
17804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17805 $(SET_LIB_PATH) \
17806 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
17808 .PHONY: check-expect maybe-check-expect
17809 maybe-check-expect:
17811 check-expect:
17812 @r=`${PWD_COMMAND}`; export r; \
17813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17814 $(SET_LIB_PATH) \
17815 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
17818 .PHONY: install-expect maybe-install-expect
17819 maybe-install-expect:
17821 install-expect: installdirs
17822 @r=`${PWD_COMMAND}`; export r; \
17823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17824 $(SET_LIB_PATH) \
17825 (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
17828 # Other targets (info, dvi, etc.)
17830 .PHONY: maybe-info-expect info-expect
17831 maybe-info-expect:
17833 info-expect: \
17834 configure-expect
17835 @[ -f ./expect/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 info in expect" ; \
17843 (cd expect && \
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 info) \
17849 || exit 1
17852 .PHONY: maybe-dvi-expect dvi-expect
17853 maybe-dvi-expect:
17855 dvi-expect: \
17856 configure-expect
17857 @[ -f ./expect/Makefile ] || exit 0; \
17858 r=`${PWD_COMMAND}`; export r; \
17859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17860 $(SET_LIB_PATH) \
17861 for flag in $(EXTRA_HOST_FLAGS); do \
17862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17863 done; \
17864 echo "Doing dvi in expect" ; \
17865 (cd expect && \
17866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17868 "RANLIB=$${RANLIB}" \
17869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17870 dvi) \
17871 || exit 1
17874 .PHONY: maybe-TAGS-expect TAGS-expect
17875 maybe-TAGS-expect:
17877 TAGS-expect: \
17878 configure-expect
17879 @[ -f ./expect/Makefile ] || exit 0; \
17880 r=`${PWD_COMMAND}`; export r; \
17881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17882 $(SET_LIB_PATH) \
17883 for flag in $(EXTRA_HOST_FLAGS); do \
17884 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17885 done; \
17886 echo "Doing TAGS in expect" ; \
17887 (cd expect && \
17888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17890 "RANLIB=$${RANLIB}" \
17891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17892 TAGS) \
17893 || exit 1
17896 .PHONY: maybe-install-info-expect install-info-expect
17897 maybe-install-info-expect:
17899 install-info-expect: \
17900 configure-expect \
17901 info-expect
17902 @[ -f ./expect/Makefile ] || exit 0; \
17903 r=`${PWD_COMMAND}`; export r; \
17904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17905 $(SET_LIB_PATH) \
17906 for flag in $(EXTRA_HOST_FLAGS); do \
17907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17908 done; \
17909 echo "Doing install-info in expect" ; \
17910 (cd expect && \
17911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17913 "RANLIB=$${RANLIB}" \
17914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17915 install-info) \
17916 || exit 1
17919 .PHONY: maybe-installcheck-expect installcheck-expect
17920 maybe-installcheck-expect:
17922 installcheck-expect: \
17923 configure-expect
17924 @[ -f ./expect/Makefile ] || exit 0; \
17925 r=`${PWD_COMMAND}`; export r; \
17926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17927 $(SET_LIB_PATH) \
17928 for flag in $(EXTRA_HOST_FLAGS); do \
17929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17930 done; \
17931 echo "Doing installcheck in expect" ; \
17932 (cd expect && \
17933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17935 "RANLIB=$${RANLIB}" \
17936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17937 installcheck) \
17938 || exit 1
17941 .PHONY: maybe-mostlyclean-expect mostlyclean-expect
17942 maybe-mostlyclean-expect:
17944 mostlyclean-expect:
17945 @[ -f ./expect/Makefile ] || exit 0; \
17946 r=`${PWD_COMMAND}`; export r; \
17947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17948 $(SET_LIB_PATH) \
17949 for flag in $(EXTRA_HOST_FLAGS); do \
17950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17951 done; \
17952 echo "Doing mostlyclean in expect" ; \
17953 (cd expect && \
17954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17956 "RANLIB=$${RANLIB}" \
17957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17958 mostlyclean) \
17959 || exit 1
17962 .PHONY: maybe-clean-expect clean-expect
17963 maybe-clean-expect:
17965 clean-expect:
17966 @[ -f ./expect/Makefile ] || exit 0; \
17967 r=`${PWD_COMMAND}`; export r; \
17968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17969 $(SET_LIB_PATH) \
17970 for flag in $(EXTRA_HOST_FLAGS); do \
17971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17972 done; \
17973 echo "Doing clean in expect" ; \
17974 (cd expect && \
17975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17977 "RANLIB=$${RANLIB}" \
17978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17979 clean) \
17980 || exit 1
17983 .PHONY: maybe-distclean-expect distclean-expect
17984 maybe-distclean-expect:
17986 distclean-expect:
17987 @[ -f ./expect/Makefile ] || exit 0; \
17988 r=`${PWD_COMMAND}`; export r; \
17989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17990 $(SET_LIB_PATH) \
17991 for flag in $(EXTRA_HOST_FLAGS); do \
17992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17993 done; \
17994 echo "Doing distclean in expect" ; \
17995 (cd expect && \
17996 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17997 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17998 "RANLIB=$${RANLIB}" \
17999 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18000 distclean) \
18001 || exit 1
18004 .PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
18005 maybe-maintainer-clean-expect:
18007 maintainer-clean-expect:
18008 @[ -f ./expect/Makefile ] || exit 0; \
18009 r=`${PWD_COMMAND}`; export r; \
18010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18011 $(SET_LIB_PATH) \
18012 for flag in $(EXTRA_HOST_FLAGS); do \
18013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18014 done; \
18015 echo "Doing maintainer-clean in expect" ; \
18016 (cd expect && \
18017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18019 "RANLIB=$${RANLIB}" \
18020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18021 maintainer-clean) \
18022 || exit 1
18026 .PHONY: configure-guile maybe-configure-guile
18027 maybe-configure-guile:
18028 configure-guile:
18029 @test ! -f guile/Makefile || exit 0; \
18030 [ -d guile ] || mkdir guile; \
18031 r=`${PWD_COMMAND}`; export r; \
18032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18033 CC="$(CC)"; export CC; \
18034 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18035 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18036 CXX="$(CXX)"; export CXX; \
18037 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18038 AR="$(AR)"; export AR; \
18039 AS="$(AS)"; export AS; \
18040 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18041 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18042 LD="$(LD)"; export LD; \
18043 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
18044 NM="$(NM)"; export NM; \
18045 RANLIB="$(RANLIB)"; export RANLIB; \
18046 WINDRES="$(WINDRES)"; export WINDRES; \
18047 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18048 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18049 echo Configuring in guile; \
18050 cd guile || exit 1; \
18051 case $(srcdir) in \
18052 \.) \
18053 srcdiroption="--srcdir=."; \
18054 libsrcdir=".";; \
18055 /* | [A-Za-z]:[\\/]*) \
18056 srcdiroption="--srcdir=$(srcdir)/guile"; \
18057 libsrcdir="$$s/guile";; \
18058 *) \
18059 srcdiroption="--srcdir=../$(srcdir)/guile"; \
18060 libsrcdir="$$s/guile";; \
18061 esac; \
18062 $(SHELL) $${libsrcdir}/configure \
18063 $(HOST_CONFIGARGS) $${srcdiroption} \
18064 || exit 1
18066 .PHONY: all-guile maybe-all-guile
18067 maybe-all-guile:
18068 all-guile: configure-guile
18069 @r=`${PWD_COMMAND}`; export r; \
18070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18071 $(SET_LIB_PATH) \
18072 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
18074 .PHONY: check-guile maybe-check-guile
18075 maybe-check-guile:
18077 check-guile:
18078 @r=`${PWD_COMMAND}`; export r; \
18079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18080 $(SET_LIB_PATH) \
18081 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
18084 .PHONY: install-guile maybe-install-guile
18085 maybe-install-guile:
18087 install-guile: installdirs
18088 @r=`${PWD_COMMAND}`; export r; \
18089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18090 $(SET_LIB_PATH) \
18091 (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
18094 # Other targets (info, dvi, etc.)
18096 .PHONY: maybe-info-guile info-guile
18097 maybe-info-guile:
18099 info-guile: \
18100 configure-guile
18101 @[ -f ./guile/Makefile ] || exit 0; \
18102 r=`${PWD_COMMAND}`; export r; \
18103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18104 $(SET_LIB_PATH) \
18105 for flag in $(EXTRA_HOST_FLAGS); do \
18106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18107 done; \
18108 echo "Doing info in guile" ; \
18109 (cd guile && \
18110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18112 "RANLIB=$${RANLIB}" \
18113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18114 info) \
18115 || exit 1
18118 .PHONY: maybe-dvi-guile dvi-guile
18119 maybe-dvi-guile:
18121 dvi-guile: \
18122 configure-guile
18123 @[ -f ./guile/Makefile ] || exit 0; \
18124 r=`${PWD_COMMAND}`; export r; \
18125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18126 $(SET_LIB_PATH) \
18127 for flag in $(EXTRA_HOST_FLAGS); do \
18128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18129 done; \
18130 echo "Doing dvi in guile" ; \
18131 (cd guile && \
18132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18134 "RANLIB=$${RANLIB}" \
18135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18136 dvi) \
18137 || exit 1
18140 .PHONY: maybe-TAGS-guile TAGS-guile
18141 maybe-TAGS-guile:
18143 TAGS-guile: \
18144 configure-guile
18145 @[ -f ./guile/Makefile ] || exit 0; \
18146 r=`${PWD_COMMAND}`; export r; \
18147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18148 $(SET_LIB_PATH) \
18149 for flag in $(EXTRA_HOST_FLAGS); do \
18150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18151 done; \
18152 echo "Doing TAGS in guile" ; \
18153 (cd guile && \
18154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18156 "RANLIB=$${RANLIB}" \
18157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18158 TAGS) \
18159 || exit 1
18162 .PHONY: maybe-install-info-guile install-info-guile
18163 maybe-install-info-guile:
18165 install-info-guile: \
18166 configure-guile \
18167 info-guile
18168 @[ -f ./guile/Makefile ] || exit 0; \
18169 r=`${PWD_COMMAND}`; export r; \
18170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18171 $(SET_LIB_PATH) \
18172 for flag in $(EXTRA_HOST_FLAGS); do \
18173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18174 done; \
18175 echo "Doing install-info in guile" ; \
18176 (cd guile && \
18177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18179 "RANLIB=$${RANLIB}" \
18180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18181 install-info) \
18182 || exit 1
18185 .PHONY: maybe-installcheck-guile installcheck-guile
18186 maybe-installcheck-guile:
18188 installcheck-guile: \
18189 configure-guile
18190 @[ -f ./guile/Makefile ] || exit 0; \
18191 r=`${PWD_COMMAND}`; export r; \
18192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18193 $(SET_LIB_PATH) \
18194 for flag in $(EXTRA_HOST_FLAGS); do \
18195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18196 done; \
18197 echo "Doing installcheck in guile" ; \
18198 (cd guile && \
18199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18201 "RANLIB=$${RANLIB}" \
18202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18203 installcheck) \
18204 || exit 1
18207 .PHONY: maybe-mostlyclean-guile mostlyclean-guile
18208 maybe-mostlyclean-guile:
18210 mostlyclean-guile:
18211 @[ -f ./guile/Makefile ] || exit 0; \
18212 r=`${PWD_COMMAND}`; export r; \
18213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18214 $(SET_LIB_PATH) \
18215 for flag in $(EXTRA_HOST_FLAGS); do \
18216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18217 done; \
18218 echo "Doing mostlyclean in guile" ; \
18219 (cd guile && \
18220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18222 "RANLIB=$${RANLIB}" \
18223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18224 mostlyclean) \
18225 || exit 1
18228 .PHONY: maybe-clean-guile clean-guile
18229 maybe-clean-guile:
18231 clean-guile:
18232 @[ -f ./guile/Makefile ] || exit 0; \
18233 r=`${PWD_COMMAND}`; export r; \
18234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18235 $(SET_LIB_PATH) \
18236 for flag in $(EXTRA_HOST_FLAGS); do \
18237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18238 done; \
18239 echo "Doing clean in guile" ; \
18240 (cd guile && \
18241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18243 "RANLIB=$${RANLIB}" \
18244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18245 clean) \
18246 || exit 1
18249 .PHONY: maybe-distclean-guile distclean-guile
18250 maybe-distclean-guile:
18252 distclean-guile:
18253 @[ -f ./guile/Makefile ] || exit 0; \
18254 r=`${PWD_COMMAND}`; export r; \
18255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18256 $(SET_LIB_PATH) \
18257 for flag in $(EXTRA_HOST_FLAGS); do \
18258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18259 done; \
18260 echo "Doing distclean in guile" ; \
18261 (cd guile && \
18262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18264 "RANLIB=$${RANLIB}" \
18265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18266 distclean) \
18267 || exit 1
18270 .PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
18271 maybe-maintainer-clean-guile:
18273 maintainer-clean-guile:
18274 @[ -f ./guile/Makefile ] || exit 0; \
18275 r=`${PWD_COMMAND}`; export r; \
18276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18277 $(SET_LIB_PATH) \
18278 for flag in $(EXTRA_HOST_FLAGS); do \
18279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18280 done; \
18281 echo "Doing maintainer-clean in guile" ; \
18282 (cd guile && \
18283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18285 "RANLIB=$${RANLIB}" \
18286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18287 maintainer-clean) \
18288 || exit 1
18292 .PHONY: configure-tk maybe-configure-tk
18293 maybe-configure-tk:
18294 configure-tk:
18295 @test ! -f tk/Makefile || exit 0; \
18296 [ -d tk ] || mkdir tk; \
18297 r=`${PWD_COMMAND}`; export r; \
18298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18299 CC="$(CC)"; export CC; \
18300 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18301 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18302 CXX="$(CXX)"; export CXX; \
18303 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18304 AR="$(AR)"; export AR; \
18305 AS="$(AS)"; export AS; \
18306 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18307 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18308 LD="$(LD)"; export LD; \
18309 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
18310 NM="$(NM)"; export NM; \
18311 RANLIB="$(RANLIB)"; export RANLIB; \
18312 WINDRES="$(WINDRES)"; export WINDRES; \
18313 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18314 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18315 echo Configuring in tk; \
18316 cd tk || exit 1; \
18317 case $(srcdir) in \
18318 \.) \
18319 srcdiroption="--srcdir=."; \
18320 libsrcdir=".";; \
18321 /* | [A-Za-z]:[\\/]*) \
18322 srcdiroption="--srcdir=$(srcdir)/tk"; \
18323 libsrcdir="$$s/tk";; \
18324 *) \
18325 srcdiroption="--srcdir=../$(srcdir)/tk"; \
18326 libsrcdir="$$s/tk";; \
18327 esac; \
18328 $(SHELL) $${libsrcdir}/configure \
18329 $(HOST_CONFIGARGS) $${srcdiroption} \
18330 || exit 1
18332 .PHONY: all-tk maybe-all-tk
18333 maybe-all-tk:
18334 all-tk: configure-tk
18335 @r=`${PWD_COMMAND}`; export r; \
18336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18337 $(SET_LIB_PATH) \
18338 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
18340 .PHONY: check-tk maybe-check-tk
18341 maybe-check-tk:
18343 check-tk:
18344 @r=`${PWD_COMMAND}`; export r; \
18345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18346 $(SET_LIB_PATH) \
18347 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
18350 .PHONY: install-tk maybe-install-tk
18351 maybe-install-tk:
18353 install-tk: installdirs
18354 @r=`${PWD_COMMAND}`; export r; \
18355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18356 $(SET_LIB_PATH) \
18357 (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
18360 # Other targets (info, dvi, etc.)
18362 .PHONY: maybe-info-tk info-tk
18363 maybe-info-tk:
18365 info-tk: \
18366 configure-tk
18367 @[ -f ./tk/Makefile ] || exit 0; \
18368 r=`${PWD_COMMAND}`; export r; \
18369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18370 $(SET_LIB_PATH) \
18371 for flag in $(EXTRA_HOST_FLAGS); do \
18372 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18373 done; \
18374 echo "Doing info in tk" ; \
18375 (cd tk && \
18376 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18377 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18378 "RANLIB=$${RANLIB}" \
18379 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18380 info) \
18381 || exit 1
18384 .PHONY: maybe-dvi-tk dvi-tk
18385 maybe-dvi-tk:
18387 dvi-tk: \
18388 configure-tk
18389 @[ -f ./tk/Makefile ] || exit 0; \
18390 r=`${PWD_COMMAND}`; export r; \
18391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18392 $(SET_LIB_PATH) \
18393 for flag in $(EXTRA_HOST_FLAGS); do \
18394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18395 done; \
18396 echo "Doing dvi in tk" ; \
18397 (cd tk && \
18398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18400 "RANLIB=$${RANLIB}" \
18401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18402 dvi) \
18403 || exit 1
18406 .PHONY: maybe-TAGS-tk TAGS-tk
18407 maybe-TAGS-tk:
18409 TAGS-tk: \
18410 configure-tk
18411 @[ -f ./tk/Makefile ] || exit 0; \
18412 r=`${PWD_COMMAND}`; export r; \
18413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18414 $(SET_LIB_PATH) \
18415 for flag in $(EXTRA_HOST_FLAGS); do \
18416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18417 done; \
18418 echo "Doing TAGS in tk" ; \
18419 (cd tk && \
18420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18422 "RANLIB=$${RANLIB}" \
18423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18424 TAGS) \
18425 || exit 1
18428 .PHONY: maybe-install-info-tk install-info-tk
18429 maybe-install-info-tk:
18431 install-info-tk: \
18432 configure-tk \
18433 info-tk
18434 @[ -f ./tk/Makefile ] || exit 0; \
18435 r=`${PWD_COMMAND}`; export r; \
18436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18437 $(SET_LIB_PATH) \
18438 for flag in $(EXTRA_HOST_FLAGS); do \
18439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18440 done; \
18441 echo "Doing install-info in tk" ; \
18442 (cd tk && \
18443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18445 "RANLIB=$${RANLIB}" \
18446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18447 install-info) \
18448 || exit 1
18451 .PHONY: maybe-installcheck-tk installcheck-tk
18452 maybe-installcheck-tk:
18454 installcheck-tk: \
18455 configure-tk
18456 @[ -f ./tk/Makefile ] || exit 0; \
18457 r=`${PWD_COMMAND}`; export r; \
18458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18459 $(SET_LIB_PATH) \
18460 for flag in $(EXTRA_HOST_FLAGS); do \
18461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18462 done; \
18463 echo "Doing installcheck in tk" ; \
18464 (cd tk && \
18465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18467 "RANLIB=$${RANLIB}" \
18468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18469 installcheck) \
18470 || exit 1
18473 .PHONY: maybe-mostlyclean-tk mostlyclean-tk
18474 maybe-mostlyclean-tk:
18476 mostlyclean-tk:
18477 @[ -f ./tk/Makefile ] || exit 0; \
18478 r=`${PWD_COMMAND}`; export r; \
18479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18480 $(SET_LIB_PATH) \
18481 for flag in $(EXTRA_HOST_FLAGS); do \
18482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18483 done; \
18484 echo "Doing mostlyclean in tk" ; \
18485 (cd tk && \
18486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18488 "RANLIB=$${RANLIB}" \
18489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18490 mostlyclean) \
18491 || exit 1
18494 .PHONY: maybe-clean-tk clean-tk
18495 maybe-clean-tk:
18497 clean-tk:
18498 @[ -f ./tk/Makefile ] || exit 0; \
18499 r=`${PWD_COMMAND}`; export r; \
18500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18501 $(SET_LIB_PATH) \
18502 for flag in $(EXTRA_HOST_FLAGS); do \
18503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18504 done; \
18505 echo "Doing clean in tk" ; \
18506 (cd tk && \
18507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18509 "RANLIB=$${RANLIB}" \
18510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18511 clean) \
18512 || exit 1
18515 .PHONY: maybe-distclean-tk distclean-tk
18516 maybe-distclean-tk:
18518 distclean-tk:
18519 @[ -f ./tk/Makefile ] || exit 0; \
18520 r=`${PWD_COMMAND}`; export r; \
18521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18522 $(SET_LIB_PATH) \
18523 for flag in $(EXTRA_HOST_FLAGS); do \
18524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18525 done; \
18526 echo "Doing distclean in tk" ; \
18527 (cd tk && \
18528 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18529 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18530 "RANLIB=$${RANLIB}" \
18531 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18532 distclean) \
18533 || exit 1
18536 .PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
18537 maybe-maintainer-clean-tk:
18539 maintainer-clean-tk:
18540 @[ -f ./tk/Makefile ] || exit 0; \
18541 r=`${PWD_COMMAND}`; export r; \
18542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18543 $(SET_LIB_PATH) \
18544 for flag in $(EXTRA_HOST_FLAGS); do \
18545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18546 done; \
18547 echo "Doing maintainer-clean in tk" ; \
18548 (cd tk && \
18549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18551 "RANLIB=$${RANLIB}" \
18552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18553 maintainer-clean) \
18554 || exit 1
18558 .PHONY: configure-tix maybe-configure-tix
18559 maybe-configure-tix:
18560 configure-tix:
18561 @test ! -f tix/Makefile || exit 0; \
18562 [ -d tix ] || mkdir tix; \
18563 r=`${PWD_COMMAND}`; export r; \
18564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18565 CC="$(CC)"; export CC; \
18566 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18567 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18568 CXX="$(CXX)"; export CXX; \
18569 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18570 AR="$(AR)"; export AR; \
18571 AS="$(AS)"; export AS; \
18572 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18573 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18574 LD="$(LD)"; export LD; \
18575 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
18576 NM="$(NM)"; export NM; \
18577 RANLIB="$(RANLIB)"; export RANLIB; \
18578 WINDRES="$(WINDRES)"; export WINDRES; \
18579 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18580 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18581 echo Configuring in tix; \
18582 cd tix || exit 1; \
18583 case $(srcdir) in \
18584 \.) \
18585 srcdiroption="--srcdir=."; \
18586 libsrcdir=".";; \
18587 /* | [A-Za-z]:[\\/]*) \
18588 srcdiroption="--srcdir=$(srcdir)/tix"; \
18589 libsrcdir="$$s/tix";; \
18590 *) \
18591 srcdiroption="--srcdir=../$(srcdir)/tix"; \
18592 libsrcdir="$$s/tix";; \
18593 esac; \
18594 $(SHELL) $${libsrcdir}/configure \
18595 $(HOST_CONFIGARGS) $${srcdiroption} \
18596 || exit 1
18598 .PHONY: all-tix maybe-all-tix
18599 maybe-all-tix:
18600 all-tix: configure-tix
18601 @r=`${PWD_COMMAND}`; export r; \
18602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18603 $(SET_LIB_PATH) \
18604 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all)
18606 .PHONY: check-tix maybe-check-tix
18607 maybe-check-tix:
18609 check-tix:
18610 @r=`${PWD_COMMAND}`; export r; \
18611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18612 $(SET_LIB_PATH) \
18613 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
18616 .PHONY: install-tix maybe-install-tix
18617 maybe-install-tix:
18619 install-tix: installdirs
18620 @r=`${PWD_COMMAND}`; export r; \
18621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18622 $(SET_LIB_PATH) \
18623 (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
18626 # Other targets (info, dvi, etc.)
18628 .PHONY: maybe-info-tix info-tix
18629 maybe-info-tix:
18631 info-tix: \
18632 configure-tix
18633 @[ -f ./tix/Makefile ] || exit 0; \
18634 r=`${PWD_COMMAND}`; export r; \
18635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18636 $(SET_LIB_PATH) \
18637 for flag in $(EXTRA_HOST_FLAGS); do \
18638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18639 done; \
18640 echo "Doing info in tix" ; \
18641 (cd tix && \
18642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18644 "RANLIB=$${RANLIB}" \
18645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18646 info) \
18647 || exit 1
18650 .PHONY: maybe-dvi-tix dvi-tix
18651 maybe-dvi-tix:
18653 dvi-tix: \
18654 configure-tix
18655 @[ -f ./tix/Makefile ] || exit 0; \
18656 r=`${PWD_COMMAND}`; export r; \
18657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18658 $(SET_LIB_PATH) \
18659 for flag in $(EXTRA_HOST_FLAGS); do \
18660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18661 done; \
18662 echo "Doing dvi in tix" ; \
18663 (cd tix && \
18664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18666 "RANLIB=$${RANLIB}" \
18667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18668 dvi) \
18669 || exit 1
18672 .PHONY: maybe-TAGS-tix TAGS-tix
18673 maybe-TAGS-tix:
18675 TAGS-tix: \
18676 configure-tix
18677 @[ -f ./tix/Makefile ] || exit 0; \
18678 r=`${PWD_COMMAND}`; export r; \
18679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18680 $(SET_LIB_PATH) \
18681 for flag in $(EXTRA_HOST_FLAGS); do \
18682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18683 done; \
18684 echo "Doing TAGS in tix" ; \
18685 (cd tix && \
18686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18688 "RANLIB=$${RANLIB}" \
18689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18690 TAGS) \
18691 || exit 1
18694 .PHONY: maybe-install-info-tix install-info-tix
18695 maybe-install-info-tix:
18697 install-info-tix: \
18698 configure-tix \
18699 info-tix
18700 @[ -f ./tix/Makefile ] || exit 0; \
18701 r=`${PWD_COMMAND}`; export r; \
18702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18703 $(SET_LIB_PATH) \
18704 for flag in $(EXTRA_HOST_FLAGS); do \
18705 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18706 done; \
18707 echo "Doing install-info in tix" ; \
18708 (cd tix && \
18709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18711 "RANLIB=$${RANLIB}" \
18712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18713 install-info) \
18714 || exit 1
18717 .PHONY: maybe-installcheck-tix installcheck-tix
18718 maybe-installcheck-tix:
18720 installcheck-tix: \
18721 configure-tix
18722 @[ -f ./tix/Makefile ] || exit 0; \
18723 r=`${PWD_COMMAND}`; export r; \
18724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18725 $(SET_LIB_PATH) \
18726 for flag in $(EXTRA_HOST_FLAGS); do \
18727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18728 done; \
18729 echo "Doing installcheck in tix" ; \
18730 (cd tix && \
18731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18733 "RANLIB=$${RANLIB}" \
18734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18735 installcheck) \
18736 || exit 1
18739 .PHONY: maybe-mostlyclean-tix mostlyclean-tix
18740 maybe-mostlyclean-tix:
18742 mostlyclean-tix:
18743 @[ -f ./tix/Makefile ] || exit 0; \
18744 r=`${PWD_COMMAND}`; export r; \
18745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18746 $(SET_LIB_PATH) \
18747 for flag in $(EXTRA_HOST_FLAGS); do \
18748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18749 done; \
18750 echo "Doing mostlyclean in tix" ; \
18751 (cd tix && \
18752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18754 "RANLIB=$${RANLIB}" \
18755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18756 mostlyclean) \
18757 || exit 1
18760 .PHONY: maybe-clean-tix clean-tix
18761 maybe-clean-tix:
18763 clean-tix:
18764 @[ -f ./tix/Makefile ] || exit 0; \
18765 r=`${PWD_COMMAND}`; export r; \
18766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18767 $(SET_LIB_PATH) \
18768 for flag in $(EXTRA_HOST_FLAGS); do \
18769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18770 done; \
18771 echo "Doing clean in tix" ; \
18772 (cd tix && \
18773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18775 "RANLIB=$${RANLIB}" \
18776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18777 clean) \
18778 || exit 1
18781 .PHONY: maybe-distclean-tix distclean-tix
18782 maybe-distclean-tix:
18784 distclean-tix:
18785 @[ -f ./tix/Makefile ] || exit 0; \
18786 r=`${PWD_COMMAND}`; export r; \
18787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18788 $(SET_LIB_PATH) \
18789 for flag in $(EXTRA_HOST_FLAGS); do \
18790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18791 done; \
18792 echo "Doing distclean in tix" ; \
18793 (cd tix && \
18794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18796 "RANLIB=$${RANLIB}" \
18797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18798 distclean) \
18799 || exit 1
18802 .PHONY: maybe-maintainer-clean-tix maintainer-clean-tix
18803 maybe-maintainer-clean-tix:
18805 maintainer-clean-tix:
18806 @[ -f ./tix/Makefile ] || exit 0; \
18807 r=`${PWD_COMMAND}`; export r; \
18808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18809 $(SET_LIB_PATH) \
18810 for flag in $(EXTRA_HOST_FLAGS); do \
18811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18812 done; \
18813 echo "Doing maintainer-clean in tix" ; \
18814 (cd tix && \
18815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18817 "RANLIB=$${RANLIB}" \
18818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18819 maintainer-clean) \
18820 || exit 1
18824 .PHONY: configure-libtermcap maybe-configure-libtermcap
18825 maybe-configure-libtermcap:
18826 configure-libtermcap:
18827 @test ! -f libtermcap/Makefile || exit 0; \
18828 [ -d libtermcap ] || mkdir libtermcap; \
18829 r=`${PWD_COMMAND}`; export r; \
18830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18831 CC="$(CC)"; export CC; \
18832 CFLAGS="$(CFLAGS)"; export CFLAGS; \
18833 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
18834 CXX="$(CXX)"; export CXX; \
18835 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
18836 AR="$(AR)"; export AR; \
18837 AS="$(AS)"; export AS; \
18838 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
18839 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
18840 LD="$(LD)"; export LD; \
18841 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
18842 NM="$(NM)"; export NM; \
18843 RANLIB="$(RANLIB)"; export RANLIB; \
18844 WINDRES="$(WINDRES)"; export WINDRES; \
18845 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
18846 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
18847 echo Configuring in libtermcap; \
18848 cd libtermcap || exit 1; \
18849 case $(srcdir) in \
18850 \.) \
18851 srcdiroption="--srcdir=."; \
18852 libsrcdir=".";; \
18853 /* | [A-Za-z]:[\\/]*) \
18854 srcdiroption="--srcdir=$(srcdir)/libtermcap"; \
18855 libsrcdir="$$s/libtermcap";; \
18856 *) \
18857 srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \
18858 libsrcdir="$$s/libtermcap";; \
18859 esac; \
18860 $(SHELL) $${libsrcdir}/configure \
18861 $(HOST_CONFIGARGS) $${srcdiroption} \
18862 || exit 1
18864 .PHONY: all-libtermcap maybe-all-libtermcap
18865 maybe-all-libtermcap:
18866 all-libtermcap: configure-libtermcap
18867 @r=`${PWD_COMMAND}`; export r; \
18868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18869 $(SET_LIB_PATH) \
18870 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all)
18872 .PHONY: check-libtermcap maybe-check-libtermcap
18873 maybe-check-libtermcap:
18875 check-libtermcap:
18878 .PHONY: install-libtermcap maybe-install-libtermcap
18879 maybe-install-libtermcap:
18881 install-libtermcap: installdirs
18882 @r=`${PWD_COMMAND}`; export r; \
18883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18884 $(SET_LIB_PATH) \
18885 (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install)
18888 # Other targets (info, dvi, etc.)
18890 .PHONY: maybe-info-libtermcap info-libtermcap
18891 maybe-info-libtermcap:
18893 info-libtermcap: \
18894 configure-libtermcap
18895 @[ -f ./libtermcap/Makefile ] || exit 0; \
18896 r=`${PWD_COMMAND}`; export r; \
18897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18898 $(SET_LIB_PATH) \
18899 for flag in $(EXTRA_HOST_FLAGS); do \
18900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18901 done; \
18902 echo "Doing info in libtermcap" ; \
18903 (cd libtermcap && \
18904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18906 "RANLIB=$${RANLIB}" \
18907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18908 info) \
18909 || exit 1
18912 .PHONY: maybe-dvi-libtermcap dvi-libtermcap
18913 maybe-dvi-libtermcap:
18915 dvi-libtermcap: \
18916 configure-libtermcap
18917 @[ -f ./libtermcap/Makefile ] || exit 0; \
18918 r=`${PWD_COMMAND}`; export r; \
18919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18920 $(SET_LIB_PATH) \
18921 for flag in $(EXTRA_HOST_FLAGS); do \
18922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18923 done; \
18924 echo "Doing dvi in libtermcap" ; \
18925 (cd libtermcap && \
18926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18928 "RANLIB=$${RANLIB}" \
18929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18930 dvi) \
18931 || exit 1
18934 .PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
18935 maybe-TAGS-libtermcap:
18937 TAGS-libtermcap: \
18938 configure-libtermcap
18939 @[ -f ./libtermcap/Makefile ] || exit 0; \
18940 r=`${PWD_COMMAND}`; export r; \
18941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18942 $(SET_LIB_PATH) \
18943 for flag in $(EXTRA_HOST_FLAGS); do \
18944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18945 done; \
18946 echo "Doing TAGS in libtermcap" ; \
18947 (cd libtermcap && \
18948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18950 "RANLIB=$${RANLIB}" \
18951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18952 TAGS) \
18953 || exit 1
18956 .PHONY: maybe-install-info-libtermcap install-info-libtermcap
18957 maybe-install-info-libtermcap:
18959 install-info-libtermcap: \
18960 configure-libtermcap \
18961 info-libtermcap
18962 @[ -f ./libtermcap/Makefile ] || exit 0; \
18963 r=`${PWD_COMMAND}`; export r; \
18964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18965 $(SET_LIB_PATH) \
18966 for flag in $(EXTRA_HOST_FLAGS); do \
18967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18968 done; \
18969 echo "Doing install-info in libtermcap" ; \
18970 (cd libtermcap && \
18971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18973 "RANLIB=$${RANLIB}" \
18974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18975 install-info) \
18976 || exit 1
18979 .PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
18980 maybe-installcheck-libtermcap:
18982 installcheck-libtermcap: \
18983 configure-libtermcap
18984 @[ -f ./libtermcap/Makefile ] || exit 0; \
18985 r=`${PWD_COMMAND}`; export r; \
18986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18987 $(SET_LIB_PATH) \
18988 for flag in $(EXTRA_HOST_FLAGS); do \
18989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18990 done; \
18991 echo "Doing installcheck in libtermcap" ; \
18992 (cd libtermcap && \
18993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18995 "RANLIB=$${RANLIB}" \
18996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18997 installcheck) \
18998 || exit 1
19001 .PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
19002 maybe-mostlyclean-libtermcap:
19004 # libtermcap doesn't support mostlyclean.
19005 mostlyclean-libtermcap:
19008 .PHONY: maybe-clean-libtermcap clean-libtermcap
19009 maybe-clean-libtermcap:
19011 # libtermcap doesn't support clean.
19012 clean-libtermcap:
19015 .PHONY: maybe-distclean-libtermcap distclean-libtermcap
19016 maybe-distclean-libtermcap:
19018 # libtermcap doesn't support distclean.
19019 distclean-libtermcap:
19022 .PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
19023 maybe-maintainer-clean-libtermcap:
19025 # libtermcap doesn't support maintainer-clean.
19026 maintainer-clean-libtermcap:
19030 .PHONY: configure-utils maybe-configure-utils
19031 maybe-configure-utils:
19032 configure-utils:
19033 @test ! -f utils/Makefile || exit 0; \
19034 [ -d utils ] || mkdir utils; \
19035 r=`${PWD_COMMAND}`; export r; \
19036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19037 CC="$(CC)"; export CC; \
19038 CFLAGS="$(CFLAGS)"; export CFLAGS; \
19039 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19040 CXX="$(CXX)"; export CXX; \
19041 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
19042 AR="$(AR)"; export AR; \
19043 AS="$(AS)"; export AS; \
19044 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
19045 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
19046 LD="$(LD)"; export LD; \
19047 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
19048 NM="$(NM)"; export NM; \
19049 RANLIB="$(RANLIB)"; export RANLIB; \
19050 WINDRES="$(WINDRES)"; export WINDRES; \
19051 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
19052 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
19053 echo Configuring in utils; \
19054 cd utils || exit 1; \
19055 case $(srcdir) in \
19056 \.) \
19057 srcdiroption="--srcdir=."; \
19058 libsrcdir=".";; \
19059 /* | [A-Za-z]:[\\/]*) \
19060 srcdiroption="--srcdir=$(srcdir)/utils"; \
19061 libsrcdir="$$s/utils";; \
19062 *) \
19063 srcdiroption="--srcdir=../$(srcdir)/utils"; \
19064 libsrcdir="$$s/utils";; \
19065 esac; \
19066 $(SHELL) $${libsrcdir}/configure \
19067 $(HOST_CONFIGARGS) $${srcdiroption} \
19068 || exit 1
19070 .PHONY: all-utils maybe-all-utils
19071 maybe-all-utils:
19072 all-utils: configure-utils
19073 @r=`${PWD_COMMAND}`; export r; \
19074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19075 $(SET_LIB_PATH) \
19076 (cd utils && $(MAKE) $(FLAGS_TO_PASS) all)
19078 .PHONY: check-utils maybe-check-utils
19079 maybe-check-utils:
19081 check-utils:
19084 .PHONY: install-utils maybe-install-utils
19085 maybe-install-utils:
19087 install-utils: installdirs
19088 @r=`${PWD_COMMAND}`; export r; \
19089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19090 $(SET_LIB_PATH) \
19091 (cd utils && $(MAKE) $(FLAGS_TO_PASS) install)
19094 # Other targets (info, dvi, etc.)
19096 .PHONY: maybe-info-utils info-utils
19097 maybe-info-utils:
19099 info-utils: \
19100 configure-utils
19101 @[ -f ./utils/Makefile ] || exit 0; \
19102 r=`${PWD_COMMAND}`; export r; \
19103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19104 $(SET_LIB_PATH) \
19105 for flag in $(EXTRA_HOST_FLAGS); do \
19106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19107 done; \
19108 echo "Doing info in utils" ; \
19109 (cd utils && \
19110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19112 "RANLIB=$${RANLIB}" \
19113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19114 info) \
19115 || exit 1
19118 .PHONY: maybe-dvi-utils dvi-utils
19119 maybe-dvi-utils:
19121 dvi-utils: \
19122 configure-utils
19123 @[ -f ./utils/Makefile ] || exit 0; \
19124 r=`${PWD_COMMAND}`; export r; \
19125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19126 $(SET_LIB_PATH) \
19127 for flag in $(EXTRA_HOST_FLAGS); do \
19128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19129 done; \
19130 echo "Doing dvi in utils" ; \
19131 (cd utils && \
19132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19134 "RANLIB=$${RANLIB}" \
19135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19136 dvi) \
19137 || exit 1
19140 .PHONY: maybe-TAGS-utils TAGS-utils
19141 maybe-TAGS-utils:
19143 TAGS-utils: \
19144 configure-utils
19145 @[ -f ./utils/Makefile ] || exit 0; \
19146 r=`${PWD_COMMAND}`; export r; \
19147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19148 $(SET_LIB_PATH) \
19149 for flag in $(EXTRA_HOST_FLAGS); do \
19150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19151 done; \
19152 echo "Doing TAGS in utils" ; \
19153 (cd utils && \
19154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19156 "RANLIB=$${RANLIB}" \
19157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19158 TAGS) \
19159 || exit 1
19162 .PHONY: maybe-install-info-utils install-info-utils
19163 maybe-install-info-utils:
19165 install-info-utils: \
19166 configure-utils \
19167 info-utils
19168 @[ -f ./utils/Makefile ] || exit 0; \
19169 r=`${PWD_COMMAND}`; export r; \
19170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19171 $(SET_LIB_PATH) \
19172 for flag in $(EXTRA_HOST_FLAGS); do \
19173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19174 done; \
19175 echo "Doing install-info in utils" ; \
19176 (cd utils && \
19177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19179 "RANLIB=$${RANLIB}" \
19180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19181 install-info) \
19182 || exit 1
19185 .PHONY: maybe-installcheck-utils installcheck-utils
19186 maybe-installcheck-utils:
19188 installcheck-utils: \
19189 configure-utils
19190 @[ -f ./utils/Makefile ] || exit 0; \
19191 r=`${PWD_COMMAND}`; export r; \
19192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19193 $(SET_LIB_PATH) \
19194 for flag in $(EXTRA_HOST_FLAGS); do \
19195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19196 done; \
19197 echo "Doing installcheck in utils" ; \
19198 (cd utils && \
19199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19201 "RANLIB=$${RANLIB}" \
19202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19203 installcheck) \
19204 || exit 1
19207 .PHONY: maybe-mostlyclean-utils mostlyclean-utils
19208 maybe-mostlyclean-utils:
19210 mostlyclean-utils:
19211 @[ -f ./utils/Makefile ] || exit 0; \
19212 r=`${PWD_COMMAND}`; export r; \
19213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19214 $(SET_LIB_PATH) \
19215 for flag in $(EXTRA_HOST_FLAGS); do \
19216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19217 done; \
19218 echo "Doing mostlyclean in utils" ; \
19219 (cd utils && \
19220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19222 "RANLIB=$${RANLIB}" \
19223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19224 mostlyclean) \
19225 || exit 1
19228 .PHONY: maybe-clean-utils clean-utils
19229 maybe-clean-utils:
19231 clean-utils:
19232 @[ -f ./utils/Makefile ] || exit 0; \
19233 r=`${PWD_COMMAND}`; export r; \
19234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19235 $(SET_LIB_PATH) \
19236 for flag in $(EXTRA_HOST_FLAGS); do \
19237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19238 done; \
19239 echo "Doing clean in utils" ; \
19240 (cd utils && \
19241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19243 "RANLIB=$${RANLIB}" \
19244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19245 clean) \
19246 || exit 1
19249 .PHONY: maybe-distclean-utils distclean-utils
19250 maybe-distclean-utils:
19252 distclean-utils:
19253 @[ -f ./utils/Makefile ] || exit 0; \
19254 r=`${PWD_COMMAND}`; export r; \
19255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19256 $(SET_LIB_PATH) \
19257 for flag in $(EXTRA_HOST_FLAGS); do \
19258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19259 done; \
19260 echo "Doing distclean in utils" ; \
19261 (cd utils && \
19262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19264 "RANLIB=$${RANLIB}" \
19265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19266 distclean) \
19267 || exit 1
19270 .PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
19271 maybe-maintainer-clean-utils:
19273 maintainer-clean-utils:
19274 @[ -f ./utils/Makefile ] || exit 0; \
19275 r=`${PWD_COMMAND}`; export r; \
19276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19277 $(SET_LIB_PATH) \
19278 for flag in $(EXTRA_HOST_FLAGS); do \
19279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19280 done; \
19281 echo "Doing maintainer-clean in utils" ; \
19282 (cd utils && \
19283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19285 "RANLIB=$${RANLIB}" \
19286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19287 maintainer-clean) \
19288 || exit 1
19293 # ---------------------------------------
19294 # Modules which run on the target machine
19295 # ---------------------------------------
19297 .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
19298 maybe-configure-target-libstdc++-v3:
19300 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19301 $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out
19302 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
19303 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \
19304 cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
19306 configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out
19307 @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
19308 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
19309 r=`${PWD_COMMAND}`; export r; \
19310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19311 $(SET_LIB_PATH) \
19312 AR="$(AR_FOR_TARGET)"; export AR; \
19313 AS="$(AS_FOR_TARGET)"; export AS; \
19314 CC="$(CC_FOR_TARGET)"; export CC; \
19315 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19316 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19317 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19318 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
19319 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
19320 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19321 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19322 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
19323 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19324 LD="$(LD_FOR_TARGET)"; export LD; \
19325 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19326 NM="$(NM_FOR_TARGET)"; export NM; \
19327 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19328 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19329 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
19330 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
19331 case $(srcdir) in \
19332 /* | [A-Za-z]:[\\/]*) \
19333 topdir=$(srcdir) ;; \
19334 *) \
19335 case "$(TARGET_SUBDIR)" in \
19336 .) topdir="../$(srcdir)" ;; \
19337 *) topdir="../../$(srcdir)" ;; \
19338 esac ;; \
19339 esac; \
19340 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
19341 libsrcdir="$$s/libstdc++-v3"; \
19342 rm -f no-such-file || : ; \
19343 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19344 $(TARGET_CONFIGARGS) $${srcdiroption} \
19345 --with-target-subdir="$(TARGET_SUBDIR)" \
19346 || exit 1
19348 .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
19349 maybe-all-target-libstdc++-v3:
19350 all-target-libstdc++-v3: configure-target-libstdc++-v3
19351 @r=`${PWD_COMMAND}`; export r; \
19352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19353 $(SET_LIB_PATH) \
19354 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19355 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
19357 .PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
19358 maybe-check-target-libstdc++-v3:
19360 check-target-libstdc++-v3:
19361 @r=`${PWD_COMMAND}`; export r; \
19362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19363 $(SET_LIB_PATH) \
19364 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19365 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
19368 .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
19369 maybe-install-target-libstdc++-v3:
19371 install-target-libstdc++-v3: installdirs
19372 @r=`${PWD_COMMAND}`; export r; \
19373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19374 $(SET_LIB_PATH) \
19375 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19376 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19379 # Other targets (info, dvi, etc.)
19381 .PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
19382 maybe-info-target-libstdc++-v3:
19384 info-target-libstdc++-v3: \
19385 configure-target-libstdc++-v3
19386 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19387 r=`${PWD_COMMAND}`; export r; \
19388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19389 $(SET_LIB_PATH) \
19390 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19391 for flag in $(EXTRA_TARGET_FLAGS); do \
19392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19393 done; \
19394 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19397 "RANLIB=$${RANLIB}" \
19398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19399 info) \
19400 || exit 1
19403 .PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
19404 maybe-dvi-target-libstdc++-v3:
19406 dvi-target-libstdc++-v3: \
19407 configure-target-libstdc++-v3
19408 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19409 r=`${PWD_COMMAND}`; export r; \
19410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19411 $(SET_LIB_PATH) \
19412 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19413 for flag in $(EXTRA_TARGET_FLAGS); do \
19414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19415 done; \
19416 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19419 "RANLIB=$${RANLIB}" \
19420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19421 dvi) \
19422 || exit 1
19425 .PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
19426 maybe-TAGS-target-libstdc++-v3:
19428 TAGS-target-libstdc++-v3: \
19429 configure-target-libstdc++-v3
19430 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19431 r=`${PWD_COMMAND}`; export r; \
19432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19433 $(SET_LIB_PATH) \
19434 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19435 for flag in $(EXTRA_TARGET_FLAGS); do \
19436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19437 done; \
19438 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19441 "RANLIB=$${RANLIB}" \
19442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19443 TAGS) \
19444 || exit 1
19447 .PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
19448 maybe-install-info-target-libstdc++-v3:
19450 install-info-target-libstdc++-v3: \
19451 configure-target-libstdc++-v3 \
19452 info-target-libstdc++-v3
19453 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19454 r=`${PWD_COMMAND}`; export r; \
19455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19456 $(SET_LIB_PATH) \
19457 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19458 for flag in $(EXTRA_TARGET_FLAGS); do \
19459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19460 done; \
19461 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19464 "RANLIB=$${RANLIB}" \
19465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19466 install-info) \
19467 || exit 1
19470 .PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
19471 maybe-installcheck-target-libstdc++-v3:
19473 installcheck-target-libstdc++-v3: \
19474 configure-target-libstdc++-v3
19475 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19476 r=`${PWD_COMMAND}`; export r; \
19477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19478 $(SET_LIB_PATH) \
19479 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19480 for flag in $(EXTRA_TARGET_FLAGS); do \
19481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19482 done; \
19483 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19486 "RANLIB=$${RANLIB}" \
19487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19488 installcheck) \
19489 || exit 1
19492 .PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
19493 maybe-mostlyclean-target-libstdc++-v3:
19495 mostlyclean-target-libstdc++-v3:
19496 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19497 r=`${PWD_COMMAND}`; export r; \
19498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19499 $(SET_LIB_PATH) \
19500 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19501 for flag in $(EXTRA_TARGET_FLAGS); do \
19502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19503 done; \
19504 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19507 "RANLIB=$${RANLIB}" \
19508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19509 mostlyclean) \
19510 || exit 1
19513 .PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
19514 maybe-clean-target-libstdc++-v3:
19516 clean-target-libstdc++-v3:
19517 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19518 r=`${PWD_COMMAND}`; export r; \
19519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19520 $(SET_LIB_PATH) \
19521 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19522 for flag in $(EXTRA_TARGET_FLAGS); do \
19523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19524 done; \
19525 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19528 "RANLIB=$${RANLIB}" \
19529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19530 clean) \
19531 || exit 1
19534 .PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
19535 maybe-distclean-target-libstdc++-v3:
19537 distclean-target-libstdc++-v3:
19538 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19539 r=`${PWD_COMMAND}`; export r; \
19540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19541 $(SET_LIB_PATH) \
19542 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19543 for flag in $(EXTRA_TARGET_FLAGS); do \
19544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19545 done; \
19546 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19549 "RANLIB=$${RANLIB}" \
19550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19551 distclean) \
19552 || exit 1
19555 .PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
19556 maybe-maintainer-clean-target-libstdc++-v3:
19558 maintainer-clean-target-libstdc++-v3:
19559 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
19560 r=`${PWD_COMMAND}`; export r; \
19561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19562 $(SET_LIB_PATH) \
19563 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
19564 for flag in $(EXTRA_TARGET_FLAGS); do \
19565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19566 done; \
19567 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
19568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19570 "RANLIB=$${RANLIB}" \
19571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19572 maintainer-clean) \
19573 || exit 1
19577 .PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
19578 maybe-configure-target-libmudflap:
19580 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19581 $(TARGET_SUBDIR)/libmudflap/multilib.out: multilib.out
19582 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
19583 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile || : ; \
19584 cp multilib.out $(TARGET_SUBDIR)/libmudflap/multilib.out
19586 configure-target-libmudflap: $(TARGET_SUBDIR)/libmudflap/multilib.out
19587 @test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
19588 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
19589 r=`${PWD_COMMAND}`; export r; \
19590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19591 $(SET_LIB_PATH) \
19592 AR="$(AR_FOR_TARGET)"; export AR; \
19593 AS="$(AS_FOR_TARGET)"; export AS; \
19594 CC="$(CC_FOR_TARGET)"; export CC; \
19595 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19596 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19597 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19598 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19599 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19600 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19601 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
19602 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19603 LD="$(LD_FOR_TARGET)"; export LD; \
19604 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19605 NM="$(NM_FOR_TARGET)"; export NM; \
19606 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19607 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19608 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
19609 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
19610 case $(srcdir) in \
19611 /* | [A-Za-z]:[\\/]*) \
19612 topdir=$(srcdir) ;; \
19613 *) \
19614 case "$(TARGET_SUBDIR)" in \
19615 .) topdir="../$(srcdir)" ;; \
19616 *) topdir="../../$(srcdir)" ;; \
19617 esac ;; \
19618 esac; \
19619 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
19620 libsrcdir="$$s/libmudflap"; \
19621 rm -f no-such-file || : ; \
19622 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19623 $(TARGET_CONFIGARGS) $${srcdiroption} \
19624 --with-target-subdir="$(TARGET_SUBDIR)" \
19625 || exit 1
19627 .PHONY: all-target-libmudflap maybe-all-target-libmudflap
19628 maybe-all-target-libmudflap:
19629 all-target-libmudflap: configure-target-libmudflap
19630 @r=`${PWD_COMMAND}`; export r; \
19631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19632 $(SET_LIB_PATH) \
19633 (cd $(TARGET_SUBDIR)/libmudflap && \
19634 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19636 .PHONY: check-target-libmudflap maybe-check-target-libmudflap
19637 maybe-check-target-libmudflap:
19639 check-target-libmudflap:
19640 @r=`${PWD_COMMAND}`; export r; \
19641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19642 $(SET_LIB_PATH) \
19643 (cd $(TARGET_SUBDIR)/libmudflap && \
19644 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19647 .PHONY: install-target-libmudflap maybe-install-target-libmudflap
19648 maybe-install-target-libmudflap:
19650 install-target-libmudflap: installdirs
19651 @r=`${PWD_COMMAND}`; export r; \
19652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19653 $(SET_LIB_PATH) \
19654 (cd $(TARGET_SUBDIR)/libmudflap && \
19655 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19658 # Other targets (info, dvi, etc.)
19660 .PHONY: maybe-info-target-libmudflap info-target-libmudflap
19661 maybe-info-target-libmudflap:
19663 info-target-libmudflap: \
19664 configure-target-libmudflap
19665 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19666 r=`${PWD_COMMAND}`; export r; \
19667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19668 $(SET_LIB_PATH) \
19669 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
19670 for flag in $(EXTRA_TARGET_FLAGS); do \
19671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19672 done; \
19673 (cd $(TARGET_SUBDIR)/libmudflap && \
19674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19676 "RANLIB=$${RANLIB}" \
19677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19678 info) \
19679 || exit 1
19682 .PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
19683 maybe-dvi-target-libmudflap:
19685 dvi-target-libmudflap: \
19686 configure-target-libmudflap
19687 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19688 r=`${PWD_COMMAND}`; export r; \
19689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19690 $(SET_LIB_PATH) \
19691 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
19692 for flag in $(EXTRA_TARGET_FLAGS); do \
19693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19694 done; \
19695 (cd $(TARGET_SUBDIR)/libmudflap && \
19696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19698 "RANLIB=$${RANLIB}" \
19699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19700 dvi) \
19701 || exit 1
19704 .PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
19705 maybe-TAGS-target-libmudflap:
19707 TAGS-target-libmudflap: \
19708 configure-target-libmudflap
19709 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19710 r=`${PWD_COMMAND}`; export r; \
19711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19712 $(SET_LIB_PATH) \
19713 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
19714 for flag in $(EXTRA_TARGET_FLAGS); do \
19715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19716 done; \
19717 (cd $(TARGET_SUBDIR)/libmudflap && \
19718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19720 "RANLIB=$${RANLIB}" \
19721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19722 TAGS) \
19723 || exit 1
19726 .PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
19727 maybe-install-info-target-libmudflap:
19729 install-info-target-libmudflap: \
19730 configure-target-libmudflap \
19731 info-target-libmudflap
19732 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19733 r=`${PWD_COMMAND}`; export r; \
19734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19735 $(SET_LIB_PATH) \
19736 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
19737 for flag in $(EXTRA_TARGET_FLAGS); do \
19738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19739 done; \
19740 (cd $(TARGET_SUBDIR)/libmudflap && \
19741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19743 "RANLIB=$${RANLIB}" \
19744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19745 install-info) \
19746 || exit 1
19749 .PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
19750 maybe-installcheck-target-libmudflap:
19752 installcheck-target-libmudflap: \
19753 configure-target-libmudflap
19754 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19755 r=`${PWD_COMMAND}`; export r; \
19756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19757 $(SET_LIB_PATH) \
19758 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
19759 for flag in $(EXTRA_TARGET_FLAGS); do \
19760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19761 done; \
19762 (cd $(TARGET_SUBDIR)/libmudflap && \
19763 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19764 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19765 "RANLIB=$${RANLIB}" \
19766 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19767 installcheck) \
19768 || exit 1
19771 .PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
19772 maybe-mostlyclean-target-libmudflap:
19774 mostlyclean-target-libmudflap:
19775 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19776 r=`${PWD_COMMAND}`; export r; \
19777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19778 $(SET_LIB_PATH) \
19779 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
19780 for flag in $(EXTRA_TARGET_FLAGS); do \
19781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19782 done; \
19783 (cd $(TARGET_SUBDIR)/libmudflap && \
19784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19786 "RANLIB=$${RANLIB}" \
19787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19788 mostlyclean) \
19789 || exit 1
19792 .PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
19793 maybe-clean-target-libmudflap:
19795 clean-target-libmudflap:
19796 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19797 r=`${PWD_COMMAND}`; export r; \
19798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19799 $(SET_LIB_PATH) \
19800 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
19801 for flag in $(EXTRA_TARGET_FLAGS); do \
19802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19803 done; \
19804 (cd $(TARGET_SUBDIR)/libmudflap && \
19805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19807 "RANLIB=$${RANLIB}" \
19808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19809 clean) \
19810 || exit 1
19813 .PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
19814 maybe-distclean-target-libmudflap:
19816 distclean-target-libmudflap:
19817 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19818 r=`${PWD_COMMAND}`; export r; \
19819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19820 $(SET_LIB_PATH) \
19821 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
19822 for flag in $(EXTRA_TARGET_FLAGS); do \
19823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19824 done; \
19825 (cd $(TARGET_SUBDIR)/libmudflap && \
19826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19828 "RANLIB=$${RANLIB}" \
19829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19830 distclean) \
19831 || exit 1
19834 .PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
19835 maybe-maintainer-clean-target-libmudflap:
19837 maintainer-clean-target-libmudflap:
19838 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
19839 r=`${PWD_COMMAND}`; export r; \
19840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19841 $(SET_LIB_PATH) \
19842 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
19843 for flag in $(EXTRA_TARGET_FLAGS); do \
19844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19845 done; \
19846 (cd $(TARGET_SUBDIR)/libmudflap && \
19847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19849 "RANLIB=$${RANLIB}" \
19850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19851 maintainer-clean) \
19852 || exit 1
19856 .PHONY: configure-target-newlib maybe-configure-target-newlib
19857 maybe-configure-target-newlib:
19859 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
19860 $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out
19861 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19862 rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \
19863 cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out
19865 configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out
19866 @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
19867 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
19868 r=`${PWD_COMMAND}`; export r; \
19869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19870 $(SET_LIB_PATH) \
19871 AR="$(AR_FOR_TARGET)"; export AR; \
19872 AS="$(AS_FOR_TARGET)"; export AS; \
19873 CC="$(CC_FOR_TARGET)"; export CC; \
19874 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
19875 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
19876 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
19877 CXX="$(CXX_FOR_TARGET)"; export CXX; \
19878 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
19879 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
19880 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
19881 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
19882 LD="$(LD_FOR_TARGET)"; export LD; \
19883 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
19884 NM="$(NM_FOR_TARGET)"; export NM; \
19885 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
19886 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
19887 echo Configuring in $(TARGET_SUBDIR)/newlib; \
19888 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
19889 case $(srcdir) in \
19890 /* | [A-Za-z]:[\\/]*) \
19891 topdir=$(srcdir) ;; \
19892 *) \
19893 case "$(TARGET_SUBDIR)" in \
19894 .) topdir="../$(srcdir)" ;; \
19895 *) topdir="../../$(srcdir)" ;; \
19896 esac ;; \
19897 esac; \
19898 srcdiroption="--srcdir=$${topdir}/newlib"; \
19899 libsrcdir="$$s/newlib"; \
19900 rm -f no-such-file || : ; \
19901 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
19902 $(TARGET_CONFIGARGS) $${srcdiroption} \
19903 --with-target-subdir="$(TARGET_SUBDIR)" \
19904 || exit 1
19906 .PHONY: all-target-newlib maybe-all-target-newlib
19907 maybe-all-target-newlib:
19908 all-target-newlib: configure-target-newlib
19909 @r=`${PWD_COMMAND}`; export r; \
19910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19911 $(SET_LIB_PATH) \
19912 (cd $(TARGET_SUBDIR)/newlib && \
19913 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
19915 .PHONY: check-target-newlib maybe-check-target-newlib
19916 maybe-check-target-newlib:
19918 check-target-newlib:
19919 @r=`${PWD_COMMAND}`; export r; \
19920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19921 $(SET_LIB_PATH) \
19922 (cd $(TARGET_SUBDIR)/newlib && \
19923 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
19926 .PHONY: install-target-newlib maybe-install-target-newlib
19927 maybe-install-target-newlib:
19929 install-target-newlib: installdirs
19930 @r=`${PWD_COMMAND}`; export r; \
19931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19932 $(SET_LIB_PATH) \
19933 (cd $(TARGET_SUBDIR)/newlib && \
19934 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
19937 # Other targets (info, dvi, etc.)
19939 .PHONY: maybe-info-target-newlib info-target-newlib
19940 maybe-info-target-newlib:
19942 info-target-newlib: \
19943 configure-target-newlib
19944 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19945 r=`${PWD_COMMAND}`; export r; \
19946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19947 $(SET_LIB_PATH) \
19948 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
19949 for flag in $(EXTRA_TARGET_FLAGS); do \
19950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19951 done; \
19952 (cd $(TARGET_SUBDIR)/newlib && \
19953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19955 "RANLIB=$${RANLIB}" \
19956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19957 info) \
19958 || exit 1
19961 .PHONY: maybe-dvi-target-newlib dvi-target-newlib
19962 maybe-dvi-target-newlib:
19964 dvi-target-newlib: \
19965 configure-target-newlib
19966 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19967 r=`${PWD_COMMAND}`; export r; \
19968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19969 $(SET_LIB_PATH) \
19970 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
19971 for flag in $(EXTRA_TARGET_FLAGS); do \
19972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19973 done; \
19974 (cd $(TARGET_SUBDIR)/newlib && \
19975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19977 "RANLIB=$${RANLIB}" \
19978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19979 dvi) \
19980 || exit 1
19983 .PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
19984 maybe-TAGS-target-newlib:
19986 TAGS-target-newlib: \
19987 configure-target-newlib
19988 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
19989 r=`${PWD_COMMAND}`; export r; \
19990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19991 $(SET_LIB_PATH) \
19992 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
19993 for flag in $(EXTRA_TARGET_FLAGS); do \
19994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19995 done; \
19996 (cd $(TARGET_SUBDIR)/newlib && \
19997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19999 "RANLIB=$${RANLIB}" \
20000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20001 TAGS) \
20002 || exit 1
20005 .PHONY: maybe-install-info-target-newlib install-info-target-newlib
20006 maybe-install-info-target-newlib:
20008 install-info-target-newlib: \
20009 configure-target-newlib \
20010 info-target-newlib
20011 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20012 r=`${PWD_COMMAND}`; export r; \
20013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20014 $(SET_LIB_PATH) \
20015 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
20016 for flag in $(EXTRA_TARGET_FLAGS); do \
20017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20018 done; \
20019 (cd $(TARGET_SUBDIR)/newlib && \
20020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20022 "RANLIB=$${RANLIB}" \
20023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20024 install-info) \
20025 || exit 1
20028 .PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
20029 maybe-installcheck-target-newlib:
20031 installcheck-target-newlib: \
20032 configure-target-newlib
20033 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20034 r=`${PWD_COMMAND}`; export r; \
20035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20036 $(SET_LIB_PATH) \
20037 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
20038 for flag in $(EXTRA_TARGET_FLAGS); do \
20039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20040 done; \
20041 (cd $(TARGET_SUBDIR)/newlib && \
20042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20044 "RANLIB=$${RANLIB}" \
20045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20046 installcheck) \
20047 || exit 1
20050 .PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
20051 maybe-mostlyclean-target-newlib:
20053 mostlyclean-target-newlib:
20054 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20055 r=`${PWD_COMMAND}`; export r; \
20056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20057 $(SET_LIB_PATH) \
20058 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
20059 for flag in $(EXTRA_TARGET_FLAGS); do \
20060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20061 done; \
20062 (cd $(TARGET_SUBDIR)/newlib && \
20063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20065 "RANLIB=$${RANLIB}" \
20066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20067 mostlyclean) \
20068 || exit 1
20071 .PHONY: maybe-clean-target-newlib clean-target-newlib
20072 maybe-clean-target-newlib:
20074 clean-target-newlib:
20075 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20076 r=`${PWD_COMMAND}`; export r; \
20077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20078 $(SET_LIB_PATH) \
20079 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
20080 for flag in $(EXTRA_TARGET_FLAGS); do \
20081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20082 done; \
20083 (cd $(TARGET_SUBDIR)/newlib && \
20084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20086 "RANLIB=$${RANLIB}" \
20087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20088 clean) \
20089 || exit 1
20092 .PHONY: maybe-distclean-target-newlib distclean-target-newlib
20093 maybe-distclean-target-newlib:
20095 distclean-target-newlib:
20096 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20097 r=`${PWD_COMMAND}`; export r; \
20098 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20099 $(SET_LIB_PATH) \
20100 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
20101 for flag in $(EXTRA_TARGET_FLAGS); do \
20102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20103 done; \
20104 (cd $(TARGET_SUBDIR)/newlib && \
20105 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20106 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20107 "RANLIB=$${RANLIB}" \
20108 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20109 distclean) \
20110 || exit 1
20113 .PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
20114 maybe-maintainer-clean-target-newlib:
20116 maintainer-clean-target-newlib:
20117 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
20118 r=`${PWD_COMMAND}`; export r; \
20119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20120 $(SET_LIB_PATH) \
20121 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
20122 for flag in $(EXTRA_TARGET_FLAGS); do \
20123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20124 done; \
20125 (cd $(TARGET_SUBDIR)/newlib && \
20126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20128 "RANLIB=$${RANLIB}" \
20129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20130 maintainer-clean) \
20131 || exit 1
20135 .PHONY: configure-target-libf2c maybe-configure-target-libf2c
20136 maybe-configure-target-libf2c:
20138 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20139 $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out
20140 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
20141 rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \
20142 cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out
20144 configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out
20145 @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \
20146 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libf2c ; \
20147 r=`${PWD_COMMAND}`; export r; \
20148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20149 $(SET_LIB_PATH) \
20150 AR="$(AR_FOR_TARGET)"; export AR; \
20151 AS="$(AS_FOR_TARGET)"; export AS; \
20152 CC="$(CC_FOR_TARGET)"; export CC; \
20153 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20154 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20155 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20156 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20157 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20158 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20159 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
20160 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20161 LD="$(LD_FOR_TARGET)"; export LD; \
20162 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20163 NM="$(NM_FOR_TARGET)"; export NM; \
20164 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20165 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20166 echo Configuring in $(TARGET_SUBDIR)/libf2c; \
20167 cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \
20168 case $(srcdir) in \
20169 /* | [A-Za-z]:[\\/]*) \
20170 topdir=$(srcdir) ;; \
20171 *) \
20172 case "$(TARGET_SUBDIR)" in \
20173 .) topdir="../$(srcdir)" ;; \
20174 *) topdir="../../$(srcdir)" ;; \
20175 esac ;; \
20176 esac; \
20177 srcdiroption="--srcdir=$${topdir}/libf2c"; \
20178 libsrcdir="$$s/libf2c"; \
20179 rm -f no-such-file || : ; \
20180 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20181 $(TARGET_CONFIGARGS) $${srcdiroption} \
20182 --with-target-subdir="$(TARGET_SUBDIR)" \
20183 || exit 1
20185 .PHONY: all-target-libf2c maybe-all-target-libf2c
20186 maybe-all-target-libf2c:
20187 all-target-libf2c: configure-target-libf2c
20188 @r=`${PWD_COMMAND}`; export r; \
20189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20190 $(SET_LIB_PATH) \
20191 (cd $(TARGET_SUBDIR)/libf2c && \
20192 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20194 .PHONY: check-target-libf2c maybe-check-target-libf2c
20195 maybe-check-target-libf2c:
20197 check-target-libf2c:
20198 @r=`${PWD_COMMAND}`; export r; \
20199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20200 $(SET_LIB_PATH) \
20201 (cd $(TARGET_SUBDIR)/libf2c && \
20202 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20205 .PHONY: install-target-libf2c maybe-install-target-libf2c
20206 maybe-install-target-libf2c:
20208 install-target-libf2c: installdirs
20209 @r=`${PWD_COMMAND}`; export r; \
20210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20211 $(SET_LIB_PATH) \
20212 (cd $(TARGET_SUBDIR)/libf2c && \
20213 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20216 # Other targets (info, dvi, etc.)
20218 .PHONY: maybe-info-target-libf2c info-target-libf2c
20219 maybe-info-target-libf2c:
20221 info-target-libf2c: \
20222 configure-target-libf2c
20223 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20224 r=`${PWD_COMMAND}`; export r; \
20225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20226 $(SET_LIB_PATH) \
20227 echo "Doing info in $(TARGET_SUBDIR)/libf2c" ; \
20228 for flag in $(EXTRA_TARGET_FLAGS); do \
20229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20230 done; \
20231 (cd $(TARGET_SUBDIR)/libf2c && \
20232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20234 "RANLIB=$${RANLIB}" \
20235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20236 info) \
20237 || exit 1
20240 .PHONY: maybe-dvi-target-libf2c dvi-target-libf2c
20241 maybe-dvi-target-libf2c:
20243 dvi-target-libf2c: \
20244 configure-target-libf2c
20245 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20246 r=`${PWD_COMMAND}`; export r; \
20247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20248 $(SET_LIB_PATH) \
20249 echo "Doing dvi in $(TARGET_SUBDIR)/libf2c" ; \
20250 for flag in $(EXTRA_TARGET_FLAGS); do \
20251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20252 done; \
20253 (cd $(TARGET_SUBDIR)/libf2c && \
20254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20256 "RANLIB=$${RANLIB}" \
20257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20258 dvi) \
20259 || exit 1
20262 .PHONY: maybe-TAGS-target-libf2c TAGS-target-libf2c
20263 maybe-TAGS-target-libf2c:
20265 TAGS-target-libf2c: \
20266 configure-target-libf2c
20267 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20268 r=`${PWD_COMMAND}`; export r; \
20269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20270 $(SET_LIB_PATH) \
20271 echo "Doing TAGS in $(TARGET_SUBDIR)/libf2c" ; \
20272 for flag in $(EXTRA_TARGET_FLAGS); do \
20273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20274 done; \
20275 (cd $(TARGET_SUBDIR)/libf2c && \
20276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20278 "RANLIB=$${RANLIB}" \
20279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20280 TAGS) \
20281 || exit 1
20284 .PHONY: maybe-install-info-target-libf2c install-info-target-libf2c
20285 maybe-install-info-target-libf2c:
20287 install-info-target-libf2c: \
20288 configure-target-libf2c \
20289 info-target-libf2c
20290 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20291 r=`${PWD_COMMAND}`; export r; \
20292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20293 $(SET_LIB_PATH) \
20294 echo "Doing install-info in $(TARGET_SUBDIR)/libf2c" ; \
20295 for flag in $(EXTRA_TARGET_FLAGS); do \
20296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20297 done; \
20298 (cd $(TARGET_SUBDIR)/libf2c && \
20299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20301 "RANLIB=$${RANLIB}" \
20302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20303 install-info) \
20304 || exit 1
20307 .PHONY: maybe-installcheck-target-libf2c installcheck-target-libf2c
20308 maybe-installcheck-target-libf2c:
20310 installcheck-target-libf2c: \
20311 configure-target-libf2c
20312 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20313 r=`${PWD_COMMAND}`; export r; \
20314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20315 $(SET_LIB_PATH) \
20316 echo "Doing installcheck in $(TARGET_SUBDIR)/libf2c" ; \
20317 for flag in $(EXTRA_TARGET_FLAGS); do \
20318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20319 done; \
20320 (cd $(TARGET_SUBDIR)/libf2c && \
20321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20323 "RANLIB=$${RANLIB}" \
20324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20325 installcheck) \
20326 || exit 1
20329 .PHONY: maybe-mostlyclean-target-libf2c mostlyclean-target-libf2c
20330 maybe-mostlyclean-target-libf2c:
20332 mostlyclean-target-libf2c:
20333 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20334 r=`${PWD_COMMAND}`; export r; \
20335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20336 $(SET_LIB_PATH) \
20337 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libf2c" ; \
20338 for flag in $(EXTRA_TARGET_FLAGS); do \
20339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20340 done; \
20341 (cd $(TARGET_SUBDIR)/libf2c && \
20342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20344 "RANLIB=$${RANLIB}" \
20345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20346 mostlyclean) \
20347 || exit 1
20350 .PHONY: maybe-clean-target-libf2c clean-target-libf2c
20351 maybe-clean-target-libf2c:
20353 clean-target-libf2c:
20354 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20355 r=`${PWD_COMMAND}`; export r; \
20356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20357 $(SET_LIB_PATH) \
20358 echo "Doing clean in $(TARGET_SUBDIR)/libf2c" ; \
20359 for flag in $(EXTRA_TARGET_FLAGS); do \
20360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20361 done; \
20362 (cd $(TARGET_SUBDIR)/libf2c && \
20363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20365 "RANLIB=$${RANLIB}" \
20366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20367 clean) \
20368 || exit 1
20371 .PHONY: maybe-distclean-target-libf2c distclean-target-libf2c
20372 maybe-distclean-target-libf2c:
20374 distclean-target-libf2c:
20375 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20376 r=`${PWD_COMMAND}`; export r; \
20377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20378 $(SET_LIB_PATH) \
20379 echo "Doing distclean in $(TARGET_SUBDIR)/libf2c" ; \
20380 for flag in $(EXTRA_TARGET_FLAGS); do \
20381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20382 done; \
20383 (cd $(TARGET_SUBDIR)/libf2c && \
20384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20386 "RANLIB=$${RANLIB}" \
20387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20388 distclean) \
20389 || exit 1
20392 .PHONY: maybe-maintainer-clean-target-libf2c maintainer-clean-target-libf2c
20393 maybe-maintainer-clean-target-libf2c:
20395 maintainer-clean-target-libf2c:
20396 @[ -f $(TARGET_SUBDIR)/libf2c/Makefile ] || exit 0 ; \
20397 r=`${PWD_COMMAND}`; export r; \
20398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20399 $(SET_LIB_PATH) \
20400 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libf2c" ; \
20401 for flag in $(EXTRA_TARGET_FLAGS); do \
20402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20403 done; \
20404 (cd $(TARGET_SUBDIR)/libf2c && \
20405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20407 "RANLIB=$${RANLIB}" \
20408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20409 maintainer-clean) \
20410 || exit 1
20414 .PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
20415 maybe-configure-target-libgfortran:
20417 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20418 $(TARGET_SUBDIR)/libgfortran/multilib.out: multilib.out
20419 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
20420 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile || : ; \
20421 cp multilib.out $(TARGET_SUBDIR)/libgfortran/multilib.out
20423 configure-target-libgfortran: $(TARGET_SUBDIR)/libgfortran/multilib.out
20424 @test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
20425 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
20426 r=`${PWD_COMMAND}`; export r; \
20427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20428 $(SET_LIB_PATH) \
20429 AR="$(AR_FOR_TARGET)"; export AR; \
20430 AS="$(AS_FOR_TARGET)"; export AS; \
20431 CC="$(CC_FOR_TARGET)"; export CC; \
20432 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20433 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20434 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20435 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20436 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20437 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20438 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
20439 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20440 LD="$(LD_FOR_TARGET)"; export LD; \
20441 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20442 NM="$(NM_FOR_TARGET)"; export NM; \
20443 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20444 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20445 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
20446 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
20447 case $(srcdir) in \
20448 /* | [A-Za-z]:[\\/]*) \
20449 topdir=$(srcdir) ;; \
20450 *) \
20451 case "$(TARGET_SUBDIR)" in \
20452 .) topdir="../$(srcdir)" ;; \
20453 *) topdir="../../$(srcdir)" ;; \
20454 esac ;; \
20455 esac; \
20456 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
20457 libsrcdir="$$s/libgfortran"; \
20458 rm -f no-such-file || : ; \
20459 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20460 $(TARGET_CONFIGARGS) $${srcdiroption} \
20461 --with-target-subdir="$(TARGET_SUBDIR)" \
20462 || exit 1
20464 .PHONY: all-target-libgfortran maybe-all-target-libgfortran
20465 maybe-all-target-libgfortran:
20466 all-target-libgfortran: configure-target-libgfortran
20467 @r=`${PWD_COMMAND}`; export r; \
20468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20469 $(SET_LIB_PATH) \
20470 (cd $(TARGET_SUBDIR)/libgfortran && \
20471 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20473 .PHONY: check-target-libgfortran maybe-check-target-libgfortran
20474 maybe-check-target-libgfortran:
20476 check-target-libgfortran:
20477 @r=`${PWD_COMMAND}`; export r; \
20478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20479 $(SET_LIB_PATH) \
20480 (cd $(TARGET_SUBDIR)/libgfortran && \
20481 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20484 .PHONY: install-target-libgfortran maybe-install-target-libgfortran
20485 maybe-install-target-libgfortran:
20487 install-target-libgfortran: installdirs
20488 @r=`${PWD_COMMAND}`; export r; \
20489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20490 $(SET_LIB_PATH) \
20491 (cd $(TARGET_SUBDIR)/libgfortran && \
20492 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20495 # Other targets (info, dvi, etc.)
20497 .PHONY: maybe-info-target-libgfortran info-target-libgfortran
20498 maybe-info-target-libgfortran:
20500 info-target-libgfortran: \
20501 configure-target-libgfortran
20502 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20503 r=`${PWD_COMMAND}`; export r; \
20504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20505 $(SET_LIB_PATH) \
20506 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
20507 for flag in $(EXTRA_TARGET_FLAGS); do \
20508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20509 done; \
20510 (cd $(TARGET_SUBDIR)/libgfortran && \
20511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20513 "RANLIB=$${RANLIB}" \
20514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20515 info) \
20516 || exit 1
20519 .PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
20520 maybe-dvi-target-libgfortran:
20522 dvi-target-libgfortran: \
20523 configure-target-libgfortran
20524 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20525 r=`${PWD_COMMAND}`; export r; \
20526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20527 $(SET_LIB_PATH) \
20528 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
20529 for flag in $(EXTRA_TARGET_FLAGS); do \
20530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20531 done; \
20532 (cd $(TARGET_SUBDIR)/libgfortran && \
20533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20535 "RANLIB=$${RANLIB}" \
20536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20537 dvi) \
20538 || exit 1
20541 .PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
20542 maybe-TAGS-target-libgfortran:
20544 TAGS-target-libgfortran: \
20545 configure-target-libgfortran
20546 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20547 r=`${PWD_COMMAND}`; export r; \
20548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20549 $(SET_LIB_PATH) \
20550 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
20551 for flag in $(EXTRA_TARGET_FLAGS); do \
20552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20553 done; \
20554 (cd $(TARGET_SUBDIR)/libgfortran && \
20555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20557 "RANLIB=$${RANLIB}" \
20558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20559 TAGS) \
20560 || exit 1
20563 .PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
20564 maybe-install-info-target-libgfortran:
20566 install-info-target-libgfortran: \
20567 configure-target-libgfortran \
20568 info-target-libgfortran
20569 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20570 r=`${PWD_COMMAND}`; export r; \
20571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20572 $(SET_LIB_PATH) \
20573 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
20574 for flag in $(EXTRA_TARGET_FLAGS); do \
20575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20576 done; \
20577 (cd $(TARGET_SUBDIR)/libgfortran && \
20578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20580 "RANLIB=$${RANLIB}" \
20581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20582 install-info) \
20583 || exit 1
20586 .PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
20587 maybe-installcheck-target-libgfortran:
20589 installcheck-target-libgfortran: \
20590 configure-target-libgfortran
20591 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20592 r=`${PWD_COMMAND}`; export r; \
20593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20594 $(SET_LIB_PATH) \
20595 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
20596 for flag in $(EXTRA_TARGET_FLAGS); do \
20597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20598 done; \
20599 (cd $(TARGET_SUBDIR)/libgfortran && \
20600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20602 "RANLIB=$${RANLIB}" \
20603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20604 installcheck) \
20605 || exit 1
20608 .PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
20609 maybe-mostlyclean-target-libgfortran:
20611 mostlyclean-target-libgfortran:
20612 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20613 r=`${PWD_COMMAND}`; export r; \
20614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20615 $(SET_LIB_PATH) \
20616 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
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)/libgfortran && \
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 mostlyclean) \
20626 || exit 1
20629 .PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
20630 maybe-clean-target-libgfortran:
20632 clean-target-libgfortran:
20633 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20634 r=`${PWD_COMMAND}`; export r; \
20635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20636 $(SET_LIB_PATH) \
20637 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
20638 for flag in $(EXTRA_TARGET_FLAGS); do \
20639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20640 done; \
20641 (cd $(TARGET_SUBDIR)/libgfortran && \
20642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20644 "RANLIB=$${RANLIB}" \
20645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20646 clean) \
20647 || exit 1
20650 .PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
20651 maybe-distclean-target-libgfortran:
20653 distclean-target-libgfortran:
20654 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20655 r=`${PWD_COMMAND}`; export r; \
20656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20657 $(SET_LIB_PATH) \
20658 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
20659 for flag in $(EXTRA_TARGET_FLAGS); do \
20660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20661 done; \
20662 (cd $(TARGET_SUBDIR)/libgfortran && \
20663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20665 "RANLIB=$${RANLIB}" \
20666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20667 distclean) \
20668 || exit 1
20671 .PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
20672 maybe-maintainer-clean-target-libgfortran:
20674 maintainer-clean-target-libgfortran:
20675 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
20676 r=`${PWD_COMMAND}`; export r; \
20677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20678 $(SET_LIB_PATH) \
20679 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
20680 for flag in $(EXTRA_TARGET_FLAGS); do \
20681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20682 done; \
20683 (cd $(TARGET_SUBDIR)/libgfortran && \
20684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20686 "RANLIB=$${RANLIB}" \
20687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20688 maintainer-clean) \
20689 || exit 1
20693 .PHONY: configure-target-libobjc maybe-configure-target-libobjc
20694 maybe-configure-target-libobjc:
20696 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20697 $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out
20698 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
20699 rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \
20700 cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out
20702 configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out
20703 @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
20704 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
20705 r=`${PWD_COMMAND}`; export r; \
20706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20707 $(SET_LIB_PATH) \
20708 AR="$(AR_FOR_TARGET)"; export AR; \
20709 AS="$(AS_FOR_TARGET)"; export AS; \
20710 CC="$(CC_FOR_TARGET)"; export CC; \
20711 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20712 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20713 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20714 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20715 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20716 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20717 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
20718 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20719 LD="$(LD_FOR_TARGET)"; export LD; \
20720 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
20721 NM="$(NM_FOR_TARGET)"; export NM; \
20722 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
20723 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
20724 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
20725 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
20726 case $(srcdir) in \
20727 /* | [A-Za-z]:[\\/]*) \
20728 topdir=$(srcdir) ;; \
20729 *) \
20730 case "$(TARGET_SUBDIR)" in \
20731 .) topdir="../$(srcdir)" ;; \
20732 *) topdir="../../$(srcdir)" ;; \
20733 esac ;; \
20734 esac; \
20735 srcdiroption="--srcdir=$${topdir}/libobjc"; \
20736 libsrcdir="$$s/libobjc"; \
20737 rm -f no-such-file || : ; \
20738 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
20739 $(TARGET_CONFIGARGS) $${srcdiroption} \
20740 --with-target-subdir="$(TARGET_SUBDIR)" \
20741 || exit 1
20743 .PHONY: all-target-libobjc maybe-all-target-libobjc
20744 maybe-all-target-libobjc:
20745 all-target-libobjc: configure-target-libobjc
20746 @r=`${PWD_COMMAND}`; export r; \
20747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20748 $(SET_LIB_PATH) \
20749 (cd $(TARGET_SUBDIR)/libobjc && \
20750 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
20752 .PHONY: check-target-libobjc maybe-check-target-libobjc
20753 maybe-check-target-libobjc:
20755 check-target-libobjc:
20756 @r=`${PWD_COMMAND}`; export r; \
20757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20758 $(SET_LIB_PATH) \
20759 (cd $(TARGET_SUBDIR)/libobjc && \
20760 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
20763 .PHONY: install-target-libobjc maybe-install-target-libobjc
20764 maybe-install-target-libobjc:
20766 install-target-libobjc: installdirs
20767 @r=`${PWD_COMMAND}`; export r; \
20768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20769 $(SET_LIB_PATH) \
20770 (cd $(TARGET_SUBDIR)/libobjc && \
20771 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
20774 # Other targets (info, dvi, etc.)
20776 .PHONY: maybe-info-target-libobjc info-target-libobjc
20777 maybe-info-target-libobjc:
20779 info-target-libobjc: \
20780 configure-target-libobjc
20781 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20782 r=`${PWD_COMMAND}`; export r; \
20783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20784 $(SET_LIB_PATH) \
20785 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
20786 for flag in $(EXTRA_TARGET_FLAGS); do \
20787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20788 done; \
20789 (cd $(TARGET_SUBDIR)/libobjc && \
20790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20792 "RANLIB=$${RANLIB}" \
20793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20794 info) \
20795 || exit 1
20798 .PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
20799 maybe-dvi-target-libobjc:
20801 dvi-target-libobjc: \
20802 configure-target-libobjc
20803 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20804 r=`${PWD_COMMAND}`; export r; \
20805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20806 $(SET_LIB_PATH) \
20807 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
20808 for flag in $(EXTRA_TARGET_FLAGS); do \
20809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20810 done; \
20811 (cd $(TARGET_SUBDIR)/libobjc && \
20812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20814 "RANLIB=$${RANLIB}" \
20815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20816 dvi) \
20817 || exit 1
20820 .PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
20821 maybe-TAGS-target-libobjc:
20823 TAGS-target-libobjc: \
20824 configure-target-libobjc
20825 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20826 r=`${PWD_COMMAND}`; export r; \
20827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20828 $(SET_LIB_PATH) \
20829 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
20830 for flag in $(EXTRA_TARGET_FLAGS); do \
20831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20832 done; \
20833 (cd $(TARGET_SUBDIR)/libobjc && \
20834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20836 "RANLIB=$${RANLIB}" \
20837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20838 TAGS) \
20839 || exit 1
20842 .PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
20843 maybe-install-info-target-libobjc:
20845 install-info-target-libobjc: \
20846 configure-target-libobjc \
20847 info-target-libobjc
20848 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20849 r=`${PWD_COMMAND}`; export r; \
20850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20851 $(SET_LIB_PATH) \
20852 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
20853 for flag in $(EXTRA_TARGET_FLAGS); do \
20854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20855 done; \
20856 (cd $(TARGET_SUBDIR)/libobjc && \
20857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20859 "RANLIB=$${RANLIB}" \
20860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20861 install-info) \
20862 || exit 1
20865 .PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
20866 maybe-installcheck-target-libobjc:
20868 installcheck-target-libobjc: \
20869 configure-target-libobjc
20870 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20871 r=`${PWD_COMMAND}`; export r; \
20872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20873 $(SET_LIB_PATH) \
20874 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
20875 for flag in $(EXTRA_TARGET_FLAGS); do \
20876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20877 done; \
20878 (cd $(TARGET_SUBDIR)/libobjc && \
20879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20881 "RANLIB=$${RANLIB}" \
20882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20883 installcheck) \
20884 || exit 1
20887 .PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
20888 maybe-mostlyclean-target-libobjc:
20890 mostlyclean-target-libobjc:
20891 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20892 r=`${PWD_COMMAND}`; export r; \
20893 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20894 $(SET_LIB_PATH) \
20895 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
20896 for flag in $(EXTRA_TARGET_FLAGS); do \
20897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20898 done; \
20899 (cd $(TARGET_SUBDIR)/libobjc && \
20900 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20901 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20902 "RANLIB=$${RANLIB}" \
20903 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20904 mostlyclean) \
20905 || exit 1
20908 .PHONY: maybe-clean-target-libobjc clean-target-libobjc
20909 maybe-clean-target-libobjc:
20911 clean-target-libobjc:
20912 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20913 r=`${PWD_COMMAND}`; export r; \
20914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20915 $(SET_LIB_PATH) \
20916 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
20917 for flag in $(EXTRA_TARGET_FLAGS); do \
20918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20919 done; \
20920 (cd $(TARGET_SUBDIR)/libobjc && \
20921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20923 "RANLIB=$${RANLIB}" \
20924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20925 clean) \
20926 || exit 1
20929 .PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
20930 maybe-distclean-target-libobjc:
20932 distclean-target-libobjc:
20933 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20934 r=`${PWD_COMMAND}`; export r; \
20935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20936 $(SET_LIB_PATH) \
20937 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
20938 for flag in $(EXTRA_TARGET_FLAGS); do \
20939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20940 done; \
20941 (cd $(TARGET_SUBDIR)/libobjc && \
20942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20944 "RANLIB=$${RANLIB}" \
20945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20946 distclean) \
20947 || exit 1
20950 .PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
20951 maybe-maintainer-clean-target-libobjc:
20953 maintainer-clean-target-libobjc:
20954 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
20955 r=`${PWD_COMMAND}`; export r; \
20956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20957 $(SET_LIB_PATH) \
20958 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
20959 for flag in $(EXTRA_TARGET_FLAGS); do \
20960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20961 done; \
20962 (cd $(TARGET_SUBDIR)/libobjc && \
20963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20965 "RANLIB=$${RANLIB}" \
20966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20967 maintainer-clean) \
20968 || exit 1
20972 .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
20973 maybe-configure-target-libtermcap:
20975 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
20976 $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out
20977 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
20978 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \
20979 cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out
20981 configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out
20982 @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
20983 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
20984 r=`${PWD_COMMAND}`; export r; \
20985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20986 $(SET_LIB_PATH) \
20987 AR="$(AR_FOR_TARGET)"; export AR; \
20988 AS="$(AS_FOR_TARGET)"; export AS; \
20989 CC="$(CC_FOR_TARGET)"; export CC; \
20990 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
20991 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
20992 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
20993 CXX="$(CXX_FOR_TARGET)"; export CXX; \
20994 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
20995 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
20996 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
20997 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
20998 LD="$(LD_FOR_TARGET)"; export LD; \
20999 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21000 NM="$(NM_FOR_TARGET)"; export NM; \
21001 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21002 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21003 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
21004 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
21005 case $(srcdir) in \
21006 /* | [A-Za-z]:[\\/]*) \
21007 topdir=$(srcdir) ;; \
21008 *) \
21009 case "$(TARGET_SUBDIR)" in \
21010 .) topdir="../$(srcdir)" ;; \
21011 *) topdir="../../$(srcdir)" ;; \
21012 esac ;; \
21013 esac; \
21014 if [ "$(srcdir)" = "." ] ; then \
21015 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
21016 if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \
21017 if [ -f Makefile ]; then \
21018 if $(MAKE) distclean; then \
21019 true; \
21020 else \
21021 exit 1; \
21022 fi; \
21023 else \
21024 true; \
21025 fi; \
21026 else \
21027 exit 1; \
21028 fi; \
21029 else \
21030 true; \
21031 fi; \
21032 srcdiroption="--srcdir=."; \
21033 libsrcdir="."; \
21034 else \
21035 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
21036 libsrcdir="$$s/libtermcap"; \
21037 fi; \
21038 rm -f no-such-file || : ; \
21039 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21040 $(TARGET_CONFIGARGS) $${srcdiroption} \
21041 --with-target-subdir="$(TARGET_SUBDIR)" \
21042 || exit 1
21044 .PHONY: all-target-libtermcap maybe-all-target-libtermcap
21045 maybe-all-target-libtermcap:
21046 all-target-libtermcap: configure-target-libtermcap
21047 @r=`${PWD_COMMAND}`; export r; \
21048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21049 $(SET_LIB_PATH) \
21050 (cd $(TARGET_SUBDIR)/libtermcap && \
21051 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21053 .PHONY: check-target-libtermcap maybe-check-target-libtermcap
21054 maybe-check-target-libtermcap:
21056 # Dummy target for uncheckable module.
21057 check-target-libtermcap:
21060 .PHONY: install-target-libtermcap maybe-install-target-libtermcap
21061 maybe-install-target-libtermcap:
21063 install-target-libtermcap: installdirs
21064 @r=`${PWD_COMMAND}`; export r; \
21065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21066 $(SET_LIB_PATH) \
21067 (cd $(TARGET_SUBDIR)/libtermcap && \
21068 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21071 # Other targets (info, dvi, etc.)
21073 .PHONY: maybe-info-target-libtermcap info-target-libtermcap
21074 maybe-info-target-libtermcap:
21076 info-target-libtermcap: \
21077 configure-target-libtermcap
21078 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
21079 r=`${PWD_COMMAND}`; export r; \
21080 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21081 $(SET_LIB_PATH) \
21082 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
21083 for flag in $(EXTRA_TARGET_FLAGS); do \
21084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21085 done; \
21086 (cd $(TARGET_SUBDIR)/libtermcap && \
21087 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21088 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21089 "RANLIB=$${RANLIB}" \
21090 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21091 info) \
21092 || exit 1
21095 .PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
21096 maybe-dvi-target-libtermcap:
21098 dvi-target-libtermcap: \
21099 configure-target-libtermcap
21100 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
21101 r=`${PWD_COMMAND}`; export r; \
21102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21103 $(SET_LIB_PATH) \
21104 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
21105 for flag in $(EXTRA_TARGET_FLAGS); do \
21106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21107 done; \
21108 (cd $(TARGET_SUBDIR)/libtermcap && \
21109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21111 "RANLIB=$${RANLIB}" \
21112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21113 dvi) \
21114 || exit 1
21117 .PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
21118 maybe-TAGS-target-libtermcap:
21120 TAGS-target-libtermcap: \
21121 configure-target-libtermcap
21122 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
21123 r=`${PWD_COMMAND}`; export r; \
21124 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21125 $(SET_LIB_PATH) \
21126 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
21127 for flag in $(EXTRA_TARGET_FLAGS); do \
21128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21129 done; \
21130 (cd $(TARGET_SUBDIR)/libtermcap && \
21131 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21132 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21133 "RANLIB=$${RANLIB}" \
21134 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21135 TAGS) \
21136 || exit 1
21139 .PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
21140 maybe-install-info-target-libtermcap:
21142 install-info-target-libtermcap: \
21143 configure-target-libtermcap \
21144 info-target-libtermcap
21145 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
21146 r=`${PWD_COMMAND}`; export r; \
21147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21148 $(SET_LIB_PATH) \
21149 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
21150 for flag in $(EXTRA_TARGET_FLAGS); do \
21151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21152 done; \
21153 (cd $(TARGET_SUBDIR)/libtermcap && \
21154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21156 "RANLIB=$${RANLIB}" \
21157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21158 install-info) \
21159 || exit 1
21162 .PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
21163 maybe-installcheck-target-libtermcap:
21165 installcheck-target-libtermcap: \
21166 configure-target-libtermcap
21167 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
21168 r=`${PWD_COMMAND}`; export r; \
21169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21170 $(SET_LIB_PATH) \
21171 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
21172 for flag in $(EXTRA_TARGET_FLAGS); do \
21173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21174 done; \
21175 (cd $(TARGET_SUBDIR)/libtermcap && \
21176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21178 "RANLIB=$${RANLIB}" \
21179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21180 installcheck) \
21181 || exit 1
21184 .PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
21185 maybe-mostlyclean-target-libtermcap:
21187 # libtermcap doesn't support mostlyclean.
21188 mostlyclean-target-libtermcap:
21191 .PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
21192 maybe-clean-target-libtermcap:
21194 # libtermcap doesn't support clean.
21195 clean-target-libtermcap:
21198 .PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
21199 maybe-distclean-target-libtermcap:
21201 # libtermcap doesn't support distclean.
21202 distclean-target-libtermcap:
21205 .PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
21206 maybe-maintainer-clean-target-libtermcap:
21208 # libtermcap doesn't support maintainer-clean.
21209 maintainer-clean-target-libtermcap:
21213 .PHONY: configure-target-winsup maybe-configure-target-winsup
21214 maybe-configure-target-winsup:
21216 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21217 $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out
21218 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
21219 rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \
21220 cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out
21222 configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out
21223 @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
21224 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
21225 r=`${PWD_COMMAND}`; export r; \
21226 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21227 $(SET_LIB_PATH) \
21228 AR="$(AR_FOR_TARGET)"; export AR; \
21229 AS="$(AS_FOR_TARGET)"; export AS; \
21230 CC="$(CC_FOR_TARGET)"; export CC; \
21231 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21232 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21233 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21234 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21235 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21236 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21237 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
21238 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21239 LD="$(LD_FOR_TARGET)"; export LD; \
21240 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21241 NM="$(NM_FOR_TARGET)"; export NM; \
21242 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21243 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21244 echo Configuring in $(TARGET_SUBDIR)/winsup; \
21245 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
21246 case $(srcdir) in \
21247 /* | [A-Za-z]:[\\/]*) \
21248 topdir=$(srcdir) ;; \
21249 *) \
21250 case "$(TARGET_SUBDIR)" in \
21251 .) topdir="../$(srcdir)" ;; \
21252 *) topdir="../../$(srcdir)" ;; \
21253 esac ;; \
21254 esac; \
21255 srcdiroption="--srcdir=$${topdir}/winsup"; \
21256 libsrcdir="$$s/winsup"; \
21257 rm -f no-such-file || : ; \
21258 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21259 $(TARGET_CONFIGARGS) $${srcdiroption} \
21260 --with-target-subdir="$(TARGET_SUBDIR)" \
21261 || exit 1
21263 .PHONY: all-target-winsup maybe-all-target-winsup
21264 maybe-all-target-winsup:
21265 all-target-winsup: configure-target-winsup
21266 @r=`${PWD_COMMAND}`; export r; \
21267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21268 $(SET_LIB_PATH) \
21269 (cd $(TARGET_SUBDIR)/winsup && \
21270 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21272 .PHONY: check-target-winsup maybe-check-target-winsup
21273 maybe-check-target-winsup:
21275 check-target-winsup:
21276 @r=`${PWD_COMMAND}`; export r; \
21277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21278 $(SET_LIB_PATH) \
21279 (cd $(TARGET_SUBDIR)/winsup && \
21280 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21283 .PHONY: install-target-winsup maybe-install-target-winsup
21284 maybe-install-target-winsup:
21286 install-target-winsup: installdirs
21287 @r=`${PWD_COMMAND}`; export r; \
21288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21289 $(SET_LIB_PATH) \
21290 (cd $(TARGET_SUBDIR)/winsup && \
21291 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21294 # Other targets (info, dvi, etc.)
21296 .PHONY: maybe-info-target-winsup info-target-winsup
21297 maybe-info-target-winsup:
21299 info-target-winsup: \
21300 configure-target-winsup
21301 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21302 r=`${PWD_COMMAND}`; export r; \
21303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21304 $(SET_LIB_PATH) \
21305 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
21306 for flag in $(EXTRA_TARGET_FLAGS); do \
21307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21308 done; \
21309 (cd $(TARGET_SUBDIR)/winsup && \
21310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21312 "RANLIB=$${RANLIB}" \
21313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21314 info) \
21315 || exit 1
21318 .PHONY: maybe-dvi-target-winsup dvi-target-winsup
21319 maybe-dvi-target-winsup:
21321 dvi-target-winsup: \
21322 configure-target-winsup
21323 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21324 r=`${PWD_COMMAND}`; export r; \
21325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21326 $(SET_LIB_PATH) \
21327 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
21328 for flag in $(EXTRA_TARGET_FLAGS); do \
21329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21330 done; \
21331 (cd $(TARGET_SUBDIR)/winsup && \
21332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21334 "RANLIB=$${RANLIB}" \
21335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21336 dvi) \
21337 || exit 1
21340 .PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
21341 maybe-TAGS-target-winsup:
21343 TAGS-target-winsup: \
21344 configure-target-winsup
21345 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21346 r=`${PWD_COMMAND}`; export r; \
21347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21348 $(SET_LIB_PATH) \
21349 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
21350 for flag in $(EXTRA_TARGET_FLAGS); do \
21351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21352 done; \
21353 (cd $(TARGET_SUBDIR)/winsup && \
21354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21356 "RANLIB=$${RANLIB}" \
21357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21358 TAGS) \
21359 || exit 1
21362 .PHONY: maybe-install-info-target-winsup install-info-target-winsup
21363 maybe-install-info-target-winsup:
21365 install-info-target-winsup: \
21366 configure-target-winsup \
21367 info-target-winsup
21368 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21369 r=`${PWD_COMMAND}`; export r; \
21370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21371 $(SET_LIB_PATH) \
21372 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
21373 for flag in $(EXTRA_TARGET_FLAGS); do \
21374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21375 done; \
21376 (cd $(TARGET_SUBDIR)/winsup && \
21377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21379 "RANLIB=$${RANLIB}" \
21380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21381 install-info) \
21382 || exit 1
21385 .PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
21386 maybe-installcheck-target-winsup:
21388 installcheck-target-winsup: \
21389 configure-target-winsup
21390 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21391 r=`${PWD_COMMAND}`; export r; \
21392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21393 $(SET_LIB_PATH) \
21394 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
21395 for flag in $(EXTRA_TARGET_FLAGS); do \
21396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21397 done; \
21398 (cd $(TARGET_SUBDIR)/winsup && \
21399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21401 "RANLIB=$${RANLIB}" \
21402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21403 installcheck) \
21404 || exit 1
21407 .PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
21408 maybe-mostlyclean-target-winsup:
21410 mostlyclean-target-winsup:
21411 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21412 r=`${PWD_COMMAND}`; export r; \
21413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21414 $(SET_LIB_PATH) \
21415 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
21416 for flag in $(EXTRA_TARGET_FLAGS); do \
21417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21418 done; \
21419 (cd $(TARGET_SUBDIR)/winsup && \
21420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21422 "RANLIB=$${RANLIB}" \
21423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21424 mostlyclean) \
21425 || exit 1
21428 .PHONY: maybe-clean-target-winsup clean-target-winsup
21429 maybe-clean-target-winsup:
21431 clean-target-winsup:
21432 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21433 r=`${PWD_COMMAND}`; export r; \
21434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21435 $(SET_LIB_PATH) \
21436 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
21437 for flag in $(EXTRA_TARGET_FLAGS); do \
21438 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21439 done; \
21440 (cd $(TARGET_SUBDIR)/winsup && \
21441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21443 "RANLIB=$${RANLIB}" \
21444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21445 clean) \
21446 || exit 1
21449 .PHONY: maybe-distclean-target-winsup distclean-target-winsup
21450 maybe-distclean-target-winsup:
21452 distclean-target-winsup:
21453 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21454 r=`${PWD_COMMAND}`; export r; \
21455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21456 $(SET_LIB_PATH) \
21457 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
21458 for flag in $(EXTRA_TARGET_FLAGS); do \
21459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21460 done; \
21461 (cd $(TARGET_SUBDIR)/winsup && \
21462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21464 "RANLIB=$${RANLIB}" \
21465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21466 distclean) \
21467 || exit 1
21470 .PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
21471 maybe-maintainer-clean-target-winsup:
21473 maintainer-clean-target-winsup:
21474 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
21475 r=`${PWD_COMMAND}`; export r; \
21476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21477 $(SET_LIB_PATH) \
21478 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
21479 for flag in $(EXTRA_TARGET_FLAGS); do \
21480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21481 done; \
21482 (cd $(TARGET_SUBDIR)/winsup && \
21483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21485 "RANLIB=$${RANLIB}" \
21486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21487 maintainer-clean) \
21488 || exit 1
21492 .PHONY: configure-target-libgloss maybe-configure-target-libgloss
21493 maybe-configure-target-libgloss:
21495 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21496 $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out
21497 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
21498 rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \
21499 cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out
21501 configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out
21502 @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
21503 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
21504 r=`${PWD_COMMAND}`; export r; \
21505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21506 $(SET_LIB_PATH) \
21507 AR="$(AR_FOR_TARGET)"; export AR; \
21508 AS="$(AS_FOR_TARGET)"; export AS; \
21509 CC="$(CC_FOR_TARGET)"; export CC; \
21510 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21511 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21512 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21513 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21514 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21515 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21516 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
21517 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21518 LD="$(LD_FOR_TARGET)"; export LD; \
21519 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21520 NM="$(NM_FOR_TARGET)"; export NM; \
21521 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21522 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21523 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
21524 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
21525 case $(srcdir) in \
21526 /* | [A-Za-z]:[\\/]*) \
21527 topdir=$(srcdir) ;; \
21528 *) \
21529 case "$(TARGET_SUBDIR)" in \
21530 .) topdir="../$(srcdir)" ;; \
21531 *) topdir="../../$(srcdir)" ;; \
21532 esac ;; \
21533 esac; \
21534 srcdiroption="--srcdir=$${topdir}/libgloss"; \
21535 libsrcdir="$$s/libgloss"; \
21536 rm -f no-such-file || : ; \
21537 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21538 $(TARGET_CONFIGARGS) $${srcdiroption} \
21539 --with-target-subdir="$(TARGET_SUBDIR)" \
21540 || exit 1
21542 .PHONY: all-target-libgloss maybe-all-target-libgloss
21543 maybe-all-target-libgloss:
21544 all-target-libgloss: configure-target-libgloss
21545 @r=`${PWD_COMMAND}`; export r; \
21546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21547 $(SET_LIB_PATH) \
21548 (cd $(TARGET_SUBDIR)/libgloss && \
21549 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21551 .PHONY: check-target-libgloss maybe-check-target-libgloss
21552 maybe-check-target-libgloss:
21554 # Dummy target for uncheckable module.
21555 check-target-libgloss:
21558 .PHONY: install-target-libgloss maybe-install-target-libgloss
21559 maybe-install-target-libgloss:
21561 install-target-libgloss: installdirs
21562 @r=`${PWD_COMMAND}`; export r; \
21563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21564 $(SET_LIB_PATH) \
21565 (cd $(TARGET_SUBDIR)/libgloss && \
21566 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21569 # Other targets (info, dvi, etc.)
21571 .PHONY: maybe-info-target-libgloss info-target-libgloss
21572 maybe-info-target-libgloss:
21574 info-target-libgloss: \
21575 configure-target-libgloss
21576 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21577 r=`${PWD_COMMAND}`; export r; \
21578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21579 $(SET_LIB_PATH) \
21580 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
21581 for flag in $(EXTRA_TARGET_FLAGS); do \
21582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21583 done; \
21584 (cd $(TARGET_SUBDIR)/libgloss && \
21585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21587 "RANLIB=$${RANLIB}" \
21588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21589 info) \
21590 || exit 1
21593 .PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
21594 maybe-dvi-target-libgloss:
21596 dvi-target-libgloss: \
21597 configure-target-libgloss
21598 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21599 r=`${PWD_COMMAND}`; export r; \
21600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21601 $(SET_LIB_PATH) \
21602 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
21603 for flag in $(EXTRA_TARGET_FLAGS); do \
21604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21605 done; \
21606 (cd $(TARGET_SUBDIR)/libgloss && \
21607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21609 "RANLIB=$${RANLIB}" \
21610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21611 dvi) \
21612 || exit 1
21615 .PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
21616 maybe-TAGS-target-libgloss:
21618 TAGS-target-libgloss: \
21619 configure-target-libgloss
21620 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21621 r=`${PWD_COMMAND}`; export r; \
21622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21623 $(SET_LIB_PATH) \
21624 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
21625 for flag in $(EXTRA_TARGET_FLAGS); do \
21626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21627 done; \
21628 (cd $(TARGET_SUBDIR)/libgloss && \
21629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21631 "RANLIB=$${RANLIB}" \
21632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21633 TAGS) \
21634 || exit 1
21637 .PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
21638 maybe-install-info-target-libgloss:
21640 install-info-target-libgloss: \
21641 configure-target-libgloss \
21642 info-target-libgloss
21643 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21644 r=`${PWD_COMMAND}`; export r; \
21645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21646 $(SET_LIB_PATH) \
21647 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
21648 for flag in $(EXTRA_TARGET_FLAGS); do \
21649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21650 done; \
21651 (cd $(TARGET_SUBDIR)/libgloss && \
21652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21654 "RANLIB=$${RANLIB}" \
21655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21656 install-info) \
21657 || exit 1
21660 .PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
21661 maybe-installcheck-target-libgloss:
21663 installcheck-target-libgloss: \
21664 configure-target-libgloss
21665 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21666 r=`${PWD_COMMAND}`; export r; \
21667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21668 $(SET_LIB_PATH) \
21669 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
21670 for flag in $(EXTRA_TARGET_FLAGS); do \
21671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21672 done; \
21673 (cd $(TARGET_SUBDIR)/libgloss && \
21674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21676 "RANLIB=$${RANLIB}" \
21677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21678 installcheck) \
21679 || exit 1
21682 .PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
21683 maybe-mostlyclean-target-libgloss:
21685 mostlyclean-target-libgloss:
21686 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21687 r=`${PWD_COMMAND}`; export r; \
21688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21689 $(SET_LIB_PATH) \
21690 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
21691 for flag in $(EXTRA_TARGET_FLAGS); do \
21692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21693 done; \
21694 (cd $(TARGET_SUBDIR)/libgloss && \
21695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21697 "RANLIB=$${RANLIB}" \
21698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21699 mostlyclean) \
21700 || exit 1
21703 .PHONY: maybe-clean-target-libgloss clean-target-libgloss
21704 maybe-clean-target-libgloss:
21706 clean-target-libgloss:
21707 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21708 r=`${PWD_COMMAND}`; export r; \
21709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21710 $(SET_LIB_PATH) \
21711 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
21712 for flag in $(EXTRA_TARGET_FLAGS); do \
21713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21714 done; \
21715 (cd $(TARGET_SUBDIR)/libgloss && \
21716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21718 "RANLIB=$${RANLIB}" \
21719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21720 clean) \
21721 || exit 1
21724 .PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
21725 maybe-distclean-target-libgloss:
21727 distclean-target-libgloss:
21728 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21729 r=`${PWD_COMMAND}`; export r; \
21730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21731 $(SET_LIB_PATH) \
21732 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
21733 for flag in $(EXTRA_TARGET_FLAGS); do \
21734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21735 done; \
21736 (cd $(TARGET_SUBDIR)/libgloss && \
21737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21739 "RANLIB=$${RANLIB}" \
21740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21741 distclean) \
21742 || exit 1
21745 .PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
21746 maybe-maintainer-clean-target-libgloss:
21748 maintainer-clean-target-libgloss:
21749 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
21750 r=`${PWD_COMMAND}`; export r; \
21751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21752 $(SET_LIB_PATH) \
21753 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
21754 for flag in $(EXTRA_TARGET_FLAGS); do \
21755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21756 done; \
21757 (cd $(TARGET_SUBDIR)/libgloss && \
21758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21760 "RANLIB=$${RANLIB}" \
21761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21762 maintainer-clean) \
21763 || exit 1
21767 .PHONY: configure-target-libiberty maybe-configure-target-libiberty
21768 maybe-configure-target-libiberty:
21770 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
21771 $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out
21772 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
21773 rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \
21774 cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out
21776 configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out
21777 @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
21778 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
21779 r=`${PWD_COMMAND}`; export r; \
21780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21781 $(SET_LIB_PATH) \
21782 AR="$(AR_FOR_TARGET)"; export AR; \
21783 AS="$(AS_FOR_TARGET)"; export AS; \
21784 CC="$(CC_FOR_TARGET)"; export CC; \
21785 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
21786 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
21787 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
21788 CXX="$(CXX_FOR_TARGET)"; export CXX; \
21789 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
21790 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
21791 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
21792 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
21793 LD="$(LD_FOR_TARGET)"; export LD; \
21794 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
21795 NM="$(NM_FOR_TARGET)"; export NM; \
21796 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
21797 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
21798 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
21799 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
21800 case $(srcdir) in \
21801 /* | [A-Za-z]:[\\/]*) \
21802 topdir=$(srcdir) ;; \
21803 *) \
21804 case "$(TARGET_SUBDIR)" in \
21805 .) topdir="../$(srcdir)" ;; \
21806 *) topdir="../../$(srcdir)" ;; \
21807 esac ;; \
21808 esac; \
21809 srcdiroption="--srcdir=$${topdir}/libiberty"; \
21810 libsrcdir="$$s/libiberty"; \
21811 rm -f no-such-file || : ; \
21812 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
21813 $(TARGET_CONFIGARGS) $${srcdiroption} \
21814 --with-target-subdir="$(TARGET_SUBDIR)" \
21815 || exit 1
21817 .PHONY: all-target-libiberty maybe-all-target-libiberty
21818 maybe-all-target-libiberty:
21819 all-target-libiberty: configure-target-libiberty
21820 @r=`${PWD_COMMAND}`; export r; \
21821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21822 $(SET_LIB_PATH) \
21823 (cd $(TARGET_SUBDIR)/libiberty && \
21824 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
21826 .PHONY: check-target-libiberty maybe-check-target-libiberty
21827 maybe-check-target-libiberty:
21829 check-target-libiberty:
21830 @r=`${PWD_COMMAND}`; export r; \
21831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21832 $(SET_LIB_PATH) \
21833 (cd $(TARGET_SUBDIR)/libiberty && \
21834 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
21837 .PHONY: install-target-libiberty maybe-install-target-libiberty
21838 maybe-install-target-libiberty:
21840 install-target-libiberty: installdirs
21841 @r=`${PWD_COMMAND}`; export r; \
21842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21843 $(SET_LIB_PATH) \
21844 (cd $(TARGET_SUBDIR)/libiberty && \
21845 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
21848 # Other targets (info, dvi, etc.)
21850 .PHONY: maybe-info-target-libiberty info-target-libiberty
21851 maybe-info-target-libiberty:
21853 info-target-libiberty: \
21854 configure-target-libiberty
21855 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21856 r=`${PWD_COMMAND}`; export r; \
21857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21858 $(SET_LIB_PATH) \
21859 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
21860 for flag in $(EXTRA_TARGET_FLAGS); do \
21861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21862 done; \
21863 (cd $(TARGET_SUBDIR)/libiberty && \
21864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21866 "RANLIB=$${RANLIB}" \
21867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21868 info) \
21869 || exit 1
21872 .PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
21873 maybe-dvi-target-libiberty:
21875 dvi-target-libiberty: \
21876 configure-target-libiberty
21877 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21878 r=`${PWD_COMMAND}`; export r; \
21879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21880 $(SET_LIB_PATH) \
21881 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
21882 for flag in $(EXTRA_TARGET_FLAGS); do \
21883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21884 done; \
21885 (cd $(TARGET_SUBDIR)/libiberty && \
21886 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21887 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21888 "RANLIB=$${RANLIB}" \
21889 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21890 dvi) \
21891 || exit 1
21894 .PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
21895 maybe-TAGS-target-libiberty:
21897 TAGS-target-libiberty: \
21898 configure-target-libiberty
21899 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21900 r=`${PWD_COMMAND}`; export r; \
21901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21902 $(SET_LIB_PATH) \
21903 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
21904 for flag in $(EXTRA_TARGET_FLAGS); do \
21905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21906 done; \
21907 (cd $(TARGET_SUBDIR)/libiberty && \
21908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21910 "RANLIB=$${RANLIB}" \
21911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21912 TAGS) \
21913 || exit 1
21916 .PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
21917 maybe-install-info-target-libiberty:
21919 install-info-target-libiberty: \
21920 configure-target-libiberty \
21921 info-target-libiberty
21922 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21923 r=`${PWD_COMMAND}`; export r; \
21924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21925 $(SET_LIB_PATH) \
21926 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
21927 for flag in $(EXTRA_TARGET_FLAGS); do \
21928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21929 done; \
21930 (cd $(TARGET_SUBDIR)/libiberty && \
21931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21933 "RANLIB=$${RANLIB}" \
21934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21935 install-info) \
21936 || exit 1
21939 .PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
21940 maybe-installcheck-target-libiberty:
21942 installcheck-target-libiberty: \
21943 configure-target-libiberty
21944 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21945 r=`${PWD_COMMAND}`; export r; \
21946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21947 $(SET_LIB_PATH) \
21948 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
21949 for flag in $(EXTRA_TARGET_FLAGS); do \
21950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21951 done; \
21952 (cd $(TARGET_SUBDIR)/libiberty && \
21953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21955 "RANLIB=$${RANLIB}" \
21956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21957 installcheck) \
21958 || exit 1
21961 .PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
21962 maybe-mostlyclean-target-libiberty:
21964 mostlyclean-target-libiberty:
21965 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21966 r=`${PWD_COMMAND}`; export r; \
21967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21968 $(SET_LIB_PATH) \
21969 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
21970 for flag in $(EXTRA_TARGET_FLAGS); do \
21971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21972 done; \
21973 (cd $(TARGET_SUBDIR)/libiberty && \
21974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21976 "RANLIB=$${RANLIB}" \
21977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21978 mostlyclean) \
21979 || exit 1
21982 .PHONY: maybe-clean-target-libiberty clean-target-libiberty
21983 maybe-clean-target-libiberty:
21985 clean-target-libiberty:
21986 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
21987 r=`${PWD_COMMAND}`; export r; \
21988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21989 $(SET_LIB_PATH) \
21990 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
21991 for flag in $(EXTRA_TARGET_FLAGS); do \
21992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21993 done; \
21994 (cd $(TARGET_SUBDIR)/libiberty && \
21995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21997 "RANLIB=$${RANLIB}" \
21998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21999 clean) \
22000 || exit 1
22003 .PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
22004 maybe-distclean-target-libiberty:
22006 distclean-target-libiberty:
22007 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
22008 r=`${PWD_COMMAND}`; export r; \
22009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22010 $(SET_LIB_PATH) \
22011 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
22012 for flag in $(EXTRA_TARGET_FLAGS); do \
22013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22014 done; \
22015 (cd $(TARGET_SUBDIR)/libiberty && \
22016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22018 "RANLIB=$${RANLIB}" \
22019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22020 distclean) \
22021 || exit 1
22024 .PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
22025 maybe-maintainer-clean-target-libiberty:
22027 maintainer-clean-target-libiberty:
22028 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
22029 r=`${PWD_COMMAND}`; export r; \
22030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22031 $(SET_LIB_PATH) \
22032 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
22033 for flag in $(EXTRA_TARGET_FLAGS); do \
22034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22035 done; \
22036 (cd $(TARGET_SUBDIR)/libiberty && \
22037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22039 "RANLIB=$${RANLIB}" \
22040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22041 maintainer-clean) \
22042 || exit 1
22046 .PHONY: configure-target-gperf maybe-configure-target-gperf
22047 maybe-configure-target-gperf:
22049 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22050 $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out
22051 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
22052 rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \
22053 cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out
22055 configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out
22056 @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
22057 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
22058 r=`${PWD_COMMAND}`; export r; \
22059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22060 $(SET_LIB_PATH) \
22061 AR="$(AR_FOR_TARGET)"; export AR; \
22062 AS="$(AS_FOR_TARGET)"; export AS; \
22063 CC="$(CC_FOR_TARGET)"; export CC; \
22064 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22065 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22066 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22067 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22068 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22069 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22070 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
22071 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22072 LD="$(LD_FOR_TARGET)"; export LD; \
22073 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22074 NM="$(NM_FOR_TARGET)"; export NM; \
22075 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22076 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22077 echo Configuring in $(TARGET_SUBDIR)/gperf; \
22078 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
22079 case $(srcdir) in \
22080 /* | [A-Za-z]:[\\/]*) \
22081 topdir=$(srcdir) ;; \
22082 *) \
22083 case "$(TARGET_SUBDIR)" in \
22084 .) topdir="../$(srcdir)" ;; \
22085 *) topdir="../../$(srcdir)" ;; \
22086 esac ;; \
22087 esac; \
22088 srcdiroption="--srcdir=$${topdir}/gperf"; \
22089 libsrcdir="$$s/gperf"; \
22090 rm -f no-such-file || : ; \
22091 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22092 $(TARGET_CONFIGARGS) $${srcdiroption} \
22093 --with-target-subdir="$(TARGET_SUBDIR)" \
22094 || exit 1
22096 .PHONY: all-target-gperf maybe-all-target-gperf
22097 maybe-all-target-gperf:
22098 all-target-gperf: configure-target-gperf
22099 @r=`${PWD_COMMAND}`; export r; \
22100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22101 $(SET_LIB_PATH) \
22102 (cd $(TARGET_SUBDIR)/gperf && \
22103 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22105 .PHONY: check-target-gperf maybe-check-target-gperf
22106 maybe-check-target-gperf:
22108 check-target-gperf:
22109 @r=`${PWD_COMMAND}`; export r; \
22110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22111 $(SET_LIB_PATH) \
22112 (cd $(TARGET_SUBDIR)/gperf && \
22113 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22116 .PHONY: install-target-gperf maybe-install-target-gperf
22117 maybe-install-target-gperf:
22119 install-target-gperf: installdirs
22120 @r=`${PWD_COMMAND}`; export r; \
22121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22122 $(SET_LIB_PATH) \
22123 (cd $(TARGET_SUBDIR)/gperf && \
22124 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22127 # Other targets (info, dvi, etc.)
22129 .PHONY: maybe-info-target-gperf info-target-gperf
22130 maybe-info-target-gperf:
22132 info-target-gperf: \
22133 configure-target-gperf
22134 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22135 r=`${PWD_COMMAND}`; export r; \
22136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22137 $(SET_LIB_PATH) \
22138 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
22139 for flag in $(EXTRA_TARGET_FLAGS); do \
22140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22141 done; \
22142 (cd $(TARGET_SUBDIR)/gperf && \
22143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22145 "RANLIB=$${RANLIB}" \
22146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22147 info) \
22148 || exit 1
22151 .PHONY: maybe-dvi-target-gperf dvi-target-gperf
22152 maybe-dvi-target-gperf:
22154 dvi-target-gperf: \
22155 configure-target-gperf
22156 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22157 r=`${PWD_COMMAND}`; export r; \
22158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22159 $(SET_LIB_PATH) \
22160 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
22161 for flag in $(EXTRA_TARGET_FLAGS); do \
22162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22163 done; \
22164 (cd $(TARGET_SUBDIR)/gperf && \
22165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22167 "RANLIB=$${RANLIB}" \
22168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22169 dvi) \
22170 || exit 1
22173 .PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
22174 maybe-TAGS-target-gperf:
22176 TAGS-target-gperf: \
22177 configure-target-gperf
22178 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22179 r=`${PWD_COMMAND}`; export r; \
22180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22181 $(SET_LIB_PATH) \
22182 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
22183 for flag in $(EXTRA_TARGET_FLAGS); do \
22184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22185 done; \
22186 (cd $(TARGET_SUBDIR)/gperf && \
22187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22189 "RANLIB=$${RANLIB}" \
22190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22191 TAGS) \
22192 || exit 1
22195 .PHONY: maybe-install-info-target-gperf install-info-target-gperf
22196 maybe-install-info-target-gperf:
22198 install-info-target-gperf: \
22199 configure-target-gperf \
22200 info-target-gperf
22201 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22202 r=`${PWD_COMMAND}`; export r; \
22203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22204 $(SET_LIB_PATH) \
22205 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
22206 for flag in $(EXTRA_TARGET_FLAGS); do \
22207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22208 done; \
22209 (cd $(TARGET_SUBDIR)/gperf && \
22210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22212 "RANLIB=$${RANLIB}" \
22213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22214 install-info) \
22215 || exit 1
22218 .PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
22219 maybe-installcheck-target-gperf:
22221 installcheck-target-gperf: \
22222 configure-target-gperf
22223 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22224 r=`${PWD_COMMAND}`; export r; \
22225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22226 $(SET_LIB_PATH) \
22227 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
22228 for flag in $(EXTRA_TARGET_FLAGS); do \
22229 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22230 done; \
22231 (cd $(TARGET_SUBDIR)/gperf && \
22232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22234 "RANLIB=$${RANLIB}" \
22235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22236 installcheck) \
22237 || exit 1
22240 .PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
22241 maybe-mostlyclean-target-gperf:
22243 mostlyclean-target-gperf:
22244 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22245 r=`${PWD_COMMAND}`; export r; \
22246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22247 $(SET_LIB_PATH) \
22248 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
22249 for flag in $(EXTRA_TARGET_FLAGS); do \
22250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22251 done; \
22252 (cd $(TARGET_SUBDIR)/gperf && \
22253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22255 "RANLIB=$${RANLIB}" \
22256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22257 mostlyclean) \
22258 || exit 1
22261 .PHONY: maybe-clean-target-gperf clean-target-gperf
22262 maybe-clean-target-gperf:
22264 clean-target-gperf:
22265 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22266 r=`${PWD_COMMAND}`; export r; \
22267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22268 $(SET_LIB_PATH) \
22269 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
22270 for flag in $(EXTRA_TARGET_FLAGS); do \
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
22273 (cd $(TARGET_SUBDIR)/gperf && \
22274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22276 "RANLIB=$${RANLIB}" \
22277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22278 clean) \
22279 || exit 1
22282 .PHONY: maybe-distclean-target-gperf distclean-target-gperf
22283 maybe-distclean-target-gperf:
22285 distclean-target-gperf:
22286 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22287 r=`${PWD_COMMAND}`; export r; \
22288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22289 $(SET_LIB_PATH) \
22290 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
22291 for flag in $(EXTRA_TARGET_FLAGS); do \
22292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22293 done; \
22294 (cd $(TARGET_SUBDIR)/gperf && \
22295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22297 "RANLIB=$${RANLIB}" \
22298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22299 distclean) \
22300 || exit 1
22303 .PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
22304 maybe-maintainer-clean-target-gperf:
22306 maintainer-clean-target-gperf:
22307 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
22308 r=`${PWD_COMMAND}`; export r; \
22309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22310 $(SET_LIB_PATH) \
22311 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
22312 for flag in $(EXTRA_TARGET_FLAGS); do \
22313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22314 done; \
22315 (cd $(TARGET_SUBDIR)/gperf && \
22316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22318 "RANLIB=$${RANLIB}" \
22319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22320 maintainer-clean) \
22321 || exit 1
22325 .PHONY: configure-target-examples maybe-configure-target-examples
22326 maybe-configure-target-examples:
22328 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22329 $(TARGET_SUBDIR)/examples/multilib.out: multilib.out
22330 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
22331 rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \
22332 cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out
22334 configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out
22335 @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
22336 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
22337 r=`${PWD_COMMAND}`; export r; \
22338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22339 $(SET_LIB_PATH) \
22340 AR="$(AR_FOR_TARGET)"; export AR; \
22341 AS="$(AS_FOR_TARGET)"; export AS; \
22342 CC="$(CC_FOR_TARGET)"; export CC; \
22343 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22344 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22345 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22346 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22347 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22348 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22349 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
22350 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22351 LD="$(LD_FOR_TARGET)"; export LD; \
22352 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22353 NM="$(NM_FOR_TARGET)"; export NM; \
22354 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22355 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22356 echo Configuring in $(TARGET_SUBDIR)/examples; \
22357 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
22358 case $(srcdir) in \
22359 /* | [A-Za-z]:[\\/]*) \
22360 topdir=$(srcdir) ;; \
22361 *) \
22362 case "$(TARGET_SUBDIR)" in \
22363 .) topdir="../$(srcdir)" ;; \
22364 *) topdir="../../$(srcdir)" ;; \
22365 esac ;; \
22366 esac; \
22367 srcdiroption="--srcdir=$${topdir}/examples"; \
22368 libsrcdir="$$s/examples"; \
22369 rm -f no-such-file || : ; \
22370 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22371 $(TARGET_CONFIGARGS) $${srcdiroption} \
22372 --with-target-subdir="$(TARGET_SUBDIR)" \
22373 || exit 1
22375 .PHONY: all-target-examples maybe-all-target-examples
22376 maybe-all-target-examples:
22377 all-target-examples: configure-target-examples
22378 @r=`${PWD_COMMAND}`; export r; \
22379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22380 $(SET_LIB_PATH) \
22381 (cd $(TARGET_SUBDIR)/examples && \
22382 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22384 .PHONY: check-target-examples maybe-check-target-examples
22385 maybe-check-target-examples:
22387 # Dummy target for uncheckable module.
22388 check-target-examples:
22391 .PHONY: install-target-examples maybe-install-target-examples
22392 maybe-install-target-examples:
22394 # Dummy target for uninstallable.
22395 install-target-examples:
22398 # Other targets (info, dvi, etc.)
22400 .PHONY: maybe-info-target-examples info-target-examples
22401 maybe-info-target-examples:
22403 info-target-examples: \
22404 configure-target-examples
22405 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22406 r=`${PWD_COMMAND}`; export r; \
22407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22408 $(SET_LIB_PATH) \
22409 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
22410 for flag in $(EXTRA_TARGET_FLAGS); do \
22411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22412 done; \
22413 (cd $(TARGET_SUBDIR)/examples && \
22414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22416 "RANLIB=$${RANLIB}" \
22417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22418 info) \
22419 || exit 1
22422 .PHONY: maybe-dvi-target-examples dvi-target-examples
22423 maybe-dvi-target-examples:
22425 dvi-target-examples: \
22426 configure-target-examples
22427 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22428 r=`${PWD_COMMAND}`; export r; \
22429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22430 $(SET_LIB_PATH) \
22431 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
22432 for flag in $(EXTRA_TARGET_FLAGS); do \
22433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22434 done; \
22435 (cd $(TARGET_SUBDIR)/examples && \
22436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22438 "RANLIB=$${RANLIB}" \
22439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22440 dvi) \
22441 || exit 1
22444 .PHONY: maybe-TAGS-target-examples TAGS-target-examples
22445 maybe-TAGS-target-examples:
22447 TAGS-target-examples: \
22448 configure-target-examples
22449 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22450 r=`${PWD_COMMAND}`; export r; \
22451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22452 $(SET_LIB_PATH) \
22453 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
22454 for flag in $(EXTRA_TARGET_FLAGS); do \
22455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22456 done; \
22457 (cd $(TARGET_SUBDIR)/examples && \
22458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22460 "RANLIB=$${RANLIB}" \
22461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22462 TAGS) \
22463 || exit 1
22466 .PHONY: maybe-install-info-target-examples install-info-target-examples
22467 maybe-install-info-target-examples:
22469 install-info-target-examples: \
22470 configure-target-examples \
22471 info-target-examples
22472 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22473 r=`${PWD_COMMAND}`; export r; \
22474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22475 $(SET_LIB_PATH) \
22476 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
22477 for flag in $(EXTRA_TARGET_FLAGS); do \
22478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22479 done; \
22480 (cd $(TARGET_SUBDIR)/examples && \
22481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22483 "RANLIB=$${RANLIB}" \
22484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22485 install-info) \
22486 || exit 1
22489 .PHONY: maybe-installcheck-target-examples installcheck-target-examples
22490 maybe-installcheck-target-examples:
22492 installcheck-target-examples: \
22493 configure-target-examples
22494 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22495 r=`${PWD_COMMAND}`; export r; \
22496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22497 $(SET_LIB_PATH) \
22498 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
22499 for flag in $(EXTRA_TARGET_FLAGS); do \
22500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22501 done; \
22502 (cd $(TARGET_SUBDIR)/examples && \
22503 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22504 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22505 "RANLIB=$${RANLIB}" \
22506 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22507 installcheck) \
22508 || exit 1
22511 .PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
22512 maybe-mostlyclean-target-examples:
22514 mostlyclean-target-examples:
22515 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22516 r=`${PWD_COMMAND}`; export r; \
22517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22518 $(SET_LIB_PATH) \
22519 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
22520 for flag in $(EXTRA_TARGET_FLAGS); do \
22521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22522 done; \
22523 (cd $(TARGET_SUBDIR)/examples && \
22524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22526 "RANLIB=$${RANLIB}" \
22527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22528 mostlyclean) \
22529 || exit 1
22532 .PHONY: maybe-clean-target-examples clean-target-examples
22533 maybe-clean-target-examples:
22535 clean-target-examples:
22536 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22537 r=`${PWD_COMMAND}`; export r; \
22538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22539 $(SET_LIB_PATH) \
22540 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
22541 for flag in $(EXTRA_TARGET_FLAGS); do \
22542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22543 done; \
22544 (cd $(TARGET_SUBDIR)/examples && \
22545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22547 "RANLIB=$${RANLIB}" \
22548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22549 clean) \
22550 || exit 1
22553 .PHONY: maybe-distclean-target-examples distclean-target-examples
22554 maybe-distclean-target-examples:
22556 distclean-target-examples:
22557 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22558 r=`${PWD_COMMAND}`; export r; \
22559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22560 $(SET_LIB_PATH) \
22561 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
22562 for flag in $(EXTRA_TARGET_FLAGS); do \
22563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22564 done; \
22565 (cd $(TARGET_SUBDIR)/examples && \
22566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22568 "RANLIB=$${RANLIB}" \
22569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22570 distclean) \
22571 || exit 1
22574 .PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
22575 maybe-maintainer-clean-target-examples:
22577 maintainer-clean-target-examples:
22578 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
22579 r=`${PWD_COMMAND}`; export r; \
22580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22581 $(SET_LIB_PATH) \
22582 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
22583 for flag in $(EXTRA_TARGET_FLAGS); do \
22584 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22585 done; \
22586 (cd $(TARGET_SUBDIR)/examples && \
22587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22589 "RANLIB=$${RANLIB}" \
22590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22591 maintainer-clean) \
22592 || exit 1
22596 .PHONY: configure-target-libffi maybe-configure-target-libffi
22597 maybe-configure-target-libffi:
22599 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22600 $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out
22601 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
22602 rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \
22603 cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out
22605 configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out
22606 @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
22607 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
22608 r=`${PWD_COMMAND}`; export r; \
22609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22610 $(SET_LIB_PATH) \
22611 AR="$(AR_FOR_TARGET)"; export AR; \
22612 AS="$(AS_FOR_TARGET)"; export AS; \
22613 CC="$(CC_FOR_TARGET)"; export CC; \
22614 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22615 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22616 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22617 CXX="$(CXX_FOR_TARGET)"; export CXX; \
22618 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22619 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22620 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
22621 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22622 LD="$(LD_FOR_TARGET)"; export LD; \
22623 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22624 NM="$(NM_FOR_TARGET)"; export NM; \
22625 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22626 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22627 echo Configuring in $(TARGET_SUBDIR)/libffi; \
22628 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
22629 case $(srcdir) in \
22630 /* | [A-Za-z]:[\\/]*) \
22631 topdir=$(srcdir) ;; \
22632 *) \
22633 case "$(TARGET_SUBDIR)" in \
22634 .) topdir="../$(srcdir)" ;; \
22635 *) topdir="../../$(srcdir)" ;; \
22636 esac ;; \
22637 esac; \
22638 srcdiroption="--srcdir=$${topdir}/libffi"; \
22639 libsrcdir="$$s/libffi"; \
22640 rm -f no-such-file || : ; \
22641 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22642 $(TARGET_CONFIGARGS) $${srcdiroption} \
22643 --with-target-subdir="$(TARGET_SUBDIR)" \
22644 || exit 1
22646 .PHONY: all-target-libffi maybe-all-target-libffi
22647 maybe-all-target-libffi:
22648 all-target-libffi: configure-target-libffi
22649 @r=`${PWD_COMMAND}`; export r; \
22650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22651 $(SET_LIB_PATH) \
22652 (cd $(TARGET_SUBDIR)/libffi && \
22653 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
22655 .PHONY: check-target-libffi maybe-check-target-libffi
22656 maybe-check-target-libffi:
22658 check-target-libffi:
22659 @r=`${PWD_COMMAND}`; export r; \
22660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22661 $(SET_LIB_PATH) \
22662 (cd $(TARGET_SUBDIR)/libffi && \
22663 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
22666 .PHONY: install-target-libffi maybe-install-target-libffi
22667 maybe-install-target-libffi:
22669 install-target-libffi: installdirs
22670 @r=`${PWD_COMMAND}`; export r; \
22671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22672 $(SET_LIB_PATH) \
22673 (cd $(TARGET_SUBDIR)/libffi && \
22674 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22677 # Other targets (info, dvi, etc.)
22679 .PHONY: maybe-info-target-libffi info-target-libffi
22680 maybe-info-target-libffi:
22682 info-target-libffi: \
22683 configure-target-libffi
22684 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22685 r=`${PWD_COMMAND}`; export r; \
22686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22687 $(SET_LIB_PATH) \
22688 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
22689 for flag in $(EXTRA_TARGET_FLAGS); do \
22690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22691 done; \
22692 (cd $(TARGET_SUBDIR)/libffi && \
22693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22695 "RANLIB=$${RANLIB}" \
22696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22697 info) \
22698 || exit 1
22701 .PHONY: maybe-dvi-target-libffi dvi-target-libffi
22702 maybe-dvi-target-libffi:
22704 dvi-target-libffi: \
22705 configure-target-libffi
22706 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22707 r=`${PWD_COMMAND}`; export r; \
22708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22709 $(SET_LIB_PATH) \
22710 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
22711 for flag in $(EXTRA_TARGET_FLAGS); do \
22712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22713 done; \
22714 (cd $(TARGET_SUBDIR)/libffi && \
22715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22717 "RANLIB=$${RANLIB}" \
22718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22719 dvi) \
22720 || exit 1
22723 .PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
22724 maybe-TAGS-target-libffi:
22726 TAGS-target-libffi: \
22727 configure-target-libffi
22728 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22729 r=`${PWD_COMMAND}`; export r; \
22730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22731 $(SET_LIB_PATH) \
22732 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
22733 for flag in $(EXTRA_TARGET_FLAGS); do \
22734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22735 done; \
22736 (cd $(TARGET_SUBDIR)/libffi && \
22737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22739 "RANLIB=$${RANLIB}" \
22740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22741 TAGS) \
22742 || exit 1
22745 .PHONY: maybe-install-info-target-libffi install-info-target-libffi
22746 maybe-install-info-target-libffi:
22748 install-info-target-libffi: \
22749 configure-target-libffi \
22750 info-target-libffi
22751 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22752 r=`${PWD_COMMAND}`; export r; \
22753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22754 $(SET_LIB_PATH) \
22755 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
22756 for flag in $(EXTRA_TARGET_FLAGS); do \
22757 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22758 done; \
22759 (cd $(TARGET_SUBDIR)/libffi && \
22760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22762 "RANLIB=$${RANLIB}" \
22763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22764 install-info) \
22765 || exit 1
22768 .PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
22769 maybe-installcheck-target-libffi:
22771 installcheck-target-libffi: \
22772 configure-target-libffi
22773 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22774 r=`${PWD_COMMAND}`; export r; \
22775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22776 $(SET_LIB_PATH) \
22777 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
22778 for flag in $(EXTRA_TARGET_FLAGS); do \
22779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22780 done; \
22781 (cd $(TARGET_SUBDIR)/libffi && \
22782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22784 "RANLIB=$${RANLIB}" \
22785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22786 installcheck) \
22787 || exit 1
22790 .PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
22791 maybe-mostlyclean-target-libffi:
22793 mostlyclean-target-libffi:
22794 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22795 r=`${PWD_COMMAND}`; export r; \
22796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22797 $(SET_LIB_PATH) \
22798 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
22799 for flag in $(EXTRA_TARGET_FLAGS); do \
22800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22801 done; \
22802 (cd $(TARGET_SUBDIR)/libffi && \
22803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22805 "RANLIB=$${RANLIB}" \
22806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22807 mostlyclean) \
22808 || exit 1
22811 .PHONY: maybe-clean-target-libffi clean-target-libffi
22812 maybe-clean-target-libffi:
22814 clean-target-libffi:
22815 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22816 r=`${PWD_COMMAND}`; export r; \
22817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22818 $(SET_LIB_PATH) \
22819 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
22820 for flag in $(EXTRA_TARGET_FLAGS); do \
22821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22822 done; \
22823 (cd $(TARGET_SUBDIR)/libffi && \
22824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22826 "RANLIB=$${RANLIB}" \
22827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22828 clean) \
22829 || exit 1
22832 .PHONY: maybe-distclean-target-libffi distclean-target-libffi
22833 maybe-distclean-target-libffi:
22835 distclean-target-libffi:
22836 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22837 r=`${PWD_COMMAND}`; export r; \
22838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22839 $(SET_LIB_PATH) \
22840 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
22841 for flag in $(EXTRA_TARGET_FLAGS); do \
22842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22843 done; \
22844 (cd $(TARGET_SUBDIR)/libffi && \
22845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22847 "RANLIB=$${RANLIB}" \
22848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22849 distclean) \
22850 || exit 1
22853 .PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
22854 maybe-maintainer-clean-target-libffi:
22856 maintainer-clean-target-libffi:
22857 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
22858 r=`${PWD_COMMAND}`; export r; \
22859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22860 $(SET_LIB_PATH) \
22861 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
22862 for flag in $(EXTRA_TARGET_FLAGS); do \
22863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22864 done; \
22865 (cd $(TARGET_SUBDIR)/libffi && \
22866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22868 "RANLIB=$${RANLIB}" \
22869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22870 maintainer-clean) \
22871 || exit 1
22875 .PHONY: configure-target-libjava maybe-configure-target-libjava
22876 maybe-configure-target-libjava:
22878 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
22879 $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out
22880 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
22881 rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \
22882 cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out
22884 configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out
22885 @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
22886 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
22887 r=`${PWD_COMMAND}`; export r; \
22888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22889 $(SET_LIB_PATH) \
22890 AR="$(AR_FOR_TARGET)"; export AR; \
22891 AS="$(AS_FOR_TARGET)"; export AS; \
22892 CC="$(CC_FOR_TARGET)"; export CC; \
22893 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
22894 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
22895 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
22896 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
22897 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \
22898 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
22899 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
22900 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
22901 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
22902 LD="$(LD_FOR_TARGET)"; export LD; \
22903 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
22904 NM="$(NM_FOR_TARGET)"; export NM; \
22905 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
22906 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
22907 echo Configuring in $(TARGET_SUBDIR)/libjava; \
22908 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
22909 case $(srcdir) in \
22910 /* | [A-Za-z]:[\\/]*) \
22911 topdir=$(srcdir) ;; \
22912 *) \
22913 case "$(TARGET_SUBDIR)" in \
22914 .) topdir="../$(srcdir)" ;; \
22915 *) topdir="../../$(srcdir)" ;; \
22916 esac ;; \
22917 esac; \
22918 srcdiroption="--srcdir=$${topdir}/libjava"; \
22919 libsrcdir="$$s/libjava"; \
22920 rm -f no-such-file || : ; \
22921 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
22922 $(TARGET_CONFIGARGS) $${srcdiroption} \
22923 --with-target-subdir="$(TARGET_SUBDIR)" \
22924 || exit 1
22926 .PHONY: all-target-libjava maybe-all-target-libjava
22927 maybe-all-target-libjava:
22928 all-target-libjava: configure-target-libjava
22929 @r=`${PWD_COMMAND}`; export r; \
22930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22931 $(SET_LIB_PATH) \
22932 (cd $(TARGET_SUBDIR)/libjava && \
22933 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all)
22935 .PHONY: check-target-libjava maybe-check-target-libjava
22936 maybe-check-target-libjava:
22938 check-target-libjava:
22939 @r=`${PWD_COMMAND}`; export r; \
22940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22941 $(SET_LIB_PATH) \
22942 (cd $(TARGET_SUBDIR)/libjava && \
22943 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
22946 .PHONY: install-target-libjava maybe-install-target-libjava
22947 maybe-install-target-libjava:
22949 install-target-libjava: installdirs
22950 @r=`${PWD_COMMAND}`; export r; \
22951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22952 $(SET_LIB_PATH) \
22953 (cd $(TARGET_SUBDIR)/libjava && \
22954 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
22957 # Other targets (info, dvi, etc.)
22959 .PHONY: maybe-info-target-libjava info-target-libjava
22960 maybe-info-target-libjava:
22962 info-target-libjava: \
22963 configure-target-libjava
22964 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22965 r=`${PWD_COMMAND}`; export r; \
22966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22967 $(SET_LIB_PATH) \
22968 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
22969 for flag in $(EXTRA_TARGET_FLAGS); do \
22970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22971 done; \
22972 (cd $(TARGET_SUBDIR)/libjava && \
22973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22975 "RANLIB=$${RANLIB}" \
22976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22977 info) \
22978 || exit 1
22981 .PHONY: maybe-dvi-target-libjava dvi-target-libjava
22982 maybe-dvi-target-libjava:
22984 dvi-target-libjava: \
22985 configure-target-libjava
22986 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
22987 r=`${PWD_COMMAND}`; export r; \
22988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22989 $(SET_LIB_PATH) \
22990 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
22991 for flag in $(EXTRA_TARGET_FLAGS); do \
22992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22993 done; \
22994 (cd $(TARGET_SUBDIR)/libjava && \
22995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22997 "RANLIB=$${RANLIB}" \
22998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22999 dvi) \
23000 || exit 1
23003 .PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
23004 maybe-TAGS-target-libjava:
23006 TAGS-target-libjava: \
23007 configure-target-libjava
23008 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23009 r=`${PWD_COMMAND}`; export r; \
23010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23011 $(SET_LIB_PATH) \
23012 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
23013 for flag in $(EXTRA_TARGET_FLAGS); do \
23014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23015 done; \
23016 (cd $(TARGET_SUBDIR)/libjava && \
23017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23019 "RANLIB=$${RANLIB}" \
23020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23021 TAGS) \
23022 || exit 1
23025 .PHONY: maybe-install-info-target-libjava install-info-target-libjava
23026 maybe-install-info-target-libjava:
23028 install-info-target-libjava: \
23029 configure-target-libjava \
23030 info-target-libjava
23031 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23032 r=`${PWD_COMMAND}`; export r; \
23033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23034 $(SET_LIB_PATH) \
23035 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
23036 for flag in $(EXTRA_TARGET_FLAGS); do \
23037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23038 done; \
23039 (cd $(TARGET_SUBDIR)/libjava && \
23040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23042 "RANLIB=$${RANLIB}" \
23043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23044 install-info) \
23045 || exit 1
23048 .PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
23049 maybe-installcheck-target-libjava:
23051 installcheck-target-libjava: \
23052 configure-target-libjava
23053 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23054 r=`${PWD_COMMAND}`; export r; \
23055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23056 $(SET_LIB_PATH) \
23057 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
23058 for flag in $(EXTRA_TARGET_FLAGS); do \
23059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23060 done; \
23061 (cd $(TARGET_SUBDIR)/libjava && \
23062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23064 "RANLIB=$${RANLIB}" \
23065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23066 installcheck) \
23067 || exit 1
23070 .PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
23071 maybe-mostlyclean-target-libjava:
23073 mostlyclean-target-libjava:
23074 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23075 r=`${PWD_COMMAND}`; export r; \
23076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23077 $(SET_LIB_PATH) \
23078 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
23079 for flag in $(EXTRA_TARGET_FLAGS); do \
23080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23081 done; \
23082 (cd $(TARGET_SUBDIR)/libjava && \
23083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23085 "RANLIB=$${RANLIB}" \
23086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23087 mostlyclean) \
23088 || exit 1
23091 .PHONY: maybe-clean-target-libjava clean-target-libjava
23092 maybe-clean-target-libjava:
23094 clean-target-libjava:
23095 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23096 r=`${PWD_COMMAND}`; export r; \
23097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23098 $(SET_LIB_PATH) \
23099 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
23100 for flag in $(EXTRA_TARGET_FLAGS); do \
23101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23102 done; \
23103 (cd $(TARGET_SUBDIR)/libjava && \
23104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23106 "RANLIB=$${RANLIB}" \
23107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23108 clean) \
23109 || exit 1
23112 .PHONY: maybe-distclean-target-libjava distclean-target-libjava
23113 maybe-distclean-target-libjava:
23115 distclean-target-libjava:
23116 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23117 r=`${PWD_COMMAND}`; export r; \
23118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23119 $(SET_LIB_PATH) \
23120 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
23121 for flag in $(EXTRA_TARGET_FLAGS); do \
23122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23123 done; \
23124 (cd $(TARGET_SUBDIR)/libjava && \
23125 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23126 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23127 "RANLIB=$${RANLIB}" \
23128 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23129 distclean) \
23130 || exit 1
23133 .PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
23134 maybe-maintainer-clean-target-libjava:
23136 maintainer-clean-target-libjava:
23137 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
23138 r=`${PWD_COMMAND}`; export r; \
23139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23140 $(SET_LIB_PATH) \
23141 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
23142 for flag in $(EXTRA_TARGET_FLAGS); do \
23143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23144 done; \
23145 (cd $(TARGET_SUBDIR)/libjava && \
23146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23148 "RANLIB=$${RANLIB}" \
23149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23150 maintainer-clean) \
23151 || exit 1
23155 .PHONY: configure-target-zlib maybe-configure-target-zlib
23156 maybe-configure-target-zlib:
23158 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23159 $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out
23160 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
23161 rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \
23162 cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out
23164 configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out
23165 @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
23166 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
23167 r=`${PWD_COMMAND}`; export r; \
23168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23169 $(SET_LIB_PATH) \
23170 AR="$(AR_FOR_TARGET)"; export AR; \
23171 AS="$(AS_FOR_TARGET)"; export AS; \
23172 CC="$(CC_FOR_TARGET)"; export CC; \
23173 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23174 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23175 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23176 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23177 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23178 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23179 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
23180 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23181 LD="$(LD_FOR_TARGET)"; export LD; \
23182 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23183 NM="$(NM_FOR_TARGET)"; export NM; \
23184 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23185 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23186 echo Configuring in $(TARGET_SUBDIR)/zlib; \
23187 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
23188 case $(srcdir) in \
23189 /* | [A-Za-z]:[\\/]*) \
23190 topdir=$(srcdir) ;; \
23191 *) \
23192 case "$(TARGET_SUBDIR)" in \
23193 .) topdir="../$(srcdir)" ;; \
23194 *) topdir="../../$(srcdir)" ;; \
23195 esac ;; \
23196 esac; \
23197 if [ "$(srcdir)" = "." ] ; then \
23198 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
23199 if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \
23200 if [ -f Makefile ]; then \
23201 if $(MAKE) distclean; then \
23202 true; \
23203 else \
23204 exit 1; \
23205 fi; \
23206 else \
23207 true; \
23208 fi; \
23209 else \
23210 exit 1; \
23211 fi; \
23212 else \
23213 true; \
23214 fi; \
23215 srcdiroption="--srcdir=."; \
23216 libsrcdir="."; \
23217 else \
23218 srcdiroption="--srcdir=$${topdir}/zlib"; \
23219 libsrcdir="$$s/zlib"; \
23220 fi; \
23221 rm -f no-such-file || : ; \
23222 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23223 $(TARGET_CONFIGARGS) $${srcdiroption} \
23224 --with-target-subdir="$(TARGET_SUBDIR)" \
23225 || exit 1
23227 .PHONY: all-target-zlib maybe-all-target-zlib
23228 maybe-all-target-zlib:
23229 all-target-zlib: configure-target-zlib
23230 @r=`${PWD_COMMAND}`; export r; \
23231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23232 $(SET_LIB_PATH) \
23233 (cd $(TARGET_SUBDIR)/zlib && \
23234 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23236 .PHONY: check-target-zlib maybe-check-target-zlib
23237 maybe-check-target-zlib:
23239 check-target-zlib:
23240 @r=`${PWD_COMMAND}`; export r; \
23241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23242 $(SET_LIB_PATH) \
23243 (cd $(TARGET_SUBDIR)/zlib && \
23244 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23247 .PHONY: install-target-zlib maybe-install-target-zlib
23248 maybe-install-target-zlib:
23250 install-target-zlib: installdirs
23251 @r=`${PWD_COMMAND}`; export r; \
23252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23253 $(SET_LIB_PATH) \
23254 (cd $(TARGET_SUBDIR)/zlib && \
23255 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23258 # Other targets (info, dvi, etc.)
23260 .PHONY: maybe-info-target-zlib info-target-zlib
23261 maybe-info-target-zlib:
23263 info-target-zlib: \
23264 configure-target-zlib
23265 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23266 r=`${PWD_COMMAND}`; export r; \
23267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23268 $(SET_LIB_PATH) \
23269 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
23270 for flag in $(EXTRA_TARGET_FLAGS); do \
23271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23272 done; \
23273 (cd $(TARGET_SUBDIR)/zlib && \
23274 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23275 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23276 "RANLIB=$${RANLIB}" \
23277 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23278 info) \
23279 || exit 1
23282 .PHONY: maybe-dvi-target-zlib dvi-target-zlib
23283 maybe-dvi-target-zlib:
23285 dvi-target-zlib: \
23286 configure-target-zlib
23287 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23288 r=`${PWD_COMMAND}`; export r; \
23289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23290 $(SET_LIB_PATH) \
23291 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
23292 for flag in $(EXTRA_TARGET_FLAGS); do \
23293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23294 done; \
23295 (cd $(TARGET_SUBDIR)/zlib && \
23296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23298 "RANLIB=$${RANLIB}" \
23299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23300 dvi) \
23301 || exit 1
23304 .PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
23305 maybe-TAGS-target-zlib:
23307 TAGS-target-zlib: \
23308 configure-target-zlib
23309 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23310 r=`${PWD_COMMAND}`; export r; \
23311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23312 $(SET_LIB_PATH) \
23313 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
23314 for flag in $(EXTRA_TARGET_FLAGS); do \
23315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23316 done; \
23317 (cd $(TARGET_SUBDIR)/zlib && \
23318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23320 "RANLIB=$${RANLIB}" \
23321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23322 TAGS) \
23323 || exit 1
23326 .PHONY: maybe-install-info-target-zlib install-info-target-zlib
23327 maybe-install-info-target-zlib:
23329 install-info-target-zlib: \
23330 configure-target-zlib \
23331 info-target-zlib
23332 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23333 r=`${PWD_COMMAND}`; export r; \
23334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23335 $(SET_LIB_PATH) \
23336 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
23337 for flag in $(EXTRA_TARGET_FLAGS); do \
23338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23339 done; \
23340 (cd $(TARGET_SUBDIR)/zlib && \
23341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23343 "RANLIB=$${RANLIB}" \
23344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23345 install-info) \
23346 || exit 1
23349 .PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
23350 maybe-installcheck-target-zlib:
23352 installcheck-target-zlib: \
23353 configure-target-zlib
23354 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23355 r=`${PWD_COMMAND}`; export r; \
23356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23357 $(SET_LIB_PATH) \
23358 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
23359 for flag in $(EXTRA_TARGET_FLAGS); do \
23360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23361 done; \
23362 (cd $(TARGET_SUBDIR)/zlib && \
23363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23365 "RANLIB=$${RANLIB}" \
23366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23367 installcheck) \
23368 || exit 1
23371 .PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
23372 maybe-mostlyclean-target-zlib:
23374 mostlyclean-target-zlib:
23375 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23376 r=`${PWD_COMMAND}`; export r; \
23377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23378 $(SET_LIB_PATH) \
23379 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
23380 for flag in $(EXTRA_TARGET_FLAGS); do \
23381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23382 done; \
23383 (cd $(TARGET_SUBDIR)/zlib && \
23384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23386 "RANLIB=$${RANLIB}" \
23387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23388 mostlyclean) \
23389 || exit 1
23392 .PHONY: maybe-clean-target-zlib clean-target-zlib
23393 maybe-clean-target-zlib:
23395 clean-target-zlib:
23396 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23397 r=`${PWD_COMMAND}`; export r; \
23398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23399 $(SET_LIB_PATH) \
23400 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
23401 for flag in $(EXTRA_TARGET_FLAGS); do \
23402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23403 done; \
23404 (cd $(TARGET_SUBDIR)/zlib && \
23405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23407 "RANLIB=$${RANLIB}" \
23408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23409 clean) \
23410 || exit 1
23413 .PHONY: maybe-distclean-target-zlib distclean-target-zlib
23414 maybe-distclean-target-zlib:
23416 distclean-target-zlib:
23417 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23418 r=`${PWD_COMMAND}`; export r; \
23419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23420 $(SET_LIB_PATH) \
23421 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
23422 for flag in $(EXTRA_TARGET_FLAGS); do \
23423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23424 done; \
23425 (cd $(TARGET_SUBDIR)/zlib && \
23426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23428 "RANLIB=$${RANLIB}" \
23429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23430 distclean) \
23431 || exit 1
23434 .PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
23435 maybe-maintainer-clean-target-zlib:
23437 maintainer-clean-target-zlib:
23438 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
23439 r=`${PWD_COMMAND}`; export r; \
23440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23441 $(SET_LIB_PATH) \
23442 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
23443 for flag in $(EXTRA_TARGET_FLAGS); do \
23444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23445 done; \
23446 (cd $(TARGET_SUBDIR)/zlib && \
23447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23449 "RANLIB=$${RANLIB}" \
23450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23451 maintainer-clean) \
23452 || exit 1
23456 .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
23457 maybe-configure-target-boehm-gc:
23459 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23460 $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out
23461 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
23462 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \
23463 cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out
23465 configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out
23466 @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
23467 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
23468 r=`${PWD_COMMAND}`; export r; \
23469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23470 $(SET_LIB_PATH) \
23471 AR="$(AR_FOR_TARGET)"; export AR; \
23472 AS="$(AS_FOR_TARGET)"; export AS; \
23473 CC="$(CC_FOR_TARGET)"; export CC; \
23474 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23475 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23476 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23477 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23478 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23479 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23480 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
23481 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23482 LD="$(LD_FOR_TARGET)"; export LD; \
23483 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23484 NM="$(NM_FOR_TARGET)"; export NM; \
23485 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23486 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23487 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
23488 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
23489 case $(srcdir) in \
23490 /* | [A-Za-z]:[\\/]*) \
23491 topdir=$(srcdir) ;; \
23492 *) \
23493 case "$(TARGET_SUBDIR)" in \
23494 .) topdir="../$(srcdir)" ;; \
23495 *) topdir="../../$(srcdir)" ;; \
23496 esac ;; \
23497 esac; \
23498 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
23499 libsrcdir="$$s/boehm-gc"; \
23500 rm -f no-such-file || : ; \
23501 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23502 $(TARGET_CONFIGARGS) $${srcdiroption} \
23503 --with-target-subdir="$(TARGET_SUBDIR)" \
23504 || exit 1
23506 .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
23507 maybe-all-target-boehm-gc:
23508 all-target-boehm-gc: configure-target-boehm-gc
23509 @r=`${PWD_COMMAND}`; export r; \
23510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23511 $(SET_LIB_PATH) \
23512 (cd $(TARGET_SUBDIR)/boehm-gc && \
23513 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23515 .PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
23516 maybe-check-target-boehm-gc:
23518 check-target-boehm-gc:
23519 @r=`${PWD_COMMAND}`; export r; \
23520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23521 $(SET_LIB_PATH) \
23522 (cd $(TARGET_SUBDIR)/boehm-gc && \
23523 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23526 .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
23527 maybe-install-target-boehm-gc:
23529 install-target-boehm-gc: installdirs
23530 @r=`${PWD_COMMAND}`; export r; \
23531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23532 $(SET_LIB_PATH) \
23533 (cd $(TARGET_SUBDIR)/boehm-gc && \
23534 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23537 # Other targets (info, dvi, etc.)
23539 .PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
23540 maybe-info-target-boehm-gc:
23542 info-target-boehm-gc: \
23543 configure-target-boehm-gc
23544 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23545 r=`${PWD_COMMAND}`; export r; \
23546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23547 $(SET_LIB_PATH) \
23548 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
23549 for flag in $(EXTRA_TARGET_FLAGS); do \
23550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23551 done; \
23552 (cd $(TARGET_SUBDIR)/boehm-gc && \
23553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23555 "RANLIB=$${RANLIB}" \
23556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23557 info) \
23558 || exit 1
23561 .PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
23562 maybe-dvi-target-boehm-gc:
23564 dvi-target-boehm-gc: \
23565 configure-target-boehm-gc
23566 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23567 r=`${PWD_COMMAND}`; export r; \
23568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23569 $(SET_LIB_PATH) \
23570 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
23571 for flag in $(EXTRA_TARGET_FLAGS); do \
23572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23573 done; \
23574 (cd $(TARGET_SUBDIR)/boehm-gc && \
23575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23577 "RANLIB=$${RANLIB}" \
23578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23579 dvi) \
23580 || exit 1
23583 .PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
23584 maybe-TAGS-target-boehm-gc:
23586 TAGS-target-boehm-gc: \
23587 configure-target-boehm-gc
23588 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23589 r=`${PWD_COMMAND}`; export r; \
23590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23591 $(SET_LIB_PATH) \
23592 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
23593 for flag in $(EXTRA_TARGET_FLAGS); do \
23594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23595 done; \
23596 (cd $(TARGET_SUBDIR)/boehm-gc && \
23597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23599 "RANLIB=$${RANLIB}" \
23600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23601 TAGS) \
23602 || exit 1
23605 .PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
23606 maybe-install-info-target-boehm-gc:
23608 install-info-target-boehm-gc: \
23609 configure-target-boehm-gc \
23610 info-target-boehm-gc
23611 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23612 r=`${PWD_COMMAND}`; export r; \
23613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23614 $(SET_LIB_PATH) \
23615 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
23616 for flag in $(EXTRA_TARGET_FLAGS); do \
23617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23618 done; \
23619 (cd $(TARGET_SUBDIR)/boehm-gc && \
23620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23622 "RANLIB=$${RANLIB}" \
23623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23624 install-info) \
23625 || exit 1
23628 .PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
23629 maybe-installcheck-target-boehm-gc:
23631 installcheck-target-boehm-gc: \
23632 configure-target-boehm-gc
23633 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23634 r=`${PWD_COMMAND}`; export r; \
23635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23636 $(SET_LIB_PATH) \
23637 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
23638 for flag in $(EXTRA_TARGET_FLAGS); do \
23639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23640 done; \
23641 (cd $(TARGET_SUBDIR)/boehm-gc && \
23642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23644 "RANLIB=$${RANLIB}" \
23645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23646 installcheck) \
23647 || exit 1
23650 .PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
23651 maybe-mostlyclean-target-boehm-gc:
23653 mostlyclean-target-boehm-gc:
23654 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23655 r=`${PWD_COMMAND}`; export r; \
23656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23657 $(SET_LIB_PATH) \
23658 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
23659 for flag in $(EXTRA_TARGET_FLAGS); do \
23660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23661 done; \
23662 (cd $(TARGET_SUBDIR)/boehm-gc && \
23663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23665 "RANLIB=$${RANLIB}" \
23666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23667 mostlyclean) \
23668 || exit 1
23671 .PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
23672 maybe-clean-target-boehm-gc:
23674 clean-target-boehm-gc:
23675 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23676 r=`${PWD_COMMAND}`; export r; \
23677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23678 $(SET_LIB_PATH) \
23679 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
23680 for flag in $(EXTRA_TARGET_FLAGS); do \
23681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23682 done; \
23683 (cd $(TARGET_SUBDIR)/boehm-gc && \
23684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23686 "RANLIB=$${RANLIB}" \
23687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23688 clean) \
23689 || exit 1
23692 .PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
23693 maybe-distclean-target-boehm-gc:
23695 distclean-target-boehm-gc:
23696 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23697 r=`${PWD_COMMAND}`; export r; \
23698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23699 $(SET_LIB_PATH) \
23700 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
23701 for flag in $(EXTRA_TARGET_FLAGS); do \
23702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23703 done; \
23704 (cd $(TARGET_SUBDIR)/boehm-gc && \
23705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23707 "RANLIB=$${RANLIB}" \
23708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23709 distclean) \
23710 || exit 1
23713 .PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
23714 maybe-maintainer-clean-target-boehm-gc:
23716 maintainer-clean-target-boehm-gc:
23717 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
23718 r=`${PWD_COMMAND}`; export r; \
23719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23720 $(SET_LIB_PATH) \
23721 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
23722 for flag in $(EXTRA_TARGET_FLAGS); do \
23723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23724 done; \
23725 (cd $(TARGET_SUBDIR)/boehm-gc && \
23726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23728 "RANLIB=$${RANLIB}" \
23729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23730 maintainer-clean) \
23731 || exit 1
23735 .PHONY: configure-target-qthreads maybe-configure-target-qthreads
23736 maybe-configure-target-qthreads:
23738 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
23739 $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out
23740 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
23741 rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \
23742 cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out
23744 configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out
23745 @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
23746 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
23747 r=`${PWD_COMMAND}`; export r; \
23748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23749 $(SET_LIB_PATH) \
23750 AR="$(AR_FOR_TARGET)"; export AR; \
23751 AS="$(AS_FOR_TARGET)"; export AS; \
23752 CC="$(CC_FOR_TARGET)"; export CC; \
23753 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
23754 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
23755 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
23756 CXX="$(CXX_FOR_TARGET)"; export CXX; \
23757 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
23758 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
23759 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
23760 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
23761 LD="$(LD_FOR_TARGET)"; export LD; \
23762 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
23763 NM="$(NM_FOR_TARGET)"; export NM; \
23764 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
23765 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
23766 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
23767 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
23768 case $(srcdir) in \
23769 /* | [A-Za-z]:[\\/]*) \
23770 topdir=$(srcdir) ;; \
23771 *) \
23772 case "$(TARGET_SUBDIR)" in \
23773 .) topdir="../$(srcdir)" ;; \
23774 *) topdir="../../$(srcdir)" ;; \
23775 esac ;; \
23776 esac; \
23777 srcdiroption="--srcdir=$${topdir}/qthreads"; \
23778 libsrcdir="$$s/qthreads"; \
23779 rm -f no-such-file || : ; \
23780 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
23781 $(TARGET_CONFIGARGS) $${srcdiroption} \
23782 --with-target-subdir="$(TARGET_SUBDIR)" \
23783 || exit 1
23785 .PHONY: all-target-qthreads maybe-all-target-qthreads
23786 maybe-all-target-qthreads:
23787 all-target-qthreads: configure-target-qthreads
23788 @r=`${PWD_COMMAND}`; export r; \
23789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23790 $(SET_LIB_PATH) \
23791 (cd $(TARGET_SUBDIR)/qthreads && \
23792 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
23794 .PHONY: check-target-qthreads maybe-check-target-qthreads
23795 maybe-check-target-qthreads:
23797 check-target-qthreads:
23798 @r=`${PWD_COMMAND}`; export r; \
23799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23800 $(SET_LIB_PATH) \
23801 (cd $(TARGET_SUBDIR)/qthreads && \
23802 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
23805 .PHONY: install-target-qthreads maybe-install-target-qthreads
23806 maybe-install-target-qthreads:
23808 install-target-qthreads: installdirs
23809 @r=`${PWD_COMMAND}`; export r; \
23810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23811 $(SET_LIB_PATH) \
23812 (cd $(TARGET_SUBDIR)/qthreads && \
23813 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
23816 # Other targets (info, dvi, etc.)
23818 .PHONY: maybe-info-target-qthreads info-target-qthreads
23819 maybe-info-target-qthreads:
23821 info-target-qthreads: \
23822 configure-target-qthreads
23823 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23824 r=`${PWD_COMMAND}`; export r; \
23825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23826 $(SET_LIB_PATH) \
23827 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
23828 for flag in $(EXTRA_TARGET_FLAGS); do \
23829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23830 done; \
23831 (cd $(TARGET_SUBDIR)/qthreads && \
23832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23834 "RANLIB=$${RANLIB}" \
23835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23836 info) \
23837 || exit 1
23840 .PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
23841 maybe-dvi-target-qthreads:
23843 dvi-target-qthreads: \
23844 configure-target-qthreads
23845 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23846 r=`${PWD_COMMAND}`; export r; \
23847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23848 $(SET_LIB_PATH) \
23849 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
23850 for flag in $(EXTRA_TARGET_FLAGS); do \
23851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23852 done; \
23853 (cd $(TARGET_SUBDIR)/qthreads && \
23854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23856 "RANLIB=$${RANLIB}" \
23857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23858 dvi) \
23859 || exit 1
23862 .PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
23863 maybe-TAGS-target-qthreads:
23865 TAGS-target-qthreads: \
23866 configure-target-qthreads
23867 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23868 r=`${PWD_COMMAND}`; export r; \
23869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23870 $(SET_LIB_PATH) \
23871 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
23872 for flag in $(EXTRA_TARGET_FLAGS); do \
23873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23874 done; \
23875 (cd $(TARGET_SUBDIR)/qthreads && \
23876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23878 "RANLIB=$${RANLIB}" \
23879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23880 TAGS) \
23881 || exit 1
23884 .PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
23885 maybe-install-info-target-qthreads:
23887 install-info-target-qthreads: \
23888 configure-target-qthreads \
23889 info-target-qthreads
23890 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23891 r=`${PWD_COMMAND}`; export r; \
23892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23893 $(SET_LIB_PATH) \
23894 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
23895 for flag in $(EXTRA_TARGET_FLAGS); do \
23896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23897 done; \
23898 (cd $(TARGET_SUBDIR)/qthreads && \
23899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23901 "RANLIB=$${RANLIB}" \
23902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23903 install-info) \
23904 || exit 1
23907 .PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
23908 maybe-installcheck-target-qthreads:
23910 installcheck-target-qthreads: \
23911 configure-target-qthreads
23912 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23913 r=`${PWD_COMMAND}`; export r; \
23914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23915 $(SET_LIB_PATH) \
23916 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
23917 for flag in $(EXTRA_TARGET_FLAGS); do \
23918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23919 done; \
23920 (cd $(TARGET_SUBDIR)/qthreads && \
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 installcheck) \
23926 || exit 1
23929 .PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
23930 maybe-mostlyclean-target-qthreads:
23932 mostlyclean-target-qthreads:
23933 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23934 r=`${PWD_COMMAND}`; export r; \
23935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23936 $(SET_LIB_PATH) \
23937 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
23938 for flag in $(EXTRA_TARGET_FLAGS); do \
23939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23940 done; \
23941 (cd $(TARGET_SUBDIR)/qthreads && \
23942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23944 "RANLIB=$${RANLIB}" \
23945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23946 mostlyclean) \
23947 || exit 1
23950 .PHONY: maybe-clean-target-qthreads clean-target-qthreads
23951 maybe-clean-target-qthreads:
23953 clean-target-qthreads:
23954 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23955 r=`${PWD_COMMAND}`; export r; \
23956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23957 $(SET_LIB_PATH) \
23958 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
23959 for flag in $(EXTRA_TARGET_FLAGS); do \
23960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23961 done; \
23962 (cd $(TARGET_SUBDIR)/qthreads && \
23963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23965 "RANLIB=$${RANLIB}" \
23966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23967 clean) \
23968 || exit 1
23971 .PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
23972 maybe-distclean-target-qthreads:
23974 distclean-target-qthreads:
23975 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23976 r=`${PWD_COMMAND}`; export r; \
23977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23978 $(SET_LIB_PATH) \
23979 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
23980 for flag in $(EXTRA_TARGET_FLAGS); do \
23981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23982 done; \
23983 (cd $(TARGET_SUBDIR)/qthreads && \
23984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23986 "RANLIB=$${RANLIB}" \
23987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23988 distclean) \
23989 || exit 1
23992 .PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
23993 maybe-maintainer-clean-target-qthreads:
23995 maintainer-clean-target-qthreads:
23996 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
23997 r=`${PWD_COMMAND}`; export r; \
23998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23999 $(SET_LIB_PATH) \
24000 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
24001 for flag in $(EXTRA_TARGET_FLAGS); do \
24002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24003 done; \
24004 (cd $(TARGET_SUBDIR)/qthreads && \
24005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24007 "RANLIB=$${RANLIB}" \
24008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24009 maintainer-clean) \
24010 || exit 1
24014 .PHONY: configure-target-rda maybe-configure-target-rda
24015 maybe-configure-target-rda:
24017 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24018 $(TARGET_SUBDIR)/rda/multilib.out: multilib.out
24019 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
24020 rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \
24021 cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out
24023 configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out
24024 @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
24025 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
24026 r=`${PWD_COMMAND}`; export r; \
24027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24028 $(SET_LIB_PATH) \
24029 AR="$(AR_FOR_TARGET)"; export AR; \
24030 AS="$(AS_FOR_TARGET)"; export AS; \
24031 CC="$(CC_FOR_TARGET)"; export CC; \
24032 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
24033 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24034 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
24035 CXX="$(CXX_FOR_TARGET)"; export CXX; \
24036 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
24037 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
24038 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
24039 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
24040 LD="$(LD_FOR_TARGET)"; export LD; \
24041 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
24042 NM="$(NM_FOR_TARGET)"; export NM; \
24043 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
24044 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
24045 echo Configuring in $(TARGET_SUBDIR)/rda; \
24046 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
24047 case $(srcdir) in \
24048 /* | [A-Za-z]:[\\/]*) \
24049 topdir=$(srcdir) ;; \
24050 *) \
24051 case "$(TARGET_SUBDIR)" in \
24052 .) topdir="../$(srcdir)" ;; \
24053 *) topdir="../../$(srcdir)" ;; \
24054 esac ;; \
24055 esac; \
24056 srcdiroption="--srcdir=$${topdir}/rda"; \
24057 libsrcdir="$$s/rda"; \
24058 rm -f no-such-file || : ; \
24059 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24060 $(TARGET_CONFIGARGS) $${srcdiroption} \
24061 --with-target-subdir="$(TARGET_SUBDIR)" \
24062 || exit 1
24064 .PHONY: all-target-rda maybe-all-target-rda
24065 maybe-all-target-rda:
24066 all-target-rda: configure-target-rda
24067 @r=`${PWD_COMMAND}`; export r; \
24068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24069 $(SET_LIB_PATH) \
24070 (cd $(TARGET_SUBDIR)/rda && \
24071 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
24073 .PHONY: check-target-rda maybe-check-target-rda
24074 maybe-check-target-rda:
24076 check-target-rda:
24077 @r=`${PWD_COMMAND}`; export r; \
24078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24079 $(SET_LIB_PATH) \
24080 (cd $(TARGET_SUBDIR)/rda && \
24081 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
24084 .PHONY: install-target-rda maybe-install-target-rda
24085 maybe-install-target-rda:
24087 install-target-rda: installdirs
24088 @r=`${PWD_COMMAND}`; export r; \
24089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24090 $(SET_LIB_PATH) \
24091 (cd $(TARGET_SUBDIR)/rda && \
24092 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
24095 # Other targets (info, dvi, etc.)
24097 .PHONY: maybe-info-target-rda info-target-rda
24098 maybe-info-target-rda:
24100 info-target-rda: \
24101 configure-target-rda
24102 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24103 r=`${PWD_COMMAND}`; export r; \
24104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24105 $(SET_LIB_PATH) \
24106 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
24107 for flag in $(EXTRA_TARGET_FLAGS); do \
24108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24109 done; \
24110 (cd $(TARGET_SUBDIR)/rda && \
24111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24113 "RANLIB=$${RANLIB}" \
24114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24115 info) \
24116 || exit 1
24119 .PHONY: maybe-dvi-target-rda dvi-target-rda
24120 maybe-dvi-target-rda:
24122 dvi-target-rda: \
24123 configure-target-rda
24124 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24125 r=`${PWD_COMMAND}`; export r; \
24126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24127 $(SET_LIB_PATH) \
24128 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
24129 for flag in $(EXTRA_TARGET_FLAGS); do \
24130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24131 done; \
24132 (cd $(TARGET_SUBDIR)/rda && \
24133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24135 "RANLIB=$${RANLIB}" \
24136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24137 dvi) \
24138 || exit 1
24141 .PHONY: maybe-TAGS-target-rda TAGS-target-rda
24142 maybe-TAGS-target-rda:
24144 TAGS-target-rda: \
24145 configure-target-rda
24146 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24147 r=`${PWD_COMMAND}`; export r; \
24148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24149 $(SET_LIB_PATH) \
24150 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
24151 for flag in $(EXTRA_TARGET_FLAGS); do \
24152 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24153 done; \
24154 (cd $(TARGET_SUBDIR)/rda && \
24155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24157 "RANLIB=$${RANLIB}" \
24158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24159 TAGS) \
24160 || exit 1
24163 .PHONY: maybe-install-info-target-rda install-info-target-rda
24164 maybe-install-info-target-rda:
24166 install-info-target-rda: \
24167 configure-target-rda \
24168 info-target-rda
24169 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24170 r=`${PWD_COMMAND}`; export r; \
24171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24172 $(SET_LIB_PATH) \
24173 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
24174 for flag in $(EXTRA_TARGET_FLAGS); do \
24175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24176 done; \
24177 (cd $(TARGET_SUBDIR)/rda && \
24178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24180 "RANLIB=$${RANLIB}" \
24181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24182 install-info) \
24183 || exit 1
24186 .PHONY: maybe-installcheck-target-rda installcheck-target-rda
24187 maybe-installcheck-target-rda:
24189 installcheck-target-rda: \
24190 configure-target-rda
24191 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24192 r=`${PWD_COMMAND}`; export r; \
24193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24194 $(SET_LIB_PATH) \
24195 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
24196 for flag in $(EXTRA_TARGET_FLAGS); do \
24197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24198 done; \
24199 (cd $(TARGET_SUBDIR)/rda && \
24200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24202 "RANLIB=$${RANLIB}" \
24203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24204 installcheck) \
24205 || exit 1
24208 .PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
24209 maybe-mostlyclean-target-rda:
24211 mostlyclean-target-rda:
24212 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24213 r=`${PWD_COMMAND}`; export r; \
24214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24215 $(SET_LIB_PATH) \
24216 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
24217 for flag in $(EXTRA_TARGET_FLAGS); do \
24218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24219 done; \
24220 (cd $(TARGET_SUBDIR)/rda && \
24221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24223 "RANLIB=$${RANLIB}" \
24224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24225 mostlyclean) \
24226 || exit 1
24229 .PHONY: maybe-clean-target-rda clean-target-rda
24230 maybe-clean-target-rda:
24232 clean-target-rda:
24233 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24234 r=`${PWD_COMMAND}`; export r; \
24235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24236 $(SET_LIB_PATH) \
24237 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
24238 for flag in $(EXTRA_TARGET_FLAGS); do \
24239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24240 done; \
24241 (cd $(TARGET_SUBDIR)/rda && \
24242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24244 "RANLIB=$${RANLIB}" \
24245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24246 clean) \
24247 || exit 1
24250 .PHONY: maybe-distclean-target-rda distclean-target-rda
24251 maybe-distclean-target-rda:
24253 distclean-target-rda:
24254 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24255 r=`${PWD_COMMAND}`; export r; \
24256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24257 $(SET_LIB_PATH) \
24258 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
24259 for flag in $(EXTRA_TARGET_FLAGS); do \
24260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24261 done; \
24262 (cd $(TARGET_SUBDIR)/rda && \
24263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24265 "RANLIB=$${RANLIB}" \
24266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24267 distclean) \
24268 || exit 1
24271 .PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
24272 maybe-maintainer-clean-target-rda:
24274 maintainer-clean-target-rda:
24275 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
24276 r=`${PWD_COMMAND}`; export r; \
24277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24278 $(SET_LIB_PATH) \
24279 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
24280 for flag in $(EXTRA_TARGET_FLAGS); do \
24281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24282 done; \
24283 (cd $(TARGET_SUBDIR)/rda && \
24284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24286 "RANLIB=$${RANLIB}" \
24287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24288 maintainer-clean) \
24289 || exit 1
24293 .PHONY: configure-target-libada maybe-configure-target-libada
24294 maybe-configure-target-libada:
24296 # There's only one multilib.out. Cleverer subdirs shouldn't need it copied.
24297 $(TARGET_SUBDIR)/libada/multilib.out: multilib.out
24298 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
24299 rm -f $(TARGET_SUBDIR)/libada/Makefile || : ; \
24300 cp multilib.out $(TARGET_SUBDIR)/libada/multilib.out
24302 configure-target-libada: $(TARGET_SUBDIR)/libada/multilib.out
24303 @test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
24304 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
24305 r=`${PWD_COMMAND}`; export r; \
24306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24307 $(SET_LIB_PATH) \
24308 AR="$(AR_FOR_TARGET)"; export AR; \
24309 AS="$(AS_FOR_TARGET)"; export AS; \
24310 CC="$(CC_FOR_TARGET)"; export CC; \
24311 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
24312 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24313 CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
24314 CXX="$(CXX_FOR_TARGET)"; export CXX; \
24315 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
24316 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
24317 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
24318 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
24319 LD="$(LD_FOR_TARGET)"; export LD; \
24320 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
24321 NM="$(NM_FOR_TARGET)"; export NM; \
24322 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
24323 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
24324 echo Configuring in $(TARGET_SUBDIR)/libada; \
24325 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
24326 case $(srcdir) in \
24327 /* | [A-Za-z]:[\\/]*) \
24328 topdir=$(srcdir) ;; \
24329 *) \
24330 case "$(TARGET_SUBDIR)" in \
24331 .) topdir="../$(srcdir)" ;; \
24332 *) topdir="../../$(srcdir)" ;; \
24333 esac ;; \
24334 esac; \
24335 srcdiroption="--srcdir=$${topdir}/libada"; \
24336 libsrcdir="$$s/libada"; \
24337 rm -f no-such-file || : ; \
24338 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
24339 $(TARGET_CONFIGARGS) $${srcdiroption} \
24340 --with-target-subdir="$(TARGET_SUBDIR)" \
24341 || exit 1
24343 .PHONY: all-target-libada maybe-all-target-libada
24344 maybe-all-target-libada:
24345 all-target-libada: configure-target-libada
24346 @r=`${PWD_COMMAND}`; export r; \
24347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24348 $(SET_LIB_PATH) \
24349 (cd $(TARGET_SUBDIR)/libada && \
24350 $(MAKE) $(TARGET_FLAGS_TO_PASS) all)
24352 .PHONY: check-target-libada maybe-check-target-libada
24353 maybe-check-target-libada:
24355 check-target-libada:
24356 @r=`${PWD_COMMAND}`; export r; \
24357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24358 $(SET_LIB_PATH) \
24359 (cd $(TARGET_SUBDIR)/libada && \
24360 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
24363 .PHONY: install-target-libada maybe-install-target-libada
24364 maybe-install-target-libada:
24366 install-target-libada: installdirs
24367 @r=`${PWD_COMMAND}`; export r; \
24368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24369 $(SET_LIB_PATH) \
24370 (cd $(TARGET_SUBDIR)/libada && \
24371 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
24374 # Other targets (info, dvi, etc.)
24376 .PHONY: maybe-info-target-libada info-target-libada
24377 maybe-info-target-libada:
24379 info-target-libada: \
24380 configure-target-libada
24381 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24382 r=`${PWD_COMMAND}`; export r; \
24383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24384 $(SET_LIB_PATH) \
24385 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
24386 for flag in $(EXTRA_TARGET_FLAGS); do \
24387 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24388 done; \
24389 (cd $(TARGET_SUBDIR)/libada && \
24390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24392 "RANLIB=$${RANLIB}" \
24393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24394 info) \
24395 || exit 1
24398 .PHONY: maybe-dvi-target-libada dvi-target-libada
24399 maybe-dvi-target-libada:
24401 dvi-target-libada: \
24402 configure-target-libada
24403 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24404 r=`${PWD_COMMAND}`; export r; \
24405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24406 $(SET_LIB_PATH) \
24407 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
24408 for flag in $(EXTRA_TARGET_FLAGS); do \
24409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24410 done; \
24411 (cd $(TARGET_SUBDIR)/libada && \
24412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24414 "RANLIB=$${RANLIB}" \
24415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24416 dvi) \
24417 || exit 1
24420 .PHONY: maybe-TAGS-target-libada TAGS-target-libada
24421 maybe-TAGS-target-libada:
24423 TAGS-target-libada: \
24424 configure-target-libada
24425 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24426 r=`${PWD_COMMAND}`; export r; \
24427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24428 $(SET_LIB_PATH) \
24429 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
24430 for flag in $(EXTRA_TARGET_FLAGS); do \
24431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24432 done; \
24433 (cd $(TARGET_SUBDIR)/libada && \
24434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24436 "RANLIB=$${RANLIB}" \
24437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24438 TAGS) \
24439 || exit 1
24442 .PHONY: maybe-install-info-target-libada install-info-target-libada
24443 maybe-install-info-target-libada:
24445 install-info-target-libada: \
24446 configure-target-libada \
24447 info-target-libada
24448 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24449 r=`${PWD_COMMAND}`; export r; \
24450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24451 $(SET_LIB_PATH) \
24452 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
24453 for flag in $(EXTRA_TARGET_FLAGS); do \
24454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24455 done; \
24456 (cd $(TARGET_SUBDIR)/libada && \
24457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24459 "RANLIB=$${RANLIB}" \
24460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24461 install-info) \
24462 || exit 1
24465 .PHONY: maybe-installcheck-target-libada installcheck-target-libada
24466 maybe-installcheck-target-libada:
24468 installcheck-target-libada: \
24469 configure-target-libada
24470 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24471 r=`${PWD_COMMAND}`; export r; \
24472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24473 $(SET_LIB_PATH) \
24474 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
24475 for flag in $(EXTRA_TARGET_FLAGS); do \
24476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24477 done; \
24478 (cd $(TARGET_SUBDIR)/libada && \
24479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24481 "RANLIB=$${RANLIB}" \
24482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24483 installcheck) \
24484 || exit 1
24487 .PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
24488 maybe-mostlyclean-target-libada:
24490 mostlyclean-target-libada:
24491 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24492 r=`${PWD_COMMAND}`; export r; \
24493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24494 $(SET_LIB_PATH) \
24495 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
24496 for flag in $(EXTRA_TARGET_FLAGS); do \
24497 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24498 done; \
24499 (cd $(TARGET_SUBDIR)/libada && \
24500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24502 "RANLIB=$${RANLIB}" \
24503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24504 mostlyclean) \
24505 || exit 1
24508 .PHONY: maybe-clean-target-libada clean-target-libada
24509 maybe-clean-target-libada:
24511 clean-target-libada:
24512 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24513 r=`${PWD_COMMAND}`; export r; \
24514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24515 $(SET_LIB_PATH) \
24516 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
24517 for flag in $(EXTRA_TARGET_FLAGS); do \
24518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24519 done; \
24520 (cd $(TARGET_SUBDIR)/libada && \
24521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24523 "RANLIB=$${RANLIB}" \
24524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24525 clean) \
24526 || exit 1
24529 .PHONY: maybe-distclean-target-libada distclean-target-libada
24530 maybe-distclean-target-libada:
24532 distclean-target-libada:
24533 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24534 r=`${PWD_COMMAND}`; export r; \
24535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24536 $(SET_LIB_PATH) \
24537 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
24538 for flag in $(EXTRA_TARGET_FLAGS); do \
24539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24540 done; \
24541 (cd $(TARGET_SUBDIR)/libada && \
24542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24544 "RANLIB=$${RANLIB}" \
24545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24546 distclean) \
24547 || exit 1
24550 .PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
24551 maybe-maintainer-clean-target-libada:
24553 maintainer-clean-target-libada:
24554 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
24555 r=`${PWD_COMMAND}`; export r; \
24556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24557 $(SET_LIB_PATH) \
24558 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
24559 for flag in $(EXTRA_TARGET_FLAGS); do \
24560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24561 done; \
24562 (cd $(TARGET_SUBDIR)/libada && \
24563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24565 "RANLIB=$${RANLIB}" \
24566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24567 maintainer-clean) \
24568 || exit 1
24573 # ----------
24574 # GCC module
24575 # ----------
24577 # Unfortunately, while gcc _should_ be a host module,
24578 # libgcc is a target module, and gen* programs are
24579 # build modules. So GCC is a sort of hybrid.
24581 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
24582 # Don't use shared host config.cache, as it will confuse later
24583 # directories; GCC wants slightly different values for some
24584 # precious variables. *sigh*
24586 # We must skip configuring if toplevel bootstrap is going.
24587 .PHONY: configure-gcc maybe-configure-gcc
24588 maybe-configure-gcc:
24589 configure-gcc:
24590 @test ! -f gcc/Makefile || exit 0; \
24591 [ -f stage_last ] && exit 0; \
24592 [ -d gcc ] || mkdir gcc; \
24593 r=`${PWD_COMMAND}`; export r; \
24594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24595 CC="$(CC)"; export CC; \
24596 CFLAGS="$(CFLAGS)"; export CFLAGS; \
24597 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
24598 CXX="$(CXX)"; export CXX; \
24599 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
24600 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
24601 AR="$(AR)"; export AR; \
24602 AS="$(AS)"; export AS; \
24603 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
24604 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
24605 LD="$(LD)"; export LD; \
24606 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
24607 NM="$(NM)"; export NM; \
24608 RANLIB="$(RANLIB)"; export RANLIB; \
24609 WINDRES="$(WINDRES)"; export WINDRES; \
24610 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
24611 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
24612 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
24613 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
24614 echo Configuring in gcc; \
24615 cd gcc || exit 1; \
24616 case $(srcdir) in \
24617 \.) \
24618 srcdiroption="--srcdir=."; \
24619 libsrcdir=".";; \
24620 /* | [A-Za-z]:[\\/]*) \
24621 srcdiroption="--srcdir=$(srcdir)/gcc"; \
24622 libsrcdir="$$s/gcc";; \
24623 *) \
24624 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
24625 libsrcdir="$$s/gcc";; \
24626 esac; \
24627 $(SHELL) $${libsrcdir}/configure \
24628 $(HOST_CONFIGARGS) $${srcdiroption} \
24629 || exit 1
24631 # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that
24632 # causes trouble. This wart will be fixed eventually by moving
24633 # the bootstrap behavior to this file.
24634 .PHONY: all-gcc maybe-all-gcc
24635 maybe-all-gcc:
24636 all-gcc: configure-gcc
24637 r=`${PWD_COMMAND}`; export r; \
24638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24639 if [ -f stage_last ] ; then \
24640 true ; \
24641 elif [ -f gcc/stage_last ] ; then \
24642 $(SET_LIB_PATH) \
24643 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \
24644 else \
24645 $(SET_LIB_PATH) \
24646 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
24649 # Building GCC uses some tools for rebuilding "source" files
24650 # like texinfo, bison/byacc, etc. So we must depend on those.
24652 # While building GCC, it may be necessary to run various target
24653 # programs like the assembler, linker, etc. So we depend on
24654 # those too.
24656 # In theory, on an SMP all those dependencies can be resolved
24657 # in parallel.
24659 GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
24660 .PHONY: $(GCC_STRAP_TARGETS)
24661 $(GCC_STRAP_TARGETS): all-bootstrap configure-gcc
24662 @r=`${PWD_COMMAND}`; export r; \
24663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24664 $(SET_LIB_PATH) \
24665 echo "Bootstrapping the compiler"; \
24666 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
24667 @r=`${PWD_COMMAND}`; export r; \
24668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24669 case "$@" in \
24670 *bootstrap4-lean ) \
24671 msg="Comparing stage3 and stage4 of the compiler"; \
24672 compare=compare3-lean ;; \
24673 *bootstrap4 ) \
24674 msg="Comparing stage3 and stage4 of the compiler"; \
24675 compare=compare3 ;; \
24676 *-lean ) \
24677 msg="Comparing stage2 and stage3 of the compiler"; \
24678 compare=compare-lean ;; \
24679 * ) \
24680 msg="Comparing stage2 and stage3 of the compiler"; \
24681 compare=compare ;; \
24682 esac; \
24683 $(SET_LIB_PATH) \
24684 echo "$$msg"; \
24685 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
24686 @r=`${PWD_COMMAND}`; export r; \
24687 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
24688 $(SET_LIB_PATH) \
24689 echo "Building runtime libraries"; \
24690 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
24692 profiledbootstrap: all-bootstrap configure-gcc
24693 @r=`${PWD_COMMAND}`; export r; \
24694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24695 $(SET_LIB_PATH) \
24696 echo "Bootstrapping the compiler"; \
24697 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
24698 @r=`${PWD_COMMAND}`; export r; \
24699 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
24700 $(SET_LIB_PATH) \
24701 echo "Building runtime libraries and training compiler"; \
24702 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
24703 @r=`${PWD_COMMAND}`; export r; \
24704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24705 $(SET_LIB_PATH) \
24706 echo "Building feedback based compiler"; \
24707 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
24709 .PHONY: cross
24710 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
24711 @r=`${PWD_COMMAND}`; export r; \
24712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24713 $(SET_LIB_PATH) \
24714 echo "Building the C and C++ compiler"; \
24715 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
24716 @r=`${PWD_COMMAND}`; export r; \
24717 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
24718 $(SET_LIB_PATH) \
24719 echo "Building runtime libraries"; \
24720 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
24721 LANGUAGES="c c++" all
24723 .PHONY: check-gcc maybe-check-gcc
24724 maybe-check-gcc:
24725 check-gcc:
24726 @if [ -f ./gcc/Makefile ] ; then \
24727 r=`${PWD_COMMAND}`; export r; \
24728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24729 $(SET_LIB_PATH) \
24730 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
24731 else \
24732 true; \
24735 .PHONY: check-gcc-c++
24736 check-gcc-c++:
24737 @if [ -f ./gcc/Makefile ] ; then \
24738 r=`${PWD_COMMAND}`; export r; \
24739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24740 $(SET_LIB_PATH) \
24741 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
24742 else \
24743 true; \
24746 .PHONY: check-c++
24747 check-c++: check-target-libstdc++-v3 check-gcc-c++
24749 .PHONY: install-gcc maybe-install-gcc
24750 maybe-install-gcc:
24751 install-gcc:
24752 @if [ -f ./gcc/Makefile ] ; then \
24753 r=`${PWD_COMMAND}`; export r; \
24754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24755 $(SET_LIB_PATH) \
24756 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
24757 else \
24758 true; \
24761 # Install the gcc headers files, but not the fixed include files,
24762 # which Cygnus is not allowed to distribute. This rule is very
24763 # dependent on the workings of the gcc Makefile.in.
24764 .PHONY: gcc-no-fixedincludes
24765 gcc-no-fixedincludes:
24766 @if [ -f ./gcc/Makefile ]; then \
24767 rm -rf gcc/tmp-include; \
24768 mv gcc/include gcc/tmp-include 2>/dev/null; \
24769 mkdir gcc/include; \
24770 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
24771 touch gcc/stmp-fixinc gcc/include/fixed; \
24772 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
24773 r=`${PWD_COMMAND}`; export r; \
24774 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
24775 $(SET_LIB_PATH) \
24776 (cd ./gcc && \
24777 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
24778 rm -rf gcc/include; \
24779 mv gcc/tmp-include gcc/include 2>/dev/null; \
24780 else true; fi
24782 # Other targets (dvi, info, etc.)
24784 .PHONY: maybe-info-gcc info-gcc
24785 maybe-info-gcc:
24786 info-gcc: \
24787 configure-gcc
24788 @[ -f ./gcc/Makefile ] || exit 0; \
24789 r=`${PWD_COMMAND}`; export r; \
24790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24791 $(SET_LIB_PATH) \
24792 for flag in $(EXTRA_GCC_FLAGS); do \
24793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24794 done; \
24795 echo "Doing info in gcc" ; \
24796 (cd gcc && \
24797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24799 "RANLIB=$${RANLIB}" \
24800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24801 info) \
24802 || exit 1
24805 .PHONY: maybe-dvi-gcc dvi-gcc
24806 maybe-dvi-gcc:
24807 dvi-gcc: \
24808 configure-gcc
24809 @[ -f ./gcc/Makefile ] || exit 0; \
24810 r=`${PWD_COMMAND}`; export r; \
24811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24812 $(SET_LIB_PATH) \
24813 for flag in $(EXTRA_GCC_FLAGS); do \
24814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24815 done; \
24816 echo "Doing dvi in gcc" ; \
24817 (cd gcc && \
24818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24820 "RANLIB=$${RANLIB}" \
24821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24822 dvi) \
24823 || exit 1
24826 .PHONY: maybe-TAGS-gcc TAGS-gcc
24827 maybe-TAGS-gcc:
24828 TAGS-gcc: \
24829 configure-gcc
24830 @[ -f ./gcc/Makefile ] || exit 0; \
24831 r=`${PWD_COMMAND}`; export r; \
24832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24833 $(SET_LIB_PATH) \
24834 for flag in $(EXTRA_GCC_FLAGS); do \
24835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24836 done; \
24837 echo "Doing TAGS in gcc" ; \
24838 (cd gcc && \
24839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24841 "RANLIB=$${RANLIB}" \
24842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24843 TAGS) \
24844 || exit 1
24847 .PHONY: maybe-install-info-gcc install-info-gcc
24848 maybe-install-info-gcc:
24849 install-info-gcc: \
24850 configure-gcc \
24851 info-gcc
24852 @[ -f ./gcc/Makefile ] || exit 0; \
24853 r=`${PWD_COMMAND}`; export r; \
24854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24855 $(SET_LIB_PATH) \
24856 for flag in $(EXTRA_GCC_FLAGS); do \
24857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24858 done; \
24859 echo "Doing install-info in gcc" ; \
24860 (cd gcc && \
24861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24863 "RANLIB=$${RANLIB}" \
24864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24865 install-info) \
24866 || exit 1
24869 .PHONY: maybe-installcheck-gcc installcheck-gcc
24870 maybe-installcheck-gcc:
24871 installcheck-gcc: \
24872 configure-gcc
24873 @[ -f ./gcc/Makefile ] || exit 0; \
24874 r=`${PWD_COMMAND}`; export r; \
24875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24876 $(SET_LIB_PATH) \
24877 for flag in $(EXTRA_GCC_FLAGS); do \
24878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24879 done; \
24880 echo "Doing installcheck in gcc" ; \
24881 (cd gcc && \
24882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24884 "RANLIB=$${RANLIB}" \
24885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24886 installcheck) \
24887 || exit 1
24890 .PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
24891 maybe-mostlyclean-gcc:
24892 mostlyclean-gcc:
24893 @[ -f ./gcc/Makefile ] || exit 0; \
24894 r=`${PWD_COMMAND}`; export r; \
24895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24896 $(SET_LIB_PATH) \
24897 for flag in $(EXTRA_GCC_FLAGS); do \
24898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24899 done; \
24900 echo "Doing mostlyclean in gcc" ; \
24901 (cd gcc && \
24902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24904 "RANLIB=$${RANLIB}" \
24905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24906 mostlyclean) \
24907 || exit 1
24910 .PHONY: maybe-clean-gcc clean-gcc
24911 maybe-clean-gcc:
24912 clean-gcc:
24913 @[ -f ./gcc/Makefile ] || exit 0; \
24914 r=`${PWD_COMMAND}`; export r; \
24915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24916 $(SET_LIB_PATH) \
24917 for flag in $(EXTRA_GCC_FLAGS); do \
24918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24919 done; \
24920 echo "Doing clean in gcc" ; \
24921 (cd gcc && \
24922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24924 "RANLIB=$${RANLIB}" \
24925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24926 clean) \
24927 || exit 1
24930 .PHONY: maybe-distclean-gcc distclean-gcc
24931 maybe-distclean-gcc:
24932 distclean-gcc:
24933 @[ -f ./gcc/Makefile ] || exit 0; \
24934 r=`${PWD_COMMAND}`; export r; \
24935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24936 $(SET_LIB_PATH) \
24937 for flag in $(EXTRA_GCC_FLAGS); do \
24938 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24939 done; \
24940 echo "Doing distclean in gcc" ; \
24941 (cd gcc && \
24942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24944 "RANLIB=$${RANLIB}" \
24945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24946 distclean) \
24947 || exit 1
24950 .PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
24951 maybe-maintainer-clean-gcc:
24952 maintainer-clean-gcc:
24953 @[ -f ./gcc/Makefile ] || exit 0; \
24954 r=`${PWD_COMMAND}`; export r; \
24955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24956 $(SET_LIB_PATH) \
24957 for flag in $(EXTRA_GCC_FLAGS); do \
24958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24959 done; \
24960 echo "Doing maintainer-clean in gcc" ; \
24961 (cd gcc && \
24962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24964 "RANLIB=$${RANLIB}" \
24965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24966 maintainer-clean) \
24967 || exit 1
24971 # ---------------------
24972 # GCC bootstrap support
24973 # ---------------------
24975 # We name the directories for the various stages "stage1-gcc",
24976 # "stage2-gcc","stage3-gcc", etc.
24977 # Unfortunately, the 'compare' process will fail (on debugging information)
24978 # if any directory names are different!
24979 # So in the building rule for each stage, we relocate them before and after.
24980 # The current one is 'gcc', while the previous one is 'prev-gcc'. (The
24981 # current one must be 'gcc' for now because the scripts in that directory
24982 # assume it.)
24983 # At the end of the bootstrap, 'stage3-gcc' must be moved to 'gcc' so that
24984 # libraries can find it. Ick!
24986 # Bugs: This is almost certainly not parallel-make safe.
24988 # 'touch' doesn't work right on some platforms.
24989 STAMP = echo timestamp >
24991 # Only build the C compiler for stage1, because that is the only one that
24992 # we can guarantee will build with the native compiler, and also it is the
24993 # only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
24994 # MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
24995 # overrideable (for a bootstrap build stage1 also builds gcc.info).
24997 STAGE1_CFLAGS=@stage1_cflags@
24998 STAGE1_LANGUAGES=@stage1_languages@
25000 # For stage 1:
25001 # * We force-disable intermodule optimizations, even if
25002 # --enable-intermodule was passed, since the installed compiler probably
25003 # can't handle them. Luckily, autoconf always respects
25004 # the last argument when conflicting --enable arguments are passed.
25005 # * Likewise, we force-disable coverage flags, since the installed compiler
25006 # probably has never heard of them.
25007 # * We build only C (and possibly Ada).
25008 configure-stage1-gcc:
25009 echo configure-stage1-gcc > stage_last ; \
25010 if [ -f stage1-gcc/Makefile ] ; then \
25011 $(STAMP) configure-stage1-gcc ; \
25012 exit 0; \
25013 else \
25014 true ; \
25015 fi ; \
25016 [ -d stage1-gcc ] || mkdir stage1-gcc; \
25017 mv stage1-gcc gcc ; \
25018 r=`${PWD_COMMAND}`; export r; \
25019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25020 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
25021 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
25022 CC="$(CC)"; export CC; \
25023 CFLAGS="$(CFLAGS)"; export CFLAGS; \
25024 CXX="$(CXX)"; export CXX; \
25025 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
25026 AR="$(AR)"; export AR; \
25027 AS="$(AS)"; export AS; \
25028 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
25029 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
25030 LD="$(LD)"; export LD; \
25031 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
25032 NM="$(NM)"; export NM; \
25033 RANLIB="$(RANLIB)"; export RANLIB; \
25034 WINDRES="$(WINDRES)"; export WINDRES; \
25035 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
25036 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
25037 echo Configuring stage 1 in gcc; \
25038 cd gcc || exit 1; \
25039 case $(srcdir) in \
25040 \.) \
25041 srcdiroption="--srcdir=."; \
25042 libsrcdir=".";; \
25043 /* | [A-Za-z]:[\\/]*) \
25044 srcdiroption="--srcdir=$(srcdir)/gcc"; \
25045 libsrcdir="$$s/gcc";; \
25046 *) \
25047 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
25048 libsrcdir="$$s/gcc";; \
25049 esac; \
25050 $(SHELL) $${libsrcdir}/configure \
25051 $(HOST_CONFIGARGS) $${srcdiroption} \
25052 --disable-intermodule --disable-coverage \
25053 --enable-languages="$(STAGE1_LANGUAGES)"; \
25054 cd .. ; \
25055 mv gcc stage1-gcc ; \
25056 $(STAMP) configure-stage1-gcc
25058 # Real targets act phony if they depend on phony targets; this hack
25059 # prevents gratuitous rebuilding of stage 1.
25060 prebootstrap:
25061 $(MAKE) all-bootstrap
25062 $(STAMP) prebootstrap
25064 all-stage1-gcc: configure-stage1-gcc prebootstrap
25065 echo all-stage1-gcc > stage_last ; \
25066 r=`${PWD_COMMAND}`; export r; \
25067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25068 mv stage1-gcc gcc ; \
25069 cd gcc && \
25070 $(MAKE) $(GCC_FLAGS_TO_PASS) \
25071 CFLAGS="$(STAGE1_CFLAGS)" && $(STAMP) ../all-stage1-gcc ; \
25072 result=$$? ; \
25073 cd .. ; \
25074 mv gcc stage1-gcc ; \
25075 exit $$result
25077 # TODO: Deal with STAGE_PREFIX (which is only for ada, incidentally)
25078 # Possibly pass --enable-werror-always (depending on --enable-werror);
25079 # that's what @stage2_werror_flag@ is for
25080 configure-stage2-gcc: all-stage1-gcc
25081 echo configure-stage2-gcc > stage_last ; \
25082 if [ -f stage2-gcc/Makefile ] ; then \
25083 $(STAMP) configure-stage2-gcc ; \
25084 exit 0; \
25085 else \
25086 true ; \
25087 fi ; \
25088 [ -d stage2-gcc ] || mkdir stage2-gcc; \
25089 mv stage2-gcc gcc ; \
25090 mv stage1-gcc prev-gcc ; \
25091 r=`${PWD_COMMAND}`; export r; \
25092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25093 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
25094 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
25095 CFLAGS="$(CFLAGS)"; export CFLAGS; \
25096 CXX="$(CXX)"; export CXX; \
25097 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
25098 AR="$(AR)"; export AR; \
25099 AS="$(AS)"; export AS; \
25100 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
25101 LD="$(LD)"; export LD; \
25102 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
25103 NM="$(NM)"; export NM; \
25104 RANLIB="$(RANLIB)"; export RANLIB; \
25105 WINDRES="$(WINDRES)"; export WINDRES; \
25106 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
25107 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
25108 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
25109 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
25110 echo Configuring stage 2 in gcc; \
25111 cd gcc || exit 1; \
25112 case $(srcdir) in \
25113 \.) \
25114 srcdiroption="--srcdir=."; \
25115 libsrcdir=".";; \
25116 /* | [A-Za-z]:[\\/]*) \
25117 srcdiroption="--srcdir=$(srcdir)/gcc"; \
25118 libsrcdir="$$s/gcc";; \
25119 *) \
25120 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
25121 libsrcdir="$$s/gcc";; \
25122 esac; \
25123 $(SHELL) $${libsrcdir}/configure \
25124 $(HOST_CONFIGARGS) $${srcdiroption} @stage2_werror_flag@ ; \
25125 cd .. ; \
25126 mv gcc stage2-gcc ; \
25127 mv prev-gcc stage1-gcc ; \
25128 $(STAMP) configure-stage2-gcc
25130 # Flags to pass to stage2 and later makes.
25131 BOOT_CFLAGS= -g -O2
25132 POSTSTAGE1_FLAGS_TO_PASS = \
25133 CFLAGS="$(BOOT_CFLAGS)" \
25134 ADAC="\$$(CC)"
25136 all-stage2-gcc: all-stage1-gcc configure-stage2-gcc
25137 echo all-stage2-gcc > stage_last ; \
25138 r=`${PWD_COMMAND}`; export r; \
25139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25140 mv stage2-gcc gcc ; \
25141 mv stage1-gcc prev-gcc ; \
25142 cd gcc && \
25143 $(MAKE) $(GCC_FLAGS_TO_PASS) \
25144 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
25145 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
25146 STAGE_PREFIX=$$r/prev-gcc/ \
25147 $(POSTSTAGE1_FLAGS_TO_PASS) && $(STAMP) ../all-stage2-gcc ; \
25148 result=$$? ; \
25149 cd .. ; \
25150 mv prev-gcc stage1-gcc ; \
25151 mv gcc stage2-gcc ; \
25152 exit $$result
25154 configure-stage3-gcc: all-stage2-gcc
25155 echo configure-stage3-gcc > stage_last ; \
25156 if [ -f stage3-gcc/Makefile ] ; then \
25157 $(STAMP) configure-stage3-gcc ; \
25158 exit 0; \
25159 else \
25160 true ; \
25161 fi ; \
25162 [ -d stage3-gcc ] || mkdir stage3-gcc; \
25163 mv stage3-gcc gcc ; \
25164 mv stage2-gcc prev-gcc ; \
25165 r=`${PWD_COMMAND}`; export r; \
25166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25167 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
25168 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
25169 CFLAGS="$(CFLAGS)"; export CFLAGS; \
25170 CXX="$(CXX)"; export CXX; \
25171 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
25172 AR="$(AR)"; export AR; \
25173 AS="$(AS)"; export AS; \
25174 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
25175 LD="$(LD)"; export LD; \
25176 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
25177 NM="$(NM)"; export NM; \
25178 RANLIB="$(RANLIB)"; export RANLIB; \
25179 WINDRES="$(WINDRES)"; export WINDRES; \
25180 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
25181 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
25182 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
25183 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
25184 echo Configuring stage 3 in gcc; \
25185 cd gcc || exit 1; \
25186 case $(srcdir) in \
25187 \.) \
25188 srcdiroption="--srcdir=."; \
25189 libsrcdir=".";; \
25190 /* | [A-Za-z]:[\\/]*) \
25191 srcdiroption="--srcdir=$(srcdir)/gcc"; \
25192 libsrcdir="$$s/gcc";; \
25193 *) \
25194 srcdiroption="--srcdir=../$(srcdir)/gcc"; \
25195 libsrcdir="$$s/gcc";; \
25196 esac; \
25197 $(SHELL) $${libsrcdir}/configure \
25198 $(HOST_CONFIGARGS) $${srcdiroption} @stage2_werror_flag@ ; \
25199 cd .. ; \
25200 mv gcc stage3-gcc ; \
25201 mv prev-gcc stage2-gcc ; \
25202 $(STAMP) configure-stage3-gcc
25204 all-stage3-gcc: all-stage2-gcc configure-stage3-gcc
25205 echo all-stage3-gcc > stage_last ; \
25206 r=`${PWD_COMMAND}`; export r; \
25207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25208 mv stage2-gcc prev-gcc ; \
25209 mv stage3-gcc gcc ; \
25210 cd gcc && \
25211 $(MAKE) $(GCC_FLAGS_TO_PASS) \
25212 CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
25213 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/" \
25214 STAGE_PREFIX=$$r/prev-gcc/ \
25215 $(POSTSTAGE1_FLAGS_TO_PASS) && $(STAMP) ../all-stage3-gcc \
25216 result=$$? ; \
25217 cd .. ; \
25218 mv prev-gcc stage2-gcc ; \
25219 mv gcc stage3-gcc ; \
25220 exit $$result
25222 # We only want to compare .o files, so set this!
25223 objext = .o
25225 compare: all-stage3-gcc
25226 r=`${PWD_COMMAND}`; export r; \
25227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25228 rm -f .bad_compare ; \
25229 cd stage3-gcc; \
25230 files=`find . -name "*$(objext)" -print` ; \
25231 cd .. ; \
25232 for file in $${files} ; do \
25233 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
25234 @do_compare@ > /dev/null 2>&1; \
25235 test $$? -eq 1 && echo $$file differs >> .bad_compare || true; \
25236 done ; \
25237 if [ -f .bad_compare ]; then \
25238 echo "Bootstrap comparison failure!"; \
25239 cat .bad_compare; \
25240 exit 1; \
25241 else \
25242 true; \
25243 fi ; \
25244 $(STAMP) compare
25246 .PHONY: new-bootstrap
25247 # This target exists so that everything can be made in one pass.
25248 # 'all-gcc' has to avoid stomping on the bootstrap-generated gcc for
25249 # this to work.
25250 new-bootstrap: compare
25251 mv stage3-gcc gcc ; \
25252 $(MAKE) all ; \
25253 mv gcc stage3-gcc
25255 new-cleanstrap:
25256 rm -rf configure-stage1-gcc all-stage1-gcc stage1-gcc \
25257 configure-stage2-gcc all-stage2-gcc stage2-gcc \
25258 configure-stage3-gcc all-stage3-gcc stage3-gcc \
25259 compare
25260 $(MAKE) new-bootstrap
25262 new-restage1:
25263 rm -rf all-stage1-gcc \
25264 configure-stage2-gcc all-stage2-gcc stage2-gcc \
25265 configure-stage3-gcc all-stage3-gcc stage3-gcc \
25266 compare
25267 $(MAKE) all-stage1-gcc
25269 new-restage2: all-stage1-gcc
25270 rm -rf all-stage2-gcc \
25271 configure-stage3-gcc all-stage3-gcc stage3-gcc \
25272 compare
25273 $(MAKE) all-stage2-gcc
25275 new-restage3: all-stage2-gcc
25276 rm -rf all-stage3-gcc compare
25277 $(MAKE) compare
25279 # --------------------------------------
25280 # Dependencies between different modules
25281 # --------------------------------------
25283 # There are two types of dependencies here: 'hard' dependencies, where one
25284 # module simply won't build without the other; and 'soft' dependencies, where
25285 # if the depended-on module is missing, the depending module will do without
25286 # or find a substitute somewhere (perhaps installed). Soft dependencies
25287 # are specified by depending on a 'maybe-' target. If you're not sure,
25288 # it's safer to use a soft dependency.
25290 # Host modules specific to gcc.
25291 # GCC needs to identify certain tools.
25292 # GCC also needs the information exported by the intl configure script.
25293 configure-gcc: maybe-configure-intl maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex
25294 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 maybe-all-libbanshee
25295 # This is a slightly kludgy method of getting dependencies on
25296 # all-build-libiberty correct; it would be better to build it every time.
25297 all-gcc: maybe-all-build-libiberty maybe-all-libbanshee
25298 all-bootstrap: maybe-all-binutils maybe-all-bison maybe-all-byacc maybe-all-gas maybe-all-intl maybe-all-ld maybe-all-libbanshee maybe-all-libiberty maybe-all-texinfo maybe-all-zlib
25300 # Host modules specific to gdb.
25301 # GDB needs to know that the simulator is being built.
25302 configure-gdb: maybe-configure-itcl maybe-configure-tcl maybe-configure-tk maybe-configure-sim
25303 GDB_TK = @GDB_TK@
25304 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)
25305 install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui
25306 configure-libgui: maybe-configure-tcl maybe-configure-tk
25307 all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl
25309 # Host modules specific to binutils.
25310 configure-bfd: configure-libiberty
25311 all-bfd: maybe-all-libiberty maybe-all-intl
25312 all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl
25313 # We put install-opcodes before install-binutils because the installed
25314 # binutils might be on PATH, and they might need the shared opcodes
25315 # library.
25316 install-binutils: maybe-install-opcodes
25317 # libopcodes depends on libbfd
25318 install-opcodes: maybe-install-bfd
25319 all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl
25320 all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl
25321 all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl
25322 all-opcodes: maybe-all-bfd maybe-all-libiberty
25324 # Other host modules in the 'src' repository.
25325 all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk
25326 configure-expect: maybe-configure-tcl maybe-configure-tk
25327 all-expect: maybe-all-tcl maybe-all-tk
25328 configure-itcl: maybe-configure-tcl maybe-configure-tk
25329 all-itcl: maybe-all-tcl maybe-all-tk
25330 # We put install-tcl before install-itcl because itcl wants to run a
25331 # program on installation which uses the Tcl libraries.
25332 install-itcl: maybe-install-tcl
25333 all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk
25334 install-sid: maybe-install-tcl maybe-install-tk
25335 all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb
25336 configure-tk: maybe-configure-tcl
25337 all-tk: maybe-all-tcl
25338 configure-tix: maybe-configure-tcl maybe-configure-tk
25339 all-tix: maybe-all-tcl maybe-all-tk
25340 all-texinfo: maybe-all-libiberty
25342 # Other host modules. Warning, these are not well tested.
25343 all-autoconf: maybe-all-m4 maybe-all-texinfo
25344 all-automake: maybe-all-m4 maybe-all-texinfo
25345 all-bison: maybe-all-texinfo
25346 all-diff: maybe-all-libiberty
25347 all-fastjar: maybe-all-zlib maybe-all-libiberty
25348 all-fileutils: maybe-all-libiberty
25349 all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc
25350 all-gzip: maybe-all-libiberty
25351 all-hello: maybe-all-libiberty
25352 all-m4: maybe-all-libiberty maybe-all-texinfo
25353 all-make: maybe-all-libiberty maybe-all-intl
25354 all-patch: maybe-all-libiberty
25355 all-prms: maybe-all-libiberty
25356 all-recode: maybe-all-libiberty
25357 all-sed: maybe-all-libiberty
25358 all-send-pr: maybe-all-prms
25359 all-tar: maybe-all-libiberty
25360 all-uudecode: maybe-all-libiberty
25362 ALL_GCC = maybe-all-gcc
25363 ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss
25364 ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3
25366 # Target modules specific to gcc.
25367 configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads
25368 configure-target-fastjar: maybe-configure-target-zlib
25369 all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty
25370 configure-target-libada: $(ALL_GCC_C)
25371 configure-target-libf2c: $(ALL_GCC_C)
25372 all-target-libf2c: maybe-all-target-libiberty
25373 configure-target-libgfortran: $(ALL_GCC_C)
25374 configure-target-libffi: $(ALL_GCC_C)
25375 configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi
25376 all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi
25377 configure-target-libobjc: $(ALL_GCC_C)
25378 all-target-libobjc: maybe-all-target-libiberty
25379 configure-target-libstdc++-v3: $(ALL_GCC_C)
25380 all-target-libstdc++-v3: maybe-all-target-libiberty
25381 configure-target-zlib: $(ALL_GCC_C)
25383 # Target modules in the 'src' repository.
25384 configure-target-examples: $(ALL_GCC_C)
25385 configure-target-libgloss: $(ALL_GCC)
25386 all-target-libgloss: maybe-configure-target-newlib
25387 configure-target-libiberty: $(ALL_GCC)
25388 configure-target-libtermcap: $(ALL_GCC_C)
25389 configure-target-newlib: $(ALL_GCC)
25390 configure-target-rda: $(ALL_GCC_C)
25391 configure-target-winsup: $(ALL_GCC_C)
25392 all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap
25394 # Other target modules. Warning, these are not well tested.
25395 configure-target-gperf: $(ALL_GCC_CXX)
25396 all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3
25397 configure-target-qthreads: $(ALL_GCC_C)
25399 # Dependencies of maybe-foo on foo. These are used because, for example,
25400 # all-gcc only depends on all-gas if gas is present and being configured.
25401 @maybe_dependencies@
25403 # Serialization dependencies. Host configures don't work well in parallel to
25404 # each other, due to contention over config.cache. Target configures and
25405 # build configures are similar.
25406 @serialization_dependencies@
25408 # --------------------------------
25409 # Regenerating top level configury
25410 # --------------------------------
25412 # Multilib.out tells target dirs what multilibs they should build.
25413 # There is really only one copy. We use the 'timestamp' method to
25414 # work around various timestamp bugs on some systems.
25415 # We use move-if-change so that it's only considered updated when it
25416 # actually changes, because it has to depend on a phony target.
25417 multilib.out: maybe-all-gcc
25418 @r=`${PWD_COMMAND}`; export r; \
25419 echo "Checking multilib configuration..."; \
25420 $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \
25421 $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \
25423 # Rebuilding Makefile.in, using autogen.
25424 AUTOGEN = autogen
25425 $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
25426 cd $(srcdir) && $(AUTOGEN) Makefile.def
25428 # Rebuilding Makefile.
25429 Makefile: $(srcdir)/Makefile.in config.status
25430 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
25432 config.status: configure $(gcc_version_trigger)
25433 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
25435 # Rebuilding configure.
25436 AUTOCONF = autoconf
25437 $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
25438 cd $(srcdir) && $(AUTOCONF)
25440 # ------------------------------
25441 # Special directives to GNU Make
25442 # ------------------------------
25444 # Don't pass command-line variables to submakes.
25445 .NOEXPORT:
25446 MAKEOVERRIDES=
25448 # end of Makefile.in