]>
Commit | Line | Data |
---|---|---|
405ea7a0 NN |
1 | |
2 | # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. | |
252b5132 RH |
3 | # |
4 | # Makefile for directory with subdirs to build. | |
5cec67bf | 5 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
d5de0a84 | 6 | # 1999, 2000, 2001, 2002 Free Software Foundation |
252b5132 RH |
7 | # |
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. | |
12 | # | |
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. | |
17 | # | |
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. | |
21 | # | |
22 | ||
80413487 | 23 | # Tell GNU make 3.79 not to run the top level in parallel. This |
3daeddf6 RH |
24 | # prevents contention for $builddir/$target/config.cache, as well |
25 | # as minimizing scatter in file system caches. | |
80413487 RH |
26 | NOTPARALLEL = .NOTPARALLEL |
27 | $(NOTPARALLEL): | |
3daeddf6 | 28 | |
583d52d7 NN |
29 | VPATH=@srcdir@ |
30 | links=@configlinks@ | |
31 | ||
32 | build_alias=@build_alias@ | |
33 | build_cpu=@build_cpu@ | |
34 | build_vendor=@build_vendor@ | |
35 | build_os=@build_os@ | |
36 | build_canonical=@build_cpu@-@build_vendor@-@build_os@ | |
37 | host_alias=@host_alias@ | |
38 | host_cpu=@host_cpu@ | |
39 | host_vendor=@host_vendor@ | |
40 | host_os=@host_os@ | |
41 | host_canonical=@host_cpu@-@host_vendor@-@host_os@ | |
42 | target_alias=@target_alias@ | |
43 | target_cpu=@target_cpu@ | |
44 | target_vendor=@target_vendor@ | |
45 | target_os=@target_os@ | |
46 | target_canonical=@target_cpu@-@target_vendor@-@target_os@ | |
47 | ||
48 | enable_shared = @enable_shared@ | |
49 | enable_threads = @enable_threads@ | |
50 | enable_version_specific_runtime_libs = @enable_version_specific_runtime_libs@ | |
51 | # The file containing GCC's version number. | |
52 | gcc_version_trigger = @gcc_version_trigger@ | |
53 | gcc_version = @gcc_version@ | |
54 | ||
403d9505 NN |
55 | srcdir = @srcdir@ |
56 | ||
57 | prefix = @prefix@ | |
58 | exec_prefix = @exec_prefix@ | |
59 | ||
60 | bindir = @bindir@ | |
61 | sbindir = @sbindir@ | |
62 | libexecdir = @libexecdir@ | |
63 | datadir = @datadir@ | |
64 | sysconfdir = @sysconfdir@ | |
65 | sharedstatedir = @sharedstatedir@ | |
66 | localstatedir = @localstatedir@ | |
67 | libdir = @libdir@ | |
68 | includedir = @includedir@ | |
69 | oldincludedir = @oldincludedir@ | |
70 | infodir = @infodir@ | |
71 | mandir = @mandir@ | |
313b8244 AS |
72 | gxx_include_dir = @gxx_include_dir@ |
73 | libstdcxx_incdir = @libstdcxx_incdir@ | |
252b5132 | 74 | |
403d9505 NN |
75 | tooldir = @tooldir@ |
76 | build_tooldir = @build_tooldir@ | |
252b5132 | 77 | |
403d9505 | 78 | program_transform_name = @program_transform_name@ |
252b5132 RH |
79 | |
80 | man1dir = $(mandir)/man1 | |
81 | man2dir = $(mandir)/man2 | |
82 | man3dir = $(mandir)/man3 | |
83 | man4dir = $(mandir)/man4 | |
84 | man5dir = $(mandir)/man5 | |
85 | man6dir = $(mandir)/man6 | |
86 | man7dir = $(mandir)/man7 | |
87 | man8dir = $(mandir)/man8 | |
88 | man9dir = $(mandir)/man9 | |
252b5132 RH |
89 | # Directory in which the compiler finds executables, libraries, etc. |
90 | libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version) | |
91 | GDB_NLM_DEPS = | |
92 | ||
403d9505 | 93 | SHELL = @config_shell@ |
252b5132 | 94 | |
d5de0a84 NC |
95 | # pwd command to use. Allow user to override default by setting PWDCMD in |
96 | # the environment to account for automounters. The make variable must not | |
97 | # be called PWDCMD, otherwise the value set here is passed to make | |
98 | # subprocesses and overrides the setting from the user's environment. | |
99 | PWD = $${PWDCMD-pwd} | |
100 | ||
252b5132 RH |
101 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a |
102 | # cygwin host. | |
103 | INSTALL_PROGRAM_ARGS = | |
104 | ||
105 | INSTALL = $(SHELL) $$s/install-sh -c | |
106 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS) | |
107 | INSTALL_SCRIPT = $(INSTALL) | |
108 | INSTALL_DATA = $(INSTALL) -m 644 | |
109 | ||
852e5f18 NN |
110 | AS = @AS@ |
111 | AR = @AR@ | |
252b5132 | 112 | AR_FLAGS = rc |
d03be79e | 113 | CC = @CC@ |
252b5132 RH |
114 | |
115 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
116 | # here so that they can be overridden by Makefile fragments. | |
3866be5d | 117 | BUILD_CC = $(CC_FOR_BUILD) |
852e5f18 NN |
118 | BUILD_PREFIX = @BUILD_PREFIX@ |
119 | BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | |
252b5132 | 120 | |
d03be79e NN |
121 | CFLAGS = @CFLAGS@ |
122 | CXXFLAGS = @CXXFLAGS@ | |
252b5132 | 123 | |
c363de44 | 124 | LDFLAGS = |
252b5132 | 125 | LIBCFLAGS = $(CFLAGS) |
75205f78 | 126 | CFLAGS_FOR_BUILD = $(CFLAGS) |
6c5e141a DD |
127 | # During gcc bootstrap, if we use some random cc for stage1 then |
128 | # CFLAGS will be just -g. We want to ensure that TARGET libraries | |
129 | # (which we know are built with gcc) are built with optimizations so | |
130 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | |
131 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) | |
252b5132 RH |
132 | LDFLAGS_FOR_TARGET = |
133 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | |
134 | PICFLAG = | |
135 | PICFLAG_FOR_TARGET = | |
136 | ||
d03be79e | 137 | CXX = @CXX@ |
252b5132 RH |
138 | |
139 | # Use -O2 to stress test the compiler. | |
ba73c63f | 140 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates |
252b5132 | 141 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) |
ba73c63f | 142 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates |
252b5132 | 143 | |
852e5f18 NN |
144 | DLLTOOL = @DLLTOOL@ |
145 | WINDRES = @WINDRES@ | |
252b5132 | 146 | |
852e5f18 | 147 | NM = @NM@ |
252b5132 | 148 | |
852e5f18 | 149 | LD = @LD@ |
252b5132 | 150 | |
252b5132 | 151 | # These values are substituted by configure. |
403d9505 NN |
152 | DEFAULT_YACC = @DEFAULT_YACC@ |
153 | DEFAULT_LEX = @DEFAULT_LEX@ | |
154 | DEFAULT_M4 = @DEFAULT_M4@ | |
252b5132 | 155 | |
852e5f18 NN |
156 | BISON=@BISON@ |
157 | USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \ | |
252b5132 RH |
158 | echo $$r/bison/bison -L $$s/bison/ ; \ |
159 | else \ | |
160 | echo bison ; \ | |
161 | fi` | |
162 | ||
852e5f18 NN |
163 | YACC=@YACC@ |
164 | USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \ | |
252b5132 RH |
165 | echo $$r/bison/bison -y -L $$s/bison/ ; \ |
166 | elif [ -f $$r/byacc/byacc ] ; then \ | |
167 | echo $$r/byacc/byacc ; \ | |
168 | else \ | |
169 | echo ${DEFAULT_YACC} ; \ | |
170 | fi` | |
171 | ||
852e5f18 NN |
172 | LEX=@LEX@ |
173 | USUAL_LEX = `if [ -f $$r/flex/flex ] ; \ | |
252b5132 RH |
174 | then echo $$r/flex/flex ; \ |
175 | else echo ${DEFAULT_LEX} ; fi` | |
176 | ||
177 | M4 = `if [ -f $$r/m4/m4 ] ; \ | |
178 | then echo $$r/m4/m4 ; \ | |
179 | else echo ${DEFAULT_M4} ; fi` | |
180 | ||
f08fa01d HPN |
181 | # For an installed makeinfo, we require it to be from texinfo 4 or |
182 | # higher, else we use the "missing" dummy. | |
852e5f18 NN |
183 | MAKEINFO=@MAKEINFO@ |
184 | USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ | |
252b5132 | 185 | then echo $$r/texinfo/makeinfo/makeinfo ; \ |
f08fa01d HPN |
186 | else if (makeinfo --version \ |
187 | | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \ | |
188 | then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` | |
252b5132 RH |
189 | |
190 | # This just becomes part of the MAKEINFO definition passed down to | |
191 | # sub-makes. It lets flags be given on the command line while still | |
192 | # using the makeinfo from the object tree. | |
193 | MAKEINFOFLAGS = | |
194 | ||
195 | EXPECT = `if [ -f $$r/expect/expect ] ; \ | |
196 | then echo $$r/expect/expect ; \ | |
197 | else echo expect ; fi` | |
198 | ||
199 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ | |
200 | then echo $$s/dejagnu/runtest ; \ | |
201 | else echo runtest ; fi` | |
202 | ||
203 | ||
204 | # compilers to use to create programs which must be run in the build | |
205 | # environment. | |
852e5f18 | 206 | CC_FOR_BUILD = @CC_FOR_BUILD@ |
252b5132 RH |
207 | CXX_FOR_BUILD = $(CXX) |
208 | ||
f03b4789 | 209 | SUBDIRS = @configdirs@ |
252b5132 RH |
210 | |
211 | # This is set by the configure script to the list of directories which | |
212 | # should be built using the target tools. | |
58daee98 | 213 | TARGET_CONFIGDIRS = @target_configdirs@ |
252b5132 RH |
214 | |
215 | # Target libraries are put under this directory: | |
216 | # Changed by configure to $(target_alias) if cross. | |
58daee98 | 217 | TARGET_SUBDIR = @target_subdir@ |
252b5132 | 218 | |
49b7683b | 219 | BUILD_CONFIGDIRS = libiberty |
58daee98 | 220 | BUILD_SUBDIR = @build_subdir@ |
49b7683b | 221 | |
49b7683b DD |
222 | # This is set by the configure script to the arguments to use when configuring |
223 | # directories built for the build system. | |
58daee98 | 224 | BUILD_CONFIGARGS = @build_configargs@ |
252b5132 | 225 | |
15723a45 NN |
226 | # This is set by the configure script to the arguments to use when configuring |
227 | # directories built for the host system. | |
228 | HOST_CONFIGARGS = @host_configargs@ | |
229 | ||
230 | # This is set by the configure script to the arguments to use when configuring | |
231 | # directories built for the target. | |
232 | TARGET_CONFIGARGS = @target_configargs@ | |
233 | ||
252b5132 RH |
234 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared |
235 | # was used. | |
8607b6c9 | 236 | SET_LIB_PATH = @SET_LIB_PATH@ |
252b5132 RH |
237 | |
238 | # This is the name of the environment variable used for the path to | |
239 | # the libraries. This may be changed by configure.in. | |
8607b6c9 | 240 | RPATH_ENVVAR = @RPATH_ENVVAR@ |
252b5132 | 241 | |
0da52010 AO |
242 | # This is the list of directories that may be needed in RPATH_ENVVAR |
243 | # so that programs built for the host machine work. | |
244 | HOST_LIB_PATH = $$r/bfd:$$r/opcodes | |
245 | ||
246 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
247 | # so that prorgams built for the target machine work. | |
75205f78 | 248 | TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs: |
0da52010 | 249 | |
252b5132 | 250 | # configure.in sets SET_LIB_PATH to this if --enable-shared was used. |
0da52010 AO |
251 | # Some platforms don't like blank entries, so we remove duplicate, |
252 | # leading and trailing colons. | |
252b5132 | 253 | REALLY_SET_LIB_PATH = \ |
0da52010 | 254 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
252b5132 | 255 | |
9e449d3e | 256 | # Should be substed by configure.in |
58daee98 NN |
257 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
258 | CC_FOR_TARGET = @CC_FOR_TARGET@ | |
259 | CXX_FOR_TARGET = @CXX_FOR_TARGET@ | |
930314a4 | 260 | RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@ |
58daee98 | 261 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ |
930314a4 | 262 | RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ |
58daee98 | 263 | GCJ_FOR_TARGET = @GCJ_FOR_TARGET@ |
252b5132 | 264 | |
9e449d3e | 265 | # If GCC_FOR_TARGET is not overriden on the command line, then this |
252b5132 RH |
266 | # variable is passed down to the gcc Makefile, where it is used to |
267 | # build libgcc2.a. We define it here so that it can itself be | |
268 | # overridden on the command line. | |
852e5f18 NN |
269 | GCC_FOR_TARGET=@GCC_FOR_TARGET@ |
270 | USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET) | |
252b5132 | 271 | |
852e5f18 NN |
272 | AS_FOR_TARGET=@AS_FOR_TARGET@ |
273 | USUAL_AS_FOR_TARGET = ` \ | |
252b5132 RH |
274 | if [ -f $$r/gas/as-new ] ; then \ |
275 | echo $$r/gas/as-new ; \ | |
dc70af01 AO |
276 | elif [ -f $$r/gcc/xgcc ]; then \ |
277 | $(CC_FOR_TARGET) -print-prog-name=as ; \ | |
252b5132 | 278 | else \ |
3f152009 | 279 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
280 | echo $(AS); \ |
281 | else \ | |
282 | t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ | |
283 | fi; \ | |
284 | fi` | |
285 | ||
852e5f18 NN |
286 | LD_FOR_TARGET=@LD_FOR_TARGET@ |
287 | USUAL_LD_FOR_TARGET = ` \ | |
252b5132 RH |
288 | if [ -f $$r/ld/ld-new ] ; then \ |
289 | echo $$r/ld/ld-new ; \ | |
dc70af01 AO |
290 | elif [ -f $$r/gcc/xgcc ]; then \ |
291 | $(CC_FOR_TARGET) -print-prog-name=ld ; \ | |
252b5132 | 292 | else \ |
3f152009 | 293 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
294 | echo $(LD); \ |
295 | else \ | |
296 | t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ | |
297 | fi; \ | |
298 | fi` | |
299 | ||
852e5f18 NN |
300 | DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
301 | USUAL_DLLTOOL_FOR_TARGET = ` \ | |
252b5132 RH |
302 | if [ -f $$r/binutils/dlltool ] ; then \ |
303 | echo $$r/binutils/dlltool ; \ | |
304 | else \ | |
3f152009 | 305 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
306 | echo $(DLLTOOL); \ |
307 | else \ | |
308 | t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ | |
309 | fi; \ | |
310 | fi` | |
311 | ||
852e5f18 NN |
312 | WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
313 | USUAL_WINDRES_FOR_TARGET = ` \ | |
252b5132 RH |
314 | if [ -f $$r/binutils/windres ] ; then \ |
315 | echo $$r/binutils/windres ; \ | |
316 | else \ | |
3f152009 | 317 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
318 | echo $(WINDRES); \ |
319 | else \ | |
320 | t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \ | |
321 | fi; \ | |
322 | fi` | |
323 | ||
852e5f18 NN |
324 | AR_FOR_TARGET=@AR_FOR_TARGET@ |
325 | USUAL_AR_FOR_TARGET = ` \ | |
252b5132 RH |
326 | if [ -f $$r/binutils/ar ] ; then \ |
327 | echo $$r/binutils/ar ; \ | |
328 | else \ | |
3f152009 | 329 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
330 | echo $(AR); \ |
331 | else \ | |
332 | t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ | |
333 | fi; \ | |
334 | fi` | |
335 | ||
852e5f18 NN |
336 | RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
337 | USUAL_RANLIB_FOR_TARGET = ` \ | |
252b5132 RH |
338 | if [ -f $$r/binutils/ranlib ] ; then \ |
339 | echo $$r/binutils/ranlib ; \ | |
340 | else \ | |
3f152009 AO |
341 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
342 | if [ x'$(RANLIB)' != x ]; then \ | |
343 | echo $(RANLIB); \ | |
344 | else \ | |
345 | echo ranlib; \ | |
346 | fi; \ | |
252b5132 RH |
347 | else \ |
348 | t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ | |
349 | fi; \ | |
350 | fi` | |
351 | ||
852e5f18 NN |
352 | NM_FOR_TARGET=@NM_FOR_TARGET@ |
353 | USUAL_NM_FOR_TARGET = ` \ | |
252b5132 RH |
354 | if [ -f $$r/binutils/nm-new ] ; then \ |
355 | echo $$r/binutils/nm-new ; \ | |
dc70af01 AO |
356 | elif [ -f $$r/gcc/xgcc ]; then \ |
357 | $(CC_FOR_TARGET) -print-prog-name=nm ; \ | |
252b5132 | 358 | else \ |
3f152009 | 359 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
360 | echo $(NM); \ |
361 | else \ | |
362 | t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ | |
363 | fi; \ | |
364 | fi` | |
365 | ||
366 | # The first rule in the file had better be this one. Don't put any above it. | |
367 | # This lives here to allow makefile fragments to contain dependencies. | |
368 | all: all.normal | |
369 | .PHONY: all | |
370 | ||
252b5132 RH |
371 | #### host and target specific makefile fragments come in here. |
372 | ### | |
373 | ||
374 | # Flags to pass down to all sub-makes. | |
375 | # Please keep these in alphabetical order. | |
376 | BASE_FLAGS_TO_PASS = \ | |
377 | "AR_FLAGS=$(AR_FLAGS)" \ | |
378 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ | |
379 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
380 | "BISON=$(BISON)" \ | |
381 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
382 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
383 | "CFLAGS=$(CFLAGS)" \ | |
384 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
75205f78 | 385 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ |
252b5132 RH |
386 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
387 | "CXXFLAGS=$(CXXFLAGS)" \ | |
388 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | |
389 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
390 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | |
391 | "INSTALL=$(INSTALL)" \ | |
392 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
393 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
394 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
395 | "LDFLAGS=$(LDFLAGS)" \ | |
396 | "LEX=$(LEX)" \ | |
397 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ | |
398 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
399 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
400 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
401 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
402 | "M4=$(M4)" \ | |
403 | "MAKE=$(MAKE)" \ | |
404 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
405 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
406 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ | |
407 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ | |
408 | "SHELL=$(SHELL)" \ | |
409 | "EXPECT=$(EXPECT)" \ | |
410 | "RUNTEST=$(RUNTEST)" \ | |
411 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
412 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ | |
413 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ | |
414 | "YACC=$(YACC)" \ | |
415 | "bindir=$(bindir)" \ | |
416 | "datadir=$(datadir)" \ | |
417 | "exec_prefix=$(exec_prefix)" \ | |
418 | "includedir=$(includedir)" \ | |
419 | "infodir=$(infodir)" \ | |
420 | "libdir=$(libdir)" \ | |
421 | "libexecdir=$(libexecdir)" \ | |
422 | "lispdir=$(lispdir)" \ | |
75205f78 DD |
423 | "libstdcxx_incdir=$(libstdcxx_incdir)" \ |
424 | "libsubdir=$(libsubdir)" \ | |
252b5132 RH |
425 | "localstatedir=$(localstatedir)" \ |
426 | "mandir=$(mandir)" \ | |
427 | "oldincludedir=$(oldincludedir)" \ | |
428 | "prefix=$(prefix)" \ | |
429 | "sbindir=$(sbindir)" \ | |
430 | "sharedstatedir=$(sharedstatedir)" \ | |
431 | "sysconfdir=$(sysconfdir)" \ | |
432 | "tooldir=$(tooldir)" \ | |
ba73c63f | 433 | "build_tooldir=$(build_tooldir)" \ |
252b5132 RH |
434 | "gxx_include_dir=$(gxx_include_dir)" \ |
435 | "gcc_version=$(gcc_version)" \ | |
436 | "gcc_version_trigger=$(gcc_version_trigger)" \ | |
75205f78 | 437 | "target_alias=$(target_alias)" |
252b5132 | 438 | |
dec0cb0c AO |
439 | # For any flags above that may contain shell code that varies from one |
440 | # target library to another. When doing recursive invocations of the | |
441 | # top-level Makefile, we don't want the outer make to evaluate them, | |
442 | # so we pass these variables down unchanged. They must not contain | |
443 | # single nor double quotes. | |
444 | RECURSE_FLAGS = \ | |
930314a4 NN |
445 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ |
446 | RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ | |
dec0cb0c | 447 | |
252b5132 RH |
448 | # Flags to pass down to most sub-makes, in which we're building with |
449 | # the host environment. | |
450 | # If any variables are added here, they must be added to do-*, below. | |
451 | EXTRA_HOST_FLAGS = \ | |
452 | 'AR=$(AR)' \ | |
453 | 'AS=$(AS)' \ | |
454 | 'CC=$(CC)' \ | |
455 | 'CXX=$(CXX)' \ | |
456 | 'DLLTOOL=$(DLLTOOL)' \ | |
457 | 'LD=$(LD)' \ | |
458 | 'NM=$(NM)' \ | |
75205f78 | 459 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ |
252b5132 RH |
460 | 'WINDRES=$(WINDRES)' |
461 | ||
462 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
463 | ||
464 | # Flags that are concerned with the location of the X11 include files | |
465 | # and library files | |
466 | # | |
467 | # NOTE: until the top-level is getting the values via autoconf, it only | |
468 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
469 | # values in child directories. Only variables that don't conflict with | |
470 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
471 | # | |
472 | X11_FLAGS_TO_PASS = \ | |
473 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | |
474 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
475 | ||
476 | # Flags to pass down to makes which are built with the target environment. | |
477 | # The double $ decreases the length of the command line; the variables | |
478 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
479 | # If any variables are added here, they must be added to do-*, below. | |
480 | EXTRA_TARGET_FLAGS = \ | |
481 | 'AR=$$(AR_FOR_TARGET)' \ | |
482 | 'AS=$$(AS_FOR_TARGET)' \ | |
483 | 'CC=$$(CC_FOR_TARGET)' \ | |
484 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
485 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
486 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | |
487 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
488 | 'LD=$$(LD_FOR_TARGET)' \ | |
489 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | |
490 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
491 | 'NM=$$(NM_FOR_TARGET)' \ | |
492 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | |
493 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | |
494 | ||
495 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
496 | ||
497 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
498 | # unfortunately needs the native compiler and the target ar and | |
499 | # ranlib. | |
500 | # If any variables are added here, they must be added to do-*, below. | |
501 | # The HOST_* variables are a special case, which are used for the gcc | |
502 | # cross-building scheme. | |
503 | EXTRA_GCC_FLAGS = \ | |
504 | 'AR=$(AR)' \ | |
505 | 'AS=$(AS)' \ | |
506 | 'CC=$(CC)' \ | |
507 | 'CXX=$(CXX)' \ | |
508 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
3866be5d | 509 | 'BUILD_CC=$(CC_FOR_BUILD)' \ |
27f15fdd DD |
510 | 'BUILD_PREFIX=$(BUILD_PREFIX)' \ |
511 | 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \ | |
252b5132 | 512 | 'NM=$(NM)' \ |
75205f78 | 513 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ |
252b5132 RH |
514 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
515 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ | |
75205f78 | 516 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
252b5132 RH |
517 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \ |
518 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \ | |
519 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | |
252b5132 RH |
520 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
521 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | |
522 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \ | |
523 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \ | |
75205f78 | 524 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
252b5132 RH |
525 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" |
526 | ||
527 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) | |
528 | ||
db1ac78d NN |
529 | configure-host: @configure_host_modules@ |
530 | configure-target: @configure_target_modules@ | |
252b5132 RH |
531 | |
532 | # This is a list of the targets for which we can do a clean-{target}. | |
533 | CLEAN_MODULES = \ | |
252b5132 RH |
534 | clean-ash \ |
535 | clean-autoconf \ | |
536 | clean-automake \ | |
537 | clean-bash \ | |
538 | clean-bfd \ | |
405ea7a0 | 539 | clean-opcodes \ |
252b5132 RH |
540 | clean-binutils \ |
541 | clean-bison \ | |
542 | clean-byacc \ | |
543 | clean-bzip2 \ | |
252b5132 RH |
544 | clean-db \ |
545 | clean-dejagnu \ | |
546 | clean-diff \ | |
547 | clean-dosutils \ | |
548 | clean-etc \ | |
75205f78 | 549 | clean-fastjar \ |
252b5132 RH |
550 | clean-fileutils \ |
551 | clean-findutils \ | |
552 | clean-find \ | |
553 | clean-flex \ | |
554 | clean-gas \ | |
555 | clean-gawk \ | |
556 | clean-gettext \ | |
557 | clean-gnuserv \ | |
558 | clean-gprof \ | |
559 | clean-grep \ | |
252b5132 RH |
560 | clean-gzip \ |
561 | clean-hello \ | |
562 | clean-indent \ | |
252b5132 | 563 | clean-intl \ |
405ea7a0 | 564 | clean-tcl \ |
252b5132 RH |
565 | clean-itcl \ |
566 | clean-ld \ | |
567 | clean-libgui \ | |
568 | clean-libiberty \ | |
569 | clean-libtool \ | |
570 | clean-m4 \ | |
571 | clean-make \ | |
572 | clean-mmalloc \ | |
252b5132 RH |
573 | clean-patch \ |
574 | clean-perl \ | |
575 | clean-prms \ | |
576 | clean-rcs \ | |
577 | clean-readline \ | |
578 | clean-release \ | |
579 | clean-recode \ | |
580 | clean-sed \ | |
581 | clean-send-pr \ | |
582 | clean-shellutils \ | |
8817b92e | 583 | clean-sid \ |
252b5132 | 584 | clean-sim \ |
ba73c63f | 585 | clean-snavigator \ |
252b5132 | 586 | clean-tar \ |
252b5132 RH |
587 | clean-texinfo \ |
588 | clean-textutils \ | |
252b5132 RH |
589 | clean-time \ |
590 | clean-uudecode \ | |
591 | clean-wdiff \ | |
5cec67bf | 592 | clean-zip \ |
3866be5d | 593 | clean-zlib \ |
52d7cdee | 594 | clean-utils |
252b5132 RH |
595 | |
596 | # All of the target modules that can be cleaned | |
597 | CLEAN_TARGET_MODULES = \ | |
ba73c63f | 598 | clean-target-libstdc++-v3 \ |
252b5132 | 599 | clean-target-newlib \ |
ba73c63f | 600 | clean-target-libf2c \ |
ba73c63f | 601 | clean-target-libobjc \ |
252b5132 RH |
602 | clean-target-winsup \ |
603 | clean-target-libgloss \ | |
604 | clean-target-libiberty \ | |
605 | clean-target-gperf \ | |
606 | clean-target-examples \ | |
ba73c63f JM |
607 | clean-target-libffi \ |
608 | clean-target-libjava \ | |
609 | clean-target-zlib \ | |
610 | clean-target-boehm-gc \ | |
dd2768ff | 611 | clean-target-qthreads \ |
52d7cdee | 612 | clean-target-rda |
252b5132 RH |
613 | |
614 | # All of the x11 modules that can be cleaned | |
615 | CLEAN_X11_MODULES = \ | |
252b5132 RH |
616 | clean-gdb \ |
617 | clean-expect \ | |
252b5132 | 618 | clean-guile \ |
252b5132 | 619 | clean-tk \ |
852e5f18 | 620 | clean-tix |
252b5132 RH |
621 | |
622 | # The target built for a native build. | |
3866be5d | 623 | # This list only includes modules actually being configured and built. |
252b5132 | 624 | .PHONY: all.normal |
3866be5d NN |
625 | all.normal: @all_build_modules@ \ |
626 | @all_host_modules@ \ | |
627 | @all_target_modules@ | |
628 | ||
db1ac78d | 629 | all-host: @all_host_modules@ |
3866be5d | 630 | all-target: @all_target_modules@ |
252b5132 RH |
631 | |
632 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
633 | # ``make X'' in all subdirectories (because, in general, there is a | |
634 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
635 | # but it may do additional work as well). | |
636 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | |
637 | # because it is so large that it can easily overflow the command line | |
638 | # length limit on some systems. | |
e393202e NN |
639 | |
640 | .PHONY: do-clean | |
641 | do-clean: | |
642 | @r=`${PWD}`; export r; \ | |
643 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
644 | $(SET_LIB_PATH) \ | |
645 | for i in $(SUBDIRS) -dummy-; do \ | |
646 | if [ -f ./$$i/Makefile ]; then \ | |
647 | case $$i in \ | |
648 | gcc) \ | |
649 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
650 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
651 | done; \ | |
652 | ;; \ | |
653 | *) \ | |
654 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
655 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
656 | done; \ | |
657 | ;; \ | |
658 | esac ; \ | |
1086bc09 | 659 | (cd ./$$i && \ |
e393202e NN |
660 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
661 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
662 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
663 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
664 | clean) \ |
665 | || exit 1; \ | |
e393202e NN |
666 | else true; fi; \ |
667 | done | |
668 | # Break into two pieces | |
d5de0a84 NC |
669 | r=`${PWD}`; export r; \ |
670 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 671 | $(SET_LIB_PATH) \ |
e393202e NN |
672 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ |
673 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
674 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
675 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
676 | done; \ | |
1086bc09 | 677 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
678 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
679 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
680 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
681 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
682 | clean) \ |
683 | || exit 1; \ | |
e393202e NN |
684 | else true; fi; \ |
685 | done | |
686 | ||
687 | .PHONY: do-distclean | |
688 | do-distclean: | |
689 | @r=`${PWD}`; export r; \ | |
690 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
691 | $(SET_LIB_PATH) \ | |
252b5132 RH |
692 | for i in $(SUBDIRS) -dummy-; do \ |
693 | if [ -f ./$$i/Makefile ]; then \ | |
694 | case $$i in \ | |
695 | gcc) \ | |
696 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
3f152009 | 697 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 RH |
698 | done; \ |
699 | ;; \ | |
700 | *) \ | |
701 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
3f152009 | 702 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 RH |
703 | done; \ |
704 | ;; \ | |
705 | esac ; \ | |
1086bc09 | 706 | (cd ./$$i && \ |
252b5132 RH |
707 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
708 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
75205f78 | 709 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
252b5132 | 710 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
711 | distclean) \ |
712 | || exit 1; \ | |
252b5132 RH |
713 | else true; fi; \ |
714 | done | |
e393202e | 715 | # Break into two pieces |
d5de0a84 NC |
716 | r=`${PWD}`; export r; \ |
717 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
718 | $(SET_LIB_PATH) \ |
719 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
720 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
721 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
3f152009 | 722 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 | 723 | done; \ |
1086bc09 | 724 | (cd $(TARGET_SUBDIR)/$$i && \ |
252b5132 RH |
725 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
726 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
75205f78 | 727 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
252b5132 | 728 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
729 | distclean) \ |
730 | || exit 1; \ | |
252b5132 RH |
731 | else true; fi; \ |
732 | done | |
733 | ||
e393202e NN |
734 | .PHONY: do-dvi |
735 | do-dvi: | |
736 | @r=`${PWD}`; export r; \ | |
737 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
738 | $(SET_LIB_PATH) \ | |
739 | for i in $(SUBDIRS) -dummy-; do \ | |
740 | if [ -f ./$$i/Makefile ]; then \ | |
741 | case $$i in \ | |
742 | gcc) \ | |
743 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
744 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
745 | done; \ | |
746 | ;; \ | |
747 | *) \ | |
748 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
749 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
750 | done; \ | |
751 | ;; \ | |
752 | esac ; \ | |
1086bc09 | 753 | (cd ./$$i && \ |
e393202e NN |
754 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
755 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
756 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
757 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
758 | dvi) \ |
759 | || exit 1; \ | |
e393202e NN |
760 | else true; fi; \ |
761 | done | |
762 | # Break into two pieces | |
763 | r=`${PWD}`; export r; \ | |
764 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
765 | $(SET_LIB_PATH) \ | |
766 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
767 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
768 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
769 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
770 | done; \ | |
1086bc09 | 771 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
772 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
773 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
774 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
775 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
776 | dvi) \ |
777 | || exit 1; \ | |
e393202e NN |
778 | else true; fi; \ |
779 | done | |
252b5132 | 780 | |
e393202e NN |
781 | .PHONY: do-info |
782 | do-info: | |
783 | @r=`${PWD}`; export r; \ | |
784 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
785 | $(SET_LIB_PATH) \ | |
786 | for i in $(SUBDIRS) -dummy-; do \ | |
787 | if [ -f ./$$i/Makefile ]; then \ | |
788 | case $$i in \ | |
789 | gcc) \ | |
790 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
791 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
792 | done; \ | |
793 | ;; \ | |
794 | *) \ | |
795 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
796 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
797 | done; \ | |
798 | ;; \ | |
799 | esac ; \ | |
1086bc09 | 800 | (cd ./$$i && \ |
e393202e NN |
801 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
802 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
803 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
804 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
805 | info) \ |
806 | || exit 1; \ | |
e393202e NN |
807 | else true; fi; \ |
808 | done | |
809 | # Break into two pieces | |
810 | r=`${PWD}`; export r; \ | |
811 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
812 | $(SET_LIB_PATH) \ | |
813 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
814 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
815 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
816 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
817 | done; \ | |
1086bc09 | 818 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
819 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
820 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
821 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
822 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
823 | info) \ |
824 | || exit 1; \ | |
e393202e NN |
825 | else true; fi; \ |
826 | done | |
252b5132 | 827 | |
e393202e NN |
828 | .PHONY: do-install-info |
829 | do-install-info: | |
830 | @r=`${PWD}`; export r; \ | |
831 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
832 | $(SET_LIB_PATH) \ | |
833 | for i in $(SUBDIRS) -dummy-; do \ | |
834 | if [ -f ./$$i/Makefile ]; then \ | |
835 | case $$i in \ | |
836 | gcc) \ | |
837 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
838 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
839 | done; \ | |
840 | ;; \ | |
841 | *) \ | |
842 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
843 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
844 | done; \ | |
845 | ;; \ | |
846 | esac ; \ | |
1086bc09 | 847 | (cd ./$$i && \ |
e393202e NN |
848 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
849 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
850 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
851 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
852 | install-info) \ |
853 | || exit 1; \ | |
e393202e NN |
854 | else true; fi; \ |
855 | done | |
856 | # Break into two pieces | |
857 | r=`${PWD}`; export r; \ | |
858 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
859 | $(SET_LIB_PATH) \ | |
860 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
861 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
862 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
863 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
864 | done; \ | |
1086bc09 | 865 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
866 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
867 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
868 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
869 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
870 | install-info) \ |
871 | || exit 1; \ | |
e393202e NN |
872 | else true; fi; \ |
873 | done | |
252b5132 | 874 | |
e393202e NN |
875 | .PHONY: do-installcheck |
876 | do-installcheck: | |
877 | @r=`${PWD}`; export r; \ | |
d5de0a84 | 878 | s=`cd $(srcdir); ${PWD}`; export s; \ |
e393202e NN |
879 | $(SET_LIB_PATH) \ |
880 | for i in $(SUBDIRS) -dummy-; do \ | |
881 | if [ -f ./$$i/Makefile ]; then \ | |
882 | case $$i in \ | |
883 | gcc) \ | |
884 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
885 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
886 | done; \ | |
887 | ;; \ | |
888 | *) \ | |
889 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
890 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
891 | done; \ | |
892 | ;; \ | |
893 | esac ; \ | |
1086bc09 | 894 | (cd ./$$i && \ |
e393202e NN |
895 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
896 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
897 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
898 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
899 | installcheck) \ |
900 | || exit 1; \ | |
e393202e NN |
901 | else true; fi; \ |
902 | done | |
903 | # Break into two pieces | |
904 | r=`${PWD}`; export r; \ | |
905 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
906 | $(SET_LIB_PATH) \ | |
907 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
908 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
909 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
910 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
911 | done; \ | |
1086bc09 | 912 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
913 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
914 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
915 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
916 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
917 | installcheck) \ |
918 | || exit 1; \ | |
e393202e NN |
919 | else true; fi; \ |
920 | done | |
252b5132 | 921 | |
e393202e NN |
922 | .PHONY: do-mostlyclean |
923 | do-mostlyclean: | |
924 | @r=`${PWD}`; export r; \ | |
925 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
926 | $(SET_LIB_PATH) \ | |
927 | for i in $(SUBDIRS) -dummy-; do \ | |
928 | if [ -f ./$$i/Makefile ]; then \ | |
929 | case $$i in \ | |
930 | gcc) \ | |
931 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
932 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
933 | done; \ | |
934 | ;; \ | |
935 | *) \ | |
936 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
937 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
938 | done; \ | |
939 | ;; \ | |
940 | esac ; \ | |
1086bc09 | 941 | (cd ./$$i && \ |
e393202e NN |
942 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
943 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
944 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
945 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
946 | mostlyclean) \ |
947 | || exit 1; \ | |
e393202e NN |
948 | else true; fi; \ |
949 | done | |
950 | # Break into two pieces | |
951 | r=`${PWD}`; export r; \ | |
952 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
953 | $(SET_LIB_PATH) \ | |
954 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
955 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
956 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
957 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
958 | done; \ | |
1086bc09 | 959 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
960 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
961 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
962 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
963 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
964 | mostlyclean) \ |
965 | || exit 1; \ | |
e393202e NN |
966 | else true; fi; \ |
967 | done | |
252b5132 | 968 | |
e393202e NN |
969 | .PHONY: do-maintainer-clean |
970 | do-maintainer-clean: | |
971 | @r=`${PWD}`; export r; \ | |
972 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
973 | $(SET_LIB_PATH) \ | |
974 | for i in $(SUBDIRS) -dummy-; do \ | |
975 | if [ -f ./$$i/Makefile ]; then \ | |
976 | case $$i in \ | |
977 | gcc) \ | |
978 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
979 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
980 | done; \ | |
981 | ;; \ | |
982 | *) \ | |
983 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
984 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
985 | done; \ | |
986 | ;; \ | |
987 | esac ; \ | |
1086bc09 | 988 | (cd ./$$i && \ |
e393202e NN |
989 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
990 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
991 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
992 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
993 | maintainer-clean) \ |
994 | || exit 1; \ | |
e393202e NN |
995 | else true; fi; \ |
996 | done | |
997 | # Break into two pieces | |
998 | r=`${PWD}`; export r; \ | |
999 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1000 | $(SET_LIB_PATH) \ | |
1001 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
1002 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
1003 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
1004 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1005 | done; \ | |
1086bc09 | 1006 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
1007 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1008 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
1009 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
1010 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
1011 | maintainer-clean) \ |
1012 | || exit 1; \ | |
e393202e NN |
1013 | else true; fi; \ |
1014 | done | |
1015 | ||
1016 | .PHONY: do-TAGS | |
1017 | do-TAGS: | |
1018 | @r=`${PWD}`; export r; \ | |
1019 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1020 | $(SET_LIB_PATH) \ | |
1021 | for i in $(SUBDIRS) -dummy-; do \ | |
1022 | if [ -f ./$$i/Makefile ]; then \ | |
1023 | case $$i in \ | |
1024 | gcc) \ | |
1025 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
1026 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1027 | done; \ | |
1028 | ;; \ | |
1029 | *) \ | |
1030 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
1031 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1032 | done; \ | |
1033 | ;; \ | |
1034 | esac ; \ | |
1086bc09 | 1035 | (cd ./$$i && \ |
e393202e NN |
1036 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1037 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
1038 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
1039 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
1040 | TAGS) \ |
1041 | || exit 1; \ | |
e393202e NN |
1042 | else true; fi; \ |
1043 | done | |
1044 | # Break into two pieces | |
1045 | r=`${PWD}`; export r; \ | |
1046 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1047 | $(SET_LIB_PATH) \ | |
1048 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
1049 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
1050 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
1051 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1052 | done; \ | |
1086bc09 | 1053 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
1054 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1055 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
1056 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ | |
1057 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ | |
1086bc09 NN |
1058 | TAGS) \ |
1059 | || exit 1; \ | |
e393202e NN |
1060 | else true; fi; \ |
1061 | done | |
1062 | ||
1063 | ||
1064 | ||
1065 | # Here are the targets which correspond to the do-X targets. | |
1066 | ||
1067 | .PHONY: info installcheck dvi install-info | |
1068 | .PHONY: clean distclean mostlyclean maintainer-clean realclean | |
1069 | .PHONY: local-clean local-distclean local-maintainer-clean | |
1070 | info: do-info | |
1071 | installcheck: do-installcheck | |
1072 | dvi: do-dvi | |
1073 | ||
43d92c63 NN |
1074 | # Make sure makeinfo is built before we do a `make info', if we're |
1075 | # in fact building texinfo. | |
1076 | do-info: maybe-all-texinfo | |
e393202e NN |
1077 | |
1078 | install-info: do-install-info dir.info | |
1079 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1080 | if [ -f dir.info ] ; then \ | |
1081 | $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ | |
1082 | else true ; fi | |
1083 | ||
1084 | local-clean: | |
1085 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | |
1086 | ||
1087 | local-distclean: | |
252b5132 | 1088 | -rm -f Makefile config.status config.cache mh-frag mt-frag |
1086bc09 | 1089 | -rm -f multilib.out multilib.ts multilib.tmp |
252b5132 RH |
1090 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1091 | rm -rf $(TARGET_SUBDIR); \ | |
1092 | else true; fi | |
75205f78 DD |
1093 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1094 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
1095 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | |
1096 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
1097 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | |
252b5132 RH |
1098 | |
1099 | local-maintainer-clean: | |
1100 | @echo "This command is intended for maintainers to use;" | |
1101 | @echo "it deletes files that may require special tools to rebuild." | |
1102 | ||
1103 | clean: do-clean local-clean | |
1104 | mostlyclean: do-mostlyclean local-clean | |
1105 | distclean: do-distclean local-clean local-distclean | |
1106 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1107 | maintainer-clean: local-distclean | |
1108 | realclean: maintainer-clean | |
1109 | ||
1110 | # This rule is used to clean specific modules. | |
1111 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | |
1112 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | |
1113 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | |
1114 | if [ -f ./$${dir}/Makefile ] ; then \ | |
d5de0a84 NC |
1115 | r=`${PWD}`; export r; \ |
1116 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 1117 | $(SET_LIB_PATH) \ |
1086bc09 | 1118 | (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \ |
252b5132 RH |
1119 | else \ |
1120 | true; \ | |
1121 | fi | |
1122 | ||
1123 | .PHONY: $(CLEAN_TARGET_MODULES) | |
1124 | $(CLEAN_TARGET_MODULES): | |
1125 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | |
1126 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1127 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
d5de0a84 NC |
1128 | r=`${PWD}`; export r; \ |
1129 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 1130 | $(SET_LIB_PATH) \ |
1086bc09 | 1131 | (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ |
252b5132 RH |
1132 | else \ |
1133 | true; \ | |
1134 | fi | |
1135 | ||
5cec67bf AO |
1136 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc |
1137 | clean-target-libgcc: | |
1138 | test ! -d gcc/libgcc || \ | |
1139 | (cd gcc/libgcc && find . -type d -print) | \ | |
1140 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | |
1141 | -rm -rf gcc/libgcc | |
252b5132 RH |
1142 | |
1143 | # Check target. | |
1144 | ||
80413487 RH |
1145 | .PHONY: check do-check |
1146 | check: | |
1147 | $(MAKE) do-check NOTPARALLEL=parallel-ok | |
1148 | ||
3866be5d NN |
1149 | # Only include modules actually being configured and built. |
1150 | do-check: @check_host_modules@ \ | |
1151 | @check_target_modules@ | |
252b5132 RH |
1152 | |
1153 | # Automated reporting of test results. | |
1154 | ||
1155 | warning.log: build.log | |
1156 | $(srcdir)/contrib/warn_summary build.log > $@ | |
1157 | ||
1158 | mail-report.log: | |
1159 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1160 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1161 | fi; \ | |
1162 | $(srcdir)/contrib/test_summary -t >$@ | |
1163 | chmod +x $@ | |
1164 | echo If you really want to send e-mail, run ./$@ now | |
1165 | ||
1166 | mail-report-with-warnings.log: warning.log | |
1167 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1168 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1169 | fi; \ | |
1170 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1171 | chmod +x $@ | |
1172 | echo If you really want to send e-mail, run ./$@ now | |
1173 | ||
1174 | # Installation targets. | |
1175 | ||
ae831be5 | 1176 | .PHONY: install uninstall |
3866be5d NN |
1177 | install: installdirs @install_host_modules@ @install_target_modules@ |
1178 | ||
1179 | install-target: @install_target_modules@ | |
252b5132 RH |
1180 | |
1181 | uninstall: | |
1182 | @echo "the uninstall target is not supported in this tree" | |
1183 | ||
3866be5d NN |
1184 | .PHONY: install.all |
1185 | install.all: install-no-fixedincludes | |
1186 | @if [ -f ./gcc/Makefile ] ; then \ | |
1187 | r=`${PWD}` ; export r ; \ | |
1188 | $(SET_LIB_PATH) \ | |
1086bc09 | 1189 | (cd ./gcc && \ |
3866be5d NN |
1190 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ |
1191 | else \ | |
1192 | true ; \ | |
1193 | fi | |
1194 | ||
1195 | # install-no-fixedincludes is used because Cygnus can not distribute | |
1196 | # the fixed header files. | |
1197 | .PHONY: install-no-fixedincludes | |
1198 | install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \ | |
1199 | @install_target_modules@ gcc-no-fixedincludes | |
1200 | ||
15723a45 | 1201 | ### other supporting targets |
3866be5d | 1202 | |
15723a45 NN |
1203 | MAKEDIRS= \ |
1204 | $(DESTDIR)$(prefix) \ | |
1205 | $(DESTDIR)$(exec_prefix) | |
1206 | .PHONY: installdirs | |
1207 | installdirs: mkinstalldirs | |
1208 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
3866be5d | 1209 | |
15723a45 NN |
1210 | dir.info: do-install-info |
1211 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
1212 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
1213 | mv -f dir.info.new dir.info ; \ | |
1214 | else true ; \ | |
3866be5d NN |
1215 | fi |
1216 | ||
15723a45 NN |
1217 | dist: |
1218 | @echo "Building a full distribution of this tree isn't done" | |
1219 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1220 | ||
1221 | etags tags: TAGS | |
1222 | ||
1223 | # Right now this just builds TAGS in each subdirectory. emacs19 has the | |
1224 | # ability to use several tags files at once, so there is probably no need | |
1225 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
1226 | # (if we felt like it) have this Makefile write a piece of elisp which | |
1227 | # the user could load to tell emacs19 where all the TAGS files we just | |
1228 | # built are. | |
1229 | TAGS: do-TAGS | |
1230 | ||
15723a45 NN |
1231 | # -------------------------------------- |
1232 | # Modules which run on the build machine | |
1233 | # -------------------------------------- | |
1234 | ||
930314a4 NN |
1235 | .PHONY: configure-build-libiberty maybe-configure-build-libiberty |
1236 | maybe-configure-build-libiberty: | |
15723a45 | 1237 | configure-build-libiberty: $(BUILD_SUBDIR)/libiberty/Makefile |
14c428fb | 1238 | $(BUILD_SUBDIR)/libiberty/Makefile: config.status |
15723a45 | 1239 | @[ -d $(BUILD_SUBDIR)/libiberty ] || mkdir $(BUILD_SUBDIR)/libiberty;\ |
3866be5d NN |
1240 | r=`${PWD}`; export r; \ |
1241 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1242 | AR="$(AR_FOR_BUILD)"; export AR; \ | |
1243 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
1244 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
1245 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
1246 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
1247 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
1248 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
1249 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
1250 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
1251 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
1252 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
1253 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
1254 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | |
1255 | echo Configuring in $(BUILD_SUBDIR)/libiberty; \ | |
1256 | cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \ | |
1257 | case $(srcdir) in \ | |
1258 | /* | [A-Za-z]:[\\/]*) \ | |
1259 | topdir=$(srcdir) ;; \ | |
1260 | *) \ | |
1261 | case "$(BUILD_SUBDIR)" in \ | |
1262 | .) topdir="../$(srcdir)" ;; \ | |
1263 | *) topdir="../../$(srcdir)" ;; \ | |
1264 | esac ;; \ | |
1265 | esac; \ | |
1266 | if [ "$(srcdir)" = "." ] ; then \ | |
1267 | if [ "$(BUILD_SUBDIR)" != "." ] ; then \ | |
1268 | if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \ | |
1269 | if [ -f Makefile ]; then \ | |
1270 | if $(MAKE) distclean; then \ | |
1271 | true; \ | |
1272 | else \ | |
1273 | exit 1; \ | |
1274 | fi; \ | |
1275 | else \ | |
1276 | true; \ | |
1277 | fi; \ | |
1278 | else \ | |
1279 | exit 1; \ | |
1280 | fi; \ | |
1281 | else \ | |
1282 | true; \ | |
1283 | fi; \ | |
1284 | srcdiroption="--srcdir=."; \ | |
1285 | libsrcdir="."; \ | |
1286 | else \ | |
1287 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
1288 | libsrcdir="$$s/libiberty"; \ | |
1289 | fi; \ | |
930314a4 NN |
1290 | rm -f no-such-file || : ; \ |
1291 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
1292 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1293 | --with-build-subdir="$(BUILD_SUBDIR)" \ | |
15723a45 NN |
1294 | || exit 1 |
1295 | ||
1296 | .PHONY: all-build-libiberty maybe-all-build-libiberty | |
1297 | maybe-all-build-libiberty: | |
1298 | all-build-libiberty: configure-build-libiberty | |
1299 | @r=`${PWD}`; export r; \ | |
1300 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1301 | (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all) | |
3866be5d NN |
1302 | |
1303 | ||
15723a45 NN |
1304 | # -------------------------------------- |
1305 | # Modules which run on the host machine | |
1306 | # -------------------------------------- | |
3866be5d | 1307 | |
e2b9e2dc NN |
1308 | .PHONY: configure-ash maybe-configure-ash |
1309 | maybe-configure-ash: | |
1310 | configure-ash: ash/Makefile | |
1311 | ||
1312 | ash/Makefile: config.status | |
1313 | @[ -d ash ] || mkdir ash; \ | |
1314 | r=`${PWD}`; export r; \ | |
1315 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1316 | CC="$(CC)"; export CC; \ | |
1317 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1318 | CXX="$(CXX)"; export CXX; \ | |
1319 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1320 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1321 | AR="$(AR)"; export AR; \ | |
1322 | AS="$(AS)"; export AS; \ | |
1323 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1324 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1325 | LD="$(LD)"; export LD; \ | |
1326 | NM="$(NM)"; export NM; \ | |
1327 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1328 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1329 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1330 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1331 | fi; \ | |
1332 | echo Configuring in ash; \ | |
1333 | cd ash || exit 1; \ | |
1334 | case $(srcdir) in \ | |
1335 | \.) \ | |
1336 | srcdiroption="--srcdir=."; \ | |
1337 | libsrcdir=".";; \ | |
1338 | /* | [A-Za-z]:[\\/]*) \ | |
1339 | srcdiroption="--srcdir=$(srcdir)/ash"; \ | |
1340 | libsrcdir="$$s/ash";; \ | |
1341 | *) \ | |
1342 | srcdiroption="--srcdir=../$(srcdir)/ash"; \ | |
1343 | libsrcdir="$$s/ash";; \ | |
1344 | esac; \ | |
1345 | $(SHELL) $${libsrcdir}/configure \ | |
1346 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1347 | || exit 1 | |
1348 | ||
930314a4 NN |
1349 | .PHONY: all-ash maybe-all-ash |
1350 | maybe-all-ash: | |
db1ac78d | 1351 | all-ash: configure-ash |
930314a4 | 1352 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1353 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1354 | $(SET_LIB_PATH) \ | |
1086bc09 | 1355 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1356 | |
1357 | ||
1358 | .PHONY: check-ash | |
1359 | check-ash: | |
930314a4 | 1360 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1361 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1362 | $(SET_LIB_PATH) \ | |
1086bc09 | 1363 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1364 | |
1365 | ||
1366 | ||
930314a4 NN |
1367 | .PHONY: install-ash maybe-install-ash |
1368 | maybe-install-ash: | |
3866be5d | 1369 | install-ash: installdirs |
930314a4 | 1370 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1371 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1372 | $(SET_LIB_PATH) \ | |
1086bc09 | 1373 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1374 | |
1375 | ||
e2b9e2dc NN |
1376 | .PHONY: configure-autoconf maybe-configure-autoconf |
1377 | maybe-configure-autoconf: | |
1378 | configure-autoconf: autoconf/Makefile | |
1379 | ||
1380 | autoconf/Makefile: config.status | |
1381 | @[ -d autoconf ] || mkdir autoconf; \ | |
1382 | r=`${PWD}`; export r; \ | |
1383 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1384 | CC="$(CC)"; export CC; \ | |
1385 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1386 | CXX="$(CXX)"; export CXX; \ | |
1387 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1388 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1389 | AR="$(AR)"; export AR; \ | |
1390 | AS="$(AS)"; export AS; \ | |
1391 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1392 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1393 | LD="$(LD)"; export LD; \ | |
1394 | NM="$(NM)"; export NM; \ | |
1395 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1396 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1397 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1398 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1399 | fi; \ | |
1400 | echo Configuring in autoconf; \ | |
1401 | cd autoconf || exit 1; \ | |
1402 | case $(srcdir) in \ | |
1403 | \.) \ | |
1404 | srcdiroption="--srcdir=."; \ | |
1405 | libsrcdir=".";; \ | |
1406 | /* | [A-Za-z]:[\\/]*) \ | |
1407 | srcdiroption="--srcdir=$(srcdir)/autoconf"; \ | |
1408 | libsrcdir="$$s/autoconf";; \ | |
1409 | *) \ | |
1410 | srcdiroption="--srcdir=../$(srcdir)/autoconf"; \ | |
1411 | libsrcdir="$$s/autoconf";; \ | |
1412 | esac; \ | |
1413 | $(SHELL) $${libsrcdir}/configure \ | |
1414 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1415 | || exit 1 | |
1416 | ||
930314a4 NN |
1417 | .PHONY: all-autoconf maybe-all-autoconf |
1418 | maybe-all-autoconf: | |
db1ac78d | 1419 | all-autoconf: configure-autoconf |
930314a4 | 1420 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1421 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1422 | $(SET_LIB_PATH) \ | |
1086bc09 | 1423 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1424 | |
1425 | ||
1426 | .PHONY: check-autoconf | |
1427 | check-autoconf: | |
930314a4 | 1428 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1429 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1430 | $(SET_LIB_PATH) \ | |
1086bc09 | 1431 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1432 | |
1433 | ||
1434 | ||
930314a4 NN |
1435 | .PHONY: install-autoconf maybe-install-autoconf |
1436 | maybe-install-autoconf: | |
3866be5d | 1437 | install-autoconf: installdirs |
930314a4 | 1438 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1439 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1440 | $(SET_LIB_PATH) \ | |
1086bc09 | 1441 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1442 | |
1443 | ||
e2b9e2dc NN |
1444 | .PHONY: configure-automake maybe-configure-automake |
1445 | maybe-configure-automake: | |
1446 | configure-automake: automake/Makefile | |
1447 | ||
1448 | automake/Makefile: config.status | |
1449 | @[ -d automake ] || mkdir automake; \ | |
1450 | r=`${PWD}`; export r; \ | |
1451 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1452 | CC="$(CC)"; export CC; \ | |
1453 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1454 | CXX="$(CXX)"; export CXX; \ | |
1455 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1456 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1457 | AR="$(AR)"; export AR; \ | |
1458 | AS="$(AS)"; export AS; \ | |
1459 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1460 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1461 | LD="$(LD)"; export LD; \ | |
1462 | NM="$(NM)"; export NM; \ | |
1463 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1464 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1465 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1466 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1467 | fi; \ | |
1468 | echo Configuring in automake; \ | |
1469 | cd automake || exit 1; \ | |
1470 | case $(srcdir) in \ | |
1471 | \.) \ | |
1472 | srcdiroption="--srcdir=."; \ | |
1473 | libsrcdir=".";; \ | |
1474 | /* | [A-Za-z]:[\\/]*) \ | |
1475 | srcdiroption="--srcdir=$(srcdir)/automake"; \ | |
1476 | libsrcdir="$$s/automake";; \ | |
1477 | *) \ | |
1478 | srcdiroption="--srcdir=../$(srcdir)/automake"; \ | |
1479 | libsrcdir="$$s/automake";; \ | |
1480 | esac; \ | |
1481 | $(SHELL) $${libsrcdir}/configure \ | |
1482 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1483 | || exit 1 | |
1484 | ||
930314a4 NN |
1485 | .PHONY: all-automake maybe-all-automake |
1486 | maybe-all-automake: | |
db1ac78d | 1487 | all-automake: configure-automake |
930314a4 | 1488 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1489 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1490 | $(SET_LIB_PATH) \ | |
1086bc09 | 1491 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1492 | |
1493 | ||
1494 | .PHONY: check-automake | |
1495 | check-automake: | |
930314a4 | 1496 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1497 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1498 | $(SET_LIB_PATH) \ | |
1086bc09 | 1499 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1500 | |
1501 | ||
1502 | ||
930314a4 NN |
1503 | .PHONY: install-automake maybe-install-automake |
1504 | maybe-install-automake: | |
3866be5d | 1505 | install-automake: installdirs |
930314a4 | 1506 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1507 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1508 | $(SET_LIB_PATH) \ | |
1086bc09 | 1509 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1510 | |
1511 | ||
e2b9e2dc NN |
1512 | .PHONY: configure-bash maybe-configure-bash |
1513 | maybe-configure-bash: | |
1514 | configure-bash: bash/Makefile | |
1515 | ||
1516 | bash/Makefile: config.status | |
1517 | @[ -d bash ] || mkdir bash; \ | |
1518 | r=`${PWD}`; export r; \ | |
1519 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1520 | CC="$(CC)"; export CC; \ | |
1521 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1522 | CXX="$(CXX)"; export CXX; \ | |
1523 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1524 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1525 | AR="$(AR)"; export AR; \ | |
1526 | AS="$(AS)"; export AS; \ | |
1527 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1528 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1529 | LD="$(LD)"; export LD; \ | |
1530 | NM="$(NM)"; export NM; \ | |
1531 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1532 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1533 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1534 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1535 | fi; \ | |
1536 | echo Configuring in bash; \ | |
1537 | cd bash || exit 1; \ | |
1538 | case $(srcdir) in \ | |
1539 | \.) \ | |
1540 | srcdiroption="--srcdir=."; \ | |
1541 | libsrcdir=".";; \ | |
1542 | /* | [A-Za-z]:[\\/]*) \ | |
1543 | srcdiroption="--srcdir=$(srcdir)/bash"; \ | |
1544 | libsrcdir="$$s/bash";; \ | |
1545 | *) \ | |
1546 | srcdiroption="--srcdir=../$(srcdir)/bash"; \ | |
1547 | libsrcdir="$$s/bash";; \ | |
1548 | esac; \ | |
1549 | $(SHELL) $${libsrcdir}/configure \ | |
1550 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1551 | || exit 1 | |
1552 | ||
930314a4 NN |
1553 | .PHONY: all-bash maybe-all-bash |
1554 | maybe-all-bash: | |
db1ac78d | 1555 | all-bash: configure-bash |
930314a4 | 1556 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1557 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1558 | $(SET_LIB_PATH) \ | |
1086bc09 | 1559 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1560 | |
1561 | ||
1562 | .PHONY: check-bash | |
1563 | check-bash: | |
930314a4 | 1564 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1565 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1566 | $(SET_LIB_PATH) \ | |
1086bc09 | 1567 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1568 | |
1569 | ||
1570 | ||
930314a4 NN |
1571 | .PHONY: install-bash maybe-install-bash |
1572 | maybe-install-bash: | |
3866be5d | 1573 | install-bash: installdirs |
930314a4 | 1574 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1575 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1576 | $(SET_LIB_PATH) \ | |
1086bc09 | 1577 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1578 | |
1579 | ||
e2b9e2dc NN |
1580 | .PHONY: configure-bfd maybe-configure-bfd |
1581 | maybe-configure-bfd: | |
1582 | configure-bfd: bfd/Makefile | |
1583 | ||
1584 | bfd/Makefile: config.status | |
1585 | @[ -d bfd ] || mkdir bfd; \ | |
1586 | r=`${PWD}`; export r; \ | |
1587 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1588 | CC="$(CC)"; export CC; \ | |
1589 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1590 | CXX="$(CXX)"; export CXX; \ | |
1591 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1592 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1593 | AR="$(AR)"; export AR; \ | |
1594 | AS="$(AS)"; export AS; \ | |
1595 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1596 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1597 | LD="$(LD)"; export LD; \ | |
1598 | NM="$(NM)"; export NM; \ | |
1599 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1600 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1601 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1602 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1603 | fi; \ | |
1604 | echo Configuring in bfd; \ | |
1605 | cd bfd || exit 1; \ | |
1606 | case $(srcdir) in \ | |
1607 | \.) \ | |
1608 | srcdiroption="--srcdir=."; \ | |
1609 | libsrcdir=".";; \ | |
1610 | /* | [A-Za-z]:[\\/]*) \ | |
1611 | srcdiroption="--srcdir=$(srcdir)/bfd"; \ | |
1612 | libsrcdir="$$s/bfd";; \ | |
1613 | *) \ | |
1614 | srcdiroption="--srcdir=../$(srcdir)/bfd"; \ | |
1615 | libsrcdir="$$s/bfd";; \ | |
1616 | esac; \ | |
1617 | $(SHELL) $${libsrcdir}/configure \ | |
1618 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1619 | || exit 1 | |
1620 | ||
930314a4 NN |
1621 | .PHONY: all-bfd maybe-all-bfd |
1622 | maybe-all-bfd: | |
db1ac78d | 1623 | all-bfd: configure-bfd |
930314a4 | 1624 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1625 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1626 | $(SET_LIB_PATH) \ | |
1086bc09 | 1627 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1628 | |
1629 | ||
1630 | .PHONY: check-bfd | |
1631 | check-bfd: | |
930314a4 | 1632 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1633 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1634 | $(SET_LIB_PATH) \ | |
1086bc09 | 1635 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1636 | |
1637 | ||
1638 | ||
930314a4 NN |
1639 | .PHONY: install-bfd maybe-install-bfd |
1640 | maybe-install-bfd: | |
3866be5d | 1641 | install-bfd: installdirs |
930314a4 | 1642 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1643 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1644 | $(SET_LIB_PATH) \ | |
1086bc09 | 1645 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1646 | |
1647 | ||
e2b9e2dc NN |
1648 | .PHONY: configure-opcodes maybe-configure-opcodes |
1649 | maybe-configure-opcodes: | |
1650 | configure-opcodes: opcodes/Makefile | |
1651 | ||
1652 | opcodes/Makefile: config.status | |
1653 | @[ -d opcodes ] || mkdir opcodes; \ | |
1654 | r=`${PWD}`; export r; \ | |
1655 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1656 | CC="$(CC)"; export CC; \ | |
1657 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1658 | CXX="$(CXX)"; export CXX; \ | |
1659 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1660 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1661 | AR="$(AR)"; export AR; \ | |
1662 | AS="$(AS)"; export AS; \ | |
1663 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1664 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1665 | LD="$(LD)"; export LD; \ | |
1666 | NM="$(NM)"; export NM; \ | |
1667 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1668 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1669 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1670 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1671 | fi; \ | |
1672 | echo Configuring in opcodes; \ | |
1673 | cd opcodes || exit 1; \ | |
1674 | case $(srcdir) in \ | |
1675 | \.) \ | |
1676 | srcdiroption="--srcdir=."; \ | |
1677 | libsrcdir=".";; \ | |
1678 | /* | [A-Za-z]:[\\/]*) \ | |
1679 | srcdiroption="--srcdir=$(srcdir)/opcodes"; \ | |
1680 | libsrcdir="$$s/opcodes";; \ | |
1681 | *) \ | |
1682 | srcdiroption="--srcdir=../$(srcdir)/opcodes"; \ | |
1683 | libsrcdir="$$s/opcodes";; \ | |
1684 | esac; \ | |
1685 | $(SHELL) $${libsrcdir}/configure \ | |
1686 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1687 | || exit 1 | |
1688 | ||
930314a4 NN |
1689 | .PHONY: all-opcodes maybe-all-opcodes |
1690 | maybe-all-opcodes: | |
db1ac78d | 1691 | all-opcodes: configure-opcodes |
930314a4 | 1692 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1693 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1694 | $(SET_LIB_PATH) \ | |
1086bc09 | 1695 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1696 | |
1697 | ||
1698 | .PHONY: check-opcodes | |
1699 | check-opcodes: | |
930314a4 | 1700 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1701 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1702 | $(SET_LIB_PATH) \ | |
1086bc09 | 1703 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1704 | |
1705 | ||
1706 | ||
930314a4 NN |
1707 | .PHONY: install-opcodes maybe-install-opcodes |
1708 | maybe-install-opcodes: | |
3866be5d | 1709 | install-opcodes: installdirs |
930314a4 | 1710 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1711 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1712 | $(SET_LIB_PATH) \ | |
1086bc09 | 1713 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1714 | |
1715 | ||
e2b9e2dc NN |
1716 | .PHONY: configure-binutils maybe-configure-binutils |
1717 | maybe-configure-binutils: | |
1718 | configure-binutils: binutils/Makefile | |
1719 | ||
1720 | binutils/Makefile: config.status | |
1721 | @[ -d binutils ] || mkdir binutils; \ | |
1722 | r=`${PWD}`; export r; \ | |
1723 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1724 | CC="$(CC)"; export CC; \ | |
1725 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1726 | CXX="$(CXX)"; export CXX; \ | |
1727 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1728 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1729 | AR="$(AR)"; export AR; \ | |
1730 | AS="$(AS)"; export AS; \ | |
1731 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1732 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1733 | LD="$(LD)"; export LD; \ | |
1734 | NM="$(NM)"; export NM; \ | |
1735 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1736 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1737 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1738 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1739 | fi; \ | |
1740 | echo Configuring in binutils; \ | |
1741 | cd binutils || exit 1; \ | |
1742 | case $(srcdir) in \ | |
1743 | \.) \ | |
1744 | srcdiroption="--srcdir=."; \ | |
1745 | libsrcdir=".";; \ | |
1746 | /* | [A-Za-z]:[\\/]*) \ | |
1747 | srcdiroption="--srcdir=$(srcdir)/binutils"; \ | |
1748 | libsrcdir="$$s/binutils";; \ | |
1749 | *) \ | |
1750 | srcdiroption="--srcdir=../$(srcdir)/binutils"; \ | |
1751 | libsrcdir="$$s/binutils";; \ | |
1752 | esac; \ | |
1753 | $(SHELL) $${libsrcdir}/configure \ | |
1754 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1755 | || exit 1 | |
1756 | ||
930314a4 NN |
1757 | .PHONY: all-binutils maybe-all-binutils |
1758 | maybe-all-binutils: | |
db1ac78d | 1759 | all-binutils: configure-binutils |
930314a4 | 1760 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1761 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1762 | $(SET_LIB_PATH) \ | |
1086bc09 | 1763 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1764 | |
1765 | ||
1766 | .PHONY: check-binutils | |
1767 | check-binutils: | |
930314a4 | 1768 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1769 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1770 | $(SET_LIB_PATH) \ | |
1086bc09 | 1771 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1772 | |
1773 | ||
1774 | ||
930314a4 NN |
1775 | .PHONY: install-binutils maybe-install-binutils |
1776 | maybe-install-binutils: | |
3866be5d | 1777 | install-binutils: installdirs |
930314a4 | 1778 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1779 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1780 | $(SET_LIB_PATH) \ | |
1086bc09 | 1781 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1782 | |
1783 | ||
e2b9e2dc NN |
1784 | .PHONY: configure-bison maybe-configure-bison |
1785 | maybe-configure-bison: | |
1786 | configure-bison: bison/Makefile | |
1787 | ||
1788 | bison/Makefile: config.status | |
1789 | @[ -d bison ] || mkdir bison; \ | |
1790 | r=`${PWD}`; export r; \ | |
1791 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1792 | CC="$(CC)"; export CC; \ | |
1793 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1794 | CXX="$(CXX)"; export CXX; \ | |
1795 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1796 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1797 | AR="$(AR)"; export AR; \ | |
1798 | AS="$(AS)"; export AS; \ | |
1799 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1800 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1801 | LD="$(LD)"; export LD; \ | |
1802 | NM="$(NM)"; export NM; \ | |
1803 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1804 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1805 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1806 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1807 | fi; \ | |
1808 | echo Configuring in bison; \ | |
1809 | cd bison || exit 1; \ | |
1810 | case $(srcdir) in \ | |
1811 | \.) \ | |
1812 | srcdiroption="--srcdir=."; \ | |
1813 | libsrcdir=".";; \ | |
1814 | /* | [A-Za-z]:[\\/]*) \ | |
1815 | srcdiroption="--srcdir=$(srcdir)/bison"; \ | |
1816 | libsrcdir="$$s/bison";; \ | |
1817 | *) \ | |
1818 | srcdiroption="--srcdir=../$(srcdir)/bison"; \ | |
1819 | libsrcdir="$$s/bison";; \ | |
1820 | esac; \ | |
1821 | $(SHELL) $${libsrcdir}/configure \ | |
1822 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1823 | || exit 1 | |
1824 | ||
930314a4 NN |
1825 | .PHONY: all-bison maybe-all-bison |
1826 | maybe-all-bison: | |
db1ac78d | 1827 | all-bison: configure-bison |
930314a4 | 1828 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1829 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1830 | $(SET_LIB_PATH) \ | |
1086bc09 | 1831 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1832 | |
1833 | ||
1834 | .PHONY: check-bison | |
1835 | # This module is only tested in a native toolchain. | |
1836 | check-bison: | |
1837 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
3866be5d NN |
1838 | r=`${PWD}`; export r; \ |
1839 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1840 | $(SET_LIB_PATH) \ | |
1086bc09 | 1841 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \ |
3866be5d NN |
1842 | fi |
1843 | ||
1844 | ||
1845 | ||
930314a4 NN |
1846 | .PHONY: install-bison maybe-install-bison |
1847 | maybe-install-bison: | |
3866be5d | 1848 | install-bison: installdirs |
930314a4 | 1849 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1850 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1851 | $(SET_LIB_PATH) \ | |
1086bc09 | 1852 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1853 | |
1854 | ||
e2b9e2dc NN |
1855 | .PHONY: configure-byacc maybe-configure-byacc |
1856 | maybe-configure-byacc: | |
1857 | configure-byacc: byacc/Makefile | |
1858 | ||
1859 | byacc/Makefile: config.status | |
1860 | @[ -d byacc ] || mkdir byacc; \ | |
1861 | r=`${PWD}`; export r; \ | |
1862 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1863 | CC="$(CC)"; export CC; \ | |
1864 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1865 | CXX="$(CXX)"; export CXX; \ | |
1866 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1867 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1868 | AR="$(AR)"; export AR; \ | |
1869 | AS="$(AS)"; export AS; \ | |
1870 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1871 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1872 | LD="$(LD)"; export LD; \ | |
1873 | NM="$(NM)"; export NM; \ | |
1874 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1875 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1876 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1877 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1878 | fi; \ | |
1879 | echo Configuring in byacc; \ | |
1880 | cd byacc || exit 1; \ | |
1881 | case $(srcdir) in \ | |
1882 | \.) \ | |
1883 | srcdiroption="--srcdir=."; \ | |
1884 | libsrcdir=".";; \ | |
1885 | /* | [A-Za-z]:[\\/]*) \ | |
1886 | srcdiroption="--srcdir=$(srcdir)/byacc"; \ | |
1887 | libsrcdir="$$s/byacc";; \ | |
1888 | *) \ | |
1889 | srcdiroption="--srcdir=../$(srcdir)/byacc"; \ | |
1890 | libsrcdir="$$s/byacc";; \ | |
1891 | esac; \ | |
1892 | $(SHELL) $${libsrcdir}/configure \ | |
1893 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1894 | || exit 1 | |
1895 | ||
930314a4 NN |
1896 | .PHONY: all-byacc maybe-all-byacc |
1897 | maybe-all-byacc: | |
db1ac78d | 1898 | all-byacc: configure-byacc |
930314a4 | 1899 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1900 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1901 | $(SET_LIB_PATH) \ | |
1086bc09 | 1902 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1903 | |
1904 | ||
1905 | .PHONY: check-byacc | |
1906 | # This module is only tested in a native toolchain. | |
1907 | check-byacc: | |
1908 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
3866be5d NN |
1909 | r=`${PWD}`; export r; \ |
1910 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1911 | $(SET_LIB_PATH) \ | |
1086bc09 | 1912 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \ |
3866be5d NN |
1913 | fi |
1914 | ||
1915 | ||
1916 | ||
930314a4 NN |
1917 | .PHONY: install-byacc maybe-install-byacc |
1918 | maybe-install-byacc: | |
3866be5d | 1919 | install-byacc: installdirs |
930314a4 | 1920 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1921 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1922 | $(SET_LIB_PATH) \ | |
1086bc09 | 1923 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1924 | |
1925 | ||
e2b9e2dc NN |
1926 | .PHONY: configure-bzip2 maybe-configure-bzip2 |
1927 | maybe-configure-bzip2: | |
1928 | configure-bzip2: bzip2/Makefile | |
1929 | ||
1930 | bzip2/Makefile: config.status | |
1931 | @[ -d bzip2 ] || mkdir bzip2; \ | |
1932 | r=`${PWD}`; export r; \ | |
1933 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1934 | CC="$(CC)"; export CC; \ | |
1935 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1936 | CXX="$(CXX)"; export CXX; \ | |
1937 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1938 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1939 | AR="$(AR)"; export AR; \ | |
1940 | AS="$(AS)"; export AS; \ | |
1941 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1942 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1943 | LD="$(LD)"; export LD; \ | |
1944 | NM="$(NM)"; export NM; \ | |
1945 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1946 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1947 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1948 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1949 | fi; \ | |
1950 | echo Configuring in bzip2; \ | |
1951 | cd bzip2 || exit 1; \ | |
1952 | case $(srcdir) in \ | |
1953 | \.) \ | |
1954 | srcdiroption="--srcdir=."; \ | |
1955 | libsrcdir=".";; \ | |
1956 | /* | [A-Za-z]:[\\/]*) \ | |
1957 | srcdiroption="--srcdir=$(srcdir)/bzip2"; \ | |
1958 | libsrcdir="$$s/bzip2";; \ | |
1959 | *) \ | |
1960 | srcdiroption="--srcdir=../$(srcdir)/bzip2"; \ | |
1961 | libsrcdir="$$s/bzip2";; \ | |
1962 | esac; \ | |
1963 | $(SHELL) $${libsrcdir}/configure \ | |
1964 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1965 | || exit 1 | |
1966 | ||
930314a4 NN |
1967 | .PHONY: all-bzip2 maybe-all-bzip2 |
1968 | maybe-all-bzip2: | |
db1ac78d | 1969 | all-bzip2: configure-bzip2 |
930314a4 | 1970 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1971 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1972 | $(SET_LIB_PATH) \ | |
1086bc09 | 1973 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
1974 | |
1975 | ||
1976 | .PHONY: check-bzip2 | |
1977 | check-bzip2: | |
930314a4 | 1978 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1979 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1980 | $(SET_LIB_PATH) \ | |
1086bc09 | 1981 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
1982 | |
1983 | ||
1984 | ||
930314a4 NN |
1985 | .PHONY: install-bzip2 maybe-install-bzip2 |
1986 | maybe-install-bzip2: | |
3866be5d | 1987 | install-bzip2: installdirs |
930314a4 | 1988 | @r=`${PWD}`; export r; \ |
3866be5d NN |
1989 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1990 | $(SET_LIB_PATH) \ | |
1086bc09 | 1991 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
1992 | |
1993 | ||
e2b9e2dc NN |
1994 | .PHONY: configure-db maybe-configure-db |
1995 | maybe-configure-db: | |
1996 | configure-db: db/Makefile | |
1997 | ||
1998 | db/Makefile: config.status | |
1999 | @[ -d db ] || mkdir db; \ | |
2000 | r=`${PWD}`; export r; \ | |
2001 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2002 | CC="$(CC)"; export CC; \ | |
2003 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2004 | CXX="$(CXX)"; export CXX; \ | |
2005 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2006 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2007 | AR="$(AR)"; export AR; \ | |
2008 | AS="$(AS)"; export AS; \ | |
2009 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2010 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2011 | LD="$(LD)"; export LD; \ | |
2012 | NM="$(NM)"; export NM; \ | |
2013 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2014 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2015 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2016 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2017 | fi; \ | |
2018 | echo Configuring in db; \ | |
2019 | cd db || exit 1; \ | |
2020 | case $(srcdir) in \ | |
2021 | \.) \ | |
2022 | srcdiroption="--srcdir=."; \ | |
2023 | libsrcdir=".";; \ | |
2024 | /* | [A-Za-z]:[\\/]*) \ | |
2025 | srcdiroption="--srcdir=$(srcdir)/db"; \ | |
2026 | libsrcdir="$$s/db";; \ | |
2027 | *) \ | |
2028 | srcdiroption="--srcdir=../$(srcdir)/db"; \ | |
2029 | libsrcdir="$$s/db";; \ | |
2030 | esac; \ | |
2031 | $(SHELL) $${libsrcdir}/configure \ | |
2032 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2033 | || exit 1 | |
2034 | ||
930314a4 NN |
2035 | .PHONY: all-db maybe-all-db |
2036 | maybe-all-db: | |
db1ac78d | 2037 | all-db: configure-db |
930314a4 | 2038 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2039 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2040 | $(SET_LIB_PATH) \ | |
1086bc09 | 2041 | (cd db && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2042 | |
2043 | ||
2044 | .PHONY: check-db | |
2045 | check-db: | |
930314a4 | 2046 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2047 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2048 | $(SET_LIB_PATH) \ | |
1086bc09 | 2049 | (cd db && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2050 | |
2051 | ||
2052 | ||
930314a4 NN |
2053 | .PHONY: install-db maybe-install-db |
2054 | maybe-install-db: | |
3866be5d | 2055 | install-db: installdirs |
930314a4 | 2056 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2057 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2058 | $(SET_LIB_PATH) \ | |
1086bc09 | 2059 | (cd db && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2060 | |
2061 | ||
e2b9e2dc NN |
2062 | .PHONY: configure-dejagnu maybe-configure-dejagnu |
2063 | maybe-configure-dejagnu: | |
2064 | configure-dejagnu: dejagnu/Makefile | |
2065 | ||
2066 | dejagnu/Makefile: config.status | |
2067 | @[ -d dejagnu ] || mkdir dejagnu; \ | |
2068 | r=`${PWD}`; export r; \ | |
2069 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2070 | CC="$(CC)"; export CC; \ | |
2071 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2072 | CXX="$(CXX)"; export CXX; \ | |
2073 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2074 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2075 | AR="$(AR)"; export AR; \ | |
2076 | AS="$(AS)"; export AS; \ | |
2077 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2078 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2079 | LD="$(LD)"; export LD; \ | |
2080 | NM="$(NM)"; export NM; \ | |
2081 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2082 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2083 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2084 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2085 | fi; \ | |
2086 | echo Configuring in dejagnu; \ | |
2087 | cd dejagnu || exit 1; \ | |
2088 | case $(srcdir) in \ | |
2089 | \.) \ | |
2090 | srcdiroption="--srcdir=."; \ | |
2091 | libsrcdir=".";; \ | |
2092 | /* | [A-Za-z]:[\\/]*) \ | |
2093 | srcdiroption="--srcdir=$(srcdir)/dejagnu"; \ | |
2094 | libsrcdir="$$s/dejagnu";; \ | |
2095 | *) \ | |
2096 | srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \ | |
2097 | libsrcdir="$$s/dejagnu";; \ | |
2098 | esac; \ | |
2099 | $(SHELL) $${libsrcdir}/configure \ | |
2100 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2101 | || exit 1 | |
2102 | ||
930314a4 NN |
2103 | .PHONY: all-dejagnu maybe-all-dejagnu |
2104 | maybe-all-dejagnu: | |
db1ac78d | 2105 | all-dejagnu: configure-dejagnu |
930314a4 | 2106 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2107 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2108 | $(SET_LIB_PATH) \ | |
1086bc09 | 2109 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2110 | |
2111 | ||
2112 | .PHONY: check-dejagnu | |
2113 | check-dejagnu: | |
930314a4 | 2114 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2115 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2116 | $(SET_LIB_PATH) \ | |
1086bc09 | 2117 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2118 | |
2119 | ||
2120 | ||
930314a4 NN |
2121 | .PHONY: install-dejagnu maybe-install-dejagnu |
2122 | maybe-install-dejagnu: | |
3866be5d | 2123 | install-dejagnu: installdirs |
930314a4 | 2124 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2125 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2126 | $(SET_LIB_PATH) \ | |
1086bc09 | 2127 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2128 | |
2129 | ||
e2b9e2dc NN |
2130 | .PHONY: configure-diff maybe-configure-diff |
2131 | maybe-configure-diff: | |
2132 | configure-diff: diff/Makefile | |
2133 | ||
2134 | diff/Makefile: config.status | |
2135 | @[ -d diff ] || mkdir diff; \ | |
2136 | r=`${PWD}`; export r; \ | |
2137 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2138 | CC="$(CC)"; export CC; \ | |
2139 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2140 | CXX="$(CXX)"; export CXX; \ | |
2141 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2142 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2143 | AR="$(AR)"; export AR; \ | |
2144 | AS="$(AS)"; export AS; \ | |
2145 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2146 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2147 | LD="$(LD)"; export LD; \ | |
2148 | NM="$(NM)"; export NM; \ | |
2149 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2150 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2151 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2152 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2153 | fi; \ | |
2154 | echo Configuring in diff; \ | |
2155 | cd diff || exit 1; \ | |
2156 | case $(srcdir) in \ | |
2157 | \.) \ | |
2158 | srcdiroption="--srcdir=."; \ | |
2159 | libsrcdir=".";; \ | |
2160 | /* | [A-Za-z]:[\\/]*) \ | |
2161 | srcdiroption="--srcdir=$(srcdir)/diff"; \ | |
2162 | libsrcdir="$$s/diff";; \ | |
2163 | *) \ | |
2164 | srcdiroption="--srcdir=../$(srcdir)/diff"; \ | |
2165 | libsrcdir="$$s/diff";; \ | |
2166 | esac; \ | |
2167 | $(SHELL) $${libsrcdir}/configure \ | |
2168 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2169 | || exit 1 | |
2170 | ||
930314a4 NN |
2171 | .PHONY: all-diff maybe-all-diff |
2172 | maybe-all-diff: | |
db1ac78d | 2173 | all-diff: configure-diff |
930314a4 | 2174 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2175 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2176 | $(SET_LIB_PATH) \ | |
1086bc09 | 2177 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2178 | |
2179 | ||
2180 | .PHONY: check-diff | |
2181 | check-diff: | |
930314a4 | 2182 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2183 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2184 | $(SET_LIB_PATH) \ | |
1086bc09 | 2185 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2186 | |
2187 | ||
2188 | ||
930314a4 NN |
2189 | .PHONY: install-diff maybe-install-diff |
2190 | maybe-install-diff: | |
3866be5d | 2191 | install-diff: installdirs |
930314a4 | 2192 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2193 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2194 | $(SET_LIB_PATH) \ | |
1086bc09 | 2195 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2196 | |
2197 | ||
e2b9e2dc NN |
2198 | .PHONY: configure-dosutils maybe-configure-dosutils |
2199 | maybe-configure-dosutils: | |
2200 | configure-dosutils: dosutils/Makefile | |
2201 | ||
2202 | dosutils/Makefile: config.status | |
2203 | @[ -d dosutils ] || mkdir dosutils; \ | |
2204 | r=`${PWD}`; export r; \ | |
2205 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2206 | CC="$(CC)"; export CC; \ | |
2207 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2208 | CXX="$(CXX)"; export CXX; \ | |
2209 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2210 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2211 | AR="$(AR)"; export AR; \ | |
2212 | AS="$(AS)"; export AS; \ | |
2213 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2214 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2215 | LD="$(LD)"; export LD; \ | |
2216 | NM="$(NM)"; export NM; \ | |
2217 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2218 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2219 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2220 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2221 | fi; \ | |
2222 | echo Configuring in dosutils; \ | |
2223 | cd dosutils || exit 1; \ | |
2224 | case $(srcdir) in \ | |
2225 | \.) \ | |
2226 | srcdiroption="--srcdir=."; \ | |
2227 | libsrcdir=".";; \ | |
2228 | /* | [A-Za-z]:[\\/]*) \ | |
2229 | srcdiroption="--srcdir=$(srcdir)/dosutils"; \ | |
2230 | libsrcdir="$$s/dosutils";; \ | |
2231 | *) \ | |
2232 | srcdiroption="--srcdir=../$(srcdir)/dosutils"; \ | |
2233 | libsrcdir="$$s/dosutils";; \ | |
2234 | esac; \ | |
2235 | $(SHELL) $${libsrcdir}/configure \ | |
2236 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2237 | || exit 1 | |
2238 | ||
930314a4 NN |
2239 | .PHONY: all-dosutils maybe-all-dosutils |
2240 | maybe-all-dosutils: | |
db1ac78d | 2241 | all-dosutils: configure-dosutils |
930314a4 | 2242 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2243 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2244 | $(SET_LIB_PATH) \ | |
1086bc09 | 2245 | (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2246 | |
2247 | ||
2248 | .PHONY: check-dosutils | |
2249 | check-dosutils: | |
2250 | ||
2251 | ||
2252 | ||
930314a4 NN |
2253 | .PHONY: install-dosutils maybe-install-dosutils |
2254 | maybe-install-dosutils: | |
3866be5d | 2255 | install-dosutils: installdirs |
930314a4 | 2256 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2257 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2258 | $(SET_LIB_PATH) \ | |
1086bc09 | 2259 | (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2260 | |
2261 | ||
e2b9e2dc NN |
2262 | .PHONY: configure-etc maybe-configure-etc |
2263 | maybe-configure-etc: | |
2264 | configure-etc: etc/Makefile | |
2265 | ||
2266 | etc/Makefile: config.status | |
2267 | @[ -d etc ] || mkdir etc; \ | |
2268 | r=`${PWD}`; export r; \ | |
2269 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2270 | CC="$(CC)"; export CC; \ | |
2271 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2272 | CXX="$(CXX)"; export CXX; \ | |
2273 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2274 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2275 | AR="$(AR)"; export AR; \ | |
2276 | AS="$(AS)"; export AS; \ | |
2277 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2278 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2279 | LD="$(LD)"; export LD; \ | |
2280 | NM="$(NM)"; export NM; \ | |
2281 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2282 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2283 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2284 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2285 | fi; \ | |
2286 | echo Configuring in etc; \ | |
2287 | cd etc || exit 1; \ | |
2288 | case $(srcdir) in \ | |
2289 | \.) \ | |
2290 | srcdiroption="--srcdir=."; \ | |
2291 | libsrcdir=".";; \ | |
2292 | /* | [A-Za-z]:[\\/]*) \ | |
2293 | srcdiroption="--srcdir=$(srcdir)/etc"; \ | |
2294 | libsrcdir="$$s/etc";; \ | |
2295 | *) \ | |
2296 | srcdiroption="--srcdir=../$(srcdir)/etc"; \ | |
2297 | libsrcdir="$$s/etc";; \ | |
2298 | esac; \ | |
2299 | $(SHELL) $${libsrcdir}/configure \ | |
2300 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2301 | || exit 1 | |
2302 | ||
930314a4 NN |
2303 | .PHONY: all-etc maybe-all-etc |
2304 | maybe-all-etc: | |
db1ac78d | 2305 | all-etc: configure-etc |
930314a4 | 2306 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2307 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2308 | $(SET_LIB_PATH) \ | |
1086bc09 | 2309 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2310 | |
2311 | ||
2312 | .PHONY: check-etc | |
2313 | check-etc: | |
930314a4 | 2314 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2315 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2316 | $(SET_LIB_PATH) \ | |
1086bc09 | 2317 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2318 | |
2319 | ||
2320 | ||
930314a4 NN |
2321 | .PHONY: install-etc maybe-install-etc |
2322 | maybe-install-etc: | |
3866be5d | 2323 | install-etc: installdirs |
930314a4 | 2324 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2325 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2326 | $(SET_LIB_PATH) \ | |
1086bc09 | 2327 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2328 | |
2329 | ||
e2b9e2dc NN |
2330 | .PHONY: configure-fastjar maybe-configure-fastjar |
2331 | maybe-configure-fastjar: | |
2332 | configure-fastjar: fastjar/Makefile | |
2333 | ||
2334 | fastjar/Makefile: config.status | |
2335 | @[ -d fastjar ] || mkdir fastjar; \ | |
2336 | r=`${PWD}`; export r; \ | |
2337 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2338 | CC="$(CC)"; export CC; \ | |
2339 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2340 | CXX="$(CXX)"; export CXX; \ | |
2341 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2342 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2343 | AR="$(AR)"; export AR; \ | |
2344 | AS="$(AS)"; export AS; \ | |
2345 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2346 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2347 | LD="$(LD)"; export LD; \ | |
2348 | NM="$(NM)"; export NM; \ | |
2349 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2350 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2351 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2352 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2353 | fi; \ | |
2354 | echo Configuring in fastjar; \ | |
2355 | cd fastjar || exit 1; \ | |
2356 | case $(srcdir) in \ | |
2357 | \.) \ | |
2358 | srcdiroption="--srcdir=."; \ | |
2359 | libsrcdir=".";; \ | |
2360 | /* | [A-Za-z]:[\\/]*) \ | |
2361 | srcdiroption="--srcdir=$(srcdir)/fastjar"; \ | |
2362 | libsrcdir="$$s/fastjar";; \ | |
2363 | *) \ | |
2364 | srcdiroption="--srcdir=../$(srcdir)/fastjar"; \ | |
2365 | libsrcdir="$$s/fastjar";; \ | |
2366 | esac; \ | |
2367 | $(SHELL) $${libsrcdir}/configure \ | |
2368 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2369 | || exit 1 | |
2370 | ||
930314a4 NN |
2371 | .PHONY: all-fastjar maybe-all-fastjar |
2372 | maybe-all-fastjar: | |
db1ac78d | 2373 | all-fastjar: configure-fastjar |
930314a4 | 2374 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2375 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2376 | $(SET_LIB_PATH) \ | |
1086bc09 | 2377 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2378 | |
2379 | ||
2380 | .PHONY: check-fastjar | |
2381 | # This module is only tested in a native toolchain. | |
2382 | check-fastjar: | |
2383 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
3866be5d NN |
2384 | r=`${PWD}`; export r; \ |
2385 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2386 | $(SET_LIB_PATH) \ | |
1086bc09 | 2387 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \ |
3866be5d NN |
2388 | fi |
2389 | ||
2390 | ||
2391 | ||
930314a4 NN |
2392 | .PHONY: install-fastjar maybe-install-fastjar |
2393 | maybe-install-fastjar: | |
3866be5d | 2394 | install-fastjar: installdirs |
930314a4 | 2395 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2396 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2397 | $(SET_LIB_PATH) \ | |
1086bc09 | 2398 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2399 | |
2400 | ||
e2b9e2dc NN |
2401 | .PHONY: configure-fileutils maybe-configure-fileutils |
2402 | maybe-configure-fileutils: | |
2403 | configure-fileutils: fileutils/Makefile | |
2404 | ||
2405 | fileutils/Makefile: config.status | |
2406 | @[ -d fileutils ] || mkdir fileutils; \ | |
2407 | r=`${PWD}`; export r; \ | |
2408 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2409 | CC="$(CC)"; export CC; \ | |
2410 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2411 | CXX="$(CXX)"; export CXX; \ | |
2412 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2413 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2414 | AR="$(AR)"; export AR; \ | |
2415 | AS="$(AS)"; export AS; \ | |
2416 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2417 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2418 | LD="$(LD)"; export LD; \ | |
2419 | NM="$(NM)"; export NM; \ | |
2420 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2421 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2422 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2423 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2424 | fi; \ | |
2425 | echo Configuring in fileutils; \ | |
2426 | cd fileutils || exit 1; \ | |
2427 | case $(srcdir) in \ | |
2428 | \.) \ | |
2429 | srcdiroption="--srcdir=."; \ | |
2430 | libsrcdir=".";; \ | |
2431 | /* | [A-Za-z]:[\\/]*) \ | |
2432 | srcdiroption="--srcdir=$(srcdir)/fileutils"; \ | |
2433 | libsrcdir="$$s/fileutils";; \ | |
2434 | *) \ | |
2435 | srcdiroption="--srcdir=../$(srcdir)/fileutils"; \ | |
2436 | libsrcdir="$$s/fileutils";; \ | |
2437 | esac; \ | |
2438 | $(SHELL) $${libsrcdir}/configure \ | |
2439 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2440 | || exit 1 | |
2441 | ||
930314a4 NN |
2442 | .PHONY: all-fileutils maybe-all-fileutils |
2443 | maybe-all-fileutils: | |
db1ac78d | 2444 | all-fileutils: configure-fileutils |
930314a4 | 2445 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2446 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2447 | $(SET_LIB_PATH) \ | |
1086bc09 | 2448 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2449 | |
2450 | ||
2451 | .PHONY: check-fileutils | |
2452 | check-fileutils: | |
930314a4 | 2453 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2454 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2455 | $(SET_LIB_PATH) \ | |
1086bc09 | 2456 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2457 | |
2458 | ||
2459 | ||
930314a4 NN |
2460 | .PHONY: install-fileutils maybe-install-fileutils |
2461 | maybe-install-fileutils: | |
3866be5d | 2462 | install-fileutils: installdirs |
930314a4 | 2463 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2464 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2465 | $(SET_LIB_PATH) \ | |
1086bc09 | 2466 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2467 | |
2468 | ||
e2b9e2dc NN |
2469 | .PHONY: configure-findutils maybe-configure-findutils |
2470 | maybe-configure-findutils: | |
2471 | configure-findutils: findutils/Makefile | |
2472 | ||
2473 | findutils/Makefile: config.status | |
2474 | @[ -d findutils ] || mkdir findutils; \ | |
2475 | r=`${PWD}`; export r; \ | |
2476 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2477 | CC="$(CC)"; export CC; \ | |
2478 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2479 | CXX="$(CXX)"; export CXX; \ | |
2480 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2481 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2482 | AR="$(AR)"; export AR; \ | |
2483 | AS="$(AS)"; export AS; \ | |
2484 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2485 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2486 | LD="$(LD)"; export LD; \ | |
2487 | NM="$(NM)"; export NM; \ | |
2488 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2489 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2490 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2491 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2492 | fi; \ | |
2493 | echo Configuring in findutils; \ | |
2494 | cd findutils || exit 1; \ | |
2495 | case $(srcdir) in \ | |
2496 | \.) \ | |
2497 | srcdiroption="--srcdir=."; \ | |
2498 | libsrcdir=".";; \ | |
2499 | /* | [A-Za-z]:[\\/]*) \ | |
2500 | srcdiroption="--srcdir=$(srcdir)/findutils"; \ | |
2501 | libsrcdir="$$s/findutils";; \ | |
2502 | *) \ | |
2503 | srcdiroption="--srcdir=../$(srcdir)/findutils"; \ | |
2504 | libsrcdir="$$s/findutils";; \ | |
2505 | esac; \ | |
2506 | $(SHELL) $${libsrcdir}/configure \ | |
2507 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2508 | || exit 1 | |
2509 | ||
930314a4 NN |
2510 | .PHONY: all-findutils maybe-all-findutils |
2511 | maybe-all-findutils: | |
db1ac78d | 2512 | all-findutils: configure-findutils |
930314a4 | 2513 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2514 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2515 | $(SET_LIB_PATH) \ | |
1086bc09 | 2516 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2517 | |
2518 | ||
2519 | .PHONY: check-findutils | |
2520 | check-findutils: | |
930314a4 | 2521 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2522 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2523 | $(SET_LIB_PATH) \ | |
1086bc09 | 2524 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2525 | |
2526 | ||
2527 | ||
930314a4 NN |
2528 | .PHONY: install-findutils maybe-install-findutils |
2529 | maybe-install-findutils: | |
3866be5d | 2530 | install-findutils: installdirs |
930314a4 | 2531 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2532 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2533 | $(SET_LIB_PATH) \ | |
1086bc09 | 2534 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2535 | |
2536 | ||
e2b9e2dc NN |
2537 | .PHONY: configure-find maybe-configure-find |
2538 | maybe-configure-find: | |
2539 | configure-find: find/Makefile | |
2540 | ||
2541 | find/Makefile: config.status | |
2542 | @[ -d find ] || mkdir find; \ | |
2543 | r=`${PWD}`; export r; \ | |
2544 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2545 | CC="$(CC)"; export CC; \ | |
2546 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2547 | CXX="$(CXX)"; export CXX; \ | |
2548 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2549 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2550 | AR="$(AR)"; export AR; \ | |
2551 | AS="$(AS)"; export AS; \ | |
2552 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2553 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2554 | LD="$(LD)"; export LD; \ | |
2555 | NM="$(NM)"; export NM; \ | |
2556 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2557 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2558 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2559 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2560 | fi; \ | |
2561 | echo Configuring in find; \ | |
2562 | cd find || exit 1; \ | |
2563 | case $(srcdir) in \ | |
2564 | \.) \ | |
2565 | srcdiroption="--srcdir=."; \ | |
2566 | libsrcdir=".";; \ | |
2567 | /* | [A-Za-z]:[\\/]*) \ | |
2568 | srcdiroption="--srcdir=$(srcdir)/find"; \ | |
2569 | libsrcdir="$$s/find";; \ | |
2570 | *) \ | |
2571 | srcdiroption="--srcdir=../$(srcdir)/find"; \ | |
2572 | libsrcdir="$$s/find";; \ | |
2573 | esac; \ | |
2574 | $(SHELL) $${libsrcdir}/configure \ | |
2575 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2576 | || exit 1 | |
2577 | ||
930314a4 NN |
2578 | .PHONY: all-find maybe-all-find |
2579 | maybe-all-find: | |
db1ac78d | 2580 | all-find: configure-find |
930314a4 | 2581 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2582 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2583 | $(SET_LIB_PATH) \ | |
1086bc09 | 2584 | (cd find && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2585 | |
2586 | ||
2587 | .PHONY: check-find | |
2588 | check-find: | |
930314a4 | 2589 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2590 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2591 | $(SET_LIB_PATH) \ | |
1086bc09 | 2592 | (cd find && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2593 | |
2594 | ||
2595 | ||
930314a4 NN |
2596 | .PHONY: install-find maybe-install-find |
2597 | maybe-install-find: | |
3866be5d | 2598 | install-find: installdirs |
930314a4 | 2599 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2600 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2601 | $(SET_LIB_PATH) \ | |
1086bc09 | 2602 | (cd find && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2603 | |
2604 | ||
e2b9e2dc NN |
2605 | .PHONY: configure-flex maybe-configure-flex |
2606 | maybe-configure-flex: | |
2607 | configure-flex: flex/Makefile | |
2608 | ||
2609 | flex/Makefile: config.status | |
2610 | @[ -d flex ] || mkdir flex; \ | |
2611 | r=`${PWD}`; export r; \ | |
2612 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2613 | CC="$(CC)"; export CC; \ | |
2614 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2615 | CXX="$(CXX)"; export CXX; \ | |
2616 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2617 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2618 | AR="$(AR)"; export AR; \ | |
2619 | AS="$(AS)"; export AS; \ | |
2620 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2621 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2622 | LD="$(LD)"; export LD; \ | |
2623 | NM="$(NM)"; export NM; \ | |
2624 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2625 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2626 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2627 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2628 | fi; \ | |
2629 | echo Configuring in flex; \ | |
2630 | cd flex || exit 1; \ | |
2631 | case $(srcdir) in \ | |
2632 | \.) \ | |
2633 | srcdiroption="--srcdir=."; \ | |
2634 | libsrcdir=".";; \ | |
2635 | /* | [A-Za-z]:[\\/]*) \ | |
2636 | srcdiroption="--srcdir=$(srcdir)/flex"; \ | |
2637 | libsrcdir="$$s/flex";; \ | |
2638 | *) \ | |
2639 | srcdiroption="--srcdir=../$(srcdir)/flex"; \ | |
2640 | libsrcdir="$$s/flex";; \ | |
2641 | esac; \ | |
2642 | $(SHELL) $${libsrcdir}/configure \ | |
2643 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2644 | || exit 1 | |
2645 | ||
930314a4 NN |
2646 | .PHONY: all-flex maybe-all-flex |
2647 | maybe-all-flex: | |
db1ac78d | 2648 | all-flex: configure-flex |
930314a4 | 2649 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2650 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2651 | $(SET_LIB_PATH) \ | |
1086bc09 | 2652 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2653 | |
2654 | ||
2655 | .PHONY: check-flex | |
2656 | # This module is only tested in a native toolchain. | |
2657 | check-flex: | |
2658 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
3866be5d NN |
2659 | r=`${PWD}`; export r; \ |
2660 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2661 | $(SET_LIB_PATH) \ | |
1086bc09 | 2662 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \ |
3866be5d NN |
2663 | fi |
2664 | ||
2665 | ||
2666 | ||
930314a4 NN |
2667 | .PHONY: install-flex maybe-install-flex |
2668 | maybe-install-flex: | |
3866be5d | 2669 | install-flex: installdirs |
930314a4 | 2670 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2671 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2672 | $(SET_LIB_PATH) \ | |
1086bc09 | 2673 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2674 | |
2675 | ||
e2b9e2dc NN |
2676 | .PHONY: configure-gas maybe-configure-gas |
2677 | maybe-configure-gas: | |
2678 | configure-gas: gas/Makefile | |
2679 | ||
2680 | gas/Makefile: config.status | |
2681 | @[ -d gas ] || mkdir gas; \ | |
2682 | r=`${PWD}`; export r; \ | |
2683 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2684 | CC="$(CC)"; export CC; \ | |
2685 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2686 | CXX="$(CXX)"; export CXX; \ | |
2687 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2688 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2689 | AR="$(AR)"; export AR; \ | |
2690 | AS="$(AS)"; export AS; \ | |
2691 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2692 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2693 | LD="$(LD)"; export LD; \ | |
2694 | NM="$(NM)"; export NM; \ | |
2695 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2696 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2697 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2698 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2699 | fi; \ | |
2700 | echo Configuring in gas; \ | |
2701 | cd gas || exit 1; \ | |
2702 | case $(srcdir) in \ | |
2703 | \.) \ | |
2704 | srcdiroption="--srcdir=."; \ | |
2705 | libsrcdir=".";; \ | |
2706 | /* | [A-Za-z]:[\\/]*) \ | |
2707 | srcdiroption="--srcdir=$(srcdir)/gas"; \ | |
2708 | libsrcdir="$$s/gas";; \ | |
2709 | *) \ | |
2710 | srcdiroption="--srcdir=../$(srcdir)/gas"; \ | |
2711 | libsrcdir="$$s/gas";; \ | |
2712 | esac; \ | |
2713 | $(SHELL) $${libsrcdir}/configure \ | |
2714 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2715 | || exit 1 | |
2716 | ||
930314a4 NN |
2717 | .PHONY: all-gas maybe-all-gas |
2718 | maybe-all-gas: | |
db1ac78d | 2719 | all-gas: configure-gas |
930314a4 | 2720 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2721 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2722 | $(SET_LIB_PATH) \ | |
1086bc09 | 2723 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2724 | |
2725 | ||
2726 | .PHONY: check-gas | |
2727 | check-gas: | |
930314a4 | 2728 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2729 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2730 | $(SET_LIB_PATH) \ | |
1086bc09 | 2731 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2732 | |
2733 | ||
2734 | ||
930314a4 NN |
2735 | .PHONY: install-gas maybe-install-gas |
2736 | maybe-install-gas: | |
3866be5d | 2737 | install-gas: installdirs |
930314a4 | 2738 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2739 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2740 | $(SET_LIB_PATH) \ | |
1086bc09 | 2741 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2742 | |
2743 | ||
e2b9e2dc NN |
2744 | .PHONY: configure-gawk maybe-configure-gawk |
2745 | maybe-configure-gawk: | |
2746 | configure-gawk: gawk/Makefile | |
2747 | ||
2748 | gawk/Makefile: config.status | |
2749 | @[ -d gawk ] || mkdir gawk; \ | |
2750 | r=`${PWD}`; export r; \ | |
2751 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2752 | CC="$(CC)"; export CC; \ | |
2753 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2754 | CXX="$(CXX)"; export CXX; \ | |
2755 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2756 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2757 | AR="$(AR)"; export AR; \ | |
2758 | AS="$(AS)"; export AS; \ | |
2759 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2760 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2761 | LD="$(LD)"; export LD; \ | |
2762 | NM="$(NM)"; export NM; \ | |
2763 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2764 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2765 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2766 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2767 | fi; \ | |
2768 | echo Configuring in gawk; \ | |
2769 | cd gawk || exit 1; \ | |
2770 | case $(srcdir) in \ | |
2771 | \.) \ | |
2772 | srcdiroption="--srcdir=."; \ | |
2773 | libsrcdir=".";; \ | |
2774 | /* | [A-Za-z]:[\\/]*) \ | |
2775 | srcdiroption="--srcdir=$(srcdir)/gawk"; \ | |
2776 | libsrcdir="$$s/gawk";; \ | |
2777 | *) \ | |
2778 | srcdiroption="--srcdir=../$(srcdir)/gawk"; \ | |
2779 | libsrcdir="$$s/gawk";; \ | |
2780 | esac; \ | |
2781 | $(SHELL) $${libsrcdir}/configure \ | |
2782 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2783 | || exit 1 | |
2784 | ||
930314a4 NN |
2785 | .PHONY: all-gawk maybe-all-gawk |
2786 | maybe-all-gawk: | |
db1ac78d | 2787 | all-gawk: configure-gawk |
930314a4 | 2788 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2789 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2790 | $(SET_LIB_PATH) \ | |
1086bc09 | 2791 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2792 | |
2793 | ||
2794 | .PHONY: check-gawk | |
2795 | check-gawk: | |
930314a4 | 2796 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2797 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2798 | $(SET_LIB_PATH) \ | |
1086bc09 | 2799 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2800 | |
2801 | ||
2802 | ||
930314a4 NN |
2803 | .PHONY: install-gawk maybe-install-gawk |
2804 | maybe-install-gawk: | |
3866be5d | 2805 | install-gawk: installdirs |
930314a4 | 2806 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2807 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2808 | $(SET_LIB_PATH) \ | |
1086bc09 | 2809 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2810 | |
2811 | ||
e2b9e2dc NN |
2812 | .PHONY: configure-gettext maybe-configure-gettext |
2813 | maybe-configure-gettext: | |
2814 | configure-gettext: gettext/Makefile | |
2815 | ||
2816 | gettext/Makefile: config.status | |
2817 | @[ -d gettext ] || mkdir gettext; \ | |
2818 | r=`${PWD}`; export r; \ | |
2819 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2820 | CC="$(CC)"; export CC; \ | |
2821 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2822 | CXX="$(CXX)"; export CXX; \ | |
2823 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2824 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2825 | AR="$(AR)"; export AR; \ | |
2826 | AS="$(AS)"; export AS; \ | |
2827 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2828 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2829 | LD="$(LD)"; export LD; \ | |
2830 | NM="$(NM)"; export NM; \ | |
2831 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2832 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2833 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2834 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2835 | fi; \ | |
2836 | echo Configuring in gettext; \ | |
2837 | cd gettext || exit 1; \ | |
2838 | case $(srcdir) in \ | |
2839 | \.) \ | |
2840 | srcdiroption="--srcdir=."; \ | |
2841 | libsrcdir=".";; \ | |
2842 | /* | [A-Za-z]:[\\/]*) \ | |
2843 | srcdiroption="--srcdir=$(srcdir)/gettext"; \ | |
2844 | libsrcdir="$$s/gettext";; \ | |
2845 | *) \ | |
2846 | srcdiroption="--srcdir=../$(srcdir)/gettext"; \ | |
2847 | libsrcdir="$$s/gettext";; \ | |
2848 | esac; \ | |
2849 | $(SHELL) $${libsrcdir}/configure \ | |
2850 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2851 | || exit 1 | |
2852 | ||
930314a4 NN |
2853 | .PHONY: all-gettext maybe-all-gettext |
2854 | maybe-all-gettext: | |
db1ac78d | 2855 | all-gettext: configure-gettext |
930314a4 | 2856 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2857 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2858 | $(SET_LIB_PATH) \ | |
1086bc09 | 2859 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2860 | |
2861 | ||
2862 | .PHONY: check-gettext | |
2863 | check-gettext: | |
930314a4 | 2864 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2865 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2866 | $(SET_LIB_PATH) \ | |
1086bc09 | 2867 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2868 | |
2869 | ||
2870 | ||
930314a4 NN |
2871 | .PHONY: install-gettext maybe-install-gettext |
2872 | maybe-install-gettext: | |
3866be5d | 2873 | install-gettext: installdirs |
930314a4 | 2874 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2875 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2876 | $(SET_LIB_PATH) \ | |
1086bc09 | 2877 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2878 | |
2879 | ||
e2b9e2dc NN |
2880 | .PHONY: configure-gnuserv maybe-configure-gnuserv |
2881 | maybe-configure-gnuserv: | |
2882 | configure-gnuserv: gnuserv/Makefile | |
2883 | ||
2884 | gnuserv/Makefile: config.status | |
2885 | @[ -d gnuserv ] || mkdir gnuserv; \ | |
2886 | r=`${PWD}`; export r; \ | |
2887 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2888 | CC="$(CC)"; export CC; \ | |
2889 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2890 | CXX="$(CXX)"; export CXX; \ | |
2891 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2892 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2893 | AR="$(AR)"; export AR; \ | |
2894 | AS="$(AS)"; export AS; \ | |
2895 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2896 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2897 | LD="$(LD)"; export LD; \ | |
2898 | NM="$(NM)"; export NM; \ | |
2899 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2900 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2901 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2902 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2903 | fi; \ | |
2904 | echo Configuring in gnuserv; \ | |
2905 | cd gnuserv || exit 1; \ | |
2906 | case $(srcdir) in \ | |
2907 | \.) \ | |
2908 | srcdiroption="--srcdir=."; \ | |
2909 | libsrcdir=".";; \ | |
2910 | /* | [A-Za-z]:[\\/]*) \ | |
2911 | srcdiroption="--srcdir=$(srcdir)/gnuserv"; \ | |
2912 | libsrcdir="$$s/gnuserv";; \ | |
2913 | *) \ | |
2914 | srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \ | |
2915 | libsrcdir="$$s/gnuserv";; \ | |
2916 | esac; \ | |
2917 | $(SHELL) $${libsrcdir}/configure \ | |
2918 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2919 | || exit 1 | |
2920 | ||
930314a4 NN |
2921 | .PHONY: all-gnuserv maybe-all-gnuserv |
2922 | maybe-all-gnuserv: | |
db1ac78d | 2923 | all-gnuserv: configure-gnuserv |
930314a4 | 2924 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2925 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2926 | $(SET_LIB_PATH) \ | |
1086bc09 | 2927 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2928 | |
2929 | ||
2930 | .PHONY: check-gnuserv | |
2931 | check-gnuserv: | |
930314a4 | 2932 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2933 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2934 | $(SET_LIB_PATH) \ | |
1086bc09 | 2935 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
2936 | |
2937 | ||
2938 | ||
930314a4 NN |
2939 | .PHONY: install-gnuserv maybe-install-gnuserv |
2940 | maybe-install-gnuserv: | |
3866be5d | 2941 | install-gnuserv: installdirs |
930314a4 | 2942 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2943 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2944 | $(SET_LIB_PATH) \ | |
1086bc09 | 2945 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
2946 | |
2947 | ||
e2b9e2dc NN |
2948 | .PHONY: configure-gprof maybe-configure-gprof |
2949 | maybe-configure-gprof: | |
2950 | configure-gprof: gprof/Makefile | |
2951 | ||
2952 | gprof/Makefile: config.status | |
2953 | @[ -d gprof ] || mkdir gprof; \ | |
2954 | r=`${PWD}`; export r; \ | |
2955 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2956 | CC="$(CC)"; export CC; \ | |
2957 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2958 | CXX="$(CXX)"; export CXX; \ | |
2959 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2960 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2961 | AR="$(AR)"; export AR; \ | |
2962 | AS="$(AS)"; export AS; \ | |
2963 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2964 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2965 | LD="$(LD)"; export LD; \ | |
2966 | NM="$(NM)"; export NM; \ | |
2967 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2968 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2969 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2970 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2971 | fi; \ | |
2972 | echo Configuring in gprof; \ | |
2973 | cd gprof || exit 1; \ | |
2974 | case $(srcdir) in \ | |
2975 | \.) \ | |
2976 | srcdiroption="--srcdir=."; \ | |
2977 | libsrcdir=".";; \ | |
2978 | /* | [A-Za-z]:[\\/]*) \ | |
2979 | srcdiroption="--srcdir=$(srcdir)/gprof"; \ | |
2980 | libsrcdir="$$s/gprof";; \ | |
2981 | *) \ | |
2982 | srcdiroption="--srcdir=../$(srcdir)/gprof"; \ | |
2983 | libsrcdir="$$s/gprof";; \ | |
2984 | esac; \ | |
2985 | $(SHELL) $${libsrcdir}/configure \ | |
2986 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2987 | || exit 1 | |
2988 | ||
930314a4 NN |
2989 | .PHONY: all-gprof maybe-all-gprof |
2990 | maybe-all-gprof: | |
db1ac78d | 2991 | all-gprof: configure-gprof |
930314a4 | 2992 | @r=`${PWD}`; export r; \ |
3866be5d NN |
2993 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2994 | $(SET_LIB_PATH) \ | |
1086bc09 | 2995 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
2996 | |
2997 | ||
2998 | .PHONY: check-gprof | |
2999 | check-gprof: | |
930314a4 | 3000 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3001 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3002 | $(SET_LIB_PATH) \ | |
1086bc09 | 3003 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3004 | |
3005 | ||
3006 | ||
930314a4 NN |
3007 | .PHONY: install-gprof maybe-install-gprof |
3008 | maybe-install-gprof: | |
3866be5d | 3009 | install-gprof: installdirs |
930314a4 | 3010 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3011 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3012 | $(SET_LIB_PATH) \ | |
1086bc09 | 3013 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3014 | |
3015 | ||
e2b9e2dc NN |
3016 | .PHONY: configure-grep maybe-configure-grep |
3017 | maybe-configure-grep: | |
3018 | configure-grep: grep/Makefile | |
3019 | ||
3020 | grep/Makefile: config.status | |
3021 | @[ -d grep ] || mkdir grep; \ | |
3022 | r=`${PWD}`; export r; \ | |
3023 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3024 | CC="$(CC)"; export CC; \ | |
3025 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3026 | CXX="$(CXX)"; export CXX; \ | |
3027 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3028 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3029 | AR="$(AR)"; export AR; \ | |
3030 | AS="$(AS)"; export AS; \ | |
3031 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3032 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3033 | LD="$(LD)"; export LD; \ | |
3034 | NM="$(NM)"; export NM; \ | |
3035 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3036 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3037 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3038 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3039 | fi; \ | |
3040 | echo Configuring in grep; \ | |
3041 | cd grep || exit 1; \ | |
3042 | case $(srcdir) in \ | |
3043 | \.) \ | |
3044 | srcdiroption="--srcdir=."; \ | |
3045 | libsrcdir=".";; \ | |
3046 | /* | [A-Za-z]:[\\/]*) \ | |
3047 | srcdiroption="--srcdir=$(srcdir)/grep"; \ | |
3048 | libsrcdir="$$s/grep";; \ | |
3049 | *) \ | |
3050 | srcdiroption="--srcdir=../$(srcdir)/grep"; \ | |
3051 | libsrcdir="$$s/grep";; \ | |
3052 | esac; \ | |
3053 | $(SHELL) $${libsrcdir}/configure \ | |
3054 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3055 | || exit 1 | |
3056 | ||
930314a4 NN |
3057 | .PHONY: all-grep maybe-all-grep |
3058 | maybe-all-grep: | |
db1ac78d | 3059 | all-grep: configure-grep |
930314a4 | 3060 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3061 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3062 | $(SET_LIB_PATH) \ | |
1086bc09 | 3063 | (cd grep && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3064 | |
3065 | ||
3066 | .PHONY: check-grep | |
3067 | check-grep: | |
930314a4 | 3068 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3069 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3070 | $(SET_LIB_PATH) \ | |
1086bc09 | 3071 | (cd grep && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3072 | |
3073 | ||
3074 | ||
930314a4 NN |
3075 | .PHONY: install-grep maybe-install-grep |
3076 | maybe-install-grep: | |
3866be5d | 3077 | install-grep: installdirs |
930314a4 | 3078 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3079 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3080 | $(SET_LIB_PATH) \ | |
1086bc09 | 3081 | (cd grep && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3082 | |
3083 | ||
e2b9e2dc NN |
3084 | .PHONY: configure-gzip maybe-configure-gzip |
3085 | maybe-configure-gzip: | |
3086 | configure-gzip: gzip/Makefile | |
3087 | ||
3088 | gzip/Makefile: config.status | |
3089 | @[ -d gzip ] || mkdir gzip; \ | |
3090 | r=`${PWD}`; export r; \ | |
3091 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3092 | CC="$(CC)"; export CC; \ | |
3093 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3094 | CXX="$(CXX)"; export CXX; \ | |
3095 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3096 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3097 | AR="$(AR)"; export AR; \ | |
3098 | AS="$(AS)"; export AS; \ | |
3099 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3100 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3101 | LD="$(LD)"; export LD; \ | |
3102 | NM="$(NM)"; export NM; \ | |
3103 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3104 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3105 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3106 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3107 | fi; \ | |
3108 | echo Configuring in gzip; \ | |
3109 | cd gzip || exit 1; \ | |
3110 | case $(srcdir) in \ | |
3111 | \.) \ | |
3112 | srcdiroption="--srcdir=."; \ | |
3113 | libsrcdir=".";; \ | |
3114 | /* | [A-Za-z]:[\\/]*) \ | |
3115 | srcdiroption="--srcdir=$(srcdir)/gzip"; \ | |
3116 | libsrcdir="$$s/gzip";; \ | |
3117 | *) \ | |
3118 | srcdiroption="--srcdir=../$(srcdir)/gzip"; \ | |
3119 | libsrcdir="$$s/gzip";; \ | |
3120 | esac; \ | |
3121 | $(SHELL) $${libsrcdir}/configure \ | |
3122 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3123 | || exit 1 | |
3124 | ||
930314a4 NN |
3125 | .PHONY: all-gzip maybe-all-gzip |
3126 | maybe-all-gzip: | |
db1ac78d | 3127 | all-gzip: configure-gzip |
930314a4 | 3128 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3129 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3130 | $(SET_LIB_PATH) \ | |
1086bc09 | 3131 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3132 | |
3133 | ||
3134 | .PHONY: check-gzip | |
3135 | check-gzip: | |
930314a4 | 3136 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3137 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3138 | $(SET_LIB_PATH) \ | |
1086bc09 | 3139 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3140 | |
3141 | ||
3142 | ||
930314a4 NN |
3143 | .PHONY: install-gzip maybe-install-gzip |
3144 | maybe-install-gzip: | |
3866be5d | 3145 | install-gzip: installdirs |
930314a4 | 3146 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3147 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3148 | $(SET_LIB_PATH) \ | |
1086bc09 | 3149 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3150 | |
3151 | ||
e2b9e2dc NN |
3152 | .PHONY: configure-hello maybe-configure-hello |
3153 | maybe-configure-hello: | |
3154 | configure-hello: hello/Makefile | |
3155 | ||
3156 | hello/Makefile: config.status | |
3157 | @[ -d hello ] || mkdir hello; \ | |
3158 | r=`${PWD}`; export r; \ | |
3159 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3160 | CC="$(CC)"; export CC; \ | |
3161 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3162 | CXX="$(CXX)"; export CXX; \ | |
3163 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3164 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3165 | AR="$(AR)"; export AR; \ | |
3166 | AS="$(AS)"; export AS; \ | |
3167 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3168 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3169 | LD="$(LD)"; export LD; \ | |
3170 | NM="$(NM)"; export NM; \ | |
3171 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3172 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3173 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3174 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3175 | fi; \ | |
3176 | echo Configuring in hello; \ | |
3177 | cd hello || exit 1; \ | |
3178 | case $(srcdir) in \ | |
3179 | \.) \ | |
3180 | srcdiroption="--srcdir=."; \ | |
3181 | libsrcdir=".";; \ | |
3182 | /* | [A-Za-z]:[\\/]*) \ | |
3183 | srcdiroption="--srcdir=$(srcdir)/hello"; \ | |
3184 | libsrcdir="$$s/hello";; \ | |
3185 | *) \ | |
3186 | srcdiroption="--srcdir=../$(srcdir)/hello"; \ | |
3187 | libsrcdir="$$s/hello";; \ | |
3188 | esac; \ | |
3189 | $(SHELL) $${libsrcdir}/configure \ | |
3190 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3191 | || exit 1 | |
3192 | ||
930314a4 NN |
3193 | .PHONY: all-hello maybe-all-hello |
3194 | maybe-all-hello: | |
db1ac78d | 3195 | all-hello: configure-hello |
930314a4 | 3196 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3197 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3198 | $(SET_LIB_PATH) \ | |
1086bc09 | 3199 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3200 | |
3201 | ||
3202 | .PHONY: check-hello | |
3203 | check-hello: | |
930314a4 | 3204 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3205 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3206 | $(SET_LIB_PATH) \ | |
1086bc09 | 3207 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3208 | |
3209 | ||
3210 | ||
930314a4 NN |
3211 | .PHONY: install-hello maybe-install-hello |
3212 | maybe-install-hello: | |
3866be5d | 3213 | install-hello: installdirs |
930314a4 | 3214 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3215 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3216 | $(SET_LIB_PATH) \ | |
1086bc09 | 3217 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3218 | |
3219 | ||
e2b9e2dc NN |
3220 | .PHONY: configure-indent maybe-configure-indent |
3221 | maybe-configure-indent: | |
3222 | configure-indent: indent/Makefile | |
3223 | ||
3224 | indent/Makefile: config.status | |
3225 | @[ -d indent ] || mkdir indent; \ | |
3226 | r=`${PWD}`; export r; \ | |
3227 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3228 | CC="$(CC)"; export CC; \ | |
3229 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3230 | CXX="$(CXX)"; export CXX; \ | |
3231 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3232 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3233 | AR="$(AR)"; export AR; \ | |
3234 | AS="$(AS)"; export AS; \ | |
3235 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3236 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3237 | LD="$(LD)"; export LD; \ | |
3238 | NM="$(NM)"; export NM; \ | |
3239 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3240 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3241 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3242 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3243 | fi; \ | |
3244 | echo Configuring in indent; \ | |
3245 | cd indent || exit 1; \ | |
3246 | case $(srcdir) in \ | |
3247 | \.) \ | |
3248 | srcdiroption="--srcdir=."; \ | |
3249 | libsrcdir=".";; \ | |
3250 | /* | [A-Za-z]:[\\/]*) \ | |
3251 | srcdiroption="--srcdir=$(srcdir)/indent"; \ | |
3252 | libsrcdir="$$s/indent";; \ | |
3253 | *) \ | |
3254 | srcdiroption="--srcdir=../$(srcdir)/indent"; \ | |
3255 | libsrcdir="$$s/indent";; \ | |
3256 | esac; \ | |
3257 | $(SHELL) $${libsrcdir}/configure \ | |
3258 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3259 | || exit 1 | |
3260 | ||
930314a4 NN |
3261 | .PHONY: all-indent maybe-all-indent |
3262 | maybe-all-indent: | |
db1ac78d | 3263 | all-indent: configure-indent |
930314a4 | 3264 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3265 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3266 | $(SET_LIB_PATH) \ | |
1086bc09 | 3267 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3268 | |
3269 | ||
3270 | .PHONY: check-indent | |
3271 | check-indent: | |
930314a4 | 3272 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3273 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3274 | $(SET_LIB_PATH) \ | |
1086bc09 | 3275 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3276 | |
3277 | ||
3278 | ||
930314a4 NN |
3279 | .PHONY: install-indent maybe-install-indent |
3280 | maybe-install-indent: | |
3866be5d | 3281 | install-indent: installdirs |
930314a4 | 3282 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3283 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3284 | $(SET_LIB_PATH) \ | |
1086bc09 | 3285 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3286 | |
3287 | ||
e2b9e2dc NN |
3288 | .PHONY: configure-intl maybe-configure-intl |
3289 | maybe-configure-intl: | |
3290 | configure-intl: intl/Makefile | |
3291 | ||
3292 | intl/Makefile: config.status | |
3293 | @[ -d intl ] || mkdir intl; \ | |
3294 | r=`${PWD}`; export r; \ | |
3295 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3296 | CC="$(CC)"; export CC; \ | |
3297 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3298 | CXX="$(CXX)"; export CXX; \ | |
3299 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3300 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3301 | AR="$(AR)"; export AR; \ | |
3302 | AS="$(AS)"; export AS; \ | |
3303 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3304 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3305 | LD="$(LD)"; export LD; \ | |
3306 | NM="$(NM)"; export NM; \ | |
3307 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3308 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3309 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3310 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3311 | fi; \ | |
3312 | echo Configuring in intl; \ | |
3313 | cd intl || exit 1; \ | |
3314 | case $(srcdir) in \ | |
3315 | \.) \ | |
3316 | srcdiroption="--srcdir=."; \ | |
3317 | libsrcdir=".";; \ | |
3318 | /* | [A-Za-z]:[\\/]*) \ | |
3319 | srcdiroption="--srcdir=$(srcdir)/intl"; \ | |
3320 | libsrcdir="$$s/intl";; \ | |
3321 | *) \ | |
3322 | srcdiroption="--srcdir=../$(srcdir)/intl"; \ | |
3323 | libsrcdir="$$s/intl";; \ | |
3324 | esac; \ | |
3325 | $(SHELL) $${libsrcdir}/configure \ | |
3326 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3327 | || exit 1 | |
3328 | ||
930314a4 NN |
3329 | .PHONY: all-intl maybe-all-intl |
3330 | maybe-all-intl: | |
db1ac78d | 3331 | all-intl: configure-intl |
930314a4 | 3332 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3333 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3334 | $(SET_LIB_PATH) \ | |
1086bc09 | 3335 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3336 | |
3337 | ||
3338 | .PHONY: check-intl | |
3339 | check-intl: | |
930314a4 | 3340 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3341 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3342 | $(SET_LIB_PATH) \ | |
1086bc09 | 3343 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3344 | |
3345 | ||
3346 | ||
930314a4 NN |
3347 | .PHONY: install-intl maybe-install-intl |
3348 | maybe-install-intl: | |
3866be5d | 3349 | install-intl: installdirs |
930314a4 | 3350 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3351 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3352 | $(SET_LIB_PATH) \ | |
1086bc09 | 3353 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3354 | |
3355 | ||
e2b9e2dc NN |
3356 | .PHONY: configure-tcl maybe-configure-tcl |
3357 | maybe-configure-tcl: | |
3358 | configure-tcl: tcl/Makefile | |
3359 | ||
3360 | tcl/Makefile: config.status | |
3361 | @[ -d tcl ] || mkdir tcl; \ | |
3362 | r=`${PWD}`; export r; \ | |
3363 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3364 | CC="$(CC)"; export CC; \ | |
3365 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3366 | CXX="$(CXX)"; export CXX; \ | |
3367 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3368 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3369 | AR="$(AR)"; export AR; \ | |
3370 | AS="$(AS)"; export AS; \ | |
3371 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3372 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3373 | LD="$(LD)"; export LD; \ | |
3374 | NM="$(NM)"; export NM; \ | |
3375 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3376 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3377 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3378 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3379 | fi; \ | |
3380 | echo Configuring in tcl; \ | |
3381 | cd tcl || exit 1; \ | |
3382 | case $(srcdir) in \ | |
3383 | \.) \ | |
3384 | srcdiroption="--srcdir=."; \ | |
3385 | libsrcdir=".";; \ | |
3386 | /* | [A-Za-z]:[\\/]*) \ | |
3387 | srcdiroption="--srcdir=$(srcdir)/tcl"; \ | |
3388 | libsrcdir="$$s/tcl";; \ | |
3389 | *) \ | |
3390 | srcdiroption="--srcdir=../$(srcdir)/tcl"; \ | |
3391 | libsrcdir="$$s/tcl";; \ | |
3392 | esac; \ | |
3393 | $(SHELL) $${libsrcdir}/configure \ | |
3394 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3395 | || exit 1 | |
3396 | ||
930314a4 NN |
3397 | .PHONY: all-tcl maybe-all-tcl |
3398 | maybe-all-tcl: | |
db1ac78d | 3399 | all-tcl: configure-tcl |
930314a4 | 3400 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3401 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3402 | $(SET_LIB_PATH) \ | |
1086bc09 | 3403 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3404 | |
3405 | ||
3406 | .PHONY: check-tcl | |
3407 | check-tcl: | |
930314a4 | 3408 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3409 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3410 | $(SET_LIB_PATH) \ | |
1086bc09 | 3411 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3412 | |
3413 | ||
3414 | ||
930314a4 NN |
3415 | .PHONY: install-tcl maybe-install-tcl |
3416 | maybe-install-tcl: | |
3866be5d | 3417 | install-tcl: installdirs |
930314a4 | 3418 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3419 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3420 | $(SET_LIB_PATH) \ | |
1086bc09 | 3421 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3422 | |
3423 | ||
e2b9e2dc NN |
3424 | .PHONY: configure-itcl maybe-configure-itcl |
3425 | maybe-configure-itcl: | |
3426 | configure-itcl: itcl/Makefile | |
3427 | ||
3428 | itcl/Makefile: config.status | |
3429 | @[ -d itcl ] || mkdir itcl; \ | |
3430 | r=`${PWD}`; export r; \ | |
3431 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3432 | CC="$(CC)"; export CC; \ | |
3433 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3434 | CXX="$(CXX)"; export CXX; \ | |
3435 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3436 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3437 | AR="$(AR)"; export AR; \ | |
3438 | AS="$(AS)"; export AS; \ | |
3439 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3440 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3441 | LD="$(LD)"; export LD; \ | |
3442 | NM="$(NM)"; export NM; \ | |
3443 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3444 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3445 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3446 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3447 | fi; \ | |
3448 | echo Configuring in itcl; \ | |
3449 | cd itcl || exit 1; \ | |
3450 | case $(srcdir) in \ | |
3451 | \.) \ | |
3452 | srcdiroption="--srcdir=."; \ | |
3453 | libsrcdir=".";; \ | |
3454 | /* | [A-Za-z]:[\\/]*) \ | |
3455 | srcdiroption="--srcdir=$(srcdir)/itcl"; \ | |
3456 | libsrcdir="$$s/itcl";; \ | |
3457 | *) \ | |
3458 | srcdiroption="--srcdir=../$(srcdir)/itcl"; \ | |
3459 | libsrcdir="$$s/itcl";; \ | |
3460 | esac; \ | |
3461 | $(SHELL) $${libsrcdir}/configure \ | |
3462 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3463 | || exit 1 | |
3464 | ||
930314a4 NN |
3465 | .PHONY: all-itcl maybe-all-itcl |
3466 | maybe-all-itcl: | |
db1ac78d | 3467 | all-itcl: configure-itcl |
930314a4 | 3468 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3469 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3470 | $(SET_LIB_PATH) \ | |
1086bc09 | 3471 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3472 | |
3473 | ||
3474 | .PHONY: check-itcl | |
3475 | check-itcl: | |
930314a4 | 3476 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3477 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3478 | $(SET_LIB_PATH) \ | |
1086bc09 | 3479 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3480 | |
3481 | ||
3482 | ||
930314a4 NN |
3483 | .PHONY: install-itcl maybe-install-itcl |
3484 | maybe-install-itcl: | |
3866be5d | 3485 | install-itcl: installdirs |
930314a4 | 3486 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3487 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3488 | $(SET_LIB_PATH) \ | |
1086bc09 | 3489 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3490 | |
3491 | ||
e2b9e2dc NN |
3492 | .PHONY: configure-ld maybe-configure-ld |
3493 | maybe-configure-ld: | |
3494 | configure-ld: ld/Makefile | |
3495 | ||
3496 | ld/Makefile: config.status | |
3497 | @[ -d ld ] || mkdir ld; \ | |
3498 | r=`${PWD}`; export r; \ | |
3499 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3500 | CC="$(CC)"; export CC; \ | |
3501 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3502 | CXX="$(CXX)"; export CXX; \ | |
3503 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3504 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3505 | AR="$(AR)"; export AR; \ | |
3506 | AS="$(AS)"; export AS; \ | |
3507 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3508 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3509 | LD="$(LD)"; export LD; \ | |
3510 | NM="$(NM)"; export NM; \ | |
3511 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3512 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3513 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3514 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3515 | fi; \ | |
3516 | echo Configuring in ld; \ | |
3517 | cd ld || exit 1; \ | |
3518 | case $(srcdir) in \ | |
3519 | \.) \ | |
3520 | srcdiroption="--srcdir=."; \ | |
3521 | libsrcdir=".";; \ | |
3522 | /* | [A-Za-z]:[\\/]*) \ | |
3523 | srcdiroption="--srcdir=$(srcdir)/ld"; \ | |
3524 | libsrcdir="$$s/ld";; \ | |
3525 | *) \ | |
3526 | srcdiroption="--srcdir=../$(srcdir)/ld"; \ | |
3527 | libsrcdir="$$s/ld";; \ | |
3528 | esac; \ | |
3529 | $(SHELL) $${libsrcdir}/configure \ | |
3530 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3531 | || exit 1 | |
3532 | ||
930314a4 NN |
3533 | .PHONY: all-ld maybe-all-ld |
3534 | maybe-all-ld: | |
db1ac78d | 3535 | all-ld: configure-ld |
930314a4 | 3536 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3537 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3538 | $(SET_LIB_PATH) \ | |
1086bc09 | 3539 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3540 | |
3541 | ||
3542 | .PHONY: check-ld | |
3543 | check-ld: | |
930314a4 | 3544 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3545 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3546 | $(SET_LIB_PATH) \ | |
1086bc09 | 3547 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3548 | |
3549 | ||
3550 | ||
930314a4 NN |
3551 | .PHONY: install-ld maybe-install-ld |
3552 | maybe-install-ld: | |
3866be5d | 3553 | install-ld: installdirs |
930314a4 | 3554 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3555 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3556 | $(SET_LIB_PATH) \ | |
1086bc09 | 3557 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3558 | |
3559 | ||
e2b9e2dc NN |
3560 | .PHONY: configure-libgui maybe-configure-libgui |
3561 | maybe-configure-libgui: | |
3562 | configure-libgui: libgui/Makefile | |
3563 | ||
3564 | libgui/Makefile: config.status | |
3565 | @[ -d libgui ] || mkdir libgui; \ | |
3566 | r=`${PWD}`; export r; \ | |
3567 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3568 | CC="$(CC)"; export CC; \ | |
3569 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3570 | CXX="$(CXX)"; export CXX; \ | |
3571 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3572 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3573 | AR="$(AR)"; export AR; \ | |
3574 | AS="$(AS)"; export AS; \ | |
3575 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3576 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3577 | LD="$(LD)"; export LD; \ | |
3578 | NM="$(NM)"; export NM; \ | |
3579 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3580 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3581 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3582 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3583 | fi; \ | |
3584 | echo Configuring in libgui; \ | |
3585 | cd libgui || exit 1; \ | |
3586 | case $(srcdir) in \ | |
3587 | \.) \ | |
3588 | srcdiroption="--srcdir=."; \ | |
3589 | libsrcdir=".";; \ | |
3590 | /* | [A-Za-z]:[\\/]*) \ | |
3591 | srcdiroption="--srcdir=$(srcdir)/libgui"; \ | |
3592 | libsrcdir="$$s/libgui";; \ | |
3593 | *) \ | |
3594 | srcdiroption="--srcdir=../$(srcdir)/libgui"; \ | |
3595 | libsrcdir="$$s/libgui";; \ | |
3596 | esac; \ | |
3597 | $(SHELL) $${libsrcdir}/configure \ | |
3598 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3599 | || exit 1 | |
3600 | ||
930314a4 NN |
3601 | .PHONY: all-libgui maybe-all-libgui |
3602 | maybe-all-libgui: | |
db1ac78d | 3603 | all-libgui: configure-libgui |
930314a4 | 3604 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3605 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3606 | $(SET_LIB_PATH) \ | |
1086bc09 | 3607 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3608 | |
3609 | ||
3610 | .PHONY: check-libgui | |
3611 | check-libgui: | |
930314a4 | 3612 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3613 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3614 | $(SET_LIB_PATH) \ | |
1086bc09 | 3615 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3616 | |
3617 | ||
3618 | ||
930314a4 NN |
3619 | .PHONY: install-libgui maybe-install-libgui |
3620 | maybe-install-libgui: | |
3866be5d | 3621 | install-libgui: installdirs |
930314a4 | 3622 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3623 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3624 | $(SET_LIB_PATH) \ | |
1086bc09 | 3625 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3626 | |
3627 | ||
e2b9e2dc NN |
3628 | .PHONY: configure-libiberty maybe-configure-libiberty |
3629 | maybe-configure-libiberty: | |
3630 | configure-libiberty: libiberty/Makefile | |
3631 | ||
3632 | libiberty/Makefile: config.status | |
3633 | @[ -d libiberty ] || mkdir libiberty; \ | |
3634 | r=`${PWD}`; export r; \ | |
3635 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3636 | CC="$(CC)"; export CC; \ | |
3637 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3638 | CXX="$(CXX)"; export CXX; \ | |
3639 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3640 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3641 | AR="$(AR)"; export AR; \ | |
3642 | AS="$(AS)"; export AS; \ | |
3643 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3644 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3645 | LD="$(LD)"; export LD; \ | |
3646 | NM="$(NM)"; export NM; \ | |
3647 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3648 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3649 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3650 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3651 | fi; \ | |
3652 | echo Configuring in libiberty; \ | |
3653 | cd libiberty || exit 1; \ | |
3654 | case $(srcdir) in \ | |
3655 | \.) \ | |
3656 | srcdiroption="--srcdir=."; \ | |
3657 | libsrcdir=".";; \ | |
3658 | /* | [A-Za-z]:[\\/]*) \ | |
3659 | srcdiroption="--srcdir=$(srcdir)/libiberty"; \ | |
3660 | libsrcdir="$$s/libiberty";; \ | |
3661 | *) \ | |
3662 | srcdiroption="--srcdir=../$(srcdir)/libiberty"; \ | |
3663 | libsrcdir="$$s/libiberty";; \ | |
3664 | esac; \ | |
3665 | $(SHELL) $${libsrcdir}/configure \ | |
3666 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3667 | || exit 1 | |
3668 | ||
930314a4 NN |
3669 | .PHONY: all-libiberty maybe-all-libiberty |
3670 | maybe-all-libiberty: | |
db1ac78d | 3671 | all-libiberty: configure-libiberty |
930314a4 | 3672 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3673 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3674 | $(SET_LIB_PATH) \ | |
1086bc09 | 3675 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3676 | |
3677 | ||
3678 | .PHONY: check-libiberty | |
3679 | check-libiberty: | |
930314a4 | 3680 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3681 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3682 | $(SET_LIB_PATH) \ | |
1086bc09 | 3683 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3684 | |
3685 | ||
3686 | ||
930314a4 NN |
3687 | .PHONY: install-libiberty maybe-install-libiberty |
3688 | maybe-install-libiberty: | |
3866be5d | 3689 | install-libiberty: installdirs |
930314a4 | 3690 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3691 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3692 | $(SET_LIB_PATH) \ | |
1086bc09 | 3693 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3694 | |
3695 | ||
e2b9e2dc NN |
3696 | .PHONY: configure-libtool maybe-configure-libtool |
3697 | maybe-configure-libtool: | |
3698 | configure-libtool: libtool/Makefile | |
3699 | ||
3700 | libtool/Makefile: config.status | |
3701 | @[ -d libtool ] || mkdir libtool; \ | |
3702 | r=`${PWD}`; export r; \ | |
3703 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3704 | CC="$(CC)"; export CC; \ | |
3705 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3706 | CXX="$(CXX)"; export CXX; \ | |
3707 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3708 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3709 | AR="$(AR)"; export AR; \ | |
3710 | AS="$(AS)"; export AS; \ | |
3711 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3712 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3713 | LD="$(LD)"; export LD; \ | |
3714 | NM="$(NM)"; export NM; \ | |
3715 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3716 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3717 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3718 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3719 | fi; \ | |
3720 | echo Configuring in libtool; \ | |
3721 | cd libtool || exit 1; \ | |
3722 | case $(srcdir) in \ | |
3723 | \.) \ | |
3724 | srcdiroption="--srcdir=."; \ | |
3725 | libsrcdir=".";; \ | |
3726 | /* | [A-Za-z]:[\\/]*) \ | |
3727 | srcdiroption="--srcdir=$(srcdir)/libtool"; \ | |
3728 | libsrcdir="$$s/libtool";; \ | |
3729 | *) \ | |
3730 | srcdiroption="--srcdir=../$(srcdir)/libtool"; \ | |
3731 | libsrcdir="$$s/libtool";; \ | |
3732 | esac; \ | |
3733 | $(SHELL) $${libsrcdir}/configure \ | |
3734 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3735 | || exit 1 | |
3736 | ||
930314a4 NN |
3737 | .PHONY: all-libtool maybe-all-libtool |
3738 | maybe-all-libtool: | |
db1ac78d | 3739 | all-libtool: configure-libtool |
930314a4 | 3740 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3741 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3742 | $(SET_LIB_PATH) \ | |
1086bc09 | 3743 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3744 | |
3745 | ||
3746 | .PHONY: check-libtool | |
3747 | check-libtool: | |
930314a4 | 3748 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3749 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3750 | $(SET_LIB_PATH) \ | |
1086bc09 | 3751 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3752 | |
3753 | ||
3754 | ||
930314a4 NN |
3755 | .PHONY: install-libtool maybe-install-libtool |
3756 | maybe-install-libtool: | |
3866be5d | 3757 | install-libtool: installdirs |
930314a4 | 3758 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3759 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3760 | $(SET_LIB_PATH) \ | |
1086bc09 | 3761 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3762 | |
3763 | ||
e2b9e2dc NN |
3764 | .PHONY: configure-m4 maybe-configure-m4 |
3765 | maybe-configure-m4: | |
3766 | configure-m4: m4/Makefile | |
3767 | ||
3768 | m4/Makefile: config.status | |
3769 | @[ -d m4 ] || mkdir m4; \ | |
3770 | r=`${PWD}`; export r; \ | |
3771 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3772 | CC="$(CC)"; export CC; \ | |
3773 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3774 | CXX="$(CXX)"; export CXX; \ | |
3775 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3776 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3777 | AR="$(AR)"; export AR; \ | |
3778 | AS="$(AS)"; export AS; \ | |
3779 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3780 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3781 | LD="$(LD)"; export LD; \ | |
3782 | NM="$(NM)"; export NM; \ | |
3783 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3784 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3785 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3786 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3787 | fi; \ | |
3788 | echo Configuring in m4; \ | |
3789 | cd m4 || exit 1; \ | |
3790 | case $(srcdir) in \ | |
3791 | \.) \ | |
3792 | srcdiroption="--srcdir=."; \ | |
3793 | libsrcdir=".";; \ | |
3794 | /* | [A-Za-z]:[\\/]*) \ | |
3795 | srcdiroption="--srcdir=$(srcdir)/m4"; \ | |
3796 | libsrcdir="$$s/m4";; \ | |
3797 | *) \ | |
3798 | srcdiroption="--srcdir=../$(srcdir)/m4"; \ | |
3799 | libsrcdir="$$s/m4";; \ | |
3800 | esac; \ | |
3801 | $(SHELL) $${libsrcdir}/configure \ | |
3802 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3803 | || exit 1 | |
3804 | ||
930314a4 NN |
3805 | .PHONY: all-m4 maybe-all-m4 |
3806 | maybe-all-m4: | |
db1ac78d | 3807 | all-m4: configure-m4 |
930314a4 | 3808 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3809 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3810 | $(SET_LIB_PATH) \ | |
1086bc09 | 3811 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3812 | |
3813 | ||
3814 | .PHONY: check-m4 | |
3815 | check-m4: | |
930314a4 | 3816 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3817 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3818 | $(SET_LIB_PATH) \ | |
1086bc09 | 3819 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3820 | |
3821 | ||
3822 | ||
930314a4 NN |
3823 | .PHONY: install-m4 maybe-install-m4 |
3824 | maybe-install-m4: | |
3866be5d | 3825 | install-m4: installdirs |
930314a4 | 3826 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3827 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3828 | $(SET_LIB_PATH) \ | |
1086bc09 | 3829 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3830 | |
3831 | ||
e2b9e2dc NN |
3832 | .PHONY: configure-make maybe-configure-make |
3833 | maybe-configure-make: | |
3834 | configure-make: make/Makefile | |
3835 | ||
3836 | make/Makefile: config.status | |
3837 | @[ -d make ] || mkdir make; \ | |
3838 | r=`${PWD}`; export r; \ | |
3839 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3840 | CC="$(CC)"; export CC; \ | |
3841 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3842 | CXX="$(CXX)"; export CXX; \ | |
3843 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3844 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3845 | AR="$(AR)"; export AR; \ | |
3846 | AS="$(AS)"; export AS; \ | |
3847 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3848 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3849 | LD="$(LD)"; export LD; \ | |
3850 | NM="$(NM)"; export NM; \ | |
3851 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3852 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3853 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3854 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3855 | fi; \ | |
3856 | echo Configuring in make; \ | |
3857 | cd make || exit 1; \ | |
3858 | case $(srcdir) in \ | |
3859 | \.) \ | |
3860 | srcdiroption="--srcdir=."; \ | |
3861 | libsrcdir=".";; \ | |
3862 | /* | [A-Za-z]:[\\/]*) \ | |
3863 | srcdiroption="--srcdir=$(srcdir)/make"; \ | |
3864 | libsrcdir="$$s/make";; \ | |
3865 | *) \ | |
3866 | srcdiroption="--srcdir=../$(srcdir)/make"; \ | |
3867 | libsrcdir="$$s/make";; \ | |
3868 | esac; \ | |
3869 | $(SHELL) $${libsrcdir}/configure \ | |
3870 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3871 | || exit 1 | |
3872 | ||
930314a4 NN |
3873 | .PHONY: all-make maybe-all-make |
3874 | maybe-all-make: | |
db1ac78d | 3875 | all-make: configure-make |
930314a4 | 3876 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3877 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3878 | $(SET_LIB_PATH) \ | |
1086bc09 | 3879 | (cd make && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3880 | |
3881 | ||
3882 | .PHONY: check-make | |
3883 | check-make: | |
930314a4 | 3884 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3885 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3886 | $(SET_LIB_PATH) \ | |
1086bc09 | 3887 | (cd make && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
3888 | |
3889 | ||
3890 | ||
930314a4 NN |
3891 | .PHONY: install-make maybe-install-make |
3892 | maybe-install-make: | |
3866be5d | 3893 | install-make: installdirs |
930314a4 | 3894 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3895 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3896 | $(SET_LIB_PATH) \ | |
1086bc09 | 3897 | (cd make && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3898 | |
3899 | ||
e2b9e2dc NN |
3900 | .PHONY: configure-mmalloc maybe-configure-mmalloc |
3901 | maybe-configure-mmalloc: | |
3902 | configure-mmalloc: mmalloc/Makefile | |
3903 | ||
3904 | mmalloc/Makefile: config.status | |
3905 | @[ -d mmalloc ] || mkdir mmalloc; \ | |
3906 | r=`${PWD}`; export r; \ | |
3907 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3908 | CC="$(CC)"; export CC; \ | |
3909 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3910 | CXX="$(CXX)"; export CXX; \ | |
3911 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3912 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3913 | AR="$(AR)"; export AR; \ | |
3914 | AS="$(AS)"; export AS; \ | |
3915 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3916 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3917 | LD="$(LD)"; export LD; \ | |
3918 | NM="$(NM)"; export NM; \ | |
3919 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3920 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3921 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3922 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3923 | fi; \ | |
3924 | echo Configuring in mmalloc; \ | |
3925 | cd mmalloc || exit 1; \ | |
3926 | case $(srcdir) in \ | |
3927 | \.) \ | |
3928 | srcdiroption="--srcdir=."; \ | |
3929 | libsrcdir=".";; \ | |
3930 | /* | [A-Za-z]:[\\/]*) \ | |
3931 | srcdiroption="--srcdir=$(srcdir)/mmalloc"; \ | |
3932 | libsrcdir="$$s/mmalloc";; \ | |
3933 | *) \ | |
3934 | srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \ | |
3935 | libsrcdir="$$s/mmalloc";; \ | |
3936 | esac; \ | |
3937 | $(SHELL) $${libsrcdir}/configure \ | |
3938 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3939 | || exit 1 | |
3940 | ||
930314a4 NN |
3941 | .PHONY: all-mmalloc maybe-all-mmalloc |
3942 | maybe-all-mmalloc: | |
db1ac78d | 3943 | all-mmalloc: configure-mmalloc |
930314a4 | 3944 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3945 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3946 | $(SET_LIB_PATH) \ | |
1086bc09 | 3947 | (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
3948 | |
3949 | ||
3950 | .PHONY: check-mmalloc | |
3951 | check-mmalloc: | |
3952 | ||
3953 | ||
3954 | ||
930314a4 NN |
3955 | .PHONY: install-mmalloc maybe-install-mmalloc |
3956 | maybe-install-mmalloc: | |
3866be5d | 3957 | install-mmalloc: installdirs |
930314a4 | 3958 | @r=`${PWD}`; export r; \ |
3866be5d NN |
3959 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3960 | $(SET_LIB_PATH) \ | |
1086bc09 | 3961 | (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
3962 | |
3963 | ||
e2b9e2dc NN |
3964 | .PHONY: configure-patch maybe-configure-patch |
3965 | maybe-configure-patch: | |
3966 | configure-patch: patch/Makefile | |
3967 | ||
3968 | patch/Makefile: config.status | |
3969 | @[ -d patch ] || mkdir patch; \ | |
3970 | r=`${PWD}`; export r; \ | |
3971 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3972 | CC="$(CC)"; export CC; \ | |
3973 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3974 | CXX="$(CXX)"; export CXX; \ | |
3975 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3976 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3977 | AR="$(AR)"; export AR; \ | |
3978 | AS="$(AS)"; export AS; \ | |
3979 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3980 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3981 | LD="$(LD)"; export LD; \ | |
3982 | NM="$(NM)"; export NM; \ | |
3983 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3984 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3985 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3986 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3987 | fi; \ | |
3988 | echo Configuring in patch; \ | |
3989 | cd patch || exit 1; \ | |
3990 | case $(srcdir) in \ | |
3991 | \.) \ | |
3992 | srcdiroption="--srcdir=."; \ | |
3993 | libsrcdir=".";; \ | |
3994 | /* | [A-Za-z]:[\\/]*) \ | |
3995 | srcdiroption="--srcdir=$(srcdir)/patch"; \ | |
3996 | libsrcdir="$$s/patch";; \ | |
3997 | *) \ | |
3998 | srcdiroption="--srcdir=../$(srcdir)/patch"; \ | |
3999 | libsrcdir="$$s/patch";; \ | |
4000 | esac; \ | |
4001 | $(SHELL) $${libsrcdir}/configure \ | |
4002 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4003 | || exit 1 | |
4004 | ||
930314a4 NN |
4005 | .PHONY: all-patch maybe-all-patch |
4006 | maybe-all-patch: | |
db1ac78d | 4007 | all-patch: configure-patch |
930314a4 | 4008 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4009 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4010 | $(SET_LIB_PATH) \ | |
1086bc09 | 4011 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4012 | |
4013 | ||
4014 | .PHONY: check-patch | |
4015 | check-patch: | |
930314a4 | 4016 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4017 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4018 | $(SET_LIB_PATH) \ | |
1086bc09 | 4019 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4020 | |
4021 | ||
4022 | ||
930314a4 NN |
4023 | .PHONY: install-patch maybe-install-patch |
4024 | maybe-install-patch: | |
3866be5d | 4025 | install-patch: installdirs |
930314a4 | 4026 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4027 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4028 | $(SET_LIB_PATH) \ | |
1086bc09 | 4029 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4030 | |
4031 | ||
e2b9e2dc NN |
4032 | .PHONY: configure-perl maybe-configure-perl |
4033 | maybe-configure-perl: | |
4034 | configure-perl: perl/Makefile | |
4035 | ||
4036 | perl/Makefile: config.status | |
4037 | @[ -d perl ] || mkdir perl; \ | |
4038 | r=`${PWD}`; export r; \ | |
4039 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4040 | CC="$(CC)"; export CC; \ | |
4041 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4042 | CXX="$(CXX)"; export CXX; \ | |
4043 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4044 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4045 | AR="$(AR)"; export AR; \ | |
4046 | AS="$(AS)"; export AS; \ | |
4047 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4048 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4049 | LD="$(LD)"; export LD; \ | |
4050 | NM="$(NM)"; export NM; \ | |
4051 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4052 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4053 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4054 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4055 | fi; \ | |
4056 | echo Configuring in perl; \ | |
4057 | cd perl || exit 1; \ | |
4058 | case $(srcdir) in \ | |
4059 | \.) \ | |
4060 | srcdiroption="--srcdir=."; \ | |
4061 | libsrcdir=".";; \ | |
4062 | /* | [A-Za-z]:[\\/]*) \ | |
4063 | srcdiroption="--srcdir=$(srcdir)/perl"; \ | |
4064 | libsrcdir="$$s/perl";; \ | |
4065 | *) \ | |
4066 | srcdiroption="--srcdir=../$(srcdir)/perl"; \ | |
4067 | libsrcdir="$$s/perl";; \ | |
4068 | esac; \ | |
4069 | $(SHELL) $${libsrcdir}/configure \ | |
4070 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4071 | || exit 1 | |
4072 | ||
930314a4 NN |
4073 | .PHONY: all-perl maybe-all-perl |
4074 | maybe-all-perl: | |
db1ac78d | 4075 | all-perl: configure-perl |
930314a4 | 4076 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4077 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4078 | $(SET_LIB_PATH) \ | |
1086bc09 | 4079 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4080 | |
4081 | ||
4082 | .PHONY: check-perl | |
4083 | check-perl: | |
930314a4 | 4084 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4085 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4086 | $(SET_LIB_PATH) \ | |
1086bc09 | 4087 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4088 | |
4089 | ||
4090 | ||
930314a4 NN |
4091 | .PHONY: install-perl maybe-install-perl |
4092 | maybe-install-perl: | |
3866be5d | 4093 | install-perl: installdirs |
930314a4 | 4094 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4095 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4096 | $(SET_LIB_PATH) \ | |
1086bc09 | 4097 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4098 | |
4099 | ||
e2b9e2dc NN |
4100 | .PHONY: configure-prms maybe-configure-prms |
4101 | maybe-configure-prms: | |
4102 | configure-prms: prms/Makefile | |
4103 | ||
4104 | prms/Makefile: config.status | |
4105 | @[ -d prms ] || mkdir prms; \ | |
4106 | r=`${PWD}`; export r; \ | |
4107 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4108 | CC="$(CC)"; export CC; \ | |
4109 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4110 | CXX="$(CXX)"; export CXX; \ | |
4111 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4112 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4113 | AR="$(AR)"; export AR; \ | |
4114 | AS="$(AS)"; export AS; \ | |
4115 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4116 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4117 | LD="$(LD)"; export LD; \ | |
4118 | NM="$(NM)"; export NM; \ | |
4119 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4120 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4121 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4122 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4123 | fi; \ | |
4124 | echo Configuring in prms; \ | |
4125 | cd prms || exit 1; \ | |
4126 | case $(srcdir) in \ | |
4127 | \.) \ | |
4128 | srcdiroption="--srcdir=."; \ | |
4129 | libsrcdir=".";; \ | |
4130 | /* | [A-Za-z]:[\\/]*) \ | |
4131 | srcdiroption="--srcdir=$(srcdir)/prms"; \ | |
4132 | libsrcdir="$$s/prms";; \ | |
4133 | *) \ | |
4134 | srcdiroption="--srcdir=../$(srcdir)/prms"; \ | |
4135 | libsrcdir="$$s/prms";; \ | |
4136 | esac; \ | |
4137 | $(SHELL) $${libsrcdir}/configure \ | |
4138 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4139 | || exit 1 | |
4140 | ||
930314a4 NN |
4141 | .PHONY: all-prms maybe-all-prms |
4142 | maybe-all-prms: | |
db1ac78d | 4143 | all-prms: configure-prms |
930314a4 | 4144 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4145 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4146 | $(SET_LIB_PATH) \ | |
1086bc09 | 4147 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4148 | |
4149 | ||
4150 | .PHONY: check-prms | |
4151 | check-prms: | |
930314a4 | 4152 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4153 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4154 | $(SET_LIB_PATH) \ | |
1086bc09 | 4155 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4156 | |
4157 | ||
4158 | ||
930314a4 NN |
4159 | .PHONY: install-prms maybe-install-prms |
4160 | maybe-install-prms: | |
3866be5d | 4161 | install-prms: installdirs |
930314a4 | 4162 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4163 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4164 | $(SET_LIB_PATH) \ | |
1086bc09 | 4165 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4166 | |
4167 | ||
e2b9e2dc NN |
4168 | .PHONY: configure-rcs maybe-configure-rcs |
4169 | maybe-configure-rcs: | |
4170 | configure-rcs: rcs/Makefile | |
4171 | ||
4172 | rcs/Makefile: config.status | |
4173 | @[ -d rcs ] || mkdir rcs; \ | |
4174 | r=`${PWD}`; export r; \ | |
4175 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4176 | CC="$(CC)"; export CC; \ | |
4177 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4178 | CXX="$(CXX)"; export CXX; \ | |
4179 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4180 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4181 | AR="$(AR)"; export AR; \ | |
4182 | AS="$(AS)"; export AS; \ | |
4183 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4184 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4185 | LD="$(LD)"; export LD; \ | |
4186 | NM="$(NM)"; export NM; \ | |
4187 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4188 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4189 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4190 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4191 | fi; \ | |
4192 | echo Configuring in rcs; \ | |
4193 | cd rcs || exit 1; \ | |
4194 | case $(srcdir) in \ | |
4195 | \.) \ | |
4196 | srcdiroption="--srcdir=."; \ | |
4197 | libsrcdir=".";; \ | |
4198 | /* | [A-Za-z]:[\\/]*) \ | |
4199 | srcdiroption="--srcdir=$(srcdir)/rcs"; \ | |
4200 | libsrcdir="$$s/rcs";; \ | |
4201 | *) \ | |
4202 | srcdiroption="--srcdir=../$(srcdir)/rcs"; \ | |
4203 | libsrcdir="$$s/rcs";; \ | |
4204 | esac; \ | |
4205 | $(SHELL) $${libsrcdir}/configure \ | |
4206 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4207 | || exit 1 | |
4208 | ||
930314a4 NN |
4209 | .PHONY: all-rcs maybe-all-rcs |
4210 | maybe-all-rcs: | |
db1ac78d | 4211 | all-rcs: configure-rcs |
930314a4 | 4212 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4213 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4214 | $(SET_LIB_PATH) \ | |
1086bc09 | 4215 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4216 | |
4217 | ||
4218 | .PHONY: check-rcs | |
4219 | check-rcs: | |
930314a4 | 4220 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4221 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4222 | $(SET_LIB_PATH) \ | |
1086bc09 | 4223 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4224 | |
4225 | ||
4226 | ||
930314a4 NN |
4227 | .PHONY: install-rcs maybe-install-rcs |
4228 | maybe-install-rcs: | |
3866be5d | 4229 | install-rcs: installdirs |
930314a4 NN |
4230 | @r=`${PWD}`; export r; \ |
4231 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4232 | $(SET_LIB_PATH) \ | |
1086bc09 | 4233 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4234 | |
4235 | ||
e2b9e2dc NN |
4236 | .PHONY: configure-readline maybe-configure-readline |
4237 | maybe-configure-readline: | |
4238 | configure-readline: readline/Makefile | |
4239 | ||
4240 | readline/Makefile: config.status | |
4241 | @[ -d readline ] || mkdir readline; \ | |
4242 | r=`${PWD}`; export r; \ | |
4243 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4244 | CC="$(CC)"; export CC; \ | |
4245 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4246 | CXX="$(CXX)"; export CXX; \ | |
4247 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4248 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4249 | AR="$(AR)"; export AR; \ | |
4250 | AS="$(AS)"; export AS; \ | |
4251 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4252 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4253 | LD="$(LD)"; export LD; \ | |
4254 | NM="$(NM)"; export NM; \ | |
4255 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4256 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4257 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4258 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4259 | fi; \ | |
4260 | echo Configuring in readline; \ | |
4261 | cd readline || exit 1; \ | |
4262 | case $(srcdir) in \ | |
4263 | \.) \ | |
4264 | srcdiroption="--srcdir=."; \ | |
4265 | libsrcdir=".";; \ | |
4266 | /* | [A-Za-z]:[\\/]*) \ | |
4267 | srcdiroption="--srcdir=$(srcdir)/readline"; \ | |
4268 | libsrcdir="$$s/readline";; \ | |
4269 | *) \ | |
4270 | srcdiroption="--srcdir=../$(srcdir)/readline"; \ | |
4271 | libsrcdir="$$s/readline";; \ | |
4272 | esac; \ | |
4273 | $(SHELL) $${libsrcdir}/configure \ | |
4274 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4275 | || exit 1 | |
4276 | ||
930314a4 NN |
4277 | .PHONY: all-readline maybe-all-readline |
4278 | maybe-all-readline: | |
db1ac78d | 4279 | all-readline: configure-readline |
930314a4 | 4280 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4281 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4282 | $(SET_LIB_PATH) \ | |
1086bc09 | 4283 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4284 | |
4285 | ||
4286 | .PHONY: check-readline | |
4287 | check-readline: | |
930314a4 | 4288 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4289 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4290 | $(SET_LIB_PATH) \ | |
1086bc09 | 4291 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4292 | |
4293 | ||
4294 | ||
930314a4 NN |
4295 | .PHONY: install-readline maybe-install-readline |
4296 | maybe-install-readline: | |
3866be5d | 4297 | install-readline: installdirs |
930314a4 | 4298 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4299 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4300 | $(SET_LIB_PATH) \ | |
1086bc09 | 4301 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4302 | |
4303 | ||
e2b9e2dc NN |
4304 | .PHONY: configure-release maybe-configure-release |
4305 | maybe-configure-release: | |
4306 | configure-release: release/Makefile | |
4307 | ||
4308 | release/Makefile: config.status | |
4309 | @[ -d release ] || mkdir release; \ | |
4310 | r=`${PWD}`; export r; \ | |
4311 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4312 | CC="$(CC)"; export CC; \ | |
4313 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4314 | CXX="$(CXX)"; export CXX; \ | |
4315 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4316 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4317 | AR="$(AR)"; export AR; \ | |
4318 | AS="$(AS)"; export AS; \ | |
4319 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4320 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4321 | LD="$(LD)"; export LD; \ | |
4322 | NM="$(NM)"; export NM; \ | |
4323 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4324 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4325 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4326 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4327 | fi; \ | |
4328 | echo Configuring in release; \ | |
4329 | cd release || exit 1; \ | |
4330 | case $(srcdir) in \ | |
4331 | \.) \ | |
4332 | srcdiroption="--srcdir=."; \ | |
4333 | libsrcdir=".";; \ | |
4334 | /* | [A-Za-z]:[\\/]*) \ | |
4335 | srcdiroption="--srcdir=$(srcdir)/release"; \ | |
4336 | libsrcdir="$$s/release";; \ | |
4337 | *) \ | |
4338 | srcdiroption="--srcdir=../$(srcdir)/release"; \ | |
4339 | libsrcdir="$$s/release";; \ | |
4340 | esac; \ | |
4341 | $(SHELL) $${libsrcdir}/configure \ | |
4342 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4343 | || exit 1 | |
4344 | ||
930314a4 NN |
4345 | .PHONY: all-release maybe-all-release |
4346 | maybe-all-release: | |
db1ac78d | 4347 | all-release: configure-release |
930314a4 | 4348 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4349 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4350 | $(SET_LIB_PATH) \ | |
1086bc09 | 4351 | (cd release && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4352 | |
4353 | ||
4354 | .PHONY: check-release | |
4355 | check-release: | |
4356 | ||
4357 | ||
4358 | ||
930314a4 NN |
4359 | .PHONY: install-release maybe-install-release |
4360 | maybe-install-release: | |
3866be5d NN |
4361 | install-release: |
4362 | ||
4363 | ||
e2b9e2dc NN |
4364 | .PHONY: configure-recode maybe-configure-recode |
4365 | maybe-configure-recode: | |
4366 | configure-recode: recode/Makefile | |
4367 | ||
4368 | recode/Makefile: config.status | |
4369 | @[ -d recode ] || mkdir recode; \ | |
4370 | r=`${PWD}`; export r; \ | |
4371 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4372 | CC="$(CC)"; export CC; \ | |
4373 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4374 | CXX="$(CXX)"; export CXX; \ | |
4375 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4376 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4377 | AR="$(AR)"; export AR; \ | |
4378 | AS="$(AS)"; export AS; \ | |
4379 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4380 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4381 | LD="$(LD)"; export LD; \ | |
4382 | NM="$(NM)"; export NM; \ | |
4383 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4384 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4385 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4386 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4387 | fi; \ | |
4388 | echo Configuring in recode; \ | |
4389 | cd recode || exit 1; \ | |
4390 | case $(srcdir) in \ | |
4391 | \.) \ | |
4392 | srcdiroption="--srcdir=."; \ | |
4393 | libsrcdir=".";; \ | |
4394 | /* | [A-Za-z]:[\\/]*) \ | |
4395 | srcdiroption="--srcdir=$(srcdir)/recode"; \ | |
4396 | libsrcdir="$$s/recode";; \ | |
4397 | *) \ | |
4398 | srcdiroption="--srcdir=../$(srcdir)/recode"; \ | |
4399 | libsrcdir="$$s/recode";; \ | |
4400 | esac; \ | |
4401 | $(SHELL) $${libsrcdir}/configure \ | |
4402 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4403 | || exit 1 | |
4404 | ||
930314a4 NN |
4405 | .PHONY: all-recode maybe-all-recode |
4406 | maybe-all-recode: | |
db1ac78d | 4407 | all-recode: configure-recode |
930314a4 | 4408 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4409 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4410 | $(SET_LIB_PATH) \ | |
1086bc09 | 4411 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4412 | |
4413 | ||
4414 | .PHONY: check-recode | |
4415 | check-recode: | |
930314a4 | 4416 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4417 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4418 | $(SET_LIB_PATH) \ | |
1086bc09 | 4419 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4420 | |
4421 | ||
4422 | ||
930314a4 NN |
4423 | .PHONY: install-recode maybe-install-recode |
4424 | maybe-install-recode: | |
3866be5d | 4425 | install-recode: installdirs |
930314a4 | 4426 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4427 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4428 | $(SET_LIB_PATH) \ | |
1086bc09 | 4429 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4430 | |
4431 | ||
e2b9e2dc NN |
4432 | .PHONY: configure-sed maybe-configure-sed |
4433 | maybe-configure-sed: | |
4434 | configure-sed: sed/Makefile | |
4435 | ||
4436 | sed/Makefile: config.status | |
4437 | @[ -d sed ] || mkdir sed; \ | |
4438 | r=`${PWD}`; export r; \ | |
4439 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4440 | CC="$(CC)"; export CC; \ | |
4441 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4442 | CXX="$(CXX)"; export CXX; \ | |
4443 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4444 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4445 | AR="$(AR)"; export AR; \ | |
4446 | AS="$(AS)"; export AS; \ | |
4447 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4448 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4449 | LD="$(LD)"; export LD; \ | |
4450 | NM="$(NM)"; export NM; \ | |
4451 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4452 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4453 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4454 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4455 | fi; \ | |
4456 | echo Configuring in sed; \ | |
4457 | cd sed || exit 1; \ | |
4458 | case $(srcdir) in \ | |
4459 | \.) \ | |
4460 | srcdiroption="--srcdir=."; \ | |
4461 | libsrcdir=".";; \ | |
4462 | /* | [A-Za-z]:[\\/]*) \ | |
4463 | srcdiroption="--srcdir=$(srcdir)/sed"; \ | |
4464 | libsrcdir="$$s/sed";; \ | |
4465 | *) \ | |
4466 | srcdiroption="--srcdir=../$(srcdir)/sed"; \ | |
4467 | libsrcdir="$$s/sed";; \ | |
4468 | esac; \ | |
4469 | $(SHELL) $${libsrcdir}/configure \ | |
4470 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4471 | || exit 1 | |
4472 | ||
930314a4 NN |
4473 | .PHONY: all-sed maybe-all-sed |
4474 | maybe-all-sed: | |
db1ac78d | 4475 | all-sed: configure-sed |
930314a4 | 4476 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4477 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4478 | $(SET_LIB_PATH) \ | |
1086bc09 | 4479 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4480 | |
4481 | ||
4482 | .PHONY: check-sed | |
4483 | check-sed: | |
930314a4 | 4484 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4485 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4486 | $(SET_LIB_PATH) \ | |
1086bc09 | 4487 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4488 | |
4489 | ||
4490 | ||
930314a4 NN |
4491 | .PHONY: install-sed maybe-install-sed |
4492 | maybe-install-sed: | |
3866be5d | 4493 | install-sed: installdirs |
930314a4 | 4494 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4495 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4496 | $(SET_LIB_PATH) \ | |
1086bc09 | 4497 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4498 | |
4499 | ||
e2b9e2dc NN |
4500 | .PHONY: configure-send-pr maybe-configure-send-pr |
4501 | maybe-configure-send-pr: | |
4502 | configure-send-pr: send-pr/Makefile | |
4503 | ||
4504 | send-pr/Makefile: config.status | |
4505 | @[ -d send-pr ] || mkdir send-pr; \ | |
4506 | r=`${PWD}`; export r; \ | |
4507 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4508 | CC="$(CC)"; export CC; \ | |
4509 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4510 | CXX="$(CXX)"; export CXX; \ | |
4511 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4512 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4513 | AR="$(AR)"; export AR; \ | |
4514 | AS="$(AS)"; export AS; \ | |
4515 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4516 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4517 | LD="$(LD)"; export LD; \ | |
4518 | NM="$(NM)"; export NM; \ | |
4519 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4520 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4521 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4522 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4523 | fi; \ | |
4524 | echo Configuring in send-pr; \ | |
4525 | cd send-pr || exit 1; \ | |
4526 | case $(srcdir) in \ | |
4527 | \.) \ | |
4528 | srcdiroption="--srcdir=."; \ | |
4529 | libsrcdir=".";; \ | |
4530 | /* | [A-Za-z]:[\\/]*) \ | |
4531 | srcdiroption="--srcdir=$(srcdir)/send-pr"; \ | |
4532 | libsrcdir="$$s/send-pr";; \ | |
4533 | *) \ | |
4534 | srcdiroption="--srcdir=../$(srcdir)/send-pr"; \ | |
4535 | libsrcdir="$$s/send-pr";; \ | |
4536 | esac; \ | |
4537 | $(SHELL) $${libsrcdir}/configure \ | |
4538 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4539 | || exit 1 | |
4540 | ||
930314a4 NN |
4541 | .PHONY: all-send-pr maybe-all-send-pr |
4542 | maybe-all-send-pr: | |
db1ac78d | 4543 | all-send-pr: configure-send-pr |
930314a4 | 4544 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4545 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4546 | $(SET_LIB_PATH) \ | |
1086bc09 | 4547 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4548 | |
4549 | ||
4550 | .PHONY: check-send-pr | |
4551 | check-send-pr: | |
930314a4 | 4552 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4553 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4554 | $(SET_LIB_PATH) \ | |
1086bc09 | 4555 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4556 | |
4557 | ||
4558 | ||
930314a4 NN |
4559 | .PHONY: install-send-pr maybe-install-send-pr |
4560 | maybe-install-send-pr: | |
3866be5d | 4561 | install-send-pr: installdirs |
930314a4 | 4562 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4563 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4564 | $(SET_LIB_PATH) \ | |
1086bc09 | 4565 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4566 | |
4567 | ||
e2b9e2dc NN |
4568 | .PHONY: configure-shellutils maybe-configure-shellutils |
4569 | maybe-configure-shellutils: | |
4570 | configure-shellutils: shellutils/Makefile | |
4571 | ||
4572 | shellutils/Makefile: config.status | |
4573 | @[ -d shellutils ] || mkdir shellutils; \ | |
4574 | r=`${PWD}`; export r; \ | |
4575 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4576 | CC="$(CC)"; export CC; \ | |
4577 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4578 | CXX="$(CXX)"; export CXX; \ | |
4579 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4580 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4581 | AR="$(AR)"; export AR; \ | |
4582 | AS="$(AS)"; export AS; \ | |
4583 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4584 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4585 | LD="$(LD)"; export LD; \ | |
4586 | NM="$(NM)"; export NM; \ | |
4587 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4588 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4589 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4590 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4591 | fi; \ | |
4592 | echo Configuring in shellutils; \ | |
4593 | cd shellutils || exit 1; \ | |
4594 | case $(srcdir) in \ | |
4595 | \.) \ | |
4596 | srcdiroption="--srcdir=."; \ | |
4597 | libsrcdir=".";; \ | |
4598 | /* | [A-Za-z]:[\\/]*) \ | |
4599 | srcdiroption="--srcdir=$(srcdir)/shellutils"; \ | |
4600 | libsrcdir="$$s/shellutils";; \ | |
4601 | *) \ | |
4602 | srcdiroption="--srcdir=../$(srcdir)/shellutils"; \ | |
4603 | libsrcdir="$$s/shellutils";; \ | |
4604 | esac; \ | |
4605 | $(SHELL) $${libsrcdir}/configure \ | |
4606 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4607 | || exit 1 | |
4608 | ||
930314a4 NN |
4609 | .PHONY: all-shellutils maybe-all-shellutils |
4610 | maybe-all-shellutils: | |
db1ac78d | 4611 | all-shellutils: configure-shellutils |
930314a4 | 4612 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4613 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4614 | $(SET_LIB_PATH) \ | |
1086bc09 | 4615 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4616 | |
4617 | ||
4618 | .PHONY: check-shellutils | |
4619 | check-shellutils: | |
930314a4 | 4620 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4621 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4622 | $(SET_LIB_PATH) \ | |
1086bc09 | 4623 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4624 | |
4625 | ||
4626 | ||
930314a4 NN |
4627 | .PHONY: install-shellutils maybe-install-shellutils |
4628 | maybe-install-shellutils: | |
3866be5d | 4629 | install-shellutils: installdirs |
930314a4 | 4630 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4631 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4632 | $(SET_LIB_PATH) \ | |
1086bc09 | 4633 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4634 | |
4635 | ||
e2b9e2dc NN |
4636 | .PHONY: configure-sid maybe-configure-sid |
4637 | maybe-configure-sid: | |
4638 | configure-sid: sid/Makefile | |
4639 | ||
4640 | sid/Makefile: config.status | |
4641 | @[ -d sid ] || mkdir sid; \ | |
4642 | r=`${PWD}`; export r; \ | |
4643 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4644 | CC="$(CC)"; export CC; \ | |
4645 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4646 | CXX="$(CXX)"; export CXX; \ | |
4647 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4648 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4649 | AR="$(AR)"; export AR; \ | |
4650 | AS="$(AS)"; export AS; \ | |
4651 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4652 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4653 | LD="$(LD)"; export LD; \ | |
4654 | NM="$(NM)"; export NM; \ | |
4655 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4656 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4657 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4658 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4659 | fi; \ | |
4660 | echo Configuring in sid; \ | |
4661 | cd sid || exit 1; \ | |
4662 | case $(srcdir) in \ | |
4663 | \.) \ | |
4664 | srcdiroption="--srcdir=."; \ | |
4665 | libsrcdir=".";; \ | |
4666 | /* | [A-Za-z]:[\\/]*) \ | |
4667 | srcdiroption="--srcdir=$(srcdir)/sid"; \ | |
4668 | libsrcdir="$$s/sid";; \ | |
4669 | *) \ | |
4670 | srcdiroption="--srcdir=../$(srcdir)/sid"; \ | |
4671 | libsrcdir="$$s/sid";; \ | |
4672 | esac; \ | |
4673 | $(SHELL) $${libsrcdir}/configure \ | |
4674 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4675 | || exit 1 | |
4676 | ||
930314a4 NN |
4677 | .PHONY: all-sid maybe-all-sid |
4678 | maybe-all-sid: | |
db1ac78d | 4679 | all-sid: configure-sid |
930314a4 | 4680 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4681 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4682 | $(SET_LIB_PATH) \ | |
1086bc09 | 4683 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4684 | |
4685 | ||
4686 | .PHONY: check-sid | |
4687 | check-sid: | |
930314a4 | 4688 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4689 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4690 | $(SET_LIB_PATH) \ | |
1086bc09 | 4691 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4692 | |
4693 | ||
4694 | ||
930314a4 NN |
4695 | .PHONY: install-sid maybe-install-sid |
4696 | maybe-install-sid: | |
3866be5d | 4697 | install-sid: installdirs |
930314a4 | 4698 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4699 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4700 | $(SET_LIB_PATH) \ | |
1086bc09 | 4701 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4702 | |
4703 | ||
e2b9e2dc NN |
4704 | .PHONY: configure-sim maybe-configure-sim |
4705 | maybe-configure-sim: | |
4706 | configure-sim: sim/Makefile | |
4707 | ||
4708 | sim/Makefile: config.status | |
4709 | @[ -d sim ] || mkdir sim; \ | |
4710 | r=`${PWD}`; export r; \ | |
4711 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4712 | CC="$(CC)"; export CC; \ | |
4713 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4714 | CXX="$(CXX)"; export CXX; \ | |
4715 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4716 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4717 | AR="$(AR)"; export AR; \ | |
4718 | AS="$(AS)"; export AS; \ | |
4719 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4720 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4721 | LD="$(LD)"; export LD; \ | |
4722 | NM="$(NM)"; export NM; \ | |
4723 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4724 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4725 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4726 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4727 | fi; \ | |
4728 | echo Configuring in sim; \ | |
4729 | cd sim || exit 1; \ | |
4730 | case $(srcdir) in \ | |
4731 | \.) \ | |
4732 | srcdiroption="--srcdir=."; \ | |
4733 | libsrcdir=".";; \ | |
4734 | /* | [A-Za-z]:[\\/]*) \ | |
4735 | srcdiroption="--srcdir=$(srcdir)/sim"; \ | |
4736 | libsrcdir="$$s/sim";; \ | |
4737 | *) \ | |
4738 | srcdiroption="--srcdir=../$(srcdir)/sim"; \ | |
4739 | libsrcdir="$$s/sim";; \ | |
4740 | esac; \ | |
4741 | $(SHELL) $${libsrcdir}/configure \ | |
4742 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4743 | || exit 1 | |
4744 | ||
930314a4 NN |
4745 | .PHONY: all-sim maybe-all-sim |
4746 | maybe-all-sim: | |
db1ac78d | 4747 | all-sim: configure-sim |
930314a4 | 4748 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4749 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4750 | $(SET_LIB_PATH) \ | |
1086bc09 | 4751 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4752 | |
4753 | ||
4754 | .PHONY: check-sim | |
4755 | check-sim: | |
930314a4 | 4756 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4757 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4758 | $(SET_LIB_PATH) \ | |
1086bc09 | 4759 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4760 | |
4761 | ||
4762 | ||
930314a4 NN |
4763 | .PHONY: install-sim maybe-install-sim |
4764 | maybe-install-sim: | |
3866be5d | 4765 | install-sim: installdirs |
930314a4 | 4766 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4767 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4768 | $(SET_LIB_PATH) \ | |
1086bc09 | 4769 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4770 | |
4771 | ||
e2b9e2dc NN |
4772 | .PHONY: configure-snavigator maybe-configure-snavigator |
4773 | maybe-configure-snavigator: | |
4774 | configure-snavigator: snavigator/Makefile | |
4775 | ||
4776 | snavigator/Makefile: config.status | |
4777 | @[ -d snavigator ] || mkdir snavigator; \ | |
4778 | r=`${PWD}`; export r; \ | |
4779 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4780 | CC="$(CC)"; export CC; \ | |
4781 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4782 | CXX="$(CXX)"; export CXX; \ | |
4783 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4784 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4785 | AR="$(AR)"; export AR; \ | |
4786 | AS="$(AS)"; export AS; \ | |
4787 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4788 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4789 | LD="$(LD)"; export LD; \ | |
4790 | NM="$(NM)"; export NM; \ | |
4791 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4792 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4793 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4794 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4795 | fi; \ | |
4796 | echo Configuring in snavigator; \ | |
4797 | cd snavigator || exit 1; \ | |
4798 | case $(srcdir) in \ | |
4799 | \.) \ | |
4800 | srcdiroption="--srcdir=."; \ | |
4801 | libsrcdir=".";; \ | |
4802 | /* | [A-Za-z]:[\\/]*) \ | |
4803 | srcdiroption="--srcdir=$(srcdir)/snavigator"; \ | |
4804 | libsrcdir="$$s/snavigator";; \ | |
4805 | *) \ | |
4806 | srcdiroption="--srcdir=../$(srcdir)/snavigator"; \ | |
4807 | libsrcdir="$$s/snavigator";; \ | |
4808 | esac; \ | |
4809 | $(SHELL) $${libsrcdir}/configure \ | |
4810 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4811 | || exit 1 | |
4812 | ||
930314a4 NN |
4813 | .PHONY: all-snavigator maybe-all-snavigator |
4814 | maybe-all-snavigator: | |
db1ac78d | 4815 | all-snavigator: configure-snavigator |
930314a4 | 4816 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4817 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4818 | $(SET_LIB_PATH) \ | |
1086bc09 | 4819 | (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4820 | |
4821 | ||
4822 | .PHONY: check-snavigator | |
4823 | check-snavigator: | |
930314a4 | 4824 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4825 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4826 | $(SET_LIB_PATH) \ | |
1086bc09 | 4827 | (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4828 | |
4829 | ||
4830 | ||
930314a4 NN |
4831 | .PHONY: install-snavigator maybe-install-snavigator |
4832 | maybe-install-snavigator: | |
3866be5d | 4833 | install-snavigator: installdirs |
930314a4 | 4834 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4835 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4836 | $(SET_LIB_PATH) \ | |
1086bc09 | 4837 | (cd snavigator && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4838 | |
4839 | ||
e2b9e2dc NN |
4840 | .PHONY: configure-tar maybe-configure-tar |
4841 | maybe-configure-tar: | |
4842 | configure-tar: tar/Makefile | |
4843 | ||
4844 | tar/Makefile: config.status | |
4845 | @[ -d tar ] || mkdir tar; \ | |
4846 | r=`${PWD}`; export r; \ | |
4847 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4848 | CC="$(CC)"; export CC; \ | |
4849 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4850 | CXX="$(CXX)"; export CXX; \ | |
4851 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4852 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4853 | AR="$(AR)"; export AR; \ | |
4854 | AS="$(AS)"; export AS; \ | |
4855 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4856 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4857 | LD="$(LD)"; export LD; \ | |
4858 | NM="$(NM)"; export NM; \ | |
4859 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4860 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4861 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4862 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4863 | fi; \ | |
4864 | echo Configuring in tar; \ | |
4865 | cd tar || exit 1; \ | |
4866 | case $(srcdir) in \ | |
4867 | \.) \ | |
4868 | srcdiroption="--srcdir=."; \ | |
4869 | libsrcdir=".";; \ | |
4870 | /* | [A-Za-z]:[\\/]*) \ | |
4871 | srcdiroption="--srcdir=$(srcdir)/tar"; \ | |
4872 | libsrcdir="$$s/tar";; \ | |
4873 | *) \ | |
4874 | srcdiroption="--srcdir=../$(srcdir)/tar"; \ | |
4875 | libsrcdir="$$s/tar";; \ | |
4876 | esac; \ | |
4877 | $(SHELL) $${libsrcdir}/configure \ | |
4878 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4879 | || exit 1 | |
4880 | ||
930314a4 NN |
4881 | .PHONY: all-tar maybe-all-tar |
4882 | maybe-all-tar: | |
db1ac78d | 4883 | all-tar: configure-tar |
930314a4 | 4884 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4885 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4886 | $(SET_LIB_PATH) \ | |
1086bc09 | 4887 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4888 | |
4889 | ||
4890 | .PHONY: check-tar | |
4891 | check-tar: | |
930314a4 | 4892 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4893 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4894 | $(SET_LIB_PATH) \ | |
1086bc09 | 4895 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4896 | |
4897 | ||
4898 | ||
930314a4 NN |
4899 | .PHONY: install-tar maybe-install-tar |
4900 | maybe-install-tar: | |
3866be5d | 4901 | install-tar: installdirs |
930314a4 | 4902 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4903 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4904 | $(SET_LIB_PATH) \ | |
1086bc09 | 4905 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
4906 | |
4907 | ||
e2b9e2dc NN |
4908 | .PHONY: configure-texinfo maybe-configure-texinfo |
4909 | maybe-configure-texinfo: | |
4910 | configure-texinfo: texinfo/Makefile | |
4911 | ||
4912 | texinfo/Makefile: config.status | |
4913 | @[ -d texinfo ] || mkdir texinfo; \ | |
4914 | r=`${PWD}`; export r; \ | |
4915 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4916 | CC="$(CC)"; export CC; \ | |
4917 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4918 | CXX="$(CXX)"; export CXX; \ | |
4919 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4920 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4921 | AR="$(AR)"; export AR; \ | |
4922 | AS="$(AS)"; export AS; \ | |
4923 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4924 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4925 | LD="$(LD)"; export LD; \ | |
4926 | NM="$(NM)"; export NM; \ | |
4927 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4928 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4929 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4930 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4931 | fi; \ | |
4932 | echo Configuring in texinfo; \ | |
4933 | cd texinfo || exit 1; \ | |
4934 | case $(srcdir) in \ | |
4935 | \.) \ | |
4936 | srcdiroption="--srcdir=."; \ | |
4937 | libsrcdir=".";; \ | |
4938 | /* | [A-Za-z]:[\\/]*) \ | |
4939 | srcdiroption="--srcdir=$(srcdir)/texinfo"; \ | |
4940 | libsrcdir="$$s/texinfo";; \ | |
4941 | *) \ | |
4942 | srcdiroption="--srcdir=../$(srcdir)/texinfo"; \ | |
4943 | libsrcdir="$$s/texinfo";; \ | |
4944 | esac; \ | |
4945 | $(SHELL) $${libsrcdir}/configure \ | |
4946 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4947 | || exit 1 | |
4948 | ||
930314a4 NN |
4949 | .PHONY: all-texinfo maybe-all-texinfo |
4950 | maybe-all-texinfo: | |
db1ac78d | 4951 | all-texinfo: configure-texinfo |
930314a4 | 4952 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4953 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4954 | $(SET_LIB_PATH) \ | |
1086bc09 | 4955 | (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
4956 | |
4957 | ||
4958 | .PHONY: check-texinfo | |
4959 | check-texinfo: | |
930314a4 | 4960 | @r=`${PWD}`; export r; \ |
3866be5d NN |
4961 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4962 | $(SET_LIB_PATH) \ | |
1086bc09 | 4963 | (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
4964 | |
4965 | ||
4966 | ||
930314a4 NN |
4967 | .PHONY: install-texinfo maybe-install-texinfo |
4968 | maybe-install-texinfo: | |
3866be5d NN |
4969 | install-texinfo: |
4970 | ||
4971 | ||
e2b9e2dc NN |
4972 | .PHONY: configure-textutils maybe-configure-textutils |
4973 | maybe-configure-textutils: | |
4974 | configure-textutils: textutils/Makefile | |
4975 | ||
4976 | textutils/Makefile: config.status | |
4977 | @[ -d textutils ] || mkdir textutils; \ | |
4978 | r=`${PWD}`; export r; \ | |
4979 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4980 | CC="$(CC)"; export CC; \ | |
4981 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4982 | CXX="$(CXX)"; export CXX; \ | |
4983 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4984 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4985 | AR="$(AR)"; export AR; \ | |
4986 | AS="$(AS)"; export AS; \ | |
4987 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4988 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4989 | LD="$(LD)"; export LD; \ | |
4990 | NM="$(NM)"; export NM; \ | |
4991 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4992 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4993 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4994 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4995 | fi; \ | |
4996 | echo Configuring in textutils; \ | |
4997 | cd textutils || exit 1; \ | |
4998 | case $(srcdir) in \ | |
4999 | \.) \ | |
5000 | srcdiroption="--srcdir=."; \ | |
5001 | libsrcdir=".";; \ | |
5002 | /* | [A-Za-z]:[\\/]*) \ | |
5003 | srcdiroption="--srcdir=$(srcdir)/textutils"; \ | |
5004 | libsrcdir="$$s/textutils";; \ | |
5005 | *) \ | |
5006 | srcdiroption="--srcdir=../$(srcdir)/textutils"; \ | |
5007 | libsrcdir="$$s/textutils";; \ | |
5008 | esac; \ | |
5009 | $(SHELL) $${libsrcdir}/configure \ | |
5010 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5011 | || exit 1 | |
5012 | ||
930314a4 NN |
5013 | .PHONY: all-textutils maybe-all-textutils |
5014 | maybe-all-textutils: | |
db1ac78d | 5015 | all-textutils: configure-textutils |
930314a4 | 5016 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5017 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5018 | $(SET_LIB_PATH) \ | |
1086bc09 | 5019 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5020 | |
5021 | ||
5022 | .PHONY: check-textutils | |
5023 | check-textutils: | |
930314a4 | 5024 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5025 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5026 | $(SET_LIB_PATH) \ | |
1086bc09 | 5027 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
5028 | |
5029 | ||
5030 | ||
930314a4 NN |
5031 | .PHONY: install-textutils maybe-install-textutils |
5032 | maybe-install-textutils: | |
3866be5d | 5033 | install-textutils: installdirs |
930314a4 | 5034 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5035 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5036 | $(SET_LIB_PATH) \ | |
1086bc09 | 5037 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
5038 | |
5039 | ||
e2b9e2dc NN |
5040 | .PHONY: configure-time maybe-configure-time |
5041 | maybe-configure-time: | |
5042 | configure-time: time/Makefile | |
5043 | ||
5044 | time/Makefile: config.status | |
5045 | @[ -d time ] || mkdir time; \ | |
5046 | r=`${PWD}`; export r; \ | |
5047 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5048 | CC="$(CC)"; export CC; \ | |
5049 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5050 | CXX="$(CXX)"; export CXX; \ | |
5051 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5052 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5053 | AR="$(AR)"; export AR; \ | |
5054 | AS="$(AS)"; export AS; \ | |
5055 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5056 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5057 | LD="$(LD)"; export LD; \ | |
5058 | NM="$(NM)"; export NM; \ | |
5059 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5060 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5061 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5062 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5063 | fi; \ | |
5064 | echo Configuring in time; \ | |
5065 | cd time || exit 1; \ | |
5066 | case $(srcdir) in \ | |
5067 | \.) \ | |
5068 | srcdiroption="--srcdir=."; \ | |
5069 | libsrcdir=".";; \ | |
5070 | /* | [A-Za-z]:[\\/]*) \ | |
5071 | srcdiroption="--srcdir=$(srcdir)/time"; \ | |
5072 | libsrcdir="$$s/time";; \ | |
5073 | *) \ | |
5074 | srcdiroption="--srcdir=../$(srcdir)/time"; \ | |
5075 | libsrcdir="$$s/time";; \ | |
5076 | esac; \ | |
5077 | $(SHELL) $${libsrcdir}/configure \ | |
5078 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5079 | || exit 1 | |
5080 | ||
930314a4 NN |
5081 | .PHONY: all-time maybe-all-time |
5082 | maybe-all-time: | |
db1ac78d | 5083 | all-time: configure-time |
930314a4 | 5084 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5085 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5086 | $(SET_LIB_PATH) \ | |
1086bc09 | 5087 | (cd time && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5088 | |
5089 | ||
5090 | .PHONY: check-time | |
5091 | check-time: | |
930314a4 | 5092 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5093 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5094 | $(SET_LIB_PATH) \ | |
1086bc09 | 5095 | (cd time && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
5096 | |
5097 | ||
5098 | ||
930314a4 NN |
5099 | .PHONY: install-time maybe-install-time |
5100 | maybe-install-time: | |
3866be5d | 5101 | install-time: installdirs |
930314a4 | 5102 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5103 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5104 | $(SET_LIB_PATH) \ | |
1086bc09 | 5105 | (cd time && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
5106 | |
5107 | ||
e2b9e2dc NN |
5108 | .PHONY: configure-uudecode maybe-configure-uudecode |
5109 | maybe-configure-uudecode: | |
5110 | configure-uudecode: uudecode/Makefile | |
5111 | ||
5112 | uudecode/Makefile: config.status | |
5113 | @[ -d uudecode ] || mkdir uudecode; \ | |
5114 | r=`${PWD}`; export r; \ | |
5115 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5116 | CC="$(CC)"; export CC; \ | |
5117 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5118 | CXX="$(CXX)"; export CXX; \ | |
5119 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5120 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5121 | AR="$(AR)"; export AR; \ | |
5122 | AS="$(AS)"; export AS; \ | |
5123 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5124 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5125 | LD="$(LD)"; export LD; \ | |
5126 | NM="$(NM)"; export NM; \ | |
5127 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5128 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5129 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5130 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5131 | fi; \ | |
5132 | echo Configuring in uudecode; \ | |
5133 | cd uudecode || exit 1; \ | |
5134 | case $(srcdir) in \ | |
5135 | \.) \ | |
5136 | srcdiroption="--srcdir=."; \ | |
5137 | libsrcdir=".";; \ | |
5138 | /* | [A-Za-z]:[\\/]*) \ | |
5139 | srcdiroption="--srcdir=$(srcdir)/uudecode"; \ | |
5140 | libsrcdir="$$s/uudecode";; \ | |
5141 | *) \ | |
5142 | srcdiroption="--srcdir=../$(srcdir)/uudecode"; \ | |
5143 | libsrcdir="$$s/uudecode";; \ | |
5144 | esac; \ | |
5145 | $(SHELL) $${libsrcdir}/configure \ | |
5146 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5147 | || exit 1 | |
5148 | ||
930314a4 NN |
5149 | .PHONY: all-uudecode maybe-all-uudecode |
5150 | maybe-all-uudecode: | |
db1ac78d | 5151 | all-uudecode: configure-uudecode |
930314a4 | 5152 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5153 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5154 | $(SET_LIB_PATH) \ | |
1086bc09 | 5155 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5156 | |
5157 | ||
5158 | .PHONY: check-uudecode | |
5159 | check-uudecode: | |
930314a4 | 5160 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5161 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5162 | $(SET_LIB_PATH) \ | |
1086bc09 | 5163 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
5164 | |
5165 | ||
5166 | ||
930314a4 NN |
5167 | .PHONY: install-uudecode maybe-install-uudecode |
5168 | maybe-install-uudecode: | |
3866be5d | 5169 | install-uudecode: installdirs |
930314a4 | 5170 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5171 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5172 | $(SET_LIB_PATH) \ | |
1086bc09 | 5173 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
5174 | |
5175 | ||
e2b9e2dc NN |
5176 | .PHONY: configure-wdiff maybe-configure-wdiff |
5177 | maybe-configure-wdiff: | |
5178 | configure-wdiff: wdiff/Makefile | |
5179 | ||
5180 | wdiff/Makefile: config.status | |
5181 | @[ -d wdiff ] || mkdir wdiff; \ | |
5182 | r=`${PWD}`; export r; \ | |
5183 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5184 | CC="$(CC)"; export CC; \ | |
5185 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5186 | CXX="$(CXX)"; export CXX; \ | |
5187 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5188 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5189 | AR="$(AR)"; export AR; \ | |
5190 | AS="$(AS)"; export AS; \ | |
5191 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5192 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5193 | LD="$(LD)"; export LD; \ | |
5194 | NM="$(NM)"; export NM; \ | |
5195 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5196 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5197 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5198 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5199 | fi; \ | |
5200 | echo Configuring in wdiff; \ | |
5201 | cd wdiff || exit 1; \ | |
5202 | case $(srcdir) in \ | |
5203 | \.) \ | |
5204 | srcdiroption="--srcdir=."; \ | |
5205 | libsrcdir=".";; \ | |
5206 | /* | [A-Za-z]:[\\/]*) \ | |
5207 | srcdiroption="--srcdir=$(srcdir)/wdiff"; \ | |
5208 | libsrcdir="$$s/wdiff";; \ | |
5209 | *) \ | |
5210 | srcdiroption="--srcdir=../$(srcdir)/wdiff"; \ | |
5211 | libsrcdir="$$s/wdiff";; \ | |
5212 | esac; \ | |
5213 | $(SHELL) $${libsrcdir}/configure \ | |
5214 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5215 | || exit 1 | |
5216 | ||
930314a4 NN |
5217 | .PHONY: all-wdiff maybe-all-wdiff |
5218 | maybe-all-wdiff: | |
db1ac78d | 5219 | all-wdiff: configure-wdiff |
930314a4 | 5220 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5221 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5222 | $(SET_LIB_PATH) \ | |
1086bc09 | 5223 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5224 | |
5225 | ||
5226 | .PHONY: check-wdiff | |
5227 | check-wdiff: | |
930314a4 | 5228 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5229 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5230 | $(SET_LIB_PATH) \ | |
1086bc09 | 5231 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check) |
3866be5d NN |
5232 | |
5233 | ||
5234 | ||
930314a4 NN |
5235 | .PHONY: install-wdiff maybe-install-wdiff |
5236 | maybe-install-wdiff: | |
3866be5d | 5237 | install-wdiff: installdirs |
930314a4 | 5238 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5239 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5240 | $(SET_LIB_PATH) \ | |
1086bc09 | 5241 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
5242 | |
5243 | ||
e2b9e2dc NN |
5244 | .PHONY: configure-zip maybe-configure-zip |
5245 | maybe-configure-zip: | |
5246 | configure-zip: zip/Makefile | |
5247 | ||
5248 | zip/Makefile: config.status | |
5249 | @[ -d zip ] || mkdir zip; \ | |
5250 | r=`${PWD}`; export r; \ | |
5251 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5252 | CC="$(CC)"; export CC; \ | |
5253 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5254 | CXX="$(CXX)"; export CXX; \ | |
5255 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5256 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5257 | AR="$(AR)"; export AR; \ | |
5258 | AS="$(AS)"; export AS; \ | |
5259 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5260 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5261 | LD="$(LD)"; export LD; \ | |
5262 | NM="$(NM)"; export NM; \ | |
5263 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5264 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5265 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5266 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5267 | fi; \ | |
5268 | echo Configuring in zip; \ | |
5269 | cd zip || exit 1; \ | |
5270 | case $(srcdir) in \ | |
5271 | \.) \ | |
5272 | srcdiroption="--srcdir=."; \ | |
5273 | libsrcdir=".";; \ | |
5274 | /* | [A-Za-z]:[\\/]*) \ | |
5275 | srcdiroption="--srcdir=$(srcdir)/zip"; \ | |
5276 | libsrcdir="$$s/zip";; \ | |
5277 | *) \ | |
5278 | srcdiroption="--srcdir=../$(srcdir)/zip"; \ | |
5279 | libsrcdir="$$s/zip";; \ | |
5280 | esac; \ | |
5281 | $(SHELL) $${libsrcdir}/configure \ | |
5282 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5283 | || exit 1 | |
5284 | ||
930314a4 NN |
5285 | .PHONY: all-zip maybe-all-zip |
5286 | maybe-all-zip: | |
db1ac78d | 5287 | all-zip: configure-zip |
930314a4 | 5288 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5289 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5290 | $(SET_LIB_PATH) \ | |
1086bc09 | 5291 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5292 | |
5293 | ||
5294 | .PHONY: check-zip | |
5295 | # This module is only tested in a native toolchain. | |
5296 | check-zip: | |
5297 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
3866be5d NN |
5298 | r=`${PWD}`; export r; \ |
5299 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5300 | $(SET_LIB_PATH) \ | |
1086bc09 | 5301 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \ |
3866be5d NN |
5302 | fi |
5303 | ||
5304 | ||
5305 | ||
930314a4 NN |
5306 | .PHONY: install-zip maybe-install-zip |
5307 | maybe-install-zip: | |
3866be5d | 5308 | install-zip: installdirs |
930314a4 | 5309 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5310 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5311 | $(SET_LIB_PATH) \ | |
1086bc09 | 5312 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) install) |
3866be5d NN |
5313 | |
5314 | ||
e2b9e2dc NN |
5315 | .PHONY: configure-zlib maybe-configure-zlib |
5316 | maybe-configure-zlib: | |
5317 | configure-zlib: zlib/Makefile | |
5318 | ||
5319 | zlib/Makefile: config.status | |
5320 | @[ -d zlib ] || mkdir zlib; \ | |
5321 | r=`${PWD}`; export r; \ | |
5322 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5323 | CC="$(CC)"; export CC; \ | |
5324 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5325 | CXX="$(CXX)"; export CXX; \ | |
5326 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5327 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5328 | AR="$(AR)"; export AR; \ | |
5329 | AS="$(AS)"; export AS; \ | |
5330 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5331 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5332 | LD="$(LD)"; export LD; \ | |
5333 | NM="$(NM)"; export NM; \ | |
5334 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5335 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5336 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5337 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5338 | fi; \ | |
5339 | echo Configuring in zlib; \ | |
5340 | cd zlib || exit 1; \ | |
5341 | case $(srcdir) in \ | |
5342 | \.) \ | |
5343 | srcdiroption="--srcdir=."; \ | |
5344 | libsrcdir=".";; \ | |
5345 | /* | [A-Za-z]:[\\/]*) \ | |
5346 | srcdiroption="--srcdir=$(srcdir)/zlib"; \ | |
5347 | libsrcdir="$$s/zlib";; \ | |
5348 | *) \ | |
5349 | srcdiroption="--srcdir=../$(srcdir)/zlib"; \ | |
5350 | libsrcdir="$$s/zlib";; \ | |
5351 | esac; \ | |
5352 | $(SHELL) $${libsrcdir}/configure \ | |
5353 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5354 | || exit 1 | |
5355 | ||
930314a4 NN |
5356 | .PHONY: all-zlib maybe-all-zlib |
5357 | maybe-all-zlib: | |
db1ac78d | 5358 | all-zlib: configure-zlib |
930314a4 | 5359 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5360 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5361 | $(SET_LIB_PATH) \ | |
1086bc09 | 5362 | (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all) |
3866be5d NN |
5363 | |
5364 | ||
5365 | .PHONY: check-zlib | |
5366 | check-zlib: | |
5367 | ||
5368 | ||
5369 | ||
930314a4 NN |
5370 | .PHONY: install-zlib maybe-install-zlib |
5371 | maybe-install-zlib: | |
3866be5d NN |
5372 | install-zlib: |
5373 | ||
5374 | ||
e2b9e2dc NN |
5375 | .PHONY: configure-gdb maybe-configure-gdb |
5376 | maybe-configure-gdb: | |
5377 | configure-gdb: gdb/Makefile | |
5378 | ||
5379 | gdb/Makefile: config.status | |
5380 | @[ -d gdb ] || mkdir gdb; \ | |
5381 | r=`${PWD}`; export r; \ | |
5382 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5383 | CC="$(CC)"; export CC; \ | |
5384 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5385 | CXX="$(CXX)"; export CXX; \ | |
5386 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5387 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5388 | AR="$(AR)"; export AR; \ | |
5389 | AS="$(AS)"; export AS; \ | |
5390 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5391 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5392 | LD="$(LD)"; export LD; \ | |
5393 | NM="$(NM)"; export NM; \ | |
5394 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5395 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5396 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5397 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5398 | fi; \ | |
5399 | echo Configuring in gdb; \ | |
5400 | cd gdb || exit 1; \ | |
5401 | case $(srcdir) in \ | |
5402 | \.) \ | |
5403 | srcdiroption="--srcdir=."; \ | |
5404 | libsrcdir=".";; \ | |
5405 | /* | [A-Za-z]:[\\/]*) \ | |
5406 | srcdiroption="--srcdir=$(srcdir)/gdb"; \ | |
5407 | libsrcdir="$$s/gdb";; \ | |
5408 | *) \ | |
5409 | srcdiroption="--srcdir=../$(srcdir)/gdb"; \ | |
5410 | libsrcdir="$$s/gdb";; \ | |
5411 | esac; \ | |
5412 | $(SHELL) $${libsrcdir}/configure \ | |
5413 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5414 | || exit 1 | |
5415 | ||
930314a4 NN |
5416 | .PHONY: all-gdb maybe-all-gdb |
5417 | maybe-all-gdb: | |
db1ac78d | 5418 | all-gdb: configure-gdb |
930314a4 | 5419 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5420 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5421 | $(SET_LIB_PATH) \ | |
1086bc09 | 5422 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) |
3866be5d NN |
5423 | |
5424 | ||
5425 | .PHONY: check-gdb | |
5426 | check-gdb: | |
930314a4 | 5427 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5428 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5429 | $(SET_LIB_PATH) \ | |
1086bc09 | 5430 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) |
3866be5d NN |
5431 | |
5432 | ||
5433 | ||
930314a4 NN |
5434 | .PHONY: install-gdb maybe-install-gdb |
5435 | maybe-install-gdb: | |
3866be5d | 5436 | install-gdb: installdirs |
930314a4 | 5437 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5438 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5439 | $(SET_LIB_PATH) \ | |
1086bc09 | 5440 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d NN |
5441 | |
5442 | ||
e2b9e2dc NN |
5443 | .PHONY: configure-expect maybe-configure-expect |
5444 | maybe-configure-expect: | |
5445 | configure-expect: expect/Makefile | |
5446 | ||
5447 | expect/Makefile: config.status | |
5448 | @[ -d expect ] || mkdir expect; \ | |
5449 | r=`${PWD}`; export r; \ | |
5450 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5451 | CC="$(CC)"; export CC; \ | |
5452 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5453 | CXX="$(CXX)"; export CXX; \ | |
5454 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5455 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5456 | AR="$(AR)"; export AR; \ | |
5457 | AS="$(AS)"; export AS; \ | |
5458 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5459 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5460 | LD="$(LD)"; export LD; \ | |
5461 | NM="$(NM)"; export NM; \ | |
5462 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5463 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5464 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5465 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5466 | fi; \ | |
5467 | echo Configuring in expect; \ | |
5468 | cd expect || exit 1; \ | |
5469 | case $(srcdir) in \ | |
5470 | \.) \ | |
5471 | srcdiroption="--srcdir=."; \ | |
5472 | libsrcdir=".";; \ | |
5473 | /* | [A-Za-z]:[\\/]*) \ | |
5474 | srcdiroption="--srcdir=$(srcdir)/expect"; \ | |
5475 | libsrcdir="$$s/expect";; \ | |
5476 | *) \ | |
5477 | srcdiroption="--srcdir=../$(srcdir)/expect"; \ | |
5478 | libsrcdir="$$s/expect";; \ | |
5479 | esac; \ | |
5480 | $(SHELL) $${libsrcdir}/configure \ | |
5481 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5482 | || exit 1 | |
5483 | ||
930314a4 NN |
5484 | .PHONY: all-expect maybe-all-expect |
5485 | maybe-all-expect: | |
db1ac78d | 5486 | all-expect: configure-expect |
930314a4 | 5487 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5488 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5489 | $(SET_LIB_PATH) \ | |
1086bc09 | 5490 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) |
3866be5d NN |
5491 | |
5492 | ||
5493 | .PHONY: check-expect | |
5494 | check-expect: | |
930314a4 | 5495 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5496 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5497 | $(SET_LIB_PATH) \ | |
1086bc09 | 5498 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) |
3866be5d NN |
5499 | |
5500 | ||
5501 | ||
930314a4 NN |
5502 | .PHONY: install-expect maybe-install-expect |
5503 | maybe-install-expect: | |
3866be5d | 5504 | install-expect: installdirs |
930314a4 | 5505 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5506 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5507 | $(SET_LIB_PATH) \ | |
1086bc09 | 5508 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d NN |
5509 | |
5510 | ||
e2b9e2dc NN |
5511 | .PHONY: configure-guile maybe-configure-guile |
5512 | maybe-configure-guile: | |
5513 | configure-guile: guile/Makefile | |
5514 | ||
5515 | guile/Makefile: config.status | |
5516 | @[ -d guile ] || mkdir guile; \ | |
5517 | r=`${PWD}`; export r; \ | |
5518 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5519 | CC="$(CC)"; export CC; \ | |
5520 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5521 | CXX="$(CXX)"; export CXX; \ | |
5522 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5523 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5524 | AR="$(AR)"; export AR; \ | |
5525 | AS="$(AS)"; export AS; \ | |
5526 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5527 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5528 | LD="$(LD)"; export LD; \ | |
5529 | NM="$(NM)"; export NM; \ | |
5530 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5531 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5532 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5533 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5534 | fi; \ | |
5535 | echo Configuring in guile; \ | |
5536 | cd guile || exit 1; \ | |
5537 | case $(srcdir) in \ | |
5538 | \.) \ | |
5539 | srcdiroption="--srcdir=."; \ | |
5540 | libsrcdir=".";; \ | |
5541 | /* | [A-Za-z]:[\\/]*) \ | |
5542 | srcdiroption="--srcdir=$(srcdir)/guile"; \ | |
5543 | libsrcdir="$$s/guile";; \ | |
5544 | *) \ | |
5545 | srcdiroption="--srcdir=../$(srcdir)/guile"; \ | |
5546 | libsrcdir="$$s/guile";; \ | |
5547 | esac; \ | |
5548 | $(SHELL) $${libsrcdir}/configure \ | |
5549 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5550 | || exit 1 | |
5551 | ||
930314a4 NN |
5552 | .PHONY: all-guile maybe-all-guile |
5553 | maybe-all-guile: | |
db1ac78d | 5554 | all-guile: configure-guile |
930314a4 | 5555 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5556 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5557 | $(SET_LIB_PATH) \ | |
1086bc09 | 5558 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) |
3866be5d NN |
5559 | |
5560 | ||
5561 | .PHONY: check-guile | |
5562 | check-guile: | |
930314a4 | 5563 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5564 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5565 | $(SET_LIB_PATH) \ | |
1086bc09 | 5566 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) |
3866be5d NN |
5567 | |
5568 | ||
5569 | ||
930314a4 NN |
5570 | .PHONY: install-guile maybe-install-guile |
5571 | maybe-install-guile: | |
3866be5d | 5572 | install-guile: installdirs |
930314a4 | 5573 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5574 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5575 | $(SET_LIB_PATH) \ | |
1086bc09 | 5576 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
3866be5d NN |
5577 | |
5578 | ||
e2b9e2dc NN |
5579 | .PHONY: configure-tk maybe-configure-tk |
5580 | maybe-configure-tk: | |
5581 | configure-tk: tk/Makefile | |
5582 | ||
5583 | tk/Makefile: config.status | |
5584 | @[ -d tk ] || mkdir tk; \ | |
5585 | r=`${PWD}`; export r; \ | |
5586 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5587 | CC="$(CC)"; export CC; \ | |
5588 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5589 | CXX="$(CXX)"; export CXX; \ | |
5590 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5591 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5592 | AR="$(AR)"; export AR; \ | |
5593 | AS="$(AS)"; export AS; \ | |
5594 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5595 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5596 | LD="$(LD)"; export LD; \ | |
5597 | NM="$(NM)"; export NM; \ | |
5598 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5599 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5600 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5601 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5602 | fi; \ | |
5603 | echo Configuring in tk; \ | |
5604 | cd tk || exit 1; \ | |
5605 | case $(srcdir) in \ | |
5606 | \.) \ | |
5607 | srcdiroption="--srcdir=."; \ | |
5608 | libsrcdir=".";; \ | |
5609 | /* | [A-Za-z]:[\\/]*) \ | |
5610 | srcdiroption="--srcdir=$(srcdir)/tk"; \ | |
5611 | libsrcdir="$$s/tk";; \ | |
5612 | *) \ | |
5613 | srcdiroption="--srcdir=../$(srcdir)/tk"; \ | |
5614 | libsrcdir="$$s/tk";; \ | |
5615 | esac; \ | |
5616 | $(SHELL) $${libsrcdir}/configure \ | |
5617 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5618 | || exit 1 | |
5619 | ||
930314a4 NN |
5620 | .PHONY: all-tk maybe-all-tk |
5621 | maybe-all-tk: | |
db1ac78d | 5622 | all-tk: configure-tk |
930314a4 | 5623 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5624 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5625 | $(SET_LIB_PATH) \ | |
1086bc09 | 5626 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) |
e393202e | 5627 | |
e393202e | 5628 | |
3866be5d NN |
5629 | .PHONY: check-tk |
5630 | check-tk: | |
930314a4 | 5631 | @r=`${PWD}`; export r; \ |
3866be5d | 5632 | s=`cd $(srcdir); ${PWD}`; export s; \ |
e393202e | 5633 | $(SET_LIB_PATH) \ |
1086bc09 | 5634 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) |
e393202e | 5635 | |
e393202e | 5636 | |
3866be5d | 5637 | |
930314a4 NN |
5638 | .PHONY: install-tk maybe-install-tk |
5639 | maybe-install-tk: | |
3866be5d | 5640 | install-tk: installdirs |
930314a4 | 5641 | @r=`${PWD}`; export r; \ |
e393202e | 5642 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3866be5d | 5643 | $(SET_LIB_PATH) \ |
1086bc09 | 5644 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
e393202e | 5645 | |
3866be5d | 5646 | |
e2b9e2dc NN |
5647 | .PHONY: configure-tix maybe-configure-tix |
5648 | maybe-configure-tix: | |
5649 | configure-tix: tix/Makefile | |
5650 | ||
5651 | tix/Makefile: config.status | |
5652 | @[ -d tix ] || mkdir tix; \ | |
5653 | r=`${PWD}`; export r; \ | |
5654 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5655 | CC="$(CC)"; export CC; \ | |
5656 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5657 | CXX="$(CXX)"; export CXX; \ | |
5658 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5659 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5660 | AR="$(AR)"; export AR; \ | |
5661 | AS="$(AS)"; export AS; \ | |
5662 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5663 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5664 | LD="$(LD)"; export LD; \ | |
5665 | NM="$(NM)"; export NM; \ | |
5666 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5667 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5668 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5669 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5670 | fi; \ | |
5671 | echo Configuring in tix; \ | |
5672 | cd tix || exit 1; \ | |
5673 | case $(srcdir) in \ | |
5674 | \.) \ | |
5675 | srcdiroption="--srcdir=."; \ | |
5676 | libsrcdir=".";; \ | |
5677 | /* | [A-Za-z]:[\\/]*) \ | |
5678 | srcdiroption="--srcdir=$(srcdir)/tix"; \ | |
5679 | libsrcdir="$$s/tix";; \ | |
5680 | *) \ | |
5681 | srcdiroption="--srcdir=../$(srcdir)/tix"; \ | |
5682 | libsrcdir="$$s/tix";; \ | |
5683 | esac; \ | |
5684 | $(SHELL) $${libsrcdir}/configure \ | |
5685 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5686 | || exit 1 | |
5687 | ||
930314a4 NN |
5688 | .PHONY: all-tix maybe-all-tix |
5689 | maybe-all-tix: | |
db1ac78d | 5690 | all-tix: configure-tix |
930314a4 | 5691 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5692 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5693 | $(SET_LIB_PATH) \ | |
1086bc09 | 5694 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) |
3866be5d NN |
5695 | |
5696 | ||
5697 | .PHONY: check-tix | |
5698 | check-tix: | |
930314a4 | 5699 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5700 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5701 | $(SET_LIB_PATH) \ | |
1086bc09 | 5702 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) |
3866be5d NN |
5703 | |
5704 | ||
5705 | ||
930314a4 NN |
5706 | .PHONY: install-tix maybe-install-tix |
5707 | maybe-install-tix: | |
3866be5d | 5708 | install-tix: installdirs |
930314a4 | 5709 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5710 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5711 | $(SET_LIB_PATH) \ | |
1086bc09 | 5712 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) |
e393202e NN |
5713 | |
5714 | ||
e2b9e2dc NN |
5715 | .PHONY: configure-libtermcap maybe-configure-libtermcap |
5716 | maybe-configure-libtermcap: | |
5717 | configure-libtermcap: libtermcap/Makefile | |
5718 | ||
5719 | libtermcap/Makefile: config.status | |
5720 | @[ -d libtermcap ] || mkdir libtermcap; \ | |
5721 | r=`${PWD}`; export r; \ | |
5722 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5723 | CC="$(CC)"; export CC; \ | |
5724 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5725 | CXX="$(CXX)"; export CXX; \ | |
5726 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5727 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5728 | AR="$(AR)"; export AR; \ | |
5729 | AS="$(AS)"; export AS; \ | |
5730 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5731 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5732 | LD="$(LD)"; export LD; \ | |
5733 | NM="$(NM)"; export NM; \ | |
5734 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5735 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5736 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5737 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5738 | fi; \ | |
5739 | echo Configuring in libtermcap; \ | |
5740 | cd libtermcap || exit 1; \ | |
5741 | case $(srcdir) in \ | |
5742 | \.) \ | |
5743 | srcdiroption="--srcdir=."; \ | |
5744 | libsrcdir=".";; \ | |
5745 | /* | [A-Za-z]:[\\/]*) \ | |
5746 | srcdiroption="--srcdir=$(srcdir)/libtermcap"; \ | |
5747 | libsrcdir="$$s/libtermcap";; \ | |
5748 | *) \ | |
5749 | srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \ | |
5750 | libsrcdir="$$s/libtermcap";; \ | |
5751 | esac; \ | |
5752 | $(SHELL) $${libsrcdir}/configure \ | |
5753 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5754 | || exit 1 | |
5755 | ||
930314a4 NN |
5756 | .PHONY: all-libtermcap maybe-all-libtermcap |
5757 | maybe-all-libtermcap: | |
db1ac78d | 5758 | all-libtermcap: configure-libtermcap |
930314a4 | 5759 | @r=`${PWD}`; export r; \ |
e393202e NN |
5760 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5761 | $(SET_LIB_PATH) \ | |
1086bc09 | 5762 | (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all) |
e393202e | 5763 | |
e393202e | 5764 | |
3866be5d NN |
5765 | .PHONY: check-libtermcap |
5766 | check-libtermcap: | |
5767 | ||
5768 | ||
5769 | ||
930314a4 NN |
5770 | .PHONY: install-libtermcap maybe-install-libtermcap |
5771 | maybe-install-libtermcap: | |
3866be5d | 5772 | install-libtermcap: installdirs |
930314a4 | 5773 | @r=`${PWD}`; export r; \ |
3866be5d NN |
5774 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5775 | $(SET_LIB_PATH) \ | |
1086bc09 | 5776 | (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install) |
e393202e | 5777 | |
3866be5d | 5778 | |
e2b9e2dc NN |
5779 | .PHONY: configure-utils maybe-configure-utils |
5780 | maybe-configure-utils: | |
5781 | configure-utils: utils/Makefile | |
5782 | ||
5783 | utils/Makefile: config.status | |
5784 | @[ -d utils ] || mkdir utils; \ | |
5785 | r=`${PWD}`; export r; \ | |
5786 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5787 | CC="$(CC)"; export CC; \ | |
5788 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5789 | CXX="$(CXX)"; export CXX; \ | |
5790 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5791 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5792 | AR="$(AR)"; export AR; \ | |
5793 | AS="$(AS)"; export AS; \ | |
5794 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5795 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5796 | LD="$(LD)"; export LD; \ | |
5797 | NM="$(NM)"; export NM; \ | |
5798 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5799 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5800 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5801 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5802 | fi; \ | |
5803 | echo Configuring in utils; \ | |
5804 | cd utils || exit 1; \ | |
5805 | case $(srcdir) in \ | |
5806 | \.) \ | |
5807 | srcdiroption="--srcdir=."; \ | |
5808 | libsrcdir=".";; \ | |
5809 | /* | [A-Za-z]:[\\/]*) \ | |
5810 | srcdiroption="--srcdir=$(srcdir)/utils"; \ | |
5811 | libsrcdir="$$s/utils";; \ | |
5812 | *) \ | |
5813 | srcdiroption="--srcdir=../$(srcdir)/utils"; \ | |
5814 | libsrcdir="$$s/utils";; \ | |
5815 | esac; \ | |
5816 | $(SHELL) $${libsrcdir}/configure \ | |
5817 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5818 | || exit 1 | |
5819 | ||
930314a4 NN |
5820 | .PHONY: all-utils maybe-all-utils |
5821 | maybe-all-utils: | |
db1ac78d | 5822 | all-utils: configure-utils |
930314a4 | 5823 | @r=`${PWD}`; export r; \ |
e393202e NN |
5824 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5825 | $(SET_LIB_PATH) \ | |
1086bc09 | 5826 | (cd utils && $(MAKE) $(FLAGS_TO_PASS) all) |
e393202e | 5827 | |
3866be5d NN |
5828 | |
5829 | .PHONY: check-utils | |
5830 | check-utils: | |
5831 | ||
5832 | ||
5833 | ||
930314a4 NN |
5834 | .PHONY: install-utils maybe-install-utils |
5835 | maybe-install-utils: | |
3866be5d | 5836 | install-utils: installdirs |
930314a4 | 5837 | @r=`${PWD}`; export r; \ |
e393202e NN |
5838 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5839 | $(SET_LIB_PATH) \ | |
1086bc09 | 5840 | (cd utils && $(MAKE) $(FLAGS_TO_PASS) install) |
e393202e | 5841 | |
3866be5d NN |
5842 | |
5843 | ||
15723a45 NN |
5844 | # --------------------------------------- |
5845 | # Modules which run on the target machine | |
5846 | # --------------------------------------- | |
e393202e | 5847 | |
930314a4 NN |
5848 | .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3 |
5849 | maybe-configure-target-libstdc++-v3: | |
15723a45 NN |
5850 | configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/Makefile |
5851 | ||
1086bc09 NN |
5852 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5853 | $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out | |
15723a45 | 5854 | @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\ |
1086bc09 | 5855 | cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out |
15723a45 NN |
5856 | |
5857 | $(TARGET_SUBDIR)/libstdc++-v3/Makefile: config.status $(TARGET_SUBDIR)/libstdc++-v3/multilib.out | |
5858 | @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || mkdir $(TARGET_SUBDIR)/libstdc++-v3;\ | |
e393202e NN |
5859 | r=`${PWD}`; export r; \ |
5860 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5861 | $(SET_LIB_PATH) \ | |
5862 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5863 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5864 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5865 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
930314a4 NN |
5866 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ |
5867 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \ | |
e393202e NN |
5868 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
5869 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5870 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5871 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5872 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5873 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5874 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5875 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5876 | echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \ | |
5877 | cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \ | |
5878 | case $(srcdir) in \ | |
5879 | /* | [A-Za-z]:[\\/]*) \ | |
5880 | topdir=$(srcdir) ;; \ | |
5881 | *) \ | |
5882 | case "$(TARGET_SUBDIR)" in \ | |
5883 | .) topdir="../$(srcdir)" ;; \ | |
5884 | *) topdir="../../$(srcdir)" ;; \ | |
5885 | esac ;; \ | |
5886 | esac; \ | |
5887 | if [ "$(srcdir)" = "." ] ; then \ | |
5888 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5889 | if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \ | |
5890 | if [ -f Makefile ]; then \ | |
5891 | if $(MAKE) distclean; then \ | |
5892 | true; \ | |
5893 | else \ | |
5894 | exit 1; \ | |
5895 | fi; \ | |
5896 | else \ | |
5897 | true; \ | |
5898 | fi; \ | |
5899 | else \ | |
5900 | exit 1; \ | |
5901 | fi; \ | |
5902 | else \ | |
5903 | true; \ | |
5904 | fi; \ | |
5905 | srcdiroption="--srcdir=."; \ | |
5906 | libsrcdir="."; \ | |
5907 | else \ | |
5908 | srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \ | |
5909 | libsrcdir="$$s/libstdc++-v3"; \ | |
5910 | fi; \ | |
930314a4 NN |
5911 | rm -f no-such-file || : ; \ |
5912 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
5913 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
5914 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 5915 | || exit 1 |
e393202e | 5916 | |
930314a4 NN |
5917 | .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3 |
5918 | maybe-all-target-libstdc++-v3: | |
15723a45 | 5919 | all-target-libstdc++-v3: configure-target-libstdc++-v3 |
930314a4 | 5920 | @r=`${PWD}`; export r; \ |
e393202e NN |
5921 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5922 | $(SET_LIB_PATH) \ | |
1086bc09 | 5923 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
930314a4 | 5924 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all) |
e393202e NN |
5925 | |
5926 | .PHONY: check-target-libstdc++-v3 | |
5927 | check-target-libstdc++-v3: | |
930314a4 | 5928 | @r=`${PWD}`; export r; \ |
e393202e NN |
5929 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5930 | $(SET_LIB_PATH) \ | |
1086bc09 | 5931 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
930314a4 NN |
5932 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
5933 | ||
e393202e | 5934 | |
930314a4 NN |
5935 | .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3 |
5936 | maybe-install-target-libstdc++-v3: | |
e393202e | 5937 | install-target-libstdc++-v3: installdirs |
930314a4 | 5938 | @r=`${PWD}`; export r; \ |
e393202e NN |
5939 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5940 | $(SET_LIB_PATH) \ | |
1086bc09 | 5941 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ |
930314a4 | 5942 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
5943 | |
5944 | ||
930314a4 NN |
5945 | .PHONY: configure-target-newlib maybe-configure-target-newlib |
5946 | maybe-configure-target-newlib: | |
15723a45 NN |
5947 | configure-target-newlib: $(TARGET_SUBDIR)/newlib/Makefile |
5948 | ||
1086bc09 NN |
5949 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5950 | $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out | |
15723a45 | 5951 | @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\ |
1086bc09 | 5952 | cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out |
15723a45 NN |
5953 | |
5954 | $(TARGET_SUBDIR)/newlib/Makefile: config.status $(TARGET_SUBDIR)/newlib/multilib.out | |
5955 | @[ -d $(TARGET_SUBDIR)/newlib ] || mkdir $(TARGET_SUBDIR)/newlib;\ | |
e393202e NN |
5956 | r=`${PWD}`; export r; \ |
5957 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5958 | $(SET_LIB_PATH) \ | |
5959 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5960 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5961 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5962 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
5963 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
5964 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
5965 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5966 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5967 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5968 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5969 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5970 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5971 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5972 | echo Configuring in $(TARGET_SUBDIR)/newlib; \ | |
5973 | cd "$(TARGET_SUBDIR)/newlib" || exit 1; \ | |
5974 | case $(srcdir) in \ | |
5975 | /* | [A-Za-z]:[\\/]*) \ | |
5976 | topdir=$(srcdir) ;; \ | |
5977 | *) \ | |
5978 | case "$(TARGET_SUBDIR)" in \ | |
5979 | .) topdir="../$(srcdir)" ;; \ | |
5980 | *) topdir="../../$(srcdir)" ;; \ | |
5981 | esac ;; \ | |
5982 | esac; \ | |
5983 | if [ "$(srcdir)" = "." ] ; then \ | |
5984 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5985 | if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \ | |
5986 | if [ -f Makefile ]; then \ | |
5987 | if $(MAKE) distclean; then \ | |
5988 | true; \ | |
5989 | else \ | |
5990 | exit 1; \ | |
5991 | fi; \ | |
5992 | else \ | |
5993 | true; \ | |
5994 | fi; \ | |
5995 | else \ | |
5996 | exit 1; \ | |
5997 | fi; \ | |
5998 | else \ | |
5999 | true; \ | |
6000 | fi; \ | |
6001 | srcdiroption="--srcdir=."; \ | |
6002 | libsrcdir="."; \ | |
6003 | else \ | |
6004 | srcdiroption="--srcdir=$${topdir}/newlib"; \ | |
6005 | libsrcdir="$$s/newlib"; \ | |
6006 | fi; \ | |
930314a4 NN |
6007 | rm -f no-such-file || : ; \ |
6008 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6009 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6010 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6011 | || exit 1 |
e393202e | 6012 | |
930314a4 NN |
6013 | .PHONY: all-target-newlib maybe-all-target-newlib |
6014 | maybe-all-target-newlib: | |
15723a45 | 6015 | all-target-newlib: configure-target-newlib |
930314a4 | 6016 | @r=`${PWD}`; export r; \ |
e393202e NN |
6017 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6018 | $(SET_LIB_PATH) \ | |
1086bc09 | 6019 | (cd $(TARGET_SUBDIR)/newlib && \ |
930314a4 | 6020 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6021 | |
6022 | .PHONY: check-target-newlib | |
6023 | check-target-newlib: | |
930314a4 | 6024 | @r=`${PWD}`; export r; \ |
e393202e NN |
6025 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6026 | $(SET_LIB_PATH) \ | |
1086bc09 | 6027 | (cd $(TARGET_SUBDIR)/newlib && \ |
930314a4 NN |
6028 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
6029 | ||
e393202e | 6030 | |
930314a4 NN |
6031 | .PHONY: install-target-newlib maybe-install-target-newlib |
6032 | maybe-install-target-newlib: | |
e393202e | 6033 | install-target-newlib: installdirs |
930314a4 | 6034 | @r=`${PWD}`; export r; \ |
e393202e NN |
6035 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6036 | $(SET_LIB_PATH) \ | |
1086bc09 | 6037 | (cd $(TARGET_SUBDIR)/newlib && \ |
930314a4 | 6038 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6039 | |
6040 | ||
930314a4 NN |
6041 | .PHONY: configure-target-libf2c maybe-configure-target-libf2c |
6042 | maybe-configure-target-libf2c: | |
15723a45 NN |
6043 | configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/Makefile |
6044 | ||
1086bc09 NN |
6045 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6046 | $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out | |
15723a45 | 6047 | @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\ |
1086bc09 | 6048 | cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out |
15723a45 NN |
6049 | |
6050 | $(TARGET_SUBDIR)/libf2c/Makefile: config.status $(TARGET_SUBDIR)/libf2c/multilib.out | |
6051 | @[ -d $(TARGET_SUBDIR)/libf2c ] || mkdir $(TARGET_SUBDIR)/libf2c;\ | |
e393202e NN |
6052 | r=`${PWD}`; export r; \ |
6053 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6054 | $(SET_LIB_PATH) \ | |
6055 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6056 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6057 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6058 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6059 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6060 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6061 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6062 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6063 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6064 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6065 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6066 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6067 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6068 | echo Configuring in $(TARGET_SUBDIR)/libf2c; \ | |
6069 | cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \ | |
6070 | case $(srcdir) in \ | |
6071 | /* | [A-Za-z]:[\\/]*) \ | |
6072 | topdir=$(srcdir) ;; \ | |
6073 | *) \ | |
6074 | case "$(TARGET_SUBDIR)" in \ | |
6075 | .) topdir="../$(srcdir)" ;; \ | |
6076 | *) topdir="../../$(srcdir)" ;; \ | |
6077 | esac ;; \ | |
6078 | esac; \ | |
6079 | if [ "$(srcdir)" = "." ] ; then \ | |
6080 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6081 | if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \ | |
6082 | if [ -f Makefile ]; then \ | |
6083 | if $(MAKE) distclean; then \ | |
6084 | true; \ | |
6085 | else \ | |
6086 | exit 1; \ | |
6087 | fi; \ | |
6088 | else \ | |
6089 | true; \ | |
6090 | fi; \ | |
6091 | else \ | |
6092 | exit 1; \ | |
6093 | fi; \ | |
6094 | else \ | |
6095 | true; \ | |
6096 | fi; \ | |
6097 | srcdiroption="--srcdir=."; \ | |
6098 | libsrcdir="."; \ | |
6099 | else \ | |
6100 | srcdiroption="--srcdir=$${topdir}/libf2c"; \ | |
6101 | libsrcdir="$$s/libf2c"; \ | |
6102 | fi; \ | |
930314a4 NN |
6103 | rm -f no-such-file || : ; \ |
6104 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6105 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6106 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6107 | || exit 1 |
e393202e | 6108 | |
930314a4 NN |
6109 | .PHONY: all-target-libf2c maybe-all-target-libf2c |
6110 | maybe-all-target-libf2c: | |
15723a45 | 6111 | all-target-libf2c: configure-target-libf2c |
930314a4 | 6112 | @r=`${PWD}`; export r; \ |
e393202e NN |
6113 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6114 | $(SET_LIB_PATH) \ | |
1086bc09 | 6115 | (cd $(TARGET_SUBDIR)/libf2c && \ |
930314a4 | 6116 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6117 | |
6118 | .PHONY: check-target-libf2c | |
6119 | check-target-libf2c: | |
930314a4 | 6120 | @r=`${PWD}`; export r; \ |
e393202e NN |
6121 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6122 | $(SET_LIB_PATH) \ | |
1086bc09 | 6123 | (cd $(TARGET_SUBDIR)/libf2c && \ |
930314a4 NN |
6124 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
6125 | ||
e393202e | 6126 | |
930314a4 NN |
6127 | .PHONY: install-target-libf2c maybe-install-target-libf2c |
6128 | maybe-install-target-libf2c: | |
e393202e | 6129 | install-target-libf2c: installdirs |
930314a4 | 6130 | @r=`${PWD}`; export r; \ |
e393202e NN |
6131 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6132 | $(SET_LIB_PATH) \ | |
1086bc09 | 6133 | (cd $(TARGET_SUBDIR)/libf2c && \ |
930314a4 | 6134 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6135 | |
6136 | ||
930314a4 NN |
6137 | .PHONY: configure-target-libobjc maybe-configure-target-libobjc |
6138 | maybe-configure-target-libobjc: | |
15723a45 NN |
6139 | configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/Makefile |
6140 | ||
1086bc09 NN |
6141 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6142 | $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out | |
15723a45 | 6143 | @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\ |
1086bc09 | 6144 | cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out |
15723a45 NN |
6145 | |
6146 | $(TARGET_SUBDIR)/libobjc/Makefile: config.status $(TARGET_SUBDIR)/libobjc/multilib.out | |
6147 | @[ -d $(TARGET_SUBDIR)/libobjc ] || mkdir $(TARGET_SUBDIR)/libobjc;\ | |
e393202e NN |
6148 | r=`${PWD}`; export r; \ |
6149 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6150 | $(SET_LIB_PATH) \ | |
6151 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6152 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6153 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6154 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6155 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6156 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6157 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6158 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6159 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6160 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6161 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6162 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6163 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6164 | echo Configuring in $(TARGET_SUBDIR)/libobjc; \ | |
6165 | cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \ | |
6166 | case $(srcdir) in \ | |
6167 | /* | [A-Za-z]:[\\/]*) \ | |
6168 | topdir=$(srcdir) ;; \ | |
6169 | *) \ | |
6170 | case "$(TARGET_SUBDIR)" in \ | |
6171 | .) topdir="../$(srcdir)" ;; \ | |
6172 | *) topdir="../../$(srcdir)" ;; \ | |
6173 | esac ;; \ | |
6174 | esac; \ | |
6175 | if [ "$(srcdir)" = "." ] ; then \ | |
6176 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6177 | if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \ | |
6178 | if [ -f Makefile ]; then \ | |
6179 | if $(MAKE) distclean; then \ | |
6180 | true; \ | |
6181 | else \ | |
6182 | exit 1; \ | |
6183 | fi; \ | |
6184 | else \ | |
6185 | true; \ | |
6186 | fi; \ | |
6187 | else \ | |
6188 | exit 1; \ | |
6189 | fi; \ | |
6190 | else \ | |
6191 | true; \ | |
6192 | fi; \ | |
6193 | srcdiroption="--srcdir=."; \ | |
6194 | libsrcdir="."; \ | |
6195 | else \ | |
6196 | srcdiroption="--srcdir=$${topdir}/libobjc"; \ | |
6197 | libsrcdir="$$s/libobjc"; \ | |
6198 | fi; \ | |
930314a4 NN |
6199 | rm -f no-such-file || : ; \ |
6200 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6201 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6202 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6203 | || exit 1 |
e393202e | 6204 | |
930314a4 NN |
6205 | .PHONY: all-target-libobjc maybe-all-target-libobjc |
6206 | maybe-all-target-libobjc: | |
15723a45 | 6207 | all-target-libobjc: configure-target-libobjc |
930314a4 | 6208 | @r=`${PWD}`; export r; \ |
e393202e NN |
6209 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6210 | $(SET_LIB_PATH) \ | |
1086bc09 | 6211 | (cd $(TARGET_SUBDIR)/libobjc && \ |
930314a4 | 6212 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6213 | |
6214 | .PHONY: check-target-libobjc | |
6215 | check-target-libobjc: | |
930314a4 | 6216 | @r=`${PWD}`; export r; \ |
e393202e NN |
6217 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6218 | $(SET_LIB_PATH) \ | |
1086bc09 | 6219 | (cd $(TARGET_SUBDIR)/libobjc && \ |
930314a4 NN |
6220 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
6221 | ||
e393202e | 6222 | |
930314a4 NN |
6223 | .PHONY: install-target-libobjc maybe-install-target-libobjc |
6224 | maybe-install-target-libobjc: | |
e393202e | 6225 | install-target-libobjc: installdirs |
930314a4 | 6226 | @r=`${PWD}`; export r; \ |
e393202e NN |
6227 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6228 | $(SET_LIB_PATH) \ | |
1086bc09 | 6229 | (cd $(TARGET_SUBDIR)/libobjc && \ |
930314a4 | 6230 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6231 | |
6232 | ||
930314a4 NN |
6233 | .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap |
6234 | maybe-configure-target-libtermcap: | |
15723a45 NN |
6235 | configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/Makefile |
6236 | ||
1086bc09 NN |
6237 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6238 | $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out | |
15723a45 | 6239 | @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\ |
1086bc09 | 6240 | cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out |
15723a45 NN |
6241 | |
6242 | $(TARGET_SUBDIR)/libtermcap/Makefile: config.status $(TARGET_SUBDIR)/libtermcap/multilib.out | |
6243 | @[ -d $(TARGET_SUBDIR)/libtermcap ] || mkdir $(TARGET_SUBDIR)/libtermcap;\ | |
e393202e NN |
6244 | r=`${PWD}`; export r; \ |
6245 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6246 | $(SET_LIB_PATH) \ | |
6247 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6248 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6249 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6250 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6251 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6252 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6253 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6254 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6255 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6256 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6257 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6258 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6259 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6260 | echo Configuring in $(TARGET_SUBDIR)/libtermcap; \ | |
6261 | cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \ | |
6262 | case $(srcdir) in \ | |
6263 | /* | [A-Za-z]:[\\/]*) \ | |
6264 | topdir=$(srcdir) ;; \ | |
6265 | *) \ | |
6266 | case "$(TARGET_SUBDIR)" in \ | |
6267 | .) topdir="../$(srcdir)" ;; \ | |
6268 | *) topdir="../../$(srcdir)" ;; \ | |
6269 | esac ;; \ | |
6270 | esac; \ | |
6271 | if [ "$(srcdir)" = "." ] ; then \ | |
6272 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6273 | if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \ | |
6274 | if [ -f Makefile ]; then \ | |
6275 | if $(MAKE) distclean; then \ | |
6276 | true; \ | |
6277 | else \ | |
6278 | exit 1; \ | |
6279 | fi; \ | |
6280 | else \ | |
6281 | true; \ | |
6282 | fi; \ | |
6283 | else \ | |
6284 | exit 1; \ | |
6285 | fi; \ | |
6286 | else \ | |
6287 | true; \ | |
6288 | fi; \ | |
6289 | srcdiroption="--srcdir=."; \ | |
6290 | libsrcdir="."; \ | |
6291 | else \ | |
6292 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ | |
6293 | libsrcdir="$$s/libtermcap"; \ | |
6294 | fi; \ | |
930314a4 NN |
6295 | rm -f no-such-file || : ; \ |
6296 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6297 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6298 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6299 | || exit 1 |
e393202e | 6300 | |
930314a4 NN |
6301 | .PHONY: all-target-libtermcap maybe-all-target-libtermcap |
6302 | maybe-all-target-libtermcap: | |
15723a45 | 6303 | all-target-libtermcap: configure-target-libtermcap |
930314a4 | 6304 | @r=`${PWD}`; export r; \ |
e393202e NN |
6305 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6306 | $(SET_LIB_PATH) \ | |
1086bc09 | 6307 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
930314a4 | 6308 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e | 6309 | |
3866be5d NN |
6310 | # Dummy target for uncheckable module. |
6311 | .PHONY: check-target-libtermcap | |
6312 | check-target-libtermcap: | |
6313 | ||
930314a4 NN |
6314 | |
6315 | .PHONY: install-target-libtermcap maybe-install-target-libtermcap | |
6316 | maybe-install-target-libtermcap: | |
e393202e | 6317 | install-target-libtermcap: installdirs |
930314a4 | 6318 | @r=`${PWD}`; export r; \ |
e393202e NN |
6319 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6320 | $(SET_LIB_PATH) \ | |
1086bc09 | 6321 | (cd $(TARGET_SUBDIR)/libtermcap && \ |
930314a4 | 6322 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6323 | |
6324 | ||
930314a4 NN |
6325 | .PHONY: configure-target-winsup maybe-configure-target-winsup |
6326 | maybe-configure-target-winsup: | |
15723a45 NN |
6327 | configure-target-winsup: $(TARGET_SUBDIR)/winsup/Makefile |
6328 | ||
1086bc09 NN |
6329 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6330 | $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out | |
15723a45 | 6331 | @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\ |
1086bc09 | 6332 | cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out |
15723a45 NN |
6333 | |
6334 | $(TARGET_SUBDIR)/winsup/Makefile: config.status $(TARGET_SUBDIR)/winsup/multilib.out | |
6335 | @[ -d $(TARGET_SUBDIR)/winsup ] || mkdir $(TARGET_SUBDIR)/winsup;\ | |
e393202e NN |
6336 | r=`${PWD}`; export r; \ |
6337 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6338 | $(SET_LIB_PATH) \ | |
6339 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6340 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6341 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6342 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6343 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6344 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6345 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6346 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6347 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6348 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6349 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6350 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6351 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6352 | echo Configuring in $(TARGET_SUBDIR)/winsup; \ | |
6353 | cd "$(TARGET_SUBDIR)/winsup" || exit 1; \ | |
6354 | case $(srcdir) in \ | |
6355 | /* | [A-Za-z]:[\\/]*) \ | |
6356 | topdir=$(srcdir) ;; \ | |
6357 | *) \ | |
6358 | case "$(TARGET_SUBDIR)" in \ | |
6359 | .) topdir="../$(srcdir)" ;; \ | |
6360 | *) topdir="../../$(srcdir)" ;; \ | |
6361 | esac ;; \ | |
6362 | esac; \ | |
6363 | if [ "$(srcdir)" = "." ] ; then \ | |
6364 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6365 | if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \ | |
6366 | if [ -f Makefile ]; then \ | |
6367 | if $(MAKE) distclean; then \ | |
6368 | true; \ | |
6369 | else \ | |
6370 | exit 1; \ | |
6371 | fi; \ | |
6372 | else \ | |
6373 | true; \ | |
6374 | fi; \ | |
6375 | else \ | |
6376 | exit 1; \ | |
6377 | fi; \ | |
6378 | else \ | |
6379 | true; \ | |
6380 | fi; \ | |
6381 | srcdiroption="--srcdir=."; \ | |
6382 | libsrcdir="."; \ | |
6383 | else \ | |
6384 | srcdiroption="--srcdir=$${topdir}/winsup"; \ | |
6385 | libsrcdir="$$s/winsup"; \ | |
6386 | fi; \ | |
930314a4 NN |
6387 | rm -f no-such-file || : ; \ |
6388 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6389 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6390 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6391 | || exit 1 |
e393202e | 6392 | |
930314a4 NN |
6393 | .PHONY: all-target-winsup maybe-all-target-winsup |
6394 | maybe-all-target-winsup: | |
15723a45 | 6395 | all-target-winsup: configure-target-winsup |
930314a4 | 6396 | @r=`${PWD}`; export r; \ |
e393202e NN |
6397 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6398 | $(SET_LIB_PATH) \ | |
1086bc09 | 6399 | (cd $(TARGET_SUBDIR)/winsup && \ |
930314a4 | 6400 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6401 | |
6402 | .PHONY: check-target-winsup | |
6403 | check-target-winsup: | |
930314a4 | 6404 | @r=`${PWD}`; export r; \ |
e393202e NN |
6405 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6406 | $(SET_LIB_PATH) \ | |
1086bc09 | 6407 | (cd $(TARGET_SUBDIR)/winsup && \ |
930314a4 | 6408 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 6409 | |
930314a4 NN |
6410 | |
6411 | .PHONY: install-target-winsup maybe-install-target-winsup | |
6412 | maybe-install-target-winsup: | |
e393202e | 6413 | install-target-winsup: installdirs |
930314a4 | 6414 | @r=`${PWD}`; export r; \ |
e393202e NN |
6415 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6416 | $(SET_LIB_PATH) \ | |
1086bc09 | 6417 | (cd $(TARGET_SUBDIR)/winsup && \ |
930314a4 | 6418 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6419 | |
6420 | ||
930314a4 NN |
6421 | .PHONY: configure-target-libgloss maybe-configure-target-libgloss |
6422 | maybe-configure-target-libgloss: | |
15723a45 NN |
6423 | configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/Makefile |
6424 | ||
1086bc09 NN |
6425 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6426 | $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out | |
15723a45 | 6427 | @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\ |
1086bc09 | 6428 | cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out |
15723a45 NN |
6429 | |
6430 | $(TARGET_SUBDIR)/libgloss/Makefile: config.status $(TARGET_SUBDIR)/libgloss/multilib.out | |
6431 | @[ -d $(TARGET_SUBDIR)/libgloss ] || mkdir $(TARGET_SUBDIR)/libgloss;\ | |
e393202e NN |
6432 | r=`${PWD}`; export r; \ |
6433 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6434 | $(SET_LIB_PATH) \ | |
6435 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6436 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6437 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6438 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6439 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6440 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6441 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6442 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6443 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6444 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6445 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6446 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6447 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6448 | echo Configuring in $(TARGET_SUBDIR)/libgloss; \ | |
6449 | cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \ | |
6450 | case $(srcdir) in \ | |
6451 | /* | [A-Za-z]:[\\/]*) \ | |
6452 | topdir=$(srcdir) ;; \ | |
6453 | *) \ | |
6454 | case "$(TARGET_SUBDIR)" in \ | |
6455 | .) topdir="../$(srcdir)" ;; \ | |
6456 | *) topdir="../../$(srcdir)" ;; \ | |
6457 | esac ;; \ | |
6458 | esac; \ | |
6459 | if [ "$(srcdir)" = "." ] ; then \ | |
6460 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6461 | if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \ | |
6462 | if [ -f Makefile ]; then \ | |
6463 | if $(MAKE) distclean; then \ | |
6464 | true; \ | |
6465 | else \ | |
6466 | exit 1; \ | |
6467 | fi; \ | |
6468 | else \ | |
6469 | true; \ | |
6470 | fi; \ | |
6471 | else \ | |
6472 | exit 1; \ | |
6473 | fi; \ | |
6474 | else \ | |
6475 | true; \ | |
6476 | fi; \ | |
6477 | srcdiroption="--srcdir=."; \ | |
6478 | libsrcdir="."; \ | |
6479 | else \ | |
6480 | srcdiroption="--srcdir=$${topdir}/libgloss"; \ | |
6481 | libsrcdir="$$s/libgloss"; \ | |
6482 | fi; \ | |
930314a4 NN |
6483 | rm -f no-such-file || : ; \ |
6484 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6485 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6486 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6487 | || exit 1 |
e393202e | 6488 | |
930314a4 NN |
6489 | .PHONY: all-target-libgloss maybe-all-target-libgloss |
6490 | maybe-all-target-libgloss: | |
15723a45 | 6491 | all-target-libgloss: configure-target-libgloss |
930314a4 | 6492 | @r=`${PWD}`; export r; \ |
e393202e NN |
6493 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6494 | $(SET_LIB_PATH) \ | |
1086bc09 | 6495 | (cd $(TARGET_SUBDIR)/libgloss && \ |
930314a4 | 6496 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e | 6497 | |
3866be5d NN |
6498 | # Dummy target for uncheckable module. |
6499 | .PHONY: check-target-libgloss | |
6500 | check-target-libgloss: | |
6501 | ||
930314a4 NN |
6502 | |
6503 | .PHONY: install-target-libgloss maybe-install-target-libgloss | |
6504 | maybe-install-target-libgloss: | |
e393202e | 6505 | install-target-libgloss: installdirs |
930314a4 | 6506 | @r=`${PWD}`; export r; \ |
e393202e NN |
6507 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6508 | $(SET_LIB_PATH) \ | |
1086bc09 | 6509 | (cd $(TARGET_SUBDIR)/libgloss && \ |
930314a4 | 6510 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6511 | |
6512 | ||
930314a4 NN |
6513 | .PHONY: configure-target-libiberty maybe-configure-target-libiberty |
6514 | maybe-configure-target-libiberty: | |
15723a45 NN |
6515 | configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/Makefile |
6516 | ||
1086bc09 NN |
6517 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6518 | $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out | |
15723a45 | 6519 | @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\ |
1086bc09 | 6520 | cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out |
15723a45 NN |
6521 | |
6522 | $(TARGET_SUBDIR)/libiberty/Makefile: config.status $(TARGET_SUBDIR)/libiberty/multilib.out | |
6523 | @[ -d $(TARGET_SUBDIR)/libiberty ] || mkdir $(TARGET_SUBDIR)/libiberty;\ | |
e393202e NN |
6524 | r=`${PWD}`; export r; \ |
6525 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6526 | $(SET_LIB_PATH) \ | |
6527 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6528 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6529 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6530 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6531 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6532 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6533 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6534 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6535 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6536 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6537 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6538 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6539 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6540 | echo Configuring in $(TARGET_SUBDIR)/libiberty; \ | |
6541 | cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \ | |
6542 | case $(srcdir) in \ | |
6543 | /* | [A-Za-z]:[\\/]*) \ | |
6544 | topdir=$(srcdir) ;; \ | |
6545 | *) \ | |
6546 | case "$(TARGET_SUBDIR)" in \ | |
6547 | .) topdir="../$(srcdir)" ;; \ | |
6548 | *) topdir="../../$(srcdir)" ;; \ | |
6549 | esac ;; \ | |
6550 | esac; \ | |
6551 | if [ "$(srcdir)" = "." ] ; then \ | |
6552 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6553 | if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \ | |
6554 | if [ -f Makefile ]; then \ | |
6555 | if $(MAKE) distclean; then \ | |
6556 | true; \ | |
6557 | else \ | |
6558 | exit 1; \ | |
6559 | fi; \ | |
6560 | else \ | |
6561 | true; \ | |
6562 | fi; \ | |
6563 | else \ | |
6564 | exit 1; \ | |
6565 | fi; \ | |
6566 | else \ | |
6567 | true; \ | |
6568 | fi; \ | |
6569 | srcdiroption="--srcdir=."; \ | |
6570 | libsrcdir="."; \ | |
6571 | else \ | |
6572 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
6573 | libsrcdir="$$s/libiberty"; \ | |
6574 | fi; \ | |
930314a4 NN |
6575 | rm -f no-such-file || : ; \ |
6576 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6577 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6578 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6579 | || exit 1 |
e393202e | 6580 | |
930314a4 NN |
6581 | .PHONY: all-target-libiberty maybe-all-target-libiberty |
6582 | maybe-all-target-libiberty: | |
15723a45 | 6583 | all-target-libiberty: configure-target-libiberty |
930314a4 | 6584 | @r=`${PWD}`; export r; \ |
e393202e NN |
6585 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6586 | $(SET_LIB_PATH) \ | |
1086bc09 | 6587 | (cd $(TARGET_SUBDIR)/libiberty && \ |
930314a4 | 6588 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6589 | |
6590 | .PHONY: check-target-libiberty | |
6591 | check-target-libiberty: | |
930314a4 | 6592 | @r=`${PWD}`; export r; \ |
e393202e NN |
6593 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6594 | $(SET_LIB_PATH) \ | |
1086bc09 | 6595 | (cd $(TARGET_SUBDIR)/libiberty && \ |
930314a4 | 6596 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 6597 | |
930314a4 NN |
6598 | |
6599 | .PHONY: install-target-libiberty maybe-install-target-libiberty | |
6600 | maybe-install-target-libiberty: | |
e393202e | 6601 | install-target-libiberty: installdirs |
930314a4 | 6602 | @r=`${PWD}`; export r; \ |
e393202e NN |
6603 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6604 | $(SET_LIB_PATH) \ | |
1086bc09 | 6605 | (cd $(TARGET_SUBDIR)/libiberty && \ |
930314a4 | 6606 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6607 | |
6608 | ||
930314a4 NN |
6609 | .PHONY: configure-target-gperf maybe-configure-target-gperf |
6610 | maybe-configure-target-gperf: | |
15723a45 NN |
6611 | configure-target-gperf: $(TARGET_SUBDIR)/gperf/Makefile |
6612 | ||
1086bc09 NN |
6613 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6614 | $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out | |
15723a45 | 6615 | @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\ |
1086bc09 | 6616 | cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out |
15723a45 NN |
6617 | |
6618 | $(TARGET_SUBDIR)/gperf/Makefile: config.status $(TARGET_SUBDIR)/gperf/multilib.out | |
6619 | @[ -d $(TARGET_SUBDIR)/gperf ] || mkdir $(TARGET_SUBDIR)/gperf;\ | |
e393202e NN |
6620 | r=`${PWD}`; export r; \ |
6621 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6622 | $(SET_LIB_PATH) \ | |
6623 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6624 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6625 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6626 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6627 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6628 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6629 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6630 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6631 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6632 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6633 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6634 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6635 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6636 | echo Configuring in $(TARGET_SUBDIR)/gperf; \ | |
6637 | cd "$(TARGET_SUBDIR)/gperf" || exit 1; \ | |
6638 | case $(srcdir) in \ | |
6639 | /* | [A-Za-z]:[\\/]*) \ | |
6640 | topdir=$(srcdir) ;; \ | |
6641 | *) \ | |
6642 | case "$(TARGET_SUBDIR)" in \ | |
6643 | .) topdir="../$(srcdir)" ;; \ | |
6644 | *) topdir="../../$(srcdir)" ;; \ | |
6645 | esac ;; \ | |
6646 | esac; \ | |
6647 | if [ "$(srcdir)" = "." ] ; then \ | |
6648 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6649 | if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \ | |
6650 | if [ -f Makefile ]; then \ | |
6651 | if $(MAKE) distclean; then \ | |
6652 | true; \ | |
6653 | else \ | |
6654 | exit 1; \ | |
6655 | fi; \ | |
6656 | else \ | |
6657 | true; \ | |
6658 | fi; \ | |
6659 | else \ | |
6660 | exit 1; \ | |
6661 | fi; \ | |
6662 | else \ | |
6663 | true; \ | |
6664 | fi; \ | |
6665 | srcdiroption="--srcdir=."; \ | |
6666 | libsrcdir="."; \ | |
6667 | else \ | |
6668 | srcdiroption="--srcdir=$${topdir}/gperf"; \ | |
6669 | libsrcdir="$$s/gperf"; \ | |
6670 | fi; \ | |
930314a4 NN |
6671 | rm -f no-such-file || : ; \ |
6672 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6673 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6674 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6675 | || exit 1 |
e393202e | 6676 | |
930314a4 NN |
6677 | .PHONY: all-target-gperf maybe-all-target-gperf |
6678 | maybe-all-target-gperf: | |
15723a45 | 6679 | all-target-gperf: configure-target-gperf |
930314a4 | 6680 | @r=`${PWD}`; export r; \ |
e393202e NN |
6681 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6682 | $(SET_LIB_PATH) \ | |
1086bc09 | 6683 | (cd $(TARGET_SUBDIR)/gperf && \ |
930314a4 | 6684 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6685 | |
6686 | .PHONY: check-target-gperf | |
6687 | check-target-gperf: | |
930314a4 | 6688 | @r=`${PWD}`; export r; \ |
e393202e NN |
6689 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6690 | $(SET_LIB_PATH) \ | |
1086bc09 | 6691 | (cd $(TARGET_SUBDIR)/gperf && \ |
930314a4 | 6692 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 6693 | |
930314a4 NN |
6694 | |
6695 | .PHONY: install-target-gperf maybe-install-target-gperf | |
6696 | maybe-install-target-gperf: | |
e393202e | 6697 | install-target-gperf: installdirs |
930314a4 | 6698 | @r=`${PWD}`; export r; \ |
e393202e NN |
6699 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6700 | $(SET_LIB_PATH) \ | |
1086bc09 | 6701 | (cd $(TARGET_SUBDIR)/gperf && \ |
930314a4 | 6702 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6703 | |
6704 | ||
930314a4 NN |
6705 | .PHONY: configure-target-examples maybe-configure-target-examples |
6706 | maybe-configure-target-examples: | |
15723a45 NN |
6707 | configure-target-examples: $(TARGET_SUBDIR)/examples/Makefile |
6708 | ||
1086bc09 NN |
6709 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6710 | $(TARGET_SUBDIR)/examples/multilib.out: multilib.out | |
15723a45 | 6711 | @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\ |
1086bc09 | 6712 | cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out |
15723a45 NN |
6713 | |
6714 | $(TARGET_SUBDIR)/examples/Makefile: config.status $(TARGET_SUBDIR)/examples/multilib.out | |
6715 | @[ -d $(TARGET_SUBDIR)/examples ] || mkdir $(TARGET_SUBDIR)/examples;\ | |
e393202e NN |
6716 | r=`${PWD}`; export r; \ |
6717 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6718 | $(SET_LIB_PATH) \ | |
6719 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6720 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6721 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6722 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6723 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6724 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6725 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6726 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6727 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6728 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6729 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6730 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6731 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6732 | echo Configuring in $(TARGET_SUBDIR)/examples; \ | |
6733 | cd "$(TARGET_SUBDIR)/examples" || exit 1; \ | |
6734 | case $(srcdir) in \ | |
6735 | /* | [A-Za-z]:[\\/]*) \ | |
6736 | topdir=$(srcdir) ;; \ | |
6737 | *) \ | |
6738 | case "$(TARGET_SUBDIR)" in \ | |
6739 | .) topdir="../$(srcdir)" ;; \ | |
6740 | *) topdir="../../$(srcdir)" ;; \ | |
6741 | esac ;; \ | |
6742 | esac; \ | |
6743 | if [ "$(srcdir)" = "." ] ; then \ | |
6744 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6745 | if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \ | |
6746 | if [ -f Makefile ]; then \ | |
6747 | if $(MAKE) distclean; then \ | |
6748 | true; \ | |
6749 | else \ | |
6750 | exit 1; \ | |
6751 | fi; \ | |
6752 | else \ | |
6753 | true; \ | |
6754 | fi; \ | |
6755 | else \ | |
6756 | exit 1; \ | |
6757 | fi; \ | |
6758 | else \ | |
6759 | true; \ | |
6760 | fi; \ | |
6761 | srcdiroption="--srcdir=."; \ | |
6762 | libsrcdir="."; \ | |
6763 | else \ | |
6764 | srcdiroption="--srcdir=$${topdir}/examples"; \ | |
6765 | libsrcdir="$$s/examples"; \ | |
6766 | fi; \ | |
930314a4 NN |
6767 | rm -f no-such-file || : ; \ |
6768 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6769 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6770 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6771 | || exit 1 |
e393202e | 6772 | |
930314a4 NN |
6773 | .PHONY: all-target-examples maybe-all-target-examples |
6774 | maybe-all-target-examples: | |
15723a45 | 6775 | all-target-examples: configure-target-examples |
930314a4 | 6776 | @r=`${PWD}`; export r; \ |
e393202e NN |
6777 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6778 | $(SET_LIB_PATH) \ | |
1086bc09 | 6779 | (cd $(TARGET_SUBDIR)/examples && \ |
930314a4 | 6780 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e | 6781 | |
3866be5d NN |
6782 | # Dummy target for uncheckable module. |
6783 | .PHONY: check-target-examples | |
6784 | check-target-examples: | |
6785 | ||
e393202e | 6786 | |
930314a4 NN |
6787 | .PHONY: install-target-examples maybe-install-target-examples |
6788 | maybe-install-target-examples: | |
6789 | # Dummy target for uninstallable. | |
6790 | install-target-examples: | |
6791 | ||
e393202e | 6792 | |
930314a4 NN |
6793 | .PHONY: configure-target-libffi maybe-configure-target-libffi |
6794 | maybe-configure-target-libffi: | |
15723a45 NN |
6795 | configure-target-libffi: $(TARGET_SUBDIR)/libffi/Makefile |
6796 | ||
1086bc09 NN |
6797 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6798 | $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out | |
15723a45 | 6799 | @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\ |
1086bc09 | 6800 | cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out |
15723a45 NN |
6801 | |
6802 | $(TARGET_SUBDIR)/libffi/Makefile: config.status $(TARGET_SUBDIR)/libffi/multilib.out | |
6803 | @[ -d $(TARGET_SUBDIR)/libffi ] || mkdir $(TARGET_SUBDIR)/libffi;\ | |
e393202e NN |
6804 | r=`${PWD}`; export r; \ |
6805 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6806 | $(SET_LIB_PATH) \ | |
6807 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6808 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6809 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6810 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6811 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6812 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6813 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6814 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6815 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6816 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6817 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6818 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6819 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6820 | echo Configuring in $(TARGET_SUBDIR)/libffi; \ | |
6821 | cd "$(TARGET_SUBDIR)/libffi" || exit 1; \ | |
6822 | case $(srcdir) in \ | |
6823 | /* | [A-Za-z]:[\\/]*) \ | |
6824 | topdir=$(srcdir) ;; \ | |
6825 | *) \ | |
6826 | case "$(TARGET_SUBDIR)" in \ | |
6827 | .) topdir="../$(srcdir)" ;; \ | |
6828 | *) topdir="../../$(srcdir)" ;; \ | |
6829 | esac ;; \ | |
6830 | esac; \ | |
6831 | if [ "$(srcdir)" = "." ] ; then \ | |
6832 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6833 | if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \ | |
6834 | if [ -f Makefile ]; then \ | |
6835 | if $(MAKE) distclean; then \ | |
6836 | true; \ | |
6837 | else \ | |
6838 | exit 1; \ | |
6839 | fi; \ | |
6840 | else \ | |
6841 | true; \ | |
6842 | fi; \ | |
6843 | else \ | |
6844 | exit 1; \ | |
6845 | fi; \ | |
6846 | else \ | |
6847 | true; \ | |
6848 | fi; \ | |
6849 | srcdiroption="--srcdir=."; \ | |
6850 | libsrcdir="."; \ | |
6851 | else \ | |
6852 | srcdiroption="--srcdir=$${topdir}/libffi"; \ | |
6853 | libsrcdir="$$s/libffi"; \ | |
6854 | fi; \ | |
930314a4 NN |
6855 | rm -f no-such-file || : ; \ |
6856 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6857 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6858 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6859 | || exit 1 |
e393202e | 6860 | |
930314a4 NN |
6861 | .PHONY: all-target-libffi maybe-all-target-libffi |
6862 | maybe-all-target-libffi: | |
15723a45 | 6863 | all-target-libffi: configure-target-libffi |
930314a4 | 6864 | @r=`${PWD}`; export r; \ |
e393202e NN |
6865 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6866 | $(SET_LIB_PATH) \ | |
1086bc09 | 6867 | (cd $(TARGET_SUBDIR)/libffi && \ |
930314a4 | 6868 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
e393202e NN |
6869 | |
6870 | .PHONY: check-target-libffi | |
6871 | check-target-libffi: | |
930314a4 | 6872 | @r=`${PWD}`; export r; \ |
e393202e NN |
6873 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6874 | $(SET_LIB_PATH) \ | |
1086bc09 | 6875 | (cd $(TARGET_SUBDIR)/libffi && \ |
930314a4 | 6876 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e NN |
6877 | |
6878 | ||
930314a4 NN |
6879 | .PHONY: install-target-libffi maybe-install-target-libffi |
6880 | maybe-install-target-libffi: | |
6881 | # Dummy target for uninstallable. | |
6882 | install-target-libffi: | |
e393202e | 6883 | |
930314a4 NN |
6884 | |
6885 | .PHONY: configure-target-libjava maybe-configure-target-libjava | |
6886 | maybe-configure-target-libjava: | |
15723a45 NN |
6887 | configure-target-libjava: $(TARGET_SUBDIR)/libjava/Makefile |
6888 | ||
1086bc09 NN |
6889 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6890 | $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out | |
15723a45 | 6891 | @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\ |
1086bc09 | 6892 | cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out |
15723a45 NN |
6893 | |
6894 | $(TARGET_SUBDIR)/libjava/Makefile: config.status $(TARGET_SUBDIR)/libjava/multilib.out | |
6895 | @[ -d $(TARGET_SUBDIR)/libjava ] || mkdir $(TARGET_SUBDIR)/libjava;\ | |
e393202e NN |
6896 | r=`${PWD}`; export r; \ |
6897 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6898 | $(SET_LIB_PATH) \ | |
6899 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6900 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6901 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6902 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
930314a4 NN |
6903 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ |
6904 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \ | |
e393202e NN |
6905 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ |
6906 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6907 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6908 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6909 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6910 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6911 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6912 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6913 | echo Configuring in $(TARGET_SUBDIR)/libjava; \ | |
6914 | cd "$(TARGET_SUBDIR)/libjava" || exit 1; \ | |
6915 | case $(srcdir) in \ | |
6916 | /* | [A-Za-z]:[\\/]*) \ | |
6917 | topdir=$(srcdir) ;; \ | |
6918 | *) \ | |
6919 | case "$(TARGET_SUBDIR)" in \ | |
6920 | .) topdir="../$(srcdir)" ;; \ | |
6921 | *) topdir="../../$(srcdir)" ;; \ | |
6922 | esac ;; \ | |
6923 | esac; \ | |
6924 | if [ "$(srcdir)" = "." ] ; then \ | |
6925 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6926 | if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \ | |
6927 | if [ -f Makefile ]; then \ | |
6928 | if $(MAKE) distclean; then \ | |
6929 | true; \ | |
6930 | else \ | |
6931 | exit 1; \ | |
6932 | fi; \ | |
6933 | else \ | |
6934 | true; \ | |
6935 | fi; \ | |
6936 | else \ | |
6937 | exit 1; \ | |
6938 | fi; \ | |
6939 | else \ | |
6940 | true; \ | |
6941 | fi; \ | |
6942 | srcdiroption="--srcdir=."; \ | |
6943 | libsrcdir="."; \ | |
6944 | else \ | |
6945 | srcdiroption="--srcdir=$${topdir}/libjava"; \ | |
6946 | libsrcdir="$$s/libjava"; \ | |
6947 | fi; \ | |
930314a4 NN |
6948 | rm -f no-such-file || : ; \ |
6949 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6950 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6951 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 6952 | || exit 1 |
e393202e | 6953 | |
930314a4 NN |
6954 | .PHONY: all-target-libjava maybe-all-target-libjava |
6955 | maybe-all-target-libjava: | |
15723a45 | 6956 | all-target-libjava: configure-target-libjava |
930314a4 | 6957 | @r=`${PWD}`; export r; \ |
e393202e NN |
6958 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6959 | $(SET_LIB_PATH) \ | |
1086bc09 | 6960 | (cd $(TARGET_SUBDIR)/libjava && \ |
930314a4 | 6961 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all) |
e393202e NN |
6962 | |
6963 | .PHONY: check-target-libjava | |
6964 | check-target-libjava: | |
930314a4 | 6965 | @r=`${PWD}`; export r; \ |
e393202e NN |
6966 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6967 | $(SET_LIB_PATH) \ | |
1086bc09 | 6968 | (cd $(TARGET_SUBDIR)/libjava && \ |
930314a4 | 6969 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) |
e393202e | 6970 | |
930314a4 NN |
6971 | |
6972 | .PHONY: install-target-libjava maybe-install-target-libjava | |
6973 | maybe-install-target-libjava: | |
e393202e | 6974 | install-target-libjava: installdirs |
930314a4 | 6975 | @r=`${PWD}`; export r; \ |
e393202e NN |
6976 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6977 | $(SET_LIB_PATH) \ | |
1086bc09 | 6978 | (cd $(TARGET_SUBDIR)/libjava && \ |
930314a4 | 6979 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
6980 | |
6981 | ||
930314a4 NN |
6982 | .PHONY: configure-target-zlib maybe-configure-target-zlib |
6983 | maybe-configure-target-zlib: | |
15723a45 NN |
6984 | configure-target-zlib: $(TARGET_SUBDIR)/zlib/Makefile |
6985 | ||
1086bc09 NN |
6986 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6987 | $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out | |
15723a45 | 6988 | @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\ |
1086bc09 | 6989 | cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out |
15723a45 NN |
6990 | |
6991 | $(TARGET_SUBDIR)/zlib/Makefile: config.status $(TARGET_SUBDIR)/zlib/multilib.out | |
6992 | @[ -d $(TARGET_SUBDIR)/zlib ] || mkdir $(TARGET_SUBDIR)/zlib;\ | |
e393202e NN |
6993 | r=`${PWD}`; export r; \ |
6994 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6995 | $(SET_LIB_PATH) \ | |
6996 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6997 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6998 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6999 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7000 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7001 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
7002 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
7003 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
7004 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7005 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7006 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7007 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7008 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
7009 | echo Configuring in $(TARGET_SUBDIR)/zlib; \ | |
7010 | cd "$(TARGET_SUBDIR)/zlib" || exit 1; \ | |
7011 | case $(srcdir) in \ | |
7012 | /* | [A-Za-z]:[\\/]*) \ | |
7013 | topdir=$(srcdir) ;; \ | |
7014 | *) \ | |
7015 | case "$(TARGET_SUBDIR)" in \ | |
7016 | .) topdir="../$(srcdir)" ;; \ | |
7017 | *) topdir="../../$(srcdir)" ;; \ | |
7018 | esac ;; \ | |
7019 | esac; \ | |
7020 | if [ "$(srcdir)" = "." ] ; then \ | |
7021 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
7022 | if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \ | |
7023 | if [ -f Makefile ]; then \ | |
7024 | if $(MAKE) distclean; then \ | |
7025 | true; \ | |
7026 | else \ | |
7027 | exit 1; \ | |
7028 | fi; \ | |
7029 | else \ | |
7030 | true; \ | |
7031 | fi; \ | |
7032 | else \ | |
7033 | exit 1; \ | |
7034 | fi; \ | |
7035 | else \ | |
7036 | true; \ | |
7037 | fi; \ | |
7038 | srcdiroption="--srcdir=."; \ | |
7039 | libsrcdir="."; \ | |
7040 | else \ | |
7041 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
7042 | libsrcdir="$$s/zlib"; \ | |
7043 | fi; \ | |
930314a4 NN |
7044 | rm -f no-such-file || : ; \ |
7045 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7046 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7047 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 7048 | || exit 1 |
252b5132 | 7049 | |
930314a4 NN |
7050 | .PHONY: all-target-zlib maybe-all-target-zlib |
7051 | maybe-all-target-zlib: | |
15723a45 | 7052 | all-target-zlib: configure-target-zlib |
930314a4 | 7053 | @r=`${PWD}`; export r; \ |
e393202e NN |
7054 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7055 | $(SET_LIB_PATH) \ | |
1086bc09 | 7056 | (cd $(TARGET_SUBDIR)/zlib && \ |
930314a4 | 7057 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
252b5132 | 7058 | |
e393202e NN |
7059 | .PHONY: check-target-zlib |
7060 | check-target-zlib: | |
930314a4 | 7061 | @r=`${PWD}`; export r; \ |
e393202e | 7062 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7063 | $(SET_LIB_PATH) \ |
1086bc09 | 7064 | (cd $(TARGET_SUBDIR)/zlib && \ |
930314a4 | 7065 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 7066 | |
930314a4 NN |
7067 | |
7068 | .PHONY: install-target-zlib maybe-install-target-zlib | |
7069 | maybe-install-target-zlib: | |
e393202e | 7070 | install-target-zlib: installdirs |
930314a4 | 7071 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7072 | s=`cd $(srcdir); ${PWD}`; export s; \ |
e393202e | 7073 | $(SET_LIB_PATH) \ |
1086bc09 | 7074 | (cd $(TARGET_SUBDIR)/zlib && \ |
930314a4 | 7075 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
49b7683b | 7076 | |
e393202e | 7077 | |
930314a4 NN |
7078 | .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc |
7079 | maybe-configure-target-boehm-gc: | |
15723a45 NN |
7080 | configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/Makefile |
7081 | ||
1086bc09 NN |
7082 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
7083 | $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out | |
15723a45 | 7084 | @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\ |
1086bc09 | 7085 | cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out |
15723a45 NN |
7086 | |
7087 | $(TARGET_SUBDIR)/boehm-gc/Makefile: config.status $(TARGET_SUBDIR)/boehm-gc/multilib.out | |
7088 | @[ -d $(TARGET_SUBDIR)/boehm-gc ] || mkdir $(TARGET_SUBDIR)/boehm-gc;\ | |
d5de0a84 NC |
7089 | r=`${PWD}`; export r; \ |
7090 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
e393202e NN |
7091 | $(SET_LIB_PATH) \ |
7092 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
7093 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
7094 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
7095 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7096 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7097 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
7098 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
7099 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
7100 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7101 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7102 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7103 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7104 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
7105 | echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \ | |
7106 | cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \ | |
49b7683b DD |
7107 | case $(srcdir) in \ |
7108 | /* | [A-Za-z]:[\\/]*) \ | |
7109 | topdir=$(srcdir) ;; \ | |
7110 | *) \ | |
e393202e | 7111 | case "$(TARGET_SUBDIR)" in \ |
49b7683b DD |
7112 | .) topdir="../$(srcdir)" ;; \ |
7113 | *) topdir="../../$(srcdir)" ;; \ | |
7114 | esac ;; \ | |
7115 | esac; \ | |
7116 | if [ "$(srcdir)" = "." ] ; then \ | |
e393202e NN |
7117 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ |
7118 | if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \ | |
49b7683b DD |
7119 | if [ -f Makefile ]; then \ |
7120 | if $(MAKE) distclean; then \ | |
7121 | true; \ | |
7122 | else \ | |
7123 | exit 1; \ | |
7124 | fi; \ | |
7125 | else \ | |
7126 | true; \ | |
7127 | fi; \ | |
7128 | else \ | |
7129 | exit 1; \ | |
7130 | fi; \ | |
7131 | else \ | |
7132 | true; \ | |
7133 | fi; \ | |
7134 | srcdiroption="--srcdir=."; \ | |
7135 | libsrcdir="."; \ | |
7136 | else \ | |
e393202e NN |
7137 | srcdiroption="--srcdir=$${topdir}/boehm-gc"; \ |
7138 | libsrcdir="$$s/boehm-gc"; \ | |
49b7683b | 7139 | fi; \ |
930314a4 NN |
7140 | rm -f no-such-file || : ; \ |
7141 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7142 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7143 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 7144 | || exit 1 |
49b7683b | 7145 | |
930314a4 NN |
7146 | .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc |
7147 | maybe-all-target-boehm-gc: | |
15723a45 | 7148 | all-target-boehm-gc: configure-target-boehm-gc |
930314a4 | 7149 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7150 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7151 | $(SET_LIB_PATH) \ |
1086bc09 | 7152 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
930314a4 | 7153 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
252b5132 | 7154 | |
e393202e NN |
7155 | .PHONY: check-target-boehm-gc |
7156 | check-target-boehm-gc: | |
930314a4 | 7157 | @r=`${PWD}`; export r; \ |
e393202e NN |
7158 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7159 | $(SET_LIB_PATH) \ | |
1086bc09 | 7160 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
930314a4 | 7161 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 7162 | |
930314a4 NN |
7163 | |
7164 | .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc | |
7165 | maybe-install-target-boehm-gc: | |
e393202e | 7166 | install-target-boehm-gc: installdirs |
930314a4 | 7167 | @r=`${PWD}`; export r; \ |
e393202e NN |
7168 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7169 | $(SET_LIB_PATH) \ | |
1086bc09 | 7170 | (cd $(TARGET_SUBDIR)/boehm-gc && \ |
930314a4 | 7171 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
e393202e NN |
7172 | |
7173 | ||
930314a4 NN |
7174 | .PHONY: configure-target-qthreads maybe-configure-target-qthreads |
7175 | maybe-configure-target-qthreads: | |
15723a45 NN |
7176 | configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/Makefile |
7177 | ||
1086bc09 NN |
7178 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
7179 | $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out | |
15723a45 | 7180 | @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\ |
1086bc09 | 7181 | cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out |
15723a45 NN |
7182 | |
7183 | $(TARGET_SUBDIR)/qthreads/Makefile: config.status $(TARGET_SUBDIR)/qthreads/multilib.out | |
7184 | @[ -d $(TARGET_SUBDIR)/qthreads ] || mkdir $(TARGET_SUBDIR)/qthreads;\ | |
d5de0a84 NC |
7185 | r=`${PWD}`; export r; \ |
7186 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7187 | $(SET_LIB_PATH) \ |
e393202e NN |
7188 | AR="$(AR_FOR_TARGET)"; export AR; \ |
7189 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
7190 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
7191 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7192 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7193 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
7194 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
7195 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
7196 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7197 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7198 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7199 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7200 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
7201 | echo Configuring in $(TARGET_SUBDIR)/qthreads; \ | |
7202 | cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \ | |
7203 | case $(srcdir) in \ | |
7204 | /* | [A-Za-z]:[\\/]*) \ | |
7205 | topdir=$(srcdir) ;; \ | |
7206 | *) \ | |
7207 | case "$(TARGET_SUBDIR)" in \ | |
7208 | .) topdir="../$(srcdir)" ;; \ | |
7209 | *) topdir="../../$(srcdir)" ;; \ | |
7210 | esac ;; \ | |
7211 | esac; \ | |
7212 | if [ "$(srcdir)" = "." ] ; then \ | |
7213 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
7214 | if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \ | |
7215 | if [ -f Makefile ]; then \ | |
7216 | if $(MAKE) distclean; then \ | |
7217 | true; \ | |
7218 | else \ | |
7219 | exit 1; \ | |
7220 | fi; \ | |
7221 | else \ | |
7222 | true; \ | |
7223 | fi; \ | |
7224 | else \ | |
7225 | exit 1; \ | |
7226 | fi; \ | |
7227 | else \ | |
7228 | true; \ | |
7229 | fi; \ | |
7230 | srcdiroption="--srcdir=."; \ | |
7231 | libsrcdir="."; \ | |
7232 | else \ | |
7233 | srcdiroption="--srcdir=$${topdir}/qthreads"; \ | |
7234 | libsrcdir="$$s/qthreads"; \ | |
7235 | fi; \ | |
930314a4 NN |
7236 | rm -f no-such-file || : ; \ |
7237 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7238 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7239 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 7240 | || exit 1 |
252b5132 | 7241 | |
930314a4 NN |
7242 | .PHONY: all-target-qthreads maybe-all-target-qthreads |
7243 | maybe-all-target-qthreads: | |
15723a45 | 7244 | all-target-qthreads: configure-target-qthreads |
930314a4 | 7245 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7246 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7247 | $(SET_LIB_PATH) \ |
1086bc09 | 7248 | (cd $(TARGET_SUBDIR)/qthreads && \ |
930314a4 | 7249 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
252b5132 | 7250 | |
e393202e NN |
7251 | .PHONY: check-target-qthreads |
7252 | check-target-qthreads: | |
930314a4 | 7253 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7254 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7255 | $(SET_LIB_PATH) \ |
1086bc09 | 7256 | (cd $(TARGET_SUBDIR)/qthreads && \ |
930314a4 | 7257 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
e393202e | 7258 | |
930314a4 NN |
7259 | |
7260 | .PHONY: install-target-qthreads maybe-install-target-qthreads | |
7261 | maybe-install-target-qthreads: | |
e393202e | 7262 | install-target-qthreads: installdirs |
930314a4 | 7263 | @r=`${PWD}`; export r; \ |
e393202e NN |
7264 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7265 | $(SET_LIB_PATH) \ | |
1086bc09 | 7266 | (cd $(TARGET_SUBDIR)/qthreads && \ |
930314a4 | 7267 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
252b5132 | 7268 | |
e393202e | 7269 | |
930314a4 NN |
7270 | .PHONY: configure-target-rda maybe-configure-target-rda |
7271 | maybe-configure-target-rda: | |
15723a45 NN |
7272 | configure-target-rda: $(TARGET_SUBDIR)/rda/Makefile |
7273 | ||
1086bc09 NN |
7274 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
7275 | $(TARGET_SUBDIR)/rda/multilib.out: multilib.out | |
15723a45 | 7276 | @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\ |
1086bc09 | 7277 | cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out |
15723a45 NN |
7278 | |
7279 | $(TARGET_SUBDIR)/rda/Makefile: config.status $(TARGET_SUBDIR)/rda/multilib.out | |
7280 | @[ -d $(TARGET_SUBDIR)/rda ] || mkdir $(TARGET_SUBDIR)/rda;\ | |
d5de0a84 NC |
7281 | r=`${PWD}`; export r; \ |
7282 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7283 | $(SET_LIB_PATH) \ |
7284 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
7285 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
7286 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
7287 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7288 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7289 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
75205f78 | 7290 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ |
252b5132 RH |
7291 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
7292 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7293 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7294 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7295 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7296 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
e393202e NN |
7297 | echo Configuring in $(TARGET_SUBDIR)/rda; \ |
7298 | cd "$(TARGET_SUBDIR)/rda" || exit 1; \ | |
252b5132 | 7299 | case $(srcdir) in \ |
75205f78 | 7300 | /* | [A-Za-z]:[\\/]*) \ |
252b5132 RH |
7301 | topdir=$(srcdir) ;; \ |
7302 | *) \ | |
7303 | case "$(TARGET_SUBDIR)" in \ | |
7304 | .) topdir="../$(srcdir)" ;; \ | |
7305 | *) topdir="../../$(srcdir)" ;; \ | |
7306 | esac ;; \ | |
7307 | esac; \ | |
7308 | if [ "$(srcdir)" = "." ] ; then \ | |
7309 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
e393202e | 7310 | if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \ |
252b5132 RH |
7311 | if [ -f Makefile ]; then \ |
7312 | if $(MAKE) distclean; then \ | |
7313 | true; \ | |
7314 | else \ | |
7315 | exit 1; \ | |
7316 | fi; \ | |
7317 | else \ | |
7318 | true; \ | |
7319 | fi; \ | |
7320 | else \ | |
7321 | exit 1; \ | |
7322 | fi; \ | |
7323 | else \ | |
7324 | true; \ | |
7325 | fi; \ | |
7326 | srcdiroption="--srcdir=."; \ | |
7327 | libsrcdir="."; \ | |
7328 | else \ | |
e393202e NN |
7329 | srcdiroption="--srcdir=$${topdir}/rda"; \ |
7330 | libsrcdir="$$s/rda"; \ | |
252b5132 | 7331 | fi; \ |
930314a4 NN |
7332 | rm -f no-such-file || : ; \ |
7333 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7334 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7335 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
15723a45 | 7336 | || exit 1 |
252b5132 | 7337 | |
930314a4 NN |
7338 | .PHONY: all-target-rda maybe-all-target-rda |
7339 | maybe-all-target-rda: | |
15723a45 | 7340 | all-target-rda: configure-target-rda |
930314a4 | 7341 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7342 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7343 | $(SET_LIB_PATH) \ |
1086bc09 | 7344 | (cd $(TARGET_SUBDIR)/rda && \ |
930314a4 | 7345 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) |
252b5132 | 7346 | |
e393202e NN |
7347 | .PHONY: check-target-rda |
7348 | check-target-rda: | |
930314a4 | 7349 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7350 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7351 | $(SET_LIB_PATH) \ |
1086bc09 | 7352 | (cd $(TARGET_SUBDIR)/rda && \ |
930314a4 | 7353 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) |
252b5132 | 7354 | |
930314a4 NN |
7355 | |
7356 | .PHONY: install-target-rda maybe-install-target-rda | |
7357 | maybe-install-target-rda: | |
e393202e | 7358 | install-target-rda: installdirs |
930314a4 | 7359 | @r=`${PWD}`; export r; \ |
d5de0a84 | 7360 | s=`cd $(srcdir); ${PWD}`; export s; \ |
252b5132 | 7361 | $(SET_LIB_PATH) \ |
1086bc09 | 7362 | (cd $(TARGET_SUBDIR)/rda && \ |
930314a4 | 7363 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) |
252b5132 | 7364 | |
e393202e NN |
7365 | |
7366 | ||
15723a45 NN |
7367 | # ---------- |
7368 | # GCC module | |
7369 | # ---------- | |
7370 | ||
7371 | # Unfortunately, while gcc _should_ be a host module, | |
7372 | # libgcc is a target module, and gen* programs are | |
7373 | # build modules. So GCC is a sort of hybrid. | |
7374 | ||
252b5132 | 7375 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. |
e2b9e2dc NN |
7376 | .PHONY: configure-gcc maybe-configure-gcc |
7377 | maybe-configure-gcc: | |
7378 | configure-gcc: gcc/Makefile | |
7379 | ||
7380 | gcc/Makefile: config.status | |
7381 | @[ -d gcc ] || mkdir gcc; \ | |
7382 | r=`${PWD}`; export r; \ | |
7383 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7384 | CC="$(CC)"; export CC; \ | |
7385 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
7386 | CXX="$(CXX)"; export CXX; \ | |
7387 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
7388 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
7389 | AR="$(AR)"; export AR; \ | |
7390 | AS="$(AS)"; export AS; \ | |
7391 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
7392 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
7393 | LD="$(LD)"; export LD; \ | |
7394 | NM="$(NM)"; export NM; \ | |
7395 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
7396 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
7397 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
7398 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
7399 | fi; \ | |
7400 | echo Configuring in gcc; \ | |
7401 | cd gcc || exit 1; \ | |
7402 | case $(srcdir) in \ | |
7403 | \.) \ | |
7404 | srcdiroption="--srcdir=."; \ | |
7405 | libsrcdir=".";; \ | |
7406 | /* | [A-Za-z]:[\\/]*) \ | |
7407 | srcdiroption="--srcdir=$(srcdir)/gcc"; \ | |
7408 | libsrcdir="$$s/gcc";; \ | |
7409 | *) \ | |
7410 | srcdiroption="--srcdir=../$(srcdir)/gcc"; \ | |
7411 | libsrcdir="$$s/gcc";; \ | |
7412 | esac; \ | |
7413 | $(SHELL) $${libsrcdir}/configure \ | |
7414 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
7415 | || exit 1 | |
7416 | ||
b72e6a2d JM |
7417 | # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that |
7418 | # causes trouble. This wart will be fixed eventually by moving | |
db1ac78d | 7419 | # the bootstrap behavior to this file. |
930314a4 NN |
7420 | .PHONY: all-gcc maybe-all-gcc |
7421 | maybe-all-gcc: | |
db1ac78d | 7422 | all-gcc: configure-gcc |
b72e6a2d JM |
7423 | @if [ -f gcc/stage_last ] ; then \ |
7424 | r=`${PWD}`; export r; \ | |
7425 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7426 | $(SET_LIB_PATH) \ | |
1086bc09 | 7427 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \ |
db1ac78d | 7428 | else \ |
d5de0a84 NC |
7429 | r=`${PWD}`; export r; \ |
7430 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7431 | $(SET_LIB_PATH) \ |
1086bc09 | 7432 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ |
252b5132 RH |
7433 | fi |
7434 | ||
7435 | # Building GCC uses some tools for rebuilding "source" files | |
7436 | # like texinfo, bison/byacc, etc. So we must depend on those. | |
7437 | # | |
7438 | # While building GCC, it may be necessary to run various target | |
7439 | # programs like the assembler, linker, etc. So we depend on | |
7440 | # those too. | |
7441 | # | |
7442 | # In theory, on an SMP all those dependencies can be resolved | |
7443 | # in parallel. | |
7444 | # | |
1aa8389d | 7445 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap |
db1ac78d | 7446 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc |
d5de0a84 NC |
7447 | @r=`${PWD}`; export r; \ |
7448 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7449 | $(SET_LIB_PATH) \ |
7450 | echo "Bootstrapping the compiler"; \ | |
5cec67bf | 7451 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
d5de0a84 NC |
7452 | @r=`${PWD}`; export r; \ |
7453 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7454 | case "$@" in \ |
7455 | *bootstrap4-lean ) \ | |
7456 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
7457 | compare=compare3-lean ;; \ | |
7458 | *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \ | |
7459 | compare=compare3 ;; \ | |
7460 | *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
7461 | compare=compare-lean ;; \ | |
7462 | * ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
7463 | compare=compare ;; \ | |
7464 | esac; \ | |
7465 | $(SET_LIB_PATH) \ | |
7466 | echo "$$msg"; \ | |
5cec67bf | 7467 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
d5de0a84 NC |
7468 | @r=`${PWD}`; export r; \ |
7469 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
252b5132 RH |
7470 | $(SET_LIB_PATH) \ |
7471 | echo "Building runtime libraries"; \ | |
dec0cb0c | 7472 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all |
252b5132 RH |
7473 | |
7474 | .PHONY: cross | |
7475 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
d5de0a84 NC |
7476 | @r=`${PWD}`; export r; \ |
7477 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7478 | $(SET_LIB_PATH) \ |
7479 | echo "Building the C and C++ compiler"; \ | |
5cec67bf | 7480 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
d5de0a84 NC |
7481 | @r=`${PWD}`; export r; \ |
7482 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
252b5132 RH |
7483 | $(SET_LIB_PATH) \ |
7484 | echo "Building runtime libraries"; \ | |
dec0cb0c AO |
7485 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \ |
7486 | LANGUAGES="c c++" all | |
252b5132 RH |
7487 | |
7488 | .PHONY: check-gcc | |
7489 | check-gcc: | |
7490 | @if [ -f ./gcc/Makefile ] ; then \ | |
d5de0a84 NC |
7491 | r=`${PWD}`; export r; \ |
7492 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7493 | $(SET_LIB_PATH) \ |
1086bc09 | 7494 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ |
252b5132 RH |
7495 | else \ |
7496 | true; \ | |
7497 | fi | |
7498 | ||
7d695d07 JM |
7499 | .PHONY: check-gcc-c++ |
7500 | check-gcc-c++: | |
75205f78 | 7501 | @if [ -f ./gcc/Makefile ] ; then \ |
d5de0a84 NC |
7502 | r=`${PWD}`; export r; \ |
7503 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
75205f78 | 7504 | $(SET_LIB_PATH) \ |
1086bc09 | 7505 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ |
75205f78 DD |
7506 | else \ |
7507 | true; \ | |
7d695d07 JM |
7508 | fi |
7509 | ||
7510 | .PHONY: check-c++ | |
7511 | check-c++: check-target-libstdc++-v3 check-gcc-c++ | |
75205f78 | 7512 | |
930314a4 NN |
7513 | .PHONY: install-gcc maybe-install-gcc |
7514 | maybe-install-gcc: | |
252b5132 RH |
7515 | install-gcc: |
7516 | @if [ -f ./gcc/Makefile ] ; then \ | |
d5de0a84 NC |
7517 | r=`${PWD}`; export r; \ |
7518 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7519 | $(SET_LIB_PATH) \ |
1086bc09 | 7520 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
252b5132 RH |
7521 | else \ |
7522 | true; \ | |
7523 | fi | |
7524 | ||
15723a45 NN |
7525 | # Install the gcc headers files, but not the fixed include files, |
7526 | # which Cygnus is not allowed to distribute. This rule is very | |
7527 | # dependent on the workings of the gcc Makefile.in. | |
7528 | .PHONY: gcc-no-fixedincludes | |
7529 | gcc-no-fixedincludes: | |
7530 | @if [ -f ./gcc/Makefile ]; then \ | |
7531 | rm -rf gcc/tmp-include; \ | |
7532 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
7533 | mkdir gcc/include; \ | |
7534 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
7535 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
7536 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
7537 | r=`${PWD}`; export r; \ | |
7538 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
7539 | $(SET_LIB_PATH) \ | |
1086bc09 | 7540 | (cd ./gcc && \ |
15723a45 NN |
7541 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
7542 | rm -rf gcc/include; \ | |
7543 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
7544 | else true; fi | |
7545 | ||
ae831be5 NN |
7546 | # -------------------------------------- |
7547 | # Dependencies between different modules | |
7548 | # -------------------------------------- | |
252b5132 | 7549 | |
ae831be5 NN |
7550 | # There are two types of dependencies here: 'hard' dependencies, where one |
7551 | # module simply won't build without the other; and 'soft' dependencies, where | |
7552 | # if the depended-on module is missing, the depending module will do without | |
7553 | # or find a substitute somewhere (perhaps installed). Soft dependencies | |
7554 | # are specified by depending on a 'maybe-' target. If you're not sure, | |
7555 | # it's safer to use a soft dependency. | |
7556 | ||
7557 | # Host modules specific to gcc. | |
e2b9e2dc | 7558 | # GCC needs to identify certain tools. |
b4a77b47 | 7559 | configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex |
ae831be5 NN |
7560 | all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib |
7561 | # This is a slightly kludgy method of getting dependencies on | |
7562 | # all-build-libiberty correct; it would be better to build it every time. | |
7563 | all-gcc: maybe-all-build-libiberty | |
7564 | all-bootstrap: maybe-all-libiberty maybe-all-texinfo maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib | |
7565 | ||
7566 | # Host modules specific to gdb. | |
e2b9e2dc | 7567 | # GDB needs to know that the simulator is being built. |
b4a77b47 | 7568 | configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim |
ae831be5 NN |
7569 | GDB_TK = @GDB_TK@ |
7570 | all-gdb: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-mmalloc maybe-all-readline maybe-all-bison maybe-all-byacc maybe-all-sim $(gdbnlmrequirements) $(GDB_TK) | |
7571 | install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui | |
59da4fe6 | 7572 | configure-libgui: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7573 | all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl |
7574 | ||
7575 | # Host modules specific to binutils. | |
b4a77b47 | 7576 | configure-bfd: configure-libiberty |
930314a4 NN |
7577 | all-bfd: maybe-all-libiberty maybe-all-intl |
7578 | all-binutils: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-flex maybe-all-bison maybe-all-byacc maybe-all-intl | |
ae831be5 NN |
7579 | # We put install-opcodes before install-binutils because the installed |
7580 | # binutils might be on PATH, and they might need the shared opcodes | |
7581 | # library. | |
7582 | install-binutils: maybe-install-opcodes | |
7583 | all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl | |
7584 | all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl | |
7585 | all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl | |
7586 | all-opcodes: maybe-all-bfd maybe-all-libiberty | |
7587 | ||
7588 | # Other host modules in the 'src' repository. | |
930314a4 | 7589 | all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk |
b4a77b47 | 7590 | configure-expect: maybe-configure-tcl maybe-configure-tk |
930314a4 | 7591 | all-expect: maybe-all-tcl maybe-all-tk |
b4a77b47 | 7592 | configure-itcl: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7593 | all-itcl: maybe-all-tcl maybe-all-tk |
7594 | # We put install-tcl before install-itcl because itcl wants to run a | |
7595 | # program on installation which uses the Tcl libraries. | |
7596 | install-itcl: maybe-install-tcl | |
7597 | all-sid: maybe-all-tcl maybe-all-tk | |
7598 | install-sid: maybe-install-tcl maybe-install-tk | |
a36d530e | 7599 | all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb |
b4a77b47 | 7600 | configure-tk: maybe-configure-tcl |
ae831be5 | 7601 | all-tk: maybe-all-tcl |
b4a77b47 | 7602 | configure-tix: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7603 | all-tix: maybe-all-tcl maybe-all-tk |
7604 | all-texinfo: maybe-all-libiberty | |
7605 | ||
7606 | # Other host modules. Warning, these are not well tested. | |
7607 | all-autoconf: maybe-all-m4 maybe-all-texinfo | |
7608 | all-automake: maybe-all-m4 maybe-all-texinfo | |
7609 | all-bison: maybe-all-texinfo | |
7610 | all-diff: maybe-all-libiberty | |
7611 | all-fastjar: maybe-all-zlib maybe-all-libiberty | |
930314a4 NN |
7612 | all-fileutils: maybe-all-libiberty |
7613 | all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc | |
930314a4 NN |
7614 | all-grep: maybe-all-libiberty |
7615 | all-gzip: maybe-all-libiberty | |
7616 | all-hello: maybe-all-libiberty | |
930314a4 NN |
7617 | all-m4: maybe-all-libiberty maybe-all-texinfo |
7618 | all-make: maybe-all-libiberty | |
930314a4 NN |
7619 | all-patch: maybe-all-libiberty |
7620 | all-prms: maybe-all-libiberty | |
930314a4 NN |
7621 | all-recode: maybe-all-libiberty |
7622 | all-sed: maybe-all-libiberty | |
7623 | all-send-pr: maybe-all-prms | |
930314a4 NN |
7624 | all-snavigator: maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-db maybe-all-grep maybe-all-libgui |
7625 | all-tar: maybe-all-libiberty | |
930314a4 | 7626 | all-uudecode: maybe-all-libiberty |
ae831be5 NN |
7627 | |
7628 | ALL_GCC = maybe-all-gcc | |
7629 | ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss | |
7630 | ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3 | |
7631 | ||
7632 | # Target modules specific to gcc. | |
b4a77b47 DD |
7633 | configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads |
7634 | configure-target-fastjar: maybe-configure-target-zlib | |
930314a4 | 7635 | all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty |
b4a77b47 | 7636 | configure-target-libf2c: $(ALL_GCC_C) |
ae831be5 | 7637 | all-target-libf2c: maybe-all-target-libiberty |
b4a77b47 DD |
7638 | configure-target-libffi: $(ALL_GCC_C) |
7639 | configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi | |
ae831be5 | 7640 | all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi |
b4a77b47 | 7641 | configure-target-libobjc: $(ALL_GCC_C) |
ae831be5 | 7642 | all-target-libobjc: maybe-all-target-libiberty |
b4a77b47 | 7643 | configure-target-libstdc++-v3: $(ALL_GCC_C) |
ae831be5 | 7644 | all-target-libstdc++-v3: maybe-all-target-libiberty |
b4a77b47 | 7645 | configure-target-zlib: $(ALL_GCC_C) |
a9590527 | 7646 | |
ae831be5 | 7647 | # Target modules in the 'src' repository. |
b4a77b47 DD |
7648 | configure-target-examples: $(ALL_GCC_C) |
7649 | configure-target-libgloss: $(ALL_GCC) | |
ae831be5 | 7650 | all-target-libgloss: maybe-configure-target-newlib |
b4a77b47 DD |
7651 | configure-target-libiberty: $(ALL_GCC_C) |
7652 | configure-target-libtermcap: $(ALL_GCC_C) | |
7653 | configure-target-newlib: $(ALL_GCC) | |
7dda0df6 | 7654 | configure-target-rda: $(ALL_GCC_C) |
b4a77b47 | 7655 | configure-target-winsup: $(ALL_GCC_C) |
ae831be5 | 7656 | all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap |
a9590527 | 7657 | |
ae831be5 | 7658 | # Other target modules. Warning, these are not well tested. |
b4a77b47 | 7659 | configure-target-gperf: $(ALL_GCC_CXX) |
ae831be5 | 7660 | all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3 |
b4a77b47 | 7661 | configure-target-qthreads: $(ALL_GCC_C) |
907a7241 | 7662 | |
930314a4 NN |
7663 | # Dependencies of maybe-foo on foo. These are used because, for example, |
7664 | # all-gcc only depends on all-gas if gas is present and being configured. | |
7665 | @maybe_dependencies@ | |
7666 | ||
a2cc058a NN |
7667 | # Serialization dependencies. Host configures don't work well in parallel to |
7668 | # each other, due to contention over config.cache. Target configures and | |
7669 | # build configures are similar. | |
7670 | @serialization_dependencies@ | |
7671 | ||
15723a45 NN |
7672 | # -------------------------------- |
7673 | # Regenerating top level configury | |
7674 | # -------------------------------- | |
252b5132 | 7675 | |
1086bc09 NN |
7676 | # Multilib.out tells target dirs what multilibs they should build. |
7677 | # There is really only one copy. We use the 'timestamp' method to | |
7678 | # work around various timestamp bugs on some systems. | |
7679 | # We use move-if-change so that it's only considered updated when it | |
7680 | # actually changes, because it has to depend on a phony target. | |
7681 | multilib.out: multilib.ts | |
7682 | @if [ -f multilib.out] ; then : else \ | |
7683 | rm -f multilib.ts; $(MAKE) multilib.ts; \ | |
7684 | fi | |
7685 | ||
7686 | multilib.ts: maybe-all-gcc | |
7687 | @r=`${PWD}`; export r; \ | |
7688 | echo "Checking multilib configuration..."; \ | |
7689 | $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \ | |
7690 | $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \ | |
7691 | echo timestamp > multilib.ts | |
7692 | ||
14a2a2f1 NN |
7693 | # Rebuilding Makefile.in, using autogen. |
7694 | $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def | |
7695 | cd $(srcdir) && autogen Makefile.def | |
7696 | ||
252b5132 RH |
7697 | # with the gnu make, this is done automatically. |
7698 | ||
583d52d7 NN |
7699 | host_makefile_frag=@host_makefile_frag@ |
7700 | target_makefile_frag=@target_makefile_frag@ | |
7701 | ||
252b5132 RH |
7702 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) |
7703 | $(SHELL) ./config.status | |
7704 | ||
7705 | # | |
252b5132 RH |
7706 | |
7707 | .NOEXPORT: | |
7708 | MAKEOVERRIDES= | |
7709 | ||
7710 | # end of Makefile.in |