]>
Commit | Line | Data |
---|---|---|
6599da04 JM |
1 | # |
2 | # Makefile for directory with subdirs to build. | |
6e2a4843 | 3 | # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, |
1e6347d8 | 4 | # 1999, 2000, 2001, 2002 Free Software Foundation |
6599da04 JM |
5 | # |
6 | # This file is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | # | |
20 | ||
c2273204 | 21 | # Tell GNU make 3.79 not to run the top level in parallel. This |
63adb4ff RH |
22 | # prevents contention for $builddir/$target/config.cache, as well |
23 | # as minimizing scatter in file system caches. | |
c2273204 RH |
24 | NOTPARALLEL = .NOTPARALLEL |
25 | $(NOTPARALLEL): | |
63adb4ff | 26 | |
6599da04 JM |
27 | srcdir = . |
28 | ||
29 | prefix = /usr/local | |
6599da04 | 30 | exec_prefix = $(prefix) |
5d4a5ee6 JL |
31 | |
32 | bindir=${exec_prefix}/bin | |
33 | sbindir=${exec_prefix}/sbin | |
34 | libexecdir=${exec_prefix}/libexec | |
35 | datadir=${prefix}/share | |
36 | sysconfdir=${prefix}/etc | |
37 | sharedstatedir=${prefix}/com | |
38 | localstatedir=${prefix}/var | |
39 | libdir=${exec_prefix}/lib | |
40 | includedir=${prefix}/include | |
41 | oldincludedir=/usr/include | |
42 | infodir=${prefix}/info | |
43 | mandir=${prefix}/man | |
88101ab9 | 44 | gxx_include_dir=${includedir}/g++ |
5d4a5ee6 | 45 | |
5cb95c7a JL |
46 | tooldir = $(exec_prefix)/$(target_alias) |
47 | build_tooldir = $(exec_prefix)/$(target_alias) | |
48 | ||
6599da04 JM |
49 | program_transform_name = |
50 | ||
6599da04 JM |
51 | man1dir = $(mandir)/man1 |
52 | man2dir = $(mandir)/man2 | |
53 | man3dir = $(mandir)/man3 | |
54 | man4dir = $(mandir)/man4 | |
55 | man5dir = $(mandir)/man5 | |
56 | man6dir = $(mandir)/man6 | |
57 | man7dir = $(mandir)/man7 | |
58 | man8dir = $(mandir)/man8 | |
59 | man9dir = $(mandir)/man9 | |
60 | infodir = $(prefix)/info | |
61 | includedir = $(prefix)/include | |
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 | ||
66 | SHELL = /bin/sh | |
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. | |
131 | DEFAULT_YACC = yacc | |
132 | DEFAULT_LEX = lex | |
3a35dcc4 | 133 | DEFAULT_M4 = 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. | |
e1da1089 | 189 | TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib winsup opcodes libf2c libobjc |
6599da04 JM |
190 | |
191 | # Target libraries are put under this directory: | |
192 | # Changed by configure to $(target_alias) if cross. | |
193 | TARGET_SUBDIR = . | |
194 | ||
e490616e ZW |
195 | BUILD_CONFIGDIRS = libiberty |
196 | BUILD_SUBDIR = . | |
197 | ||
198 | # This is set by the configure script to the arguments to use when configuring | |
199 | # directories built for the target. | |
200 | TARGET_CONFIGARGS = | |
201 | ||
202 | # This is set by the configure script to the arguments to use when configuring | |
203 | # directories built for the build system. | |
204 | 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 AO |
243 | # Should be substed by configure.in |
244 | FLAGS_FOR_TARGET = | |
245 | CC_FOR_TARGET = | |
b87487b6 | 246 | CXX_FOR_TARGET = |
a3406c06 | 247 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = |
85b99cbe | 248 | 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. | |
acffa7c4 | 254 | GCC_FOR_TARGET = $$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 | |
517 | ALL_BUILD_MODULES = | |
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 \ | |
532 | all-binutils \ | |
533 | all-bison \ | |
534 | all-byacc \ | |
5d4a5ee6 | 535 | all-bzip2 \ |
6599da04 JM |
536 | all-db \ |
537 | all-dejagnu \ | |
538 | all-diff \ | |
539 | all-dosutils \ | |
540 | all-etc \ | |
5db1f7ed | 541 | all-fastjar \ |
6599da04 JM |
542 | all-fileutils \ |
543 | all-findutils \ | |
544 | all-find \ | |
545 | all-flex \ | |
546 | all-gas \ | |
547 | all-gawk \ | |
5d4a5ee6 | 548 | all-gettext \ |
6599da04 JM |
549 | all-gnuserv \ |
550 | all-gprof \ | |
551 | all-grep \ | |
6599da04 JM |
552 | all-gzip \ |
553 | all-hello \ | |
554 | all-indent \ | |
5d4a5ee6 | 555 | all-intl \ |
6599da04 JM |
556 | all-itcl \ |
557 | all-ld \ | |
5d4a5ee6 | 558 | all-libgui \ |
6599da04 | 559 | all-libiberty \ |
d207ebef | 560 | all-libtool \ |
6599da04 JM |
561 | all-m4 \ |
562 | all-make \ | |
563 | all-mmalloc \ | |
564 | all-opcodes \ | |
565 | all-patch \ | |
566 | all-perl \ | |
567 | all-prms \ | |
568 | all-rcs \ | |
569 | all-readline \ | |
570 | all-release \ | |
571 | all-recode \ | |
572 | all-sed \ | |
573 | all-send-pr \ | |
574 | all-shellutils \ | |
3f19b439 | 575 | all-sid \ |
6599da04 | 576 | all-sim \ |
5d4a5ee6 | 577 | all-snavigator \ |
6599da04 JM |
578 | all-tar \ |
579 | all-tcl \ | |
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 \ | |
608 | check-binutils \ | |
5d4a5ee6 | 609 | check-bzip2 \ |
6599da04 JM |
610 | check-db \ |
611 | check-dejagnu \ | |
612 | check-diff \ | |
613 | check-etc \ | |
614 | check-fileutils \ | |
615 | check-findutils \ | |
616 | check-find \ | |
617 | check-gas \ | |
618 | check-gawk \ | |
5d4a5ee6 | 619 | check-gettext \ |
6599da04 JM |
620 | check-gnuserv \ |
621 | check-gprof \ | |
622 | check-grep \ | |
623 | check-gzip \ | |
624 | check-hello \ | |
625 | check-indent \ | |
5d4a5ee6 | 626 | check-intl \ |
6599da04 JM |
627 | check-itcl \ |
628 | check-ld \ | |
5d4a5ee6 | 629 | check-libgui \ |
6599da04 | 630 | check-libiberty \ |
5d4a5ee6 | 631 | check-libtool \ |
6599da04 JM |
632 | check-m4 \ |
633 | check-make \ | |
634 | check-mmcheckoc \ | |
635 | check-opcodes \ | |
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 \ | |
1ebe758f | 645 | check-snavigator \ |
3f19b439 | 646 | check-sid \ |
6599da04 JM |
647 | check-sim \ |
648 | check-tar \ | |
649 | check-tcl \ | |
650 | check-texinfo \ | |
651 | check-textutils \ | |
6599da04 JM |
652 | check-time \ |
653 | check-uudecode \ | |
5d4a5ee6 JL |
654 | check-wdiff \ |
655 | $(EXTRA_TARGET_HOST_CHECK_MODULES) | |
6599da04 JM |
656 | |
657 | CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | |
658 | ||
659 | # This is a list of the install targets for all of the modules which are | |
660 | # compiled using $(FLAGS_TO_PASS). | |
661 | # We put install-opcodes before install-binutils because the installed | |
662 | # binutils might be on PATH, and they might need the shared opcodes | |
663 | # library. | |
5d4a5ee6 JL |
664 | # We put install-tcl before install-itcl because itcl wants to run a |
665 | # program on installation which uses the Tcl libraries. | |
6599da04 | 666 | INSTALL_MODULES = \ |
5d4a5ee6 | 667 | install-ash \ |
6599da04 JM |
668 | install-autoconf \ |
669 | install-automake \ | |
670 | install-bash \ | |
671 | install-bfd \ | |
5d4a5ee6 | 672 | install-bzip2 \ |
6599da04 JM |
673 | install-opcodes \ |
674 | install-binutils \ | |
675 | install-bison \ | |
676 | install-byacc \ | |
6599da04 JM |
677 | install-db \ |
678 | install-dejagnu \ | |
679 | install-diff \ | |
680 | install-dosutils \ | |
681 | install-etc \ | |
5db1f7ed | 682 | install-fastjar \ |
6599da04 JM |
683 | install-fileutils \ |
684 | install-findutils \ | |
685 | install-find \ | |
686 | install-flex \ | |
687 | install-gas \ | |
688 | install-gawk \ | |
5d4a5ee6 | 689 | install-gettext \ |
6599da04 JM |
690 | install-gnuserv \ |
691 | install-gprof \ | |
692 | install-grep \ | |
6599da04 JM |
693 | install-gzip \ |
694 | install-hello \ | |
695 | install-indent \ | |
5d4a5ee6 | 696 | install-intl \ |
5d4a5ee6 | 697 | install-tcl \ |
6599da04 JM |
698 | install-itcl \ |
699 | install-ld \ | |
5d4a5ee6 | 700 | install-libgui \ |
6599da04 | 701 | install-libiberty \ |
5d4a5ee6 | 702 | install-libtool \ |
6599da04 JM |
703 | install-m4 \ |
704 | install-make \ | |
705 | install-mmalloc \ | |
706 | install-patch \ | |
707 | install-perl \ | |
708 | install-prms \ | |
709 | install-rcs \ | |
710 | install-readline \ | |
711 | install-recode \ | |
712 | install-sed \ | |
713 | install-send-pr \ | |
714 | install-shellutils \ | |
3f19b439 | 715 | install-sid \ |
6599da04 | 716 | install-sim \ |
5d4a5ee6 | 717 | install-snavigator \ |
6599da04 | 718 | install-tar \ |
6599da04 | 719 | install-textutils \ |
6599da04 JM |
720 | install-time \ |
721 | install-uudecode \ | |
5d4a5ee6 | 722 | install-wdiff \ |
99d60508 | 723 | install-zip \ |
5d4a5ee6 | 724 | $(EXTRA_TARGET_HOST_INSTALL_MODULES) |
6599da04 JM |
725 | |
726 | # This is a list of the targets for all of the modules which are compiled | |
727 | # using $(X11_FLAGS_TO_PASS). | |
728 | ALL_X11_MODULES = \ | |
6599da04 JM |
729 | all-gdb \ |
730 | all-expect \ | |
6599da04 JM |
731 | all-guile \ |
732 | all-tclX \ | |
733 | all-tk \ | |
734 | all-tix | |
735 | ||
736 | # This is a list of the check targets for all of the modules which are | |
737 | # compiled using $(X11_FLAGS_TO_PASS). | |
738 | CHECK_X11_MODULES = \ | |
6599da04 JM |
739 | check-gdb \ |
740 | check-guile \ | |
741 | check-expect \ | |
6599da04 JM |
742 | check-tclX \ |
743 | check-tk \ | |
744 | check-tix | |
745 | ||
746 | # This is a list of the install targets for all the modules which are | |
747 | # compiled using $(X11_FLAGS_TO_PASS). | |
748 | INSTALL_X11_MODULES = \ | |
6599da04 JM |
749 | install-gdb \ |
750 | install-guile \ | |
751 | install-expect \ | |
6599da04 JM |
752 | install-tclX \ |
753 | install-tk \ | |
754 | install-tix | |
755 | ||
756 | # This is a list of the targets for all of the modules which are compiled | |
757 | # using $(TARGET_FLAGS_TO_PASS). | |
758 | ALL_TARGET_MODULES = \ | |
17090313 | 759 | all-target-libstdc++-v3 \ |
6599da04 | 760 | all-target-newlib \ |
8821a725 | 761 | all-target-libf2c \ |
6fc19d6d | 762 | all-target-libobjc \ |
d207ebef | 763 | all-target-libtermcap \ |
6599da04 JM |
764 | all-target-winsup \ |
765 | all-target-libgloss \ | |
766 | all-target-libiberty \ | |
767 | all-target-gperf \ | |
5d4a5ee6 | 768 | all-target-examples \ |
aab0d19d | 769 | all-target-libffi \ |
99d60508 TT |
770 | all-target-libjava \ |
771 | all-target-zlib \ | |
772 | all-target-boehm-gc \ | |
e1da1089 | 773 | all-target-qthreads |
6599da04 JM |
774 | |
775 | # This is a list of the configure targets for all of the modules which | |
776 | # are compiled using the target tools. | |
777 | CONFIGURE_TARGET_MODULES = \ | |
17090313 | 778 | configure-target-libstdc++-v3 \ |
6599da04 | 779 | configure-target-newlib \ |
8821a725 | 780 | configure-target-libf2c \ |
6fc19d6d | 781 | configure-target-libobjc \ |
d207ebef | 782 | configure-target-libtermcap \ |
6599da04 JM |
783 | configure-target-winsup \ |
784 | configure-target-libgloss \ | |
785 | configure-target-libiberty \ | |
786 | configure-target-gperf \ | |
5d4a5ee6 | 787 | configure-target-examples \ |
aab0d19d | 788 | configure-target-libffi \ |
99d60508 TT |
789 | configure-target-libjava \ |
790 | configure-target-zlib \ | |
791 | configure-target-boehm-gc \ | |
e1da1089 | 792 | configure-target-qthreads |
6599da04 JM |
793 | |
794 | # This is a list of the check targets for all of the modules which are | |
795 | # compiled using $(TARGET_FLAGS_TO_PASS). | |
796 | CHECK_TARGET_MODULES = \ | |
17090313 | 797 | check-target-libstdc++-v3 \ |
6599da04 | 798 | check-target-newlib \ |
8821a725 | 799 | check-target-libf2c \ |
6fc19d6d | 800 | check-target-libobjc \ |
6599da04 JM |
801 | check-target-winsup \ |
802 | check-target-libiberty \ | |
aab0d19d | 803 | check-target-libffi \ |
99d60508 TT |
804 | check-target-libjava \ |
805 | check-target-zlib \ | |
806 | check-target-boehm-gc \ | |
807 | check-target-qthreads \ | |
6599da04 JM |
808 | check-target-gperf |
809 | ||
810 | # This is a list of the install targets for all of the modules which are | |
811 | # compiled using $(TARGET_FLAGS_TO_PASS). | |
812 | INSTALL_TARGET_MODULES = \ | |
17090313 | 813 | install-target-libstdc++-v3 \ |
6599da04 | 814 | install-target-newlib \ |
8821a725 | 815 | install-target-libf2c \ |
6fc19d6d | 816 | install-target-libobjc \ |
d207ebef | 817 | install-target-libtermcap \ |
6599da04 JM |
818 | install-target-winsup \ |
819 | install-target-libgloss \ | |
820 | install-target-libiberty \ | |
99d60508 TT |
821 | install-target-libjava \ |
822 | install-target-zlib \ | |
823 | install-target-boehm-gc \ | |
824 | install-target-qthreads \ | |
6599da04 JM |
825 | install-target-gperf |
826 | ||
827 | # This is a list of the targets for which we can do a clean-{target}. | |
828 | CLEAN_MODULES = \ | |
5d4a5ee6 | 829 | clean-ash \ |
6599da04 JM |
830 | clean-autoconf \ |
831 | clean-automake \ | |
832 | clean-bash \ | |
833 | clean-bfd \ | |
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 \ |
6599da04 JM |
858 | clean-itcl \ |
859 | clean-ld \ | |
5d4a5ee6 | 860 | clean-libgui \ |
6599da04 | 861 | clean-libiberty \ |
5d4a5ee6 | 862 | clean-libtool \ |
6599da04 JM |
863 | clean-m4 \ |
864 | clean-make \ | |
865 | clean-mmalloc \ | |
866 | clean-opcodes \ | |
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 JM |
880 | clean-tar \ |
881 | clean-tcl \ | |
882 | clean-texinfo \ | |
883 | clean-textutils \ | |
6599da04 JM |
884 | clean-time \ |
885 | clean-uudecode \ | |
99d60508 | 886 | clean-wdiff \ |
3c809ba4 AG |
887 | clean-zip \ |
888 | clean-zlib | |
99d60508 | 889 | |
6599da04 JM |
890 | # All of the target modules that can be cleaned |
891 | CLEAN_TARGET_MODULES = \ | |
17090313 | 892 | clean-target-libstdc++-v3 \ |
6599da04 | 893 | clean-target-newlib \ |
8821a725 | 894 | clean-target-libf2c \ |
6fc19d6d | 895 | clean-target-libobjc \ |
6599da04 JM |
896 | clean-target-winsup \ |
897 | clean-target-libgloss \ | |
898 | clean-target-libiberty \ | |
899 | clean-target-gperf \ | |
5d4a5ee6 | 900 | clean-target-examples \ |
aab0d19d | 901 | clean-target-libffi \ |
99d60508 TT |
902 | clean-target-libjava \ |
903 | clean-target-zlib \ | |
904 | clean-target-boehm-gc \ | |
e1da1089 | 905 | clean-target-qthreads |
6599da04 JM |
906 | |
907 | # All of the x11 modules that can be cleaned | |
908 | CLEAN_X11_MODULES = \ | |
6599da04 JM |
909 | clean-gdb \ |
910 | clean-expect \ | |
6599da04 JM |
911 | clean-guile \ |
912 | clean-tclX \ | |
913 | clean-tk \ | |
914 | clean-tix | |
915 | ||
6599da04 JM |
916 | # The target built for a native build. |
917 | .PHONY: all.normal | |
918 | all.normal: \ | |
e490616e | 919 | $(ALL_BUILD_MODULES) \ |
6599da04 JM |
920 | $(ALL_MODULES) \ |
921 | $(ALL_X11_MODULES) \ | |
922 | $(ALL_TARGET_MODULES) \ | |
923 | all-gcc | |
924 | ||
925 | # Do a target for all the subdirectories. A ``make do-X'' will do a | |
926 | # ``make X'' in all subdirectories (because, in general, there is a | |
927 | # dependency (below) of X upon do-X, a ``make X'' will also do this, | |
928 | # but it may do additional work as well). | |
929 | # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once, | |
930 | # because it is so large that it can easily overflow the command line | |
931 | # length limit on some systems. | |
932 | DO_X = \ | |
933 | do-clean \ | |
934 | do-distclean \ | |
935 | do-dvi \ | |
936 | do-info \ | |
937 | do-install-info \ | |
938 | do-installcheck \ | |
939 | do-mostlyclean \ | |
940 | do-maintainer-clean \ | |
941 | do-TAGS | |
942 | .PHONY: $(DO_X) | |
943 | $(DO_X): | |
944 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
1e6347d8 RO |
945 | r=`${PWD}`; export r; \ |
946 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
947 | $(SET_LIB_PATH) \ |
948 | for i in $(SUBDIRS) -dummy-; do \ | |
949 | if [ -f ./$$i/Makefile ]; then \ | |
950 | case $$i in \ | |
951 | gcc) \ | |
952 | for flag in $(EXTRA_GCC_FLAGS); do \ | |
759bfa90 | 953 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 JM |
954 | done; \ |
955 | ;; \ | |
956 | *) \ | |
957 | for flag in $(EXTRA_HOST_FLAGS); do \ | |
759bfa90 | 958 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 JM |
959 | done; \ |
960 | ;; \ | |
961 | esac ; \ | |
6599da04 JM |
962 | if (cd ./$$i; \ |
963 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
964 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
e9f4fa71 | 965 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
6599da04 JM |
966 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
967 | $${target}); \ | |
968 | then true; else exit 1; fi; \ | |
969 | else true; fi; \ | |
970 | done | |
971 | @target=`echo $@ | sed -e 's/^do-//'`; \ | |
1e6347d8 RO |
972 | r=`${PWD}`; export r; \ |
973 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
974 | $(SET_LIB_PATH) \ |
975 | for i in $(TARGET_CONFIGDIRS) -dummy-; do \ | |
976 | if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \ | |
977 | for flag in $(EXTRA_TARGET_FLAGS); do \ | |
759bfa90 | 978 | eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \ |
6599da04 | 979 | done; \ |
6599da04 JM |
980 | if (cd $(TARGET_SUBDIR)/$$i; \ |
981 | $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \ | |
982 | "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \ | |
7238de5c | 983 | "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \ |
6599da04 JM |
984 | "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \ |
985 | $${target}); \ | |
986 | then true; else exit 1; fi; \ | |
987 | else true; fi; \ | |
988 | done | |
989 | ||
990 | # Here are the targets which correspond to the do-X targets. | |
991 | ||
992 | .PHONY: info installcheck dvi install-info | |
993 | .PHONY: clean distclean mostlyclean maintainer-clean realclean | |
994 | .PHONY: local-clean local-distclean local-maintainer-clean | |
995 | info: do-info | |
996 | installcheck: do-installcheck | |
997 | dvi: do-dvi | |
998 | ||
999 | # Make sure makeinfo is built before we do a `make info'. | |
1000 | do-info: all-texinfo | |
1001 | ||
1002 | install-info: do-install-info dir.info | |
1e6347d8 | 1003 | s=`cd $(srcdir); ${PWD}`; export s; \ |
6599da04 JM |
1004 | if [ -f dir.info ] ; then \ |
1005 | $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \ | |
1006 | else true ; fi | |
1007 | ||
1008 | local-clean: | |
c4137c50 | 1009 | -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log |
6599da04 JM |
1010 | |
1011 | local-distclean: | |
f401679e | 1012 | -rm -f Makefile config.status config.cache mh-frag mt-frag |
6599da04 JM |
1013 | -if [ "$(TARGET_SUBDIR)" != "." ]; then \ |
1014 | rm -rf $(TARGET_SUBDIR); \ | |
1015 | else true; fi | |
5a2eb52b MS |
1016 | -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile |
1017 | -rm -f texinfo/doc/Makefile texinfo/po/POTFILES | |
5e59997c MS |
1018 | -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null |
1019 | -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null | |
e2f601da | 1020 | -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null |
6599da04 JM |
1021 | |
1022 | local-maintainer-clean: | |
1023 | @echo "This command is intended for maintainers to use;" | |
1024 | @echo "it deletes files that may require special tools to rebuild." | |
1025 | ||
1026 | clean: do-clean local-clean | |
1027 | mostlyclean: do-mostlyclean local-clean | |
1028 | distclean: do-distclean local-clean local-distclean | |
1029 | maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean | |
1030 | maintainer-clean: local-distclean | |
1031 | realclean: maintainer-clean | |
1032 | ||
1033 | # This rule is used to clean specific modules. | |
1034 | .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc | |
1035 | $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc: | |
1036 | @dir=`echo $@ | sed -e 's/clean-//'`; \ | |
1037 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1038 | r=`${PWD}`; export r; \ |
1039 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1040 | $(SET_LIB_PATH) \ |
1041 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \ | |
1042 | else \ | |
1043 | true; \ | |
1044 | fi | |
1045 | ||
1046 | .PHONY: $(CLEAN_TARGET_MODULES) | |
1047 | $(CLEAN_TARGET_MODULES): | |
1048 | @dir=`echo $@ | sed -e 's/clean-target-//'`; \ | |
1049 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1050 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1051 | r=`${PWD}`; export r; \ |
1052 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1053 | $(SET_LIB_PATH) \ |
1054 | (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \ | |
1055 | else \ | |
1056 | true; \ | |
1057 | fi | |
1058 | ||
1670d1ea AO |
1059 | clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc |
1060 | clean-target-libgcc: | |
1061 | test ! -d gcc/libgcc || \ | |
1062 | (cd gcc/libgcc && find . -type d -print) | \ | |
1063 | while read d; do rm -f gcc/$$d/libgcc.a || : ; done | |
1064 | -rm -rf gcc/libgcc | |
6599da04 JM |
1065 | |
1066 | # Check target. | |
1067 | ||
c2273204 RH |
1068 | .PHONY: check do-check |
1069 | check: | |
1070 | $(MAKE) do-check NOTPARALLEL=parallel-ok | |
1071 | ||
1072 | do-check: $(CHECK_MODULES) \ | |
6599da04 JM |
1073 | $(CHECK_TARGET_MODULES) \ |
1074 | $(CHECK_X11_MODULES) \ | |
1075 | check-gcc | |
1076 | ||
c4137c50 AO |
1077 | # Automated reporting of test results. |
1078 | ||
1079 | warning.log: build.log | |
1080 | $(srcdir)/contrib/warn_summary build.log > $@ | |
1081 | ||
1082 | mail-report.log: | |
1083 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1084 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1085 | fi; \ | |
1086 | $(srcdir)/contrib/test_summary -t >$@ | |
1087 | chmod +x $@ | |
1088 | echo If you really want to send e-mail, run ./$@ now | |
1089 | ||
1090 | mail-report-with-warnings.log: warning.log | |
1091 | if test x'$(BOOT_CFLAGS)' != x''; then \ | |
1092 | BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \ | |
1093 | fi; \ | |
1094 | $(srcdir)/contrib/test_summary -t -i warning.log >$@ | |
1095 | chmod +x $@ | |
1096 | echo If you really want to send e-mail, run ./$@ now | |
1097 | ||
6599da04 JM |
1098 | # Installation targets. |
1099 | ||
205cba53 | 1100 | .PHONY: install install-cross uninstall source-vault binary-vault vault-install |
6599da04 | 1101 | install: $(INSTALL_TARGET) |
205cba53 | 1102 | install-cross: $(INSTALL_TARGET_CROSS) |
6599da04 JM |
1103 | |
1104 | uninstall: | |
1105 | @echo "the uninstall target is not supported in this tree" | |
1106 | ||
1107 | source-vault: | |
1108 | $(MAKE) -f ./release/Build-A-Release \ | |
1109 | host=$(host_alias) source-vault | |
1110 | ||
1111 | binary-vault: | |
1112 | $(MAKE) -f ./release/Build-A-Release \ | |
1113 | host=$(host_alias) target=$(target_alias) | |
1114 | ||
1115 | vault-install: | |
1116 | @if [ -f ./release/vault-install ] ; then \ | |
1117 | ./release/vault-install $(host_alias) $(target_alias) ; \ | |
1118 | else \ | |
1119 | true ; \ | |
1120 | fi | |
1121 | ||
1122 | .PHONY: install.all | |
1123 | install.all: install-no-fixedincludes | |
1124 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 | 1125 | r=`${PWD}` ; export r ; \ |
6599da04 JM |
1126 | $(SET_LIB_PATH) \ |
1127 | (cd ./gcc; \ | |
1128 | $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \ | |
1129 | else \ | |
1130 | true ; \ | |
1131 | fi | |
1132 | ||
6599da04 JM |
1133 | # install-no-fixedincludes is used because Cygnus can not distribute |
1134 | # the fixed header files. | |
1135 | .PHONY: install-no-fixedincludes | |
1136 | install-no-fixedincludes: \ | |
1137 | installdirs \ | |
1138 | $(INSTALL_MODULES) \ | |
1139 | $(INSTALL_TARGET_MODULES) \ | |
1140 | $(INSTALL_X11_MODULES) \ | |
1141 | gcc-no-fixedincludes | |
1142 | ||
1143 | # Install the gcc headers files, but not the fixed include files, | |
1144 | # which Cygnus is not allowed to distribute. This rule is very | |
1145 | # dependent on the workings of the gcc Makefile.in. | |
1146 | .PHONY: gcc-no-fixedincludes | |
1147 | gcc-no-fixedincludes: | |
1148 | @if [ -f ./gcc/Makefile ]; then \ | |
1149 | rm -rf gcc/tmp-include; \ | |
1150 | mv gcc/include gcc/tmp-include 2>/dev/null; \ | |
1151 | mkdir gcc/include; \ | |
1152 | cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \ | |
1153 | touch gcc/stmp-fixinc gcc/include/fixed; \ | |
1154 | rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \ | |
1e6347d8 RO |
1155 | r=`${PWD}`; export r; \ |
1156 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
6599da04 JM |
1157 | $(SET_LIB_PATH) \ |
1158 | (cd ./gcc; \ | |
1159 | $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ | |
1160 | rm -rf gcc/include; \ | |
1161 | mv gcc/tmp-include gcc/include 2>/dev/null; \ | |
1162 | else true; fi | |
1163 | ||
e490616e ZW |
1164 | # This rule is used to build the modules which are built with the |
1165 | # build machine's native compiler. | |
1166 | .PHONY: $(ALL_BUILD_MODULES) | |
1167 | $(ALL_BUILD_MODULES): | |
1168 | dir=`echo $@ | sed -e 's/all-build-//'`; \ | |
1169 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1170 | r=`${PWD}`; export r; \ |
1171 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
e490616e ZW |
1172 | (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \ |
1173 | else \ | |
1174 | true; \ | |
1175 | fi | |
1176 | ||
1177 | # This rule is used to configure the modules which are built with the | |
1178 | # native tools. | |
1179 | .PHONY: $(CONFIGURE_BUILD_MODULES) | |
1180 | $(CONFIGURE_BUILD_MODULES): | |
1181 | @dir=`echo $@ | sed -e 's/configure-build-//'`; \ | |
1182 | if [ ! -d $(BUILD_SUBDIR) ]; then \ | |
1183 | true; \ | |
1184 | elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1185 | true; \ | |
1186 | elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | |
1187 | if [ -d $(srcdir)/$${dir} ]; then \ | |
1188 | [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\ | |
1e6347d8 RO |
1189 | r=`${PWD}`; export r; \ |
1190 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
e490616e ZW |
1191 | AR="$(AR_FOR_BUILD)"; export AR; \ |
1192 | AS="$(AS_FOR_BUILD)"; export AS; \ | |
1193 | CC="$(CC_FOR_BUILD)"; export CC; \ | |
1194 | CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \ | |
1195 | CXX="$(CXX_FOR_BUILD)"; export CXX; \ | |
1196 | CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \ | |
1197 | GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \ | |
1198 | DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \ | |
1199 | LD="$(LD_FOR_BUILD)"; export LD; \ | |
1200 | LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \ | |
1201 | NM="$(NM_FOR_BUILD)"; export NM; \ | |
1202 | RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \ | |
1203 | WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \ | |
1204 | echo Configuring in $(BUILD_SUBDIR)/$${dir}; \ | |
1205 | cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \ | |
1206 | case $(srcdir) in \ | |
1207 | /* | [A-Za-z]:[\\/]*) \ | |
1208 | topdir=$(srcdir) ;; \ | |
1209 | *) \ | |
1210 | case "$(BUILD_SUBDIR)" in \ | |
1211 | .) topdir="../$(srcdir)" ;; \ | |
1212 | *) topdir="../../$(srcdir)" ;; \ | |
1213 | esac ;; \ | |
1214 | esac; \ | |
1215 | if [ "$(srcdir)" = "." ] ; then \ | |
1216 | if [ "$(BUILD_SUBDIR)" != "." ] ; then \ | |
1217 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | |
1218 | if [ -f Makefile ]; then \ | |
1219 | if $(MAKE) distclean; then \ | |
1220 | true; \ | |
1221 | else \ | |
1222 | exit 1; \ | |
1223 | fi; \ | |
1224 | else \ | |
1225 | true; \ | |
1226 | fi; \ | |
1227 | else \ | |
1228 | exit 1; \ | |
1229 | fi; \ | |
1230 | else \ | |
1231 | true; \ | |
1232 | fi; \ | |
1233 | srcdiroption="--srcdir=."; \ | |
1234 | libsrcdir="."; \ | |
1235 | else \ | |
1236 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | |
1237 | libsrcdir="$$s/$${dir}"; \ | |
1238 | fi; \ | |
1239 | if [ -f $${libsrcdir}/configure ] ; then \ | |
1240 | rm -f no-such-file skip-this-dir; \ | |
1241 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ | |
1242 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1243 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | |
1244 | else \ | |
1245 | rm -f no-such-file skip-this-dir; \ | |
1246 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ | |
1247 | $(BUILD_CONFIGARGS) $${srcdiroption} \ | |
1248 | --with-build-subdir="$(BUILD_SUBDIR)"; \ | |
1249 | fi || exit 1; \ | |
1250 | if [ -f skip-this-dir ] ; then \ | |
1251 | sh skip-this-dir; \ | |
1252 | rm -f skip-this-dir; \ | |
1253 | cd ..; rmdir $${dir} || true; \ | |
1254 | else \ | |
1255 | true; \ | |
1256 | fi; \ | |
1257 | else \ | |
1258 | true; \ | |
1259 | fi; \ | |
1260 | else \ | |
1261 | true; \ | |
1262 | fi | |
1263 | ||
6599da04 JM |
1264 | # This rule is used to build the modules which use FLAGS_TO_PASS. To |
1265 | # build a target all-X means to cd to X and make all. | |
1266 | # | |
1267 | # all-gui, and all-libproc are handled specially because | |
1268 | # they are still experimental, and if they fail to build, that | |
1269 | # shouldn't stop "make all". | |
1270 | .PHONY: $(ALL_MODULES) all-gui all-libproc | |
1271 | $(ALL_MODULES) all-gui all-libproc: | |
1272 | @dir=`echo $@ | sed -e 's/all-//'`; \ | |
1273 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1274 | r=`${PWD}`; export r; \ |
1275 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1276 | $(SET_LIB_PATH) \ |
1277 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \ | |
1278 | else \ | |
1279 | true; \ | |
1280 | fi | |
1281 | ||
1282 | # These rules are used to check the modules which use FLAGS_TO_PASS. | |
1283 | # To build a target check-X means to cd to X and make check. Some | |
1284 | # modules are only tested in a native toolchain. | |
1285 | ||
1286 | .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES) | |
1287 | $(NATIVE_CHECK_MODULES): | |
759bfa90 | 1288 | @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ |
6599da04 JM |
1289 | dir=`echo $@ | sed -e 's/check-//'`; \ |
1290 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1291 | r=`${PWD}`; export r; \ |
1292 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1293 | $(SET_LIB_PATH) \ |
1294 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | |
1295 | else \ | |
1296 | true; \ | |
1297 | fi; \ | |
1298 | fi | |
1299 | ||
1300 | $(CROSS_CHECK_MODULES): | |
1301 | @dir=`echo $@ | sed -e 's/check-//'`; \ | |
1302 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1303 | r=`${PWD}`; export r; \ |
1304 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1305 | $(SET_LIB_PATH) \ |
1306 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \ | |
1307 | else \ | |
1308 | true; \ | |
1309 | fi | |
1310 | ||
1311 | # This rule is used to install the modules which use FLAGS_TO_PASS. | |
1312 | # To build a target install-X means to cd to X and make install. | |
1313 | .PHONY: $(INSTALL_MODULES) | |
1314 | $(INSTALL_MODULES): installdirs | |
1315 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1316 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1317 | r=`${PWD}`; export r; \ |
1318 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1319 | $(SET_LIB_PATH) \ |
1320 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | |
1321 | else \ | |
1322 | true; \ | |
1323 | fi | |
1324 | ||
1325 | # This rule is used to configure the modules which are built with the | |
1326 | # target tools. | |
1327 | .PHONY: $(CONFIGURE_TARGET_MODULES) | |
1328 | $(CONFIGURE_TARGET_MODULES): | |
1329 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | |
1330 | if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \ | |
1e6347d8 | 1331 | r=`${PWD}`; export r; \ |
6599da04 JM |
1332 | $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \ |
1333 | if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \ | |
1334 | if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \ | |
1335 | if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \ | |
1336 | rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \ | |
1337 | else \ | |
1338 | echo "Multilibs changed for $${dir}, reconfiguring"; \ | |
1339 | rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \ | |
1340 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | |
1341 | fi; \ | |
1342 | else \ | |
1343 | mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \ | |
1344 | fi; \ | |
1345 | fi; \ | |
1346 | fi; exit 0 # break command into two pieces | |
1347 | @dir=`echo $@ | sed -e 's/configure-target-//'`; \ | |
1348 | if [ ! -d $(TARGET_SUBDIR) ]; then \ | |
1349 | true; \ | |
1350 | elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1351 | true; \ | |
1352 | elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \ | |
1353 | if [ -d $(srcdir)/$${dir} ]; then \ | |
1354 | [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\ | |
1e6347d8 RO |
1355 | r=`${PWD}`; export r; \ |
1356 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1357 | $(SET_LIB_PATH) \ |
1358 | AR="$(AR_FOR_TARGET)"; export AR; \ | |
1359 | AS="$(AS_FOR_TARGET)"; export AS; \ | |
1360 | CC="$(CC_FOR_TARGET)"; export CC; \ | |
1361 | CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \ | |
1362 | CXX="$(CXX_FOR_TARGET)"; export CXX; \ | |
1363 | CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \ | |
85b99cbe | 1364 | GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \ |
6599da04 JM |
1365 | DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \ |
1366 | LD="$(LD_FOR_TARGET)"; export LD; \ | |
1367 | LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \ | |
1368 | NM="$(NM_FOR_TARGET)"; export NM; \ | |
1369 | RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \ | |
1370 | WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \ | |
1371 | echo Configuring in $(TARGET_SUBDIR)/$${dir}; \ | |
6e2d9a7a | 1372 | cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \ |
6599da04 | 1373 | case $(srcdir) in \ |
fc26516b | 1374 | /* | [A-Za-z]:[\\/]*) \ |
6599da04 JM |
1375 | topdir=$(srcdir) ;; \ |
1376 | *) \ | |
1377 | case "$(TARGET_SUBDIR)" in \ | |
1378 | .) topdir="../$(srcdir)" ;; \ | |
1379 | *) topdir="../../$(srcdir)" ;; \ | |
1380 | esac ;; \ | |
1381 | esac; \ | |
1382 | if [ "$(srcdir)" = "." ] ; then \ | |
1383 | if [ "$(TARGET_SUBDIR)" != "." ] ; then \ | |
1384 | if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \ | |
1385 | if [ -f Makefile ]; then \ | |
1386 | if $(MAKE) distclean; then \ | |
1387 | true; \ | |
1388 | else \ | |
1389 | exit 1; \ | |
1390 | fi; \ | |
1391 | else \ | |
1392 | true; \ | |
1393 | fi; \ | |
1394 | else \ | |
1395 | exit 1; \ | |
1396 | fi; \ | |
1397 | else \ | |
1398 | true; \ | |
1399 | fi; \ | |
1400 | srcdiroption="--srcdir=."; \ | |
1401 | libsrcdir="."; \ | |
1402 | else \ | |
1403 | srcdiroption="--srcdir=$${topdir}/$${dir}"; \ | |
1404 | libsrcdir="$$s/$${dir}"; \ | |
1405 | fi; \ | |
1406 | if [ -f $${libsrcdir}/configure ] ; then \ | |
71205e0b | 1407 | rm -f no-such-file skip-this-dir; \ |
601c6475 | 1408 | CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \ |
e490616e | 1409 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
6599da04 JM |
1410 | --with-target-subdir="$(TARGET_SUBDIR)"; \ |
1411 | else \ | |
71205e0b | 1412 | rm -f no-such-file skip-this-dir; \ |
601c6475 | 1413 | CONFIG_SITE=no-such-file $(SHELL) $$s/configure \ |
e490616e | 1414 | $(TARGET_CONFIGARGS) $${srcdiroption} \ |
6599da04 | 1415 | --with-target-subdir="$(TARGET_SUBDIR)"; \ |
6e2d9a7a | 1416 | fi || exit 1; \ |
71205e0b MH |
1417 | if [ -f skip-this-dir ] ; then \ |
1418 | sh skip-this-dir; \ | |
1419 | rm -f skip-this-dir; \ | |
1420 | cd ..; rmdir $${dir} || true; \ | |
1421 | else \ | |
1422 | true; \ | |
1423 | fi; \ | |
6599da04 JM |
1424 | else \ |
1425 | true; \ | |
1426 | fi; \ | |
1427 | else \ | |
1428 | true; \ | |
1429 | fi | |
1430 | ||
1431 | # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS. | |
1432 | # To build a target all-X means to cd to X and make all. | |
1433 | .PHONY: $(ALL_TARGET_MODULES) | |
1434 | $(ALL_TARGET_MODULES): | |
1435 | @dir=`echo $@ | sed -e 's/all-target-//'`; \ | |
1436 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1437 | r=`${PWD}`; export r; \ |
1438 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1439 | $(SET_LIB_PATH) \ |
a3406c06 AO |
1440 | (cd $(TARGET_SUBDIR)/$${dir}; \ |
1441 | $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \ | |
6599da04 JM |
1442 | else \ |
1443 | true; \ | |
1444 | fi | |
1445 | ||
1446 | # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS. | |
1447 | # To build a target install-X means to cd to X and make install. | |
1448 | .PHONY: $(CHECK_TARGET_MODULES) | |
1449 | $(CHECK_TARGET_MODULES): | |
1450 | @dir=`echo $@ | sed -e 's/check-target-//'`; \ | |
1451 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1452 | r=`${PWD}`; export r; \ |
1453 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1454 | $(SET_LIB_PATH) \ |
a3406c06 AO |
1455 | (cd $(TARGET_SUBDIR)/$${dir}; \ |
1456 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\ | |
6599da04 JM |
1457 | else \ |
1458 | true; \ | |
1459 | fi | |
1460 | ||
1461 | # This rule is used to install the modules which use | |
1462 | # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X | |
1463 | # and make install. | |
1464 | .PHONY: $(INSTALL_TARGET_MODULES) | |
1465 | $(INSTALL_TARGET_MODULES): installdirs | |
1466 | @dir=`echo $@ | sed -e 's/install-target-//'`; \ | |
1467 | if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1468 | r=`${PWD}`; export r; \ |
1469 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1470 | $(SET_LIB_PATH) \ |
1471 | (cd $(TARGET_SUBDIR)/$${dir}; \ | |
1472 | $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \ | |
1473 | else \ | |
1474 | true; \ | |
1475 | fi | |
1476 | ||
1477 | # This rule is used to build the modules which use X11_FLAGS_TO_PASS. | |
1478 | # To build a target all-X means to cd to X and make all. | |
1479 | .PHONY: $(ALL_X11_MODULES) | |
1480 | $(ALL_X11_MODULES): | |
1481 | @dir=`echo $@ | sed -e 's/all-//'`; \ | |
1482 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1483 | r=`${PWD}`; export r; \ |
1484 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1485 | $(SET_LIB_PATH) \ |
1486 | (cd $${dir}; \ | |
1487 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \ | |
1488 | else \ | |
1489 | true; \ | |
1490 | fi | |
1491 | ||
1492 | # This rule is used to check the modules which use X11_FLAGS_TO_PASS. | |
1493 | # To build a target check-X means to cd to X and make all. | |
1494 | .PHONY: $(CHECK_X11_MODULES) | |
1495 | $(CHECK_X11_MODULES): | |
1496 | @dir=`echo $@ | sed -e 's/check-//'`; \ | |
1497 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1498 | r=`${PWD}`; export r; \ |
1499 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1500 | $(SET_LIB_PATH) \ |
1501 | (cd $${dir}; \ | |
1502 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \ | |
1503 | else \ | |
1504 | true; \ | |
1505 | fi | |
1506 | ||
1507 | # This rule is used to install the modules which use X11_FLAGS_TO_PASS. | |
1508 | # To build a target install-X means to cd to X and make install. | |
1509 | .PHONY: $(INSTALL_X11_MODULES) | |
1510 | $(INSTALL_X11_MODULES): installdirs | |
1511 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1512 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1513 | r=`${PWD}`; export r; \ |
1514 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1515 | $(SET_LIB_PATH) \ |
1516 | (cd $${dir}; \ | |
1517 | $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \ | |
1518 | else \ | |
1519 | true; \ | |
1520 | fi | |
1521 | ||
1522 | # gcc is the only module which uses GCC_FLAGS_TO_PASS. | |
1523 | .PHONY: all-gcc | |
1524 | all-gcc: | |
1525 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1526 | r=`${PWD}`; export r; \ |
1527 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1528 | $(SET_LIB_PATH) \ |
1529 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \ | |
1530 | else \ | |
1531 | true; \ | |
1532 | fi | |
1533 | ||
ec20b1b9 JL |
1534 | # Building GCC uses some tools for rebuilding "source" files |
1535 | # like texinfo, bison/byacc, etc. So we must depend on those. | |
1536 | # | |
1537 | # While building GCC, it may be necessary to run various target | |
1538 | # programs like the assembler, linker, etc. So we depend on | |
1539 | # those too. | |
1540 | # | |
1541 | # In theory, on an SMP all those dependencies can be resolved | |
1542 | # in parallel. | |
1543 | # | |
f0983958 | 1544 | .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean |
4d73d07a | 1545 | bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap |
1e6347d8 RO |
1546 | @r=`${PWD}`; export r; \ |
1547 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
ec20b1b9 | 1548 | $(SET_LIB_PATH) \ |
339c9b00 | 1549 | echo "Bootstrapping the compiler"; \ |
3a4fee66 | 1550 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@ |
1e6347d8 RO |
1551 | @r=`${PWD}`; export r; \ |
1552 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
cc71c0ca | 1553 | case "$@" in \ |
f0983958 AO |
1554 | *bootstrap4-lean ) \ |
1555 | msg="Comparing stage3 and stage4 of the compiler"; \ | |
1556 | compare=compare3-lean ;; \ | |
cc71c0ca MH |
1557 | *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \ |
1558 | compare=compare3 ;; \ | |
1559 | *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1560 | compare=compare-lean ;; \ | |
1561 | * ) msg="Comparing stage2 and stage3 of the compiler"; \ | |
1562 | compare=compare ;; \ | |
1563 | esac; \ | |
ec20b1b9 | 1564 | $(SET_LIB_PATH) \ |
cc71c0ca | 1565 | echo "$$msg"; \ |
3a4fee66 | 1566 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare |
1e6347d8 RO |
1567 | @r=`${PWD}`; export r; \ |
1568 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
f6b58262 JW |
1569 | $(SET_LIB_PATH) \ |
1570 | echo "Building runtime libraries"; \ | |
a3406c06 | 1571 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all |
b1e3ddfd | 1572 | |
09f97c1e JL |
1573 | .PHONY: cross |
1574 | cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld | |
1e6347d8 RO |
1575 | @r=`${PWD}`; export r; \ |
1576 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
09f97c1e JL |
1577 | $(SET_LIB_PATH) \ |
1578 | echo "Building the C and C++ compiler"; \ | |
3a4fee66 | 1579 | cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" |
1e6347d8 RO |
1580 | @r=`${PWD}`; export r; \ |
1581 | s=`cd $(srcdir); ${PWD}` ; export s; \ | |
f6b58262 JW |
1582 | $(SET_LIB_PATH) \ |
1583 | echo "Building runtime libraries"; \ | |
a3406c06 AO |
1584 | $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \ |
1585 | LANGUAGES="c c++" all | |
09f97c1e | 1586 | |
6599da04 JM |
1587 | .PHONY: check-gcc |
1588 | check-gcc: | |
1589 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1590 | r=`${PWD}`; export r; \ |
1591 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1592 | $(SET_LIB_PATH) \ |
1593 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \ | |
1594 | else \ | |
1595 | true; \ | |
1596 | fi | |
1597 | ||
3d55d2f8 BK |
1598 | .PHONY: check-c++ |
1599 | check-c++: | |
f04885d3 | 1600 | @if [ -f ./gcc/Makefile ] ; then \ |
1e6347d8 RO |
1601 | r=`${PWD}`; export r; \ |
1602 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
f04885d3 BK |
1603 | $(SET_LIB_PATH) \ |
1604 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \ | |
91b54f7f | 1605 | $(MAKE) check-target-libstdc++-v3; \ |
f04885d3 BK |
1606 | else \ |
1607 | true; \ | |
1608 | fi | |
3d55d2f8 | 1609 | |
6599da04 JM |
1610 | .PHONY: install-gcc |
1611 | install-gcc: | |
1612 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1613 | r=`${PWD}`; export r; \ |
1614 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 | 1615 | $(SET_LIB_PATH) \ |
3cd730af | 1616 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \ |
6599da04 JM |
1617 | else \ |
1618 | true; \ | |
1619 | fi | |
1620 | ||
205cba53 JL |
1621 | .PHONY: install-gcc-cross |
1622 | install-gcc-cross: | |
1623 | @if [ -f ./gcc/Makefile ] ; then \ | |
1e6347d8 RO |
1624 | r=`${PWD}`; export r; \ |
1625 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
205cba53 | 1626 | $(SET_LIB_PATH) \ |
3cd730af | 1627 | (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \ |
205cba53 JL |
1628 | else \ |
1629 | true; \ | |
1630 | fi | |
6599da04 JM |
1631 | # EXPERIMENTAL STUFF |
1632 | # This rule is used to install the modules which use FLAGS_TO_PASS. | |
1633 | # To build a target install-X means to cd to X and make install. | |
1634 | .PHONY: install-dosrel | |
1635 | install-dosrel: installdirs info | |
1636 | @dir=`echo $@ | sed -e 's/install-//'`; \ | |
1637 | if [ -f ./$${dir}/Makefile ] ; then \ | |
1e6347d8 RO |
1638 | r=`${PWD}`; export r; \ |
1639 | s=`cd $(srcdir); ${PWD}`; export s; \ | |
6599da04 JM |
1640 | $(SET_LIB_PATH) \ |
1641 | (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \ | |
1642 | else \ | |
1643 | true; \ | |
1644 | fi | |
1645 | ||
1646 | install-dosrel-fake: | |
1647 | ||
c9a54638 AO |
1648 | ALL_GCC = all-gcc |
1649 | ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss | |
1650 | ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3 | |
6599da04 JM |
1651 | |
1652 | # This is a list of inter-dependencies among modules. | |
5d4a5ee6 | 1653 | all-ash: |
6599da04 | 1654 | all-autoconf: all-m4 all-texinfo |
5d4a5ee6 | 1655 | all-automake: all-m4 all-texinfo |
6599da04 | 1656 | all-bash: |
5d4a5ee6 JL |
1657 | all-bfd: all-libiberty all-intl |
1658 | all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl | |
6599da04 | 1659 | all-bison: all-texinfo |
97cf8285 | 1660 | configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads |
99d60508 | 1661 | all-target-boehm-gc: configure-target-boehm-gc |
6599da04 | 1662 | all-byacc: |
5d4a5ee6 | 1663 | all-bzip2: |
6599da04 JM |
1664 | all-db: |
1665 | all-dejagnu: all-tcl all-expect all-tk | |
1666 | all-diff: all-libiberty | |
6599da04 | 1667 | all-etc: |
6e2a4843 | 1668 | configure-target-examples: $(ALL_GCC_C) |
6599da04 JM |
1669 | all-target-examples: configure-target-examples |
1670 | all-expect: all-tcl all-tk | |
1671 | all-fileutils: all-libiberty | |
1672 | all-findutils: | |
1673 | all-find: | |
1674 | all-flex: all-libiberty all-bison all-byacc | |
5d4a5ee6 | 1675 | all-gas: all-libiberty all-opcodes all-bfd all-intl |
6599da04 | 1676 | all-gawk: |
3c809ba4 | 1677 | all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib |
4d73d07a | 1678 | all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib |
5d4a5ee6 | 1679 | GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui |
6599da04 | 1680 | all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK) |
5d4a5ee6 | 1681 | all-gettext: |
6599da04 | 1682 | all-gnuserv: |
7fddf9a9 | 1683 | configure-target-gperf: $(ALL_GCC_CXX) |
4d88a68a | 1684 | all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3 |
5d4a5ee6 | 1685 | all-gprof: all-libiberty all-bfd all-opcodes all-intl |
6599da04 | 1686 | all-grep: all-libiberty |
ba3292db | 1687 | all-gui: all-gdb all-libproc |
6599da04 JM |
1688 | all-guile: |
1689 | all-gzip: all-libiberty | |
1690 | all-hello: all-libiberty | |
1691 | all-indent: | |
5d4a5ee6 | 1692 | all-intl: |
e9667b3c | 1693 | all-itcl: all-tcl all-tk |
5d4a5ee6 | 1694 | all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl |
6599da04 JM |
1695 | configure-target-libgloss: $(ALL_GCC) |
1696 | all-target-libgloss: configure-target-libgloss configure-target-newlib | |
e9667b3c | 1697 | all-libgui: all-tcl all-tk all-itcl |
6599da04 | 1698 | all-libiberty: |
e490616e ZW |
1699 | |
1700 | all-build-libiberty: configure-build-libiberty | |
1701 | ||
6e2a4843 | 1702 | configure-target-libffi: $(ALL_GCC_C) |
aab0d19d | 1703 | all-target-libffi: configure-target-libffi |
97cf8285 | 1704 | configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi |
5db1f7ed | 1705 | all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi |
6e2a4843 AO |
1706 | configure-target-libstdc++-v3: $(ALL_GCC_C) |
1707 | all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty | |
5d4a5ee6 | 1708 | all-libtool: |
6e2a4843 AO |
1709 | configure-target-libf2c: $(ALL_GCC_C) |
1710 | all-target-libf2c: configure-target-libf2c all-target-libiberty | |
6e2a4843 AO |
1711 | configure-target-libobjc: $(ALL_GCC_C) |
1712 | all-target-libobjc: configure-target-libobjc all-target-libiberty | |
191de407 | 1713 | all-m4: all-libiberty all-texinfo |
6599da04 JM |
1714 | all-make: all-libiberty |
1715 | all-mmalloc: | |
1716 | configure-target-newlib: $(ALL_GCC) | |
6e2a4843 AO |
1717 | all-target-newlib: configure-target-newlib |
1718 | configure-target-libtermcap: $(ALL_GCC_C) | |
1719 | all-target-libtermcap: configure-target-libtermcap | |
3ab36f05 | 1720 | all-opcodes: all-bfd all-libiberty |
6599da04 JM |
1721 | all-patch: all-libiberty |
1722 | all-perl: | |
1723 | all-prms: all-libiberty | |
6e2a4843 | 1724 | configure-target-qthreads: $(ALL_GCC_C) |
99d60508 | 1725 | all-target-qthreads: configure-target-qthreads |
6599da04 JM |
1726 | all-rcs: |
1727 | all-readline: | |
1728 | all-recode: all-libiberty | |
1729 | all-sed: all-libiberty | |
1730 | all-send-pr: all-prms | |
1731 | all-shellutils: | |
3f19b439 | 1732 | all-sid: all-tcl all-tk |
3ab36f05 | 1733 | all-sim: all-libiberty all-bfd all-opcodes all-readline |
ab50d72b | 1734 | all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui |
6599da04 JM |
1735 | all-tar: all-libiberty |
1736 | all-tcl: | |
1737 | all-tclX: all-tcl all-tk | |
1738 | all-tk: all-tcl | |
1739 | all-texinfo: all-libiberty | |
1740 | all-textutils: | |
6599da04 | 1741 | all-time: |
e9667b3c | 1742 | all-tix: all-tcl all-tk |
6599da04 | 1743 | all-wdiff: |
6e2a4843 AO |
1744 | configure-target-winsup: $(ALL_GCC_C) |
1745 | all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup | |
6599da04 | 1746 | all-uudecode: all-libiberty |
99d60508 | 1747 | all-zip: |
4b92758a | 1748 | all-zlib: |
6e2a4843 | 1749 | configure-target-zlib: $(ALL_GCC_C) |
99d60508 | 1750 | all-target-zlib: configure-target-zlib |
b634ad42 | 1751 | all-fastjar: all-zlib all-libiberty |
5db1f7ed | 1752 | configure-target-fastjar: configure-target-zlib |
b634ad42 | 1753 | all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty |
6e2a4843 AO |
1754 | configure-target-libiberty: $(ALL_GCC_C) |
1755 | all-target-libiberty: configure-target-libiberty | |
6599da04 JM |
1756 | all-target: $(ALL_TARGET_MODULES) |
1757 | install-target: $(INSTALL_TARGET_MODULES) | |
d207ebef | 1758 | install-gdb: install-tcl install-tk install-itcl install-tix install-libgui |
3f19b439 | 1759 | install-sid: install-tcl install-tk |
6599da04 JM |
1760 | ### other supporting targets |
1761 | ||
1762 | MAKEDIRS= \ | |
b70b3534 FS |
1763 | $(DESTDIR)$(prefix) \ |
1764 | $(DESTDIR)$(exec_prefix) | |
6599da04 JM |
1765 | .PHONY: installdirs |
1766 | installdirs: mkinstalldirs | |
1767 | $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS) | |
1768 | ||
1769 | dir.info: do-install-info | |
1770 | if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \ | |
1771 | $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \ | |
1772 | mv -f dir.info.new dir.info ; \ | |
1773 | else true ; \ | |
1774 | fi | |
1775 | ||
1776 | dist: | |
1777 | @echo "Building a full distribution of this tree isn't done" | |
1778 | @echo "via 'make dist'. Check out the etc/ subdirectory" | |
1779 | ||
1780 | etags tags: TAGS | |
1781 | ||
1782 | # Right now this just builds TAGS in each subdirectory. emacs19 has the | |
1783 | # ability to use several tags files at once, so there is probably no need | |
1784 | # to combine them into one big TAGS file (like CVS 1.3 does). We could | |
1785 | # (if we felt like it) have this Makefile write a piece of elisp which | |
1786 | # the user could load to tell emacs19 where all the TAGS files we just | |
1787 | # built are. | |
1788 | TAGS: do-TAGS | |
1789 | ||
1790 | # with the gnu make, this is done automatically. | |
1791 | ||
6dd27861 | 1792 | Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger) |
6599da04 JM |
1793 | $(SHELL) ./config.status |
1794 | ||
1795 | # | |
1796 | # Support for building net releases | |
1797 | ||
1798 | # Files in devo used in any net release. | |
1799 | # ChangeLog omitted because it may refer to files which are not in this | |
1800 | # distribution (perhaps it would be better to include it anyway). | |
1801 | DEVO_SUPPORT= README Makefile.in configure configure.in \ | |
52d4e5b7 | 1802 | config.guess config.if config.sub config move-if-change \ |
6599da04 JM |
1803 | mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \ |
1804 | COPYING COPYING.LIB install-sh config-ml.in symlink-tree \ | |
de710532 AO |
1805 | mkinstalldirs ltconfig ltmain.sh missing ylwrap \ |
1806 | libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh | |
6599da04 JM |
1807 | |
1808 | # Files in devo/etc used in any net release. | |
1809 | # ChangeLog omitted because it may refer to files which are not in this | |
1810 | # distribution (perhaps it would be better to include it anyway). | |
1811 | ETC_SUPPORT= Makefile.in configure configure.in standards.texi \ | |
ab50d72b DD |
1812 | make-stds.texi standards.info* configure.texi configure.info* \ |
1813 | configbuild.* configdev.* | |
1814 | ||
6599da04 JM |
1815 | |
1816 | # When you use `make setup-dirs' or `make taz' you should always redefine | |
1817 | # this macro. | |
1818 | SUPPORT_FILES = list-of-support-files-for-tool-in-question | |
1819 | ||
d207ebef JM |
1820 | # NOTE: No double quotes in the below. It is used within shell script |
1821 | # as VER="$(VER)" | |
ab50d72b DD |
1822 | VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \ |
1823 | sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ | |
1824 | elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ | |
d207ebef | 1825 | sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ |
ab50d72b DD |
1826 | elif test -f $(TOOL)/version.in; then \ |
1827 | head -1 $(TOOL)/version.in; \ | |
1828 | elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \ | |
d207ebef | 1829 | sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ |
ab50d72b DD |
1830 | else \ |
1831 | echo VERSION; \ | |
d207ebef JM |
1832 | fi` |
1833 | PACKAGE = $(TOOL) | |
6599da04 | 1834 | |
d207ebef JM |
1835 | .PHONY: taz |
1836 | taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | |
1837 | $(MAKE) -f Makefile.in do-proto-toplev \ | |
1838 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1839 | MD5PROG="$(MD5PROG)" \ | |
1840 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1841 | $(MAKE) -f Makefile.in do-md5sum \ | |
1842 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1843 | MD5PROG="$(MD5PROG)" \ | |
1844 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
ab50d72b DD |
1845 | $(MAKE) -f Makefile.in do-tar \ |
1846 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1847 | MD5PROG="$(MD5PROG)" \ | |
1848 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1849 | $(MAKE) -f Makefile.in do-bz2 \ | |
d207ebef JM |
1850 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ |
1851 | MD5PROG="$(MD5PROG)" \ | |
1852 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1853 | ||
ab50d72b DD |
1854 | .PHONY: gdb-tar |
1855 | gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | |
d207ebef JM |
1856 | $(MAKE) -f Makefile.in do-proto-toplev \ |
1857 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1858 | MD5PROG="$(MD5PROG)" \ | |
1859 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1860 | $(MAKE) -f Makefile.in do-md5sum \ | |
1861 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1862 | MD5PROG="$(MD5PROG)" \ | |
1863 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1864 | $(MAKE) -f Makefile.in do-djunpack \ | |
1865 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1866 | MD5PROG="$(MD5PROG)" \ | |
1867 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
ab50d72b DD |
1868 | $(MAKE) -f Makefile.in do-tar \ |
1869 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1870 | MD5PROG="$(MD5PROG)" \ | |
1871 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1872 | ||
1873 | .PHONY: gdb-taz | |
1874 | gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | |
1875 | $(MAKE) -f Makefile.in gdb-tar \ | |
1876 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ | |
1877 | MD5PROG="$(MD5PROG)" \ | |
1878 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1879 | $(MAKE) -f Makefile.in do-bz2 \ | |
d207ebef JM |
1880 | TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \ |
1881 | MD5PROG="$(MD5PROG)" \ | |
1882 | SUPPORT_FILES="$(SUPPORT_FILES)" | |
1883 | ||
1884 | .PHONY: do-proto-toplev | |
1885 | do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex | |
1886 | echo "==> Making $(PACKAGE)-$(VER)/" | |
1887 | # Take out texinfo from a few places. | |
6599da04 JM |
1888 | sed -e '/^all\.normal: /s/\all-texinfo //' \ |
1889 | -e '/^ install-texinfo /d' \ | |
1890 | <Makefile.in >tmp | |
1891 | mv -f tmp Makefile.in | |
1892 | # | |
1893 | ./configure sun4 | |
1894 | [ -z "$(CONFIGURE_TARGET_MODULES)" ] \ | |
6e2a4843 AO |
1895 | || $(MAKE) $(CONFIGURE_TARGET_MODULES) \ |
1896 | ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \ | |
6599da04 JM |
1897 | CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)" |
1898 | # Make links, and run "make diststuff" or "make info" when needed. | |
1899 | rm -rf proto-toplev ; mkdir proto-toplev | |
1900 | set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \ | |
1901 | for d in $$dirs ; do \ | |
1902 | if [ -d $$d ]; then \ | |
1903 | if [ ! -f $$d/Makefile ] ; then true ; \ | |
1904 | elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \ | |
1905 | (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \ | |
1906 | elif grep '^info:' $$d/Makefile >/dev/null ; then \ | |
1907 | (cd $$d ; $(MAKE) info ) || exit 1 ; \ | |
1908 | fi ; \ | |
1909 | if [ -d $$d/proto-$$d.dir ]; then \ | |
1910 | ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \ | |
1911 | else \ | |
1912 | ln -s ../$$d proto-toplev/$$d ; \ | |
1913 | fi ; \ | |
1914 | else ln -s ../$$d proto-toplev/$$d ; fi ; \ | |
1915 | done | |
3a4fee66 | 1916 | cd etc && $(MAKE) info |
6599da04 JM |
1917 | $(MAKE) distclean |
1918 | # | |
1919 | mkdir proto-toplev/etc | |
1920 | (cd proto-toplev/etc; \ | |
1921 | for i in $(ETC_SUPPORT); do \ | |
1922 | ln -s ../../etc/$$i . ; \ | |
1923 | done) | |
1924 | # | |
1925 | # Take out texinfo from configurable dirs | |
1926 | rm proto-toplev/configure.in | |
1927 | sed -e '/^host_tools=/s/texinfo //' \ | |
1928 | <configure.in >proto-toplev/configure.in | |
1929 | # | |
1930 | mkdir proto-toplev/texinfo | |
1931 | ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/ | |
6599da04 JM |
1932 | if test -r texinfo/util/tex3patch ; then \ |
1933 | mkdir proto-toplev/texinfo/util && \ | |
1934 | ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \ | |
1935 | else true; fi | |
5d4a5ee6 | 1936 | chmod -R og=u . || chmod og=u `find . -print` |
d207ebef | 1937 | # |
ab50d72b DD |
1938 | # Create .gmo files from .po files. |
1939 | for f in `find . -name '*.po' -type f -print`; do \ | |
1940 | msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \ | |
1941 | done | |
1942 | # | |
d207ebef JM |
1943 | -rm -f $(PACKAGE)-$(VER) |
1944 | ln -s proto-toplev $(PACKAGE)-$(VER) | |
1945 | ||
ab50d72b DD |
1946 | .PHONY: do-tar |
1947 | do-tar: | |
1948 | echo "==> Making $(PACKAGE)-$(VER).tar" | |
1949 | -rm -f $(PACKAGE)-$(VER).tar | |
d207ebef JM |
1950 | find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \ |
1951 | | tar cTfh - $(PACKAGE)-$(VER).tar | |
ab50d72b DD |
1952 | |
1953 | .PHONY: do-bz2 | |
1954 | do-bz2: | |
1955 | echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2" | |
1956 | -rm -f $(PACKAGE)-$(VER).tar.bz2 | |
d207ebef JM |
1957 | $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar |
1958 | ||
1959 | .PHONY: do-md5sum | |
1960 | do-md5sum: | |
1961 | echo "==> Adding md5 checksum to top-level directory" | |
1962 | cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \ | |
1963 | | xargs $(MD5PROG) > ../md5.sum | |
1964 | mv md5.sum proto-toplev | |
1965 | ||
1966 | .PHONY: do-djunpack | |
1967 | do-djunpack: | |
1968 | echo "==> Adding updated djunpack.bat to top-level directory" | |
1969 | echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/' | |
1970 | sed < djunpack.bat > djunpack.new \ | |
1971 | -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/' | |
1972 | mv djunpack.new djunpack.bat | |
1973 | -rm -f proto-toplev/djunpack.bat | |
1974 | ln -s ../djunpack.bat proto-toplev/djunpack.bat | |
1975 | ||
1976 | TEXINFO_SUPPORT= texinfo/texinfo.tex | |
6599da04 JM |
1977 | DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT) |
1978 | ||
d207ebef JM |
1979 | .PHONY: gas.tar.bz2 |
1980 | GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep | |
1981 | gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas | |
6599da04 | 1982 | $(MAKE) -f Makefile.in taz TOOL=gas \ |
d207ebef | 1983 | MD5PROG="$(MD5PROG)" \ |
6599da04 JM |
1984 | SUPPORT_FILES="$(GAS_SUPPORT_DIRS)" |
1985 | ||
1986 | # The FSF "binutils" release includes gprof and ld. | |
d207ebef JM |
1987 | .PHONY: binutils.tar.bz2 |
1988 | BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep | |
1989 | binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils | |
6599da04 | 1990 | $(MAKE) -f Makefile.in taz TOOL=binutils \ |
d207ebef JM |
1991 | MD5PROG="$(MD5PROG)" \ |
1992 | SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)" | |
6599da04 | 1993 | |
d207ebef | 1994 | .PHONY: gas+binutils.tar.bz2 |
6599da04 | 1995 | GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof |
d207ebef | 1996 | gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas |
6599da04 | 1997 | $(MAKE) -f Makefile.in taz TOOL=gas \ |
d207ebef JM |
1998 | MD5PROG="$(MD5PROG)" \ |
1999 | SUPPORT_FILES="$(GASB_SUPPORT_DIRS)" | |
6599da04 | 2000 | |
6599da04 | 2001 | GNATS_SUPPORT_DIRS=include libiberty send-pr |
d207ebef | 2002 | gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats |
6599da04 | 2003 | $(MAKE) -f Makefile.in taz TOOL=gnats \ |
d207ebef | 2004 | MD5PROG="$(MD5PROG)" \ |
6599da04 JM |
2005 | SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)" |
2006 | ||
d207ebef | 2007 | .PHONY: gdb.tar.bz2 |
5d4a5ee6 | 2008 | GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl |
d207ebef JM |
2009 | gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb |
2010 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \ | |
2011 | MD5PROG="$(MD5PROG)" \ | |
2012 | SUPPORT_FILES="$(GDB_SUPPORT_DIRS)" | |
ab50d72b DD |
2013 | .PHONY: gdb.tar |
2014 | gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb | |
2015 | $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \ | |
2016 | MD5PROG="$(MD5PROG)" \ | |
2017 | SUPPORT_FILES="$(GDB_SUPPORT_DIRS)" | |
d207ebef | 2018 | |
d207ebef | 2019 | DEJAGNU_SUPPORT_DIRS= tcl expect libiberty |
ab50d72b | 2020 | .PHONY: dejagnu.tar.bz2 |
d207ebef JM |
2021 | dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu |
2022 | $(MAKE) -f Makefile.in taz TOOL=dejagnu \ | |
2023 | MD5PROG="$(MD5PROG)" \ | |
2024 | SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)" | |
2025 | ||
2026 | .PHONY: gdb+dejagnu.tar.bz2 | |
2027 | GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu | |
2028 | gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb | |
2029 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \ | |
2030 | MD5PROG="$(MD5PROG)" \ | |
2031 | SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)" | |
ab50d72b DD |
2032 | .PHONY: gdb+dejagnu.tar |
2033 | gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb | |
2034 | $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \ | |
2035 | MD5PROG="$(MD5PROG)" \ | |
2036 | SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)" | |
d207ebef JM |
2037 | |
2038 | .PHONY: insight.tar.bz2 | |
2039 | INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui | |
2040 | insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb | |
2041 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \ | |
2042 | MD5PROG="$(MD5PROG)" \ | |
2043 | SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)" | |
ab50d72b DD |
2044 | .PHONY: insight.tar |
2045 | insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb | |
2046 | $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \ | |
2047 | MD5PROG="$(MD5PROG)" \ | |
2048 | SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)" | |
d207ebef JM |
2049 | |
2050 | .PHONY: insight+dejagnu.tar.bz2 | |
2051 | INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu | |
2052 | insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb | |
2053 | $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \ | |
2054 | MD5PROG="$(MD5PROG)" \ | |
2055 | SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)" | |
ab50d72b DD |
2056 | .PHONY: insight+dejagnu.tar |
2057 | insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb | |
2058 | $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \ | |
2059 | MD5PROG="$(MD5PROG)" \ | |
2060 | SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)" | |
d207ebef JM |
2061 | |
2062 | .PHONY: newlib.tar.bz2 | |
6599da04 JM |
2063 | NEWLIB_SUPPORT_DIRS=libgloss |
2064 | # taz configures for the sun4 target which won't configure newlib. | |
2065 | # We need newlib configured so that the .info files are made. | |
2066 | # Unfortunately, it is not enough to just configure newlib separately: | |
2067 | # taz will build the .info files but since SUBDIRS won't contain newlib, | |
2068 | # distclean won't be run (leaving Makefile, config.status, and the tmp files | |
2069 | # used in building the .info files, eg: *.def, *.ref). | |
2070 | # The problem isn't solvable however without a lot of extra work because | |
2071 | # target libraries are built in subdir $(target_alias) which gets nuked during | |
2072 | # the make distclean. For now punt on the issue of shipping newlib info files | |
2073 | # with newlib net releases and wait for a day when some native target (sun4?) | |
2074 | # supports newlib (if only minimally). | |
d207ebef | 2075 | newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib |
6599da04 | 2076 | $(MAKE) -f Makefile.in taz TOOL=newlib \ |
d207ebef | 2077 | MD5PROG="$(MD5PROG)" \ |
6599da04 JM |
2078 | SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \ |
2079 | DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib | |
2080 | ||
2081 | .NOEXPORT: | |
2082 | MAKEOVERRIDES= | |
2083 | ||
6599da04 | 2084 | # end of Makefile.in |