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