]>
Commit | Line | Data |
---|---|---|
95ddd785 NN |
1 | |
2 | # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'. | |
6599da04 JM |
3 | # |
4 | # Makefile for directory with subdirs to build. | |
6e2a4843 | 5 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
1e6347d8 | 6 | # 1999, 2000, 2001, 2002 Free Software Foundation |
6599da04 JM |
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 | ||
c2273204 | 23 | # Tell GNU make 3.79 not to run the top level in parallel. This |
63adb4ff RH |
24 | # prevents contention for $builddir/$target/config.cache, as well |
25 | # as minimizing scatter in file system caches. | |
c2273204 RH |
26 | NOTPARALLEL = .NOTPARALLEL |
27 | $(NOTPARALLEL): | |
63adb4ff | 28 | |
0dffceed NN |
29 | srcdir = @srcdir@ |
30 | ||
31 | prefix = @prefix@ | |
32 | exec_prefix = @exec_prefix@ | |
33 | ||
34 | bindir = @bindir@ | |
35 | sbindir = @sbindir@ | |
36 | libexecdir = @libexecdir@ | |
37 | datadir = @datadir@ | |
38 | sysconfdir = @sysconfdir@ | |
39 | sharedstatedir = @sharedstatedir@ | |
40 | localstatedir = @localstatedir@ | |
41 | libdir = @libdir@ | |
42 | includedir = @includedir@ | |
43 | oldincludedir = @oldincludedir@ | |
44 | infodir = @infodir@ | |
45 | mandir = @mandir@ | |
ec0461f6 | 46 | gxx_include_dir=@gxx_include_dir@ |
5d4a5ee6 | 47 | |
0dffceed NN |
48 | tooldir = @tooldir@ |
49 | build_tooldir = @build_tooldir@ | |
5cb95c7a | 50 | |
0dffceed | 51 | program_transform_name = @program_transform_name@ |
6599da04 | 52 | |
6599da04 JM |
53 | man1dir = $(mandir)/man1 |
54 | man2dir = $(mandir)/man2 | |
55 | man3dir = $(mandir)/man3 | |
56 | man4dir = $(mandir)/man4 | |
57 | man5dir = $(mandir)/man5 | |
58 | man6dir = $(mandir)/man6 | |
59 | man7dir = $(mandir)/man7 | |
60 | man8dir = $(mandir)/man8 | |
61 | man9dir = $(mandir)/man9 | |
fe2fa3c4 MH |
62 | # Directory in which the compiler finds executables, libraries, etc. |
63 | libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version) | |
6599da04 JM |
64 | GDB_NLM_DEPS = |
65 | ||
0dffceed | 66 | SHELL = @config_shell@ |
6599da04 | 67 | |
1e6347d8 RO |
68 | # pwd command to use. Allow user to override default by setting PWDCMD in |
69 | # the environment to account for automounters. The make variable must not | |
70 | # be called PWDCMD, otherwise the value set here is passed to make | |
71 | # subprocesses and overrides the setting from the user's environment. | |
72 | PWD = $${PWDCMD-pwd} | |
73 | ||
6599da04 | 74 | # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a |
d207ebef | 75 | # cygwin host. |
6599da04 JM |
76 | INSTALL_PROGRAM_ARGS = |
77 | ||
78 | INSTALL = $(SHELL) $$s/install-sh -c | |
79 | INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS) | |
80 | INSTALL_SCRIPT = $(INSTALL) | |
81 | INSTALL_DATA = $(INSTALL) -m 644 | |
82 | ||
83 | INSTALL_DOSREL = install-dosrel-fake | |
84 | ||
85 | AS = as | |
86 | AR = ar | |
87 | AR_FLAGS = rc | |
88 | CC = cc | |
89 | ||
90 | # Special variables passed down in EXTRA_GCC_FLAGS. They are defined | |
91 | # here so that they can be overridden by Makefile fragments. | |
92 | HOST_CC = $(CC_FOR_BUILD) | |
efe1f357 NN |
93 | BUILD_PREFIX = |
94 | BUILD_PREFIX_1 = loser- | |
6599da04 JM |
95 | |
96 | # These flag values are normally overridden by the configure script. | |
97 | CFLAGS = -g | |
98 | CXXFLAGS = -g -O2 | |
99 | ||
d207ebef | 100 | LDFLAGS = |
6599da04 | 101 | LIBCFLAGS = $(CFLAGS) |
d920e825 | 102 | CFLAGS_FOR_BUILD = $(CFLAGS) |
c8eb2bc0 KG |
103 | # During gcc bootstrap, if we use some random cc for stage1 then |
104 | # CFLAGS will be just -g. We want to ensure that TARGET libraries | |
105 | # (which we know are built with gcc) are built with optimizations so | |
106 | # prepend -O2 when setting CFLAGS_FOR_TARGET. | |
107 | CFLAGS_FOR_TARGET = -O2 $(CFLAGS) | |
6599da04 JM |
108 | LDFLAGS_FOR_TARGET = |
109 | LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET) | |
110 | PICFLAG = | |
111 | PICFLAG_FOR_TARGET = | |
112 | ||
113 | CXX = c++ | |
114 | ||
115 | # Use -O2 to stress test the compiler. | |
116 | LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates | |
117 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) | |
118 | LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates | |
119 | ||
6599da04 JM |
120 | DLLTOOL = dlltool |
121 | WINDRES = windres | |
122 | ||
123 | NM = nm | |
124 | ||
125 | LD = ld | |
126 | ||
6599da04 | 127 | # These values are substituted by configure. |
0dffceed NN |
128 | DEFAULT_YACC = @DEFAULT_YACC@ |
129 | DEFAULT_LEX = @DEFAULT_LEX@ | |
130 | DEFAULT_M4 = @DEFAULT_M4@ | |
6599da04 JM |
131 | |
132 | BISON = `if [ -f $$r/bison/bison ] ; then \ | |
133 | echo $$r/bison/bison -L $$s/bison/ ; \ | |
134 | else \ | |
135 | echo bison ; \ | |
136 | fi` | |
137 | ||
138 | YACC = `if [ -f $$r/bison/bison ] ; then \ | |
139 | echo $$r/bison/bison -y -L $$s/bison/ ; \ | |
140 | elif [ -f $$r/byacc/byacc ] ; then \ | |
141 | echo $$r/byacc/byacc ; \ | |
142 | else \ | |
143 | echo ${DEFAULT_YACC} ; \ | |
144 | fi` | |
145 | ||
146 | LEX = `if [ -f $$r/flex/flex ] ; \ | |
147 | then echo $$r/flex/flex ; \ | |
148 | else echo ${DEFAULT_LEX} ; fi` | |
149 | ||
150 | M4 = `if [ -f $$r/m4/m4 ] ; \ | |
151 | then echo $$r/m4/m4 ; \ | |
3a35dcc4 | 152 | else echo ${DEFAULT_M4} ; fi` |
6599da04 | 153 | |
53cdb27a HPN |
154 | # For an installed makeinfo, we require it to be from texinfo 4 or |
155 | # higher, else we use the "missing" dummy. | |
0210b33b | 156 | MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \ |
6599da04 | 157 | then echo $$r/texinfo/makeinfo/makeinfo ; \ |
53cdb27a HPN |
158 | else if (makeinfo --version \ |
159 | | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \ | |
160 | then echo makeinfo; else echo $$s/missing makeinfo; fi; fi` | |
6599da04 JM |
161 | |
162 | # This just becomes part of the MAKEINFO definition passed down to | |
163 | # sub-makes. It lets flags be given on the command line while still | |
164 | # using the makeinfo from the object tree. | |
165 | MAKEINFOFLAGS = | |
166 | ||
167 | EXPECT = `if [ -f $$r/expect/expect ] ; \ | |
168 | then echo $$r/expect/expect ; \ | |
169 | else echo expect ; fi` | |
170 | ||
171 | RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \ | |
172 | then echo $$s/dejagnu/runtest ; \ | |
173 | else echo runtest ; fi` | |
174 | ||
175 | ||
176 | # compilers to use to create programs which must be run in the build | |
177 | # environment. | |
178 | CC_FOR_BUILD = $(CC) | |
179 | CXX_FOR_BUILD = $(CXX) | |
180 | ||
dd30b57d | 181 | SUBDIRS = @configdirs@ |
6599da04 JM |
182 | |
183 | # This is set by the configure script to the list of directories which | |
184 | # should be built using the target tools. | |
ec0461f6 | 185 | TARGET_CONFIGDIRS = @target_configdirs@ |
6599da04 JM |
186 | |
187 | # Target libraries are put under this directory: | |
188 | # Changed by configure to $(target_alias) if cross. | |
ec0461f6 | 189 | TARGET_SUBDIR = @target_subdir@ |
6599da04 | 190 | |
e490616e | 191 | BUILD_CONFIGDIRS = libiberty |
ec0461f6 | 192 | BUILD_SUBDIR = @build_subdir@ |
e490616e ZW |
193 | |
194 | # This is set by the configure script to the arguments to use when configuring | |
195 | # directories built for the target. | |
ec0461f6 | 196 | TARGET_CONFIGARGS = @target_configargs@ |
e490616e ZW |
197 | |
198 | # This is set by the configure script to the arguments to use when configuring | |
199 | # directories built for the build system. | |
ec0461f6 | 200 | BUILD_CONFIGARGS = @build_configargs@ |
6599da04 JM |
201 | |
202 | # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared | |
203 | # was used. | |
aba8a494 | 204 | SET_LIB_PATH = @SET_LIB_PATH@ |
6599da04 JM |
205 | |
206 | # This is the name of the environment variable used for the path to | |
207 | # the libraries. This may be changed by configure.in. | |
fe3d5b7f | 208 | RPATH_ENVVAR = @RPATH_ENVVAR@ |
6599da04 | 209 | |
ce8e06b1 AO |
210 | # This is the list of directories that may be needed in RPATH_ENVVAR |
211 | # so that programs built for the host machine work. | |
212 | HOST_LIB_PATH = $$r/bfd:$$r/opcodes | |
213 | ||
214 | # This is the list of directories that may be needed in RPATH_ENVVAR | |
215 | # so that prorgams built for the target machine work. | |
4d88a68a | 216 | TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs: |
ce8e06b1 | 217 | |
6599da04 | 218 | # configure.in sets SET_LIB_PATH to this if --enable-shared was used. |
ce8e06b1 AO |
219 | # Some platforms don't like blank entries, so we remove duplicate, |
220 | # leading and trailing colons. | |
6599da04 | 221 | REALLY_SET_LIB_PATH = \ |
ce8e06b1 | 222 | $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); |
6599da04 JM |
223 | |
224 | ALL = all.normal | |
225 | INSTALL_TARGET = installdirs \ | |
96b0f1fc | 226 | install-gcc \ |
6599da04 JM |
227 | $(INSTALL_MODULES) \ |
228 | $(INSTALL_TARGET_MODULES) \ | |
229 | $(INSTALL_X11_MODULES) \ | |
6599da04 JM |
230 | $(INSTALL_DOSREL) |
231 | ||
205cba53 JL |
232 | INSTALL_TARGET_CROSS = installdirs \ |
233 | install-gcc-cross \ | |
234 | $(INSTALL_MODULES) \ | |
235 | $(INSTALL_TARGET_MODULES) \ | |
236 | $(INSTALL_X11_MODULES) \ | |
237 | $(INSTALL_DOSREL) | |
6599da04 | 238 | |
b87487b6 | 239 | # Should be substed by configure.in |
ec0461f6 NN |
240 | FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@ |
241 | CC_FOR_TARGET = @CC_FOR_TARGET@ | |
242 | CXX_FOR_TARGET = @CXX_FOR_TARGET@ | |
243 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@ | |
244 | GCJ_FOR_TARGET = @GCJ_FOR_TARGET@ | |
6599da04 | 245 | |
b87487b6 | 246 | # If GCC_FOR_TARGET is not overriden on the command line, then this |
6599da04 JM |
247 | # variable is passed down to the gcc Makefile, where it is used to |
248 | # build libgcc2.a. We define it here so that it can itself be | |
249 | # overridden on the command line. | |
7f9317f0 | 250 | GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET) |
6599da04 JM |
251 | |
252 | AS_FOR_TARGET = ` \ | |
253 | if [ -f $$r/gas/as-new ] ; then \ | |
254 | echo $$r/gas/as-new ; \ | |
e9a8af10 AO |
255 | elif [ -f $$r/gcc/xgcc ]; then \ |
256 | $(CC_FOR_TARGET) -print-prog-name=as ; \ | |
6599da04 | 257 | else \ |
759bfa90 | 258 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
259 | echo $(AS); \ |
260 | else \ | |
261 | t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ | |
262 | fi; \ | |
263 | fi` | |
264 | ||
265 | LD_FOR_TARGET = ` \ | |
266 | if [ -f $$r/ld/ld-new ] ; then \ | |
267 | echo $$r/ld/ld-new ; \ | |
e9a8af10 AO |
268 | elif [ -f $$r/gcc/xgcc ]; then \ |
269 | $(CC_FOR_TARGET) -print-prog-name=ld ; \ | |
6599da04 | 270 | else \ |
759bfa90 | 271 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
272 | echo $(LD); \ |
273 | else \ | |
274 | t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ | |
275 | fi; \ | |
276 | fi` | |
277 | ||
278 | DLLTOOL_FOR_TARGET = ` \ | |
279 | if [ -f $$r/binutils/dlltool ] ; then \ | |
280 | echo $$r/binutils/dlltool ; \ | |
281 | else \ | |
759bfa90 | 282 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
283 | echo $(DLLTOOL); \ |
284 | else \ | |
285 | t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ | |
286 | fi; \ | |
287 | fi` | |
288 | ||
289 | WINDRES_FOR_TARGET = ` \ | |
290 | if [ -f $$r/binutils/windres ] ; then \ | |
291 | echo $$r/binutils/windres ; \ | |
292 | else \ | |
759bfa90 | 293 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
294 | echo $(WINDRES); \ |
295 | else \ | |
296 | t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \ | |
297 | fi; \ | |
298 | fi` | |
299 | ||
300 | AR_FOR_TARGET = ` \ | |
301 | if [ -f $$r/binutils/ar ] ; then \ | |
302 | echo $$r/binutils/ar ; \ | |
303 | else \ | |
759bfa90 | 304 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
305 | echo $(AR); \ |
306 | else \ | |
307 | t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ | |
308 | fi; \ | |
309 | fi` | |
310 | ||
311 | RANLIB_FOR_TARGET = ` \ | |
312 | if [ -f $$r/binutils/ranlib ] ; then \ | |
313 | echo $$r/binutils/ranlib ; \ | |
314 | else \ | |
759bfa90 AO |
315 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
316 | if [ x'$(RANLIB)' != x ]; then \ | |
6822468a LB |
317 | echo $(RANLIB); \ |
318 | else \ | |
319 | echo ranlib; \ | |
320 | fi; \ | |
6599da04 JM |
321 | else \ |
322 | t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ | |
323 | fi; \ | |
324 | fi` | |
325 | ||
326 | NM_FOR_TARGET = ` \ | |
327 | if [ -f $$r/binutils/nm-new ] ; then \ | |
328 | echo $$r/binutils/nm-new ; \ | |
e9a8af10 AO |
329 | elif [ -f $$r/gcc/xgcc ]; then \ |
330 | $(CC_FOR_TARGET) -print-prog-name=nm ; \ | |
6599da04 | 331 | else \ |
759bfa90 | 332 | if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
333 | echo $(NM); \ |
334 | else \ | |
335 | t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ | |
336 | fi; \ | |
337 | fi` | |
338 | ||
5d4a5ee6 JL |
339 | # The first rule in the file had better be this one. Don't put any above it. |
340 | # This lives here to allow makefile fragments to contain dependencies. | |
341 | all: all.normal | |
342 | .PHONY: all | |
343 | ||
344 | # These can be overridden by config/mt-*. | |
345 | # The _TARGET_ is because they're specified in mt-foo. | |
346 | # The _HOST_ is because they're programs that run on the host. | |
347 | EXTRA_TARGET_HOST_ALL_MODULES = | |
348 | EXTRA_TARGET_HOST_INSTALL_MODULES = | |
349 | EXTRA_TARGET_HOST_CHECK_MODULES = | |
350 | ||
6599da04 JM |
351 | #### host and target specific makefile fragments come in here. |
352 | ### | |
353 | ||
354 | # Flags to pass down to all sub-makes. | |
355 | # Please keep these in alphabetical order. | |
356 | BASE_FLAGS_TO_PASS = \ | |
357 | "AR_FLAGS=$(AR_FLAGS)" \ | |
358 | "AR_FOR_TARGET=$(AR_FOR_TARGET)" \ | |
359 | "AS_FOR_TARGET=$(AS_FOR_TARGET)" \ | |
360 | "BISON=$(BISON)" \ | |
361 | "CC_FOR_BUILD=$(CC_FOR_BUILD)" \ | |
362 | "CC_FOR_TARGET=$(CC_FOR_TARGET)" \ | |
363 | "CFLAGS=$(CFLAGS)" \ | |
364 | "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \ | |
85b99cbe | 365 | "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \ |
6599da04 JM |
366 | "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \ |
367 | "CXXFLAGS=$(CXXFLAGS)" \ | |
368 | "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \ | |
369 | "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \ | |
370 | "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \ | |
371 | "INSTALL=$(INSTALL)" \ | |
372 | "INSTALL_DATA=$(INSTALL_DATA)" \ | |
373 | "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ | |
374 | "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \ | |
375 | "LDFLAGS=$(LDFLAGS)" \ | |
376 | "LEX=$(LEX)" \ | |
377 | "LD_FOR_TARGET=$(LD_FOR_TARGET)" \ | |
378 | "LIBCFLAGS=$(LIBCFLAGS)" \ | |
379 | "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \ | |
380 | "LIBCXXFLAGS=$(LIBCXXFLAGS)" \ | |
381 | "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \ | |
382 | "M4=$(M4)" \ | |
383 | "MAKE=$(MAKE)" \ | |
384 | "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \ | |
385 | "NM_FOR_TARGET=$(NM_FOR_TARGET)" \ | |
6599da04 | 386 | "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \ |
5d4a5ee6 | 387 | "RPATH_ENVVAR=$(RPATH_ENVVAR)" \ |
6599da04 JM |
388 | "SHELL=$(SHELL)" \ |
389 | "EXPECT=$(EXPECT)" \ | |
390 | "RUNTEST=$(RUNTEST)" \ | |
391 | "RUNTESTFLAGS=$(RUNTESTFLAGS)" \ | |
81241b5e | 392 | "TARGET_SUBDIR=$(TARGET_SUBDIR)" \ |
6599da04 JM |
393 | "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \ |
394 | "YACC=$(YACC)" \ | |
5d4a5ee6 JL |
395 | "bindir=$(bindir)" \ |
396 | "datadir=$(datadir)" \ | |
6599da04 | 397 | "exec_prefix=$(exec_prefix)" \ |
5d4a5ee6 JL |
398 | "includedir=$(includedir)" \ |
399 | "infodir=$(infodir)" \ | |
400 | "libdir=$(libdir)" \ | |
401 | "libexecdir=$(libexecdir)" \ | |
402 | "lispdir=$(lispdir)" \ | |
cc330df9 BK |
403 | "libstdcxx_incdir=$(libstdcxx_incdir)" \ |
404 | "libsubdir=$(libsubdir)" \ | |
5d4a5ee6 JL |
405 | "localstatedir=$(localstatedir)" \ |
406 | "mandir=$(mandir)" \ | |
407 | "oldincludedir=$(oldincludedir)" \ | |
6599da04 | 408 | "prefix=$(prefix)" \ |
5d4a5ee6 JL |
409 | "sbindir=$(sbindir)" \ |
410 | "sharedstatedir=$(sharedstatedir)" \ | |
411 | "sysconfdir=$(sysconfdir)" \ | |
d0a8352c | 412 | "tooldir=$(tooldir)" \ |
5cb95c7a | 413 | "build_tooldir=$(build_tooldir)" \ |
fe2fa3c4 MH |
414 | "gxx_include_dir=$(gxx_include_dir)" \ |
415 | "gcc_version=$(gcc_version)" \ | |
6dd27861 | 416 | "gcc_version_trigger=$(gcc_version_trigger)" \ |
cc330df9 | 417 | "target_alias=$(target_alias)" |
6599da04 | 418 | |
a3406c06 AO |
419 | # For any flags above that may contain shell code that varies from one |
420 | # target library to another. When doing recursive invocations of the | |
421 | # top-level Makefile, we don't want the outer make to evaluate them, | |
422 | # so we pass these variables down unchanged. They must not contain | |
423 | # single nor double quotes. | |
424 | RECURSE_FLAGS = \ | |
425 | CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' | |
426 | ||
6599da04 JM |
427 | # Flags to pass down to most sub-makes, in which we're building with |
428 | # the host environment. | |
429 | # If any variables are added here, they must be added to do-*, below. | |
430 | EXTRA_HOST_FLAGS = \ | |
431 | 'AR=$(AR)' \ | |
432 | 'AS=$(AS)' \ | |
433 | 'CC=$(CC)' \ | |
434 | 'CXX=$(CXX)' \ | |
435 | 'DLLTOOL=$(DLLTOOL)' \ | |
436 | 'LD=$(LD)' \ | |
437 | 'NM=$(NM)' \ | |
6822468a | 438 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ |
6599da04 JM |
439 | 'WINDRES=$(WINDRES)' |
440 | ||
441 | FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) | |
442 | ||
443 | # Flags that are concerned with the location of the X11 include files | |
444 | # and library files | |
445 | # | |
446 | # NOTE: until the top-level is getting the values via autoconf, it only | |
447 | # causes problems to have this top-level Makefile overriding the autoconf-set | |
448 | # values in child directories. Only variables that don't conflict with | |
449 | # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now. | |
450 | # | |
451 | X11_FLAGS_TO_PASS = \ | |
452 | 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \ | |
453 | 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)' | |
454 | ||
455 | # Flags to pass down to makes which are built with the target environment. | |
456 | # The double $ decreases the length of the command line; the variables | |
457 | # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. | |
458 | # If any variables are added here, they must be added to do-*, below. | |
459 | EXTRA_TARGET_FLAGS = \ | |
460 | 'AR=$$(AR_FOR_TARGET)' \ | |
461 | 'AS=$$(AS_FOR_TARGET)' \ | |
462 | 'CC=$$(CC_FOR_TARGET)' \ | |
463 | 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \ | |
464 | 'CXX=$$(CXX_FOR_TARGET)' \ | |
465 | 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \ | |
466 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
467 | 'LD=$$(LD_FOR_TARGET)' \ | |
468 | 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \ | |
469 | 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \ | |
470 | 'NM=$$(NM_FOR_TARGET)' \ | |
0c055e34 | 471 | 'RANLIB=$$(RANLIB_FOR_TARGET)' \ |
6599da04 JM |
472 | 'WINDRES=$$(WINDRES_FOR_TARGET)' |
473 | ||
474 | TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS) | |
475 | ||
476 | # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it | |
477 | # unfortunately needs the native compiler and the target ar and | |
478 | # ranlib. | |
479 | # If any variables are added here, they must be added to do-*, below. | |
480 | # The HOST_* variables are a special case, which are used for the gcc | |
481 | # cross-building scheme. | |
482 | EXTRA_GCC_FLAGS = \ | |
ecd62820 | 483 | 'AR=$(AR)' \ |
6599da04 JM |
484 | 'AS=$(AS)' \ |
485 | 'CC=$(CC)' \ | |
486 | 'CXX=$(CXX)' \ | |
487 | 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \ | |
488 | 'HOST_CC=$(CC_FOR_BUILD)' \ | |
efe1f357 NN |
489 | 'BUILD_PREFIX=$(BUILD_PREFIX)' \ |
490 | 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \ | |
6599da04 | 491 | 'NM=$(NM)' \ |
6822468a | 492 | "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \ |
6599da04 JM |
493 | 'WINDRES=$$(WINDRES_FOR_TARGET)' \ |
494 | "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \ | |
d920e825 | 495 | "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \ |
5d4a5ee6 JL |
496 | "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \ |
497 | "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \ | |
498 | "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \ | |
5d4a5ee6 JL |
499 | "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
500 | "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ | |
501 | "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \ | |
502 | "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \ | |
78faa32d | 503 | "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \ |
5d4a5ee6 | 504 | "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" |
6599da04 JM |
505 | |
506 | GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) | |
507 | ||
e490616e ZW |
508 | # This is a list of the targets for all of the modules which are compiled |
509 | # using the build machine's native compiler. Configure edits the second | |
510 | # macro for build!=host builds. | |
511 | ALL_BUILD_MODULES_LIST = \ | |
512 | all-build-libiberty | |
0dffceed | 513 | ALL_BUILD_MODULES = @all_build_modules@ |
e490616e ZW |
514 | |
515 | # This is a list of the configure targets for all of the modules which | |
516 | # are compiled using the native tools. | |
517 | CONFIGURE_BUILD_MODULES = \ | |
518 | configure-build-libiberty | |
519 | ||
6599da04 JM |
520 | # This is a list of the targets for all of the modules which are compiled |
521 | # using $(FLAGS_TO_PASS). | |
522 | ALL_MODULES = \ | |
5d4a5ee6 | 523 | all-ash \ |
6599da04 JM |
524 | all-autoconf \ |
525 | all-automake \ | |
526 | all-bash \ | |
527 | all-bfd \ | |
95ddd785 | 528 | all-opcodes \ |
6599da04 JM |
529 | all-binutils \ |
530 | all-bison \ | |
531 | all-byacc \ | |
5d4a5ee6 | 532 | all-bzip2 \ |
6599da04 JM |
533 | all-db \ |
534 | all-dejagnu \ | |
535 | all-diff \ | |
536 | all-dosutils \ | |
537 | all-etc \ | |
5db1f7ed | 538 | all-fastjar \ |
6599da04 JM |
539 | all-fileutils \ |
540 | all-findutils \ | |
541 | all-find \ | |
542 | all-flex \ | |
543 | all-gas \ | |
544 | all-gawk \ | |
5d4a5ee6 | 545 | all-gettext \ |
6599da04 JM |
546 | all-gnuserv \ |
547 | all-gprof \ | |
548 | all-grep \ | |
6599da04 JM |
549 | all-gzip \ |
550 | all-hello \ | |
551 | all-indent \ | |
5d4a5ee6 | 552 | all-intl \ |
95ddd785 | 553 | all-tcl \ |
6599da04 JM |
554 | all-itcl \ |
555 | all-ld \ | |
5d4a5ee6 | 556 | all-libgui \ |
6599da04 | 557 | all-libiberty \ |
d207ebef | 558 | all-libtool \ |
6599da04 JM |
559 | all-m4 \ |
560 | all-make \ | |
561 | all-mmalloc \ | |
6599da04 JM |
562 | all-patch \ |
563 | all-perl \ | |
564 | all-prms \ | |
565 | all-rcs \ | |
566 | all-readline \ | |
567 | all-release \ | |
568 | all-recode \ | |
569 | all-sed \ | |
570 | all-send-pr \ | |
571 | all-shellutils \ | |
3f19b439 | 572 | all-sid \ |
6599da04 | 573 | all-sim \ |
5d4a5ee6 | 574 | all-snavigator \ |
6599da04 | 575 | all-tar \ |
6599da04 JM |
576 | all-texinfo \ |
577 | all-textutils \ | |
6599da04 JM |
578 | all-time \ |
579 | all-uudecode \ | |
5d4a5ee6 | 580 | all-wdiff \ |
99d60508 | 581 | all-zip \ |
3c809ba4 | 582 | all-zlib \ |
5d4a5ee6 | 583 | $(EXTRA_TARGET_HOST_ALL_MODULES) |
6599da04 JM |
584 | |
585 | # This is a list of the check targets for all of the modules which are | |
586 | # compiled using $(FLAGS_TO_PASS). | |
587 | # | |
588 | # The list is in two parts. The first lists those tools which | |
589 | # are tested as part of the host's native tool-chain, and not | |
590 | # tested in a cross configuration. | |
591 | NATIVE_CHECK_MODULES = \ | |
592 | check-bison \ | |
593 | check-byacc \ | |
5db1f7ed | 594 | check-fastjar \ |
99d60508 TT |
595 | check-flex \ |
596 | check-zip | |
6599da04 JM |
597 | |
598 | CROSS_CHECK_MODULES = \ | |
5d4a5ee6 | 599 | check-ash \ |
6599da04 JM |
600 | check-autoconf \ |
601 | check-automake \ | |
602 | check-bash \ | |
603 | check-bfd \ | |
95ddd785 | 604 | check-opcodes \ |
6599da04 | 605 | check-binutils \ |
5d4a5ee6 | 606 | check-bzip2 \ |
6599da04 JM |
607 | check-db \ |
608 | check-dejagnu \ | |
609 | check-diff \ | |
610 | check-etc \ | |
611 | check-fileutils \ | |
612 | check-findutils \ | |
613 | check-find \ | |
614 | check-gas \ | |
615 | check-gawk \ | |
5d4a5ee6 | 616 | check-gettext \ |
6599da04 JM |
617 | check-gnuserv \ |
618 | check-gprof \ | |
619 | check-grep \ | |
620 | check-gzip \ | |
621 | check-hello \ | |
622 | check-indent \ | |
5d4a5ee6 | 623 | check-intl \ |
95ddd785 | 624 | check-tcl \ |
6599da04 JM |
625 | check-itcl \ |
626 | check-ld \ | |
5d4a5ee6 | 627 | check-libgui \ |
6599da04 | 628 | check-libiberty \ |
5d4a5ee6 | 629 | check-libtool \ |
6599da04 JM |
630 | check-m4 \ |
631 | check-make \ | |
6599da04 JM |
632 | check-patch \ |
633 | check-perl \ | |
634 | check-prms \ | |
635 | check-rcs \ | |
636 | check-readline \ | |
637 | check-recode \ | |
638 | check-sed \ | |
639 | check-send-pr \ | |
640 | check-shellutils \ | |
3f19b439 | 641 | check-sid \ |
6599da04 | 642 | check-sim \ |
95ddd785 | 643 | check-snavigator \ |
6599da04 | 644 | check-tar \ |
6599da04 JM |
645 | check-texinfo \ |
646 | check-textutils \ | |
6599da04 JM |
647 | check-time \ |
648 | check-uudecode \ | |
5d4a5ee6 JL |
649 | check-wdiff \ |
650 | $(EXTRA_TARGET_HOST_CHECK_MODULES) | |
6599da04 JM |
651 | |
652 | CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | |
653 | ||
654 | # This is a list of the install targets for all of the modules which are | |
655 | # compiled using $(FLAGS_TO_PASS). | |
6599da04 | 656 | INSTALL_MODULES = \ |
5d4a5ee6 | 657 | install-ash \ |
6599da04 JM |
658 | install-autoconf \ |
659 | install-automake \ | |
660 | install-bash \ | |
661 | install-bfd \ | |
662 | install-opcodes \ | |
663 | install-binutils \ | |
664 | install-bison \ | |
665 | install-byacc \ | |
95ddd785 | 666 | install-bzip2 \ |
6599da04 JM |
667 | install-db \ |
668 | install-dejagnu \ | |
669 | install-diff \ | |
670 | install-dosutils \ | |
671 | install-etc \ | |
5db1f7ed | 672 | install-fastjar \ |
6599da04 JM |
673 | install-fileutils \ |
674 | install-findutils \ | |
675 | install-find \ | |
676 | install-flex \ | |
677 | install-gas \ | |
678 | install-gawk \ | |
5d4a5ee6 | 679 | install-gettext \ |
6599da04 JM |
680 | install-gnuserv \ |
681 | install-gprof \ | |
682 | install-grep \ | |
6599da04 JM |
683 | install-gzip \ |
684 | install-hello \ | |
685 | install-indent \ | |
5d4a5ee6 | 686 | install-intl \ |
5d4a5ee6 | 687 | install-tcl \ |
6599da04 JM |
688 | install-itcl \ |
689 | install-ld \ | |
5d4a5ee6 | 690 | install-libgui \ |
6599da04 | 691 | install-libiberty \ |
5d4a5ee6 | 692 | install-libtool \ |
6599da04 JM |
693 | install-m4 \ |
694 | install-make \ | |
695 | install-mmalloc \ | |
696 | install-patch \ | |
697 | install-perl \ | |
698 | install-prms \ | |
699 | install-rcs \ | |
700 | install-readline \ | |
701 | install-recode \ | |
702 | install-sed \ | |
703 | install-send-pr \ | |
704 | install-shellutils \ | |
3f19b439 | 705 | install-sid \ |
6599da04 | 706 | install-sim \ |
5d4a5ee6 | 707 | install-snavigator \ |
6599da04 | 708 | install-tar \ |
6599da04 | 709 | install-textutils \ |
6599da04 JM |
710 | install-time \ |
711 | install-uudecode \ | |
5d4a5ee6 | 712 | install-wdiff \ |
99d60508 | 713 | install-zip \ |
5d4a5ee6 | 714 | $(EXTRA_TARGET_HOST_INSTALL_MODULES) |
6599da04 JM |
715 | |
716 | # This is a list of the targets for all of the modules which are compiled | |
717 | # using $(X11_FLAGS_TO_PASS). | |
718 | ALL_X11_MODULES = \ | |
6599da04 JM |
719 | all-gdb \ |
720 | all-expect \ | |
6599da04 JM |
721 | all-guile \ |
722 | all-tclX \ | |
723 | all-tk \ | |
724 | all-tix | |
725 | ||
726 | # This is a list of the check targets for all of the modules which are | |
727 | # compiled using $(X11_FLAGS_TO_PASS). | |
728 | CHECK_X11_MODULES = \ | |
6599da04 JM |
729 | check-gdb \ |
730 | check-guile \ | |
731 | check-expect \ | |
6599da04 JM |
732 | check-tclX \ |
733 | check-tk \ | |
734 | check-tix | |
735 | ||
736 | # This is a list of the install targets for all the modules which are | |
737 | # compiled using $(X11_FLAGS_TO_PASS). | |
738 | INSTALL_X11_MODULES = \ | |
6599da04 JM |
739 | install-gdb \ |
740 | install-guile \ | |
741 | install-expect \ | |
6599da04 JM |
742 | install-tclX \ |
743 | install-tk \ | |
744 | install-tix | |
745 | ||
746 | # This is a list of the targets for all of the modules which are compiled | |
747 | # using $(TARGET_FLAGS_TO_PASS). | |
748 | ALL_TARGET_MODULES = \ | |
17090313 | 749 | all-target-libstdc++-v3 \ |
6599da04 | 750 | all-target-newlib \ |
8821a725 | 751 | all-target-libf2c \ |
6fc19d6d | 752 | all-target-libobjc \ |
d207ebef | 753 | all-target-libtermcap \ |
6599da04 JM |
754 | all-target-winsup \ |
755 | all-target-libgloss \ | |
756 | all-target-libiberty \ | |
757 | all-target-gperf \ | |
5d4a5ee6 | 758 | all-target-examples \ |
aab0d19d | 759 | all-target-libffi \ |
99d60508 TT |
760 | all-target-libjava \ |
761 | all-target-zlib \ | |
762 | all-target-boehm-gc \ | |
40673d2b KB |
763 | all-target-qthreads \ |
764 | all-target-rda | |
6599da04 JM |
765 | |
766 | # This is a list of the configure targets for all of the modules which | |
767 | # are compiled using the target tools. | |
768 | CONFIGURE_TARGET_MODULES = \ | |
17090313 | 769 | configure-target-libstdc++-v3 \ |
6599da04 | 770 | configure-target-newlib \ |
8821a725 | 771 | configure-target-libf2c \ |
6fc19d6d | 772 | configure-target-libobjc \ |
d207ebef | 773 | configure-target-libtermcap \ |
6599da04 JM |
774 | configure-target-winsup \ |
775 | configure-target-libgloss \ | |
776 | configure-target-libiberty \ | |
777 | configure-target-gperf \ | |
5d4a5ee6 | 778 | configure-target-examples \ |
aab0d19d | 779 | configure-target-libffi \ |
99d60508 TT |
780 | configure-target-libjava \ |
781 | configure-target-zlib \ | |
782 | configure-target-boehm-gc \ | |
40673d2b KB |
783 | configure-target-qthreads \ |
784 | configure-target-rda | |
6599da04 JM |
785 | |
786 | # This is a list of the check targets for all of the modules which are | |
787 | # compiled using $(TARGET_FLAGS_TO_PASS). | |
788 | CHECK_TARGET_MODULES = \ | |
17090313 | 789 | check-target-libstdc++-v3 \ |
6599da04 | 790 | check-target-newlib \ |
8821a725 | 791 | check-target-libf2c \ |
6fc19d6d | 792 | check-target-libobjc \ |
6599da04 JM |
793 | check-target-winsup \ |
794 | check-target-libiberty \ | |
1db75a86 | 795 | check-target-gperf \ |
aab0d19d | 796 | check-target-libffi \ |
99d60508 TT |
797 | check-target-libjava \ |
798 | check-target-zlib \ | |
799 | check-target-boehm-gc \ | |
40673d2b KB |
800 | check-target-qthreads \ |
801 | check-target-rda | |
6599da04 JM |
802 | |
803 | # This is a list of the install targets for all of the modules which are | |
804 | # compiled using $(TARGET_FLAGS_TO_PASS). | |
805 | INSTALL_TARGET_MODULES = \ | |
17090313 | 806 | install-target-libstdc++-v3 \ |
6599da04 | 807 | install-target-newlib \ |
8821a725 | 808 | install-target-libf2c \ |
6fc19d6d | 809 | install-target-libobjc \ |
d207ebef | 810 | install-target-libtermcap \ |
6599da04 JM |
811 | install-target-winsup \ |
812 | install-target-libgloss \ | |
813 | install-target-libiberty \ | |
1db75a86 | 814 | install-target-gperf \ |
99d60508 TT |
815 | install-target-libjava \ |
816 | install-target-zlib \ | |
817 | install-target-boehm-gc \ | |
40673d2b KB |
818 | install-target-qthreads \ |
819 | install-target-rda | |
6599da04 JM |
820 | |
821 | # This is a list of the targets for which we can do a clean-{target}. | |
822 | CLEAN_MODULES = \ | |
5d4a5ee6 | 823 | clean-ash \ |
6599da04 JM |
824 | clean-autoconf \ |
825 | clean-automake \ | |
826 | clean-bash \ | |
827 | clean-bfd \ | |
95ddd785 | 828 | clean-opcodes \ |
6599da04 JM |
829 | clean-binutils \ |
830 | clean-bison \ | |
831 | clean-byacc \ | |
5d4a5ee6 | 832 | clean-bzip2 \ |
6599da04 JM |
833 | clean-db \ |
834 | clean-dejagnu \ | |
835 | clean-diff \ | |
836 | clean-dosutils \ | |
837 | clean-etc \ | |
5db1f7ed | 838 | clean-fastjar \ |
6599da04 JM |
839 | clean-fileutils \ |
840 | clean-findutils \ | |
841 | clean-find \ | |
842 | clean-flex \ | |
843 | clean-gas \ | |
844 | clean-gawk \ | |
5d4a5ee6 | 845 | clean-gettext \ |
6599da04 JM |
846 | clean-gnuserv \ |
847 | clean-gprof \ | |
848 | clean-grep \ | |
6599da04 JM |
849 | clean-gzip \ |
850 | clean-hello \ | |
851 | clean-indent \ | |
5d4a5ee6 | 852 | clean-intl \ |
95ddd785 | 853 | clean-tcl \ |
6599da04 JM |
854 | clean-itcl \ |
855 | clean-ld \ | |
5d4a5ee6 | 856 | clean-libgui \ |
6599da04 | 857 | clean-libiberty \ |
5d4a5ee6 | 858 | clean-libtool \ |
6599da04 JM |
859 | clean-m4 \ |
860 | clean-make \ | |
861 | clean-mmalloc \ | |
6599da04 JM |
862 | clean-patch \ |
863 | clean-perl \ | |
864 | clean-prms \ | |
865 | clean-rcs \ | |
866 | clean-readline \ | |
867 | clean-release \ | |
868 | clean-recode \ | |
869 | clean-sed \ | |
870 | clean-send-pr \ | |
871 | clean-shellutils \ | |
3f19b439 | 872 | clean-sid \ |
6599da04 | 873 | clean-sim \ |
5d4a5ee6 | 874 | clean-snavigator \ |
6599da04 | 875 | clean-tar \ |
6599da04 JM |
876 | clean-texinfo \ |
877 | clean-textutils \ | |
6599da04 JM |
878 | clean-time \ |
879 | clean-uudecode \ | |
99d60508 | 880 | clean-wdiff \ |
3c809ba4 | 881 | clean-zip \ |
95ddd785 | 882 | clean-zlib |
99d60508 | 883 | |
6599da04 JM |
884 | # All of the target modules that can be cleaned |
885 | CLEAN_TARGET_MODULES = \ | |
17090313 | 886 | clean-target-libstdc++-v3 \ |
6599da04 | 887 | clean-target-newlib \ |
8821a725 | 888 | clean-target-libf2c \ |
6fc19d6d | 889 | clean-target-libobjc \ |
6599da04 JM |
890 | clean-target-winsup \ |
891 | clean-target-libgloss \ | |
892 | clean-target-libiberty \ | |
893 | clean-target-gperf \ | |
5d4a5ee6 | 894 | clean-target-examples \ |
aab0d19d | 895 | clean-target-libffi \ |
99d60508 TT |
896 | clean-target-libjava \ |
897 | clean-target-zlib \ | |
898 | clean-target-boehm-gc \ | |
40673d2b KB |
899 | clean-target-qthreads \ |
900 | clean-target-rda | |
6599da04 JM |
901 | |
902 | # All of the x11 modules that can be cleaned | |
903 | CLEAN_X11_MODULES = \ | |
6599da04 JM |
904 | clean-gdb \ |
905 | clean-expect \ | |
6599da04 JM |
906 | clean-guile \ |
907 | clean-tclX \ | |
908 | clean-tk \ | |
909 | clean-tix | |
910 | ||
6599da04 JM |
911 | # The target built for a native build. |
912 | .PHONY: all.normal | |
913 | all.normal: \ | |
e490616e | 914 | $(ALL_BUILD_MODULES) \ |
6599da04 JM |
915 | $(ALL_MODULES) \ |
916 | $(ALL_X11_MODULES) \ | |
917 | $(ALL_TARGET_MODULES) \ | |
918 | all-gcc | |
919 | ||
920 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
921 | # ``make X'' in all subdirectories (because, in general, there is a | |
922 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
923 | # but it may do additional work as well). | |
924 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | |
925 | # because it is so large that it can easily overflow the command line | |
926 | # length limit on some systems. | |
927 | DO_X = \ | |
928 | do-clean \ | |
929 | do-distclean \ | |
930 | do-dvi \ | |
931 | do-info \ | |
932 | do-install-info \ | |
933 | do-installcheck \ | |
934 | do-mostlyclean \ | |
935 | do-maintainer-clean \ | |
936 | do-TAGS | |
937 | .PHONY: $(DO_X) | |
938 | $(DO_X): | |
939 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
1e6347d8 RO |
940 | r=`${PWD}`; export r; \ |
941 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
942 | $(SET_LIB_PATH) \ |
943 | for i in $(SUBDIRS) -dummy-; do \ | |
944 | if [ -f ./$$i/Makefile ]; then \ | |
945 | case $$i in \ | |
946 | gcc) \ | |
947 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
759bfa90 | 948 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 JM |
949 | done; \ |
950 | ;; \ | |
951 | *) \ | |
952 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
759bfa90 | 953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 JM |
954 | done; \ |
955 | ;; \ | |
956 | esac ; \ | |
6599da04 JM |
957 | if (cd ./$$i; \ |
958 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
959 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
e9f4fa71 | 960 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
6599da04 JM |
961 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
962 | $${target}); \ | |
963 | then true; else exit 1; fi; \ | |
964 | else true; fi; \ | |
965 | done | |
966 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
1e6347d8 RO |
967 | r=`${PWD}`; export r; \ |
968 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
969 | $(SET_LIB_PATH) \ |
970 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
971 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
972 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
759bfa90 | 973 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 | 974 | done; \ |
6599da04 JM |
975 | if (cd $(TARGET_SUBDIR)/$$i; \ |
976 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
977 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7238de5c | 978 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
6599da04 JM |
979 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
980 | $${target}); \ | |
981 | then true; else exit 1; fi; \ | |
982 | else true; fi; \ | |
983 | done | |
984 | ||
985 | # Here are the targets which correspond to the do-X targets. | |
986 | ||
987 | .PHONY: info installcheck dvi install-info | |
988 | .PHONY: clean distclean mostlyclean maintainer-clean realclean | |
989 | .PHONY: local-clean local-distclean local-maintainer-clean | |
990 | info: do-info | |
991 | installcheck: do-installcheck | |
992 | dvi: do-dvi | |
993 | ||
994 | # Make sure makeinfo is built before we do a `make info'. | |
995 | do-info: all-texinfo | |
996 | ||
997 | install-info: do-install-info dir.info | |
1e6347d8 | 998 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6599da04 JM |
999 | if [ -f dir.info ] ; then \ |
1000 | $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ | |
1001 | else true ; fi | |
1002 | ||
1003 | local-clean: | |
c4137c50 | 1004 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log |
6599da04 JM |
1005 | |
1006 | local-distclean: | |
f401679e | 1007 | -rm -f Makefile config.status config.cache mh-frag mt-frag |
6599da04 JM |
1008 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1009 | rm -rf $(TARGET_SUBDIR); \ | |
1010 | else true; fi | |
5a2eb52b MS |
1011 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1012 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
5e59997c MS |
1013 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null |
1014 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
e2f601da | 1015 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null |
6599da04 JM |
1016 | |
1017 | local-maintainer-clean: | |
1018 | @echo "This command is intended for maintainers to use;" | |
1019 | @echo "it deletes files that may require special tools to rebuild." | |
1020 | ||
1021 | clean: do-clean local-clean | |
1022 | mostlyclean: do-mostlyclean local-clean | |
1023 | distclean: do-distclean local-clean local-distclean | |
1024 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1025 | maintainer-clean: local-distclean | |
1026 | realclean: maintainer-clean | |
1027 | ||
1028 | # This rule is used to clean specific modules. | |
1029 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | |
1030 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | |
1031 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | |
1032 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1033 | r=`${PWD}`; export r; \ |
1034 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1035 | $(SET_LIB_PATH) \ |
1036 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \ | |
1037 | else \ | |
1038 | true; \ | |
1039 | fi | |
1040 | ||
1041 | .PHONY: $(CLEAN_TARGET_MODULES) | |
1042 | $(CLEAN_TARGET_MODULES): | |
1043 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | |
1044 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1045 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1046 | r=`${PWD}`; export r; \ |
1047 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1048 | $(SET_LIB_PATH) \ |
1049 | (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ | |
1050 | else \ | |
1051 | true; \ | |
1052 | fi | |
1053 | ||
1670d1ea AO |
1054 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc |
1055 | clean-target-libgcc: | |
1056 | test ! -d gcc/libgcc || \ | |
1057 | (cd gcc/libgcc && find . -type d -print) | \ | |
1058 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | |
1059 | -rm -rf gcc/libgcc | |
6599da04 JM |
1060 | |
1061 | # Check target. | |
1062 | ||
c2273204 RH |
1063 | .PHONY: check do-check |
1064 | check: | |
1065 | $(MAKE) do-check NOTPARALLEL=parallel-ok | |
1066 | ||
1067 | do-check: $(CHECK_MODULES) \ | |
6599da04 JM |
1068 | $(CHECK_TARGET_MODULES) \ |
1069 | $(CHECK_X11_MODULES) \ | |
1070 | check-gcc | |
1071 | ||
c4137c50 AO |
1072 | # Automated reporting of test results. |
1073 | ||
1074 | warning.log: build.log | |
1075 | $(srcdir)/contrib/warn_summary build.log > $@ | |
1076 | ||
1077 | mail-report.log: | |
1078 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1079 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1080 | fi; \ | |
1081 | $(srcdir)/contrib/test_summary -t >$@ | |
1082 | chmod +x $@ | |
1083 | echo If you really want to send e-mail, run ./$@ now | |
1084 | ||
1085 | mail-report-with-warnings.log: warning.log | |
1086 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1087 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1088 | fi; \ | |
1089 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1090 | chmod +x $@ | |
1091 | echo If you really want to send e-mail, run ./$@ now | |
1092 | ||
6599da04 JM |
1093 | # Installation targets. |
1094 | ||
205cba53 | 1095 | .PHONY: install install-cross uninstall source-vault binary-vault vault-install |
6599da04 | 1096 | install: $(INSTALL_TARGET) |
205cba53 | 1097 | install-cross: $(INSTALL_TARGET_CROSS) |
6599da04 JM |
1098 | |
1099 | uninstall: | |
1100 | @echo "the uninstall target is not supported in this tree" | |
1101 | ||
1102 | source-vault: | |
1103 | $(MAKE) -f ./release/Build-A-Release \ | |
1104 | host=$(host_alias) source-vault | |
1105 | ||
1106 | binary-vault: | |
1107 | $(MAKE) -f ./release/Build-A-Release \ | |
1108 | host=$(host_alias) target=$(target_alias) | |
1109 | ||
1110 | vault-install: | |
1111 | @if [ -f ./release/vault-install ] ; then \ | |
1112 | ./release/vault-install $(host_alias) $(target_alias) ; \ | |
1113 | else \ | |
1114 | true ; \ | |
1115 | fi | |
1116 | ||
1117 | .PHONY: install.all | |
1118 | install.all: install-no-fixedincludes | |
1119 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 | 1120 | r=`${PWD}` ; export r ; \ |
6599da04 JM |
1121 | $(SET_LIB_PATH) \ |
1122 | (cd ./gcc; \ | |
1123 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
1124 | else \ | |
1125 | true ; \ | |
1126 | fi | |
1127 | ||
6599da04 JM |
1128 | # install-no-fixedincludes is used because Cygnus can not distribute |
1129 | # the fixed header files. | |
1130 | .PHONY: install-no-fixedincludes | |
1131 | install-no-fixedincludes: \ | |
1132 | installdirs \ | |
1133 | $(INSTALL_MODULES) \ | |
1134 | $(INSTALL_TARGET_MODULES) \ | |
1135 | $(INSTALL_X11_MODULES) \ | |
1136 | gcc-no-fixedincludes | |
1137 | ||
1138 | # Install the gcc headers files, but not the fixed include files, | |
1139 | # which Cygnus is not allowed to distribute. This rule is very | |
1140 | # dependent on the workings of the gcc Makefile.in. | |
1141 | .PHONY: gcc-no-fixedincludes | |
1142 | gcc-no-fixedincludes: | |
1143 | @if [ -f ./gcc/Makefile ]; then \ | |
1144 | rm -rf gcc/tmp-include; \ | |
1145 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
1146 | mkdir gcc/include; \ | |
1147 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
1148 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
1149 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
1e6347d8 RO |
1150 | r=`${PWD}`; export r; \ |
1151 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
6599da04 JM |
1152 | $(SET_LIB_PATH) \ |
1153 | (cd ./gcc; \ | |
1154 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | |
1155 | rm -rf gcc/include; \ | |
1156 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
1157 | else true; fi | |
1158 | ||
e490616e ZW |
1159 | # This rule is used to build the modules which are built with the |
1160 | # build machine's native compiler. | |
1161 | .PHONY: $(ALL_BUILD_MODULES) | |
1162 | $(ALL_BUILD_MODULES): | |
1163 | dir=`echo $@ | sed -e 's/all-build-//'`; \ | |
1164 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1165 | r=`${PWD}`; export r; \ |
1166 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
e490616e ZW |
1167 | (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \ |
1168 | else \ | |
1169 | true; \ | |
1170 | fi | |
1171 | ||
1172 | # This rule is used to configure the modules which are built with the | |
1173 | # native tools. | |
1174 | .PHONY: $(CONFIGURE_BUILD_MODULES) | |
1175 | $(CONFIGURE_BUILD_MODULES): | |
1176 | @dir=`echo $@ | sed -e 's/configure-build-//'`; \ | |
1177 | if [ ! -d $(BUILD_SUBDIR) ]; then \ | |
1178 | true; \ | |
1179 | elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1180 | true; \ | |
1181 | elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | |
1182 | if [ -d $(srcdir)/$${dir} ]; then \ | |
1183 | [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\ | |
1e6347d8 RO |
1184 | r=`${PWD}`; export r; \ |
1185 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
e490616e ZW |
1186 | AR="$(AR_FOR_BUILD)"; export AR; \ |
1187 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
1188 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
1189 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
1190 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
1191 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
1192 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
1193 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
1194 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
1195 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
1196 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
1197 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
1198 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | |
1199 | echo Configuring in $(BUILD_SUBDIR)/$${dir}; \ | |
1200 | cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \ | |
1201 | case $(srcdir) in \ | |
1202 | /* | [A-Za-z]:[\\/]*) \ | |
1203 | topdir=$(srcdir) ;; \ | |
1204 | *) \ | |
1205 | case "$(BUILD_SUBDIR)" in \ | |
1206 | .) topdir="../$(srcdir)" ;; \ | |
1207 | *) topdir="../../$(srcdir)" ;; \ | |
1208 | esac ;; \ | |
1209 | esac; \ | |
1210 | if [ "$(srcdir)" = "." ] ; then \ | |
1211 | if [ "$(BUILD_SUBDIR)" != "." ] ; then \ | |
1212 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | |
1213 | if [ -f Makefile ]; then \ | |
1214 | if $(MAKE) distclean; then \ | |
1215 | true; \ | |
1216 | else \ | |
1217 | exit 1; \ | |
1218 | fi; \ | |
1219 | else \ | |
1220 | true; \ | |
1221 | fi; \ | |
1222 | else \ | |
1223 | exit 1; \ | |
1224 | fi; \ | |
1225 | else \ | |
1226 | true; \ | |
1227 | fi; \ | |
1228 | srcdiroption="--srcdir=."; \ | |
1229 | libsrcdir="."; \ | |
1230 | else \ | |
1231 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | |
1232 | libsrcdir="$$s/$${dir}"; \ | |
1233 | fi; \ | |
1234 | if [ -f $${libsrcdir}/configure ] ; then \ | |
1235 | rm -f no-such-file skip-this-dir; \ | |
1236 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
1237 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1238 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | |
1239 | else \ | |
1240 | rm -f no-such-file skip-this-dir; \ | |
1241 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ | |
1242 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1243 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | |
1244 | fi || exit 1; \ | |
1245 | if [ -f skip-this-dir ] ; then \ | |
1246 | sh skip-this-dir; \ | |
1247 | rm -f skip-this-dir; \ | |
1248 | cd ..; rmdir $${dir} || true; \ | |
1249 | else \ | |
1250 | true; \ | |
1251 | fi; \ | |
1252 | else \ | |
1253 | true; \ | |
1254 | fi; \ | |
1255 | else \ | |
1256 | true; \ | |
1257 | fi | |
1258 | ||
6599da04 JM |
1259 | # This rule is used to build the modules which use FLAGS_TO_PASS. To |
1260 | # build a target all-X means to cd to X and make all. | |
6a8a9058 NN |
1261 | .PHONY: $(ALL_MODULES) |
1262 | $(ALL_MODULES): | |
6599da04 JM |
1263 | @dir=`echo $@ | sed -e 's/all-//'`; \ |
1264 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1265 | r=`${PWD}`; export r; \ |
1266 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1267 | $(SET_LIB_PATH) \ |
1268 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ | |
1269 | else \ | |
1270 | true; \ | |
1271 | fi | |
1272 | ||
1273 | # These rules are used to check the modules which use FLAGS_TO_PASS. | |
1274 | # To build a target check-X means to cd to X and make check. Some | |
1275 | # modules are only tested in a native toolchain. | |
1276 | ||
1277 | .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | |
1278 | $(NATIVE_CHECK_MODULES): | |
759bfa90 | 1279 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
1280 | dir=`echo $@ | sed -e 's/check-//'`; \ |
1281 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1282 | r=`${PWD}`; export r; \ |
1283 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1284 | $(SET_LIB_PATH) \ |
1285 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | |
1286 | else \ | |
1287 | true; \ | |
1288 | fi; \ | |
1289 | fi | |
1290 | ||
1291 | $(CROSS_CHECK_MODULES): | |
1292 | @dir=`echo $@ | sed -e 's/check-//'`; \ | |
1293 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1294 | r=`${PWD}`; export r; \ |
1295 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1296 | $(SET_LIB_PATH) \ |
1297 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | |
1298 | else \ | |
1299 | true; \ | |
1300 | fi | |
1301 | ||
1302 | # This rule is used to install the modules which use FLAGS_TO_PASS. | |
1303 | # To build a target install-X means to cd to X and make install. | |
1304 | .PHONY: $(INSTALL_MODULES) | |
1305 | $(INSTALL_MODULES): installdirs | |
1306 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1307 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1308 | r=`${PWD}`; export r; \ |
1309 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1310 | $(SET_LIB_PATH) \ |
1311 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | |
1312 | else \ | |
1313 | true; \ | |
1314 | fi | |
1315 | ||
1316 | # This rule is used to configure the modules which are built with the | |
1317 | # target tools. | |
1318 | .PHONY: $(CONFIGURE_TARGET_MODULES) | |
1319 | $(CONFIGURE_TARGET_MODULES): | |
1320 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | |
1321 | if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \ | |
1e6347d8 | 1322 | r=`${PWD}`; export r; \ |
6599da04 JM |
1323 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \ |
1324 | if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \ | |
1325 | if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \ | |
1326 | if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \ | |
1327 | rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1328 | else \ | |
1329 | echo "Multilibs changed for $${dir}, reconfiguring"; \ | |
1330 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \ | |
1331 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | |
1332 | fi; \ | |
1333 | else \ | |
1334 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | |
1335 | fi; \ | |
1336 | fi; \ | |
1337 | fi; exit 0 # break command into two pieces | |
1338 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | |
1339 | if [ ! -d $(TARGET_SUBDIR) ]; then \ | |
1340 | true; \ | |
1341 | elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1342 | true; \ | |
1343 | elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | |
1344 | if [ -d $(srcdir)/$${dir} ]; then \ | |
1345 | [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\ | |
1e6347d8 RO |
1346 | r=`${PWD}`; export r; \ |
1347 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1348 | $(SET_LIB_PATH) \ |
1349 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
1350 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
1351 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
1352 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
1353 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
1354 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
85b99cbe | 1355 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ |
6599da04 JM |
1356 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
1357 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
1358 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
1359 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
1360 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
1361 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
1362 | echo Configuring in $(TARGET_SUBDIR)/$${dir}; \ | |
6e2d9a7a | 1363 | cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \ |
6599da04 | 1364 | case $(srcdir) in \ |
fc26516b | 1365 | /* | [A-Za-z]:[\\/]*) \ |
6599da04 JM |
1366 | topdir=$(srcdir) ;; \ |
1367 | *) \ | |
1368 | case "$(TARGET_SUBDIR)" in \ | |
1369 | .) topdir="../$(srcdir)" ;; \ | |
1370 | *) topdir="../../$(srcdir)" ;; \ | |
1371 | esac ;; \ | |
1372 | esac; \ | |
1373 | if [ "$(srcdir)" = "." ] ; then \ | |
1374 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
1375 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | |
1376 | if [ -f Makefile ]; then \ | |
1377 | if $(MAKE) distclean; then \ | |
1378 | true; \ | |
1379 | else \ | |
1380 | exit 1; \ | |
1381 | fi; \ | |
1382 | else \ | |
1383 | true; \ | |
1384 | fi; \ | |
1385 | else \ | |
1386 | exit 1; \ | |
1387 | fi; \ | |
1388 | else \ | |
1389 | true; \ | |
1390 | fi; \ | |
1391 | srcdiroption="--srcdir=."; \ | |
1392 | libsrcdir="."; \ | |
1393 | else \ | |
1394 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | |
1395 | libsrcdir="$$s/$${dir}"; \ | |
1396 | fi; \ | |
1397 | if [ -f $${libsrcdir}/configure ] ; then \ | |
71205e0b | 1398 | rm -f no-such-file skip-this-dir; \ |
601c6475 | 1399 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ |
e490616e | 1400 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
6599da04 JM |
1401 | --with-target-subdir="$(TARGET_SUBDIR)"; \ |
1402 | else \ | |
71205e0b | 1403 | rm -f no-such-file skip-this-dir; \ |
601c6475 | 1404 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ |
e490616e | 1405 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
6599da04 | 1406 | --with-target-subdir="$(TARGET_SUBDIR)"; \ |
6e2d9a7a | 1407 | fi || exit 1; \ |
71205e0b MH |
1408 | if [ -f skip-this-dir ] ; then \ |
1409 | sh skip-this-dir; \ | |
1410 | rm -f skip-this-dir; \ | |
1411 | cd ..; rmdir $${dir} || true; \ | |
1412 | else \ | |
1413 | true; \ | |
1414 | fi; \ | |
6599da04 JM |
1415 | else \ |
1416 | true; \ | |
1417 | fi; \ | |
1418 | else \ | |
1419 | true; \ | |
1420 | fi | |
1421 | ||
1422 | # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS. | |
1423 | # To build a target all-X means to cd to X and make all. | |
1424 | .PHONY: $(ALL_TARGET_MODULES) | |
1425 | $(ALL_TARGET_MODULES): | |
1426 | @dir=`echo $@ | sed -e 's/all-target-//'`; \ | |
1427 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1428 | r=`${PWD}`; export r; \ |
1429 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1430 | $(SET_LIB_PATH) \ |
a3406c06 AO |
1431 | (cd $(TARGET_SUBDIR)/$${dir}; \ |
1432 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \ | |
6599da04 JM |
1433 | else \ |
1434 | true; \ | |
1435 | fi | |
1436 | ||
1437 | # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS. | |
1438 | # To build a target install-X means to cd to X and make install. | |
1439 | .PHONY: $(CHECK_TARGET_MODULES) | |
1440 | $(CHECK_TARGET_MODULES): | |
1441 | @dir=`echo $@ | sed -e 's/check-target-//'`; \ | |
1442 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1443 | r=`${PWD}`; export r; \ |
1444 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1445 | $(SET_LIB_PATH) \ |
a3406c06 AO |
1446 | (cd $(TARGET_SUBDIR)/$${dir}; \ |
1447 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\ | |
6599da04 JM |
1448 | else \ |
1449 | true; \ | |
1450 | fi | |
1451 | ||
1452 | # This rule is used to install the modules which use | |
1453 | # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X | |
1454 | # and make install. | |
1455 | .PHONY: $(INSTALL_TARGET_MODULES) | |
1456 | $(INSTALL_TARGET_MODULES): installdirs | |
1457 | @dir=`echo $@ | sed -e 's/install-target-//'`; \ | |
1458 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1459 | r=`${PWD}`; export r; \ |
1460 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1461 | $(SET_LIB_PATH) \ |
1462 | (cd $(TARGET_SUBDIR)/$${dir}; \ | |
1463 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \ | |
1464 | else \ | |
1465 | true; \ | |
1466 | fi | |
1467 | ||
1468 | # This rule is used to build the modules which use X11_FLAGS_TO_PASS. | |
1469 | # To build a target all-X means to cd to X and make all. | |
1470 | .PHONY: $(ALL_X11_MODULES) | |
1471 | $(ALL_X11_MODULES): | |
1472 | @dir=`echo $@ | sed -e 's/all-//'`; \ | |
1473 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1474 | r=`${PWD}`; export r; \ |
1475 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1476 | $(SET_LIB_PATH) \ |
1477 | (cd $${dir}; \ | |
1478 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \ | |
1479 | else \ | |
1480 | true; \ | |
1481 | fi | |
1482 | ||
1483 | # This rule is used to check the modules which use X11_FLAGS_TO_PASS. | |
1484 | # To build a target check-X means to cd to X and make all. | |
1485 | .PHONY: $(CHECK_X11_MODULES) | |
1486 | $(CHECK_X11_MODULES): | |
1487 | @dir=`echo $@ | sed -e 's/check-//'`; \ | |
1488 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1489 | r=`${PWD}`; export r; \ |
1490 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1491 | $(SET_LIB_PATH) \ |
1492 | (cd $${dir}; \ | |
1493 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \ | |
1494 | else \ | |
1495 | true; \ | |
1496 | fi | |
1497 | ||
1498 | # This rule is used to install the modules which use X11_FLAGS_TO_PASS. | |
1499 | # To build a target install-X means to cd to X and make install. | |
1500 | .PHONY: $(INSTALL_X11_MODULES) | |
1501 | $(INSTALL_X11_MODULES): installdirs | |
1502 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1503 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1504 | r=`${PWD}`; export r; \ |
1505 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1506 | $(SET_LIB_PATH) \ |
1507 | (cd $${dir}; \ | |
1508 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \ | |
1509 | else \ | |
1510 | true; \ | |
1511 | fi | |
1512 | ||
1513 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. | |
1514 | .PHONY: all-gcc | |
1515 | all-gcc: | |
1516 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1517 | r=`${PWD}`; export r; \ |
1518 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1519 | $(SET_LIB_PATH) \ |
1520 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ | |
1521 | else \ | |
1522 | true; \ | |
1523 | fi | |
1524 | ||
ec20b1b9 JL |
1525 | # Building GCC uses some tools for rebuilding "source" files |
1526 | # like texinfo, bison/byacc, etc. So we must depend on those. | |
1527 | # | |
1528 | # While building GCC, it may be necessary to run various target | |
1529 | # programs like the assembler, linker, etc. So we depend on | |
1530 | # those too. | |
1531 | # | |
1532 | # In theory, on an SMP all those dependencies can be resolved | |
1533 | # in parallel. | |
1534 | # | |
e004b81f PE |
1535 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap |
1536 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap: all-bootstrap | |
1e6347d8 RO |
1537 | @r=`${PWD}`; export r; \ |
1538 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
ec20b1b9 | 1539 | $(SET_LIB_PATH) \ |
339c9b00 | 1540 | echo "Bootstrapping the compiler"; \ |
3a4fee66 | 1541 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
1e6347d8 RO |
1542 | @r=`${PWD}`; export r; \ |
1543 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
cc71c0ca | 1544 | case "$@" in \ |
f0983958 AO |
1545 | *bootstrap4-lean ) \ |
1546 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
1547 | compare=compare3-lean ;; \ | |
cc71c0ca MH |
1548 | *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \ |
1549 | compare=compare3 ;; \ | |
1550 | *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1551 | compare=compare-lean ;; \ | |
1552 | * ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1553 | compare=compare ;; \ | |
1554 | esac; \ | |
ec20b1b9 | 1555 | $(SET_LIB_PATH) \ |
cc71c0ca | 1556 | echo "$$msg"; \ |
3a4fee66 | 1557 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
1e6347d8 RO |
1558 | @r=`${PWD}`; export r; \ |
1559 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
f6b58262 JW |
1560 | $(SET_LIB_PATH) \ |
1561 | echo "Building runtime libraries"; \ | |
a3406c06 | 1562 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all |
b1e3ddfd | 1563 | |
09f97c1e JL |
1564 | .PHONY: cross |
1565 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
1e6347d8 RO |
1566 | @r=`${PWD}`; export r; \ |
1567 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
09f97c1e JL |
1568 | $(SET_LIB_PATH) \ |
1569 | echo "Building the C and C++ compiler"; \ | |
3a4fee66 | 1570 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
1e6347d8 RO |
1571 | @r=`${PWD}`; export r; \ |
1572 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
f6b58262 JW |
1573 | $(SET_LIB_PATH) \ |
1574 | echo "Building runtime libraries"; \ | |
a3406c06 AO |
1575 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \ |
1576 | LANGUAGES="c c++" all | |
09f97c1e | 1577 | |
6599da04 JM |
1578 | .PHONY: check-gcc |
1579 | check-gcc: | |
1580 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1581 | r=`${PWD}`; export r; \ |
1582 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1583 | $(SET_LIB_PATH) \ |
1584 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ | |
1585 | else \ | |
1586 | true; \ | |
1587 | fi | |
1588 | ||
0edcfdcb JM |
1589 | .PHONY: check-gcc-c++ |
1590 | check-gcc-c++: | |
f04885d3 | 1591 | @if [ -f ./gcc/Makefile ] ; then \ |
1e6347d8 RO |
1592 | r=`${PWD}`; export r; \ |
1593 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
f04885d3 BK |
1594 | $(SET_LIB_PATH) \ |
1595 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ | |
f04885d3 BK |
1596 | else \ |
1597 | true; \ | |
0edcfdcb JM |
1598 | fi |
1599 | ||
1600 | .PHONY: check-c++ | |
1601 | check-c++: check-target-libstdc++-v3 check-gcc-c++ | |
3d55d2f8 | 1602 | |
6599da04 JM |
1603 | .PHONY: install-gcc |
1604 | install-gcc: | |
1605 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1606 | r=`${PWD}`; export r; \ |
1607 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1608 | $(SET_LIB_PATH) \ |
3cd730af | 1609 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
6599da04 JM |
1610 | else \ |
1611 | true; \ | |
1612 | fi | |
1613 | ||
205cba53 JL |
1614 | .PHONY: install-gcc-cross |
1615 | install-gcc-cross: | |
1616 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1617 | r=`${PWD}`; export r; \ |
1618 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
205cba53 | 1619 | $(SET_LIB_PATH) \ |
3cd730af | 1620 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \ |
205cba53 JL |
1621 | else \ |
1622 | true; \ | |
1623 | fi | |
6599da04 JM |
1624 | # EXPERIMENTAL STUFF |
1625 | # This rule is used to install the modules which use FLAGS_TO_PASS. | |
1626 | # To build a target install-X means to cd to X and make install. | |
1627 | .PHONY: install-dosrel | |
1628 | install-dosrel: installdirs info | |
1629 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1630 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1631 | r=`${PWD}`; export r; \ |
1632 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1633 | $(SET_LIB_PATH) \ |
1634 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | |
1635 | else \ | |
1636 | true; \ | |
1637 | fi | |
1638 | ||
1639 | install-dosrel-fake: | |
1640 | ||
c9a54638 AO |
1641 | ALL_GCC = all-gcc |
1642 | ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss | |
1643 | ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3 | |
6599da04 JM |
1644 | |
1645 | # This is a list of inter-dependencies among modules. | |
5d4a5ee6 | 1646 | all-ash: |
6599da04 | 1647 | all-autoconf: all-m4 all-texinfo |
5d4a5ee6 | 1648 | all-automake: all-m4 all-texinfo |
6599da04 | 1649 | all-bash: |
5d4a5ee6 JL |
1650 | all-bfd: all-libiberty all-intl |
1651 | all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl | |
6599da04 | 1652 | all-bison: all-texinfo |
97cf8285 | 1653 | configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads |
6599da04 | 1654 | all-byacc: |
5d4a5ee6 | 1655 | all-bzip2: |
6599da04 JM |
1656 | all-db: |
1657 | all-dejagnu: all-tcl all-expect all-tk | |
1658 | all-diff: all-libiberty | |
6599da04 | 1659 | all-etc: |
6e2a4843 | 1660 | configure-target-examples: $(ALL_GCC_C) |
6599da04 JM |
1661 | all-expect: all-tcl all-tk |
1662 | all-fileutils: all-libiberty | |
1663 | all-findutils: | |
1664 | all-find: | |
1665 | all-flex: all-libiberty all-bison all-byacc | |
5d4a5ee6 | 1666 | all-gas: all-libiberty all-opcodes all-bfd all-intl |
6599da04 | 1667 | all-gawk: |
3c809ba4 | 1668 | all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib |
4d73d07a | 1669 | all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib |
0dffceed | 1670 | GDB_TK = @GDB_TK@ |
6599da04 | 1671 | all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK) |
5d4a5ee6 | 1672 | all-gettext: |
6599da04 | 1673 | all-gnuserv: |
7fddf9a9 | 1674 | configure-target-gperf: $(ALL_GCC_CXX) |
1db75a86 | 1675 | all-target-gperf: all-target-libiberty all-target-libstdc++-v3 |
5d4a5ee6 | 1676 | all-gprof: all-libiberty all-bfd all-opcodes all-intl |
6599da04 | 1677 | all-grep: all-libiberty |
6599da04 JM |
1678 | all-guile: |
1679 | all-gzip: all-libiberty | |
1680 | all-hello: all-libiberty | |
1681 | all-indent: | |
5d4a5ee6 | 1682 | all-intl: |
e9667b3c | 1683 | all-itcl: all-tcl all-tk |
5d4a5ee6 | 1684 | all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl |
6599da04 | 1685 | configure-target-libgloss: $(ALL_GCC) |
1db75a86 | 1686 | all-target-libgloss: configure-target-newlib |
e9667b3c | 1687 | all-libgui: all-tcl all-tk all-itcl |
6599da04 | 1688 | all-libiberty: |
e490616e ZW |
1689 | |
1690 | all-build-libiberty: configure-build-libiberty | |
1691 | ||
6e2a4843 | 1692 | configure-target-libffi: $(ALL_GCC_C) |
97cf8285 | 1693 | configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi |
1db75a86 | 1694 | all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi |
6e2a4843 | 1695 | configure-target-libstdc++-v3: $(ALL_GCC_C) |
1db75a86 | 1696 | all-target-libstdc++-v3: all-target-libiberty |
5d4a5ee6 | 1697 | all-libtool: |
6e2a4843 | 1698 | configure-target-libf2c: $(ALL_GCC_C) |
1db75a86 | 1699 | all-target-libf2c: all-target-libiberty |
6e2a4843 | 1700 | configure-target-libobjc: $(ALL_GCC_C) |
1db75a86 | 1701 | all-target-libobjc: all-target-libiberty |
191de407 | 1702 | all-m4: all-libiberty all-texinfo |
6599da04 JM |
1703 | all-make: all-libiberty |
1704 | all-mmalloc: | |
1705 | configure-target-newlib: $(ALL_GCC) | |
6e2a4843 | 1706 | configure-target-libtermcap: $(ALL_GCC_C) |
3ab36f05 | 1707 | all-opcodes: all-bfd all-libiberty |
6599da04 JM |
1708 | all-patch: all-libiberty |
1709 | all-perl: | |
1710 | all-prms: all-libiberty | |
6e2a4843 | 1711 | configure-target-qthreads: $(ALL_GCC_C) |
6599da04 JM |
1712 | all-rcs: |
1713 | all-readline: | |
1714 | all-recode: all-libiberty | |
1715 | all-sed: all-libiberty | |
1716 | all-send-pr: all-prms | |
1717 | all-shellutils: | |
3f19b439 | 1718 | all-sid: all-tcl all-tk |
3ab36f05 | 1719 | all-sim: all-libiberty all-bfd all-opcodes all-readline |
ab50d72b | 1720 | all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui |
6599da04 JM |
1721 | all-tar: all-libiberty |
1722 | all-tcl: | |
1723 | all-tclX: all-tcl all-tk | |
1724 | all-tk: all-tcl | |
1725 | all-texinfo: all-libiberty | |
1726 | all-textutils: | |
6599da04 | 1727 | all-time: |
e9667b3c | 1728 | all-tix: all-tcl all-tk |
6599da04 | 1729 | all-wdiff: |
f87505dd | 1730 | configure-target-rda: $(ALL_GCC_C) |
6e2a4843 | 1731 | configure-target-winsup: $(ALL_GCC_C) |
1db75a86 | 1732 | all-target-winsup: all-target-libiberty all-target-libtermcap |
6599da04 | 1733 | all-uudecode: all-libiberty |
99d60508 | 1734 | all-zip: |
4b92758a | 1735 | all-zlib: |
6e2a4843 | 1736 | configure-target-zlib: $(ALL_GCC_C) |
b634ad42 | 1737 | all-fastjar: all-zlib all-libiberty |
5db1f7ed | 1738 | configure-target-fastjar: configure-target-zlib |
b634ad42 | 1739 | all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty |
6e2a4843 | 1740 | configure-target-libiberty: $(ALL_GCC_C) |
39a744bb | 1741 | configure-target: $(CONFIGURE_TARGET_MODULES) |
6599da04 JM |
1742 | all-target: $(ALL_TARGET_MODULES) |
1743 | install-target: $(INSTALL_TARGET_MODULES) | |
d207ebef | 1744 | install-gdb: install-tcl install-tk install-itcl install-tix install-libgui |
3f19b439 | 1745 | install-sid: install-tcl install-tk |
1db75a86 | 1746 | |
f5e0c73c NN |
1747 | # We put install-opcodes before install-binutils because the installed |
1748 | # binutils might be on PATH, and they might need the shared opcodes | |
1749 | # library. | |
1750 | install-binutils: install-opcodes | |
1751 | ||
1752 | # We put install-tcl before install-itcl because itcl wants to run a | |
1753 | # program on installation which uses the Tcl libraries. | |
1754 | install-itcl: install-tcl | |
1755 | ||
1756 | ||
1db75a86 NN |
1757 | # Dependencies of all-target-foo on configure-target-foo. |
1758 | all-target-libstdc++-v3: configure-target-libstdc++-v3 | |
1759 | all-target-newlib: configure-target-newlib | |
1760 | all-target-libf2c: configure-target-libf2c | |
1761 | all-target-libobjc: configure-target-libobjc | |
1762 | all-target-libtermcap: configure-target-libtermcap | |
1763 | all-target-winsup: configure-target-winsup | |
1764 | all-target-libgloss: configure-target-libgloss | |
1765 | all-target-libiberty: configure-target-libiberty | |
1766 | all-target-gperf: configure-target-gperf | |
1767 | all-target-examples: configure-target-examples | |
1768 | all-target-libffi: configure-target-libffi | |
1769 | all-target-libjava: configure-target-libjava | |
1770 | all-target-zlib: configure-target-zlib | |
1771 | all-target-boehm-gc: configure-target-boehm-gc | |
1772 | all-target-qthreads: configure-target-qthreads | |
40673d2b | 1773 | all-target-rda: configure-target-rda |
1db75a86 NN |
1774 | |
1775 | ||
6599da04 JM |
1776 | ### other supporting targets |
1777 | ||
1778 | MAKEDIRS= \ | |
b70b3534 FS |
1779 | $(DESTDIR)$(prefix) \ |
1780 | $(DESTDIR)$(exec_prefix) | |
6599da04 JM |
1781 | .PHONY: installdirs |
1782 | installdirs: mkinstalldirs | |
1783 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
1784 | ||
1785 | dir.info: do-install-info | |
1786 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
1787 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
1788 | mv -f dir.info.new dir.info ; \ | |
1789 | else true ; \ | |
1790 | fi | |
1791 | ||
1792 | dist: | |
1793 | @echo "Building a full distribution of this tree isn't done" | |
1794 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1795 | ||
1796 | etags tags: TAGS | |
1797 | ||
1798 | # Right now this just builds TAGS in each subdirectory. emacs19 has the | |
1799 | # ability to use several tags files at once, so there is probably no need | |
1800 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
1801 | # (if we felt like it) have this Makefile write a piece of elisp which | |
1802 | # the user could load to tell emacs19 where all the TAGS files we just | |
1803 | # built are. | |
1804 | TAGS: do-TAGS | |
1805 | ||
6f950405 NN |
1806 | # Rebuilding Makefile.in, using autogen. |
1807 | $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def | |
1808 | cd $(srcdir) && autogen Makefile.def | |
1809 | ||
6599da04 JM |
1810 | # with the gnu make, this is done automatically. |
1811 | ||
6dd27861 | 1812 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) |
6599da04 JM |
1813 | $(SHELL) ./config.status |
1814 | ||
1815 | # | |
6599da04 JM |
1816 | |
1817 | .NOEXPORT: | |
1818 | MAKEOVERRIDES= | |
1819 | ||
6599da04 | 1820 | # end of Makefile.in |