]>
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, |
91f0e695 | 6 | # 1999, 2000, 2001, 2002, 2003 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 | ||
50212802 NN |
23 | # ------------------------------- |
24 | # Standard Autoconf-set variables | |
25 | # ------------------------------- | |
583d52d7 | 26 | VPATH=@srcdir@ |
583d52d7 NN |
27 | |
28 | build_alias=@build_alias@ | |
29 | build_cpu=@build_cpu@ | |
30 | build_vendor=@build_vendor@ | |
31 | build_os=@build_os@ | |
32 | build_canonical=@build_cpu@-@build_vendor@-@build_os@ | |
33 | host_alias=@host_alias@ | |
34 | host_cpu=@host_cpu@ | |
35 | host_vendor=@host_vendor@ | |
36 | host_os=@host_os@ | |
37 | host_canonical=@host_cpu@-@host_vendor@-@host_os@ | |
38 | target_alias=@target_alias@ | |
39 | target_cpu=@target_cpu@ | |
40 | target_vendor=@target_vendor@ | |
41 | target_os=@target_os@ | |
42 | target_canonical=@target_cpu@-@target_vendor@-@target_os@ | |
43 | ||
50212802 | 44 | program_transform_name = @program_transform_name@ |
403d9505 NN |
45 | |
46 | prefix = @prefix@ | |
47 | exec_prefix = @exec_prefix@ | |
48 | ||
50212802 NN |
49 | srcdir = @srcdir@ |
50 | ||
403d9505 NN |
51 | bindir = @bindir@ |
52 | sbindir = @sbindir@ | |
53 | libexecdir = @libexecdir@ | |
54 | datadir = @datadir@ | |
55 | sysconfdir = @sysconfdir@ | |
56 | sharedstatedir = @sharedstatedir@ | |
57 | localstatedir = @localstatedir@ | |
58 | libdir = @libdir@ | |
59 | includedir = @includedir@ | |
60 | oldincludedir = @oldincludedir@ | |
61 | infodir = @infodir@ | |
62 | mandir = @mandir@ | |
252b5132 RH |
63 | man1dir = $(mandir)/man1 |
64 | man2dir = $(mandir)/man2 | |
65 | man3dir = $(mandir)/man3 | |
66 | man4dir = $(mandir)/man4 | |
67 | man5dir = $(mandir)/man5 | |
68 | man6dir = $(mandir)/man6 | |
69 | man7dir = $(mandir)/man7 | |
70 | man8dir = $(mandir)/man8 | |
71 | man9dir = $(mandir)/man9 | |
d5de0a84 | 72 | |
252b5132 RH |
73 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a |
74 | # cygwin host. | |
75 | INSTALL_PROGRAM_ARGS = | |
76 | ||
77 | INSTALL = $(SHELL) $$s/install-sh -c | |
78 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS) | |
79 | INSTALL_SCRIPT = $(INSTALL) | |
80 | INSTALL_DATA = $(INSTALL) -m 644 | |
81 | ||
50212802 NN |
82 | # ------------------------------------------------- |
83 | # Miscellaneous non-standard autoconf-set variables | |
84 | # ------------------------------------------------- | |
252b5132 | 85 | |
50212802 | 86 | links=@configlinks@ |
50212802 NN |
87 | # The file containing GCC's version number. |
88 | gcc_version_trigger = @gcc_version_trigger@ | |
89 | gcc_version = @gcc_version@ | |
252b5132 | 90 | |
50212802 NN |
91 | # The gcc driver likes to know the arguments it was configured with. |
92 | TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@ | |
252b5132 | 93 | |
50212802 NN |
94 | gxx_include_dir = @gxx_include_dir@ |
95 | libstdcxx_incdir = @libstdcxx_incdir@ | |
252b5132 | 96 | |
50212802 NN |
97 | tooldir = @tooldir@ |
98 | build_tooldir = @build_tooldir@ | |
252b5132 | 99 | |
50212802 NN |
100 | # Directory in which the compiler finds executables, libraries, etc. |
101 | libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version) | |
102 | GDB_NLM_DEPS = | |
252b5132 | 103 | |
50212802 NN |
104 | # This is the name of the environment variable used for the path to |
105 | # the libraries. | |
106 | RPATH_ENVVAR = @RPATH_ENVVAR@ | |
252b5132 | 107 | |
50212802 NN |
108 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared |
109 | # was used. | |
110 | SET_LIB_PATH = @SET_LIB_PATH@ | |
252b5132 | 111 | |
50212802 NN |
112 | # configure.in sets SET_LIB_PATH to this if --enable-shared was used. |
113 | # Some platforms don't like blank entries, so we remove duplicate, | |
114 | # leading and trailing colons. | |
115 | REALLY_SET_LIB_PATH = \ | |
116 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); | |
252b5132 | 117 | |
50212802 NN |
118 | # This is the list of directories to be built for the build system. |
119 | BUILD_CONFIGDIRS = libiberty | |
120 | # Build programs are put under this directory. | |
121 | BUILD_SUBDIR = @build_subdir@ | |
122 | # This is set by the configure script to the arguments to use when configuring | |
123 | # directories built for the build system. | |
124 | BUILD_CONFIGARGS = @build_configargs@ | |
125 | ||
126 | # This is the list of directories to built for the host system. | |
127 | SUBDIRS = @configdirs@ | |
128 | # This is set by the configure script to the arguments to use when configuring | |
129 | # directories built for the host system. | |
130 | HOST_CONFIGARGS = @host_configargs@ | |
131 | ||
132 | # This is set by the configure script to the list of directories which | |
133 | # should be built using the target tools. | |
134 | TARGET_CONFIGDIRS = @target_configdirs@ | |
135 | # Target libraries are put under this directory: | |
136 | TARGET_SUBDIR = @target_subdir@ | |
137 | # This is set by the configure script to the arguments to use when configuring | |
138 | # directories built for the target. | |
139 | TARGET_CONFIGARGS = @target_configargs@ | |
140 | ||
141 | # ---------------------------------------------- | |
142 | # Programs producing files for the BUILD machine | |
143 | # ---------------------------------------------- | |
144 | ||
145 | SHELL = @config_shell@ | |
146 | ||
147 | # pwd command to use. Allow user to override default by setting PWDCMD in | |
148 | # the environment to account for automounters. The make variable must not | |
149 | # be called PWDCMD, otherwise the value set here is passed to make | |
150 | # subprocesses and overrides the setting from the user's environment. | |
151 | PWD = $${PWDCMD-pwd} | |
152 | ||
153 | # compilers to use to create programs which must be run in the build | |
154 | # environment. | |
155 | CC_FOR_BUILD = @CC_FOR_BUILD@ | |
156 | CFLAGS_FOR_BUILD = $(CFLAGS) | |
157 | ||
158 | CXX_FOR_BUILD = $(CXX) | |
159 | ||
160 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
161 | # here so that they can be overridden by Makefile fragments. | |
162 | BUILD_CC = $(CC_FOR_BUILD) | |
163 | BUILD_PREFIX = @BUILD_PREFIX@ | |
164 | BUILD_PREFIX_1 = @BUILD_PREFIX_1@ | |
252b5132 | 165 | |
852e5f18 NN |
166 | BISON=@BISON@ |
167 | USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \ | |
252b5132 RH |
168 | echo $$r/bison/bison -L $$s/bison/ ; \ |
169 | else \ | |
170 | echo bison ; \ | |
171 | fi` | |
172 | ||
50212802 | 173 | DEFAULT_YACC = @DEFAULT_YACC@ |
852e5f18 NN |
174 | YACC=@YACC@ |
175 | USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \ | |
252b5132 RH |
176 | echo $$r/bison/bison -y -L $$s/bison/ ; \ |
177 | elif [ -f $$r/byacc/byacc ] ; then \ | |
178 | echo $$r/byacc/byacc ; \ | |
179 | else \ | |
180 | echo ${DEFAULT_YACC} ; \ | |
181 | fi` | |
182 | ||
50212802 | 183 | DEFAULT_LEX = @DEFAULT_LEX@ |
852e5f18 NN |
184 | LEX=@LEX@ |
185 | USUAL_LEX = `if [ -f $$r/flex/flex ] ; \ | |
252b5132 RH |
186 | then echo $$r/flex/flex ; \ |
187 | else echo ${DEFAULT_LEX} ; fi` | |
188 | ||
50212802 | 189 | DEFAULT_M4 = @DEFAULT_M4@ |
252b5132 RH |
190 | M4 = `if [ -f $$r/m4/m4 ] ; \ |
191 | then echo $$r/m4/m4 ; \ | |
192 | else echo ${DEFAULT_M4} ; fi` | |
193 | ||
f08fa01d HPN |
194 | # For an installed makeinfo, we require it to be from texinfo 4 or |
195 | # higher, else we use the "missing" dummy. | |
852e5f18 NN |
196 | MAKEINFO=@MAKEINFO@ |
197 | USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ | |
252b5132 | 198 | then echo $$r/texinfo/makeinfo/makeinfo ; \ |
f08fa01d HPN |
199 | else if (makeinfo --version \ |
200 | | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \ | |
201 | then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` | |
252b5132 RH |
202 | |
203 | # This just becomes part of the MAKEINFO definition passed down to | |
204 | # sub-makes. It lets flags be given on the command line while still | |
205 | # using the makeinfo from the object tree. | |
206 | MAKEINFOFLAGS = | |
207 | ||
208 | EXPECT = `if [ -f $$r/expect/expect ] ; \ | |
209 | then echo $$r/expect/expect ; \ | |
210 | else echo expect ; fi` | |
211 | ||
212 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ | |
213 | then echo $$s/dejagnu/runtest ; \ | |
214 | else echo runtest ; fi` | |
215 | ||
50212802 NN |
216 | # --------------------------------------------- |
217 | # Programs producing files for the HOST machine | |
218 | # --------------------------------------------- | |
252b5132 | 219 | |
50212802 NN |
220 | # This is the list of directories that may be needed in RPATH_ENVVAR |
221 | # so that programs built for the host machine work. | |
222 | HOST_LIB_PATH = $$r/bfd:$$r/opcodes | |
252b5132 | 223 | |
50212802 | 224 | AS = @AS@ |
252b5132 | 225 | |
50212802 NN |
226 | AR = @AR@ |
227 | AR_FLAGS = rc | |
252b5132 | 228 | |
50212802 NN |
229 | CC = @CC@ |
230 | CFLAGS = @CFLAGS@ | |
231 | LIBCFLAGS = $(CFLAGS) | |
252b5132 | 232 | |
50212802 NN |
233 | CXX = @CXX@ |
234 | CXXFLAGS = @CXXFLAGS@ | |
235 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | |
49b7683b | 236 | |
50212802 | 237 | DLLTOOL = @DLLTOOL@ |
252b5132 | 238 | |
50212802 | 239 | NM = @NM@ |
15723a45 | 240 | |
50212802 NN |
241 | LD = @LD@ |
242 | LDFLAGS = | |
15723a45 | 243 | |
50212802 | 244 | RANLIB = @RANLIB@ |
252b5132 | 245 | |
50212802 | 246 | WINDRES = @WINDRES@ |
252b5132 | 247 | |
50212802 NN |
248 | PICFLAG = |
249 | ||
250 | # ----------------------------------------------- | |
251 | # Programs producing files for the TARGET machine | |
252 | # ----------------------------------------------- | |
0da52010 AO |
253 | |
254 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
255 | # so that prorgams built for the target machine work. | |
75205f78 | 256 | TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs: |
0da52010 | 257 | |
58daee98 | 258 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
252b5132 | 259 | |
50212802 NN |
260 | AR_FOR_TARGET=@AR_FOR_TARGET@ |
261 | USUAL_AR_FOR_TARGET = ` \ | |
262 | if [ -f $$r/binutils/ar ] ; then \ | |
263 | echo $$r/binutils/ar ; \ | |
264 | else \ | |
265 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
266 | echo $(AR); \ | |
267 | else \ | |
268 | echo ar | sed '$(program_transform_name)' ; \ | |
269 | fi; \ | |
270 | fi` | |
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 \ | |
43be203f | 282 | echo as | sed '$(program_transform_name)' ; \ |
252b5132 RH |
283 | fi; \ |
284 | fi` | |
285 | ||
50212802 NN |
286 | CC_FOR_TARGET = @CC_FOR_TARGET@ |
287 | # During gcc bootstrap, if we use some random cc for stage1 then | |
288 | # CFLAGS will be just -g. We want to ensure that TARGET libraries | |
289 | # (which we know are built with gcc) are built with optimizations so | |
290 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | |
291 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) | |
292 | # If GCC_FOR_TARGET is not overriden on the command line, then this | |
293 | # variable is passed down to the gcc Makefile, where it is used to | |
294 | # build libgcc2.a. We define it here so that it can itself be | |
295 | # overridden on the command line. | |
296 | GCC_FOR_TARGET=@GCC_FOR_TARGET@ | |
297 | USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET) | |
298 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | |
299 | ||
300 | CXX_FOR_TARGET = @CXX_FOR_TARGET@ | |
301 | RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@ | |
302 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ | |
303 | RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ | |
304 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) | |
305 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | |
252b5132 | 306 | |
852e5f18 NN |
307 | DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@ |
308 | USUAL_DLLTOOL_FOR_TARGET = ` \ | |
252b5132 RH |
309 | if [ -f $$r/binutils/dlltool ] ; then \ |
310 | echo $$r/binutils/dlltool ; \ | |
311 | else \ | |
3f152009 | 312 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
252b5132 RH |
313 | echo $(DLLTOOL); \ |
314 | else \ | |
43be203f | 315 | echo dlltool | sed '$(program_transform_name)' ; \ |
252b5132 RH |
316 | fi; \ |
317 | fi` | |
318 | ||
50212802 NN |
319 | GCJ_FOR_TARGET = @GCJ_FOR_TARGET@ |
320 | ||
321 | LD_FOR_TARGET=@LD_FOR_TARGET@ | |
322 | USUAL_LD_FOR_TARGET = ` \ | |
323 | if [ -f $$r/ld/ld-new ] ; then \ | |
324 | echo $$r/ld/ld-new ; \ | |
325 | elif [ -f $$r/gcc/xgcc ]; then \ | |
326 | $(CC_FOR_TARGET) -print-prog-name=ld ; \ | |
252b5132 | 327 | else \ |
3f152009 | 328 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
50212802 | 329 | echo $(LD); \ |
252b5132 | 330 | else \ |
50212802 | 331 | echo ld | sed '$(program_transform_name)' ; \ |
252b5132 RH |
332 | fi; \ |
333 | fi` | |
334 | ||
50212802 NN |
335 | LDFLAGS_FOR_TARGET = |
336 | ||
337 | NM_FOR_TARGET=@NM_FOR_TARGET@ | |
338 | USUAL_NM_FOR_TARGET = ` \ | |
339 | if [ -f $$r/binutils/nm-new ] ; then \ | |
340 | echo $$r/binutils/nm-new ; \ | |
341 | elif [ -f $$r/gcc/xgcc ]; then \ | |
342 | $(CC_FOR_TARGET) -print-prog-name=nm ; \ | |
252b5132 | 343 | else \ |
3f152009 | 344 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
50212802 | 345 | echo $(NM); \ |
252b5132 | 346 | else \ |
50212802 | 347 | echo nm | sed '$(program_transform_name)' ; \ |
252b5132 RH |
348 | fi; \ |
349 | fi` | |
350 | ||
852e5f18 NN |
351 | RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@ |
352 | USUAL_RANLIB_FOR_TARGET = ` \ | |
252b5132 RH |
353 | if [ -f $$r/binutils/ranlib ] ; then \ |
354 | echo $$r/binutils/ranlib ; \ | |
355 | else \ | |
3f152009 AO |
356 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
357 | if [ x'$(RANLIB)' != x ]; then \ | |
358 | echo $(RANLIB); \ | |
359 | else \ | |
360 | echo ranlib; \ | |
361 | fi; \ | |
252b5132 | 362 | else \ |
43be203f | 363 | echo ranlib | sed '$(program_transform_name)' ; \ |
252b5132 RH |
364 | fi; \ |
365 | fi` | |
366 | ||
50212802 NN |
367 | WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@ |
368 | USUAL_WINDRES_FOR_TARGET = ` \ | |
369 | if [ -f $$r/binutils/windres ] ; then \ | |
370 | echo $$r/binutils/windres ; \ | |
252b5132 | 371 | else \ |
3f152009 | 372 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
50212802 | 373 | echo $(WINDRES); \ |
252b5132 | 374 | else \ |
50212802 | 375 | echo windres | sed '$(program_transform_name)' ; \ |
252b5132 RH |
376 | fi; \ |
377 | fi` | |
378 | ||
50212802 NN |
379 | PICFLAG_FOR_TARGET = |
380 | ||
381 | # ------------------------------------ | |
382 | # Miscellaneous targets and flag lists | |
383 | # ------------------------------------ | |
384 | ||
252b5132 RH |
385 | # The first rule in the file had better be this one. Don't put any above it. |
386 | # This lives here to allow makefile fragments to contain dependencies. | |
387 | all: all.normal | |
388 | .PHONY: all | |
389 | ||
252b5132 | 390 | #### host and target specific makefile fragments come in here. |
a0da8069 NN |
391 | @target_makefile_frag@ |
392 | @alphaieee_frag@ | |
393 | @ospace_frag@ | |
394 | @host_makefile_frag@ | |
252b5132 RH |
395 | ### |
396 | ||
397 | # Flags to pass down to all sub-makes. | |
398 | # Please keep these in alphabetical order. | |
399 | BASE_FLAGS_TO_PASS = \ | |
400 | "AR_FLAGS=$(AR_FLAGS)" \ | |
401 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ | |
402 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
403 | "BISON=$(BISON)" \ | |
404 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
405 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
406 | "CFLAGS=$(CFLAGS)" \ | |
407 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
75205f78 | 408 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ |
252b5132 RH |
409 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
410 | "CXXFLAGS=$(CXXFLAGS)" \ | |
411 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | |
412 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
497f816e | 413 | "DESTDIR=$(DESTDIR)" \ |
252b5132 RH |
414 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ |
415 | "INSTALL=$(INSTALL)" \ | |
416 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
417 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
418 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
419 | "LDFLAGS=$(LDFLAGS)" \ | |
420 | "LEX=$(LEX)" \ | |
421 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ | |
422 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
423 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
424 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
425 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
426 | "M4=$(M4)" \ | |
427 | "MAKE=$(MAKE)" \ | |
428 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
429 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
430 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ | |
431 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ | |
432 | "SHELL=$(SHELL)" \ | |
433 | "EXPECT=$(EXPECT)" \ | |
434 | "RUNTEST=$(RUNTEST)" \ | |
435 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
436 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ | |
437 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ | |
438 | "YACC=$(YACC)" \ | |
439 | "bindir=$(bindir)" \ | |
440 | "datadir=$(datadir)" \ | |
441 | "exec_prefix=$(exec_prefix)" \ | |
442 | "includedir=$(includedir)" \ | |
443 | "infodir=$(infodir)" \ | |
444 | "libdir=$(libdir)" \ | |
445 | "libexecdir=$(libexecdir)" \ | |
446 | "lispdir=$(lispdir)" \ | |
75205f78 DD |
447 | "libstdcxx_incdir=$(libstdcxx_incdir)" \ |
448 | "libsubdir=$(libsubdir)" \ | |
252b5132 RH |
449 | "localstatedir=$(localstatedir)" \ |
450 | "mandir=$(mandir)" \ | |
451 | "oldincludedir=$(oldincludedir)" \ | |
452 | "prefix=$(prefix)" \ | |
453 | "sbindir=$(sbindir)" \ | |
454 | "sharedstatedir=$(sharedstatedir)" \ | |
455 | "sysconfdir=$(sysconfdir)" \ | |
456 | "tooldir=$(tooldir)" \ | |
ba73c63f | 457 | "build_tooldir=$(build_tooldir)" \ |
252b5132 RH |
458 | "gxx_include_dir=$(gxx_include_dir)" \ |
459 | "gcc_version=$(gcc_version)" \ | |
460 | "gcc_version_trigger=$(gcc_version_trigger)" \ | |
75205f78 | 461 | "target_alias=$(target_alias)" |
252b5132 | 462 | |
dec0cb0c AO |
463 | # For any flags above that may contain shell code that varies from one |
464 | # target library to another. When doing recursive invocations of the | |
465 | # top-level Makefile, we don't want the outer make to evaluate them, | |
466 | # so we pass these variables down unchanged. They must not contain | |
467 | # single nor double quotes. | |
468 | RECURSE_FLAGS = \ | |
930314a4 NN |
469 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ |
470 | RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \ | |
dec0cb0c | 471 | |
252b5132 RH |
472 | # Flags to pass down to most sub-makes, in which we're building with |
473 | # the host environment. | |
474 | # If any variables are added here, they must be added to do-*, below. | |
475 | EXTRA_HOST_FLAGS = \ | |
476 | 'AR=$(AR)' \ | |
477 | 'AS=$(AS)' \ | |
478 | 'CC=$(CC)' \ | |
479 | 'CXX=$(CXX)' \ | |
480 | 'DLLTOOL=$(DLLTOOL)' \ | |
481 | 'LD=$(LD)' \ | |
482 | 'NM=$(NM)' \ | |
b9459e83 | 483 | 'RANLIB=$(RANLIB)' \ |
252b5132 RH |
484 | 'WINDRES=$(WINDRES)' |
485 | ||
486 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
487 | ||
488 | # Flags that are concerned with the location of the X11 include files | |
489 | # and library files | |
490 | # | |
491 | # NOTE: until the top-level is getting the values via autoconf, it only | |
492 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
493 | # values in child directories. Only variables that don't conflict with | |
494 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
495 | # | |
496 | X11_FLAGS_TO_PASS = \ | |
497 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | |
498 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
499 | ||
500 | # Flags to pass down to makes which are built with the target environment. | |
501 | # The double $ decreases the length of the command line; the variables | |
502 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
503 | # If any variables are added here, they must be added to do-*, below. | |
504 | EXTRA_TARGET_FLAGS = \ | |
505 | 'AR=$$(AR_FOR_TARGET)' \ | |
506 | 'AS=$$(AS_FOR_TARGET)' \ | |
507 | 'CC=$$(CC_FOR_TARGET)' \ | |
508 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
509 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
510 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | |
511 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
512 | 'LD=$$(LD_FOR_TARGET)' \ | |
513 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | |
514 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
515 | 'NM=$$(NM_FOR_TARGET)' \ | |
516 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ | |
517 | 'WINDRES=$$(WINDRES_FOR_TARGET)' | |
518 | ||
519 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
520 | ||
521 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
522 | # unfortunately needs the native compiler and the target ar and | |
523 | # ranlib. | |
524 | # If any variables are added here, they must be added to do-*, below. | |
525 | # The HOST_* variables are a special case, which are used for the gcc | |
526 | # cross-building scheme. | |
527 | EXTRA_GCC_FLAGS = \ | |
528 | 'AR=$(AR)' \ | |
529 | 'AS=$(AS)' \ | |
530 | 'CC=$(CC)' \ | |
531 | 'CXX=$(CXX)' \ | |
532 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
3866be5d | 533 | 'BUILD_CC=$(CC_FOR_BUILD)' \ |
27f15fdd DD |
534 | 'BUILD_PREFIX=$(BUILD_PREFIX)' \ |
535 | 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \ | |
252b5132 | 536 | 'NM=$(NM)' \ |
b9459e83 | 537 | 'RANLIB=$(RANLIB)' \ |
252b5132 RH |
538 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
539 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ | |
75205f78 | 540 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
252b5132 RH |
541 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \ |
542 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \ | |
543 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | |
252b5132 RH |
544 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
545 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | |
546 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \ | |
547 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \ | |
75205f78 | 548 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
252b5132 RH |
549 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" |
550 | ||
551 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) | |
552 | ||
db1ac78d NN |
553 | configure-host: @configure_host_modules@ |
554 | configure-target: @configure_target_modules@ | |
252b5132 RH |
555 | |
556 | # This is a list of the targets for which we can do a clean-{target}. | |
557 | CLEAN_MODULES = \ | |
252b5132 RH |
558 | clean-ash \ |
559 | clean-autoconf \ | |
560 | clean-automake \ | |
561 | clean-bash \ | |
562 | clean-bfd \ | |
405ea7a0 | 563 | clean-opcodes \ |
252b5132 RH |
564 | clean-binutils \ |
565 | clean-bison \ | |
566 | clean-byacc \ | |
567 | clean-bzip2 \ | |
252b5132 RH |
568 | clean-dejagnu \ |
569 | clean-diff \ | |
570 | clean-dosutils \ | |
571 | clean-etc \ | |
75205f78 | 572 | clean-fastjar \ |
252b5132 RH |
573 | clean-fileutils \ |
574 | clean-findutils \ | |
575 | clean-find \ | |
576 | clean-flex \ | |
577 | clean-gas \ | |
578 | clean-gawk \ | |
579 | clean-gettext \ | |
580 | clean-gnuserv \ | |
581 | clean-gprof \ | |
252b5132 RH |
582 | clean-gzip \ |
583 | clean-hello \ | |
584 | clean-indent \ | |
252b5132 | 585 | clean-intl \ |
405ea7a0 | 586 | clean-tcl \ |
252b5132 RH |
587 | clean-itcl \ |
588 | clean-ld \ | |
589 | clean-libgui \ | |
590 | clean-libiberty \ | |
591 | clean-libtool \ | |
592 | clean-m4 \ | |
593 | clean-make \ | |
594 | clean-mmalloc \ | |
252b5132 RH |
595 | clean-patch \ |
596 | clean-perl \ | |
597 | clean-prms \ | |
598 | clean-rcs \ | |
599 | clean-readline \ | |
600 | clean-release \ | |
601 | clean-recode \ | |
602 | clean-sed \ | |
603 | clean-send-pr \ | |
604 | clean-shellutils \ | |
8817b92e | 605 | clean-sid \ |
252b5132 RH |
606 | clean-sim \ |
607 | clean-tar \ | |
252b5132 RH |
608 | clean-texinfo \ |
609 | clean-textutils \ | |
252b5132 RH |
610 | clean-time \ |
611 | clean-uudecode \ | |
612 | clean-wdiff \ | |
5cec67bf | 613 | clean-zip \ |
3866be5d | 614 | clean-zlib \ |
52d7cdee | 615 | clean-utils |
252b5132 RH |
616 | |
617 | # All of the target modules that can be cleaned | |
618 | CLEAN_TARGET_MODULES = \ | |
ba73c63f | 619 | clean-target-libstdc++-v3 \ |
252b5132 | 620 | clean-target-newlib \ |
ba73c63f | 621 | clean-target-libf2c \ |
ba73c63f | 622 | clean-target-libobjc \ |
252b5132 RH |
623 | clean-target-winsup \ |
624 | clean-target-libgloss \ | |
625 | clean-target-libiberty \ | |
626 | clean-target-gperf \ | |
627 | clean-target-examples \ | |
ba73c63f JM |
628 | clean-target-libffi \ |
629 | clean-target-libjava \ | |
630 | clean-target-zlib \ | |
631 | clean-target-boehm-gc \ | |
dd2768ff | 632 | clean-target-qthreads \ |
52d7cdee | 633 | clean-target-rda |
252b5132 RH |
634 | |
635 | # All of the x11 modules that can be cleaned | |
636 | CLEAN_X11_MODULES = \ | |
252b5132 RH |
637 | clean-gdb \ |
638 | clean-expect \ | |
252b5132 | 639 | clean-guile \ |
ce5b542e MC |
640 | clean-tk \ |
641 | clean-tix | |
252b5132 RH |
642 | |
643 | # The target built for a native build. | |
3866be5d | 644 | # This list only includes modules actually being configured and built. |
252b5132 | 645 | .PHONY: all.normal |
3866be5d NN |
646 | all.normal: @all_build_modules@ \ |
647 | @all_host_modules@ \ | |
648 | @all_target_modules@ | |
649 | ||
db1ac78d | 650 | all-host: @all_host_modules@ |
3866be5d | 651 | all-target: @all_target_modules@ |
252b5132 RH |
652 | |
653 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
654 | # ``make X'' in all subdirectories (because, in general, there is a | |
655 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
656 | # but it may do additional work as well). | |
657 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | |
658 | # because it is so large that it can easily overflow the command line | |
659 | # length limit on some systems. | |
e393202e NN |
660 | |
661 | .PHONY: do-clean | |
662 | do-clean: | |
663 | @r=`${PWD}`; export r; \ | |
664 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
665 | $(SET_LIB_PATH) \ | |
666 | for i in $(SUBDIRS) -dummy-; do \ | |
667 | if [ -f ./$$i/Makefile ]; then \ | |
668 | case $$i in \ | |
669 | gcc) \ | |
670 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
671 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
672 | done; \ | |
673 | ;; \ | |
674 | *) \ | |
675 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
676 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
677 | done; \ | |
678 | ;; \ | |
679 | esac ; \ | |
1086bc09 | 680 | (cd ./$$i && \ |
e393202e NN |
681 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
682 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 683 | "RANLIB=$${RANLIB}" \ |
e393202e | 684 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
685 | clean) \ |
686 | || exit 1; \ | |
e393202e NN |
687 | else true; fi; \ |
688 | done | |
689 | # Break into two pieces | |
d5de0a84 NC |
690 | r=`${PWD}`; export r; \ |
691 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 692 | $(SET_LIB_PATH) \ |
e393202e NN |
693 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ |
694 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
695 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
696 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
697 | done; \ | |
1086bc09 | 698 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
699 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
700 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 701 | "RANLIB=$${RANLIB}" \ |
e393202e | 702 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
703 | clean) \ |
704 | || exit 1; \ | |
e393202e NN |
705 | else true; fi; \ |
706 | done | |
707 | ||
708 | .PHONY: do-distclean | |
709 | do-distclean: | |
710 | @r=`${PWD}`; export r; \ | |
711 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
712 | $(SET_LIB_PATH) \ | |
252b5132 RH |
713 | for i in $(SUBDIRS) -dummy-; do \ |
714 | if [ -f ./$$i/Makefile ]; then \ | |
715 | case $$i in \ | |
716 | gcc) \ | |
717 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
3f152009 | 718 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 RH |
719 | done; \ |
720 | ;; \ | |
721 | *) \ | |
722 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
3f152009 | 723 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 RH |
724 | done; \ |
725 | ;; \ | |
726 | esac ; \ | |
1086bc09 | 727 | (cd ./$$i && \ |
252b5132 RH |
728 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
729 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 730 | "RANLIB=$${RANLIB}" \ |
252b5132 | 731 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
732 | distclean) \ |
733 | || exit 1; \ | |
252b5132 RH |
734 | else true; fi; \ |
735 | done | |
e393202e | 736 | # Break into two pieces |
d5de0a84 NC |
737 | r=`${PWD}`; export r; \ |
738 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
739 | $(SET_LIB_PATH) \ |
740 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
741 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
742 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
3f152009 | 743 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
252b5132 | 744 | done; \ |
1086bc09 | 745 | (cd $(TARGET_SUBDIR)/$$i && \ |
252b5132 RH |
746 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
747 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 748 | "RANLIB=$${RANLIB}" \ |
252b5132 | 749 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
750 | distclean) \ |
751 | || exit 1; \ | |
252b5132 RH |
752 | else true; fi; \ |
753 | done | |
754 | ||
e393202e NN |
755 | .PHONY: do-dvi |
756 | do-dvi: | |
757 | @r=`${PWD}`; export r; \ | |
758 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
759 | $(SET_LIB_PATH) \ | |
760 | for i in $(SUBDIRS) -dummy-; do \ | |
761 | if [ -f ./$$i/Makefile ]; then \ | |
762 | case $$i in \ | |
763 | gcc) \ | |
764 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
765 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
766 | done; \ | |
767 | ;; \ | |
768 | *) \ | |
769 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
770 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
771 | done; \ | |
772 | ;; \ | |
773 | esac ; \ | |
1086bc09 | 774 | (cd ./$$i && \ |
e393202e NN |
775 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
776 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 777 | "RANLIB=$${RANLIB}" \ |
e393202e | 778 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
779 | dvi) \ |
780 | || exit 1; \ | |
e393202e NN |
781 | else true; fi; \ |
782 | done | |
783 | # Break into two pieces | |
784 | r=`${PWD}`; export r; \ | |
785 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
786 | $(SET_LIB_PATH) \ | |
787 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
788 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
789 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
790 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
791 | done; \ | |
1086bc09 | 792 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
793 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
794 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 795 | "RANLIB=$${RANLIB}" \ |
e393202e | 796 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
797 | dvi) \ |
798 | || exit 1; \ | |
e393202e NN |
799 | else true; fi; \ |
800 | done | |
252b5132 | 801 | |
e393202e NN |
802 | .PHONY: do-info |
803 | do-info: | |
804 | @r=`${PWD}`; export r; \ | |
805 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
806 | $(SET_LIB_PATH) \ | |
807 | for i in $(SUBDIRS) -dummy-; do \ | |
808 | if [ -f ./$$i/Makefile ]; then \ | |
809 | case $$i in \ | |
810 | gcc) \ | |
811 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
812 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
813 | done; \ | |
814 | ;; \ | |
815 | *) \ | |
816 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
817 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
818 | done; \ | |
819 | ;; \ | |
820 | esac ; \ | |
1086bc09 | 821 | (cd ./$$i && \ |
e393202e NN |
822 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
823 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 824 | "RANLIB=$${RANLIB}" \ |
e393202e | 825 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
826 | info) \ |
827 | || exit 1; \ | |
e393202e NN |
828 | else true; fi; \ |
829 | done | |
830 | # Break into two pieces | |
831 | r=`${PWD}`; export r; \ | |
832 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
833 | $(SET_LIB_PATH) \ | |
834 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
835 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
836 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
837 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
838 | done; \ | |
1086bc09 | 839 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
840 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
841 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 842 | "RANLIB=$${RANLIB}" \ |
e393202e | 843 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
844 | info) \ |
845 | || exit 1; \ | |
e393202e NN |
846 | else true; fi; \ |
847 | done | |
252b5132 | 848 | |
e393202e NN |
849 | .PHONY: do-install-info |
850 | do-install-info: | |
851 | @r=`${PWD}`; export r; \ | |
852 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
853 | $(SET_LIB_PATH) \ | |
854 | for i in $(SUBDIRS) -dummy-; do \ | |
855 | if [ -f ./$$i/Makefile ]; then \ | |
856 | case $$i in \ | |
857 | gcc) \ | |
858 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
859 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
860 | done; \ | |
861 | ;; \ | |
862 | *) \ | |
863 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
864 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
865 | done; \ | |
866 | ;; \ | |
867 | esac ; \ | |
1086bc09 | 868 | (cd ./$$i && \ |
e393202e NN |
869 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
870 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 871 | "RANLIB=$${RANLIB}" \ |
e393202e | 872 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
873 | install-info) \ |
874 | || exit 1; \ | |
e393202e NN |
875 | else true; fi; \ |
876 | done | |
877 | # Break into two pieces | |
878 | r=`${PWD}`; export r; \ | |
879 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
880 | $(SET_LIB_PATH) \ | |
881 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
882 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
883 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
884 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
885 | done; \ | |
1086bc09 | 886 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
887 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
888 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 889 | "RANLIB=$${RANLIB}" \ |
e393202e | 890 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
891 | install-info) \ |
892 | || exit 1; \ | |
e393202e NN |
893 | else true; fi; \ |
894 | done | |
252b5132 | 895 | |
e393202e NN |
896 | .PHONY: do-installcheck |
897 | do-installcheck: | |
898 | @r=`${PWD}`; export r; \ | |
d5de0a84 | 899 | s=`cd $(srcdir); ${PWD}`; export s; \ |
e393202e NN |
900 | $(SET_LIB_PATH) \ |
901 | for i in $(SUBDIRS) -dummy-; do \ | |
902 | if [ -f ./$$i/Makefile ]; then \ | |
903 | case $$i in \ | |
904 | gcc) \ | |
905 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
906 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
907 | done; \ | |
908 | ;; \ | |
909 | *) \ | |
910 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
911 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
912 | done; \ | |
913 | ;; \ | |
914 | esac ; \ | |
1086bc09 | 915 | (cd ./$$i && \ |
e393202e NN |
916 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
917 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 918 | "RANLIB=$${RANLIB}" \ |
e393202e | 919 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
920 | installcheck) \ |
921 | || exit 1; \ | |
e393202e NN |
922 | else true; fi; \ |
923 | done | |
924 | # Break into two pieces | |
925 | r=`${PWD}`; export r; \ | |
926 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
927 | $(SET_LIB_PATH) \ | |
928 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
929 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
930 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
931 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
932 | done; \ | |
1086bc09 | 933 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
934 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
935 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 936 | "RANLIB=$${RANLIB}" \ |
e393202e | 937 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
938 | installcheck) \ |
939 | || exit 1; \ | |
e393202e NN |
940 | else true; fi; \ |
941 | done | |
252b5132 | 942 | |
e393202e NN |
943 | .PHONY: do-mostlyclean |
944 | do-mostlyclean: | |
945 | @r=`${PWD}`; export r; \ | |
946 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
947 | $(SET_LIB_PATH) \ | |
948 | for i in $(SUBDIRS) -dummy-; do \ | |
949 | if [ -f ./$$i/Makefile ]; then \ | |
950 | case $$i in \ | |
951 | gcc) \ | |
952 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
954 | done; \ | |
955 | ;; \ | |
956 | *) \ | |
957 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
958 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
959 | done; \ | |
960 | ;; \ | |
961 | esac ; \ | |
1086bc09 | 962 | (cd ./$$i && \ |
e393202e NN |
963 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
964 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 965 | "RANLIB=$${RANLIB}" \ |
e393202e | 966 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
967 | mostlyclean) \ |
968 | || exit 1; \ | |
e393202e NN |
969 | else true; fi; \ |
970 | done | |
971 | # Break into two pieces | |
972 | r=`${PWD}`; export r; \ | |
973 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
974 | $(SET_LIB_PATH) \ | |
975 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
976 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
977 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
979 | done; \ | |
1086bc09 | 980 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
981 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
982 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 983 | "RANLIB=$${RANLIB}" \ |
e393202e | 984 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
985 | mostlyclean) \ |
986 | || exit 1; \ | |
e393202e NN |
987 | else true; fi; \ |
988 | done | |
252b5132 | 989 | |
e393202e NN |
990 | .PHONY: do-maintainer-clean |
991 | do-maintainer-clean: | |
992 | @r=`${PWD}`; export r; \ | |
993 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
994 | $(SET_LIB_PATH) \ | |
995 | for i in $(SUBDIRS) -dummy-; do \ | |
996 | if [ -f ./$$i/Makefile ]; then \ | |
997 | case $$i in \ | |
998 | gcc) \ | |
999 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
1000 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1001 | done; \ | |
1002 | ;; \ | |
1003 | *) \ | |
1004 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
1005 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1006 | done; \ | |
1007 | ;; \ | |
1008 | esac ; \ | |
1086bc09 | 1009 | (cd ./$$i && \ |
e393202e NN |
1010 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1011 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 1012 | "RANLIB=$${RANLIB}" \ |
e393202e | 1013 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
1014 | maintainer-clean) \ |
1015 | || exit 1; \ | |
e393202e NN |
1016 | else true; fi; \ |
1017 | done | |
1018 | # Break into two pieces | |
1019 | r=`${PWD}`; export r; \ | |
1020 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1021 | $(SET_LIB_PATH) \ | |
1022 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
1023 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
1024 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
1025 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1026 | done; \ | |
1086bc09 | 1027 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
1028 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1029 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 1030 | "RANLIB=$${RANLIB}" \ |
e393202e | 1031 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
1032 | maintainer-clean) \ |
1033 | || exit 1; \ | |
e393202e NN |
1034 | else true; fi; \ |
1035 | done | |
1036 | ||
1037 | .PHONY: do-TAGS | |
1038 | do-TAGS: | |
1039 | @r=`${PWD}`; export r; \ | |
1040 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1041 | $(SET_LIB_PATH) \ | |
1042 | for i in $(SUBDIRS) -dummy-; do \ | |
1043 | if [ -f ./$$i/Makefile ]; then \ | |
1044 | case $$i in \ | |
1045 | gcc) \ | |
1046 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
1047 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1048 | done; \ | |
1049 | ;; \ | |
1050 | *) \ | |
1051 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
1052 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1053 | done; \ | |
1054 | ;; \ | |
1055 | esac ; \ | |
1086bc09 | 1056 | (cd ./$$i && \ |
e393202e NN |
1057 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1058 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 1059 | "RANLIB=$${RANLIB}" \ |
e393202e | 1060 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
1061 | TAGS) \ |
1062 | || exit 1; \ | |
e393202e NN |
1063 | else true; fi; \ |
1064 | done | |
1065 | # Break into two pieces | |
1066 | r=`${PWD}`; export r; \ | |
1067 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1068 | $(SET_LIB_PATH) \ | |
1069 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
1070 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
1071 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
1072 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ | |
1073 | done; \ | |
1086bc09 | 1074 | (cd $(TARGET_SUBDIR)/$$i && \ |
e393202e NN |
1075 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ |
1076 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
b9459e83 | 1077 | "RANLIB=$${RANLIB}" \ |
e393202e | 1078 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
1086bc09 NN |
1079 | TAGS) \ |
1080 | || exit 1; \ | |
e393202e NN |
1081 | else true; fi; \ |
1082 | done | |
1083 | ||
1084 | ||
1085 | ||
1086 | # Here are the targets which correspond to the do-X targets. | |
1087 | ||
1088 | .PHONY: info installcheck dvi install-info | |
1089 | .PHONY: clean distclean mostlyclean maintainer-clean realclean | |
1090 | .PHONY: local-clean local-distclean local-maintainer-clean | |
1091 | info: do-info | |
1092 | installcheck: do-installcheck | |
1093 | dvi: do-dvi | |
1094 | ||
43d92c63 NN |
1095 | # Make sure makeinfo is built before we do a `make info', if we're |
1096 | # in fact building texinfo. | |
1097 | do-info: maybe-all-texinfo | |
e393202e NN |
1098 | |
1099 | install-info: do-install-info dir.info | |
1100 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1101 | if [ -f dir.info ] ; then \ | |
497f816e | 1102 | $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \ |
e393202e NN |
1103 | else true ; fi |
1104 | ||
1105 | local-clean: | |
1106 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log | |
1107 | ||
1108 | local-distclean: | |
252b5132 | 1109 | -rm -f Makefile config.status config.cache mh-frag mt-frag |
e6bfb94a | 1110 | -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp |
252b5132 RH |
1111 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1112 | rm -rf $(TARGET_SUBDIR); \ | |
1113 | else true; fi | |
75205f78 DD |
1114 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1115 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
1116 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null | |
1117 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
1118 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null | |
252b5132 RH |
1119 | |
1120 | local-maintainer-clean: | |
1121 | @echo "This command is intended for maintainers to use;" | |
1122 | @echo "it deletes files that may require special tools to rebuild." | |
1123 | ||
1124 | clean: do-clean local-clean | |
1125 | mostlyclean: do-mostlyclean local-clean | |
1126 | distclean: do-distclean local-clean local-distclean | |
1127 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1128 | maintainer-clean: local-distclean | |
1129 | realclean: maintainer-clean | |
1130 | ||
1131 | # This rule is used to clean specific modules. | |
1132 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | |
1133 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | |
1134 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | |
1135 | if [ -f ./$${dir}/Makefile ] ; then \ | |
d5de0a84 NC |
1136 | r=`${PWD}`; export r; \ |
1137 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 1138 | $(SET_LIB_PATH) \ |
1086bc09 | 1139 | (cd $${dir} && $(MAKE) $(FLAGS_TO_PASS) clean); \ |
252b5132 RH |
1140 | else \ |
1141 | true; \ | |
1142 | fi | |
1143 | ||
1144 | .PHONY: $(CLEAN_TARGET_MODULES) | |
1145 | $(CLEAN_TARGET_MODULES): | |
1146 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | |
1147 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1148 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
d5de0a84 NC |
1149 | r=`${PWD}`; export r; \ |
1150 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 1151 | $(SET_LIB_PATH) \ |
1086bc09 | 1152 | (cd $(TARGET_SUBDIR)/$${dir} && $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ |
252b5132 RH |
1153 | else \ |
1154 | true; \ | |
1155 | fi | |
1156 | ||
5cec67bf AO |
1157 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc |
1158 | clean-target-libgcc: | |
1159 | test ! -d gcc/libgcc || \ | |
1160 | (cd gcc/libgcc && find . -type d -print) | \ | |
1161 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | |
1162 | -rm -rf gcc/libgcc | |
252b5132 RH |
1163 | |
1164 | # Check target. | |
1165 | ||
80413487 RH |
1166 | .PHONY: check do-check |
1167 | check: | |
1168 | $(MAKE) do-check NOTPARALLEL=parallel-ok | |
1169 | ||
3866be5d NN |
1170 | # Only include modules actually being configured and built. |
1171 | do-check: @check_host_modules@ \ | |
1172 | @check_target_modules@ | |
252b5132 RH |
1173 | |
1174 | # Automated reporting of test results. | |
1175 | ||
1176 | warning.log: build.log | |
1177 | $(srcdir)/contrib/warn_summary build.log > $@ | |
1178 | ||
1179 | mail-report.log: | |
1180 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1181 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1182 | fi; \ | |
1183 | $(srcdir)/contrib/test_summary -t >$@ | |
1184 | chmod +x $@ | |
1185 | echo If you really want to send e-mail, run ./$@ now | |
1186 | ||
1187 | mail-report-with-warnings.log: warning.log | |
1188 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1189 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1190 | fi; \ | |
1191 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1192 | chmod +x $@ | |
1193 | echo If you really want to send e-mail, run ./$@ now | |
1194 | ||
1195 | # Installation targets. | |
1196 | ||
ae831be5 | 1197 | .PHONY: install uninstall |
3866be5d NN |
1198 | install: installdirs @install_host_modules@ @install_target_modules@ |
1199 | ||
1200 | install-target: @install_target_modules@ | |
252b5132 RH |
1201 | |
1202 | uninstall: | |
1203 | @echo "the uninstall target is not supported in this tree" | |
1204 | ||
3866be5d NN |
1205 | .PHONY: install.all |
1206 | install.all: install-no-fixedincludes | |
1207 | @if [ -f ./gcc/Makefile ] ; then \ | |
1208 | r=`${PWD}` ; export r ; \ | |
1209 | $(SET_LIB_PATH) \ | |
1086bc09 | 1210 | (cd ./gcc && \ |
3866be5d NN |
1211 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ |
1212 | else \ | |
1213 | true ; \ | |
1214 | fi | |
1215 | ||
1216 | # install-no-fixedincludes is used because Cygnus can not distribute | |
1217 | # the fixed header files. | |
1218 | .PHONY: install-no-fixedincludes | |
1219 | install-no-fixedincludes: installdirs @install_host_modules_nogcc@ \ | |
1220 | @install_target_modules@ gcc-no-fixedincludes | |
1221 | ||
15723a45 | 1222 | ### other supporting targets |
3866be5d | 1223 | |
15723a45 NN |
1224 | MAKEDIRS= \ |
1225 | $(DESTDIR)$(prefix) \ | |
1226 | $(DESTDIR)$(exec_prefix) | |
1227 | .PHONY: installdirs | |
1228 | installdirs: mkinstalldirs | |
1229 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
3866be5d | 1230 | |
15723a45 NN |
1231 | dir.info: do-install-info |
1232 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
497f816e | 1233 | $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ |
15723a45 NN |
1234 | mv -f dir.info.new dir.info ; \ |
1235 | else true ; \ | |
3866be5d NN |
1236 | fi |
1237 | ||
15723a45 NN |
1238 | dist: |
1239 | @echo "Building a full distribution of this tree isn't done" | |
1240 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1241 | ||
1242 | etags tags: TAGS | |
1243 | ||
1244 | # Right now this just builds TAGS in each subdirectory. emacs19 has the | |
1245 | # ability to use several tags files at once, so there is probably no need | |
1246 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
1247 | # (if we felt like it) have this Makefile write a piece of elisp which | |
1248 | # the user could load to tell emacs19 where all the TAGS files we just | |
1249 | # built are. | |
1250 | TAGS: do-TAGS | |
1251 | ||
15723a45 NN |
1252 | # -------------------------------------- |
1253 | # Modules which run on the build machine | |
1254 | # -------------------------------------- | |
1255 | ||
930314a4 NN |
1256 | .PHONY: configure-build-libiberty maybe-configure-build-libiberty |
1257 | maybe-configure-build-libiberty: | |
e6bfb94a AO |
1258 | configure-build-libiberty: |
1259 | @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \ | |
bba45b8b NN |
1260 | [ -d $(BUILD_SUBDIR)/libiberty ] || \ |
1261 | mkdir $(BUILD_SUBDIR)/libiberty;\ | |
1262 | r=`${PWD}`; export r; \ | |
1263 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1264 | AR="$(AR_FOR_BUILD)"; export AR; \ | |
1265 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
1266 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
1267 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
1268 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
1269 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
1270 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
1271 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
1272 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
1273 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
1274 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
1275 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
1276 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | |
1277 | echo Configuring in $(BUILD_SUBDIR)/libiberty; \ | |
1278 | cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \ | |
1279 | case $(srcdir) in \ | |
1280 | /* | [A-Za-z]:[\\/]*) \ | |
1281 | topdir=$(srcdir) ;; \ | |
1282 | *) \ | |
1283 | case "$(BUILD_SUBDIR)" in \ | |
3866be5d NN |
1284 | .) topdir="../$(srcdir)" ;; \ |
1285 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
1286 | esac ;; \ |
1287 | esac; \ | |
1288 | if [ "$(srcdir)" = "." ] ; then \ | |
1289 | if [ "$(BUILD_SUBDIR)" != "." ] ; then \ | |
1290 | if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \ | |
1291 | if [ -f Makefile ]; then \ | |
1292 | if $(MAKE) distclean; then \ | |
1293 | true; \ | |
1294 | else \ | |
1295 | exit 1; \ | |
1296 | fi; \ | |
3866be5d | 1297 | else \ |
bba45b8b | 1298 | true; \ |
3866be5d | 1299 | fi; \ |
3866be5d | 1300 | else \ |
bba45b8b | 1301 | exit 1; \ |
3866be5d | 1302 | fi; \ |
bba45b8b NN |
1303 | else \ |
1304 | true; \ | |
1305 | fi; \ | |
1306 | srcdiroption="--srcdir=."; \ | |
1307 | libsrcdir="."; \ | |
1308 | else \ | |
1309 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
1310 | libsrcdir="$$s/libiberty"; \ | |
1311 | fi; \ | |
1312 | rm -f no-such-file || : ; \ | |
1313 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
1314 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1315 | --with-build-subdir="$(BUILD_SUBDIR)" \ | |
1316 | || exit 1 | |
15723a45 NN |
1317 | |
1318 | .PHONY: all-build-libiberty maybe-all-build-libiberty | |
1319 | maybe-all-build-libiberty: | |
1320 | all-build-libiberty: configure-build-libiberty | |
1321 | @r=`${PWD}`; export r; \ | |
bba45b8b NN |
1322 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1323 | (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all) | |
3866be5d NN |
1324 | |
1325 | ||
15723a45 NN |
1326 | # -------------------------------------- |
1327 | # Modules which run on the host machine | |
1328 | # -------------------------------------- | |
3866be5d | 1329 | |
e2b9e2dc NN |
1330 | .PHONY: configure-ash maybe-configure-ash |
1331 | maybe-configure-ash: | |
e6bfb94a AO |
1332 | configure-ash: |
1333 | @test ! -f ash/Makefile || exit 0; \ | |
1334 | [ -d ash ] || mkdir ash; \ | |
e2b9e2dc NN |
1335 | r=`${PWD}`; export r; \ |
1336 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1337 | CC="$(CC)"; export CC; \ | |
1338 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1339 | CXX="$(CXX)"; export CXX; \ | |
1340 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1341 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1342 | AR="$(AR)"; export AR; \ | |
1343 | AS="$(AS)"; export AS; \ | |
1344 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1345 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1346 | LD="$(LD)"; export LD; \ | |
1347 | NM="$(NM)"; export NM; \ | |
1348 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1349 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1350 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1351 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1352 | fi; \ | |
1353 | echo Configuring in ash; \ | |
1354 | cd ash || exit 1; \ | |
1355 | case $(srcdir) in \ | |
1356 | \.) \ | |
1357 | srcdiroption="--srcdir=."; \ | |
1358 | libsrcdir=".";; \ | |
1359 | /* | [A-Za-z]:[\\/]*) \ | |
1360 | srcdiroption="--srcdir=$(srcdir)/ash"; \ | |
1361 | libsrcdir="$$s/ash";; \ | |
1362 | *) \ | |
1363 | srcdiroption="--srcdir=../$(srcdir)/ash"; \ | |
1364 | libsrcdir="$$s/ash";; \ | |
1365 | esac; \ | |
1366 | $(SHELL) $${libsrcdir}/configure \ | |
1367 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1368 | || exit 1 | |
1369 | ||
930314a4 NN |
1370 | .PHONY: all-ash maybe-all-ash |
1371 | maybe-all-ash: | |
db1ac78d | 1372 | all-ash: configure-ash |
930314a4 | 1373 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1374 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1375 | $(SET_LIB_PATH) \ | |
1376 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1377 | |
1378 | ||
1379 | .PHONY: check-ash | |
1380 | check-ash: | |
930314a4 | 1381 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1382 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1383 | $(SET_LIB_PATH) \ | |
1384 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1385 | |
1386 | ||
1387 | ||
930314a4 NN |
1388 | .PHONY: install-ash maybe-install-ash |
1389 | maybe-install-ash: | |
3866be5d | 1390 | install-ash: installdirs |
930314a4 | 1391 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1392 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1393 | $(SET_LIB_PATH) \ | |
1394 | (cd ash && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1395 | |
1396 | ||
e2b9e2dc NN |
1397 | .PHONY: configure-autoconf maybe-configure-autoconf |
1398 | maybe-configure-autoconf: | |
e6bfb94a AO |
1399 | configure-autoconf: |
1400 | @test ! -f autoconf/Makefile || exit 0; \ | |
1401 | [ -d autoconf ] || mkdir autoconf; \ | |
e2b9e2dc NN |
1402 | r=`${PWD}`; export r; \ |
1403 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1404 | CC="$(CC)"; export CC; \ | |
1405 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1406 | CXX="$(CXX)"; export CXX; \ | |
1407 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1408 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1409 | AR="$(AR)"; export AR; \ | |
1410 | AS="$(AS)"; export AS; \ | |
1411 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1412 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1413 | LD="$(LD)"; export LD; \ | |
1414 | NM="$(NM)"; export NM; \ | |
1415 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1416 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1417 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1418 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1419 | fi; \ | |
1420 | echo Configuring in autoconf; \ | |
1421 | cd autoconf || exit 1; \ | |
1422 | case $(srcdir) in \ | |
1423 | \.) \ | |
1424 | srcdiroption="--srcdir=."; \ | |
1425 | libsrcdir=".";; \ | |
1426 | /* | [A-Za-z]:[\\/]*) \ | |
1427 | srcdiroption="--srcdir=$(srcdir)/autoconf"; \ | |
1428 | libsrcdir="$$s/autoconf";; \ | |
1429 | *) \ | |
1430 | srcdiroption="--srcdir=../$(srcdir)/autoconf"; \ | |
1431 | libsrcdir="$$s/autoconf";; \ | |
1432 | esac; \ | |
1433 | $(SHELL) $${libsrcdir}/configure \ | |
1434 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1435 | || exit 1 | |
1436 | ||
930314a4 NN |
1437 | .PHONY: all-autoconf maybe-all-autoconf |
1438 | maybe-all-autoconf: | |
db1ac78d | 1439 | all-autoconf: configure-autoconf |
930314a4 | 1440 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1441 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1442 | $(SET_LIB_PATH) \ | |
1443 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1444 | |
1445 | ||
1446 | .PHONY: check-autoconf | |
1447 | check-autoconf: | |
930314a4 | 1448 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1449 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1450 | $(SET_LIB_PATH) \ | |
1451 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1452 | |
1453 | ||
1454 | ||
930314a4 NN |
1455 | .PHONY: install-autoconf maybe-install-autoconf |
1456 | maybe-install-autoconf: | |
3866be5d | 1457 | install-autoconf: installdirs |
930314a4 | 1458 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1459 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1460 | $(SET_LIB_PATH) \ | |
1461 | (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1462 | |
1463 | ||
e2b9e2dc NN |
1464 | .PHONY: configure-automake maybe-configure-automake |
1465 | maybe-configure-automake: | |
e6bfb94a AO |
1466 | configure-automake: |
1467 | @test ! -f automake/Makefile || exit 0; \ | |
1468 | [ -d automake ] || mkdir automake; \ | |
e2b9e2dc NN |
1469 | r=`${PWD}`; export r; \ |
1470 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1471 | CC="$(CC)"; export CC; \ | |
1472 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1473 | CXX="$(CXX)"; export CXX; \ | |
1474 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1475 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1476 | AR="$(AR)"; export AR; \ | |
1477 | AS="$(AS)"; export AS; \ | |
1478 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1479 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1480 | LD="$(LD)"; export LD; \ | |
1481 | NM="$(NM)"; export NM; \ | |
1482 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1483 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1484 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1485 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1486 | fi; \ | |
1487 | echo Configuring in automake; \ | |
1488 | cd automake || exit 1; \ | |
1489 | case $(srcdir) in \ | |
1490 | \.) \ | |
1491 | srcdiroption="--srcdir=."; \ | |
1492 | libsrcdir=".";; \ | |
1493 | /* | [A-Za-z]:[\\/]*) \ | |
1494 | srcdiroption="--srcdir=$(srcdir)/automake"; \ | |
1495 | libsrcdir="$$s/automake";; \ | |
1496 | *) \ | |
1497 | srcdiroption="--srcdir=../$(srcdir)/automake"; \ | |
1498 | libsrcdir="$$s/automake";; \ | |
1499 | esac; \ | |
1500 | $(SHELL) $${libsrcdir}/configure \ | |
1501 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1502 | || exit 1 | |
1503 | ||
930314a4 NN |
1504 | .PHONY: all-automake maybe-all-automake |
1505 | maybe-all-automake: | |
db1ac78d | 1506 | all-automake: configure-automake |
930314a4 | 1507 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1508 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1509 | $(SET_LIB_PATH) \ | |
1510 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1511 | |
1512 | ||
1513 | .PHONY: check-automake | |
1514 | check-automake: | |
930314a4 | 1515 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1516 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1517 | $(SET_LIB_PATH) \ | |
1518 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1519 | |
1520 | ||
1521 | ||
930314a4 NN |
1522 | .PHONY: install-automake maybe-install-automake |
1523 | maybe-install-automake: | |
3866be5d | 1524 | install-automake: installdirs |
930314a4 | 1525 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1526 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1527 | $(SET_LIB_PATH) \ | |
1528 | (cd automake && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1529 | |
1530 | ||
e2b9e2dc NN |
1531 | .PHONY: configure-bash maybe-configure-bash |
1532 | maybe-configure-bash: | |
e6bfb94a AO |
1533 | configure-bash: |
1534 | @test ! -f bash/Makefile || exit 0; \ | |
1535 | [ -d bash ] || mkdir bash; \ | |
e2b9e2dc NN |
1536 | r=`${PWD}`; export r; \ |
1537 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1538 | CC="$(CC)"; export CC; \ | |
1539 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1540 | CXX="$(CXX)"; export CXX; \ | |
1541 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1542 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1543 | AR="$(AR)"; export AR; \ | |
1544 | AS="$(AS)"; export AS; \ | |
1545 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1546 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1547 | LD="$(LD)"; export LD; \ | |
1548 | NM="$(NM)"; export NM; \ | |
1549 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1550 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1551 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1552 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1553 | fi; \ | |
1554 | echo Configuring in bash; \ | |
1555 | cd bash || exit 1; \ | |
1556 | case $(srcdir) in \ | |
1557 | \.) \ | |
1558 | srcdiroption="--srcdir=."; \ | |
1559 | libsrcdir=".";; \ | |
1560 | /* | [A-Za-z]:[\\/]*) \ | |
1561 | srcdiroption="--srcdir=$(srcdir)/bash"; \ | |
1562 | libsrcdir="$$s/bash";; \ | |
1563 | *) \ | |
1564 | srcdiroption="--srcdir=../$(srcdir)/bash"; \ | |
1565 | libsrcdir="$$s/bash";; \ | |
1566 | esac; \ | |
1567 | $(SHELL) $${libsrcdir}/configure \ | |
1568 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1569 | || exit 1 | |
1570 | ||
930314a4 NN |
1571 | .PHONY: all-bash maybe-all-bash |
1572 | maybe-all-bash: | |
db1ac78d | 1573 | all-bash: configure-bash |
930314a4 | 1574 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1575 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1576 | $(SET_LIB_PATH) \ | |
1577 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1578 | |
1579 | ||
1580 | .PHONY: check-bash | |
1581 | check-bash: | |
930314a4 | 1582 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1583 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1584 | $(SET_LIB_PATH) \ | |
1585 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1586 | |
1587 | ||
1588 | ||
930314a4 NN |
1589 | .PHONY: install-bash maybe-install-bash |
1590 | maybe-install-bash: | |
3866be5d | 1591 | install-bash: installdirs |
930314a4 | 1592 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1593 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1594 | $(SET_LIB_PATH) \ | |
1595 | (cd bash && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1596 | |
1597 | ||
e2b9e2dc NN |
1598 | .PHONY: configure-bfd maybe-configure-bfd |
1599 | maybe-configure-bfd: | |
e6bfb94a AO |
1600 | configure-bfd: |
1601 | @test ! -f bfd/Makefile || exit 0; \ | |
1602 | [ -d bfd ] || mkdir bfd; \ | |
e2b9e2dc NN |
1603 | r=`${PWD}`; export r; \ |
1604 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1605 | CC="$(CC)"; export CC; \ | |
1606 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1607 | CXX="$(CXX)"; export CXX; \ | |
1608 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1609 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1610 | AR="$(AR)"; export AR; \ | |
1611 | AS="$(AS)"; export AS; \ | |
1612 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1613 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1614 | LD="$(LD)"; export LD; \ | |
1615 | NM="$(NM)"; export NM; \ | |
1616 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1617 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1618 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1619 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1620 | fi; \ | |
1621 | echo Configuring in bfd; \ | |
1622 | cd bfd || exit 1; \ | |
1623 | case $(srcdir) in \ | |
1624 | \.) \ | |
1625 | srcdiroption="--srcdir=."; \ | |
1626 | libsrcdir=".";; \ | |
1627 | /* | [A-Za-z]:[\\/]*) \ | |
1628 | srcdiroption="--srcdir=$(srcdir)/bfd"; \ | |
1629 | libsrcdir="$$s/bfd";; \ | |
1630 | *) \ | |
1631 | srcdiroption="--srcdir=../$(srcdir)/bfd"; \ | |
1632 | libsrcdir="$$s/bfd";; \ | |
1633 | esac; \ | |
1634 | $(SHELL) $${libsrcdir}/configure \ | |
1635 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1636 | || exit 1 | |
1637 | ||
930314a4 NN |
1638 | .PHONY: all-bfd maybe-all-bfd |
1639 | maybe-all-bfd: | |
db1ac78d | 1640 | all-bfd: configure-bfd |
930314a4 | 1641 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1642 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1643 | $(SET_LIB_PATH) \ | |
1644 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1645 | |
1646 | ||
1647 | .PHONY: check-bfd | |
1648 | check-bfd: | |
930314a4 | 1649 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1650 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1651 | $(SET_LIB_PATH) \ | |
1652 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1653 | |
1654 | ||
1655 | ||
930314a4 NN |
1656 | .PHONY: install-bfd maybe-install-bfd |
1657 | maybe-install-bfd: | |
3866be5d | 1658 | install-bfd: installdirs |
930314a4 | 1659 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1660 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1661 | $(SET_LIB_PATH) \ | |
1662 | (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1663 | |
1664 | ||
e2b9e2dc NN |
1665 | .PHONY: configure-opcodes maybe-configure-opcodes |
1666 | maybe-configure-opcodes: | |
e6bfb94a AO |
1667 | configure-opcodes: |
1668 | @test ! -f opcodes/Makefile || exit 0; \ | |
1669 | [ -d opcodes ] || mkdir opcodes; \ | |
e2b9e2dc NN |
1670 | r=`${PWD}`; export r; \ |
1671 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1672 | CC="$(CC)"; export CC; \ | |
1673 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1674 | CXX="$(CXX)"; export CXX; \ | |
1675 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1676 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1677 | AR="$(AR)"; export AR; \ | |
1678 | AS="$(AS)"; export AS; \ | |
1679 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1680 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1681 | LD="$(LD)"; export LD; \ | |
1682 | NM="$(NM)"; export NM; \ | |
1683 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1684 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1685 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1686 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1687 | fi; \ | |
1688 | echo Configuring in opcodes; \ | |
1689 | cd opcodes || exit 1; \ | |
1690 | case $(srcdir) in \ | |
1691 | \.) \ | |
1692 | srcdiroption="--srcdir=."; \ | |
1693 | libsrcdir=".";; \ | |
1694 | /* | [A-Za-z]:[\\/]*) \ | |
1695 | srcdiroption="--srcdir=$(srcdir)/opcodes"; \ | |
1696 | libsrcdir="$$s/opcodes";; \ | |
1697 | *) \ | |
1698 | srcdiroption="--srcdir=../$(srcdir)/opcodes"; \ | |
1699 | libsrcdir="$$s/opcodes";; \ | |
1700 | esac; \ | |
1701 | $(SHELL) $${libsrcdir}/configure \ | |
1702 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1703 | || exit 1 | |
1704 | ||
930314a4 NN |
1705 | .PHONY: all-opcodes maybe-all-opcodes |
1706 | maybe-all-opcodes: | |
db1ac78d | 1707 | all-opcodes: configure-opcodes |
930314a4 | 1708 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1709 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1710 | $(SET_LIB_PATH) \ | |
1711 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1712 | |
1713 | ||
1714 | .PHONY: check-opcodes | |
1715 | check-opcodes: | |
930314a4 | 1716 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1717 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1718 | $(SET_LIB_PATH) \ | |
1719 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1720 | |
1721 | ||
1722 | ||
930314a4 NN |
1723 | .PHONY: install-opcodes maybe-install-opcodes |
1724 | maybe-install-opcodes: | |
3866be5d | 1725 | install-opcodes: installdirs |
930314a4 | 1726 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1727 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1728 | $(SET_LIB_PATH) \ | |
1729 | (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1730 | |
1731 | ||
e2b9e2dc NN |
1732 | .PHONY: configure-binutils maybe-configure-binutils |
1733 | maybe-configure-binutils: | |
e6bfb94a AO |
1734 | configure-binutils: |
1735 | @test ! -f binutils/Makefile || exit 0; \ | |
1736 | [ -d binutils ] || mkdir binutils; \ | |
e2b9e2dc NN |
1737 | r=`${PWD}`; export r; \ |
1738 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1739 | CC="$(CC)"; export CC; \ | |
1740 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1741 | CXX="$(CXX)"; export CXX; \ | |
1742 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1743 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1744 | AR="$(AR)"; export AR; \ | |
1745 | AS="$(AS)"; export AS; \ | |
1746 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1747 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1748 | LD="$(LD)"; export LD; \ | |
1749 | NM="$(NM)"; export NM; \ | |
1750 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1751 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1752 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1753 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1754 | fi; \ | |
1755 | echo Configuring in binutils; \ | |
1756 | cd binutils || exit 1; \ | |
1757 | case $(srcdir) in \ | |
1758 | \.) \ | |
1759 | srcdiroption="--srcdir=."; \ | |
1760 | libsrcdir=".";; \ | |
1761 | /* | [A-Za-z]:[\\/]*) \ | |
1762 | srcdiroption="--srcdir=$(srcdir)/binutils"; \ | |
1763 | libsrcdir="$$s/binutils";; \ | |
1764 | *) \ | |
1765 | srcdiroption="--srcdir=../$(srcdir)/binutils"; \ | |
1766 | libsrcdir="$$s/binutils";; \ | |
1767 | esac; \ | |
1768 | $(SHELL) $${libsrcdir}/configure \ | |
1769 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1770 | || exit 1 | |
1771 | ||
930314a4 NN |
1772 | .PHONY: all-binutils maybe-all-binutils |
1773 | maybe-all-binutils: | |
db1ac78d | 1774 | all-binutils: configure-binutils |
930314a4 | 1775 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1776 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1777 | $(SET_LIB_PATH) \ | |
1778 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1779 | |
1780 | ||
1781 | .PHONY: check-binutils | |
1782 | check-binutils: | |
930314a4 | 1783 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1784 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1785 | $(SET_LIB_PATH) \ | |
1786 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1787 | |
1788 | ||
1789 | ||
930314a4 NN |
1790 | .PHONY: install-binutils maybe-install-binutils |
1791 | maybe-install-binutils: | |
3866be5d | 1792 | install-binutils: installdirs |
930314a4 | 1793 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1794 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1795 | $(SET_LIB_PATH) \ | |
1796 | (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1797 | |
1798 | ||
e2b9e2dc NN |
1799 | .PHONY: configure-bison maybe-configure-bison |
1800 | maybe-configure-bison: | |
e6bfb94a AO |
1801 | configure-bison: |
1802 | @test ! -f bison/Makefile || exit 0; \ | |
1803 | [ -d bison ] || mkdir bison; \ | |
e2b9e2dc NN |
1804 | r=`${PWD}`; export r; \ |
1805 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1806 | CC="$(CC)"; export CC; \ | |
1807 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1808 | CXX="$(CXX)"; export CXX; \ | |
1809 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1810 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1811 | AR="$(AR)"; export AR; \ | |
1812 | AS="$(AS)"; export AS; \ | |
1813 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1814 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1815 | LD="$(LD)"; export LD; \ | |
1816 | NM="$(NM)"; export NM; \ | |
1817 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1818 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1819 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1820 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1821 | fi; \ | |
1822 | echo Configuring in bison; \ | |
1823 | cd bison || exit 1; \ | |
1824 | case $(srcdir) in \ | |
1825 | \.) \ | |
1826 | srcdiroption="--srcdir=."; \ | |
1827 | libsrcdir=".";; \ | |
1828 | /* | [A-Za-z]:[\\/]*) \ | |
1829 | srcdiroption="--srcdir=$(srcdir)/bison"; \ | |
1830 | libsrcdir="$$s/bison";; \ | |
1831 | *) \ | |
1832 | srcdiroption="--srcdir=../$(srcdir)/bison"; \ | |
1833 | libsrcdir="$$s/bison";; \ | |
1834 | esac; \ | |
1835 | $(SHELL) $${libsrcdir}/configure \ | |
1836 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1837 | || exit 1 | |
1838 | ||
930314a4 NN |
1839 | .PHONY: all-bison maybe-all-bison |
1840 | maybe-all-bison: | |
db1ac78d | 1841 | all-bison: configure-bison |
930314a4 | 1842 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1843 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1844 | $(SET_LIB_PATH) \ | |
1845 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1846 | |
1847 | ||
1848 | .PHONY: check-bison | |
1849 | # This module is only tested in a native toolchain. | |
1850 | check-bison: | |
1851 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
bba45b8b NN |
1852 | r=`${PWD}`; export r; \ |
1853 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1854 | $(SET_LIB_PATH) \ | |
1855 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \ | |
3866be5d NN |
1856 | fi |
1857 | ||
1858 | ||
1859 | ||
930314a4 NN |
1860 | .PHONY: install-bison maybe-install-bison |
1861 | maybe-install-bison: | |
3866be5d | 1862 | install-bison: installdirs |
930314a4 | 1863 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1864 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1865 | $(SET_LIB_PATH) \ | |
1866 | (cd bison && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1867 | |
1868 | ||
e2b9e2dc NN |
1869 | .PHONY: configure-byacc maybe-configure-byacc |
1870 | maybe-configure-byacc: | |
e6bfb94a AO |
1871 | configure-byacc: |
1872 | @test ! -f byacc/Makefile || exit 0; \ | |
1873 | [ -d byacc ] || mkdir byacc; \ | |
e2b9e2dc NN |
1874 | r=`${PWD}`; export r; \ |
1875 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1876 | CC="$(CC)"; export CC; \ | |
1877 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1878 | CXX="$(CXX)"; export CXX; \ | |
1879 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1880 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1881 | AR="$(AR)"; export AR; \ | |
1882 | AS="$(AS)"; export AS; \ | |
1883 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1884 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1885 | LD="$(LD)"; export LD; \ | |
1886 | NM="$(NM)"; export NM; \ | |
1887 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1888 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1889 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1890 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1891 | fi; \ | |
1892 | echo Configuring in byacc; \ | |
1893 | cd byacc || exit 1; \ | |
1894 | case $(srcdir) in \ | |
1895 | \.) \ | |
1896 | srcdiroption="--srcdir=."; \ | |
1897 | libsrcdir=".";; \ | |
1898 | /* | [A-Za-z]:[\\/]*) \ | |
1899 | srcdiroption="--srcdir=$(srcdir)/byacc"; \ | |
1900 | libsrcdir="$$s/byacc";; \ | |
1901 | *) \ | |
1902 | srcdiroption="--srcdir=../$(srcdir)/byacc"; \ | |
1903 | libsrcdir="$$s/byacc";; \ | |
1904 | esac; \ | |
1905 | $(SHELL) $${libsrcdir}/configure \ | |
1906 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1907 | || exit 1 | |
1908 | ||
930314a4 NN |
1909 | .PHONY: all-byacc maybe-all-byacc |
1910 | maybe-all-byacc: | |
db1ac78d | 1911 | all-byacc: configure-byacc |
930314a4 | 1912 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1913 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1914 | $(SET_LIB_PATH) \ | |
1915 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1916 | |
1917 | ||
1918 | .PHONY: check-byacc | |
1919 | # This module is only tested in a native toolchain. | |
1920 | check-byacc: | |
1921 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
bba45b8b NN |
1922 | r=`${PWD}`; export r; \ |
1923 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1924 | $(SET_LIB_PATH) \ | |
1925 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) check); \ | |
3866be5d NN |
1926 | fi |
1927 | ||
1928 | ||
1929 | ||
930314a4 NN |
1930 | .PHONY: install-byacc maybe-install-byacc |
1931 | maybe-install-byacc: | |
3866be5d | 1932 | install-byacc: installdirs |
930314a4 | 1933 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1934 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1935 | $(SET_LIB_PATH) \ | |
1936 | (cd byacc && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
1937 | |
1938 | ||
e2b9e2dc NN |
1939 | .PHONY: configure-bzip2 maybe-configure-bzip2 |
1940 | maybe-configure-bzip2: | |
e6bfb94a AO |
1941 | configure-bzip2: |
1942 | @test ! -f bzip2/Makefile || exit 0; \ | |
1943 | [ -d bzip2 ] || mkdir bzip2; \ | |
e2b9e2dc NN |
1944 | r=`${PWD}`; export r; \ |
1945 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
1946 | CC="$(CC)"; export CC; \ | |
1947 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
1948 | CXX="$(CXX)"; export CXX; \ | |
1949 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
1950 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
1951 | AR="$(AR)"; export AR; \ | |
1952 | AS="$(AS)"; export AS; \ | |
1953 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
1954 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
1955 | LD="$(LD)"; export LD; \ | |
1956 | NM="$(NM)"; export NM; \ | |
1957 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
1958 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
1959 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
1960 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
1961 | fi; \ | |
1962 | echo Configuring in bzip2; \ | |
1963 | cd bzip2 || exit 1; \ | |
1964 | case $(srcdir) in \ | |
1965 | \.) \ | |
1966 | srcdiroption="--srcdir=."; \ | |
1967 | libsrcdir=".";; \ | |
1968 | /* | [A-Za-z]:[\\/]*) \ | |
1969 | srcdiroption="--srcdir=$(srcdir)/bzip2"; \ | |
1970 | libsrcdir="$$s/bzip2";; \ | |
1971 | *) \ | |
1972 | srcdiroption="--srcdir=../$(srcdir)/bzip2"; \ | |
1973 | libsrcdir="$$s/bzip2";; \ | |
1974 | esac; \ | |
1975 | $(SHELL) $${libsrcdir}/configure \ | |
1976 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
1977 | || exit 1 | |
1978 | ||
930314a4 NN |
1979 | .PHONY: all-bzip2 maybe-all-bzip2 |
1980 | maybe-all-bzip2: | |
db1ac78d | 1981 | all-bzip2: configure-bzip2 |
930314a4 | 1982 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1983 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1984 | $(SET_LIB_PATH) \ | |
1985 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
1986 | |
1987 | ||
1988 | .PHONY: check-bzip2 | |
1989 | check-bzip2: | |
930314a4 | 1990 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
1991 | s=`cd $(srcdir); ${PWD}`; export s; \ |
1992 | $(SET_LIB_PATH) \ | |
1993 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
1994 | |
1995 | ||
1996 | ||
930314a4 NN |
1997 | .PHONY: install-bzip2 maybe-install-bzip2 |
1998 | maybe-install-bzip2: | |
3866be5d | 1999 | install-bzip2: installdirs |
930314a4 | 2000 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2001 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2002 | $(SET_LIB_PATH) \ | |
2003 | (cd bzip2 && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2004 | |
2005 | ||
e2b9e2dc NN |
2006 | .PHONY: configure-dejagnu maybe-configure-dejagnu |
2007 | maybe-configure-dejagnu: | |
e6bfb94a AO |
2008 | configure-dejagnu: |
2009 | @test ! -f dejagnu/Makefile || exit 0; \ | |
2010 | [ -d dejagnu ] || mkdir dejagnu; \ | |
e2b9e2dc NN |
2011 | r=`${PWD}`; export r; \ |
2012 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2013 | CC="$(CC)"; export CC; \ | |
2014 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2015 | CXX="$(CXX)"; export CXX; \ | |
2016 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2017 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2018 | AR="$(AR)"; export AR; \ | |
2019 | AS="$(AS)"; export AS; \ | |
2020 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2021 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2022 | LD="$(LD)"; export LD; \ | |
2023 | NM="$(NM)"; export NM; \ | |
2024 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2025 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2026 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2027 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2028 | fi; \ | |
2029 | echo Configuring in dejagnu; \ | |
2030 | cd dejagnu || exit 1; \ | |
2031 | case $(srcdir) in \ | |
2032 | \.) \ | |
2033 | srcdiroption="--srcdir=."; \ | |
2034 | libsrcdir=".";; \ | |
2035 | /* | [A-Za-z]:[\\/]*) \ | |
2036 | srcdiroption="--srcdir=$(srcdir)/dejagnu"; \ | |
2037 | libsrcdir="$$s/dejagnu";; \ | |
2038 | *) \ | |
2039 | srcdiroption="--srcdir=../$(srcdir)/dejagnu"; \ | |
2040 | libsrcdir="$$s/dejagnu";; \ | |
2041 | esac; \ | |
2042 | $(SHELL) $${libsrcdir}/configure \ | |
2043 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2044 | || exit 1 | |
2045 | ||
930314a4 NN |
2046 | .PHONY: all-dejagnu maybe-all-dejagnu |
2047 | maybe-all-dejagnu: | |
db1ac78d | 2048 | all-dejagnu: configure-dejagnu |
930314a4 | 2049 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2050 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2051 | $(SET_LIB_PATH) \ | |
2052 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2053 | |
2054 | ||
2055 | .PHONY: check-dejagnu | |
2056 | check-dejagnu: | |
930314a4 | 2057 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2058 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2059 | $(SET_LIB_PATH) \ | |
2060 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2061 | |
2062 | ||
2063 | ||
930314a4 NN |
2064 | .PHONY: install-dejagnu maybe-install-dejagnu |
2065 | maybe-install-dejagnu: | |
3866be5d | 2066 | install-dejagnu: installdirs |
930314a4 | 2067 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2068 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2069 | $(SET_LIB_PATH) \ | |
2070 | (cd dejagnu && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2071 | |
2072 | ||
e2b9e2dc NN |
2073 | .PHONY: configure-diff maybe-configure-diff |
2074 | maybe-configure-diff: | |
e6bfb94a AO |
2075 | configure-diff: |
2076 | @test ! -f diff/Makefile || exit 0; \ | |
2077 | [ -d diff ] || mkdir diff; \ | |
e2b9e2dc NN |
2078 | r=`${PWD}`; export r; \ |
2079 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2080 | CC="$(CC)"; export CC; \ | |
2081 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2082 | CXX="$(CXX)"; export CXX; \ | |
2083 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2084 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2085 | AR="$(AR)"; export AR; \ | |
2086 | AS="$(AS)"; export AS; \ | |
2087 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2088 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2089 | LD="$(LD)"; export LD; \ | |
2090 | NM="$(NM)"; export NM; \ | |
2091 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2092 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2093 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2094 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2095 | fi; \ | |
2096 | echo Configuring in diff; \ | |
2097 | cd diff || exit 1; \ | |
2098 | case $(srcdir) in \ | |
2099 | \.) \ | |
2100 | srcdiroption="--srcdir=."; \ | |
2101 | libsrcdir=".";; \ | |
2102 | /* | [A-Za-z]:[\\/]*) \ | |
2103 | srcdiroption="--srcdir=$(srcdir)/diff"; \ | |
2104 | libsrcdir="$$s/diff";; \ | |
2105 | *) \ | |
2106 | srcdiroption="--srcdir=../$(srcdir)/diff"; \ | |
2107 | libsrcdir="$$s/diff";; \ | |
2108 | esac; \ | |
2109 | $(SHELL) $${libsrcdir}/configure \ | |
2110 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2111 | || exit 1 | |
2112 | ||
930314a4 NN |
2113 | .PHONY: all-diff maybe-all-diff |
2114 | maybe-all-diff: | |
db1ac78d | 2115 | all-diff: configure-diff |
930314a4 | 2116 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2117 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2118 | $(SET_LIB_PATH) \ | |
2119 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2120 | |
2121 | ||
2122 | .PHONY: check-diff | |
2123 | check-diff: | |
930314a4 | 2124 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2125 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2126 | $(SET_LIB_PATH) \ | |
2127 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2128 | |
2129 | ||
2130 | ||
930314a4 NN |
2131 | .PHONY: install-diff maybe-install-diff |
2132 | maybe-install-diff: | |
3866be5d | 2133 | install-diff: installdirs |
930314a4 | 2134 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2135 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2136 | $(SET_LIB_PATH) \ | |
2137 | (cd diff && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2138 | |
2139 | ||
e2b9e2dc NN |
2140 | .PHONY: configure-dosutils maybe-configure-dosutils |
2141 | maybe-configure-dosutils: | |
e6bfb94a AO |
2142 | configure-dosutils: |
2143 | @test ! -f dosutils/Makefile || exit 0; \ | |
2144 | [ -d dosutils ] || mkdir dosutils; \ | |
e2b9e2dc NN |
2145 | r=`${PWD}`; export r; \ |
2146 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2147 | CC="$(CC)"; export CC; \ | |
2148 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2149 | CXX="$(CXX)"; export CXX; \ | |
2150 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2151 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2152 | AR="$(AR)"; export AR; \ | |
2153 | AS="$(AS)"; export AS; \ | |
2154 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2155 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2156 | LD="$(LD)"; export LD; \ | |
2157 | NM="$(NM)"; export NM; \ | |
2158 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2159 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2160 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2161 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2162 | fi; \ | |
2163 | echo Configuring in dosutils; \ | |
2164 | cd dosutils || exit 1; \ | |
2165 | case $(srcdir) in \ | |
2166 | \.) \ | |
2167 | srcdiroption="--srcdir=."; \ | |
2168 | libsrcdir=".";; \ | |
2169 | /* | [A-Za-z]:[\\/]*) \ | |
2170 | srcdiroption="--srcdir=$(srcdir)/dosutils"; \ | |
2171 | libsrcdir="$$s/dosutils";; \ | |
2172 | *) \ | |
2173 | srcdiroption="--srcdir=../$(srcdir)/dosutils"; \ | |
2174 | libsrcdir="$$s/dosutils";; \ | |
2175 | esac; \ | |
2176 | $(SHELL) $${libsrcdir}/configure \ | |
2177 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2178 | || exit 1 | |
2179 | ||
930314a4 NN |
2180 | .PHONY: all-dosutils maybe-all-dosutils |
2181 | maybe-all-dosutils: | |
db1ac78d | 2182 | all-dosutils: configure-dosutils |
930314a4 | 2183 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2184 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2185 | $(SET_LIB_PATH) \ | |
2186 | (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2187 | |
2188 | ||
2189 | .PHONY: check-dosutils | |
2190 | check-dosutils: | |
2191 | ||
2192 | ||
2193 | ||
930314a4 NN |
2194 | .PHONY: install-dosutils maybe-install-dosutils |
2195 | maybe-install-dosutils: | |
3866be5d | 2196 | install-dosutils: installdirs |
930314a4 | 2197 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2198 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2199 | $(SET_LIB_PATH) \ | |
2200 | (cd dosutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2201 | |
2202 | ||
e2b9e2dc NN |
2203 | .PHONY: configure-etc maybe-configure-etc |
2204 | maybe-configure-etc: | |
e6bfb94a AO |
2205 | configure-etc: |
2206 | @test ! -f etc/Makefile || exit 0; \ | |
2207 | [ -d etc ] || mkdir etc; \ | |
e2b9e2dc NN |
2208 | r=`${PWD}`; export r; \ |
2209 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2210 | CC="$(CC)"; export CC; \ | |
2211 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2212 | CXX="$(CXX)"; export CXX; \ | |
2213 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2214 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2215 | AR="$(AR)"; export AR; \ | |
2216 | AS="$(AS)"; export AS; \ | |
2217 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2218 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2219 | LD="$(LD)"; export LD; \ | |
2220 | NM="$(NM)"; export NM; \ | |
2221 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2222 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2223 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2224 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2225 | fi; \ | |
2226 | echo Configuring in etc; \ | |
2227 | cd etc || exit 1; \ | |
2228 | case $(srcdir) in \ | |
2229 | \.) \ | |
2230 | srcdiroption="--srcdir=."; \ | |
2231 | libsrcdir=".";; \ | |
2232 | /* | [A-Za-z]:[\\/]*) \ | |
2233 | srcdiroption="--srcdir=$(srcdir)/etc"; \ | |
2234 | libsrcdir="$$s/etc";; \ | |
2235 | *) \ | |
2236 | srcdiroption="--srcdir=../$(srcdir)/etc"; \ | |
2237 | libsrcdir="$$s/etc";; \ | |
2238 | esac; \ | |
2239 | $(SHELL) $${libsrcdir}/configure \ | |
2240 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2241 | || exit 1 | |
2242 | ||
930314a4 NN |
2243 | .PHONY: all-etc maybe-all-etc |
2244 | maybe-all-etc: | |
db1ac78d | 2245 | all-etc: configure-etc |
930314a4 | 2246 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2247 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2248 | $(SET_LIB_PATH) \ | |
2249 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2250 | |
2251 | ||
2252 | .PHONY: check-etc | |
2253 | check-etc: | |
930314a4 | 2254 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2255 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2256 | $(SET_LIB_PATH) \ | |
2257 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2258 | |
2259 | ||
2260 | ||
930314a4 NN |
2261 | .PHONY: install-etc maybe-install-etc |
2262 | maybe-install-etc: | |
3866be5d | 2263 | install-etc: installdirs |
930314a4 | 2264 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2265 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2266 | $(SET_LIB_PATH) \ | |
2267 | (cd etc && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2268 | |
2269 | ||
e2b9e2dc NN |
2270 | .PHONY: configure-fastjar maybe-configure-fastjar |
2271 | maybe-configure-fastjar: | |
e6bfb94a AO |
2272 | configure-fastjar: |
2273 | @test ! -f fastjar/Makefile || exit 0; \ | |
2274 | [ -d fastjar ] || mkdir fastjar; \ | |
e2b9e2dc NN |
2275 | r=`${PWD}`; export r; \ |
2276 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2277 | CC="$(CC)"; export CC; \ | |
2278 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2279 | CXX="$(CXX)"; export CXX; \ | |
2280 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2281 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2282 | AR="$(AR)"; export AR; \ | |
2283 | AS="$(AS)"; export AS; \ | |
2284 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2285 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2286 | LD="$(LD)"; export LD; \ | |
2287 | NM="$(NM)"; export NM; \ | |
2288 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2289 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2290 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2291 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2292 | fi; \ | |
2293 | echo Configuring in fastjar; \ | |
2294 | cd fastjar || exit 1; \ | |
2295 | case $(srcdir) in \ | |
2296 | \.) \ | |
2297 | srcdiroption="--srcdir=."; \ | |
2298 | libsrcdir=".";; \ | |
2299 | /* | [A-Za-z]:[\\/]*) \ | |
2300 | srcdiroption="--srcdir=$(srcdir)/fastjar"; \ | |
2301 | libsrcdir="$$s/fastjar";; \ | |
2302 | *) \ | |
2303 | srcdiroption="--srcdir=../$(srcdir)/fastjar"; \ | |
2304 | libsrcdir="$$s/fastjar";; \ | |
2305 | esac; \ | |
2306 | $(SHELL) $${libsrcdir}/configure \ | |
2307 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2308 | || exit 1 | |
2309 | ||
930314a4 NN |
2310 | .PHONY: all-fastjar maybe-all-fastjar |
2311 | maybe-all-fastjar: | |
db1ac78d | 2312 | all-fastjar: configure-fastjar |
930314a4 | 2313 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2314 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2315 | $(SET_LIB_PATH) \ | |
2316 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2317 | |
2318 | ||
2319 | .PHONY: check-fastjar | |
2320 | # This module is only tested in a native toolchain. | |
2321 | check-fastjar: | |
2322 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
bba45b8b NN |
2323 | r=`${PWD}`; export r; \ |
2324 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2325 | $(SET_LIB_PATH) \ | |
2326 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) check); \ | |
3866be5d NN |
2327 | fi |
2328 | ||
2329 | ||
2330 | ||
930314a4 NN |
2331 | .PHONY: install-fastjar maybe-install-fastjar |
2332 | maybe-install-fastjar: | |
3866be5d | 2333 | install-fastjar: installdirs |
930314a4 | 2334 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2335 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2336 | $(SET_LIB_PATH) \ | |
2337 | (cd fastjar && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2338 | |
2339 | ||
e2b9e2dc NN |
2340 | .PHONY: configure-fileutils maybe-configure-fileutils |
2341 | maybe-configure-fileutils: | |
e6bfb94a AO |
2342 | configure-fileutils: |
2343 | @test ! -f fileutils/Makefile || exit 0; \ | |
2344 | [ -d fileutils ] || mkdir fileutils; \ | |
e2b9e2dc NN |
2345 | r=`${PWD}`; export r; \ |
2346 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2347 | CC="$(CC)"; export CC; \ | |
2348 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2349 | CXX="$(CXX)"; export CXX; \ | |
2350 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2351 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2352 | AR="$(AR)"; export AR; \ | |
2353 | AS="$(AS)"; export AS; \ | |
2354 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2355 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2356 | LD="$(LD)"; export LD; \ | |
2357 | NM="$(NM)"; export NM; \ | |
2358 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2359 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2360 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2361 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2362 | fi; \ | |
2363 | echo Configuring in fileutils; \ | |
2364 | cd fileutils || exit 1; \ | |
2365 | case $(srcdir) in \ | |
2366 | \.) \ | |
2367 | srcdiroption="--srcdir=."; \ | |
2368 | libsrcdir=".";; \ | |
2369 | /* | [A-Za-z]:[\\/]*) \ | |
2370 | srcdiroption="--srcdir=$(srcdir)/fileutils"; \ | |
2371 | libsrcdir="$$s/fileutils";; \ | |
2372 | *) \ | |
2373 | srcdiroption="--srcdir=../$(srcdir)/fileutils"; \ | |
2374 | libsrcdir="$$s/fileutils";; \ | |
2375 | esac; \ | |
2376 | $(SHELL) $${libsrcdir}/configure \ | |
2377 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2378 | || exit 1 | |
2379 | ||
930314a4 NN |
2380 | .PHONY: all-fileutils maybe-all-fileutils |
2381 | maybe-all-fileutils: | |
db1ac78d | 2382 | all-fileutils: configure-fileutils |
930314a4 | 2383 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2384 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2385 | $(SET_LIB_PATH) \ | |
2386 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2387 | |
2388 | ||
2389 | .PHONY: check-fileutils | |
2390 | check-fileutils: | |
930314a4 | 2391 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2392 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2393 | $(SET_LIB_PATH) \ | |
2394 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2395 | |
2396 | ||
2397 | ||
930314a4 NN |
2398 | .PHONY: install-fileutils maybe-install-fileutils |
2399 | maybe-install-fileutils: | |
3866be5d | 2400 | install-fileutils: installdirs |
930314a4 | 2401 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2402 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2403 | $(SET_LIB_PATH) \ | |
2404 | (cd fileutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2405 | |
2406 | ||
e2b9e2dc NN |
2407 | .PHONY: configure-findutils maybe-configure-findutils |
2408 | maybe-configure-findutils: | |
e6bfb94a AO |
2409 | configure-findutils: |
2410 | @test ! -f findutils/Makefile || exit 0; \ | |
2411 | [ -d findutils ] || mkdir findutils; \ | |
e2b9e2dc NN |
2412 | r=`${PWD}`; export r; \ |
2413 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2414 | CC="$(CC)"; export CC; \ | |
2415 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2416 | CXX="$(CXX)"; export CXX; \ | |
2417 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2418 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2419 | AR="$(AR)"; export AR; \ | |
2420 | AS="$(AS)"; export AS; \ | |
2421 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2422 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2423 | LD="$(LD)"; export LD; \ | |
2424 | NM="$(NM)"; export NM; \ | |
2425 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2426 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2427 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2428 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2429 | fi; \ | |
2430 | echo Configuring in findutils; \ | |
2431 | cd findutils || exit 1; \ | |
2432 | case $(srcdir) in \ | |
2433 | \.) \ | |
2434 | srcdiroption="--srcdir=."; \ | |
2435 | libsrcdir=".";; \ | |
2436 | /* | [A-Za-z]:[\\/]*) \ | |
2437 | srcdiroption="--srcdir=$(srcdir)/findutils"; \ | |
2438 | libsrcdir="$$s/findutils";; \ | |
2439 | *) \ | |
2440 | srcdiroption="--srcdir=../$(srcdir)/findutils"; \ | |
2441 | libsrcdir="$$s/findutils";; \ | |
2442 | esac; \ | |
2443 | $(SHELL) $${libsrcdir}/configure \ | |
2444 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2445 | || exit 1 | |
2446 | ||
930314a4 NN |
2447 | .PHONY: all-findutils maybe-all-findutils |
2448 | maybe-all-findutils: | |
db1ac78d | 2449 | all-findutils: configure-findutils |
930314a4 | 2450 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2451 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2452 | $(SET_LIB_PATH) \ | |
2453 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2454 | |
2455 | ||
2456 | .PHONY: check-findutils | |
2457 | check-findutils: | |
930314a4 | 2458 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2459 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2460 | $(SET_LIB_PATH) \ | |
2461 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2462 | |
2463 | ||
2464 | ||
930314a4 NN |
2465 | .PHONY: install-findutils maybe-install-findutils |
2466 | maybe-install-findutils: | |
3866be5d | 2467 | install-findutils: installdirs |
930314a4 | 2468 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2469 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2470 | $(SET_LIB_PATH) \ | |
2471 | (cd findutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2472 | |
2473 | ||
e2b9e2dc NN |
2474 | .PHONY: configure-find maybe-configure-find |
2475 | maybe-configure-find: | |
e6bfb94a AO |
2476 | configure-find: |
2477 | @test ! -f find/Makefile || exit 0; \ | |
2478 | [ -d find ] || mkdir find; \ | |
e2b9e2dc NN |
2479 | r=`${PWD}`; export r; \ |
2480 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2481 | CC="$(CC)"; export CC; \ | |
2482 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2483 | CXX="$(CXX)"; export CXX; \ | |
2484 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2485 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2486 | AR="$(AR)"; export AR; \ | |
2487 | AS="$(AS)"; export AS; \ | |
2488 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2489 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2490 | LD="$(LD)"; export LD; \ | |
2491 | NM="$(NM)"; export NM; \ | |
2492 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2493 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2494 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2495 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2496 | fi; \ | |
2497 | echo Configuring in find; \ | |
2498 | cd find || exit 1; \ | |
2499 | case $(srcdir) in \ | |
2500 | \.) \ | |
2501 | srcdiroption="--srcdir=."; \ | |
2502 | libsrcdir=".";; \ | |
2503 | /* | [A-Za-z]:[\\/]*) \ | |
2504 | srcdiroption="--srcdir=$(srcdir)/find"; \ | |
2505 | libsrcdir="$$s/find";; \ | |
2506 | *) \ | |
2507 | srcdiroption="--srcdir=../$(srcdir)/find"; \ | |
2508 | libsrcdir="$$s/find";; \ | |
2509 | esac; \ | |
2510 | $(SHELL) $${libsrcdir}/configure \ | |
2511 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2512 | || exit 1 | |
2513 | ||
930314a4 NN |
2514 | .PHONY: all-find maybe-all-find |
2515 | maybe-all-find: | |
db1ac78d | 2516 | all-find: configure-find |
930314a4 | 2517 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2518 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2519 | $(SET_LIB_PATH) \ | |
2520 | (cd find && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2521 | |
2522 | ||
2523 | .PHONY: check-find | |
2524 | check-find: | |
930314a4 | 2525 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2526 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2527 | $(SET_LIB_PATH) \ | |
2528 | (cd find && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2529 | |
2530 | ||
2531 | ||
930314a4 NN |
2532 | .PHONY: install-find maybe-install-find |
2533 | maybe-install-find: | |
3866be5d | 2534 | install-find: installdirs |
930314a4 | 2535 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2536 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2537 | $(SET_LIB_PATH) \ | |
2538 | (cd find && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2539 | |
2540 | ||
e2b9e2dc NN |
2541 | .PHONY: configure-flex maybe-configure-flex |
2542 | maybe-configure-flex: | |
e6bfb94a AO |
2543 | configure-flex: |
2544 | @test ! -f flex/Makefile || exit 0; \ | |
2545 | [ -d flex ] || mkdir flex; \ | |
e2b9e2dc NN |
2546 | r=`${PWD}`; export r; \ |
2547 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2548 | CC="$(CC)"; export CC; \ | |
2549 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2550 | CXX="$(CXX)"; export CXX; \ | |
2551 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2552 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2553 | AR="$(AR)"; export AR; \ | |
2554 | AS="$(AS)"; export AS; \ | |
2555 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2556 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2557 | LD="$(LD)"; export LD; \ | |
2558 | NM="$(NM)"; export NM; \ | |
2559 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2560 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2561 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2562 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2563 | fi; \ | |
2564 | echo Configuring in flex; \ | |
2565 | cd flex || exit 1; \ | |
2566 | case $(srcdir) in \ | |
2567 | \.) \ | |
2568 | srcdiroption="--srcdir=."; \ | |
2569 | libsrcdir=".";; \ | |
2570 | /* | [A-Za-z]:[\\/]*) \ | |
2571 | srcdiroption="--srcdir=$(srcdir)/flex"; \ | |
2572 | libsrcdir="$$s/flex";; \ | |
2573 | *) \ | |
2574 | srcdiroption="--srcdir=../$(srcdir)/flex"; \ | |
2575 | libsrcdir="$$s/flex";; \ | |
2576 | esac; \ | |
2577 | $(SHELL) $${libsrcdir}/configure \ | |
2578 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2579 | || exit 1 | |
2580 | ||
930314a4 NN |
2581 | .PHONY: all-flex maybe-all-flex |
2582 | maybe-all-flex: | |
db1ac78d | 2583 | all-flex: configure-flex |
930314a4 | 2584 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2585 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2586 | $(SET_LIB_PATH) \ | |
2587 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2588 | |
2589 | ||
2590 | .PHONY: check-flex | |
2591 | # This module is only tested in a native toolchain. | |
2592 | check-flex: | |
2593 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
bba45b8b NN |
2594 | r=`${PWD}`; export r; \ |
2595 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2596 | $(SET_LIB_PATH) \ | |
2597 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) check); \ | |
3866be5d NN |
2598 | fi |
2599 | ||
2600 | ||
2601 | ||
930314a4 NN |
2602 | .PHONY: install-flex maybe-install-flex |
2603 | maybe-install-flex: | |
3866be5d | 2604 | install-flex: installdirs |
930314a4 | 2605 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2606 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2607 | $(SET_LIB_PATH) \ | |
2608 | (cd flex && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2609 | |
2610 | ||
e2b9e2dc NN |
2611 | .PHONY: configure-gas maybe-configure-gas |
2612 | maybe-configure-gas: | |
e6bfb94a AO |
2613 | configure-gas: |
2614 | @test ! -f gas/Makefile || exit 0; \ | |
2615 | [ -d gas ] || mkdir gas; \ | |
e2b9e2dc NN |
2616 | r=`${PWD}`; export r; \ |
2617 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2618 | CC="$(CC)"; export CC; \ | |
2619 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2620 | CXX="$(CXX)"; export CXX; \ | |
2621 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2622 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2623 | AR="$(AR)"; export AR; \ | |
2624 | AS="$(AS)"; export AS; \ | |
2625 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2626 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2627 | LD="$(LD)"; export LD; \ | |
2628 | NM="$(NM)"; export NM; \ | |
2629 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2630 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2631 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2632 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2633 | fi; \ | |
2634 | echo Configuring in gas; \ | |
2635 | cd gas || exit 1; \ | |
2636 | case $(srcdir) in \ | |
2637 | \.) \ | |
2638 | srcdiroption="--srcdir=."; \ | |
2639 | libsrcdir=".";; \ | |
2640 | /* | [A-Za-z]:[\\/]*) \ | |
2641 | srcdiroption="--srcdir=$(srcdir)/gas"; \ | |
2642 | libsrcdir="$$s/gas";; \ | |
2643 | *) \ | |
2644 | srcdiroption="--srcdir=../$(srcdir)/gas"; \ | |
2645 | libsrcdir="$$s/gas";; \ | |
2646 | esac; \ | |
2647 | $(SHELL) $${libsrcdir}/configure \ | |
2648 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2649 | || exit 1 | |
2650 | ||
930314a4 NN |
2651 | .PHONY: all-gas maybe-all-gas |
2652 | maybe-all-gas: | |
db1ac78d | 2653 | all-gas: configure-gas |
930314a4 | 2654 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2655 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2656 | $(SET_LIB_PATH) \ | |
2657 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2658 | |
2659 | ||
2660 | .PHONY: check-gas | |
2661 | check-gas: | |
930314a4 | 2662 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2663 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2664 | $(SET_LIB_PATH) \ | |
2665 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2666 | |
2667 | ||
2668 | ||
930314a4 NN |
2669 | .PHONY: install-gas maybe-install-gas |
2670 | maybe-install-gas: | |
3866be5d | 2671 | install-gas: installdirs |
930314a4 | 2672 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2673 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2674 | $(SET_LIB_PATH) \ | |
2675 | (cd gas && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2676 | |
2677 | ||
e2b9e2dc NN |
2678 | .PHONY: configure-gawk maybe-configure-gawk |
2679 | maybe-configure-gawk: | |
e6bfb94a AO |
2680 | configure-gawk: |
2681 | @test ! -f gawk/Makefile || exit 0; \ | |
2682 | [ -d gawk ] || mkdir gawk; \ | |
e2b9e2dc NN |
2683 | r=`${PWD}`; export r; \ |
2684 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2685 | CC="$(CC)"; export CC; \ | |
2686 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2687 | CXX="$(CXX)"; export CXX; \ | |
2688 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2689 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2690 | AR="$(AR)"; export AR; \ | |
2691 | AS="$(AS)"; export AS; \ | |
2692 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2693 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2694 | LD="$(LD)"; export LD; \ | |
2695 | NM="$(NM)"; export NM; \ | |
2696 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2697 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2698 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2699 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2700 | fi; \ | |
2701 | echo Configuring in gawk; \ | |
2702 | cd gawk || exit 1; \ | |
2703 | case $(srcdir) in \ | |
2704 | \.) \ | |
2705 | srcdiroption="--srcdir=."; \ | |
2706 | libsrcdir=".";; \ | |
2707 | /* | [A-Za-z]:[\\/]*) \ | |
2708 | srcdiroption="--srcdir=$(srcdir)/gawk"; \ | |
2709 | libsrcdir="$$s/gawk";; \ | |
2710 | *) \ | |
2711 | srcdiroption="--srcdir=../$(srcdir)/gawk"; \ | |
2712 | libsrcdir="$$s/gawk";; \ | |
2713 | esac; \ | |
2714 | $(SHELL) $${libsrcdir}/configure \ | |
2715 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2716 | || exit 1 | |
2717 | ||
930314a4 NN |
2718 | .PHONY: all-gawk maybe-all-gawk |
2719 | maybe-all-gawk: | |
db1ac78d | 2720 | all-gawk: configure-gawk |
930314a4 | 2721 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2722 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2723 | $(SET_LIB_PATH) \ | |
2724 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2725 | |
2726 | ||
2727 | .PHONY: check-gawk | |
2728 | check-gawk: | |
930314a4 | 2729 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2730 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2731 | $(SET_LIB_PATH) \ | |
2732 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2733 | |
2734 | ||
2735 | ||
930314a4 NN |
2736 | .PHONY: install-gawk maybe-install-gawk |
2737 | maybe-install-gawk: | |
3866be5d | 2738 | install-gawk: installdirs |
930314a4 | 2739 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2740 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2741 | $(SET_LIB_PATH) \ | |
2742 | (cd gawk && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2743 | |
2744 | ||
e2b9e2dc NN |
2745 | .PHONY: configure-gettext maybe-configure-gettext |
2746 | maybe-configure-gettext: | |
e6bfb94a AO |
2747 | configure-gettext: |
2748 | @test ! -f gettext/Makefile || exit 0; \ | |
2749 | [ -d gettext ] || mkdir gettext; \ | |
e2b9e2dc NN |
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 gettext; \ | |
2769 | cd gettext || exit 1; \ | |
2770 | case $(srcdir) in \ | |
2771 | \.) \ | |
2772 | srcdiroption="--srcdir=."; \ | |
2773 | libsrcdir=".";; \ | |
2774 | /* | [A-Za-z]:[\\/]*) \ | |
2775 | srcdiroption="--srcdir=$(srcdir)/gettext"; \ | |
2776 | libsrcdir="$$s/gettext";; \ | |
2777 | *) \ | |
2778 | srcdiroption="--srcdir=../$(srcdir)/gettext"; \ | |
2779 | libsrcdir="$$s/gettext";; \ | |
2780 | esac; \ | |
2781 | $(SHELL) $${libsrcdir}/configure \ | |
2782 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2783 | || exit 1 | |
2784 | ||
930314a4 NN |
2785 | .PHONY: all-gettext maybe-all-gettext |
2786 | maybe-all-gettext: | |
db1ac78d | 2787 | all-gettext: configure-gettext |
930314a4 | 2788 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2789 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2790 | $(SET_LIB_PATH) \ | |
2791 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2792 | |
2793 | ||
2794 | .PHONY: check-gettext | |
2795 | check-gettext: | |
930314a4 | 2796 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2797 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2798 | $(SET_LIB_PATH) \ | |
2799 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2800 | |
2801 | ||
2802 | ||
930314a4 NN |
2803 | .PHONY: install-gettext maybe-install-gettext |
2804 | maybe-install-gettext: | |
3866be5d | 2805 | install-gettext: installdirs |
930314a4 | 2806 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2807 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2808 | $(SET_LIB_PATH) \ | |
2809 | (cd gettext && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2810 | |
2811 | ||
e2b9e2dc NN |
2812 | .PHONY: configure-gnuserv maybe-configure-gnuserv |
2813 | maybe-configure-gnuserv: | |
e6bfb94a AO |
2814 | configure-gnuserv: |
2815 | @test ! -f gnuserv/Makefile || exit 0; \ | |
2816 | [ -d gnuserv ] || mkdir gnuserv; \ | |
e2b9e2dc NN |
2817 | r=`${PWD}`; export r; \ |
2818 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2819 | CC="$(CC)"; export CC; \ | |
2820 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2821 | CXX="$(CXX)"; export CXX; \ | |
2822 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2823 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2824 | AR="$(AR)"; export AR; \ | |
2825 | AS="$(AS)"; export AS; \ | |
2826 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2827 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2828 | LD="$(LD)"; export LD; \ | |
2829 | NM="$(NM)"; export NM; \ | |
2830 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2831 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2832 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2833 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2834 | fi; \ | |
2835 | echo Configuring in gnuserv; \ | |
2836 | cd gnuserv || exit 1; \ | |
2837 | case $(srcdir) in \ | |
2838 | \.) \ | |
2839 | srcdiroption="--srcdir=."; \ | |
2840 | libsrcdir=".";; \ | |
2841 | /* | [A-Za-z]:[\\/]*) \ | |
2842 | srcdiroption="--srcdir=$(srcdir)/gnuserv"; \ | |
2843 | libsrcdir="$$s/gnuserv";; \ | |
2844 | *) \ | |
2845 | srcdiroption="--srcdir=../$(srcdir)/gnuserv"; \ | |
2846 | libsrcdir="$$s/gnuserv";; \ | |
2847 | esac; \ | |
2848 | $(SHELL) $${libsrcdir}/configure \ | |
2849 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2850 | || exit 1 | |
2851 | ||
930314a4 NN |
2852 | .PHONY: all-gnuserv maybe-all-gnuserv |
2853 | maybe-all-gnuserv: | |
db1ac78d | 2854 | all-gnuserv: configure-gnuserv |
930314a4 | 2855 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2856 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2857 | $(SET_LIB_PATH) \ | |
2858 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2859 | |
2860 | ||
2861 | .PHONY: check-gnuserv | |
2862 | check-gnuserv: | |
930314a4 | 2863 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2864 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2865 | $(SET_LIB_PATH) \ | |
2866 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2867 | |
2868 | ||
2869 | ||
930314a4 NN |
2870 | .PHONY: install-gnuserv maybe-install-gnuserv |
2871 | maybe-install-gnuserv: | |
3866be5d | 2872 | install-gnuserv: installdirs |
930314a4 | 2873 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2874 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2875 | $(SET_LIB_PATH) \ | |
2876 | (cd gnuserv && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2877 | |
2878 | ||
e2b9e2dc NN |
2879 | .PHONY: configure-gprof maybe-configure-gprof |
2880 | maybe-configure-gprof: | |
e6bfb94a AO |
2881 | configure-gprof: |
2882 | @test ! -f gprof/Makefile || exit 0; \ | |
2883 | [ -d gprof ] || mkdir gprof; \ | |
e2b9e2dc NN |
2884 | r=`${PWD}`; export r; \ |
2885 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2886 | CC="$(CC)"; export CC; \ | |
2887 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2888 | CXX="$(CXX)"; export CXX; \ | |
2889 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2890 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2891 | AR="$(AR)"; export AR; \ | |
2892 | AS="$(AS)"; export AS; \ | |
2893 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2894 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2895 | LD="$(LD)"; export LD; \ | |
2896 | NM="$(NM)"; export NM; \ | |
2897 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2898 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2899 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2900 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2901 | fi; \ | |
2902 | echo Configuring in gprof; \ | |
2903 | cd gprof || exit 1; \ | |
2904 | case $(srcdir) in \ | |
2905 | \.) \ | |
2906 | srcdiroption="--srcdir=."; \ | |
2907 | libsrcdir=".";; \ | |
2908 | /* | [A-Za-z]:[\\/]*) \ | |
2909 | srcdiroption="--srcdir=$(srcdir)/gprof"; \ | |
2910 | libsrcdir="$$s/gprof";; \ | |
2911 | *) \ | |
2912 | srcdiroption="--srcdir=../$(srcdir)/gprof"; \ | |
2913 | libsrcdir="$$s/gprof";; \ | |
2914 | esac; \ | |
2915 | $(SHELL) $${libsrcdir}/configure \ | |
2916 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2917 | || exit 1 | |
2918 | ||
930314a4 NN |
2919 | .PHONY: all-gprof maybe-all-gprof |
2920 | maybe-all-gprof: | |
db1ac78d | 2921 | all-gprof: configure-gprof |
930314a4 | 2922 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2923 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2924 | $(SET_LIB_PATH) \ | |
2925 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2926 | |
2927 | ||
2928 | .PHONY: check-gprof | |
2929 | check-gprof: | |
930314a4 | 2930 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2931 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2932 | $(SET_LIB_PATH) \ | |
2933 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
2934 | |
2935 | ||
2936 | ||
930314a4 NN |
2937 | .PHONY: install-gprof maybe-install-gprof |
2938 | maybe-install-gprof: | |
3866be5d | 2939 | install-gprof: installdirs |
930314a4 | 2940 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2941 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2942 | $(SET_LIB_PATH) \ | |
2943 | (cd gprof && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
2944 | |
2945 | ||
e2b9e2dc NN |
2946 | .PHONY: configure-gzip maybe-configure-gzip |
2947 | maybe-configure-gzip: | |
e6bfb94a AO |
2948 | configure-gzip: |
2949 | @test ! -f gzip/Makefile || exit 0; \ | |
2950 | [ -d gzip ] || mkdir gzip; \ | |
e2b9e2dc NN |
2951 | r=`${PWD}`; export r; \ |
2952 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
2953 | CC="$(CC)"; export CC; \ | |
2954 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
2955 | CXX="$(CXX)"; export CXX; \ | |
2956 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
2957 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
2958 | AR="$(AR)"; export AR; \ | |
2959 | AS="$(AS)"; export AS; \ | |
2960 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
2961 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
2962 | LD="$(LD)"; export LD; \ | |
2963 | NM="$(NM)"; export NM; \ | |
2964 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
2965 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
2966 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
2967 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
2968 | fi; \ | |
2969 | echo Configuring in gzip; \ | |
2970 | cd gzip || exit 1; \ | |
2971 | case $(srcdir) in \ | |
2972 | \.) \ | |
2973 | srcdiroption="--srcdir=."; \ | |
2974 | libsrcdir=".";; \ | |
2975 | /* | [A-Za-z]:[\\/]*) \ | |
2976 | srcdiroption="--srcdir=$(srcdir)/gzip"; \ | |
2977 | libsrcdir="$$s/gzip";; \ | |
2978 | *) \ | |
2979 | srcdiroption="--srcdir=../$(srcdir)/gzip"; \ | |
2980 | libsrcdir="$$s/gzip";; \ | |
2981 | esac; \ | |
2982 | $(SHELL) $${libsrcdir}/configure \ | |
2983 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
2984 | || exit 1 | |
2985 | ||
930314a4 NN |
2986 | .PHONY: all-gzip maybe-all-gzip |
2987 | maybe-all-gzip: | |
db1ac78d | 2988 | all-gzip: configure-gzip |
930314a4 | 2989 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2990 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2991 | $(SET_LIB_PATH) \ | |
2992 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
2993 | |
2994 | ||
2995 | .PHONY: check-gzip | |
2996 | check-gzip: | |
930314a4 | 2997 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
2998 | s=`cd $(srcdir); ${PWD}`; export s; \ |
2999 | $(SET_LIB_PATH) \ | |
3000 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3001 | |
3002 | ||
3003 | ||
930314a4 NN |
3004 | .PHONY: install-gzip maybe-install-gzip |
3005 | maybe-install-gzip: | |
3866be5d | 3006 | install-gzip: installdirs |
930314a4 | 3007 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3008 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3009 | $(SET_LIB_PATH) \ | |
3010 | (cd gzip && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3011 | |
3012 | ||
e2b9e2dc NN |
3013 | .PHONY: configure-hello maybe-configure-hello |
3014 | maybe-configure-hello: | |
e6bfb94a AO |
3015 | configure-hello: |
3016 | @test ! -f hello/Makefile || exit 0; \ | |
3017 | [ -d hello ] || mkdir hello; \ | |
e2b9e2dc NN |
3018 | r=`${PWD}`; export r; \ |
3019 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3020 | CC="$(CC)"; export CC; \ | |
3021 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3022 | CXX="$(CXX)"; export CXX; \ | |
3023 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3024 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3025 | AR="$(AR)"; export AR; \ | |
3026 | AS="$(AS)"; export AS; \ | |
3027 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3028 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3029 | LD="$(LD)"; export LD; \ | |
3030 | NM="$(NM)"; export NM; \ | |
3031 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3032 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3033 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3034 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3035 | fi; \ | |
3036 | echo Configuring in hello; \ | |
3037 | cd hello || exit 1; \ | |
3038 | case $(srcdir) in \ | |
3039 | \.) \ | |
3040 | srcdiroption="--srcdir=."; \ | |
3041 | libsrcdir=".";; \ | |
3042 | /* | [A-Za-z]:[\\/]*) \ | |
3043 | srcdiroption="--srcdir=$(srcdir)/hello"; \ | |
3044 | libsrcdir="$$s/hello";; \ | |
3045 | *) \ | |
3046 | srcdiroption="--srcdir=../$(srcdir)/hello"; \ | |
3047 | libsrcdir="$$s/hello";; \ | |
3048 | esac; \ | |
3049 | $(SHELL) $${libsrcdir}/configure \ | |
3050 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3051 | || exit 1 | |
3052 | ||
930314a4 NN |
3053 | .PHONY: all-hello maybe-all-hello |
3054 | maybe-all-hello: | |
db1ac78d | 3055 | all-hello: configure-hello |
930314a4 | 3056 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3057 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3058 | $(SET_LIB_PATH) \ | |
3059 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3060 | |
3061 | ||
3062 | .PHONY: check-hello | |
3063 | check-hello: | |
930314a4 | 3064 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3065 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3066 | $(SET_LIB_PATH) \ | |
3067 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3068 | |
3069 | ||
3070 | ||
930314a4 NN |
3071 | .PHONY: install-hello maybe-install-hello |
3072 | maybe-install-hello: | |
3866be5d | 3073 | install-hello: installdirs |
930314a4 | 3074 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3075 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3076 | $(SET_LIB_PATH) \ | |
3077 | (cd hello && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3078 | |
3079 | ||
e2b9e2dc NN |
3080 | .PHONY: configure-indent maybe-configure-indent |
3081 | maybe-configure-indent: | |
e6bfb94a AO |
3082 | configure-indent: |
3083 | @test ! -f indent/Makefile || exit 0; \ | |
3084 | [ -d indent ] || mkdir indent; \ | |
e2b9e2dc NN |
3085 | r=`${PWD}`; export r; \ |
3086 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3087 | CC="$(CC)"; export CC; \ | |
3088 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3089 | CXX="$(CXX)"; export CXX; \ | |
3090 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3091 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3092 | AR="$(AR)"; export AR; \ | |
3093 | AS="$(AS)"; export AS; \ | |
3094 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3095 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3096 | LD="$(LD)"; export LD; \ | |
3097 | NM="$(NM)"; export NM; \ | |
3098 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3099 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3100 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3101 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3102 | fi; \ | |
3103 | echo Configuring in indent; \ | |
3104 | cd indent || exit 1; \ | |
3105 | case $(srcdir) in \ | |
3106 | \.) \ | |
3107 | srcdiroption="--srcdir=."; \ | |
3108 | libsrcdir=".";; \ | |
3109 | /* | [A-Za-z]:[\\/]*) \ | |
3110 | srcdiroption="--srcdir=$(srcdir)/indent"; \ | |
3111 | libsrcdir="$$s/indent";; \ | |
3112 | *) \ | |
3113 | srcdiroption="--srcdir=../$(srcdir)/indent"; \ | |
3114 | libsrcdir="$$s/indent";; \ | |
3115 | esac; \ | |
3116 | $(SHELL) $${libsrcdir}/configure \ | |
3117 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3118 | || exit 1 | |
3119 | ||
930314a4 NN |
3120 | .PHONY: all-indent maybe-all-indent |
3121 | maybe-all-indent: | |
db1ac78d | 3122 | all-indent: configure-indent |
930314a4 | 3123 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3124 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3125 | $(SET_LIB_PATH) \ | |
3126 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3127 | |
3128 | ||
3129 | .PHONY: check-indent | |
3130 | check-indent: | |
930314a4 | 3131 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3132 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3133 | $(SET_LIB_PATH) \ | |
3134 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3135 | |
3136 | ||
3137 | ||
930314a4 NN |
3138 | .PHONY: install-indent maybe-install-indent |
3139 | maybe-install-indent: | |
3866be5d | 3140 | install-indent: installdirs |
930314a4 | 3141 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3142 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3143 | $(SET_LIB_PATH) \ | |
3144 | (cd indent && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3145 | |
3146 | ||
e2b9e2dc NN |
3147 | .PHONY: configure-intl maybe-configure-intl |
3148 | maybe-configure-intl: | |
e6bfb94a AO |
3149 | configure-intl: |
3150 | @test ! -f intl/Makefile || exit 0; \ | |
3151 | [ -d intl ] || mkdir intl; \ | |
e2b9e2dc NN |
3152 | r=`${PWD}`; export r; \ |
3153 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3154 | CC="$(CC)"; export CC; \ | |
3155 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3156 | CXX="$(CXX)"; export CXX; \ | |
3157 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3158 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3159 | AR="$(AR)"; export AR; \ | |
3160 | AS="$(AS)"; export AS; \ | |
3161 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3162 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3163 | LD="$(LD)"; export LD; \ | |
3164 | NM="$(NM)"; export NM; \ | |
3165 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3166 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3167 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3168 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3169 | fi; \ | |
3170 | echo Configuring in intl; \ | |
3171 | cd intl || exit 1; \ | |
3172 | case $(srcdir) in \ | |
3173 | \.) \ | |
3174 | srcdiroption="--srcdir=."; \ | |
3175 | libsrcdir=".";; \ | |
3176 | /* | [A-Za-z]:[\\/]*) \ | |
3177 | srcdiroption="--srcdir=$(srcdir)/intl"; \ | |
3178 | libsrcdir="$$s/intl";; \ | |
3179 | *) \ | |
3180 | srcdiroption="--srcdir=../$(srcdir)/intl"; \ | |
3181 | libsrcdir="$$s/intl";; \ | |
3182 | esac; \ | |
3183 | $(SHELL) $${libsrcdir}/configure \ | |
3184 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3185 | || exit 1 | |
3186 | ||
930314a4 NN |
3187 | .PHONY: all-intl maybe-all-intl |
3188 | maybe-all-intl: | |
db1ac78d | 3189 | all-intl: configure-intl |
930314a4 | 3190 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3191 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3192 | $(SET_LIB_PATH) \ | |
3193 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3194 | |
3195 | ||
3196 | .PHONY: check-intl | |
3197 | check-intl: | |
930314a4 | 3198 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3199 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3200 | $(SET_LIB_PATH) \ | |
3201 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3202 | |
3203 | ||
3204 | ||
930314a4 NN |
3205 | .PHONY: install-intl maybe-install-intl |
3206 | maybe-install-intl: | |
3866be5d | 3207 | install-intl: installdirs |
930314a4 | 3208 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3209 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3210 | $(SET_LIB_PATH) \ | |
3211 | (cd intl && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3212 | |
3213 | ||
e2b9e2dc NN |
3214 | .PHONY: configure-tcl maybe-configure-tcl |
3215 | maybe-configure-tcl: | |
e6bfb94a AO |
3216 | configure-tcl: |
3217 | @test ! -f tcl/Makefile || exit 0; \ | |
3218 | [ -d tcl ] || mkdir tcl; \ | |
e2b9e2dc NN |
3219 | r=`${PWD}`; export r; \ |
3220 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3221 | CC="$(CC)"; export CC; \ | |
3222 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3223 | CXX="$(CXX)"; export CXX; \ | |
3224 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3225 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3226 | AR="$(AR)"; export AR; \ | |
3227 | AS="$(AS)"; export AS; \ | |
3228 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3229 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3230 | LD="$(LD)"; export LD; \ | |
3231 | NM="$(NM)"; export NM; \ | |
3232 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3233 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3234 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3235 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3236 | fi; \ | |
3237 | echo Configuring in tcl; \ | |
3238 | cd tcl || exit 1; \ | |
3239 | case $(srcdir) in \ | |
3240 | \.) \ | |
3241 | srcdiroption="--srcdir=."; \ | |
3242 | libsrcdir=".";; \ | |
3243 | /* | [A-Za-z]:[\\/]*) \ | |
3244 | srcdiroption="--srcdir=$(srcdir)/tcl"; \ | |
3245 | libsrcdir="$$s/tcl";; \ | |
3246 | *) \ | |
3247 | srcdiroption="--srcdir=../$(srcdir)/tcl"; \ | |
3248 | libsrcdir="$$s/tcl";; \ | |
3249 | esac; \ | |
3250 | $(SHELL) $${libsrcdir}/configure \ | |
3251 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3252 | || exit 1 | |
3253 | ||
930314a4 NN |
3254 | .PHONY: all-tcl maybe-all-tcl |
3255 | maybe-all-tcl: | |
db1ac78d | 3256 | all-tcl: configure-tcl |
930314a4 | 3257 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3258 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3259 | $(SET_LIB_PATH) \ | |
3260 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3261 | |
3262 | ||
3263 | .PHONY: check-tcl | |
3264 | check-tcl: | |
930314a4 | 3265 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3266 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3267 | $(SET_LIB_PATH) \ | |
3268 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3269 | |
3270 | ||
3271 | ||
930314a4 NN |
3272 | .PHONY: install-tcl maybe-install-tcl |
3273 | maybe-install-tcl: | |
3866be5d | 3274 | install-tcl: installdirs |
930314a4 | 3275 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3276 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3277 | $(SET_LIB_PATH) \ | |
3278 | (cd tcl && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3279 | |
3280 | ||
e2b9e2dc NN |
3281 | .PHONY: configure-itcl maybe-configure-itcl |
3282 | maybe-configure-itcl: | |
e6bfb94a AO |
3283 | configure-itcl: |
3284 | @test ! -f itcl/Makefile || exit 0; \ | |
3285 | [ -d itcl ] || mkdir itcl; \ | |
e2b9e2dc NN |
3286 | r=`${PWD}`; export r; \ |
3287 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3288 | CC="$(CC)"; export CC; \ | |
3289 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3290 | CXX="$(CXX)"; export CXX; \ | |
3291 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3292 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3293 | AR="$(AR)"; export AR; \ | |
3294 | AS="$(AS)"; export AS; \ | |
3295 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3296 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3297 | LD="$(LD)"; export LD; \ | |
3298 | NM="$(NM)"; export NM; \ | |
3299 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3300 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3301 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3302 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3303 | fi; \ | |
3304 | echo Configuring in itcl; \ | |
3305 | cd itcl || exit 1; \ | |
3306 | case $(srcdir) in \ | |
3307 | \.) \ | |
3308 | srcdiroption="--srcdir=."; \ | |
3309 | libsrcdir=".";; \ | |
3310 | /* | [A-Za-z]:[\\/]*) \ | |
3311 | srcdiroption="--srcdir=$(srcdir)/itcl"; \ | |
3312 | libsrcdir="$$s/itcl";; \ | |
3313 | *) \ | |
3314 | srcdiroption="--srcdir=../$(srcdir)/itcl"; \ | |
3315 | libsrcdir="$$s/itcl";; \ | |
3316 | esac; \ | |
3317 | $(SHELL) $${libsrcdir}/configure \ | |
3318 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3319 | || exit 1 | |
3320 | ||
930314a4 NN |
3321 | .PHONY: all-itcl maybe-all-itcl |
3322 | maybe-all-itcl: | |
db1ac78d | 3323 | all-itcl: configure-itcl |
930314a4 | 3324 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3325 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3326 | $(SET_LIB_PATH) \ | |
3327 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3328 | |
3329 | ||
3330 | .PHONY: check-itcl | |
3331 | check-itcl: | |
930314a4 | 3332 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3333 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3334 | $(SET_LIB_PATH) \ | |
3335 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3336 | |
3337 | ||
3338 | ||
930314a4 NN |
3339 | .PHONY: install-itcl maybe-install-itcl |
3340 | maybe-install-itcl: | |
3866be5d | 3341 | install-itcl: installdirs |
930314a4 | 3342 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3343 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3344 | $(SET_LIB_PATH) \ | |
3345 | (cd itcl && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3346 | |
3347 | ||
e2b9e2dc NN |
3348 | .PHONY: configure-ld maybe-configure-ld |
3349 | maybe-configure-ld: | |
e6bfb94a AO |
3350 | configure-ld: |
3351 | @test ! -f ld/Makefile || exit 0; \ | |
3352 | [ -d ld ] || mkdir ld; \ | |
e2b9e2dc NN |
3353 | r=`${PWD}`; export r; \ |
3354 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3355 | CC="$(CC)"; export CC; \ | |
3356 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3357 | CXX="$(CXX)"; export CXX; \ | |
3358 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3359 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3360 | AR="$(AR)"; export AR; \ | |
3361 | AS="$(AS)"; export AS; \ | |
3362 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3363 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3364 | LD="$(LD)"; export LD; \ | |
3365 | NM="$(NM)"; export NM; \ | |
3366 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3367 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3368 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3369 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3370 | fi; \ | |
3371 | echo Configuring in ld; \ | |
3372 | cd ld || exit 1; \ | |
3373 | case $(srcdir) in \ | |
3374 | \.) \ | |
3375 | srcdiroption="--srcdir=."; \ | |
3376 | libsrcdir=".";; \ | |
3377 | /* | [A-Za-z]:[\\/]*) \ | |
3378 | srcdiroption="--srcdir=$(srcdir)/ld"; \ | |
3379 | libsrcdir="$$s/ld";; \ | |
3380 | *) \ | |
3381 | srcdiroption="--srcdir=../$(srcdir)/ld"; \ | |
3382 | libsrcdir="$$s/ld";; \ | |
3383 | esac; \ | |
3384 | $(SHELL) $${libsrcdir}/configure \ | |
3385 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3386 | || exit 1 | |
3387 | ||
930314a4 NN |
3388 | .PHONY: all-ld maybe-all-ld |
3389 | maybe-all-ld: | |
db1ac78d | 3390 | all-ld: configure-ld |
930314a4 | 3391 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3392 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3393 | $(SET_LIB_PATH) \ | |
3394 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3395 | |
3396 | ||
3397 | .PHONY: check-ld | |
3398 | check-ld: | |
930314a4 | 3399 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3400 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3401 | $(SET_LIB_PATH) \ | |
3402 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3403 | |
3404 | ||
3405 | ||
930314a4 NN |
3406 | .PHONY: install-ld maybe-install-ld |
3407 | maybe-install-ld: | |
3866be5d | 3408 | install-ld: installdirs |
930314a4 | 3409 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3410 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3411 | $(SET_LIB_PATH) \ | |
3412 | (cd ld && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3413 | |
3414 | ||
e2b9e2dc NN |
3415 | .PHONY: configure-libgui maybe-configure-libgui |
3416 | maybe-configure-libgui: | |
e6bfb94a AO |
3417 | configure-libgui: |
3418 | @test ! -f libgui/Makefile || exit 0; \ | |
3419 | [ -d libgui ] || mkdir libgui; \ | |
e2b9e2dc NN |
3420 | r=`${PWD}`; export r; \ |
3421 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3422 | CC="$(CC)"; export CC; \ | |
3423 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3424 | CXX="$(CXX)"; export CXX; \ | |
3425 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3426 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3427 | AR="$(AR)"; export AR; \ | |
3428 | AS="$(AS)"; export AS; \ | |
3429 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3430 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3431 | LD="$(LD)"; export LD; \ | |
3432 | NM="$(NM)"; export NM; \ | |
3433 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3434 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3435 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3436 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3437 | fi; \ | |
3438 | echo Configuring in libgui; \ | |
3439 | cd libgui || exit 1; \ | |
3440 | case $(srcdir) in \ | |
3441 | \.) \ | |
3442 | srcdiroption="--srcdir=."; \ | |
3443 | libsrcdir=".";; \ | |
3444 | /* | [A-Za-z]:[\\/]*) \ | |
3445 | srcdiroption="--srcdir=$(srcdir)/libgui"; \ | |
3446 | libsrcdir="$$s/libgui";; \ | |
3447 | *) \ | |
3448 | srcdiroption="--srcdir=../$(srcdir)/libgui"; \ | |
3449 | libsrcdir="$$s/libgui";; \ | |
3450 | esac; \ | |
3451 | $(SHELL) $${libsrcdir}/configure \ | |
3452 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3453 | || exit 1 | |
3454 | ||
930314a4 NN |
3455 | .PHONY: all-libgui maybe-all-libgui |
3456 | maybe-all-libgui: | |
db1ac78d | 3457 | all-libgui: configure-libgui |
930314a4 | 3458 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3459 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3460 | $(SET_LIB_PATH) \ | |
3461 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3462 | |
3463 | ||
3464 | .PHONY: check-libgui | |
3465 | check-libgui: | |
930314a4 | 3466 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3467 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3468 | $(SET_LIB_PATH) \ | |
3469 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3470 | |
3471 | ||
3472 | ||
930314a4 NN |
3473 | .PHONY: install-libgui maybe-install-libgui |
3474 | maybe-install-libgui: | |
3866be5d | 3475 | install-libgui: installdirs |
930314a4 | 3476 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3477 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3478 | $(SET_LIB_PATH) \ | |
3479 | (cd libgui && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3480 | |
3481 | ||
e2b9e2dc NN |
3482 | .PHONY: configure-libiberty maybe-configure-libiberty |
3483 | maybe-configure-libiberty: | |
e6bfb94a AO |
3484 | configure-libiberty: |
3485 | @test ! -f libiberty/Makefile || exit 0; \ | |
3486 | [ -d libiberty ] || mkdir libiberty; \ | |
e2b9e2dc NN |
3487 | r=`${PWD}`; export r; \ |
3488 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3489 | CC="$(CC)"; export CC; \ | |
3490 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3491 | CXX="$(CXX)"; export CXX; \ | |
3492 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3493 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3494 | AR="$(AR)"; export AR; \ | |
3495 | AS="$(AS)"; export AS; \ | |
3496 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3497 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3498 | LD="$(LD)"; export LD; \ | |
3499 | NM="$(NM)"; export NM; \ | |
3500 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3501 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3502 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3503 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3504 | fi; \ | |
3505 | echo Configuring in libiberty; \ | |
3506 | cd libiberty || exit 1; \ | |
3507 | case $(srcdir) in \ | |
3508 | \.) \ | |
3509 | srcdiroption="--srcdir=."; \ | |
3510 | libsrcdir=".";; \ | |
3511 | /* | [A-Za-z]:[\\/]*) \ | |
3512 | srcdiroption="--srcdir=$(srcdir)/libiberty"; \ | |
3513 | libsrcdir="$$s/libiberty";; \ | |
3514 | *) \ | |
3515 | srcdiroption="--srcdir=../$(srcdir)/libiberty"; \ | |
3516 | libsrcdir="$$s/libiberty";; \ | |
3517 | esac; \ | |
3518 | $(SHELL) $${libsrcdir}/configure \ | |
3519 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3520 | || exit 1 | |
3521 | ||
930314a4 NN |
3522 | .PHONY: all-libiberty maybe-all-libiberty |
3523 | maybe-all-libiberty: | |
db1ac78d | 3524 | all-libiberty: configure-libiberty |
930314a4 | 3525 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3526 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3527 | $(SET_LIB_PATH) \ | |
3528 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3529 | |
3530 | ||
3531 | .PHONY: check-libiberty | |
3532 | check-libiberty: | |
930314a4 | 3533 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3534 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3535 | $(SET_LIB_PATH) \ | |
3536 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3537 | |
3538 | ||
3539 | ||
930314a4 NN |
3540 | .PHONY: install-libiberty maybe-install-libiberty |
3541 | maybe-install-libiberty: | |
3866be5d | 3542 | install-libiberty: installdirs |
930314a4 | 3543 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3544 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3545 | $(SET_LIB_PATH) \ | |
3546 | (cd libiberty && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3547 | |
3548 | ||
e2b9e2dc NN |
3549 | .PHONY: configure-libtool maybe-configure-libtool |
3550 | maybe-configure-libtool: | |
e6bfb94a AO |
3551 | configure-libtool: |
3552 | @test ! -f libtool/Makefile || exit 0; \ | |
3553 | [ -d libtool ] || mkdir libtool; \ | |
e2b9e2dc NN |
3554 | r=`${PWD}`; export r; \ |
3555 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3556 | CC="$(CC)"; export CC; \ | |
3557 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3558 | CXX="$(CXX)"; export CXX; \ | |
3559 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3560 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3561 | AR="$(AR)"; export AR; \ | |
3562 | AS="$(AS)"; export AS; \ | |
3563 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3564 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3565 | LD="$(LD)"; export LD; \ | |
3566 | NM="$(NM)"; export NM; \ | |
3567 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3568 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3569 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3570 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3571 | fi; \ | |
3572 | echo Configuring in libtool; \ | |
3573 | cd libtool || exit 1; \ | |
3574 | case $(srcdir) in \ | |
3575 | \.) \ | |
3576 | srcdiroption="--srcdir=."; \ | |
3577 | libsrcdir=".";; \ | |
3578 | /* | [A-Za-z]:[\\/]*) \ | |
3579 | srcdiroption="--srcdir=$(srcdir)/libtool"; \ | |
3580 | libsrcdir="$$s/libtool";; \ | |
3581 | *) \ | |
3582 | srcdiroption="--srcdir=../$(srcdir)/libtool"; \ | |
3583 | libsrcdir="$$s/libtool";; \ | |
3584 | esac; \ | |
3585 | $(SHELL) $${libsrcdir}/configure \ | |
3586 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3587 | || exit 1 | |
3588 | ||
930314a4 NN |
3589 | .PHONY: all-libtool maybe-all-libtool |
3590 | maybe-all-libtool: | |
db1ac78d | 3591 | all-libtool: configure-libtool |
930314a4 | 3592 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3593 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3594 | $(SET_LIB_PATH) \ | |
3595 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3596 | |
3597 | ||
3598 | .PHONY: check-libtool | |
3599 | check-libtool: | |
930314a4 | 3600 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3601 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3602 | $(SET_LIB_PATH) \ | |
3603 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3604 | |
3605 | ||
3606 | ||
930314a4 NN |
3607 | .PHONY: install-libtool maybe-install-libtool |
3608 | maybe-install-libtool: | |
3866be5d | 3609 | install-libtool: installdirs |
930314a4 | 3610 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3611 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3612 | $(SET_LIB_PATH) \ | |
3613 | (cd libtool && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3614 | |
3615 | ||
e2b9e2dc NN |
3616 | .PHONY: configure-m4 maybe-configure-m4 |
3617 | maybe-configure-m4: | |
e6bfb94a AO |
3618 | configure-m4: |
3619 | @test ! -f m4/Makefile || exit 0; \ | |
3620 | [ -d m4 ] || mkdir m4; \ | |
e2b9e2dc NN |
3621 | r=`${PWD}`; export r; \ |
3622 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3623 | CC="$(CC)"; export CC; \ | |
3624 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3625 | CXX="$(CXX)"; export CXX; \ | |
3626 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3627 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3628 | AR="$(AR)"; export AR; \ | |
3629 | AS="$(AS)"; export AS; \ | |
3630 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3631 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3632 | LD="$(LD)"; export LD; \ | |
3633 | NM="$(NM)"; export NM; \ | |
3634 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3635 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3636 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3637 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3638 | fi; \ | |
3639 | echo Configuring in m4; \ | |
3640 | cd m4 || exit 1; \ | |
3641 | case $(srcdir) in \ | |
3642 | \.) \ | |
3643 | srcdiroption="--srcdir=."; \ | |
3644 | libsrcdir=".";; \ | |
3645 | /* | [A-Za-z]:[\\/]*) \ | |
3646 | srcdiroption="--srcdir=$(srcdir)/m4"; \ | |
3647 | libsrcdir="$$s/m4";; \ | |
3648 | *) \ | |
3649 | srcdiroption="--srcdir=../$(srcdir)/m4"; \ | |
3650 | libsrcdir="$$s/m4";; \ | |
3651 | esac; \ | |
3652 | $(SHELL) $${libsrcdir}/configure \ | |
3653 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3654 | || exit 1 | |
3655 | ||
930314a4 NN |
3656 | .PHONY: all-m4 maybe-all-m4 |
3657 | maybe-all-m4: | |
db1ac78d | 3658 | all-m4: configure-m4 |
930314a4 | 3659 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3660 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3661 | $(SET_LIB_PATH) \ | |
3662 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3663 | |
3664 | ||
3665 | .PHONY: check-m4 | |
3666 | check-m4: | |
930314a4 | 3667 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3668 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3669 | $(SET_LIB_PATH) \ | |
3670 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3671 | |
3672 | ||
3673 | ||
930314a4 NN |
3674 | .PHONY: install-m4 maybe-install-m4 |
3675 | maybe-install-m4: | |
3866be5d | 3676 | install-m4: installdirs |
930314a4 | 3677 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3678 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3679 | $(SET_LIB_PATH) \ | |
3680 | (cd m4 && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3681 | |
3682 | ||
e2b9e2dc NN |
3683 | .PHONY: configure-make maybe-configure-make |
3684 | maybe-configure-make: | |
e6bfb94a AO |
3685 | configure-make: |
3686 | @test ! -f make/Makefile || exit 0; \ | |
3687 | [ -d make ] || mkdir make; \ | |
e2b9e2dc NN |
3688 | r=`${PWD}`; export r; \ |
3689 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3690 | CC="$(CC)"; export CC; \ | |
3691 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3692 | CXX="$(CXX)"; export CXX; \ | |
3693 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3694 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3695 | AR="$(AR)"; export AR; \ | |
3696 | AS="$(AS)"; export AS; \ | |
3697 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3698 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3699 | LD="$(LD)"; export LD; \ | |
3700 | NM="$(NM)"; export NM; \ | |
3701 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3702 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3703 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3704 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3705 | fi; \ | |
3706 | echo Configuring in make; \ | |
3707 | cd make || exit 1; \ | |
3708 | case $(srcdir) in \ | |
3709 | \.) \ | |
3710 | srcdiroption="--srcdir=."; \ | |
3711 | libsrcdir=".";; \ | |
3712 | /* | [A-Za-z]:[\\/]*) \ | |
3713 | srcdiroption="--srcdir=$(srcdir)/make"; \ | |
3714 | libsrcdir="$$s/make";; \ | |
3715 | *) \ | |
3716 | srcdiroption="--srcdir=../$(srcdir)/make"; \ | |
3717 | libsrcdir="$$s/make";; \ | |
3718 | esac; \ | |
3719 | $(SHELL) $${libsrcdir}/configure \ | |
3720 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3721 | || exit 1 | |
3722 | ||
930314a4 NN |
3723 | .PHONY: all-make maybe-all-make |
3724 | maybe-all-make: | |
db1ac78d | 3725 | all-make: configure-make |
930314a4 | 3726 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3727 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3728 | $(SET_LIB_PATH) \ | |
3729 | (cd make && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3730 | |
3731 | ||
3732 | .PHONY: check-make | |
3733 | check-make: | |
930314a4 | 3734 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3735 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3736 | $(SET_LIB_PATH) \ | |
3737 | (cd make && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3738 | |
3739 | ||
3740 | ||
930314a4 NN |
3741 | .PHONY: install-make maybe-install-make |
3742 | maybe-install-make: | |
3866be5d | 3743 | install-make: installdirs |
930314a4 | 3744 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3745 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3746 | $(SET_LIB_PATH) \ | |
3747 | (cd make && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3748 | |
3749 | ||
e2b9e2dc NN |
3750 | .PHONY: configure-mmalloc maybe-configure-mmalloc |
3751 | maybe-configure-mmalloc: | |
e6bfb94a AO |
3752 | configure-mmalloc: |
3753 | @test ! -f mmalloc/Makefile || exit 0; \ | |
3754 | [ -d mmalloc ] || mkdir mmalloc; \ | |
e2b9e2dc NN |
3755 | r=`${PWD}`; export r; \ |
3756 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3757 | CC="$(CC)"; export CC; \ | |
3758 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3759 | CXX="$(CXX)"; export CXX; \ | |
3760 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3761 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3762 | AR="$(AR)"; export AR; \ | |
3763 | AS="$(AS)"; export AS; \ | |
3764 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3765 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3766 | LD="$(LD)"; export LD; \ | |
3767 | NM="$(NM)"; export NM; \ | |
3768 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3769 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3770 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3771 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3772 | fi; \ | |
3773 | echo Configuring in mmalloc; \ | |
3774 | cd mmalloc || exit 1; \ | |
3775 | case $(srcdir) in \ | |
3776 | \.) \ | |
3777 | srcdiroption="--srcdir=."; \ | |
3778 | libsrcdir=".";; \ | |
3779 | /* | [A-Za-z]:[\\/]*) \ | |
3780 | srcdiroption="--srcdir=$(srcdir)/mmalloc"; \ | |
3781 | libsrcdir="$$s/mmalloc";; \ | |
3782 | *) \ | |
3783 | srcdiroption="--srcdir=../$(srcdir)/mmalloc"; \ | |
3784 | libsrcdir="$$s/mmalloc";; \ | |
3785 | esac; \ | |
3786 | $(SHELL) $${libsrcdir}/configure \ | |
3787 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3788 | || exit 1 | |
3789 | ||
930314a4 NN |
3790 | .PHONY: all-mmalloc maybe-all-mmalloc |
3791 | maybe-all-mmalloc: | |
db1ac78d | 3792 | all-mmalloc: configure-mmalloc |
930314a4 | 3793 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3794 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3795 | $(SET_LIB_PATH) \ | |
3796 | (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3797 | |
3798 | ||
3799 | .PHONY: check-mmalloc | |
3800 | check-mmalloc: | |
3801 | ||
3802 | ||
3803 | ||
930314a4 NN |
3804 | .PHONY: install-mmalloc maybe-install-mmalloc |
3805 | maybe-install-mmalloc: | |
3866be5d | 3806 | install-mmalloc: installdirs |
930314a4 | 3807 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3808 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3809 | $(SET_LIB_PATH) \ | |
3810 | (cd mmalloc && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3811 | |
3812 | ||
e2b9e2dc NN |
3813 | .PHONY: configure-patch maybe-configure-patch |
3814 | maybe-configure-patch: | |
e6bfb94a AO |
3815 | configure-patch: |
3816 | @test ! -f patch/Makefile || exit 0; \ | |
3817 | [ -d patch ] || mkdir patch; \ | |
e2b9e2dc NN |
3818 | r=`${PWD}`; export r; \ |
3819 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3820 | CC="$(CC)"; export CC; \ | |
3821 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3822 | CXX="$(CXX)"; export CXX; \ | |
3823 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3824 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3825 | AR="$(AR)"; export AR; \ | |
3826 | AS="$(AS)"; export AS; \ | |
3827 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3828 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3829 | LD="$(LD)"; export LD; \ | |
3830 | NM="$(NM)"; export NM; \ | |
3831 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3832 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3833 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3834 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3835 | fi; \ | |
3836 | echo Configuring in patch; \ | |
3837 | cd patch || exit 1; \ | |
3838 | case $(srcdir) in \ | |
3839 | \.) \ | |
3840 | srcdiroption="--srcdir=."; \ | |
3841 | libsrcdir=".";; \ | |
3842 | /* | [A-Za-z]:[\\/]*) \ | |
3843 | srcdiroption="--srcdir=$(srcdir)/patch"; \ | |
3844 | libsrcdir="$$s/patch";; \ | |
3845 | *) \ | |
3846 | srcdiroption="--srcdir=../$(srcdir)/patch"; \ | |
3847 | libsrcdir="$$s/patch";; \ | |
3848 | esac; \ | |
3849 | $(SHELL) $${libsrcdir}/configure \ | |
3850 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3851 | || exit 1 | |
3852 | ||
930314a4 NN |
3853 | .PHONY: all-patch maybe-all-patch |
3854 | maybe-all-patch: | |
db1ac78d | 3855 | all-patch: configure-patch |
930314a4 | 3856 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3857 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3858 | $(SET_LIB_PATH) \ | |
3859 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3860 | |
3861 | ||
3862 | .PHONY: check-patch | |
3863 | check-patch: | |
930314a4 | 3864 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3865 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3866 | $(SET_LIB_PATH) \ | |
3867 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3868 | |
3869 | ||
3870 | ||
930314a4 NN |
3871 | .PHONY: install-patch maybe-install-patch |
3872 | maybe-install-patch: | |
3866be5d | 3873 | install-patch: installdirs |
930314a4 | 3874 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3875 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3876 | $(SET_LIB_PATH) \ | |
3877 | (cd patch && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3878 | |
3879 | ||
e2b9e2dc NN |
3880 | .PHONY: configure-perl maybe-configure-perl |
3881 | maybe-configure-perl: | |
e6bfb94a AO |
3882 | configure-perl: |
3883 | @test ! -f perl/Makefile || exit 0; \ | |
3884 | [ -d perl ] || mkdir perl; \ | |
e2b9e2dc NN |
3885 | r=`${PWD}`; export r; \ |
3886 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3887 | CC="$(CC)"; export CC; \ | |
3888 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3889 | CXX="$(CXX)"; export CXX; \ | |
3890 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3891 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3892 | AR="$(AR)"; export AR; \ | |
3893 | AS="$(AS)"; export AS; \ | |
3894 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3895 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3896 | LD="$(LD)"; export LD; \ | |
3897 | NM="$(NM)"; export NM; \ | |
3898 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3899 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3900 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3901 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3902 | fi; \ | |
3903 | echo Configuring in perl; \ | |
3904 | cd perl || exit 1; \ | |
3905 | case $(srcdir) in \ | |
3906 | \.) \ | |
3907 | srcdiroption="--srcdir=."; \ | |
3908 | libsrcdir=".";; \ | |
3909 | /* | [A-Za-z]:[\\/]*) \ | |
3910 | srcdiroption="--srcdir=$(srcdir)/perl"; \ | |
3911 | libsrcdir="$$s/perl";; \ | |
3912 | *) \ | |
3913 | srcdiroption="--srcdir=../$(srcdir)/perl"; \ | |
3914 | libsrcdir="$$s/perl";; \ | |
3915 | esac; \ | |
3916 | $(SHELL) $${libsrcdir}/configure \ | |
3917 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3918 | || exit 1 | |
3919 | ||
930314a4 NN |
3920 | .PHONY: all-perl maybe-all-perl |
3921 | maybe-all-perl: | |
db1ac78d | 3922 | all-perl: configure-perl |
930314a4 | 3923 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3924 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3925 | $(SET_LIB_PATH) \ | |
3926 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3927 | |
3928 | ||
3929 | .PHONY: check-perl | |
3930 | check-perl: | |
930314a4 | 3931 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3932 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3933 | $(SET_LIB_PATH) \ | |
3934 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
3935 | |
3936 | ||
3937 | ||
930314a4 NN |
3938 | .PHONY: install-perl maybe-install-perl |
3939 | maybe-install-perl: | |
3866be5d | 3940 | install-perl: installdirs |
930314a4 | 3941 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3942 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3943 | $(SET_LIB_PATH) \ | |
3944 | (cd perl && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
3945 | |
3946 | ||
e2b9e2dc NN |
3947 | .PHONY: configure-prms maybe-configure-prms |
3948 | maybe-configure-prms: | |
e6bfb94a AO |
3949 | configure-prms: |
3950 | @test ! -f prms/Makefile || exit 0; \ | |
3951 | [ -d prms ] || mkdir prms; \ | |
e2b9e2dc NN |
3952 | r=`${PWD}`; export r; \ |
3953 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
3954 | CC="$(CC)"; export CC; \ | |
3955 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
3956 | CXX="$(CXX)"; export CXX; \ | |
3957 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
3958 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
3959 | AR="$(AR)"; export AR; \ | |
3960 | AS="$(AS)"; export AS; \ | |
3961 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
3962 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
3963 | LD="$(LD)"; export LD; \ | |
3964 | NM="$(NM)"; export NM; \ | |
3965 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
3966 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
3967 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
3968 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
3969 | fi; \ | |
3970 | echo Configuring in prms; \ | |
3971 | cd prms || exit 1; \ | |
3972 | case $(srcdir) in \ | |
3973 | \.) \ | |
3974 | srcdiroption="--srcdir=."; \ | |
3975 | libsrcdir=".";; \ | |
3976 | /* | [A-Za-z]:[\\/]*) \ | |
3977 | srcdiroption="--srcdir=$(srcdir)/prms"; \ | |
3978 | libsrcdir="$$s/prms";; \ | |
3979 | *) \ | |
3980 | srcdiroption="--srcdir=../$(srcdir)/prms"; \ | |
3981 | libsrcdir="$$s/prms";; \ | |
3982 | esac; \ | |
3983 | $(SHELL) $${libsrcdir}/configure \ | |
3984 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
3985 | || exit 1 | |
3986 | ||
930314a4 NN |
3987 | .PHONY: all-prms maybe-all-prms |
3988 | maybe-all-prms: | |
db1ac78d | 3989 | all-prms: configure-prms |
930314a4 | 3990 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3991 | s=`cd $(srcdir); ${PWD}`; export s; \ |
3992 | $(SET_LIB_PATH) \ | |
3993 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
3994 | |
3995 | ||
3996 | .PHONY: check-prms | |
3997 | check-prms: | |
930314a4 | 3998 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
3999 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4000 | $(SET_LIB_PATH) \ | |
4001 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4002 | |
4003 | ||
4004 | ||
930314a4 NN |
4005 | .PHONY: install-prms maybe-install-prms |
4006 | maybe-install-prms: | |
3866be5d | 4007 | install-prms: installdirs |
930314a4 | 4008 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4009 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4010 | $(SET_LIB_PATH) \ | |
4011 | (cd prms && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4012 | |
4013 | ||
e2b9e2dc NN |
4014 | .PHONY: configure-rcs maybe-configure-rcs |
4015 | maybe-configure-rcs: | |
e6bfb94a AO |
4016 | configure-rcs: |
4017 | @test ! -f rcs/Makefile || exit 0; \ | |
4018 | [ -d rcs ] || mkdir rcs; \ | |
e2b9e2dc NN |
4019 | r=`${PWD}`; export r; \ |
4020 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4021 | CC="$(CC)"; export CC; \ | |
4022 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4023 | CXX="$(CXX)"; export CXX; \ | |
4024 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4025 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4026 | AR="$(AR)"; export AR; \ | |
4027 | AS="$(AS)"; export AS; \ | |
4028 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4029 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4030 | LD="$(LD)"; export LD; \ | |
4031 | NM="$(NM)"; export NM; \ | |
4032 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4033 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4034 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4035 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4036 | fi; \ | |
4037 | echo Configuring in rcs; \ | |
4038 | cd rcs || exit 1; \ | |
4039 | case $(srcdir) in \ | |
4040 | \.) \ | |
4041 | srcdiroption="--srcdir=."; \ | |
4042 | libsrcdir=".";; \ | |
4043 | /* | [A-Za-z]:[\\/]*) \ | |
4044 | srcdiroption="--srcdir=$(srcdir)/rcs"; \ | |
4045 | libsrcdir="$$s/rcs";; \ | |
4046 | *) \ | |
4047 | srcdiroption="--srcdir=../$(srcdir)/rcs"; \ | |
4048 | libsrcdir="$$s/rcs";; \ | |
4049 | esac; \ | |
4050 | $(SHELL) $${libsrcdir}/configure \ | |
4051 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4052 | || exit 1 | |
4053 | ||
930314a4 NN |
4054 | .PHONY: all-rcs maybe-all-rcs |
4055 | maybe-all-rcs: | |
db1ac78d | 4056 | all-rcs: configure-rcs |
930314a4 | 4057 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4058 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4059 | $(SET_LIB_PATH) \ | |
4060 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4061 | |
4062 | ||
4063 | .PHONY: check-rcs | |
4064 | check-rcs: | |
930314a4 | 4065 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4066 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4067 | $(SET_LIB_PATH) \ | |
4068 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4069 | |
4070 | ||
4071 | ||
930314a4 NN |
4072 | .PHONY: install-rcs maybe-install-rcs |
4073 | maybe-install-rcs: | |
3866be5d | 4074 | install-rcs: installdirs |
930314a4 | 4075 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4076 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4077 | $(SET_LIB_PATH) \ | |
4078 | (cd rcs && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4079 | |
4080 | ||
e2b9e2dc NN |
4081 | .PHONY: configure-readline maybe-configure-readline |
4082 | maybe-configure-readline: | |
e6bfb94a AO |
4083 | configure-readline: |
4084 | @test ! -f readline/Makefile || exit 0; \ | |
4085 | [ -d readline ] || mkdir readline; \ | |
e2b9e2dc NN |
4086 | r=`${PWD}`; export r; \ |
4087 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4088 | CC="$(CC)"; export CC; \ | |
4089 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4090 | CXX="$(CXX)"; export CXX; \ | |
4091 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4092 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4093 | AR="$(AR)"; export AR; \ | |
4094 | AS="$(AS)"; export AS; \ | |
4095 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4096 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4097 | LD="$(LD)"; export LD; \ | |
4098 | NM="$(NM)"; export NM; \ | |
4099 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4100 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4101 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4102 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4103 | fi; \ | |
4104 | echo Configuring in readline; \ | |
4105 | cd readline || exit 1; \ | |
4106 | case $(srcdir) in \ | |
4107 | \.) \ | |
4108 | srcdiroption="--srcdir=."; \ | |
4109 | libsrcdir=".";; \ | |
4110 | /* | [A-Za-z]:[\\/]*) \ | |
4111 | srcdiroption="--srcdir=$(srcdir)/readline"; \ | |
4112 | libsrcdir="$$s/readline";; \ | |
4113 | *) \ | |
4114 | srcdiroption="--srcdir=../$(srcdir)/readline"; \ | |
4115 | libsrcdir="$$s/readline";; \ | |
4116 | esac; \ | |
4117 | $(SHELL) $${libsrcdir}/configure \ | |
4118 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4119 | || exit 1 | |
4120 | ||
930314a4 NN |
4121 | .PHONY: all-readline maybe-all-readline |
4122 | maybe-all-readline: | |
db1ac78d | 4123 | all-readline: configure-readline |
930314a4 | 4124 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4125 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4126 | $(SET_LIB_PATH) \ | |
4127 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4128 | |
4129 | ||
4130 | .PHONY: check-readline | |
4131 | check-readline: | |
930314a4 | 4132 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4133 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4134 | $(SET_LIB_PATH) \ | |
4135 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4136 | |
4137 | ||
4138 | ||
930314a4 NN |
4139 | .PHONY: install-readline maybe-install-readline |
4140 | maybe-install-readline: | |
3866be5d | 4141 | install-readline: installdirs |
930314a4 | 4142 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4143 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4144 | $(SET_LIB_PATH) \ | |
4145 | (cd readline && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4146 | |
4147 | ||
e2b9e2dc NN |
4148 | .PHONY: configure-release maybe-configure-release |
4149 | maybe-configure-release: | |
e6bfb94a AO |
4150 | configure-release: |
4151 | @test ! -f release/Makefile || exit 0; \ | |
4152 | [ -d release ] || mkdir release; \ | |
e2b9e2dc NN |
4153 | r=`${PWD}`; export r; \ |
4154 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4155 | CC="$(CC)"; export CC; \ | |
4156 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4157 | CXX="$(CXX)"; export CXX; \ | |
4158 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4159 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4160 | AR="$(AR)"; export AR; \ | |
4161 | AS="$(AS)"; export AS; \ | |
4162 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4163 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4164 | LD="$(LD)"; export LD; \ | |
4165 | NM="$(NM)"; export NM; \ | |
4166 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4167 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4168 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4169 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4170 | fi; \ | |
4171 | echo Configuring in release; \ | |
4172 | cd release || exit 1; \ | |
4173 | case $(srcdir) in \ | |
4174 | \.) \ | |
4175 | srcdiroption="--srcdir=."; \ | |
4176 | libsrcdir=".";; \ | |
4177 | /* | [A-Za-z]:[\\/]*) \ | |
4178 | srcdiroption="--srcdir=$(srcdir)/release"; \ | |
4179 | libsrcdir="$$s/release";; \ | |
4180 | *) \ | |
4181 | srcdiroption="--srcdir=../$(srcdir)/release"; \ | |
4182 | libsrcdir="$$s/release";; \ | |
4183 | esac; \ | |
4184 | $(SHELL) $${libsrcdir}/configure \ | |
4185 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4186 | || exit 1 | |
4187 | ||
930314a4 NN |
4188 | .PHONY: all-release maybe-all-release |
4189 | maybe-all-release: | |
db1ac78d | 4190 | all-release: configure-release |
930314a4 | 4191 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4192 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4193 | $(SET_LIB_PATH) \ | |
4194 | (cd release && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4195 | |
4196 | ||
4197 | .PHONY: check-release | |
4198 | check-release: | |
4199 | ||
4200 | ||
4201 | ||
930314a4 NN |
4202 | .PHONY: install-release maybe-install-release |
4203 | maybe-install-release: | |
3866be5d NN |
4204 | install-release: |
4205 | ||
4206 | ||
e2b9e2dc NN |
4207 | .PHONY: configure-recode maybe-configure-recode |
4208 | maybe-configure-recode: | |
e6bfb94a AO |
4209 | configure-recode: |
4210 | @test ! -f recode/Makefile || exit 0; \ | |
4211 | [ -d recode ] || mkdir recode; \ | |
e2b9e2dc NN |
4212 | r=`${PWD}`; export r; \ |
4213 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4214 | CC="$(CC)"; export CC; \ | |
4215 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4216 | CXX="$(CXX)"; export CXX; \ | |
4217 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4218 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4219 | AR="$(AR)"; export AR; \ | |
4220 | AS="$(AS)"; export AS; \ | |
4221 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4222 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4223 | LD="$(LD)"; export LD; \ | |
4224 | NM="$(NM)"; export NM; \ | |
4225 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4226 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4227 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4228 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4229 | fi; \ | |
4230 | echo Configuring in recode; \ | |
4231 | cd recode || exit 1; \ | |
4232 | case $(srcdir) in \ | |
4233 | \.) \ | |
4234 | srcdiroption="--srcdir=."; \ | |
4235 | libsrcdir=".";; \ | |
4236 | /* | [A-Za-z]:[\\/]*) \ | |
4237 | srcdiroption="--srcdir=$(srcdir)/recode"; \ | |
4238 | libsrcdir="$$s/recode";; \ | |
4239 | *) \ | |
4240 | srcdiroption="--srcdir=../$(srcdir)/recode"; \ | |
4241 | libsrcdir="$$s/recode";; \ | |
4242 | esac; \ | |
4243 | $(SHELL) $${libsrcdir}/configure \ | |
4244 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4245 | || exit 1 | |
4246 | ||
930314a4 NN |
4247 | .PHONY: all-recode maybe-all-recode |
4248 | maybe-all-recode: | |
db1ac78d | 4249 | all-recode: configure-recode |
930314a4 | 4250 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4251 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4252 | $(SET_LIB_PATH) \ | |
4253 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4254 | |
4255 | ||
4256 | .PHONY: check-recode | |
4257 | check-recode: | |
930314a4 | 4258 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4259 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4260 | $(SET_LIB_PATH) \ | |
4261 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4262 | |
4263 | ||
4264 | ||
930314a4 NN |
4265 | .PHONY: install-recode maybe-install-recode |
4266 | maybe-install-recode: | |
3866be5d | 4267 | install-recode: installdirs |
930314a4 | 4268 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4269 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4270 | $(SET_LIB_PATH) \ | |
4271 | (cd recode && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4272 | |
4273 | ||
e2b9e2dc NN |
4274 | .PHONY: configure-sed maybe-configure-sed |
4275 | maybe-configure-sed: | |
e6bfb94a AO |
4276 | configure-sed: |
4277 | @test ! -f sed/Makefile || exit 0; \ | |
4278 | [ -d sed ] || mkdir sed; \ | |
e2b9e2dc NN |
4279 | r=`${PWD}`; export r; \ |
4280 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4281 | CC="$(CC)"; export CC; \ | |
4282 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4283 | CXX="$(CXX)"; export CXX; \ | |
4284 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4285 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4286 | AR="$(AR)"; export AR; \ | |
4287 | AS="$(AS)"; export AS; \ | |
4288 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4289 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4290 | LD="$(LD)"; export LD; \ | |
4291 | NM="$(NM)"; export NM; \ | |
4292 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4293 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4294 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4295 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4296 | fi; \ | |
4297 | echo Configuring in sed; \ | |
4298 | cd sed || exit 1; \ | |
4299 | case $(srcdir) in \ | |
4300 | \.) \ | |
4301 | srcdiroption="--srcdir=."; \ | |
4302 | libsrcdir=".";; \ | |
4303 | /* | [A-Za-z]:[\\/]*) \ | |
4304 | srcdiroption="--srcdir=$(srcdir)/sed"; \ | |
4305 | libsrcdir="$$s/sed";; \ | |
4306 | *) \ | |
4307 | srcdiroption="--srcdir=../$(srcdir)/sed"; \ | |
4308 | libsrcdir="$$s/sed";; \ | |
4309 | esac; \ | |
4310 | $(SHELL) $${libsrcdir}/configure \ | |
4311 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4312 | || exit 1 | |
4313 | ||
930314a4 NN |
4314 | .PHONY: all-sed maybe-all-sed |
4315 | maybe-all-sed: | |
db1ac78d | 4316 | all-sed: configure-sed |
930314a4 | 4317 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4318 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4319 | $(SET_LIB_PATH) \ | |
4320 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4321 | |
4322 | ||
4323 | .PHONY: check-sed | |
4324 | check-sed: | |
930314a4 | 4325 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4326 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4327 | $(SET_LIB_PATH) \ | |
4328 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4329 | |
4330 | ||
4331 | ||
930314a4 NN |
4332 | .PHONY: install-sed maybe-install-sed |
4333 | maybe-install-sed: | |
3866be5d | 4334 | install-sed: installdirs |
930314a4 | 4335 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4336 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4337 | $(SET_LIB_PATH) \ | |
4338 | (cd sed && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4339 | |
4340 | ||
e2b9e2dc NN |
4341 | .PHONY: configure-send-pr maybe-configure-send-pr |
4342 | maybe-configure-send-pr: | |
e6bfb94a AO |
4343 | configure-send-pr: |
4344 | @test ! -f send-pr/Makefile || exit 0; \ | |
4345 | [ -d send-pr ] || mkdir send-pr; \ | |
e2b9e2dc NN |
4346 | r=`${PWD}`; export r; \ |
4347 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4348 | CC="$(CC)"; export CC; \ | |
4349 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4350 | CXX="$(CXX)"; export CXX; \ | |
4351 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4352 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4353 | AR="$(AR)"; export AR; \ | |
4354 | AS="$(AS)"; export AS; \ | |
4355 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4356 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4357 | LD="$(LD)"; export LD; \ | |
4358 | NM="$(NM)"; export NM; \ | |
4359 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4360 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4361 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4362 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4363 | fi; \ | |
4364 | echo Configuring in send-pr; \ | |
4365 | cd send-pr || exit 1; \ | |
4366 | case $(srcdir) in \ | |
4367 | \.) \ | |
4368 | srcdiroption="--srcdir=."; \ | |
4369 | libsrcdir=".";; \ | |
4370 | /* | [A-Za-z]:[\\/]*) \ | |
4371 | srcdiroption="--srcdir=$(srcdir)/send-pr"; \ | |
4372 | libsrcdir="$$s/send-pr";; \ | |
4373 | *) \ | |
4374 | srcdiroption="--srcdir=../$(srcdir)/send-pr"; \ | |
4375 | libsrcdir="$$s/send-pr";; \ | |
4376 | esac; \ | |
4377 | $(SHELL) $${libsrcdir}/configure \ | |
4378 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4379 | || exit 1 | |
4380 | ||
930314a4 NN |
4381 | .PHONY: all-send-pr maybe-all-send-pr |
4382 | maybe-all-send-pr: | |
db1ac78d | 4383 | all-send-pr: configure-send-pr |
930314a4 | 4384 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4385 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4386 | $(SET_LIB_PATH) \ | |
4387 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4388 | |
4389 | ||
4390 | .PHONY: check-send-pr | |
4391 | check-send-pr: | |
930314a4 | 4392 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4393 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4394 | $(SET_LIB_PATH) \ | |
4395 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4396 | |
4397 | ||
4398 | ||
930314a4 NN |
4399 | .PHONY: install-send-pr maybe-install-send-pr |
4400 | maybe-install-send-pr: | |
3866be5d | 4401 | install-send-pr: installdirs |
930314a4 | 4402 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4403 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4404 | $(SET_LIB_PATH) \ | |
4405 | (cd send-pr && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4406 | |
4407 | ||
e2b9e2dc NN |
4408 | .PHONY: configure-shellutils maybe-configure-shellutils |
4409 | maybe-configure-shellutils: | |
e6bfb94a AO |
4410 | configure-shellutils: |
4411 | @test ! -f shellutils/Makefile || exit 0; \ | |
4412 | [ -d shellutils ] || mkdir shellutils; \ | |
e2b9e2dc NN |
4413 | r=`${PWD}`; export r; \ |
4414 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4415 | CC="$(CC)"; export CC; \ | |
4416 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4417 | CXX="$(CXX)"; export CXX; \ | |
4418 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4419 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4420 | AR="$(AR)"; export AR; \ | |
4421 | AS="$(AS)"; export AS; \ | |
4422 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4423 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4424 | LD="$(LD)"; export LD; \ | |
4425 | NM="$(NM)"; export NM; \ | |
4426 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4427 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4428 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4429 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4430 | fi; \ | |
4431 | echo Configuring in shellutils; \ | |
4432 | cd shellutils || exit 1; \ | |
4433 | case $(srcdir) in \ | |
4434 | \.) \ | |
4435 | srcdiroption="--srcdir=."; \ | |
4436 | libsrcdir=".";; \ | |
4437 | /* | [A-Za-z]:[\\/]*) \ | |
4438 | srcdiroption="--srcdir=$(srcdir)/shellutils"; \ | |
4439 | libsrcdir="$$s/shellutils";; \ | |
4440 | *) \ | |
4441 | srcdiroption="--srcdir=../$(srcdir)/shellutils"; \ | |
4442 | libsrcdir="$$s/shellutils";; \ | |
4443 | esac; \ | |
4444 | $(SHELL) $${libsrcdir}/configure \ | |
4445 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4446 | || exit 1 | |
4447 | ||
930314a4 NN |
4448 | .PHONY: all-shellutils maybe-all-shellutils |
4449 | maybe-all-shellutils: | |
db1ac78d | 4450 | all-shellutils: configure-shellutils |
930314a4 | 4451 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4452 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4453 | $(SET_LIB_PATH) \ | |
4454 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4455 | |
4456 | ||
4457 | .PHONY: check-shellutils | |
4458 | check-shellutils: | |
930314a4 | 4459 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4460 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4461 | $(SET_LIB_PATH) \ | |
4462 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4463 | |
4464 | ||
4465 | ||
930314a4 NN |
4466 | .PHONY: install-shellutils maybe-install-shellutils |
4467 | maybe-install-shellutils: | |
3866be5d | 4468 | install-shellutils: installdirs |
930314a4 | 4469 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4470 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4471 | $(SET_LIB_PATH) \ | |
4472 | (cd shellutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4473 | |
4474 | ||
e2b9e2dc NN |
4475 | .PHONY: configure-sid maybe-configure-sid |
4476 | maybe-configure-sid: | |
e6bfb94a AO |
4477 | configure-sid: |
4478 | @test ! -f sid/Makefile || exit 0; \ | |
4479 | [ -d sid ] || mkdir sid; \ | |
e2b9e2dc NN |
4480 | r=`${PWD}`; export r; \ |
4481 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4482 | CC="$(CC)"; export CC; \ | |
4483 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4484 | CXX="$(CXX)"; export CXX; \ | |
4485 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4486 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4487 | AR="$(AR)"; export AR; \ | |
4488 | AS="$(AS)"; export AS; \ | |
4489 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4490 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4491 | LD="$(LD)"; export LD; \ | |
4492 | NM="$(NM)"; export NM; \ | |
4493 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4494 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4495 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4496 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4497 | fi; \ | |
4498 | echo Configuring in sid; \ | |
4499 | cd sid || exit 1; \ | |
4500 | case $(srcdir) in \ | |
4501 | \.) \ | |
4502 | srcdiroption="--srcdir=."; \ | |
4503 | libsrcdir=".";; \ | |
4504 | /* | [A-Za-z]:[\\/]*) \ | |
4505 | srcdiroption="--srcdir=$(srcdir)/sid"; \ | |
4506 | libsrcdir="$$s/sid";; \ | |
4507 | *) \ | |
4508 | srcdiroption="--srcdir=../$(srcdir)/sid"; \ | |
4509 | libsrcdir="$$s/sid";; \ | |
4510 | esac; \ | |
4511 | $(SHELL) $${libsrcdir}/configure \ | |
4512 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4513 | || exit 1 | |
4514 | ||
930314a4 NN |
4515 | .PHONY: all-sid maybe-all-sid |
4516 | maybe-all-sid: | |
db1ac78d | 4517 | all-sid: configure-sid |
930314a4 | 4518 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4519 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4520 | $(SET_LIB_PATH) \ | |
4521 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4522 | |
4523 | ||
4524 | .PHONY: check-sid | |
4525 | check-sid: | |
930314a4 | 4526 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4527 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4528 | $(SET_LIB_PATH) \ | |
4529 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4530 | |
4531 | ||
4532 | ||
930314a4 NN |
4533 | .PHONY: install-sid maybe-install-sid |
4534 | maybe-install-sid: | |
3866be5d | 4535 | install-sid: installdirs |
930314a4 | 4536 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4537 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4538 | $(SET_LIB_PATH) \ | |
4539 | (cd sid && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4540 | |
4541 | ||
e2b9e2dc NN |
4542 | .PHONY: configure-sim maybe-configure-sim |
4543 | maybe-configure-sim: | |
e6bfb94a AO |
4544 | configure-sim: |
4545 | @test ! -f sim/Makefile || exit 0; \ | |
4546 | [ -d sim ] || mkdir sim; \ | |
e2b9e2dc NN |
4547 | r=`${PWD}`; export r; \ |
4548 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4549 | CC="$(CC)"; export CC; \ | |
4550 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4551 | CXX="$(CXX)"; export CXX; \ | |
4552 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4553 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4554 | AR="$(AR)"; export AR; \ | |
4555 | AS="$(AS)"; export AS; \ | |
4556 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4557 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4558 | LD="$(LD)"; export LD; \ | |
4559 | NM="$(NM)"; export NM; \ | |
4560 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4561 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4562 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4563 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4564 | fi; \ | |
4565 | echo Configuring in sim; \ | |
4566 | cd sim || exit 1; \ | |
4567 | case $(srcdir) in \ | |
4568 | \.) \ | |
4569 | srcdiroption="--srcdir=."; \ | |
4570 | libsrcdir=".";; \ | |
4571 | /* | [A-Za-z]:[\\/]*) \ | |
4572 | srcdiroption="--srcdir=$(srcdir)/sim"; \ | |
4573 | libsrcdir="$$s/sim";; \ | |
4574 | *) \ | |
4575 | srcdiroption="--srcdir=../$(srcdir)/sim"; \ | |
4576 | libsrcdir="$$s/sim";; \ | |
4577 | esac; \ | |
4578 | $(SHELL) $${libsrcdir}/configure \ | |
4579 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4580 | || exit 1 | |
4581 | ||
930314a4 NN |
4582 | .PHONY: all-sim maybe-all-sim |
4583 | maybe-all-sim: | |
db1ac78d | 4584 | all-sim: configure-sim |
930314a4 | 4585 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4586 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4587 | $(SET_LIB_PATH) \ | |
4588 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4589 | |
4590 | ||
4591 | .PHONY: check-sim | |
4592 | check-sim: | |
930314a4 | 4593 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4594 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4595 | $(SET_LIB_PATH) \ | |
4596 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4597 | |
4598 | ||
4599 | ||
930314a4 NN |
4600 | .PHONY: install-sim maybe-install-sim |
4601 | maybe-install-sim: | |
3866be5d | 4602 | install-sim: installdirs |
930314a4 | 4603 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4604 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4605 | $(SET_LIB_PATH) \ | |
4606 | (cd sim && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4607 | |
4608 | ||
e2b9e2dc NN |
4609 | .PHONY: configure-tar maybe-configure-tar |
4610 | maybe-configure-tar: | |
e6bfb94a AO |
4611 | configure-tar: |
4612 | @test ! -f tar/Makefile || exit 0; \ | |
4613 | [ -d tar ] || mkdir tar; \ | |
e2b9e2dc NN |
4614 | r=`${PWD}`; export r; \ |
4615 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4616 | CC="$(CC)"; export CC; \ | |
4617 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4618 | CXX="$(CXX)"; export CXX; \ | |
4619 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4620 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4621 | AR="$(AR)"; export AR; \ | |
4622 | AS="$(AS)"; export AS; \ | |
4623 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4624 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4625 | LD="$(LD)"; export LD; \ | |
4626 | NM="$(NM)"; export NM; \ | |
4627 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4628 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4629 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4630 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4631 | fi; \ | |
4632 | echo Configuring in tar; \ | |
4633 | cd tar || exit 1; \ | |
4634 | case $(srcdir) in \ | |
4635 | \.) \ | |
4636 | srcdiroption="--srcdir=."; \ | |
4637 | libsrcdir=".";; \ | |
4638 | /* | [A-Za-z]:[\\/]*) \ | |
4639 | srcdiroption="--srcdir=$(srcdir)/tar"; \ | |
4640 | libsrcdir="$$s/tar";; \ | |
4641 | *) \ | |
4642 | srcdiroption="--srcdir=../$(srcdir)/tar"; \ | |
4643 | libsrcdir="$$s/tar";; \ | |
4644 | esac; \ | |
4645 | $(SHELL) $${libsrcdir}/configure \ | |
4646 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4647 | || exit 1 | |
4648 | ||
930314a4 NN |
4649 | .PHONY: all-tar maybe-all-tar |
4650 | maybe-all-tar: | |
db1ac78d | 4651 | all-tar: configure-tar |
930314a4 | 4652 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4653 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4654 | $(SET_LIB_PATH) \ | |
4655 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4656 | |
4657 | ||
4658 | .PHONY: check-tar | |
4659 | check-tar: | |
930314a4 | 4660 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4661 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4662 | $(SET_LIB_PATH) \ | |
4663 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4664 | |
4665 | ||
4666 | ||
930314a4 NN |
4667 | .PHONY: install-tar maybe-install-tar |
4668 | maybe-install-tar: | |
3866be5d | 4669 | install-tar: installdirs |
930314a4 | 4670 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4671 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4672 | $(SET_LIB_PATH) \ | |
4673 | (cd tar && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4674 | |
4675 | ||
e2b9e2dc NN |
4676 | .PHONY: configure-texinfo maybe-configure-texinfo |
4677 | maybe-configure-texinfo: | |
e6bfb94a AO |
4678 | configure-texinfo: |
4679 | @test ! -f texinfo/Makefile || exit 0; \ | |
4680 | [ -d texinfo ] || mkdir texinfo; \ | |
e2b9e2dc NN |
4681 | r=`${PWD}`; export r; \ |
4682 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4683 | CC="$(CC)"; export CC; \ | |
4684 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4685 | CXX="$(CXX)"; export CXX; \ | |
4686 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4687 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4688 | AR="$(AR)"; export AR; \ | |
4689 | AS="$(AS)"; export AS; \ | |
4690 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4691 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4692 | LD="$(LD)"; export LD; \ | |
4693 | NM="$(NM)"; export NM; \ | |
4694 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4695 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4696 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4697 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4698 | fi; \ | |
4699 | echo Configuring in texinfo; \ | |
4700 | cd texinfo || exit 1; \ | |
4701 | case $(srcdir) in \ | |
4702 | \.) \ | |
4703 | srcdiroption="--srcdir=."; \ | |
4704 | libsrcdir=".";; \ | |
4705 | /* | [A-Za-z]:[\\/]*) \ | |
4706 | srcdiroption="--srcdir=$(srcdir)/texinfo"; \ | |
4707 | libsrcdir="$$s/texinfo";; \ | |
4708 | *) \ | |
4709 | srcdiroption="--srcdir=../$(srcdir)/texinfo"; \ | |
4710 | libsrcdir="$$s/texinfo";; \ | |
4711 | esac; \ | |
4712 | $(SHELL) $${libsrcdir}/configure \ | |
4713 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4714 | || exit 1 | |
4715 | ||
930314a4 NN |
4716 | .PHONY: all-texinfo maybe-all-texinfo |
4717 | maybe-all-texinfo: | |
db1ac78d | 4718 | all-texinfo: configure-texinfo |
930314a4 | 4719 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4720 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4721 | $(SET_LIB_PATH) \ | |
4722 | (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4723 | |
4724 | ||
4725 | .PHONY: check-texinfo | |
4726 | check-texinfo: | |
930314a4 | 4727 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4728 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4729 | $(SET_LIB_PATH) \ | |
4730 | (cd texinfo && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4731 | |
4732 | ||
4733 | ||
930314a4 NN |
4734 | .PHONY: install-texinfo maybe-install-texinfo |
4735 | maybe-install-texinfo: | |
3866be5d NN |
4736 | install-texinfo: |
4737 | ||
4738 | ||
e2b9e2dc NN |
4739 | .PHONY: configure-textutils maybe-configure-textutils |
4740 | maybe-configure-textutils: | |
e6bfb94a AO |
4741 | configure-textutils: |
4742 | @test ! -f textutils/Makefile || exit 0; \ | |
4743 | [ -d textutils ] || mkdir textutils; \ | |
e2b9e2dc NN |
4744 | r=`${PWD}`; export r; \ |
4745 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4746 | CC="$(CC)"; export CC; \ | |
4747 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4748 | CXX="$(CXX)"; export CXX; \ | |
4749 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4750 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4751 | AR="$(AR)"; export AR; \ | |
4752 | AS="$(AS)"; export AS; \ | |
4753 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4754 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4755 | LD="$(LD)"; export LD; \ | |
4756 | NM="$(NM)"; export NM; \ | |
4757 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4758 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4759 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4760 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4761 | fi; \ | |
4762 | echo Configuring in textutils; \ | |
4763 | cd textutils || exit 1; \ | |
4764 | case $(srcdir) in \ | |
4765 | \.) \ | |
4766 | srcdiroption="--srcdir=."; \ | |
4767 | libsrcdir=".";; \ | |
4768 | /* | [A-Za-z]:[\\/]*) \ | |
4769 | srcdiroption="--srcdir=$(srcdir)/textutils"; \ | |
4770 | libsrcdir="$$s/textutils";; \ | |
4771 | *) \ | |
4772 | srcdiroption="--srcdir=../$(srcdir)/textutils"; \ | |
4773 | libsrcdir="$$s/textutils";; \ | |
4774 | esac; \ | |
4775 | $(SHELL) $${libsrcdir}/configure \ | |
4776 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4777 | || exit 1 | |
4778 | ||
930314a4 NN |
4779 | .PHONY: all-textutils maybe-all-textutils |
4780 | maybe-all-textutils: | |
db1ac78d | 4781 | all-textutils: configure-textutils |
930314a4 | 4782 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4783 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4784 | $(SET_LIB_PATH) \ | |
4785 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4786 | |
4787 | ||
4788 | .PHONY: check-textutils | |
4789 | check-textutils: | |
930314a4 | 4790 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4791 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4792 | $(SET_LIB_PATH) \ | |
4793 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4794 | |
4795 | ||
4796 | ||
930314a4 NN |
4797 | .PHONY: install-textutils maybe-install-textutils |
4798 | maybe-install-textutils: | |
3866be5d | 4799 | install-textutils: installdirs |
930314a4 | 4800 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4801 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4802 | $(SET_LIB_PATH) \ | |
4803 | (cd textutils && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4804 | |
4805 | ||
e2b9e2dc NN |
4806 | .PHONY: configure-time maybe-configure-time |
4807 | maybe-configure-time: | |
e6bfb94a AO |
4808 | configure-time: |
4809 | @test ! -f time/Makefile || exit 0; \ | |
4810 | [ -d time ] || mkdir time; \ | |
e2b9e2dc NN |
4811 | r=`${PWD}`; export r; \ |
4812 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4813 | CC="$(CC)"; export CC; \ | |
4814 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4815 | CXX="$(CXX)"; export CXX; \ | |
4816 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4817 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4818 | AR="$(AR)"; export AR; \ | |
4819 | AS="$(AS)"; export AS; \ | |
4820 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4821 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4822 | LD="$(LD)"; export LD; \ | |
4823 | NM="$(NM)"; export NM; \ | |
4824 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4825 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4826 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4827 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4828 | fi; \ | |
4829 | echo Configuring in time; \ | |
4830 | cd time || exit 1; \ | |
4831 | case $(srcdir) in \ | |
4832 | \.) \ | |
4833 | srcdiroption="--srcdir=."; \ | |
4834 | libsrcdir=".";; \ | |
4835 | /* | [A-Za-z]:[\\/]*) \ | |
4836 | srcdiroption="--srcdir=$(srcdir)/time"; \ | |
4837 | libsrcdir="$$s/time";; \ | |
4838 | *) \ | |
4839 | srcdiroption="--srcdir=../$(srcdir)/time"; \ | |
4840 | libsrcdir="$$s/time";; \ | |
4841 | esac; \ | |
4842 | $(SHELL) $${libsrcdir}/configure \ | |
4843 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4844 | || exit 1 | |
4845 | ||
930314a4 NN |
4846 | .PHONY: all-time maybe-all-time |
4847 | maybe-all-time: | |
db1ac78d | 4848 | all-time: configure-time |
930314a4 | 4849 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4850 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4851 | $(SET_LIB_PATH) \ | |
4852 | (cd time && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4853 | |
4854 | ||
4855 | .PHONY: check-time | |
4856 | check-time: | |
930314a4 | 4857 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4858 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4859 | $(SET_LIB_PATH) \ | |
4860 | (cd time && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4861 | |
4862 | ||
4863 | ||
930314a4 NN |
4864 | .PHONY: install-time maybe-install-time |
4865 | maybe-install-time: | |
3866be5d | 4866 | install-time: installdirs |
930314a4 | 4867 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4868 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4869 | $(SET_LIB_PATH) \ | |
4870 | (cd time && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4871 | |
4872 | ||
e2b9e2dc NN |
4873 | .PHONY: configure-uudecode maybe-configure-uudecode |
4874 | maybe-configure-uudecode: | |
e6bfb94a AO |
4875 | configure-uudecode: |
4876 | @test ! -f uudecode/Makefile || exit 0; \ | |
4877 | [ -d uudecode ] || mkdir uudecode; \ | |
e2b9e2dc NN |
4878 | r=`${PWD}`; export r; \ |
4879 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4880 | CC="$(CC)"; export CC; \ | |
4881 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4882 | CXX="$(CXX)"; export CXX; \ | |
4883 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4884 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4885 | AR="$(AR)"; export AR; \ | |
4886 | AS="$(AS)"; export AS; \ | |
4887 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4888 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4889 | LD="$(LD)"; export LD; \ | |
4890 | NM="$(NM)"; export NM; \ | |
4891 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4892 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4893 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4894 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4895 | fi; \ | |
4896 | echo Configuring in uudecode; \ | |
4897 | cd uudecode || exit 1; \ | |
4898 | case $(srcdir) in \ | |
4899 | \.) \ | |
4900 | srcdiroption="--srcdir=."; \ | |
4901 | libsrcdir=".";; \ | |
4902 | /* | [A-Za-z]:[\\/]*) \ | |
4903 | srcdiroption="--srcdir=$(srcdir)/uudecode"; \ | |
4904 | libsrcdir="$$s/uudecode";; \ | |
4905 | *) \ | |
4906 | srcdiroption="--srcdir=../$(srcdir)/uudecode"; \ | |
4907 | libsrcdir="$$s/uudecode";; \ | |
4908 | esac; \ | |
4909 | $(SHELL) $${libsrcdir}/configure \ | |
4910 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4911 | || exit 1 | |
4912 | ||
930314a4 NN |
4913 | .PHONY: all-uudecode maybe-all-uudecode |
4914 | maybe-all-uudecode: | |
db1ac78d | 4915 | all-uudecode: configure-uudecode |
930314a4 | 4916 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4917 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4918 | $(SET_LIB_PATH) \ | |
4919 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4920 | |
4921 | ||
4922 | .PHONY: check-uudecode | |
4923 | check-uudecode: | |
930314a4 | 4924 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4925 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4926 | $(SET_LIB_PATH) \ | |
4927 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4928 | |
4929 | ||
4930 | ||
930314a4 NN |
4931 | .PHONY: install-uudecode maybe-install-uudecode |
4932 | maybe-install-uudecode: | |
3866be5d | 4933 | install-uudecode: installdirs |
930314a4 | 4934 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4935 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4936 | $(SET_LIB_PATH) \ | |
4937 | (cd uudecode && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
4938 | |
4939 | ||
e2b9e2dc NN |
4940 | .PHONY: configure-wdiff maybe-configure-wdiff |
4941 | maybe-configure-wdiff: | |
e6bfb94a AO |
4942 | configure-wdiff: |
4943 | @test ! -f wdiff/Makefile || exit 0; \ | |
4944 | [ -d wdiff ] || mkdir wdiff; \ | |
e2b9e2dc NN |
4945 | r=`${PWD}`; export r; \ |
4946 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
4947 | CC="$(CC)"; export CC; \ | |
4948 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
4949 | CXX="$(CXX)"; export CXX; \ | |
4950 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
4951 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
4952 | AR="$(AR)"; export AR; \ | |
4953 | AS="$(AS)"; export AS; \ | |
4954 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
4955 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
4956 | LD="$(LD)"; export LD; \ | |
4957 | NM="$(NM)"; export NM; \ | |
4958 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
4959 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
4960 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
4961 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
4962 | fi; \ | |
4963 | echo Configuring in wdiff; \ | |
4964 | cd wdiff || exit 1; \ | |
4965 | case $(srcdir) in \ | |
4966 | \.) \ | |
4967 | srcdiroption="--srcdir=."; \ | |
4968 | libsrcdir=".";; \ | |
4969 | /* | [A-Za-z]:[\\/]*) \ | |
4970 | srcdiroption="--srcdir=$(srcdir)/wdiff"; \ | |
4971 | libsrcdir="$$s/wdiff";; \ | |
4972 | *) \ | |
4973 | srcdiroption="--srcdir=../$(srcdir)/wdiff"; \ | |
4974 | libsrcdir="$$s/wdiff";; \ | |
4975 | esac; \ | |
4976 | $(SHELL) $${libsrcdir}/configure \ | |
4977 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
4978 | || exit 1 | |
4979 | ||
930314a4 NN |
4980 | .PHONY: all-wdiff maybe-all-wdiff |
4981 | maybe-all-wdiff: | |
db1ac78d | 4982 | all-wdiff: configure-wdiff |
930314a4 | 4983 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4984 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4985 | $(SET_LIB_PATH) \ | |
4986 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
4987 | |
4988 | ||
4989 | .PHONY: check-wdiff | |
4990 | check-wdiff: | |
930314a4 | 4991 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
4992 | s=`cd $(srcdir); ${PWD}`; export s; \ |
4993 | $(SET_LIB_PATH) \ | |
4994 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) check) | |
3866be5d NN |
4995 | |
4996 | ||
4997 | ||
930314a4 NN |
4998 | .PHONY: install-wdiff maybe-install-wdiff |
4999 | maybe-install-wdiff: | |
3866be5d | 5000 | install-wdiff: installdirs |
930314a4 | 5001 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5002 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5003 | $(SET_LIB_PATH) \ | |
5004 | (cd wdiff && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
5005 | |
5006 | ||
e2b9e2dc NN |
5007 | .PHONY: configure-zip maybe-configure-zip |
5008 | maybe-configure-zip: | |
e6bfb94a AO |
5009 | configure-zip: |
5010 | @test ! -f zip/Makefile || exit 0; \ | |
5011 | [ -d zip ] || mkdir zip; \ | |
e2b9e2dc NN |
5012 | r=`${PWD}`; export r; \ |
5013 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5014 | CC="$(CC)"; export CC; \ | |
5015 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5016 | CXX="$(CXX)"; export CXX; \ | |
5017 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5018 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5019 | AR="$(AR)"; export AR; \ | |
5020 | AS="$(AS)"; export AS; \ | |
5021 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5022 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5023 | LD="$(LD)"; export LD; \ | |
5024 | NM="$(NM)"; export NM; \ | |
5025 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5026 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5027 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5028 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5029 | fi; \ | |
5030 | echo Configuring in zip; \ | |
5031 | cd zip || exit 1; \ | |
5032 | case $(srcdir) in \ | |
5033 | \.) \ | |
5034 | srcdiroption="--srcdir=."; \ | |
5035 | libsrcdir=".";; \ | |
5036 | /* | [A-Za-z]:[\\/]*) \ | |
5037 | srcdiroption="--srcdir=$(srcdir)/zip"; \ | |
5038 | libsrcdir="$$s/zip";; \ | |
5039 | *) \ | |
5040 | srcdiroption="--srcdir=../$(srcdir)/zip"; \ | |
5041 | libsrcdir="$$s/zip";; \ | |
5042 | esac; \ | |
5043 | $(SHELL) $${libsrcdir}/configure \ | |
5044 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5045 | || exit 1 | |
5046 | ||
930314a4 NN |
5047 | .PHONY: all-zip maybe-all-zip |
5048 | maybe-all-zip: | |
db1ac78d | 5049 | all-zip: configure-zip |
930314a4 | 5050 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5051 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5052 | $(SET_LIB_PATH) \ | |
5053 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
5054 | |
5055 | ||
5056 | .PHONY: check-zip | |
5057 | # This module is only tested in a native toolchain. | |
5058 | check-zip: | |
5059 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ | |
bba45b8b NN |
5060 | r=`${PWD}`; export r; \ |
5061 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5062 | $(SET_LIB_PATH) \ | |
5063 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) check); \ | |
3866be5d NN |
5064 | fi |
5065 | ||
5066 | ||
5067 | ||
930314a4 NN |
5068 | .PHONY: install-zip maybe-install-zip |
5069 | maybe-install-zip: | |
3866be5d | 5070 | install-zip: installdirs |
930314a4 | 5071 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5072 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5073 | $(SET_LIB_PATH) \ | |
5074 | (cd zip && $(MAKE) $(FLAGS_TO_PASS) install) | |
3866be5d NN |
5075 | |
5076 | ||
e2b9e2dc NN |
5077 | .PHONY: configure-zlib maybe-configure-zlib |
5078 | maybe-configure-zlib: | |
e6bfb94a AO |
5079 | configure-zlib: |
5080 | @test ! -f zlib/Makefile || exit 0; \ | |
5081 | [ -d zlib ] || mkdir zlib; \ | |
e2b9e2dc NN |
5082 | r=`${PWD}`; export r; \ |
5083 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5084 | CC="$(CC)"; export CC; \ | |
5085 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5086 | CXX="$(CXX)"; export CXX; \ | |
5087 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5088 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5089 | AR="$(AR)"; export AR; \ | |
5090 | AS="$(AS)"; export AS; \ | |
5091 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5092 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5093 | LD="$(LD)"; export LD; \ | |
5094 | NM="$(NM)"; export NM; \ | |
5095 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5096 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5097 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5098 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5099 | fi; \ | |
5100 | echo Configuring in zlib; \ | |
5101 | cd zlib || exit 1; \ | |
5102 | case $(srcdir) in \ | |
5103 | \.) \ | |
5104 | srcdiroption="--srcdir=."; \ | |
5105 | libsrcdir=".";; \ | |
5106 | /* | [A-Za-z]:[\\/]*) \ | |
5107 | srcdiroption="--srcdir=$(srcdir)/zlib"; \ | |
5108 | libsrcdir="$$s/zlib";; \ | |
5109 | *) \ | |
5110 | srcdiroption="--srcdir=../$(srcdir)/zlib"; \ | |
5111 | libsrcdir="$$s/zlib";; \ | |
5112 | esac; \ | |
5113 | $(SHELL) $${libsrcdir}/configure \ | |
5114 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5115 | || exit 1 | |
5116 | ||
930314a4 NN |
5117 | .PHONY: all-zlib maybe-all-zlib |
5118 | maybe-all-zlib: | |
db1ac78d | 5119 | all-zlib: configure-zlib |
930314a4 | 5120 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5121 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5122 | $(SET_LIB_PATH) \ | |
5123 | (cd zlib && $(MAKE) $(FLAGS_TO_PASS) all) | |
3866be5d NN |
5124 | |
5125 | ||
5126 | .PHONY: check-zlib | |
5127 | check-zlib: | |
5128 | ||
5129 | ||
5130 | ||
930314a4 NN |
5131 | .PHONY: install-zlib maybe-install-zlib |
5132 | maybe-install-zlib: | |
3866be5d NN |
5133 | install-zlib: |
5134 | ||
5135 | ||
e2b9e2dc NN |
5136 | .PHONY: configure-gdb maybe-configure-gdb |
5137 | maybe-configure-gdb: | |
e6bfb94a AO |
5138 | configure-gdb: |
5139 | @test ! -f gdb/Makefile || exit 0; \ | |
5140 | [ -d gdb ] || mkdir gdb; \ | |
e2b9e2dc NN |
5141 | r=`${PWD}`; export r; \ |
5142 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5143 | CC="$(CC)"; export CC; \ | |
5144 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5145 | CXX="$(CXX)"; export CXX; \ | |
5146 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5147 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5148 | AR="$(AR)"; export AR; \ | |
5149 | AS="$(AS)"; export AS; \ | |
5150 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5151 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5152 | LD="$(LD)"; export LD; \ | |
5153 | NM="$(NM)"; export NM; \ | |
5154 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5155 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5156 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5157 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5158 | fi; \ | |
5159 | echo Configuring in gdb; \ | |
5160 | cd gdb || exit 1; \ | |
5161 | case $(srcdir) in \ | |
5162 | \.) \ | |
5163 | srcdiroption="--srcdir=."; \ | |
5164 | libsrcdir=".";; \ | |
5165 | /* | [A-Za-z]:[\\/]*) \ | |
5166 | srcdiroption="--srcdir=$(srcdir)/gdb"; \ | |
5167 | libsrcdir="$$s/gdb";; \ | |
5168 | *) \ | |
5169 | srcdiroption="--srcdir=../$(srcdir)/gdb"; \ | |
5170 | libsrcdir="$$s/gdb";; \ | |
5171 | esac; \ | |
5172 | $(SHELL) $${libsrcdir}/configure \ | |
5173 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5174 | || exit 1 | |
5175 | ||
930314a4 NN |
5176 | .PHONY: all-gdb maybe-all-gdb |
5177 | maybe-all-gdb: | |
db1ac78d | 5178 | all-gdb: configure-gdb |
930314a4 | 5179 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5180 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5181 | $(SET_LIB_PATH) \ | |
5182 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) | |
3866be5d NN |
5183 | |
5184 | ||
5185 | .PHONY: check-gdb | |
5186 | check-gdb: | |
930314a4 | 5187 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5188 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5189 | $(SET_LIB_PATH) \ | |
5190 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d NN |
5191 | |
5192 | ||
5193 | ||
930314a4 NN |
5194 | .PHONY: install-gdb maybe-install-gdb |
5195 | maybe-install-gdb: | |
3866be5d | 5196 | install-gdb: installdirs |
930314a4 | 5197 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5198 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5199 | $(SET_LIB_PATH) \ | |
5200 | (cd gdb && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) | |
3866be5d NN |
5201 | |
5202 | ||
e2b9e2dc NN |
5203 | .PHONY: configure-expect maybe-configure-expect |
5204 | maybe-configure-expect: | |
e6bfb94a AO |
5205 | configure-expect: |
5206 | @test ! -f expect/Makefile || exit 0; \ | |
5207 | [ -d expect ] || mkdir expect; \ | |
e2b9e2dc NN |
5208 | r=`${PWD}`; export r; \ |
5209 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5210 | CC="$(CC)"; export CC; \ | |
5211 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5212 | CXX="$(CXX)"; export CXX; \ | |
5213 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5214 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5215 | AR="$(AR)"; export AR; \ | |
5216 | AS="$(AS)"; export AS; \ | |
5217 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5218 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5219 | LD="$(LD)"; export LD; \ | |
5220 | NM="$(NM)"; export NM; \ | |
5221 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5222 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5223 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5224 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5225 | fi; \ | |
5226 | echo Configuring in expect; \ | |
5227 | cd expect || exit 1; \ | |
5228 | case $(srcdir) in \ | |
5229 | \.) \ | |
5230 | srcdiroption="--srcdir=."; \ | |
5231 | libsrcdir=".";; \ | |
5232 | /* | [A-Za-z]:[\\/]*) \ | |
5233 | srcdiroption="--srcdir=$(srcdir)/expect"; \ | |
5234 | libsrcdir="$$s/expect";; \ | |
5235 | *) \ | |
5236 | srcdiroption="--srcdir=../$(srcdir)/expect"; \ | |
5237 | libsrcdir="$$s/expect";; \ | |
5238 | esac; \ | |
5239 | $(SHELL) $${libsrcdir}/configure \ | |
5240 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5241 | || exit 1 | |
5242 | ||
930314a4 NN |
5243 | .PHONY: all-expect maybe-all-expect |
5244 | maybe-all-expect: | |
db1ac78d | 5245 | all-expect: configure-expect |
930314a4 | 5246 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5247 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5248 | $(SET_LIB_PATH) \ | |
5249 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) | |
3866be5d NN |
5250 | |
5251 | ||
5252 | .PHONY: check-expect | |
5253 | check-expect: | |
930314a4 | 5254 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5255 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5256 | $(SET_LIB_PATH) \ | |
5257 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d NN |
5258 | |
5259 | ||
5260 | ||
930314a4 NN |
5261 | .PHONY: install-expect maybe-install-expect |
5262 | maybe-install-expect: | |
3866be5d | 5263 | install-expect: installdirs |
930314a4 | 5264 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5265 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5266 | $(SET_LIB_PATH) \ | |
5267 | (cd expect && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) | |
3866be5d NN |
5268 | |
5269 | ||
e2b9e2dc NN |
5270 | .PHONY: configure-guile maybe-configure-guile |
5271 | maybe-configure-guile: | |
e6bfb94a AO |
5272 | configure-guile: |
5273 | @test ! -f guile/Makefile || exit 0; \ | |
5274 | [ -d guile ] || mkdir guile; \ | |
e2b9e2dc NN |
5275 | r=`${PWD}`; export r; \ |
5276 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5277 | CC="$(CC)"; export CC; \ | |
5278 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5279 | CXX="$(CXX)"; export CXX; \ | |
5280 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5281 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5282 | AR="$(AR)"; export AR; \ | |
5283 | AS="$(AS)"; export AS; \ | |
5284 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5285 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5286 | LD="$(LD)"; export LD; \ | |
5287 | NM="$(NM)"; export NM; \ | |
5288 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5289 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5290 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5291 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5292 | fi; \ | |
5293 | echo Configuring in guile; \ | |
5294 | cd guile || exit 1; \ | |
5295 | case $(srcdir) in \ | |
5296 | \.) \ | |
5297 | srcdiroption="--srcdir=."; \ | |
5298 | libsrcdir=".";; \ | |
5299 | /* | [A-Za-z]:[\\/]*) \ | |
5300 | srcdiroption="--srcdir=$(srcdir)/guile"; \ | |
5301 | libsrcdir="$$s/guile";; \ | |
5302 | *) \ | |
5303 | srcdiroption="--srcdir=../$(srcdir)/guile"; \ | |
5304 | libsrcdir="$$s/guile";; \ | |
5305 | esac; \ | |
5306 | $(SHELL) $${libsrcdir}/configure \ | |
5307 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5308 | || exit 1 | |
5309 | ||
930314a4 NN |
5310 | .PHONY: all-guile maybe-all-guile |
5311 | maybe-all-guile: | |
db1ac78d | 5312 | all-guile: configure-guile |
930314a4 | 5313 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5314 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5315 | $(SET_LIB_PATH) \ | |
5316 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) | |
3866be5d NN |
5317 | |
5318 | ||
5319 | .PHONY: check-guile | |
5320 | check-guile: | |
930314a4 | 5321 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5322 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5323 | $(SET_LIB_PATH) \ | |
5324 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
3866be5d NN |
5325 | |
5326 | ||
5327 | ||
930314a4 NN |
5328 | .PHONY: install-guile maybe-install-guile |
5329 | maybe-install-guile: | |
3866be5d | 5330 | install-guile: installdirs |
930314a4 | 5331 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5332 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5333 | $(SET_LIB_PATH) \ | |
5334 | (cd guile && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) | |
3866be5d NN |
5335 | |
5336 | ||
e2b9e2dc NN |
5337 | .PHONY: configure-tk maybe-configure-tk |
5338 | maybe-configure-tk: | |
e6bfb94a AO |
5339 | configure-tk: |
5340 | @test ! -f tk/Makefile || exit 0; \ | |
5341 | [ -d tk ] || mkdir tk; \ | |
e2b9e2dc NN |
5342 | r=`${PWD}`; export r; \ |
5343 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5344 | CC="$(CC)"; export CC; \ | |
5345 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5346 | CXX="$(CXX)"; export CXX; \ | |
5347 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5348 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5349 | AR="$(AR)"; export AR; \ | |
5350 | AS="$(AS)"; export AS; \ | |
5351 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5352 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5353 | LD="$(LD)"; export LD; \ | |
5354 | NM="$(NM)"; export NM; \ | |
5355 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5356 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5357 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5358 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5359 | fi; \ | |
5360 | echo Configuring in tk; \ | |
5361 | cd tk || exit 1; \ | |
5362 | case $(srcdir) in \ | |
5363 | \.) \ | |
5364 | srcdiroption="--srcdir=."; \ | |
5365 | libsrcdir=".";; \ | |
5366 | /* | [A-Za-z]:[\\/]*) \ | |
5367 | srcdiroption="--srcdir=$(srcdir)/tk"; \ | |
5368 | libsrcdir="$$s/tk";; \ | |
5369 | *) \ | |
5370 | srcdiroption="--srcdir=../$(srcdir)/tk"; \ | |
5371 | libsrcdir="$$s/tk";; \ | |
5372 | esac; \ | |
5373 | $(SHELL) $${libsrcdir}/configure \ | |
5374 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5375 | || exit 1 | |
5376 | ||
930314a4 NN |
5377 | .PHONY: all-tk maybe-all-tk |
5378 | maybe-all-tk: | |
db1ac78d | 5379 | all-tk: configure-tk |
930314a4 | 5380 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5381 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5382 | $(SET_LIB_PATH) \ | |
5383 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) | |
e393202e | 5384 | |
e393202e | 5385 | |
3866be5d NN |
5386 | .PHONY: check-tk |
5387 | check-tk: | |
930314a4 | 5388 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5389 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5390 | $(SET_LIB_PATH) \ | |
5391 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
e393202e | 5392 | |
e393202e | 5393 | |
3866be5d | 5394 | |
930314a4 NN |
5395 | .PHONY: install-tk maybe-install-tk |
5396 | maybe-install-tk: | |
3866be5d | 5397 | install-tk: installdirs |
930314a4 | 5398 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5399 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5400 | $(SET_LIB_PATH) \ | |
5401 | (cd tk && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) | |
e393202e | 5402 | |
3866be5d | 5403 | |
ce5b542e MC |
5404 | .PHONY: configure-tix maybe-configure-tix |
5405 | maybe-configure-tix: | |
5406 | configure-tix: | |
5407 | @test ! -f tix/Makefile || exit 0; \ | |
5408 | [ -d tix ] || mkdir tix; \ | |
5409 | r=`${PWD}`; export r; \ | |
5410 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5411 | CC="$(CC)"; export CC; \ | |
5412 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5413 | CXX="$(CXX)"; export CXX; \ | |
5414 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5415 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5416 | AR="$(AR)"; export AR; \ | |
5417 | AS="$(AS)"; export AS; \ | |
5418 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5419 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5420 | LD="$(LD)"; export LD; \ | |
5421 | NM="$(NM)"; export NM; \ | |
5422 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5423 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5424 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5425 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5426 | fi; \ | |
5427 | echo Configuring in tix; \ | |
5428 | cd tix || exit 1; \ | |
5429 | case $(srcdir) in \ | |
5430 | \.) \ | |
5431 | srcdiroption="--srcdir=."; \ | |
5432 | libsrcdir=".";; \ | |
5433 | /* | [A-Za-z]:[\\/]*) \ | |
5434 | srcdiroption="--srcdir=$(srcdir)/tix"; \ | |
5435 | libsrcdir="$$s/tix";; \ | |
5436 | *) \ | |
5437 | srcdiroption="--srcdir=../$(srcdir)/tix"; \ | |
5438 | libsrcdir="$$s/tix";; \ | |
5439 | esac; \ | |
5440 | $(SHELL) $${libsrcdir}/configure \ | |
5441 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5442 | || exit 1 | |
5443 | ||
5444 | .PHONY: all-tix maybe-all-tix | |
5445 | maybe-all-tix: | |
5446 | all-tix: configure-tix | |
5447 | @r=`${PWD}`; export r; \ | |
5448 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5449 | $(SET_LIB_PATH) \ | |
5450 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all) | |
5451 | ||
5452 | ||
5453 | .PHONY: check-tix | |
5454 | check-tix: | |
5455 | @r=`${PWD}`; export r; \ | |
5456 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5457 | $(SET_LIB_PATH) \ | |
5458 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check) | |
5459 | ||
5460 | ||
5461 | ||
5462 | .PHONY: install-tix maybe-install-tix | |
5463 | maybe-install-tix: | |
5464 | install-tix: installdirs | |
5465 | @r=`${PWD}`; export r; \ | |
5466 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5467 | $(SET_LIB_PATH) \ | |
5468 | (cd tix && $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install) | |
5469 | ||
5470 | ||
e2b9e2dc NN |
5471 | .PHONY: configure-libtermcap maybe-configure-libtermcap |
5472 | maybe-configure-libtermcap: | |
e6bfb94a AO |
5473 | configure-libtermcap: |
5474 | @test ! -f libtermcap/Makefile || exit 0; \ | |
5475 | [ -d libtermcap ] || mkdir libtermcap; \ | |
e2b9e2dc NN |
5476 | r=`${PWD}`; export r; \ |
5477 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5478 | CC="$(CC)"; export CC; \ | |
5479 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5480 | CXX="$(CXX)"; export CXX; \ | |
5481 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5482 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5483 | AR="$(AR)"; export AR; \ | |
5484 | AS="$(AS)"; export AS; \ | |
5485 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5486 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5487 | LD="$(LD)"; export LD; \ | |
5488 | NM="$(NM)"; export NM; \ | |
5489 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5490 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5491 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5492 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5493 | fi; \ | |
5494 | echo Configuring in libtermcap; \ | |
5495 | cd libtermcap || exit 1; \ | |
5496 | case $(srcdir) in \ | |
5497 | \.) \ | |
5498 | srcdiroption="--srcdir=."; \ | |
5499 | libsrcdir=".";; \ | |
5500 | /* | [A-Za-z]:[\\/]*) \ | |
5501 | srcdiroption="--srcdir=$(srcdir)/libtermcap"; \ | |
5502 | libsrcdir="$$s/libtermcap";; \ | |
5503 | *) \ | |
5504 | srcdiroption="--srcdir=../$(srcdir)/libtermcap"; \ | |
5505 | libsrcdir="$$s/libtermcap";; \ | |
5506 | esac; \ | |
5507 | $(SHELL) $${libsrcdir}/configure \ | |
5508 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5509 | || exit 1 | |
5510 | ||
930314a4 NN |
5511 | .PHONY: all-libtermcap maybe-all-libtermcap |
5512 | maybe-all-libtermcap: | |
db1ac78d | 5513 | all-libtermcap: configure-libtermcap |
930314a4 | 5514 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5515 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5516 | $(SET_LIB_PATH) \ | |
5517 | (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) all) | |
e393202e | 5518 | |
e393202e | 5519 | |
3866be5d NN |
5520 | .PHONY: check-libtermcap |
5521 | check-libtermcap: | |
5522 | ||
5523 | ||
5524 | ||
930314a4 NN |
5525 | .PHONY: install-libtermcap maybe-install-libtermcap |
5526 | maybe-install-libtermcap: | |
3866be5d | 5527 | install-libtermcap: installdirs |
930314a4 | 5528 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5529 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5530 | $(SET_LIB_PATH) \ | |
5531 | (cd libtermcap && $(MAKE) $(FLAGS_TO_PASS) install) | |
e393202e | 5532 | |
3866be5d | 5533 | |
e2b9e2dc NN |
5534 | .PHONY: configure-utils maybe-configure-utils |
5535 | maybe-configure-utils: | |
e6bfb94a AO |
5536 | configure-utils: |
5537 | @test ! -f utils/Makefile || exit 0; \ | |
5538 | [ -d utils ] || mkdir utils; \ | |
e2b9e2dc NN |
5539 | r=`${PWD}`; export r; \ |
5540 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5541 | CC="$(CC)"; export CC; \ | |
5542 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
5543 | CXX="$(CXX)"; export CXX; \ | |
5544 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
5545 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ | |
5546 | AR="$(AR)"; export AR; \ | |
5547 | AS="$(AS)"; export AS; \ | |
5548 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
5549 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
5550 | LD="$(LD)"; export LD; \ | |
5551 | NM="$(NM)"; export NM; \ | |
5552 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
5553 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
5554 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
5555 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
5556 | fi; \ | |
5557 | echo Configuring in utils; \ | |
5558 | cd utils || exit 1; \ | |
5559 | case $(srcdir) in \ | |
5560 | \.) \ | |
5561 | srcdiroption="--srcdir=."; \ | |
5562 | libsrcdir=".";; \ | |
5563 | /* | [A-Za-z]:[\\/]*) \ | |
5564 | srcdiroption="--srcdir=$(srcdir)/utils"; \ | |
5565 | libsrcdir="$$s/utils";; \ | |
5566 | *) \ | |
5567 | srcdiroption="--srcdir=../$(srcdir)/utils"; \ | |
5568 | libsrcdir="$$s/utils";; \ | |
5569 | esac; \ | |
5570 | $(SHELL) $${libsrcdir}/configure \ | |
5571 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
5572 | || exit 1 | |
5573 | ||
930314a4 NN |
5574 | .PHONY: all-utils maybe-all-utils |
5575 | maybe-all-utils: | |
db1ac78d | 5576 | all-utils: configure-utils |
930314a4 | 5577 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5578 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5579 | $(SET_LIB_PATH) \ | |
5580 | (cd utils && $(MAKE) $(FLAGS_TO_PASS) all) | |
e393202e | 5581 | |
3866be5d NN |
5582 | |
5583 | .PHONY: check-utils | |
5584 | check-utils: | |
5585 | ||
5586 | ||
5587 | ||
930314a4 NN |
5588 | .PHONY: install-utils maybe-install-utils |
5589 | maybe-install-utils: | |
3866be5d | 5590 | install-utils: installdirs |
930314a4 | 5591 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5592 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5593 | $(SET_LIB_PATH) \ | |
5594 | (cd utils && $(MAKE) $(FLAGS_TO_PASS) install) | |
e393202e | 5595 | |
3866be5d NN |
5596 | |
5597 | ||
15723a45 NN |
5598 | # --------------------------------------- |
5599 | # Modules which run on the target machine | |
5600 | # --------------------------------------- | |
e393202e | 5601 | |
930314a4 NN |
5602 | .PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3 |
5603 | maybe-configure-target-libstdc++-v3: | |
15723a45 | 5604 | |
1086bc09 NN |
5605 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5606 | $(TARGET_SUBDIR)/libstdc++-v3/multilib.out: multilib.out | |
e6bfb94a | 5607 | @[ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \ |
bba45b8b | 5608 | mkdir $(TARGET_SUBDIR)/libstdc++-v3; \ |
e6bfb94a | 5609 | rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || : ; \ |
1086bc09 | 5610 | cp multilib.out $(TARGET_SUBDIR)/libstdc++-v3/multilib.out |
15723a45 | 5611 | |
e6bfb94a AO |
5612 | configure-target-libstdc++-v3: $(TARGET_SUBDIR)/libstdc++-v3/multilib.out |
5613 | @test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \ | |
bba45b8b NN |
5614 | [ -d $(TARGET_SUBDIR)/libstdc++-v3 ] || \ |
5615 | mkdir $(TARGET_SUBDIR)/libstdc++-v3;\ | |
5616 | r=`${PWD}`; export r; \ | |
5617 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5618 | $(SET_LIB_PATH) \ | |
5619 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5620 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5621 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5622 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
5623 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
5624 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | |
5625 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \ | |
5626 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
5627 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5628 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5629 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5630 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5631 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5632 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5633 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5634 | echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \ | |
5635 | cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \ | |
5636 | case $(srcdir) in \ | |
5637 | /* | [A-Za-z]:[\\/]*) \ | |
5638 | topdir=$(srcdir) ;; \ | |
5639 | *) \ | |
5640 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
5641 | .) topdir="../$(srcdir)" ;; \ |
5642 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
5643 | esac ;; \ |
5644 | esac; \ | |
5645 | if [ "$(srcdir)" = "." ] ; then \ | |
5646 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5647 | if $(SHELL) $$s/symlink-tree $${topdir}/libstdc++-v3 "no-such-file" ; then \ | |
5648 | if [ -f Makefile ]; then \ | |
5649 | if $(MAKE) distclean; then \ | |
5650 | true; \ | |
5651 | else \ | |
5652 | exit 1; \ | |
5653 | fi; \ | |
e393202e | 5654 | else \ |
bba45b8b | 5655 | true; \ |
e393202e | 5656 | fi; \ |
e393202e | 5657 | else \ |
bba45b8b | 5658 | exit 1; \ |
e393202e | 5659 | fi; \ |
bba45b8b NN |
5660 | else \ |
5661 | true; \ | |
5662 | fi; \ | |
5663 | srcdiroption="--srcdir=."; \ | |
5664 | libsrcdir="."; \ | |
5665 | else \ | |
5666 | srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \ | |
5667 | libsrcdir="$$s/libstdc++-v3"; \ | |
5668 | fi; \ | |
5669 | rm -f no-such-file || : ; \ | |
5670 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
5671 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
5672 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
5673 | || exit 1 | |
e393202e | 5674 | |
930314a4 NN |
5675 | .PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3 |
5676 | maybe-all-target-libstdc++-v3: | |
15723a45 | 5677 | all-target-libstdc++-v3: configure-target-libstdc++-v3 |
930314a4 | 5678 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5679 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5680 | $(SET_LIB_PATH) \ | |
5681 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
5682 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all) | |
e393202e NN |
5683 | |
5684 | .PHONY: check-target-libstdc++-v3 | |
5685 | check-target-libstdc++-v3: | |
930314a4 | 5686 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5687 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5688 | $(SET_LIB_PATH) \ | |
5689 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
5690 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) | |
930314a4 | 5691 | |
e393202e | 5692 | |
930314a4 NN |
5693 | .PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3 |
5694 | maybe-install-target-libstdc++-v3: | |
e393202e | 5695 | install-target-libstdc++-v3: installdirs |
930314a4 | 5696 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5697 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5698 | $(SET_LIB_PATH) \ | |
5699 | (cd $(TARGET_SUBDIR)/libstdc++-v3 && \ | |
5700 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
5701 | |
5702 | ||
930314a4 NN |
5703 | .PHONY: configure-target-newlib maybe-configure-target-newlib |
5704 | maybe-configure-target-newlib: | |
15723a45 | 5705 | |
1086bc09 NN |
5706 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5707 | $(TARGET_SUBDIR)/newlib/multilib.out: multilib.out | |
e6bfb94a | 5708 | @[ -d $(TARGET_SUBDIR)/newlib ] || \ |
bba45b8b | 5709 | mkdir $(TARGET_SUBDIR)/newlib; \ |
e6bfb94a | 5710 | rm -f $(TARGET_SUBDIR)/newlib/Makefile || : ; \ |
1086bc09 | 5711 | cp multilib.out $(TARGET_SUBDIR)/newlib/multilib.out |
15723a45 | 5712 | |
e6bfb94a AO |
5713 | configure-target-newlib: $(TARGET_SUBDIR)/newlib/multilib.out |
5714 | @test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \ | |
bba45b8b NN |
5715 | [ -d $(TARGET_SUBDIR)/newlib ] || \ |
5716 | mkdir $(TARGET_SUBDIR)/newlib;\ | |
5717 | r=`${PWD}`; export r; \ | |
5718 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5719 | $(SET_LIB_PATH) \ | |
5720 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5721 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5722 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5723 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
5724 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
5725 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
5726 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
5727 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5728 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5729 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5730 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5731 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5732 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5733 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5734 | echo Configuring in $(TARGET_SUBDIR)/newlib; \ | |
5735 | cd "$(TARGET_SUBDIR)/newlib" || exit 1; \ | |
5736 | case $(srcdir) in \ | |
5737 | /* | [A-Za-z]:[\\/]*) \ | |
5738 | topdir=$(srcdir) ;; \ | |
5739 | *) \ | |
5740 | case "$(TARGET_SUBDIR)" in \ | |
5741 | .) topdir="../$(srcdir)" ;; \ | |
5742 | *) topdir="../../$(srcdir)" ;; \ | |
5743 | esac ;; \ | |
5744 | esac; \ | |
5745 | if [ "$(srcdir)" = "." ] ; then \ | |
5746 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5747 | if $(SHELL) $$s/symlink-tree $${topdir}/newlib "no-such-file" ; then \ | |
5748 | if [ -f Makefile ]; then \ | |
5749 | if $(MAKE) distclean; then \ | |
5750 | true; \ | |
5751 | else \ | |
5752 | exit 1; \ | |
5753 | fi; \ | |
5754 | else \ | |
5755 | true; \ | |
5756 | fi; \ | |
5757 | else \ | |
5758 | exit 1; \ | |
e393202e | 5759 | fi; \ |
bba45b8b NN |
5760 | else \ |
5761 | true; \ | |
5762 | fi; \ | |
5763 | srcdiroption="--srcdir=."; \ | |
5764 | libsrcdir="."; \ | |
5765 | else \ | |
5766 | srcdiroption="--srcdir=$${topdir}/newlib"; \ | |
5767 | libsrcdir="$$s/newlib"; \ | |
5768 | fi; \ | |
5769 | rm -f no-such-file || : ; \ | |
5770 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
5771 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
5772 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
5773 | || exit 1 | |
e393202e | 5774 | |
930314a4 NN |
5775 | .PHONY: all-target-newlib maybe-all-target-newlib |
5776 | maybe-all-target-newlib: | |
15723a45 | 5777 | all-target-newlib: configure-target-newlib |
930314a4 | 5778 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5779 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5780 | $(SET_LIB_PATH) \ | |
5781 | (cd $(TARGET_SUBDIR)/newlib && \ | |
5782 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
5783 | |
5784 | .PHONY: check-target-newlib | |
5785 | check-target-newlib: | |
930314a4 | 5786 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5787 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5788 | $(SET_LIB_PATH) \ | |
5789 | (cd $(TARGET_SUBDIR)/newlib && \ | |
5790 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
930314a4 | 5791 | |
e393202e | 5792 | |
930314a4 NN |
5793 | .PHONY: install-target-newlib maybe-install-target-newlib |
5794 | maybe-install-target-newlib: | |
e393202e | 5795 | install-target-newlib: installdirs |
930314a4 | 5796 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5797 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5798 | $(SET_LIB_PATH) \ | |
5799 | (cd $(TARGET_SUBDIR)/newlib && \ | |
5800 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
5801 | |
5802 | ||
930314a4 NN |
5803 | .PHONY: configure-target-libf2c maybe-configure-target-libf2c |
5804 | maybe-configure-target-libf2c: | |
15723a45 | 5805 | |
1086bc09 NN |
5806 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5807 | $(TARGET_SUBDIR)/libf2c/multilib.out: multilib.out | |
e6bfb94a | 5808 | @[ -d $(TARGET_SUBDIR)/libf2c ] || \ |
bba45b8b | 5809 | mkdir $(TARGET_SUBDIR)/libf2c; \ |
e6bfb94a | 5810 | rm -f $(TARGET_SUBDIR)/libf2c/Makefile || : ; \ |
1086bc09 | 5811 | cp multilib.out $(TARGET_SUBDIR)/libf2c/multilib.out |
15723a45 | 5812 | |
e6bfb94a AO |
5813 | configure-target-libf2c: $(TARGET_SUBDIR)/libf2c/multilib.out |
5814 | @test ! -f $(TARGET_SUBDIR)/libf2c/Makefile || exit 0; \ | |
bba45b8b NN |
5815 | [ -d $(TARGET_SUBDIR)/libf2c ] || \ |
5816 | mkdir $(TARGET_SUBDIR)/libf2c;\ | |
5817 | r=`${PWD}`; export r; \ | |
5818 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5819 | $(SET_LIB_PATH) \ | |
5820 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5821 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5822 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5823 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
5824 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
5825 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
5826 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
5827 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5828 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5829 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5830 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5831 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5832 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5833 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5834 | echo Configuring in $(TARGET_SUBDIR)/libf2c; \ | |
5835 | cd "$(TARGET_SUBDIR)/libf2c" || exit 1; \ | |
5836 | case $(srcdir) in \ | |
5837 | /* | [A-Za-z]:[\\/]*) \ | |
5838 | topdir=$(srcdir) ;; \ | |
5839 | *) \ | |
5840 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
5841 | .) topdir="../$(srcdir)" ;; \ |
5842 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
5843 | esac ;; \ |
5844 | esac; \ | |
5845 | if [ "$(srcdir)" = "." ] ; then \ | |
5846 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5847 | if $(SHELL) $$s/symlink-tree $${topdir}/libf2c "no-such-file" ; then \ | |
5848 | if [ -f Makefile ]; then \ | |
5849 | if $(MAKE) distclean; then \ | |
5850 | true; \ | |
5851 | else \ | |
5852 | exit 1; \ | |
5853 | fi; \ | |
e393202e | 5854 | else \ |
bba45b8b | 5855 | true; \ |
e393202e | 5856 | fi; \ |
e393202e | 5857 | else \ |
bba45b8b | 5858 | exit 1; \ |
e393202e | 5859 | fi; \ |
bba45b8b NN |
5860 | else \ |
5861 | true; \ | |
5862 | fi; \ | |
5863 | srcdiroption="--srcdir=."; \ | |
5864 | libsrcdir="."; \ | |
5865 | else \ | |
5866 | srcdiroption="--srcdir=$${topdir}/libf2c"; \ | |
5867 | libsrcdir="$$s/libf2c"; \ | |
5868 | fi; \ | |
5869 | rm -f no-such-file || : ; \ | |
5870 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
5871 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
5872 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
5873 | || exit 1 | |
e393202e | 5874 | |
930314a4 NN |
5875 | .PHONY: all-target-libf2c maybe-all-target-libf2c |
5876 | maybe-all-target-libf2c: | |
15723a45 | 5877 | all-target-libf2c: configure-target-libf2c |
930314a4 | 5878 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5879 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5880 | $(SET_LIB_PATH) \ | |
5881 | (cd $(TARGET_SUBDIR)/libf2c && \ | |
5882 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
5883 | |
5884 | .PHONY: check-target-libf2c | |
5885 | check-target-libf2c: | |
930314a4 | 5886 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5887 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5888 | $(SET_LIB_PATH) \ | |
5889 | (cd $(TARGET_SUBDIR)/libf2c && \ | |
5890 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
930314a4 | 5891 | |
e393202e | 5892 | |
930314a4 NN |
5893 | .PHONY: install-target-libf2c maybe-install-target-libf2c |
5894 | maybe-install-target-libf2c: | |
e393202e | 5895 | install-target-libf2c: installdirs |
930314a4 | 5896 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5897 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5898 | $(SET_LIB_PATH) \ | |
5899 | (cd $(TARGET_SUBDIR)/libf2c && \ | |
5900 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
5901 | |
5902 | ||
930314a4 NN |
5903 | .PHONY: configure-target-libobjc maybe-configure-target-libobjc |
5904 | maybe-configure-target-libobjc: | |
15723a45 | 5905 | |
1086bc09 NN |
5906 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
5907 | $(TARGET_SUBDIR)/libobjc/multilib.out: multilib.out | |
e6bfb94a | 5908 | @[ -d $(TARGET_SUBDIR)/libobjc ] || \ |
bba45b8b | 5909 | mkdir $(TARGET_SUBDIR)/libobjc; \ |
e6bfb94a | 5910 | rm -f $(TARGET_SUBDIR)/libobjc/Makefile || : ; \ |
1086bc09 | 5911 | cp multilib.out $(TARGET_SUBDIR)/libobjc/multilib.out |
15723a45 | 5912 | |
e6bfb94a AO |
5913 | configure-target-libobjc: $(TARGET_SUBDIR)/libobjc/multilib.out |
5914 | @test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \ | |
bba45b8b NN |
5915 | [ -d $(TARGET_SUBDIR)/libobjc ] || \ |
5916 | mkdir $(TARGET_SUBDIR)/libobjc;\ | |
5917 | r=`${PWD}`; export r; \ | |
5918 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
5919 | $(SET_LIB_PATH) \ | |
5920 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
5921 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
5922 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
5923 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
5924 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
5925 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
5926 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
5927 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
5928 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
5929 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
5930 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
5931 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
5932 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
5933 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
5934 | echo Configuring in $(TARGET_SUBDIR)/libobjc; \ | |
5935 | cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \ | |
5936 | case $(srcdir) in \ | |
5937 | /* | [A-Za-z]:[\\/]*) \ | |
5938 | topdir=$(srcdir) ;; \ | |
5939 | *) \ | |
5940 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
5941 | .) topdir="../$(srcdir)" ;; \ |
5942 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
5943 | esac ;; \ |
5944 | esac; \ | |
5945 | if [ "$(srcdir)" = "." ] ; then \ | |
5946 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
5947 | if $(SHELL) $$s/symlink-tree $${topdir}/libobjc "no-such-file" ; then \ | |
5948 | if [ -f Makefile ]; then \ | |
5949 | if $(MAKE) distclean; then \ | |
5950 | true; \ | |
5951 | else \ | |
5952 | exit 1; \ | |
5953 | fi; \ | |
e393202e | 5954 | else \ |
bba45b8b | 5955 | true; \ |
e393202e | 5956 | fi; \ |
e393202e | 5957 | else \ |
bba45b8b | 5958 | exit 1; \ |
e393202e | 5959 | fi; \ |
bba45b8b NN |
5960 | else \ |
5961 | true; \ | |
5962 | fi; \ | |
5963 | srcdiroption="--srcdir=."; \ | |
5964 | libsrcdir="."; \ | |
5965 | else \ | |
5966 | srcdiroption="--srcdir=$${topdir}/libobjc"; \ | |
5967 | libsrcdir="$$s/libobjc"; \ | |
5968 | fi; \ | |
5969 | rm -f no-such-file || : ; \ | |
5970 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
5971 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
5972 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
5973 | || exit 1 | |
e393202e | 5974 | |
930314a4 NN |
5975 | .PHONY: all-target-libobjc maybe-all-target-libobjc |
5976 | maybe-all-target-libobjc: | |
15723a45 | 5977 | all-target-libobjc: configure-target-libobjc |
930314a4 | 5978 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5979 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5980 | $(SET_LIB_PATH) \ | |
5981 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
5982 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
5983 | |
5984 | .PHONY: check-target-libobjc | |
5985 | check-target-libobjc: | |
930314a4 | 5986 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5987 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5988 | $(SET_LIB_PATH) \ | |
5989 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
5990 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
930314a4 | 5991 | |
e393202e | 5992 | |
930314a4 NN |
5993 | .PHONY: install-target-libobjc maybe-install-target-libobjc |
5994 | maybe-install-target-libobjc: | |
e393202e | 5995 | install-target-libobjc: installdirs |
930314a4 | 5996 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
5997 | s=`cd $(srcdir); ${PWD}`; export s; \ |
5998 | $(SET_LIB_PATH) \ | |
5999 | (cd $(TARGET_SUBDIR)/libobjc && \ | |
6000 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6001 | |
6002 | ||
930314a4 NN |
6003 | .PHONY: configure-target-libtermcap maybe-configure-target-libtermcap |
6004 | maybe-configure-target-libtermcap: | |
15723a45 | 6005 | |
1086bc09 NN |
6006 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6007 | $(TARGET_SUBDIR)/libtermcap/multilib.out: multilib.out | |
e6bfb94a | 6008 | @[ -d $(TARGET_SUBDIR)/libtermcap ] || \ |
bba45b8b | 6009 | mkdir $(TARGET_SUBDIR)/libtermcap; \ |
e6bfb94a | 6010 | rm -f $(TARGET_SUBDIR)/libtermcap/Makefile || : ; \ |
1086bc09 | 6011 | cp multilib.out $(TARGET_SUBDIR)/libtermcap/multilib.out |
15723a45 | 6012 | |
e6bfb94a AO |
6013 | configure-target-libtermcap: $(TARGET_SUBDIR)/libtermcap/multilib.out |
6014 | @test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \ | |
bba45b8b NN |
6015 | [ -d $(TARGET_SUBDIR)/libtermcap ] || \ |
6016 | mkdir $(TARGET_SUBDIR)/libtermcap;\ | |
6017 | r=`${PWD}`; export r; \ | |
6018 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6019 | $(SET_LIB_PATH) \ | |
6020 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6021 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6022 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6023 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6024 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6025 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6026 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6027 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6028 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6029 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6030 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6031 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6032 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6033 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6034 | echo Configuring in $(TARGET_SUBDIR)/libtermcap; \ | |
6035 | cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \ | |
6036 | case $(srcdir) in \ | |
6037 | /* | [A-Za-z]:[\\/]*) \ | |
6038 | topdir=$(srcdir) ;; \ | |
6039 | *) \ | |
6040 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6041 | .) topdir="../$(srcdir)" ;; \ |
6042 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6043 | esac ;; \ |
6044 | esac; \ | |
6045 | if [ "$(srcdir)" = "." ] ; then \ | |
6046 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6047 | if $(SHELL) $$s/symlink-tree $${topdir}/libtermcap "no-such-file" ; then \ | |
6048 | if [ -f Makefile ]; then \ | |
6049 | if $(MAKE) distclean; then \ | |
6050 | true; \ | |
6051 | else \ | |
6052 | exit 1; \ | |
6053 | fi; \ | |
e393202e | 6054 | else \ |
bba45b8b | 6055 | true; \ |
e393202e | 6056 | fi; \ |
e393202e | 6057 | else \ |
bba45b8b | 6058 | exit 1; \ |
e393202e | 6059 | fi; \ |
bba45b8b NN |
6060 | else \ |
6061 | true; \ | |
6062 | fi; \ | |
6063 | srcdiroption="--srcdir=."; \ | |
6064 | libsrcdir="."; \ | |
6065 | else \ | |
6066 | srcdiroption="--srcdir=$${topdir}/libtermcap"; \ | |
6067 | libsrcdir="$$s/libtermcap"; \ | |
6068 | fi; \ | |
6069 | rm -f no-such-file || : ; \ | |
6070 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6071 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6072 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6073 | || exit 1 | |
e393202e | 6074 | |
930314a4 NN |
6075 | .PHONY: all-target-libtermcap maybe-all-target-libtermcap |
6076 | maybe-all-target-libtermcap: | |
15723a45 | 6077 | all-target-libtermcap: configure-target-libtermcap |
930314a4 | 6078 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6079 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6080 | $(SET_LIB_PATH) \ | |
6081 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
6082 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e | 6083 | |
3866be5d NN |
6084 | # Dummy target for uncheckable module. |
6085 | .PHONY: check-target-libtermcap | |
6086 | check-target-libtermcap: | |
6087 | ||
930314a4 NN |
6088 | |
6089 | .PHONY: install-target-libtermcap maybe-install-target-libtermcap | |
6090 | maybe-install-target-libtermcap: | |
e393202e | 6091 | install-target-libtermcap: installdirs |
930314a4 | 6092 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6093 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6094 | $(SET_LIB_PATH) \ | |
6095 | (cd $(TARGET_SUBDIR)/libtermcap && \ | |
6096 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6097 | |
6098 | ||
930314a4 NN |
6099 | .PHONY: configure-target-winsup maybe-configure-target-winsup |
6100 | maybe-configure-target-winsup: | |
15723a45 | 6101 | |
1086bc09 NN |
6102 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6103 | $(TARGET_SUBDIR)/winsup/multilib.out: multilib.out | |
e6bfb94a | 6104 | @[ -d $(TARGET_SUBDIR)/winsup ] || \ |
bba45b8b | 6105 | mkdir $(TARGET_SUBDIR)/winsup; \ |
e6bfb94a | 6106 | rm -f $(TARGET_SUBDIR)/winsup/Makefile || : ; \ |
1086bc09 | 6107 | cp multilib.out $(TARGET_SUBDIR)/winsup/multilib.out |
15723a45 | 6108 | |
e6bfb94a AO |
6109 | configure-target-winsup: $(TARGET_SUBDIR)/winsup/multilib.out |
6110 | @test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \ | |
bba45b8b NN |
6111 | [ -d $(TARGET_SUBDIR)/winsup ] || \ |
6112 | mkdir $(TARGET_SUBDIR)/winsup;\ | |
6113 | r=`${PWD}`; export r; \ | |
6114 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6115 | $(SET_LIB_PATH) \ | |
6116 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6117 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6118 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6119 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6120 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6121 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6122 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6123 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6124 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6125 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6126 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6127 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6128 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6129 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6130 | echo Configuring in $(TARGET_SUBDIR)/winsup; \ | |
6131 | cd "$(TARGET_SUBDIR)/winsup" || exit 1; \ | |
6132 | case $(srcdir) in \ | |
6133 | /* | [A-Za-z]:[\\/]*) \ | |
6134 | topdir=$(srcdir) ;; \ | |
6135 | *) \ | |
6136 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6137 | .) topdir="../$(srcdir)" ;; \ |
6138 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6139 | esac ;; \ |
6140 | esac; \ | |
6141 | if [ "$(srcdir)" = "." ] ; then \ | |
6142 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6143 | if $(SHELL) $$s/symlink-tree $${topdir}/winsup "no-such-file" ; then \ | |
6144 | if [ -f Makefile ]; then \ | |
6145 | if $(MAKE) distclean; then \ | |
6146 | true; \ | |
6147 | else \ | |
6148 | exit 1; \ | |
6149 | fi; \ | |
e393202e | 6150 | else \ |
bba45b8b | 6151 | true; \ |
e393202e | 6152 | fi; \ |
e393202e | 6153 | else \ |
bba45b8b | 6154 | exit 1; \ |
e393202e | 6155 | fi; \ |
bba45b8b NN |
6156 | else \ |
6157 | true; \ | |
6158 | fi; \ | |
6159 | srcdiroption="--srcdir=."; \ | |
6160 | libsrcdir="."; \ | |
6161 | else \ | |
6162 | srcdiroption="--srcdir=$${topdir}/winsup"; \ | |
6163 | libsrcdir="$$s/winsup"; \ | |
6164 | fi; \ | |
6165 | rm -f no-such-file || : ; \ | |
6166 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6167 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6168 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6169 | || exit 1 | |
e393202e | 6170 | |
930314a4 NN |
6171 | .PHONY: all-target-winsup maybe-all-target-winsup |
6172 | maybe-all-target-winsup: | |
15723a45 | 6173 | all-target-winsup: configure-target-winsup |
930314a4 | 6174 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6175 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6176 | $(SET_LIB_PATH) \ | |
6177 | (cd $(TARGET_SUBDIR)/winsup && \ | |
6178 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
6179 | |
6180 | .PHONY: check-target-winsup | |
6181 | check-target-winsup: | |
930314a4 | 6182 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6183 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6184 | $(SET_LIB_PATH) \ | |
6185 | (cd $(TARGET_SUBDIR)/winsup && \ | |
6186 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
e393202e | 6187 | |
930314a4 NN |
6188 | |
6189 | .PHONY: install-target-winsup maybe-install-target-winsup | |
6190 | maybe-install-target-winsup: | |
e393202e | 6191 | install-target-winsup: installdirs |
930314a4 | 6192 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6193 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6194 | $(SET_LIB_PATH) \ | |
6195 | (cd $(TARGET_SUBDIR)/winsup && \ | |
6196 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6197 | |
6198 | ||
930314a4 NN |
6199 | .PHONY: configure-target-libgloss maybe-configure-target-libgloss |
6200 | maybe-configure-target-libgloss: | |
15723a45 | 6201 | |
1086bc09 NN |
6202 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6203 | $(TARGET_SUBDIR)/libgloss/multilib.out: multilib.out | |
e6bfb94a | 6204 | @[ -d $(TARGET_SUBDIR)/libgloss ] || \ |
bba45b8b | 6205 | mkdir $(TARGET_SUBDIR)/libgloss; \ |
e6bfb94a | 6206 | rm -f $(TARGET_SUBDIR)/libgloss/Makefile || : ; \ |
1086bc09 | 6207 | cp multilib.out $(TARGET_SUBDIR)/libgloss/multilib.out |
15723a45 | 6208 | |
e6bfb94a AO |
6209 | configure-target-libgloss: $(TARGET_SUBDIR)/libgloss/multilib.out |
6210 | @test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \ | |
bba45b8b NN |
6211 | [ -d $(TARGET_SUBDIR)/libgloss ] || \ |
6212 | mkdir $(TARGET_SUBDIR)/libgloss;\ | |
6213 | r=`${PWD}`; export r; \ | |
6214 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6215 | $(SET_LIB_PATH) \ | |
6216 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6217 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6218 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6219 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6220 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6221 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6222 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6223 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6224 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6225 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6226 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6227 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6228 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6229 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6230 | echo Configuring in $(TARGET_SUBDIR)/libgloss; \ | |
6231 | cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \ | |
6232 | case $(srcdir) in \ | |
6233 | /* | [A-Za-z]:[\\/]*) \ | |
6234 | topdir=$(srcdir) ;; \ | |
6235 | *) \ | |
6236 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6237 | .) topdir="../$(srcdir)" ;; \ |
6238 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6239 | esac ;; \ |
6240 | esac; \ | |
6241 | if [ "$(srcdir)" = "." ] ; then \ | |
6242 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6243 | if $(SHELL) $$s/symlink-tree $${topdir}/libgloss "no-such-file" ; then \ | |
6244 | if [ -f Makefile ]; then \ | |
6245 | if $(MAKE) distclean; then \ | |
6246 | true; \ | |
6247 | else \ | |
6248 | exit 1; \ | |
6249 | fi; \ | |
e393202e | 6250 | else \ |
bba45b8b | 6251 | true; \ |
e393202e | 6252 | fi; \ |
e393202e | 6253 | else \ |
bba45b8b | 6254 | exit 1; \ |
e393202e | 6255 | fi; \ |
bba45b8b NN |
6256 | else \ |
6257 | true; \ | |
6258 | fi; \ | |
6259 | srcdiroption="--srcdir=."; \ | |
6260 | libsrcdir="."; \ | |
6261 | else \ | |
6262 | srcdiroption="--srcdir=$${topdir}/libgloss"; \ | |
6263 | libsrcdir="$$s/libgloss"; \ | |
6264 | fi; \ | |
6265 | rm -f no-such-file || : ; \ | |
6266 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6267 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6268 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6269 | || exit 1 | |
e393202e | 6270 | |
930314a4 NN |
6271 | .PHONY: all-target-libgloss maybe-all-target-libgloss |
6272 | maybe-all-target-libgloss: | |
15723a45 | 6273 | all-target-libgloss: configure-target-libgloss |
930314a4 | 6274 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6275 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6276 | $(SET_LIB_PATH) \ | |
6277 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
6278 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e | 6279 | |
3866be5d NN |
6280 | # Dummy target for uncheckable module. |
6281 | .PHONY: check-target-libgloss | |
6282 | check-target-libgloss: | |
6283 | ||
930314a4 NN |
6284 | |
6285 | .PHONY: install-target-libgloss maybe-install-target-libgloss | |
6286 | maybe-install-target-libgloss: | |
e393202e | 6287 | install-target-libgloss: installdirs |
930314a4 | 6288 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6289 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6290 | $(SET_LIB_PATH) \ | |
6291 | (cd $(TARGET_SUBDIR)/libgloss && \ | |
6292 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6293 | |
6294 | ||
930314a4 NN |
6295 | .PHONY: configure-target-libiberty maybe-configure-target-libiberty |
6296 | maybe-configure-target-libiberty: | |
15723a45 | 6297 | |
1086bc09 NN |
6298 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6299 | $(TARGET_SUBDIR)/libiberty/multilib.out: multilib.out | |
e6bfb94a | 6300 | @[ -d $(TARGET_SUBDIR)/libiberty ] || \ |
bba45b8b | 6301 | mkdir $(TARGET_SUBDIR)/libiberty; \ |
e6bfb94a | 6302 | rm -f $(TARGET_SUBDIR)/libiberty/Makefile || : ; \ |
1086bc09 | 6303 | cp multilib.out $(TARGET_SUBDIR)/libiberty/multilib.out |
15723a45 | 6304 | |
e6bfb94a AO |
6305 | configure-target-libiberty: $(TARGET_SUBDIR)/libiberty/multilib.out |
6306 | @test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \ | |
bba45b8b NN |
6307 | [ -d $(TARGET_SUBDIR)/libiberty ] || \ |
6308 | mkdir $(TARGET_SUBDIR)/libiberty;\ | |
6309 | r=`${PWD}`; export r; \ | |
6310 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6311 | $(SET_LIB_PATH) \ | |
6312 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6313 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6314 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6315 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6316 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6317 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6318 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6319 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6320 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6321 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6322 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6323 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6324 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6325 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6326 | echo Configuring in $(TARGET_SUBDIR)/libiberty; \ | |
6327 | cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \ | |
6328 | case $(srcdir) in \ | |
6329 | /* | [A-Za-z]:[\\/]*) \ | |
6330 | topdir=$(srcdir) ;; \ | |
6331 | *) \ | |
6332 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6333 | .) topdir="../$(srcdir)" ;; \ |
6334 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6335 | esac ;; \ |
6336 | esac; \ | |
6337 | if [ "$(srcdir)" = "." ] ; then \ | |
6338 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6339 | if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \ | |
6340 | if [ -f Makefile ]; then \ | |
6341 | if $(MAKE) distclean; then \ | |
6342 | true; \ | |
6343 | else \ | |
6344 | exit 1; \ | |
6345 | fi; \ | |
e393202e | 6346 | else \ |
bba45b8b | 6347 | true; \ |
e393202e | 6348 | fi; \ |
e393202e | 6349 | else \ |
bba45b8b | 6350 | exit 1; \ |
e393202e | 6351 | fi; \ |
bba45b8b NN |
6352 | else \ |
6353 | true; \ | |
6354 | fi; \ | |
6355 | srcdiroption="--srcdir=."; \ | |
6356 | libsrcdir="."; \ | |
6357 | else \ | |
6358 | srcdiroption="--srcdir=$${topdir}/libiberty"; \ | |
6359 | libsrcdir="$$s/libiberty"; \ | |
6360 | fi; \ | |
6361 | rm -f no-such-file || : ; \ | |
6362 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6363 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6364 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6365 | || exit 1 | |
e393202e | 6366 | |
930314a4 NN |
6367 | .PHONY: all-target-libiberty maybe-all-target-libiberty |
6368 | maybe-all-target-libiberty: | |
15723a45 | 6369 | all-target-libiberty: configure-target-libiberty |
930314a4 | 6370 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6371 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6372 | $(SET_LIB_PATH) \ | |
6373 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
6374 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
6375 | |
6376 | .PHONY: check-target-libiberty | |
6377 | check-target-libiberty: | |
930314a4 | 6378 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6379 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6380 | $(SET_LIB_PATH) \ | |
6381 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
6382 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
e393202e | 6383 | |
930314a4 NN |
6384 | |
6385 | .PHONY: install-target-libiberty maybe-install-target-libiberty | |
6386 | maybe-install-target-libiberty: | |
e393202e | 6387 | install-target-libiberty: installdirs |
930314a4 | 6388 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6389 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6390 | $(SET_LIB_PATH) \ | |
6391 | (cd $(TARGET_SUBDIR)/libiberty && \ | |
6392 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6393 | |
6394 | ||
930314a4 NN |
6395 | .PHONY: configure-target-gperf maybe-configure-target-gperf |
6396 | maybe-configure-target-gperf: | |
15723a45 | 6397 | |
1086bc09 NN |
6398 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6399 | $(TARGET_SUBDIR)/gperf/multilib.out: multilib.out | |
e6bfb94a | 6400 | @[ -d $(TARGET_SUBDIR)/gperf ] || \ |
bba45b8b | 6401 | mkdir $(TARGET_SUBDIR)/gperf; \ |
e6bfb94a | 6402 | rm -f $(TARGET_SUBDIR)/gperf/Makefile || : ; \ |
1086bc09 | 6403 | cp multilib.out $(TARGET_SUBDIR)/gperf/multilib.out |
15723a45 | 6404 | |
e6bfb94a AO |
6405 | configure-target-gperf: $(TARGET_SUBDIR)/gperf/multilib.out |
6406 | @test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \ | |
bba45b8b NN |
6407 | [ -d $(TARGET_SUBDIR)/gperf ] || \ |
6408 | mkdir $(TARGET_SUBDIR)/gperf;\ | |
6409 | r=`${PWD}`; export r; \ | |
6410 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6411 | $(SET_LIB_PATH) \ | |
6412 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6413 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6414 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6415 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6416 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6417 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6418 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6419 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6420 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6421 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6422 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6423 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6424 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6425 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6426 | echo Configuring in $(TARGET_SUBDIR)/gperf; \ | |
6427 | cd "$(TARGET_SUBDIR)/gperf" || exit 1; \ | |
6428 | case $(srcdir) in \ | |
6429 | /* | [A-Za-z]:[\\/]*) \ | |
6430 | topdir=$(srcdir) ;; \ | |
6431 | *) \ | |
6432 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6433 | .) topdir="../$(srcdir)" ;; \ |
6434 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6435 | esac ;; \ |
6436 | esac; \ | |
6437 | if [ "$(srcdir)" = "." ] ; then \ | |
6438 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6439 | if $(SHELL) $$s/symlink-tree $${topdir}/gperf "no-such-file" ; then \ | |
6440 | if [ -f Makefile ]; then \ | |
6441 | if $(MAKE) distclean; then \ | |
6442 | true; \ | |
6443 | else \ | |
6444 | exit 1; \ | |
6445 | fi; \ | |
e393202e | 6446 | else \ |
bba45b8b | 6447 | true; \ |
e393202e | 6448 | fi; \ |
e393202e | 6449 | else \ |
bba45b8b | 6450 | exit 1; \ |
e393202e | 6451 | fi; \ |
bba45b8b NN |
6452 | else \ |
6453 | true; \ | |
6454 | fi; \ | |
6455 | srcdiroption="--srcdir=."; \ | |
6456 | libsrcdir="."; \ | |
6457 | else \ | |
6458 | srcdiroption="--srcdir=$${topdir}/gperf"; \ | |
6459 | libsrcdir="$$s/gperf"; \ | |
6460 | fi; \ | |
6461 | rm -f no-such-file || : ; \ | |
6462 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6463 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6464 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6465 | || exit 1 | |
e393202e | 6466 | |
930314a4 NN |
6467 | .PHONY: all-target-gperf maybe-all-target-gperf |
6468 | maybe-all-target-gperf: | |
15723a45 | 6469 | all-target-gperf: configure-target-gperf |
930314a4 | 6470 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6471 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6472 | $(SET_LIB_PATH) \ | |
6473 | (cd $(TARGET_SUBDIR)/gperf && \ | |
6474 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
6475 | |
6476 | .PHONY: check-target-gperf | |
6477 | check-target-gperf: | |
930314a4 | 6478 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6479 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6480 | $(SET_LIB_PATH) \ | |
6481 | (cd $(TARGET_SUBDIR)/gperf && \ | |
6482 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
e393202e | 6483 | |
930314a4 NN |
6484 | |
6485 | .PHONY: install-target-gperf maybe-install-target-gperf | |
6486 | maybe-install-target-gperf: | |
e393202e | 6487 | install-target-gperf: installdirs |
930314a4 | 6488 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6489 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6490 | $(SET_LIB_PATH) \ | |
6491 | (cd $(TARGET_SUBDIR)/gperf && \ | |
6492 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6493 | |
6494 | ||
930314a4 NN |
6495 | .PHONY: configure-target-examples maybe-configure-target-examples |
6496 | maybe-configure-target-examples: | |
15723a45 | 6497 | |
1086bc09 NN |
6498 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6499 | $(TARGET_SUBDIR)/examples/multilib.out: multilib.out | |
e6bfb94a | 6500 | @[ -d $(TARGET_SUBDIR)/examples ] || \ |
bba45b8b | 6501 | mkdir $(TARGET_SUBDIR)/examples; \ |
e6bfb94a | 6502 | rm -f $(TARGET_SUBDIR)/examples/Makefile || : ; \ |
1086bc09 | 6503 | cp multilib.out $(TARGET_SUBDIR)/examples/multilib.out |
15723a45 | 6504 | |
e6bfb94a AO |
6505 | configure-target-examples: $(TARGET_SUBDIR)/examples/multilib.out |
6506 | @test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \ | |
bba45b8b NN |
6507 | [ -d $(TARGET_SUBDIR)/examples ] || \ |
6508 | mkdir $(TARGET_SUBDIR)/examples;\ | |
6509 | r=`${PWD}`; export r; \ | |
6510 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6511 | $(SET_LIB_PATH) \ | |
6512 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6513 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6514 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6515 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6516 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6517 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6518 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6519 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6520 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6521 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6522 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6523 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6524 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6525 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6526 | echo Configuring in $(TARGET_SUBDIR)/examples; \ | |
6527 | cd "$(TARGET_SUBDIR)/examples" || exit 1; \ | |
6528 | case $(srcdir) in \ | |
6529 | /* | [A-Za-z]:[\\/]*) \ | |
6530 | topdir=$(srcdir) ;; \ | |
6531 | *) \ | |
6532 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6533 | .) topdir="../$(srcdir)" ;; \ |
6534 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6535 | esac ;; \ |
6536 | esac; \ | |
6537 | if [ "$(srcdir)" = "." ] ; then \ | |
6538 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6539 | if $(SHELL) $$s/symlink-tree $${topdir}/examples "no-such-file" ; then \ | |
6540 | if [ -f Makefile ]; then \ | |
6541 | if $(MAKE) distclean; then \ | |
6542 | true; \ | |
6543 | else \ | |
6544 | exit 1; \ | |
6545 | fi; \ | |
e393202e | 6546 | else \ |
bba45b8b | 6547 | true; \ |
e393202e | 6548 | fi; \ |
e393202e | 6549 | else \ |
bba45b8b | 6550 | exit 1; \ |
e393202e | 6551 | fi; \ |
bba45b8b NN |
6552 | else \ |
6553 | true; \ | |
6554 | fi; \ | |
6555 | srcdiroption="--srcdir=."; \ | |
6556 | libsrcdir="."; \ | |
6557 | else \ | |
6558 | srcdiroption="--srcdir=$${topdir}/examples"; \ | |
6559 | libsrcdir="$$s/examples"; \ | |
6560 | fi; \ | |
6561 | rm -f no-such-file || : ; \ | |
6562 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6563 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6564 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6565 | || exit 1 | |
e393202e | 6566 | |
930314a4 NN |
6567 | .PHONY: all-target-examples maybe-all-target-examples |
6568 | maybe-all-target-examples: | |
15723a45 | 6569 | all-target-examples: configure-target-examples |
930314a4 | 6570 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6571 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6572 | $(SET_LIB_PATH) \ | |
6573 | (cd $(TARGET_SUBDIR)/examples && \ | |
6574 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e | 6575 | |
3866be5d NN |
6576 | # Dummy target for uncheckable module. |
6577 | .PHONY: check-target-examples | |
6578 | check-target-examples: | |
6579 | ||
e393202e | 6580 | |
930314a4 NN |
6581 | .PHONY: install-target-examples maybe-install-target-examples |
6582 | maybe-install-target-examples: | |
6583 | # Dummy target for uninstallable. | |
6584 | install-target-examples: | |
6585 | ||
e393202e | 6586 | |
930314a4 NN |
6587 | .PHONY: configure-target-libffi maybe-configure-target-libffi |
6588 | maybe-configure-target-libffi: | |
15723a45 | 6589 | |
1086bc09 NN |
6590 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6591 | $(TARGET_SUBDIR)/libffi/multilib.out: multilib.out | |
e6bfb94a | 6592 | @[ -d $(TARGET_SUBDIR)/libffi ] || \ |
bba45b8b | 6593 | mkdir $(TARGET_SUBDIR)/libffi; \ |
e6bfb94a | 6594 | rm -f $(TARGET_SUBDIR)/libffi/Makefile || : ; \ |
1086bc09 | 6595 | cp multilib.out $(TARGET_SUBDIR)/libffi/multilib.out |
15723a45 | 6596 | |
e6bfb94a AO |
6597 | configure-target-libffi: $(TARGET_SUBDIR)/libffi/multilib.out |
6598 | @test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \ | |
bba45b8b NN |
6599 | [ -d $(TARGET_SUBDIR)/libffi ] || \ |
6600 | mkdir $(TARGET_SUBDIR)/libffi;\ | |
6601 | r=`${PWD}`; export r; \ | |
6602 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6603 | $(SET_LIB_PATH) \ | |
6604 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6605 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6606 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6607 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6608 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6609 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6610 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6611 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6612 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6613 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6614 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6615 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6616 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6617 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6618 | echo Configuring in $(TARGET_SUBDIR)/libffi; \ | |
6619 | cd "$(TARGET_SUBDIR)/libffi" || exit 1; \ | |
6620 | case $(srcdir) in \ | |
6621 | /* | [A-Za-z]:[\\/]*) \ | |
6622 | topdir=$(srcdir) ;; \ | |
6623 | *) \ | |
6624 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6625 | .) topdir="../$(srcdir)" ;; \ |
6626 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6627 | esac ;; \ |
6628 | esac; \ | |
6629 | if [ "$(srcdir)" = "." ] ; then \ | |
6630 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6631 | if $(SHELL) $$s/symlink-tree $${topdir}/libffi "no-such-file" ; then \ | |
6632 | if [ -f Makefile ]; then \ | |
6633 | if $(MAKE) distclean; then \ | |
6634 | true; \ | |
6635 | else \ | |
6636 | exit 1; \ | |
6637 | fi; \ | |
e393202e | 6638 | else \ |
bba45b8b | 6639 | true; \ |
e393202e | 6640 | fi; \ |
e393202e | 6641 | else \ |
bba45b8b | 6642 | exit 1; \ |
e393202e | 6643 | fi; \ |
bba45b8b NN |
6644 | else \ |
6645 | true; \ | |
6646 | fi; \ | |
6647 | srcdiroption="--srcdir=."; \ | |
6648 | libsrcdir="."; \ | |
6649 | else \ | |
6650 | srcdiroption="--srcdir=$${topdir}/libffi"; \ | |
6651 | libsrcdir="$$s/libffi"; \ | |
6652 | fi; \ | |
6653 | rm -f no-such-file || : ; \ | |
6654 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6655 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6656 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6657 | || exit 1 | |
e393202e | 6658 | |
930314a4 NN |
6659 | .PHONY: all-target-libffi maybe-all-target-libffi |
6660 | maybe-all-target-libffi: | |
15723a45 | 6661 | all-target-libffi: configure-target-libffi |
930314a4 | 6662 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6663 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6664 | $(SET_LIB_PATH) \ | |
6665 | (cd $(TARGET_SUBDIR)/libffi && \ | |
6666 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
e393202e NN |
6667 | |
6668 | .PHONY: check-target-libffi | |
6669 | check-target-libffi: | |
930314a4 | 6670 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6671 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6672 | $(SET_LIB_PATH) \ | |
6673 | (cd $(TARGET_SUBDIR)/libffi && \ | |
6674 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
e393202e NN |
6675 | |
6676 | ||
930314a4 NN |
6677 | .PHONY: install-target-libffi maybe-install-target-libffi |
6678 | maybe-install-target-libffi: | |
50ceb20c TT |
6679 | install-target-libffi: installdirs |
6680 | @r=`${PWD}`; export r; \ | |
bba45b8b NN |
6681 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6682 | $(SET_LIB_PATH) \ | |
6683 | (cd $(TARGET_SUBDIR)/libffi && \ | |
6684 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e | 6685 | |
930314a4 NN |
6686 | |
6687 | .PHONY: configure-target-libjava maybe-configure-target-libjava | |
6688 | maybe-configure-target-libjava: | |
15723a45 | 6689 | |
1086bc09 NN |
6690 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6691 | $(TARGET_SUBDIR)/libjava/multilib.out: multilib.out | |
e6bfb94a | 6692 | @[ -d $(TARGET_SUBDIR)/libjava ] || \ |
bba45b8b | 6693 | mkdir $(TARGET_SUBDIR)/libjava; \ |
e6bfb94a | 6694 | rm -f $(TARGET_SUBDIR)/libjava/Makefile || : ; \ |
1086bc09 | 6695 | cp multilib.out $(TARGET_SUBDIR)/libjava/multilib.out |
15723a45 | 6696 | |
e6bfb94a AO |
6697 | configure-target-libjava: $(TARGET_SUBDIR)/libjava/multilib.out |
6698 | @test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \ | |
bba45b8b NN |
6699 | [ -d $(TARGET_SUBDIR)/libjava ] || \ |
6700 | mkdir $(TARGET_SUBDIR)/libjava;\ | |
6701 | r=`${PWD}`; export r; \ | |
6702 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6703 | $(SET_LIB_PATH) \ | |
6704 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6705 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6706 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6707 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6708 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6709 | CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \ | |
6710 | CXX="$(RAW_CXX_FOR_TARGET)"; export CXX; \ | |
6711 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6712 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6713 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6714 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6715 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6716 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6717 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6718 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6719 | echo Configuring in $(TARGET_SUBDIR)/libjava; \ | |
6720 | cd "$(TARGET_SUBDIR)/libjava" || exit 1; \ | |
6721 | case $(srcdir) in \ | |
6722 | /* | [A-Za-z]:[\\/]*) \ | |
6723 | topdir=$(srcdir) ;; \ | |
6724 | *) \ | |
6725 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6726 | .) topdir="../$(srcdir)" ;; \ |
6727 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6728 | esac ;; \ |
6729 | esac; \ | |
6730 | if [ "$(srcdir)" = "." ] ; then \ | |
6731 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6732 | if $(SHELL) $$s/symlink-tree $${topdir}/libjava "no-such-file" ; then \ | |
6733 | if [ -f Makefile ]; then \ | |
6734 | if $(MAKE) distclean; then \ | |
6735 | true; \ | |
6736 | else \ | |
6737 | exit 1; \ | |
6738 | fi; \ | |
e393202e | 6739 | else \ |
bba45b8b | 6740 | true; \ |
e393202e | 6741 | fi; \ |
e393202e | 6742 | else \ |
bba45b8b | 6743 | exit 1; \ |
e393202e | 6744 | fi; \ |
bba45b8b NN |
6745 | else \ |
6746 | true; \ | |
6747 | fi; \ | |
6748 | srcdiroption="--srcdir=."; \ | |
6749 | libsrcdir="."; \ | |
6750 | else \ | |
6751 | srcdiroption="--srcdir=$${topdir}/libjava"; \ | |
6752 | libsrcdir="$$s/libjava"; \ | |
6753 | fi; \ | |
6754 | rm -f no-such-file || : ; \ | |
6755 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6756 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6757 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6758 | || exit 1 | |
e393202e | 6759 | |
930314a4 NN |
6760 | .PHONY: all-target-libjava maybe-all-target-libjava |
6761 | maybe-all-target-libjava: | |
15723a45 | 6762 | all-target-libjava: configure-target-libjava |
930314a4 | 6763 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6764 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6765 | $(SET_LIB_PATH) \ | |
6766 | (cd $(TARGET_SUBDIR)/libjava && \ | |
6767 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' all) | |
e393202e NN |
6768 | |
6769 | .PHONY: check-target-libjava | |
6770 | check-target-libjava: | |
930314a4 | 6771 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6772 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6773 | $(SET_LIB_PATH) \ | |
6774 | (cd $(TARGET_SUBDIR)/libjava && \ | |
6775 | $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check) | |
e393202e | 6776 | |
930314a4 NN |
6777 | |
6778 | .PHONY: install-target-libjava maybe-install-target-libjava | |
6779 | maybe-install-target-libjava: | |
e393202e | 6780 | install-target-libjava: installdirs |
930314a4 | 6781 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6782 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6783 | $(SET_LIB_PATH) \ | |
6784 | (cd $(TARGET_SUBDIR)/libjava && \ | |
6785 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6786 | |
6787 | ||
930314a4 NN |
6788 | .PHONY: configure-target-zlib maybe-configure-target-zlib |
6789 | maybe-configure-target-zlib: | |
15723a45 | 6790 | |
1086bc09 NN |
6791 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6792 | $(TARGET_SUBDIR)/zlib/multilib.out: multilib.out | |
e6bfb94a | 6793 | @[ -d $(TARGET_SUBDIR)/zlib ] || \ |
bba45b8b | 6794 | mkdir $(TARGET_SUBDIR)/zlib; \ |
e6bfb94a | 6795 | rm -f $(TARGET_SUBDIR)/zlib/Makefile || : ; \ |
1086bc09 | 6796 | cp multilib.out $(TARGET_SUBDIR)/zlib/multilib.out |
15723a45 | 6797 | |
e6bfb94a AO |
6798 | configure-target-zlib: $(TARGET_SUBDIR)/zlib/multilib.out |
6799 | @test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \ | |
bba45b8b NN |
6800 | [ -d $(TARGET_SUBDIR)/zlib ] || \ |
6801 | mkdir $(TARGET_SUBDIR)/zlib;\ | |
6802 | r=`${PWD}`; export r; \ | |
6803 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6804 | $(SET_LIB_PATH) \ | |
6805 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6806 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6807 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6808 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6809 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6810 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6811 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6812 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6813 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6814 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6815 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6816 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6817 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6818 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6819 | echo Configuring in $(TARGET_SUBDIR)/zlib; \ | |
6820 | cd "$(TARGET_SUBDIR)/zlib" || exit 1; \ | |
6821 | case $(srcdir) in \ | |
6822 | /* | [A-Za-z]:[\\/]*) \ | |
6823 | topdir=$(srcdir) ;; \ | |
6824 | *) \ | |
6825 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
6826 | .) topdir="../$(srcdir)" ;; \ |
6827 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6828 | esac ;; \ |
6829 | esac; \ | |
6830 | if [ "$(srcdir)" = "." ] ; then \ | |
6831 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6832 | if $(SHELL) $$s/symlink-tree $${topdir}/zlib "no-such-file" ; then \ | |
6833 | if [ -f Makefile ]; then \ | |
6834 | if $(MAKE) distclean; then \ | |
6835 | true; \ | |
6836 | else \ | |
6837 | exit 1; \ | |
6838 | fi; \ | |
e393202e | 6839 | else \ |
bba45b8b | 6840 | true; \ |
e393202e | 6841 | fi; \ |
e393202e | 6842 | else \ |
bba45b8b | 6843 | exit 1; \ |
e393202e | 6844 | fi; \ |
bba45b8b NN |
6845 | else \ |
6846 | true; \ | |
6847 | fi; \ | |
6848 | srcdiroption="--srcdir=."; \ | |
6849 | libsrcdir="."; \ | |
6850 | else \ | |
6851 | srcdiroption="--srcdir=$${topdir}/zlib"; \ | |
6852 | libsrcdir="$$s/zlib"; \ | |
6853 | fi; \ | |
6854 | rm -f no-such-file || : ; \ | |
6855 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6856 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6857 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6858 | || exit 1 | |
252b5132 | 6859 | |
930314a4 NN |
6860 | .PHONY: all-target-zlib maybe-all-target-zlib |
6861 | maybe-all-target-zlib: | |
15723a45 | 6862 | all-target-zlib: configure-target-zlib |
930314a4 | 6863 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6864 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6865 | $(SET_LIB_PATH) \ | |
6866 | (cd $(TARGET_SUBDIR)/zlib && \ | |
6867 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
252b5132 | 6868 | |
e393202e NN |
6869 | .PHONY: check-target-zlib |
6870 | check-target-zlib: | |
930314a4 | 6871 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6872 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6873 | $(SET_LIB_PATH) \ | |
6874 | (cd $(TARGET_SUBDIR)/zlib && \ | |
6875 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
252b5132 | 6876 | |
930314a4 NN |
6877 | |
6878 | .PHONY: install-target-zlib maybe-install-target-zlib | |
6879 | maybe-install-target-zlib: | |
e393202e | 6880 | install-target-zlib: installdirs |
930314a4 | 6881 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6882 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6883 | $(SET_LIB_PATH) \ | |
6884 | (cd $(TARGET_SUBDIR)/zlib && \ | |
6885 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
49b7683b | 6886 | |
e393202e | 6887 | |
930314a4 NN |
6888 | .PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc |
6889 | maybe-configure-target-boehm-gc: | |
15723a45 | 6890 | |
1086bc09 NN |
6891 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6892 | $(TARGET_SUBDIR)/boehm-gc/multilib.out: multilib.out | |
e6bfb94a | 6893 | @[ -d $(TARGET_SUBDIR)/boehm-gc ] || \ |
bba45b8b | 6894 | mkdir $(TARGET_SUBDIR)/boehm-gc; \ |
e6bfb94a | 6895 | rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile || : ; \ |
1086bc09 | 6896 | cp multilib.out $(TARGET_SUBDIR)/boehm-gc/multilib.out |
15723a45 | 6897 | |
e6bfb94a AO |
6898 | configure-target-boehm-gc: $(TARGET_SUBDIR)/boehm-gc/multilib.out |
6899 | @test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \ | |
bba45b8b NN |
6900 | [ -d $(TARGET_SUBDIR)/boehm-gc ] || \ |
6901 | mkdir $(TARGET_SUBDIR)/boehm-gc;\ | |
6902 | r=`${PWD}`; export r; \ | |
6903 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6904 | $(SET_LIB_PATH) \ | |
6905 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
6906 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
6907 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
6908 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
6909 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
6910 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
6911 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
6912 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
6913 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
6914 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
6915 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
6916 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
6917 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
6918 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
6919 | echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \ | |
6920 | cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \ | |
6921 | case $(srcdir) in \ | |
6922 | /* | [A-Za-z]:[\\/]*) \ | |
6923 | topdir=$(srcdir) ;; \ | |
6924 | *) \ | |
6925 | case "$(TARGET_SUBDIR)" in \ | |
49b7683b DD |
6926 | .) topdir="../$(srcdir)" ;; \ |
6927 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
6928 | esac ;; \ |
6929 | esac; \ | |
6930 | if [ "$(srcdir)" = "." ] ; then \ | |
6931 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
6932 | if $(SHELL) $$s/symlink-tree $${topdir}/boehm-gc "no-such-file" ; then \ | |
6933 | if [ -f Makefile ]; then \ | |
6934 | if $(MAKE) distclean; then \ | |
6935 | true; \ | |
6936 | else \ | |
6937 | exit 1; \ | |
6938 | fi; \ | |
49b7683b | 6939 | else \ |
bba45b8b | 6940 | true; \ |
49b7683b | 6941 | fi; \ |
49b7683b | 6942 | else \ |
bba45b8b | 6943 | exit 1; \ |
49b7683b | 6944 | fi; \ |
bba45b8b NN |
6945 | else \ |
6946 | true; \ | |
6947 | fi; \ | |
6948 | srcdiroption="--srcdir=."; \ | |
6949 | libsrcdir="."; \ | |
6950 | else \ | |
6951 | srcdiroption="--srcdir=$${topdir}/boehm-gc"; \ | |
6952 | libsrcdir="$$s/boehm-gc"; \ | |
6953 | fi; \ | |
6954 | rm -f no-such-file || : ; \ | |
6955 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
6956 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
6957 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
6958 | || exit 1 | |
49b7683b | 6959 | |
930314a4 NN |
6960 | .PHONY: all-target-boehm-gc maybe-all-target-boehm-gc |
6961 | maybe-all-target-boehm-gc: | |
15723a45 | 6962 | all-target-boehm-gc: configure-target-boehm-gc |
930314a4 | 6963 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6964 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6965 | $(SET_LIB_PATH) \ | |
6966 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
6967 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
252b5132 | 6968 | |
e393202e NN |
6969 | .PHONY: check-target-boehm-gc |
6970 | check-target-boehm-gc: | |
930314a4 | 6971 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6972 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6973 | $(SET_LIB_PATH) \ | |
6974 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
6975 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
252b5132 | 6976 | |
930314a4 NN |
6977 | |
6978 | .PHONY: install-target-boehm-gc maybe-install-target-boehm-gc | |
6979 | maybe-install-target-boehm-gc: | |
e393202e | 6980 | install-target-boehm-gc: installdirs |
930314a4 | 6981 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
6982 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6983 | $(SET_LIB_PATH) \ | |
6984 | (cd $(TARGET_SUBDIR)/boehm-gc && \ | |
6985 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
e393202e NN |
6986 | |
6987 | ||
930314a4 NN |
6988 | .PHONY: configure-target-qthreads maybe-configure-target-qthreads |
6989 | maybe-configure-target-qthreads: | |
15723a45 | 6990 | |
1086bc09 NN |
6991 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
6992 | $(TARGET_SUBDIR)/qthreads/multilib.out: multilib.out | |
e6bfb94a | 6993 | @[ -d $(TARGET_SUBDIR)/qthreads ] || \ |
bba45b8b | 6994 | mkdir $(TARGET_SUBDIR)/qthreads; \ |
e6bfb94a | 6995 | rm -f $(TARGET_SUBDIR)/qthreads/Makefile || : ; \ |
1086bc09 | 6996 | cp multilib.out $(TARGET_SUBDIR)/qthreads/multilib.out |
15723a45 | 6997 | |
e6bfb94a AO |
6998 | configure-target-qthreads: $(TARGET_SUBDIR)/qthreads/multilib.out |
6999 | @test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \ | |
bba45b8b NN |
7000 | [ -d $(TARGET_SUBDIR)/qthreads ] || \ |
7001 | mkdir $(TARGET_SUBDIR)/qthreads;\ | |
7002 | r=`${PWD}`; export r; \ | |
7003 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7004 | $(SET_LIB_PATH) \ | |
7005 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
7006 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
7007 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
7008 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7009 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
7010 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7011 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
7012 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
7013 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
7014 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7015 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7016 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7017 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7018 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
7019 | echo Configuring in $(TARGET_SUBDIR)/qthreads; \ | |
7020 | cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \ | |
7021 | case $(srcdir) in \ | |
7022 | /* | [A-Za-z]:[\\/]*) \ | |
7023 | topdir=$(srcdir) ;; \ | |
7024 | *) \ | |
7025 | case "$(TARGET_SUBDIR)" in \ | |
e393202e NN |
7026 | .) topdir="../$(srcdir)" ;; \ |
7027 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
7028 | esac ;; \ |
7029 | esac; \ | |
7030 | if [ "$(srcdir)" = "." ] ; then \ | |
7031 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
7032 | if $(SHELL) $$s/symlink-tree $${topdir}/qthreads "no-such-file" ; then \ | |
7033 | if [ -f Makefile ]; then \ | |
7034 | if $(MAKE) distclean; then \ | |
7035 | true; \ | |
7036 | else \ | |
7037 | exit 1; \ | |
7038 | fi; \ | |
e393202e | 7039 | else \ |
bba45b8b | 7040 | true; \ |
e393202e | 7041 | fi; \ |
e393202e | 7042 | else \ |
bba45b8b | 7043 | exit 1; \ |
e393202e | 7044 | fi; \ |
bba45b8b NN |
7045 | else \ |
7046 | true; \ | |
7047 | fi; \ | |
7048 | srcdiroption="--srcdir=."; \ | |
7049 | libsrcdir="."; \ | |
7050 | else \ | |
7051 | srcdiroption="--srcdir=$${topdir}/qthreads"; \ | |
7052 | libsrcdir="$$s/qthreads"; \ | |
7053 | fi; \ | |
7054 | rm -f no-such-file || : ; \ | |
7055 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7056 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7057 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
7058 | || exit 1 | |
252b5132 | 7059 | |
930314a4 NN |
7060 | .PHONY: all-target-qthreads maybe-all-target-qthreads |
7061 | maybe-all-target-qthreads: | |
15723a45 | 7062 | all-target-qthreads: configure-target-qthreads |
930314a4 | 7063 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7064 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7065 | $(SET_LIB_PATH) \ | |
7066 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
7067 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
252b5132 | 7068 | |
e393202e NN |
7069 | .PHONY: check-target-qthreads |
7070 | check-target-qthreads: | |
930314a4 | 7071 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7072 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7073 | $(SET_LIB_PATH) \ | |
7074 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
7075 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
e393202e | 7076 | |
930314a4 NN |
7077 | |
7078 | .PHONY: install-target-qthreads maybe-install-target-qthreads | |
7079 | maybe-install-target-qthreads: | |
e393202e | 7080 | install-target-qthreads: installdirs |
930314a4 | 7081 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7082 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7083 | $(SET_LIB_PATH) \ | |
7084 | (cd $(TARGET_SUBDIR)/qthreads && \ | |
7085 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
252b5132 | 7086 | |
e393202e | 7087 | |
930314a4 NN |
7088 | .PHONY: configure-target-rda maybe-configure-target-rda |
7089 | maybe-configure-target-rda: | |
15723a45 | 7090 | |
1086bc09 NN |
7091 | # There's only one multilib.out. Cleverer subdirs shouldn't need it copied. |
7092 | $(TARGET_SUBDIR)/rda/multilib.out: multilib.out | |
e6bfb94a | 7093 | @[ -d $(TARGET_SUBDIR)/rda ] || \ |
bba45b8b | 7094 | mkdir $(TARGET_SUBDIR)/rda; \ |
e6bfb94a | 7095 | rm -f $(TARGET_SUBDIR)/rda/Makefile || : ; \ |
1086bc09 | 7096 | cp multilib.out $(TARGET_SUBDIR)/rda/multilib.out |
15723a45 | 7097 | |
e6bfb94a AO |
7098 | configure-target-rda: $(TARGET_SUBDIR)/rda/multilib.out |
7099 | @test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \ | |
bba45b8b NN |
7100 | [ -d $(TARGET_SUBDIR)/rda ] || \ |
7101 | mkdir $(TARGET_SUBDIR)/rda;\ | |
7102 | r=`${PWD}`; export r; \ | |
7103 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7104 | $(SET_LIB_PATH) \ | |
7105 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
7106 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
7107 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
7108 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
7109 | CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \ | |
7110 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
7111 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
7112 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ | |
7113 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ | |
7114 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
7115 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
7116 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
7117 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
7118 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
7119 | echo Configuring in $(TARGET_SUBDIR)/rda; \ | |
7120 | cd "$(TARGET_SUBDIR)/rda" || exit 1; \ | |
7121 | case $(srcdir) in \ | |
7122 | /* | [A-Za-z]:[\\/]*) \ | |
7123 | topdir=$(srcdir) ;; \ | |
7124 | *) \ | |
7125 | case "$(TARGET_SUBDIR)" in \ | |
252b5132 RH |
7126 | .) topdir="../$(srcdir)" ;; \ |
7127 | *) topdir="../../$(srcdir)" ;; \ | |
bba45b8b NN |
7128 | esac ;; \ |
7129 | esac; \ | |
7130 | if [ "$(srcdir)" = "." ] ; then \ | |
7131 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
7132 | if $(SHELL) $$s/symlink-tree $${topdir}/rda "no-such-file" ; then \ | |
7133 | if [ -f Makefile ]; then \ | |
7134 | if $(MAKE) distclean; then \ | |
7135 | true; \ | |
7136 | else \ | |
7137 | exit 1; \ | |
7138 | fi; \ | |
252b5132 | 7139 | else \ |
bba45b8b | 7140 | true; \ |
252b5132 | 7141 | fi; \ |
252b5132 | 7142 | else \ |
bba45b8b | 7143 | exit 1; \ |
252b5132 | 7144 | fi; \ |
bba45b8b NN |
7145 | else \ |
7146 | true; \ | |
7147 | fi; \ | |
7148 | srcdiroption="--srcdir=."; \ | |
7149 | libsrcdir="."; \ | |
7150 | else \ | |
7151 | srcdiroption="--srcdir=$${topdir}/rda"; \ | |
7152 | libsrcdir="$$s/rda"; \ | |
7153 | fi; \ | |
7154 | rm -f no-such-file || : ; \ | |
7155 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
7156 | $(TARGET_CONFIGARGS) $${srcdiroption} \ | |
7157 | --with-target-subdir="$(TARGET_SUBDIR)" \ | |
7158 | || exit 1 | |
252b5132 | 7159 | |
930314a4 NN |
7160 | .PHONY: all-target-rda maybe-all-target-rda |
7161 | maybe-all-target-rda: | |
15723a45 | 7162 | all-target-rda: configure-target-rda |
930314a4 | 7163 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7164 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7165 | $(SET_LIB_PATH) \ | |
7166 | (cd $(TARGET_SUBDIR)/rda && \ | |
7167 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all) | |
252b5132 | 7168 | |
e393202e NN |
7169 | .PHONY: check-target-rda |
7170 | check-target-rda: | |
930314a4 | 7171 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7172 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7173 | $(SET_LIB_PATH) \ | |
7174 | (cd $(TARGET_SUBDIR)/rda && \ | |
7175 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check) | |
252b5132 | 7176 | |
930314a4 NN |
7177 | |
7178 | .PHONY: install-target-rda maybe-install-target-rda | |
7179 | maybe-install-target-rda: | |
e393202e | 7180 | install-target-rda: installdirs |
930314a4 | 7181 | @r=`${PWD}`; export r; \ |
bba45b8b NN |
7182 | s=`cd $(srcdir); ${PWD}`; export s; \ |
7183 | $(SET_LIB_PATH) \ | |
7184 | (cd $(TARGET_SUBDIR)/rda && \ | |
7185 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install) | |
252b5132 | 7186 | |
e393202e NN |
7187 | |
7188 | ||
15723a45 NN |
7189 | # ---------- |
7190 | # GCC module | |
7191 | # ---------- | |
7192 | ||
7193 | # Unfortunately, while gcc _should_ be a host module, | |
7194 | # libgcc is a target module, and gen* programs are | |
7195 | # build modules. So GCC is a sort of hybrid. | |
7196 | ||
252b5132 | 7197 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. |
e2b9e2dc NN |
7198 | .PHONY: configure-gcc maybe-configure-gcc |
7199 | maybe-configure-gcc: | |
e6bfb94a AO |
7200 | configure-gcc: |
7201 | @test ! -f gcc/Makefile || exit 0; \ | |
7202 | [ -d gcc ] || mkdir gcc; \ | |
e2b9e2dc NN |
7203 | r=`${PWD}`; export r; \ |
7204 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7205 | CC="$(CC)"; export CC; \ | |
7206 | CFLAGS="$(CFLAGS)"; export CFLAGS; \ | |
7207 | CXX="$(CXX)"; export CXX; \ | |
7208 | CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \ | |
586c0873 | 7209 | TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \ |
e2b9e2dc NN |
7210 | if [ z$(build_canonical) != z$(host_canoncial) ] ; then \ |
7211 | AR="$(AR)"; export AR; \ | |
7212 | AS="$(AS)"; export AS; \ | |
7213 | CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \ | |
7214 | DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ | |
7215 | LD="$(LD)"; export LD; \ | |
7216 | NM="$(NM)"; export NM; \ | |
7217 | RANLIB="$(RANLIB)"; export RANLIB; \ | |
7218 | WINDRES="$(WINDRES)"; export WINDRES; \ | |
7219 | OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \ | |
7220 | OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \ | |
7221 | fi; \ | |
7222 | echo Configuring in gcc; \ | |
7223 | cd gcc || exit 1; \ | |
7224 | case $(srcdir) in \ | |
7225 | \.) \ | |
7226 | srcdiroption="--srcdir=."; \ | |
7227 | libsrcdir=".";; \ | |
7228 | /* | [A-Za-z]:[\\/]*) \ | |
7229 | srcdiroption="--srcdir=$(srcdir)/gcc"; \ | |
7230 | libsrcdir="$$s/gcc";; \ | |
7231 | *) \ | |
7232 | srcdiroption="--srcdir=../$(srcdir)/gcc"; \ | |
7233 | libsrcdir="$$s/gcc";; \ | |
7234 | esac; \ | |
7235 | $(SHELL) $${libsrcdir}/configure \ | |
7236 | $(HOST_CONFIGARGS) $${srcdiroption} \ | |
7237 | || exit 1 | |
7238 | ||
b72e6a2d JM |
7239 | # Don't 'make all' in gcc if it's already been made by 'bootstrap'; that |
7240 | # causes trouble. This wart will be fixed eventually by moving | |
db1ac78d | 7241 | # the bootstrap behavior to this file. |
930314a4 NN |
7242 | .PHONY: all-gcc maybe-all-gcc |
7243 | maybe-all-gcc: | |
db1ac78d | 7244 | all-gcc: configure-gcc |
b72e6a2d JM |
7245 | @if [ -f gcc/stage_last ] ; then \ |
7246 | r=`${PWD}`; export r; \ | |
7247 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
7248 | $(SET_LIB_PATH) \ | |
1086bc09 | 7249 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) quickstrap); \ |
db1ac78d | 7250 | else \ |
d5de0a84 NC |
7251 | r=`${PWD}`; export r; \ |
7252 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7253 | $(SET_LIB_PATH) \ |
1086bc09 | 7254 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ |
252b5132 RH |
7255 | fi |
7256 | ||
7257 | # Building GCC uses some tools for rebuilding "source" files | |
7258 | # like texinfo, bison/byacc, etc. So we must depend on those. | |
7259 | # | |
7260 | # While building GCC, it may be necessary to run various target | |
7261 | # programs like the assembler, linker, etc. So we depend on | |
7262 | # those too. | |
7263 | # | |
7264 | # In theory, on an SMP all those dependencies can be resolved | |
7265 | # in parallel. | |
7266 | # | |
1aa8389d | 7267 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap |
db1ac78d | 7268 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap configure-gcc |
d5de0a84 NC |
7269 | @r=`${PWD}`; export r; \ |
7270 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7271 | $(SET_LIB_PATH) \ |
7272 | echo "Bootstrapping the compiler"; \ | |
5cec67bf | 7273 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
d5de0a84 NC |
7274 | @r=`${PWD}`; export r; \ |
7275 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7276 | case "$@" in \ |
7277 | *bootstrap4-lean ) \ | |
bba45b8b NN |
7278 | msg="Comparing stage3 and stage4 of the compiler"; \ |
7279 | compare=compare3-lean ;; \ | |
7280 | *bootstrap4 ) \ | |
7281 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
7282 | compare=compare3 ;; \ | |
7283 | *-lean ) \ | |
7284 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
7285 | compare=compare-lean ;; \ | |
7286 | * ) \ | |
7287 | msg="Comparing stage2 and stage3 of the compiler"; \ | |
7288 | compare=compare ;; \ | |
252b5132 RH |
7289 | esac; \ |
7290 | $(SET_LIB_PATH) \ | |
7291 | echo "$$msg"; \ | |
5cec67bf | 7292 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
d5de0a84 NC |
7293 | @r=`${PWD}`; export r; \ |
7294 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
252b5132 RH |
7295 | $(SET_LIB_PATH) \ |
7296 | echo "Building runtime libraries"; \ | |
dec0cb0c | 7297 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all |
252b5132 RH |
7298 | |
7299 | .PHONY: cross | |
7300 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
d5de0a84 NC |
7301 | @r=`${PWD}`; export r; \ |
7302 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 RH |
7303 | $(SET_LIB_PATH) \ |
7304 | echo "Building the C and C++ compiler"; \ | |
5cec67bf | 7305 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
d5de0a84 NC |
7306 | @r=`${PWD}`; export r; \ |
7307 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
252b5132 RH |
7308 | $(SET_LIB_PATH) \ |
7309 | echo "Building runtime libraries"; \ | |
dec0cb0c AO |
7310 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \ |
7311 | LANGUAGES="c c++" all | |
252b5132 RH |
7312 | |
7313 | .PHONY: check-gcc | |
7314 | check-gcc: | |
7315 | @if [ -f ./gcc/Makefile ] ; then \ | |
d5de0a84 NC |
7316 | r=`${PWD}`; export r; \ |
7317 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7318 | $(SET_LIB_PATH) \ |
1086bc09 | 7319 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ |
252b5132 RH |
7320 | else \ |
7321 | true; \ | |
7322 | fi | |
7323 | ||
7d695d07 JM |
7324 | .PHONY: check-gcc-c++ |
7325 | check-gcc-c++: | |
75205f78 | 7326 | @if [ -f ./gcc/Makefile ] ; then \ |
d5de0a84 NC |
7327 | r=`${PWD}`; export r; \ |
7328 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
75205f78 | 7329 | $(SET_LIB_PATH) \ |
1086bc09 | 7330 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ |
75205f78 DD |
7331 | else \ |
7332 | true; \ | |
7d695d07 JM |
7333 | fi |
7334 | ||
7335 | .PHONY: check-c++ | |
e9e45685 JM |
7336 | check-c++: |
7337 | $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok | |
75205f78 | 7338 | |
930314a4 NN |
7339 | .PHONY: install-gcc maybe-install-gcc |
7340 | maybe-install-gcc: | |
252b5132 RH |
7341 | install-gcc: |
7342 | @if [ -f ./gcc/Makefile ] ; then \ | |
d5de0a84 NC |
7343 | r=`${PWD}`; export r; \ |
7344 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
252b5132 | 7345 | $(SET_LIB_PATH) \ |
1086bc09 | 7346 | (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
252b5132 RH |
7347 | else \ |
7348 | true; \ | |
7349 | fi | |
7350 | ||
15723a45 NN |
7351 | # Install the gcc headers files, but not the fixed include files, |
7352 | # which Cygnus is not allowed to distribute. This rule is very | |
7353 | # dependent on the workings of the gcc Makefile.in. | |
7354 | .PHONY: gcc-no-fixedincludes | |
7355 | gcc-no-fixedincludes: | |
7356 | @if [ -f ./gcc/Makefile ]; then \ | |
7357 | rm -rf gcc/tmp-include; \ | |
7358 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
7359 | mkdir gcc/include; \ | |
7360 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
7361 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
7362 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
7363 | r=`${PWD}`; export r; \ | |
7364 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
7365 | $(SET_LIB_PATH) \ | |
1086bc09 | 7366 | (cd ./gcc && \ |
15723a45 NN |
7367 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
7368 | rm -rf gcc/include; \ | |
7369 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
7370 | else true; fi | |
7371 | ||
ae831be5 NN |
7372 | # -------------------------------------- |
7373 | # Dependencies between different modules | |
7374 | # -------------------------------------- | |
252b5132 | 7375 | |
ae831be5 NN |
7376 | # There are two types of dependencies here: 'hard' dependencies, where one |
7377 | # module simply won't build without the other; and 'soft' dependencies, where | |
7378 | # if the depended-on module is missing, the depending module will do without | |
7379 | # or find a substitute somewhere (perhaps installed). Soft dependencies | |
7380 | # are specified by depending on a 'maybe-' target. If you're not sure, | |
7381 | # it's safer to use a soft dependency. | |
7382 | ||
7383 | # Host modules specific to gcc. | |
e2b9e2dc | 7384 | # GCC needs to identify certain tools. |
b4a77b47 | 7385 | configure-gcc: maybe-configure-binutils maybe-configure-gas maybe-configure-ld maybe-configure-bison maybe-configure-flex |
ae831be5 NN |
7386 | all-gcc: maybe-all-libiberty maybe-all-bison maybe-all-byacc maybe-all-binutils maybe-all-gas maybe-all-ld maybe-all-zlib |
7387 | # This is a slightly kludgy method of getting dependencies on | |
7388 | # all-build-libiberty correct; it would be better to build it every time. | |
7389 | all-gcc: maybe-all-build-libiberty | |
7390 | 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 | |
7391 | ||
7392 | # Host modules specific to gdb. | |
e2b9e2dc | 7393 | # GDB needs to know that the simulator is being built. |
b4a77b47 | 7394 | configure-gdb: maybe-configure-tcl maybe-configure-tk maybe-configure-sim |
ae831be5 NN |
7395 | GDB_TK = @GDB_TK@ |
7396 | 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) | |
7397 | install-gdb: maybe-install-tcl maybe-install-tk maybe-install-itcl maybe-install-tix maybe-install-libgui | |
59da4fe6 | 7398 | configure-libgui: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7399 | all-libgui: maybe-all-tcl maybe-all-tk maybe-all-itcl |
7400 | ||
7401 | # Host modules specific to binutils. | |
b4a77b47 | 7402 | configure-bfd: configure-libiberty |
930314a4 NN |
7403 | all-bfd: maybe-all-libiberty maybe-all-intl |
7404 | 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 |
7405 | # We put install-opcodes before install-binutils because the installed |
7406 | # binutils might be on PATH, and they might need the shared opcodes | |
7407 | # library. | |
7408 | install-binutils: maybe-install-opcodes | |
7409 | all-gas: maybe-all-libiberty maybe-all-opcodes maybe-all-bfd maybe-all-intl | |
7410 | all-gprof: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-intl | |
7411 | all-ld: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-bison maybe-all-byacc maybe-all-flex maybe-all-intl | |
7412 | all-opcodes: maybe-all-bfd maybe-all-libiberty | |
7413 | ||
7414 | # Other host modules in the 'src' repository. | |
930314a4 | 7415 | all-dejagnu: maybe-all-tcl maybe-all-expect maybe-all-tk |
b4a77b47 | 7416 | configure-expect: maybe-configure-tcl maybe-configure-tk |
930314a4 | 7417 | all-expect: maybe-all-tcl maybe-all-tk |
b4a77b47 | 7418 | configure-itcl: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7419 | all-itcl: maybe-all-tcl maybe-all-tk |
7420 | # We put install-tcl before install-itcl because itcl wants to run a | |
7421 | # program on installation which uses the Tcl libraries. | |
7422 | install-itcl: maybe-install-tcl | |
122bfa92 | 7423 | all-sid: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-tcl maybe-all-tk |
ae831be5 | 7424 | install-sid: maybe-install-tcl maybe-install-tk |
a36d530e | 7425 | all-sim: maybe-all-libiberty maybe-all-bfd maybe-all-opcodes maybe-all-readline maybe-configure-gdb |
b4a77b47 | 7426 | configure-tk: maybe-configure-tcl |
ae831be5 | 7427 | all-tk: maybe-all-tcl |
b4a77b47 | 7428 | configure-tix: maybe-configure-tcl maybe-configure-tk |
ae831be5 NN |
7429 | all-tix: maybe-all-tcl maybe-all-tk |
7430 | all-texinfo: maybe-all-libiberty | |
7431 | ||
7432 | # Other host modules. Warning, these are not well tested. | |
7433 | all-autoconf: maybe-all-m4 maybe-all-texinfo | |
7434 | all-automake: maybe-all-m4 maybe-all-texinfo | |
7435 | all-bison: maybe-all-texinfo | |
7436 | all-diff: maybe-all-libiberty | |
7437 | all-fastjar: maybe-all-zlib maybe-all-libiberty | |
930314a4 NN |
7438 | all-fileutils: maybe-all-libiberty |
7439 | all-flex: maybe-all-libiberty maybe-all-bison maybe-all-byacc | |
930314a4 NN |
7440 | all-gzip: maybe-all-libiberty |
7441 | all-hello: maybe-all-libiberty | |
930314a4 NN |
7442 | all-m4: maybe-all-libiberty maybe-all-texinfo |
7443 | all-make: maybe-all-libiberty | |
930314a4 NN |
7444 | all-patch: maybe-all-libiberty |
7445 | all-prms: maybe-all-libiberty | |
930314a4 NN |
7446 | all-recode: maybe-all-libiberty |
7447 | all-sed: maybe-all-libiberty | |
7448 | all-send-pr: maybe-all-prms | |
930314a4 | 7449 | all-tar: maybe-all-libiberty |
930314a4 | 7450 | all-uudecode: maybe-all-libiberty |
ae831be5 NN |
7451 | |
7452 | ALL_GCC = maybe-all-gcc | |
7453 | ALL_GCC_C = $(ALL_GCC) maybe-all-target-newlib maybe-all-target-libgloss | |
7454 | ALL_GCC_CXX = $(ALL_GCC_C) maybe-all-target-libstdc++-v3 | |
7455 | ||
7456 | # Target modules specific to gcc. | |
b4a77b47 DD |
7457 | configure-target-boehm-gc: $(ALL_GCC_C) maybe-configure-target-qthreads |
7458 | configure-target-fastjar: maybe-configure-target-zlib | |
930314a4 | 7459 | all-target-fastjar: maybe-all-target-zlib maybe-all-target-libiberty |
b4a77b47 | 7460 | configure-target-libf2c: $(ALL_GCC_C) |
ae831be5 | 7461 | all-target-libf2c: maybe-all-target-libiberty |
b4a77b47 DD |
7462 | configure-target-libffi: $(ALL_GCC_C) |
7463 | configure-target-libjava: $(ALL_GCC_C) maybe-configure-target-zlib maybe-configure-target-boehm-gc maybe-configure-target-qthreads maybe-configure-target-libffi | |
ae831be5 | 7464 | all-target-libjava: maybe-all-fastjar maybe-all-target-zlib maybe-all-target-boehm-gc maybe-all-target-qthreads maybe-all-target-libffi |
b4a77b47 | 7465 | configure-target-libobjc: $(ALL_GCC_C) |
ae831be5 | 7466 | all-target-libobjc: maybe-all-target-libiberty |
b4a77b47 | 7467 | configure-target-libstdc++-v3: $(ALL_GCC_C) |
ae831be5 | 7468 | all-target-libstdc++-v3: maybe-all-target-libiberty |
b4a77b47 | 7469 | configure-target-zlib: $(ALL_GCC_C) |
a9590527 | 7470 | |
ae831be5 | 7471 | # Target modules in the 'src' repository. |
b4a77b47 DD |
7472 | configure-target-examples: $(ALL_GCC_C) |
7473 | configure-target-libgloss: $(ALL_GCC) | |
ae831be5 | 7474 | all-target-libgloss: maybe-configure-target-newlib |
b4a77b47 DD |
7475 | configure-target-libiberty: $(ALL_GCC_C) |
7476 | configure-target-libtermcap: $(ALL_GCC_C) | |
7477 | configure-target-newlib: $(ALL_GCC) | |
7dda0df6 | 7478 | configure-target-rda: $(ALL_GCC_C) |
b4a77b47 | 7479 | configure-target-winsup: $(ALL_GCC_C) |
ae831be5 | 7480 | all-target-winsup: maybe-all-target-libiberty maybe-all-target-libtermcap |
a9590527 | 7481 | |
ae831be5 | 7482 | # Other target modules. Warning, these are not well tested. |
b4a77b47 | 7483 | configure-target-gperf: $(ALL_GCC_CXX) |
ae831be5 | 7484 | all-target-gperf: maybe-all-target-libiberty maybe-all-target-libstdc++-v3 |
b4a77b47 | 7485 | configure-target-qthreads: $(ALL_GCC_C) |
907a7241 | 7486 | |
930314a4 NN |
7487 | # Dependencies of maybe-foo on foo. These are used because, for example, |
7488 | # all-gcc only depends on all-gas if gas is present and being configured. | |
7489 | @maybe_dependencies@ | |
7490 | ||
a2cc058a NN |
7491 | # Serialization dependencies. Host configures don't work well in parallel to |
7492 | # each other, due to contention over config.cache. Target configures and | |
7493 | # build configures are similar. | |
7494 | @serialization_dependencies@ | |
7495 | ||
15723a45 NN |
7496 | # -------------------------------- |
7497 | # Regenerating top level configury | |
7498 | # -------------------------------- | |
252b5132 | 7499 | |
1086bc09 NN |
7500 | # Multilib.out tells target dirs what multilibs they should build. |
7501 | # There is really only one copy. We use the 'timestamp' method to | |
7502 | # work around various timestamp bugs on some systems. | |
7503 | # We use move-if-change so that it's only considered updated when it | |
7504 | # actually changes, because it has to depend on a phony target. | |
e6bfb94a | 7505 | multilib.out: maybe-all-gcc |
1086bc09 NN |
7506 | @r=`${PWD}`; export r; \ |
7507 | echo "Checking multilib configuration..."; \ | |
7508 | $(CC_FOR_TARGET) --print-multi-lib > multilib.tmp 2> /dev/null ; \ | |
7509 | $(SHELL) $(srcdir)/move-if-change multilib.tmp multilib.out ; \ | |
1086bc09 | 7510 | |
14a2a2f1 | 7511 | # Rebuilding Makefile.in, using autogen. |
43be203f | 7512 | AUTOGEN = autogen |
6b784d9f | 7513 | $(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def |
43be203f | 7514 | cd $(srcdir) && $(AUTOGEN) Makefile.def |
14a2a2f1 | 7515 | |
a0da8069 | 7516 | # Rebuilding Makefile. |
43be203f AO |
7517 | Makefile: $(srcdir)/Makefile.in config.status |
7518 | CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
7519 | ||
7520 | config.status: configure $(gcc_version_trigger) | |
a0da8069 | 7521 | $(SHELL) ./config.status --recheck |
252b5132 | 7522 | |
a0da8069 | 7523 | # Rebuilding configure. |
43be203f | 7524 | AUTOCONF = autoconf |
6b784d9f | 7525 | $(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4 |
43be203f | 7526 | cd $(srcdir) && $(AUTOCONF) |
252b5132 | 7527 | |
3728fade NN |
7528 | # ------------------------------ |
7529 | # Special directives to GNU Make | |
7530 | # ------------------------------ | |
7531 | ||
43be203f AO |
7532 | # Tell GNU make 3.79 not to run the top level in parallel. This |
7533 | # prevents contention for $builddir/$target/config.cache, as well | |
7534 | # as minimizing scatter in file system caches. | |
7535 | NOTPARALLEL = .NOTPARALLEL | |
7536 | $(NOTPARALLEL): | |
7537 | ||
3728fade NN |
7538 | # Don't pass command-line variables to submakes. |
7539 | .NOEXPORT: | |
7540 | MAKEOVERRIDES= | |
7541 | ||
252b5132 | 7542 | # end of Makefile.in |