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