]> gcc.gnu.org Git - gcc.git/blame - Makefile.in
-mtraceback is not supported.
[gcc.git] / Makefile.in
CommitLineData
6599da04
JM
1#
2# Makefile for directory with subdirs to build.
f75778a8 3# Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation
6599da04
JM
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18#
19
20srcdir = .
21
22prefix = /usr/local
23
24exec_prefix = $(prefix)
25bindir = $(exec_prefix)/bin
26libdir = $(exec_prefix)/lib
27tooldir = $(exec_prefix)/$(target)
28
29program_transform_name =
30
31datadir = $(prefix)/share
32mandir = $(prefix)/man
33man1dir = $(mandir)/man1
34man2dir = $(mandir)/man2
35man3dir = $(mandir)/man3
36man4dir = $(mandir)/man4
37man5dir = $(mandir)/man5
38man6dir = $(mandir)/man6
39man7dir = $(mandir)/man7
40man8dir = $(mandir)/man8
41man9dir = $(mandir)/man9
42infodir = $(prefix)/info
43includedir = $(prefix)/include
fe2fa3c4
MH
44# Directory in which the compiler finds executables, libraries, etc.
45libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
6599da04
JM
46GDB_NLM_DEPS =
47
48SHELL = /bin/sh
49
50# INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
51# cygwin32 host.
52INSTALL_PROGRAM_ARGS =
53
54INSTALL = $(SHELL) $$s/install-sh -c
55INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
56INSTALL_SCRIPT = $(INSTALL)
57INSTALL_DATA = $(INSTALL) -m 644
58
59INSTALL_DOSREL = install-dosrel-fake
60
61AS = as
62AR = ar
63AR_FLAGS = rc
64CC = cc
65
66# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
67# here so that they can be overridden by Makefile fragments.
68HOST_CC = $(CC_FOR_BUILD)
69HOST_PREFIX =
70HOST_PREFIX_1 = loser-
71
72# These flag values are normally overridden by the configure script.
73CFLAGS = -g
74CXXFLAGS = -g -O2
75
76LIBCFLAGS = $(CFLAGS)
77CFLAGS_FOR_TARGET = $(CFLAGS)
78LDFLAGS_FOR_TARGET =
79LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
80PICFLAG =
81PICFLAG_FOR_TARGET =
82
83CXX = c++
84
85# Use -O2 to stress test the compiler.
86LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
87CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
88LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
89
90RANLIB = ranlib
91
92DLLTOOL = dlltool
93WINDRES = windres
94
95NM = nm
96
97LD = ld
98
99# Not plain GZIP, since gzip looks there for extra command-line options.
100GZIPPROG = gzip
101
102# These values are substituted by configure.
103DEFAULT_YACC = yacc
104DEFAULT_LEX = lex
3a35dcc4 105DEFAULT_M4 = m4
6599da04
JM
106
107BISON = `if [ -f $$r/bison/bison ] ; then \
108 echo $$r/bison/bison -L $$s/bison/ ; \
109 else \
110 echo bison ; \
111 fi`
112
113YACC = `if [ -f $$r/bison/bison ] ; then \
114 echo $$r/bison/bison -y -L $$s/bison/ ; \
115 elif [ -f $$r/byacc/byacc ] ; then \
116 echo $$r/byacc/byacc ; \
117 else \
118 echo ${DEFAULT_YACC} ; \
119 fi`
120
121LEX = `if [ -f $$r/flex/flex ] ; \
122 then echo $$r/flex/flex ; \
123 else echo ${DEFAULT_LEX} ; fi`
124
125M4 = `if [ -f $$r/m4/m4 ] ; \
126 then echo $$r/m4/m4 ; \
3a35dcc4 127 else echo ${DEFAULT_M4} ; fi`
6599da04
JM
128
129MAKEINFO = `if [ -f $$r/texinfo/makeinfo/Makefile ] ; \
130 then echo $$r/texinfo/makeinfo/makeinfo ; \
131 else echo makeinfo ; fi`
132
133# This just becomes part of the MAKEINFO definition passed down to
134# sub-makes. It lets flags be given on the command line while still
135# using the makeinfo from the object tree.
136MAKEINFOFLAGS =
137
138EXPECT = `if [ -f $$r/expect/expect ] ; \
139 then echo $$r/expect/expect ; \
140 else echo expect ; fi`
141
142RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
143 then echo $$s/dejagnu/runtest ; \
144 else echo runtest ; fi`
145
146
147# compilers to use to create programs which must be run in the build
148# environment.
149CC_FOR_BUILD = $(CC)
150CXX_FOR_BUILD = $(CXX)
151
152SUBDIRS = "this is set via configure, don't edit this"
153OTHERS =
154
155# This is set by the configure script to the list of directories which
156# should be built using the target tools.
8821a725 157TARGET_CONFIGDIRS = libiberty libgloss newlib libio librx libstdc++ libg++ libf2c winsup
6599da04
JM
158
159# Target libraries are put under this directory:
160# Changed by configure to $(target_alias) if cross.
161TARGET_SUBDIR = .
162
163# This is set by the configure script to the arguments passed to configure.
164CONFIG_ARGUMENTS =
165
166# This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
167# was used.
168SET_LIB_PATH =
169
170# This is the name of the environment variable used for the path to
171# the libraries. This may be changed by configure.in.
172RPATH_ENVVAR = LD_LIBRARY_PATH
173
174# configure.in sets SET_LIB_PATH to this if --enable-shared was used.
175REALLY_SET_LIB_PATH = \
176 $(RPATH_ENVVAR)=$$r/bfd:$$r/opcodes:$$$(RPATH_ENVVAR); \
177 export $(RPATH_ENVVAR);
178
179ALL = all.normal
180INSTALL_TARGET = installdirs \
96b0f1fc 181 install-gcc \
6599da04
JM
182 $(INSTALL_MODULES) \
183 $(INSTALL_TARGET_MODULES) \
184 $(INSTALL_X11_MODULES) \
6599da04
JM
185 $(INSTALL_DOSREL)
186
205cba53
JL
187INSTALL_TARGET_CROSS = installdirs \
188 install-gcc-cross \
189 $(INSTALL_MODULES) \
190 $(INSTALL_TARGET_MODULES) \
191 $(INSTALL_X11_MODULES) \
192 $(INSTALL_DOSREL)
6599da04
JM
193
194CC_FOR_TARGET = ` \
195 if [ -f $$r/gcc/xgcc ] ; then \
196 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
197 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
84756916 198 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
6599da04
JM
199 else \
200 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
201 fi; \
202 else \
203 echo $$r/gcc/xgcc -B$$r/gcc/; \
204 fi; \
205 else \
206 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
207 echo $(CC); \
208 else \
209 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
210 fi; \
211 fi`
212
213# If CC_FOR_TARGET is not overriden on the command line, then this
214# variable is passed down to the gcc Makefile, where it is used to
215# build libgcc2.a. We define it here so that it can itself be
216# overridden on the command line.
217GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
218
219
220CXX_FOR_TARGET = ` \
221 if [ -f $$r/gcc/xgcc ] ; then \
222 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
223 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
84756916 224 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
6599da04
JM
225 else \
226 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
227 fi; \
228 else \
229 echo $$r/gcc/xgcc -B$$r/gcc/; \
230 fi; \
231 else \
232 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
233 echo $(CXX); \
234 else \
235 t='$(program_transform_name)'; echo c++ | sed -e 's/x/x/' $$t; \
236 fi; \
237 fi`
238
239AS_FOR_TARGET = ` \
240 if [ -f $$r/gas/as-new ] ; then \
241 echo $$r/gas/as-new ; \
242 else \
243 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
244 echo $(AS); \
245 else \
246 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
247 fi; \
248 fi`
249
250LD_FOR_TARGET = ` \
251 if [ -f $$r/ld/ld-new ] ; then \
252 echo $$r/ld/ld-new ; \
253 else \
254 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
255 echo $(LD); \
256 else \
257 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
258 fi; \
259 fi`
260
261DLLTOOL_FOR_TARGET = ` \
262 if [ -f $$r/binutils/dlltool ] ; then \
263 echo $$r/binutils/dlltool ; \
264 else \
265 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
266 echo $(DLLTOOL); \
267 else \
268 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
269 fi; \
270 fi`
271
272WINDRES_FOR_TARGET = ` \
273 if [ -f $$r/binutils/windres ] ; then \
274 echo $$r/binutils/windres ; \
275 else \
276 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
277 echo $(WINDRES); \
278 else \
279 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
280 fi; \
281 fi`
282
283AR_FOR_TARGET = ` \
284 if [ -f $$r/binutils/ar ] ; then \
285 echo $$r/binutils/ar ; \
286 else \
287 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
288 echo $(AR); \
289 else \
290 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
291 fi; \
292 fi`
293
294RANLIB_FOR_TARGET = ` \
295 if [ -f $$r/binutils/ranlib ] ; then \
296 echo $$r/binutils/ranlib ; \
297 else \
298 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
299 echo $(RANLIB); \
300 else \
301 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
302 fi; \
303 fi`
304
305NM_FOR_TARGET = ` \
306 if [ -f $$r/binutils/nm-new ] ; then \
307 echo $$r/binutils/nm-new ; \
308 else \
309 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
310 echo $(NM); \
311 else \
312 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
313 fi; \
314 fi`
315
316#### host and target specific makefile fragments come in here.
317###
318
319# Flags to pass down to all sub-makes.
320# Please keep these in alphabetical order.
321BASE_FLAGS_TO_PASS = \
322 "AR_FLAGS=$(AR_FLAGS)" \
323 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
324 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
325 "BISON=$(BISON)" \
326 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
327 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
328 "CFLAGS=$(CFLAGS)" \
329 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
330 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
331 "CXXFLAGS=$(CXXFLAGS)" \
332 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
333 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
334 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
335 "INSTALL=$(INSTALL)" \
336 "INSTALL_DATA=$(INSTALL_DATA)" \
337 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
338 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
339 "LDFLAGS=$(LDFLAGS)" \
340 "LEX=$(LEX)" \
341 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
342 "LIBCFLAGS=$(LIBCFLAGS)" \
343 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
344 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
345 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
346 "M4=$(M4)" \
347 "MAKE=$(MAKE)" \
348 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
349 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
6599da04
JM
350 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
351 "SHELL=$(SHELL)" \
352 "EXPECT=$(EXPECT)" \
353 "RUNTEST=$(RUNTEST)" \
354 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
81241b5e 355 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
6599da04
JM
356 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
357 "YACC=$(YACC)" \
358 "exec_prefix=$(exec_prefix)" \
359 "prefix=$(prefix)" \
d0a8352c 360 "tooldir=$(tooldir)" \
fe2fa3c4
MH
361 "gxx_include_dir=$(gxx_include_dir)" \
362 "gcc_version=$(gcc_version)" \
6dd27861 363 "gcc_version_trigger=$(gcc_version_trigger)" \
fe2fa3c4
MH
364 "target_alias=$(target_alias)" \
365 "libsubdir=$(libsubdir)"
6599da04
JM
366
367# Flags to pass down to most sub-makes, in which we're building with
368# the host environment.
369# If any variables are added here, they must be added to do-*, below.
370EXTRA_HOST_FLAGS = \
371 'AR=$(AR)' \
372 'AS=$(AS)' \
373 'CC=$(CC)' \
374 'CXX=$(CXX)' \
375 'DLLTOOL=$(DLLTOOL)' \
376 'LD=$(LD)' \
377 'NM=$(NM)' \
378 'RANLIB=$(RANLIB)' \
379 'WINDRES=$(WINDRES)'
380
381FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
382
383# Flags that are concerned with the location of the X11 include files
384# and library files
385#
386# NOTE: until the top-level is getting the values via autoconf, it only
387# causes problems to have this top-level Makefile overriding the autoconf-set
388# values in child directories. Only variables that don't conflict with
389# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
390#
391X11_FLAGS_TO_PASS = \
392 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
393 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
394
395# Flags to pass down to makes which are built with the target environment.
396# The double $ decreases the length of the command line; the variables
397# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
398# If any variables are added here, they must be added to do-*, below.
399EXTRA_TARGET_FLAGS = \
400 'AR=$$(AR_FOR_TARGET)' \
401 'AS=$$(AS_FOR_TARGET)' \
402 'CC=$$(CC_FOR_TARGET)' \
403 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
404 'CXX=$$(CXX_FOR_TARGET)' \
405 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
406 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
407 'LD=$$(LD_FOR_TARGET)' \
408 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
409 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
410 'NM=$$(NM_FOR_TARGET)' \
6599da04
JM
411 'RANLIB=$$(RANLIB_FOR_TARGET)' \
412 'WINDRES=$$(WINDRES_FOR_TARGET)'
413
414TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
415
416# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
417# unfortunately needs the native compiler and the target ar and
418# ranlib.
419# If any variables are added here, they must be added to do-*, below.
420# The HOST_* variables are a special case, which are used for the gcc
421# cross-building scheme.
422EXTRA_GCC_FLAGS = \
423 'AR=$$(AR_FOR_TARGET)' \
424 'AS=$(AS)' \
425 'CC=$(CC)' \
426 'CXX=$(CXX)' \
427 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
428 'HOST_CC=$(CC_FOR_BUILD)' \
429 'HOST_PREFIX=$(HOST_PREFIX)' \
430 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
431 'NM=$(NM)' \
432 'RANLIB=$$(RANLIB_FOR_TARGET)' \
433 'WINDRES=$$(WINDRES_FOR_TARGET)' \
434 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
435 "`if test x'$(LANGUAGES)' != x; then echo 'LANGUAGES=$(LANGUAGES)'; else echo 'XFOO=bar'; fi`" \
436 "`if test x'$(STMP_FIXPROTO)' != x; then echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)'; else echo 'XFOO=bar'; fi`" \
437 "`if test x'$(LIMITS_H_TEST)' != x; then echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)'; else echo 'XFOO=bar'; fi`" \
438 "`if test x'$(LIBGCC1_TEST)' != x; then echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)'; else echo 'XFOO=bar'; fi`" \
439 "`if test x'$(LIBGCC2_CFLAGS)' != x; then echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
440 "`if test x'$(LIBGCC2_DEBUG_CFLAGS)' != x; then echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
441 "`if test x'$(LIBGCC2_INCLUDES)' != x; then echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)'; else echo 'XFOO=bar'; fi`" \
442 "`if test x'$(ENQUIRE)' != x; then echo 'ENQUIRE=$(ENQUIRE)'; else echo 'XFOO=bar'; fi`" \
443 "`if test x'$(BOOT_CFLAGS)' != x; then echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)'; else echo 'XFOO=bar'; fi`"
444
445GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
446
447# This is a list of the targets for all of the modules which are compiled
448# using $(FLAGS_TO_PASS).
449ALL_MODULES = \
450 all-apache \
451 all-autoconf \
452 all-automake \
453 all-bash \
454 all-bfd \
455 all-binutils \
456 all-bison \
457 all-byacc \
458 all-cvs \
459 all-db \
460 all-dejagnu \
461 all-diff \
462 all-dosutils \
463 all-etc \
464 all-fileutils \
465 all-findutils \
466 all-find \
467 all-flex \
468 all-gas \
469 all-gawk \
470 all-gnuserv \
471 all-gprof \
472 all-grep \
473 all-grez \
474 all-gzip \
475 all-hello \
476 all-indent \
477 all-inet \
478 all-ispell \
479 all-itcl \
480 all-ld \
481 all-libiberty \
482 all-m4 \
483 all-make \
484 all-mmalloc \
485 all-opcodes \
486 all-patch \
487 all-perl \
488 all-prms \
489 all-rcs \
490 all-readline \
491 all-release \
492 all-recode \
493 all-sed \
494 all-send-pr \
495 all-shellutils \
496 all-sim \
497 all-sn \
498 all-tar \
499 all-tcl \
500 all-texinfo \
501 all-textutils \
502 all-tgas \
503 all-time \
504 all-uudecode \
505 all-wdiff
506
507# This is a list of the check targets for all of the modules which are
508# compiled using $(FLAGS_TO_PASS).
509#
510# The list is in two parts. The first lists those tools which
511# are tested as part of the host's native tool-chain, and not
512# tested in a cross configuration.
513NATIVE_CHECK_MODULES = \
514 check-bison \
515 check-byacc \
516 check-flex
517
518CROSS_CHECK_MODULES = \
519 check-apache \
520 check-autoconf \
521 check-automake \
522 check-bash \
523 check-bfd \
524 check-binutils \
525 check-cvs \
526 check-db \
527 check-dejagnu \
528 check-diff \
529 check-etc \
530 check-fileutils \
531 check-findutils \
532 check-find \
533 check-gas \
534 check-gawk \
535 check-gnuserv \
536 check-gprof \
537 check-grep \
538 check-gzip \
539 check-hello \
540 check-indent \
541 check-inet \
542 check-ispell \
543 check-itcl \
544 check-ld \
545 check-libiberty \
546 check-m4 \
547 check-make \
548 check-mmcheckoc \
549 check-opcodes \
550 check-patch \
551 check-perl \
552 check-prms \
553 check-rcs \
554 check-readline \
555 check-recode \
556 check-sed \
557 check-send-pr \
558 check-shellutils \
559 check-sn \
560 check-sim \
561 check-tar \
562 check-tcl \
563 check-texinfo \
564 check-textutils \
565 check-tgas \
566 check-time \
567 check-uudecode \
568 check-wdiff
569
570CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
571
572# This is a list of the install targets for all of the modules which are
573# compiled using $(FLAGS_TO_PASS).
574# We put install-opcodes before install-binutils because the installed
575# binutils might be on PATH, and they might need the shared opcodes
576# library.
577INSTALL_MODULES = \
578 install-apache \
579 install-autoconf \
580 install-automake \
581 install-bash \
582 install-bfd \
583 install-opcodes \
584 install-binutils \
585 install-bison \
586 install-byacc \
587 install-cvs \
588 install-db \
589 install-dejagnu \
590 install-diff \
591 install-dosutils \
592 install-etc \
593 install-fileutils \
594 install-findutils \
595 install-find \
596 install-flex \
597 install-gas \
598 install-gawk \
599 install-gnuserv \
600 install-gprof \
601 install-grep \
602 install-grez \
603 install-gzip \
604 install-hello \
605 install-indent \
606 install-inet \
607 install-ispell \
608 install-itcl \
609 install-ld \
610 install-libiberty \
611 install-m4 \
612 install-make \
613 install-mmalloc \
614 install-patch \
615 install-perl \
616 install-prms \
617 install-rcs \
618 install-readline \
619 install-recode \
620 install-sed \
621 install-send-pr \
622 install-shellutils \
623 install-sim \
624 install-sn \
625 install-tar \
626 install-tcl \
6599da04
JM
627 install-textutils \
628 install-tgas \
629 install-time \
630 install-uudecode \
631 install-wdiff
632
633# This is a list of the targets for all of the modules which are compiled
634# using $(X11_FLAGS_TO_PASS).
635ALL_X11_MODULES = \
636 all-emacs \
637 all-emacs19 \
638 all-gdb \
639 all-expect \
640 all-gash \
641 all-guile \
642 all-tclX \
643 all-tk \
644 all-tix
645
646# This is a list of the check targets for all of the modules which are
647# compiled using $(X11_FLAGS_TO_PASS).
648CHECK_X11_MODULES = \
649 check-emacs \
650 check-gdb \
651 check-guile \
652 check-expect \
653 check-gash \
654 check-tclX \
655 check-tk \
656 check-tix
657
658# This is a list of the install targets for all the modules which are
659# compiled using $(X11_FLAGS_TO_PASS).
660INSTALL_X11_MODULES = \
661 install-emacs \
662 install-emacs19 \
663 install-gdb \
664 install-guile \
665 install-expect \
666 install-gash \
667 install-tclX \
668 install-tk \
669 install-tix
670
671# This is a list of the targets for all of the modules which are compiled
672# using $(TARGET_FLAGS_TO_PASS).
673ALL_TARGET_MODULES = \
674 all-target-libio \
675 all-target-libstdc++ \
676 all-target-librx \
677 all-target-libg++ \
678 all-target-newlib \
8821a725 679 all-target-libf2c \
6599da04
JM
680 all-target-winsup \
681 all-target-libgloss \
682 all-target-libiberty \
683 all-target-gperf \
684 all-target-examples
685
686# This is a list of the configure targets for all of the modules which
687# are compiled using the target tools.
688CONFIGURE_TARGET_MODULES = \
689 configure-target-libio \
690 configure-target-libstdc++ \
691 configure-target-librx \
692 configure-target-libg++ \
693 configure-target-newlib \
8821a725 694 configure-target-libf2c \
6599da04
JM
695 configure-target-winsup \
696 configure-target-libgloss \
697 configure-target-libiberty \
698 configure-target-gperf \
699 configure-target-examples
700
701# This is a list of the check targets for all of the modules which are
702# compiled using $(TARGET_FLAGS_TO_PASS).
703CHECK_TARGET_MODULES = \
704 check-target-libio \
705 check-target-libstdc++ \
706 check-target-libg++ \
707 check-target-newlib \
8821a725 708 check-target-libf2c \
6599da04
JM
709 check-target-winsup \
710 check-target-libiberty \
711 check-target-gperf
712
713# This is a list of the install targets for all of the modules which are
714# compiled using $(TARGET_FLAGS_TO_PASS).
715INSTALL_TARGET_MODULES = \
716 install-target-libio \
717 install-target-libstdc++ \
718 install-target-libg++ \
719 install-target-newlib \
8821a725 720 install-target-libf2c \
6599da04
JM
721 install-target-winsup \
722 install-target-libgloss \
723 install-target-libiberty \
724 install-target-gperf
725
726# This is a list of the targets for which we can do a clean-{target}.
727CLEAN_MODULES = \
728 clean-apache \
729 clean-autoconf \
730 clean-automake \
731 clean-bash \
732 clean-bfd \
733 clean-binutils \
734 clean-bison \
735 clean-byacc \
736 clean-cvs \
737 clean-db \
738 clean-dejagnu \
739 clean-diff \
740 clean-dosutils \
741 clean-etc \
742 clean-fileutils \
743 clean-findutils \
744 clean-find \
745 clean-flex \
746 clean-gas \
747 clean-gawk \
748 clean-gnuserv \
749 clean-gprof \
750 clean-grep \
751 clean-grez \
752 clean-gzip \
753 clean-hello \
754 clean-indent \
755 clean-inet \
756 clean-ispell \
757 clean-itcl \
758 clean-ld \
759 clean-libiberty \
760 clean-m4 \
761 clean-make \
762 clean-mmalloc \
763 clean-opcodes \
764 clean-patch \
765 clean-perl \
766 clean-prms \
767 clean-rcs \
768 clean-readline \
769 clean-release \
770 clean-recode \
771 clean-sed \
772 clean-send-pr \
773 clean-shellutils \
774 clean-sim \
775 clean-sn \
776 clean-tar \
777 clean-tcl \
778 clean-texinfo \
779 clean-textutils \
780 clean-tgas \
781 clean-time \
782 clean-uudecode \
783 clean-wdiff
784
785# All of the target modules that can be cleaned
786CLEAN_TARGET_MODULES = \
787 clean-target-libio \
788 clean-target-libstdc++ \
789 clean-target-librx \
790 clean-target-libg++ \
791 clean-target-newlib \
8821a725 792 clean-target-libf2c \
6599da04
JM
793 clean-target-winsup \
794 clean-target-libgloss \
795 clean-target-libiberty \
796 clean-target-gperf \
797 clean-target-examples
798
799# All of the x11 modules that can be cleaned
800CLEAN_X11_MODULES = \
801 clean-emacs \
802 clean-emacs19 \
803 clean-gdb \
804 clean-expect \
805 clean-gash \
806 clean-guile \
807 clean-tclX \
808 clean-tk \
809 clean-tix
810
811# The first rule in the file had better be this one. Don't put any above it.
812all: all.normal
813.PHONY: all
814
815# The target built for a native build.
816.PHONY: all.normal
817all.normal: \
818 $(ALL_MODULES) \
819 $(ALL_X11_MODULES) \
820 $(ALL_TARGET_MODULES) \
821 all-gcc
822
823# Do a target for all the subdirectories. A ``make do-X'' will do a
824# ``make X'' in all subdirectories (because, in general, there is a
825# dependency (below) of X upon do-X, a ``make X'' will also do this,
826# but it may do additional work as well).
827# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
828# because it is so large that it can easily overflow the command line
829# length limit on some systems.
830DO_X = \
831 do-clean \
832 do-distclean \
833 do-dvi \
834 do-info \
835 do-install-info \
836 do-installcheck \
837 do-mostlyclean \
838 do-maintainer-clean \
839 do-TAGS
840.PHONY: $(DO_X)
841$(DO_X):
842 @target=`echo $@ | sed -e 's/^do-//'`; \
843 r=`pwd`; export r; \
844 s=`cd $(srcdir); pwd`; export s; \
845 $(SET_LIB_PATH) \
846 for i in $(SUBDIRS) -dummy-; do \
847 if [ -f ./$$i/Makefile ]; then \
848 case $$i in \
849 gcc) \
850 for flag in $(EXTRA_GCC_FLAGS); do \
851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
852 done; \
853 ;; \
854 *) \
855 for flag in $(EXTRA_HOST_FLAGS); do \
856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
857 done; \
858 ;; \
859 esac ; \
860 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
861 if (cd ./$$i; \
862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
864 "RANLIB=$${RANLIB}" \
865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
866 $${target}); \
867 then true; else exit 1; fi; \
868 else true; fi; \
869 done
870 @target=`echo $@ | sed -e 's/^do-//'`; \
871 r=`pwd`; export r; \
872 s=`cd $(srcdir); pwd`; export s; \
873 $(SET_LIB_PATH) \
874 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
875 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
876 for flag in $(EXTRA_TARGET_FLAGS); do \
877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
878 done; \
879 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
880 if (cd $(TARGET_SUBDIR)/$$i; \
881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
883 "RANLIB=$${RANLIB}" \
884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
885 $${target}); \
886 then true; else exit 1; fi; \
887 else true; fi; \
888 done
889
890# Here are the targets which correspond to the do-X targets.
891
892.PHONY: info installcheck dvi install-info
893.PHONY: clean distclean mostlyclean maintainer-clean realclean
894.PHONY: local-clean local-distclean local-maintainer-clean
895info: do-info
896installcheck: do-installcheck
897dvi: do-dvi
898
899# Make sure makeinfo is built before we do a `make info'.
900do-info: all-texinfo
901
902install-info: do-install-info dir.info
903 s=`cd $(srcdir); pwd`; export s; \
904 if [ -f dir.info ] ; then \
905 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
906 else true ; fi
907
908local-clean:
c4137c50 909 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
6599da04
JM
910
911local-distclean:
f401679e 912 -rm -f Makefile config.status config.cache mh-frag mt-frag
6599da04
JM
913 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
914 rm -rf $(TARGET_SUBDIR); \
915 else true; fi
916
917local-maintainer-clean:
918 @echo "This command is intended for maintainers to use;"
919 @echo "it deletes files that may require special tools to rebuild."
920
921clean: do-clean local-clean
922mostlyclean: do-mostlyclean local-clean
923distclean: do-distclean local-clean local-distclean
924maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
925maintainer-clean: local-distclean
926realclean: maintainer-clean
927
928# This rule is used to clean specific modules.
929.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
930$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
931 @dir=`echo $@ | sed -e 's/clean-//'`; \
932 if [ -f ./$${dir}/Makefile ] ; then \
933 r=`pwd`; export r; \
934 s=`cd $(srcdir); pwd`; export s; \
935 $(SET_LIB_PATH) \
936 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
937 else \
938 true; \
939 fi
940
941.PHONY: $(CLEAN_TARGET_MODULES)
942$(CLEAN_TARGET_MODULES):
943 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
944 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
945 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
946 r=`pwd`; export r; \
947 s=`cd $(srcdir); pwd`; export s; \
948 $(SET_LIB_PATH) \
949 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
950 else \
951 true; \
952 fi
953
954clean-target: $(CLEAN_TARGET_MODULES)
955
956# Check target.
957
958.PHONY: check
959check: $(CHECK_MODULES) \
960 $(CHECK_TARGET_MODULES) \
961 $(CHECK_X11_MODULES) \
962 check-gcc
963
c4137c50
AO
964# Automated reporting of test results.
965
966warning.log: build.log
967 $(srcdir)/contrib/warn_summary build.log > $@
968
969mail-report.log:
970 if test x'$(BOOT_CFLAGS)' != x''; then \
971 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
972 fi; \
973 $(srcdir)/contrib/test_summary -t >$@
974 chmod +x $@
975 echo If you really want to send e-mail, run ./$@ now
976
977mail-report-with-warnings.log: warning.log
978 if test x'$(BOOT_CFLAGS)' != x''; then \
979 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
980 fi; \
981 $(srcdir)/contrib/test_summary -t -i warning.log >$@
982 chmod +x $@
983 echo If you really want to send e-mail, run ./$@ now
984
6599da04
JM
985# Installation targets.
986
205cba53 987.PHONY: install install-cross uninstall source-vault binary-vault vault-install
6599da04 988install: $(INSTALL_TARGET)
205cba53 989install-cross: $(INSTALL_TARGET_CROSS)
6599da04
JM
990
991uninstall:
992 @echo "the uninstall target is not supported in this tree"
993
994source-vault:
995 $(MAKE) -f ./release/Build-A-Release \
996 host=$(host_alias) source-vault
997
998binary-vault:
999 $(MAKE) -f ./release/Build-A-Release \
1000 host=$(host_alias) target=$(target_alias)
1001
1002vault-install:
1003 @if [ -f ./release/vault-install ] ; then \
1004 ./release/vault-install $(host_alias) $(target_alias) ; \
1005 else \
1006 true ; \
1007 fi
1008
1009.PHONY: install.all
1010install.all: install-no-fixedincludes
1011 @if [ -f ./gcc/Makefile ] ; then \
1012 r=`pwd` ; export r ; \
1013 $(SET_LIB_PATH) \
1014 (cd ./gcc; \
1015 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1016 else \
1017 true ; \
1018 fi
1019
1020# inet-install is used because the I*Net wants DejaGNU installed but
1021# not built. Similarly, gzip is built but not installed.
1022inet-install:
1023 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1024
1025# install-no-fixedincludes is used because Cygnus can not distribute
1026# the fixed header files.
1027.PHONY: install-no-fixedincludes
1028install-no-fixedincludes: \
1029 installdirs \
1030 $(INSTALL_MODULES) \
1031 $(INSTALL_TARGET_MODULES) \
1032 $(INSTALL_X11_MODULES) \
1033 gcc-no-fixedincludes
1034
1035# Install the gcc headers files, but not the fixed include files,
1036# which Cygnus is not allowed to distribute. This rule is very
1037# dependent on the workings of the gcc Makefile.in.
1038.PHONY: gcc-no-fixedincludes
1039gcc-no-fixedincludes:
1040 @if [ -f ./gcc/Makefile ]; then \
1041 rm -rf gcc/tmp-include; \
1042 mv gcc/include gcc/tmp-include 2>/dev/null; \
1043 mkdir gcc/include; \
1044 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1045 touch gcc/stmp-fixinc gcc/include/fixed; \
1046 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1047 r=`pwd`; export r; \
1048 s=`cd $(srcdir); pwd` ; export s; \
1049 $(SET_LIB_PATH) \
1050 (cd ./gcc; \
1051 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1052 rm -rf gcc/include; \
1053 mv gcc/tmp-include gcc/include 2>/dev/null; \
1054 else true; fi
1055
1056# This rule is used to build the modules which use FLAGS_TO_PASS. To
1057# build a target all-X means to cd to X and make all.
1058#
1059# all-gui, and all-libproc are handled specially because
1060# they are still experimental, and if they fail to build, that
1061# shouldn't stop "make all".
1062.PHONY: $(ALL_MODULES) all-gui all-libproc
1063$(ALL_MODULES) all-gui all-libproc:
1064 @dir=`echo $@ | sed -e 's/all-//'`; \
1065 if [ -f ./$${dir}/Makefile ] ; then \
1066 r=`pwd`; export r; \
1067 s=`cd $(srcdir); pwd`; export s; \
1068 $(SET_LIB_PATH) \
1069 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1070 else \
1071 true; \
1072 fi
1073
1074# These rules are used to check the modules which use FLAGS_TO_PASS.
1075# To build a target check-X means to cd to X and make check. Some
1076# modules are only tested in a native toolchain.
1077
1078.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1079$(NATIVE_CHECK_MODULES):
1080 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1081 dir=`echo $@ | sed -e 's/check-//'`; \
1082 if [ -f ./$${dir}/Makefile ] ; then \
1083 r=`pwd`; export r; \
1084 s=`cd $(srcdir); pwd`; export s; \
1085 $(SET_LIB_PATH) \
1086 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1087 else \
1088 true; \
1089 fi; \
1090 fi
1091
1092$(CROSS_CHECK_MODULES):
1093 @dir=`echo $@ | sed -e 's/check-//'`; \
1094 if [ -f ./$${dir}/Makefile ] ; then \
1095 r=`pwd`; export r; \
1096 s=`cd $(srcdir); pwd`; export s; \
1097 $(SET_LIB_PATH) \
1098 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1099 else \
1100 true; \
1101 fi
1102
1103# This rule is used to install the modules which use FLAGS_TO_PASS.
1104# To build a target install-X means to cd to X and make install.
1105.PHONY: $(INSTALL_MODULES)
1106$(INSTALL_MODULES): installdirs
1107 @dir=`echo $@ | sed -e 's/install-//'`; \
1108 if [ -f ./$${dir}/Makefile ] ; then \
1109 r=`pwd`; export r; \
1110 s=`cd $(srcdir); pwd`; export s; \
1111 $(SET_LIB_PATH) \
1112 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1113 else \
1114 true; \
1115 fi
1116
1117# This rule is used to configure the modules which are built with the
1118# target tools.
1119.PHONY: $(CONFIGURE_TARGET_MODULES)
1120$(CONFIGURE_TARGET_MODULES):
1121 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1122 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1123 r=`pwd`; export r; \
1124 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1125 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1126 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1127 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1128 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1129 else \
1130 echo "Multilibs changed for $${dir}, reconfiguring"; \
1131 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1132 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1133 fi; \
1134 else \
1135 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1136 fi; \
1137 fi; \
1138 fi; exit 0 # break command into two pieces
1139 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1140 if [ ! -d $(TARGET_SUBDIR) ]; then \
1141 true; \
1142 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1143 true; \
1144 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1145 if [ -d $(srcdir)/$${dir} ]; then \
1146 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1147 r=`pwd`; export r; \
1148 s=`cd $(srcdir); pwd`; export s; \
1149 $(SET_LIB_PATH) \
1150 AR="$(AR_FOR_TARGET)"; export AR; \
1151 AS="$(AS_FOR_TARGET)"; export AS; \
1152 CC="$(CC_FOR_TARGET)"; export CC; \
1153 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1154 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1155 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1156 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1157 LD="$(LD_FOR_TARGET)"; export LD; \
1158 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1159 NM="$(NM_FOR_TARGET)"; export NM; \
1160 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1161 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1162 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1163 cd $(TARGET_SUBDIR)/$${dir}; \
1164 case $(srcdir) in \
1165 /*) \
1166 topdir=$(srcdir) ;; \
1167 *) \
1168 case "$(TARGET_SUBDIR)" in \
1169 .) topdir="../$(srcdir)" ;; \
1170 *) topdir="../../$(srcdir)" ;; \
1171 esac ;; \
1172 esac; \
1173 if [ "$(srcdir)" = "." ] ; then \
1174 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1175 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1176 if [ -f Makefile ]; then \
1177 if $(MAKE) distclean; then \
1178 true; \
1179 else \
1180 exit 1; \
1181 fi; \
1182 else \
1183 true; \
1184 fi; \
1185 else \
1186 exit 1; \
1187 fi; \
1188 else \
1189 true; \
1190 fi; \
1191 srcdiroption="--srcdir=."; \
1192 libsrcdir="."; \
1193 else \
1194 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1195 libsrcdir="$$s/$${dir}"; \
1196 fi; \
1197 if [ -f $${libsrcdir}/configure ] ; then \
601c6475
DL
1198 rm -f no-such-file; \
1199 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6599da04
JM
1200 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1201 --with-target-subdir="$(TARGET_SUBDIR)"; \
1202 else \
601c6475
DL
1203 rm -f no-such-file; \
1204 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
6599da04
JM
1205 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1206 --with-target-subdir="$(TARGET_SUBDIR)"; \
1207 fi; \
1208 else \
1209 true; \
1210 fi; \
1211 else \
1212 true; \
1213 fi
1214
1215# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1216# To build a target all-X means to cd to X and make all.
1217.PHONY: $(ALL_TARGET_MODULES)
1218$(ALL_TARGET_MODULES):
1219 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1220 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1221 r=`pwd`; export r; \
1222 s=`cd $(srcdir); pwd`; export s; \
1223 $(SET_LIB_PATH) \
1224 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1225 else \
1226 true; \
1227 fi
1228
1229# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1230# To build a target install-X means to cd to X and make install.
1231.PHONY: $(CHECK_TARGET_MODULES)
1232$(CHECK_TARGET_MODULES):
1233 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1234 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1235 r=`pwd`; export r; \
1236 s=`cd $(srcdir); pwd`; export s; \
1237 $(SET_LIB_PATH) \
1238 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1239 else \
1240 true; \
1241 fi
1242
1243# This rule is used to install the modules which use
1244# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1245# and make install.
1246.PHONY: $(INSTALL_TARGET_MODULES)
1247$(INSTALL_TARGET_MODULES): installdirs
1248 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1249 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1250 r=`pwd`; export r; \
1251 s=`cd $(srcdir); pwd`; export s; \
1252 $(SET_LIB_PATH) \
1253 (cd $(TARGET_SUBDIR)/$${dir}; \
1254 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1255 else \
1256 true; \
1257 fi
1258
1259# This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1260# To build a target all-X means to cd to X and make all.
1261.PHONY: $(ALL_X11_MODULES)
1262$(ALL_X11_MODULES):
1263 @dir=`echo $@ | sed -e 's/all-//'`; \
1264 if [ -f ./$${dir}/Makefile ] ; then \
1265 r=`pwd`; export r; \
1266 s=`cd $(srcdir); pwd`; export s; \
1267 $(SET_LIB_PATH) \
1268 (cd $${dir}; \
1269 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1270 else \
1271 true; \
1272 fi
1273
1274# This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1275# To build a target check-X means to cd to X and make all.
1276.PHONY: $(CHECK_X11_MODULES)
1277$(CHECK_X11_MODULES):
1278 @dir=`echo $@ | sed -e 's/check-//'`; \
1279 if [ -f ./$${dir}/Makefile ] ; then \
1280 r=`pwd`; export r; \
1281 s=`cd $(srcdir); pwd`; export s; \
1282 $(SET_LIB_PATH) \
1283 (cd $${dir}; \
1284 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1285 else \
1286 true; \
1287 fi
1288
1289# This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1290# To build a target install-X means to cd to X and make install.
1291.PHONY: $(INSTALL_X11_MODULES)
1292$(INSTALL_X11_MODULES): installdirs
1293 @dir=`echo $@ | sed -e 's/install-//'`; \
1294 if [ -f ./$${dir}/Makefile ] ; then \
1295 r=`pwd`; export r; \
1296 s=`cd $(srcdir); pwd`; export s; \
1297 $(SET_LIB_PATH) \
1298 (cd $${dir}; \
1299 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1300 else \
1301 true; \
1302 fi
1303
1304# gcc is the only module which uses GCC_FLAGS_TO_PASS.
1305.PHONY: all-gcc
1306all-gcc:
1307 @if [ -f ./gcc/Makefile ] ; then \
1308 r=`pwd`; export r; \
1309 s=`cd $(srcdir); pwd`; export s; \
1310 $(SET_LIB_PATH) \
1311 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1312 else \
1313 true; \
1314 fi
1315
ec20b1b9
JL
1316# Building GCC uses some tools for rebuilding "source" files
1317# like texinfo, bison/byacc, etc. So we must depend on those.
1318#
1319# While building GCC, it may be necessary to run various target
1320# programs like the assembler, linker, etc. So we depend on
1321# those too.
1322#
1323# In theory, on an SMP all those dependencies can be resolved
1324# in parallel.
1325#
f0983958
AO
1326.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1327bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
ec20b1b9
JL
1328 @r=`pwd`; export r; \
1329 s=`cd $(srcdir); pwd`; export s; \
1330 $(SET_LIB_PATH) \
339c9b00
AO
1331 echo "Bootstrapping the compiler"; \
1332 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
ec20b1b9
JL
1333 @r=`pwd`; export r; \
1334 s=`cd $(srcdir); pwd`; export s; \
cc71c0ca 1335 case "$@" in \
f0983958
AO
1336 *bootstrap4-lean ) \
1337 msg="Comparing stage3 and stage4 of the compiler"; \
1338 compare=compare3-lean ;; \
cc71c0ca
MH
1339 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1340 compare=compare3 ;; \
1341 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1342 compare=compare-lean ;; \
1343 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1344 compare=compare ;; \
1345 esac; \
ec20b1b9 1346 $(SET_LIB_PATH) \
cc71c0ca
MH
1347 echo "$$msg"; \
1348 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
b1e3ddfd
AJ
1349 @echo "Building runtime libraries"; \
1350 $(MAKE) all
1351
09f97c1e
JL
1352.PHONY: cross
1353cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1354 @r=`pwd`; export r; \
1355 s=`cd $(srcdir); pwd`; export s; \
1356 $(SET_LIB_PATH) \
1357 echo "Building the C and C++ compiler"; \
1358 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1359 @echo "Building runtime libraries"; \
1360 $(MAKE) all LANGUAGES="c c++"
1361
6599da04
JM
1362.PHONY: check-gcc
1363check-gcc:
1364 @if [ -f ./gcc/Makefile ] ; then \
1365 r=`pwd`; export r; \
1366 s=`cd $(srcdir); pwd`; export s; \
1367 $(SET_LIB_PATH) \
1368 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1369 else \
1370 true; \
1371 fi
1372
1373.PHONY: install-gcc
1374install-gcc:
1375 @if [ -f ./gcc/Makefile ] ; then \
1376 r=`pwd`; export r; \
1377 s=`cd $(srcdir); pwd`; export s; \
1378 $(SET_LIB_PATH) \
3cd730af 1379 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
6599da04
JM
1380 else \
1381 true; \
1382 fi
1383
205cba53
JL
1384.PHONY: install-gcc-cross
1385install-gcc-cross:
1386 @if [ -f ./gcc/Makefile ] ; then \
1387 r=`pwd`; export r; \
1388 s=`cd $(srcdir); pwd`; export s; \
1389 $(SET_LIB_PATH) \
3cd730af 1390 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
205cba53
JL
1391 else \
1392 true; \
1393 fi
6599da04
JM
1394# EXPERIMENTAL STUFF
1395# This rule is used to install the modules which use FLAGS_TO_PASS.
1396# To build a target install-X means to cd to X and make install.
1397.PHONY: install-dosrel
1398install-dosrel: installdirs info
1399 @dir=`echo $@ | sed -e 's/install-//'`; \
1400 if [ -f ./$${dir}/Makefile ] ; then \
1401 r=`pwd`; export r; \
1402 s=`cd $(srcdir); pwd`; export s; \
1403 $(SET_LIB_PATH) \
1404 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1405 else \
1406 true; \
1407 fi
1408
1409install-dosrel-fake:
1410
1411
1412# This is a list of inter-dependencies among modules.
1413all-apache:
1414all-autoconf: all-m4 all-texinfo
1415all-automake:
1416all-bash:
1417all-bfd:
1418all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc
1419all-bison: all-texinfo
1420all-byacc:
1421all-cvs:
1422all-db:
1423all-dejagnu: all-tcl all-expect all-tk
1424all-diff: all-libiberty
1425all-emacs:
1426all-emacs19: all-bison all-byacc
1427all-etc:
1428configure-target-examples: $(ALL_GCC)
1429all-target-examples: configure-target-examples
1430all-expect: all-tcl all-tk
1431all-fileutils: all-libiberty
1432all-findutils:
1433all-find:
1434all-flex: all-libiberty all-bison all-byacc
1435all-gas: all-libiberty all-opcodes all-bfd
1436all-gash: all-tcl
1437all-gawk:
1438ALL_GCC = all-gcc
1439all-gcc: all-bison all-byacc all-binutils all-gas all-ld
6599da04
JM
1440GDB_TK = all-tk all-tcl all-itcl all-tix
1441all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1442all-gnuserv:
1443configure-target-gperf: $(ALL_GCC)
1444all-target-gperf: configure-target-gperf all-target-libiberty all-target-libg++
1445all-gprof: all-libiberty all-bfd all-opcodes
1446all-grep: all-libiberty
1447all-grez: all-libiberty all-bfd all-opcodes
1448all-gui: all-gdb all-libproc all-target-librx
1449all-guile:
1450all-gzip: all-libiberty
1451all-hello: all-libiberty
1452all-indent:
1453all-inet: all-tcl all-send-pr all-perl
1454all-ispell: all-emacs19
1455all-itcl: all-tcl all-tk
1456all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex
1457configure-target-libg++: $(ALL_GCC) configure-target-librx
1458all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++
1459configure-target-libgloss: $(ALL_GCC)
1460all-target-libgloss: configure-target-libgloss configure-target-newlib
1461configure-target-libio: $(ALL_GCC)
1462all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
c9670e62 1463check-target-libio: all-target-libstdc++
6599da04
JM
1464all-libiberty:
1465configure-target-librx: $(ALL_GCC) configure-target-newlib
1466all-target-librx: configure-target-librx
1467configure-target-libstdc++: $(ALL_GCC)
1468all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
8821a725 1469all-target-libf2c: configure-target-libf2c all-gas all-ld all-gcc all-target-libiberty all-target-newlib
6599da04
JM
1470all-m4: all-libiberty
1471all-make: all-libiberty
1472all-mmalloc:
1473configure-target-newlib: $(ALL_GCC)
1474all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1475all-opcodes: all-bfd all-libiberty
1476all-patch: all-libiberty
1477all-perl:
1478all-prms: all-libiberty
1479all-rcs:
1480all-readline:
1481all-recode: all-libiberty
1482all-sed: all-libiberty
1483all-send-pr: all-prms
1484all-shellutils:
1485all-sim: all-libiberty all-bfd all-opcodes
1486all-sn: all-tcl all-tk all-itcl all-db all-grep
1487all-tar: all-libiberty
1488all-tcl:
1489all-tclX: all-tcl all-tk
1490all-tk: all-tcl
1491all-texinfo: all-libiberty
1492all-textutils:
1493all-tgas: all-libiberty all-bfd all-opcodes
1494all-time:
1495all-tix: all-tcl all-tk
1496all-wdiff:
1497all-target-winsup: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup
1498configure-target-winsup: configure-target-newlib
1499all-uudecode: all-libiberty
1500configure-target-libiberty: $(ALL_GCC)
1501all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1502all-target: $(ALL_TARGET_MODULES)
1503install-target: $(INSTALL_TARGET_MODULES)
1504
1505### other supporting targets
1506
1507MAKEDIRS= \
1508 $(prefix) \
1509 $(exec_prefix)
1510.PHONY: installdirs
1511installdirs: mkinstalldirs
1512 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1513
1514dir.info: do-install-info
1515 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1516 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1517 mv -f dir.info.new dir.info ; \
1518 else true ; \
1519 fi
1520
1521dist:
1522 @echo "Building a full distribution of this tree isn't done"
1523 @echo "via 'make dist'. Check out the etc/ subdirectory"
1524
1525etags tags: TAGS
1526
1527# Right now this just builds TAGS in each subdirectory. emacs19 has the
1528# ability to use several tags files at once, so there is probably no need
1529# to combine them into one big TAGS file (like CVS 1.3 does). We could
1530# (if we felt like it) have this Makefile write a piece of elisp which
1531# the user could load to tell emacs19 where all the TAGS files we just
1532# built are.
1533TAGS: do-TAGS
1534
1535# with the gnu make, this is done automatically.
1536
6dd27861 1537Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
6599da04
JM
1538 $(SHELL) ./config.status
1539
1540#
1541# Support for building net releases
1542
1543# Files in devo used in any net release.
1544# ChangeLog omitted because it may refer to files which are not in this
1545# distribution (perhaps it would be better to include it anyway).
1546DEVO_SUPPORT= README Makefile.in configure configure.in \
1547 config.guess config.sub config move-if-change \
1548 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1549 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1550 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1551
1552# Files in devo/etc used in any net release.
1553# ChangeLog omitted because it may refer to files which are not in this
1554# distribution (perhaps it would be better to include it anyway).
1555ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1556 make-stds.texi standards.info*
1557
1558# When you use `make setup-dirs' or `make taz' you should always redefine
1559# this macro.
1560SUPPORT_FILES = list-of-support-files-for-tool-in-question
1561
1562.PHONY: taz
1563
1564taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1565 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1566 # Take out texinfo from a few places; make simple BISON=bison line.
1567 sed -e '/^all\.normal: /s/\all-texinfo //' \
1568 -e '/^ install-texinfo /d' \
1569 <Makefile.in >tmp
1570 mv -f tmp Makefile.in
1571 #
1572 ./configure sun4
1573 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1574 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1575 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1576 # Make links, and run "make diststuff" or "make info" when needed.
1577 rm -rf proto-toplev ; mkdir proto-toplev
1578 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1579 for d in $$dirs ; do \
1580 if [ -d $$d ]; then \
1581 if [ ! -f $$d/Makefile ] ; then true ; \
1582 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1583 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1584 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1585 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1586 fi ; \
1587 if [ -d $$d/proto-$$d.dir ]; then \
1588 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1589 else \
1590 ln -s ../$$d proto-toplev/$$d ; \
1591 fi ; \
1592 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1593 done
1594 cd etc ; $(MAKE) info
1595 $(MAKE) distclean
1596 #
1597 mkdir proto-toplev/etc
1598 (cd proto-toplev/etc; \
1599 for i in $(ETC_SUPPORT); do \
1600 ln -s ../../etc/$$i . ; \
1601 done)
1602 #
1603 # Take out texinfo from configurable dirs
1604 rm proto-toplev/configure.in
1605 sed -e '/^host_tools=/s/texinfo //' \
1606 <configure.in >proto-toplev/configure.in
1607 #
1608 mkdir proto-toplev/texinfo
1609 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1610 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1611 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1612 if test -r texinfo/util/tex3patch ; then \
1613 mkdir proto-toplev/texinfo/util && \
1614 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1615 else true; fi
1616 chmod og=u `find . -print`
1617 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1618 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1619 else \
1620 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1621 fi; \
1622 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1623
1624do-tar-gz:
1625 echo "==> Making $(TOOL)-$(VER).tar.gz"
1626 -rm -f $(TOOL)-$(VER)
1627 ln -s proto-toplev $(TOOL)-$(VER)
1628 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1629 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1630
1631TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1632DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1633
1634.PHONY: gas.tar.gz
1635GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms
1636gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1637 $(MAKE) -f Makefile.in taz TOOL=gas \
1638 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1639
1640# The FSF "binutils" release includes gprof and ld.
1641.PHONY: binutils.tar.gz
1642BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms
1643binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1644 $(MAKE) -f Makefile.in taz TOOL=binutils \
1645 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1646
1647.PHONY: gas+binutils.tar.gz
1648GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1649gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1650 $(MAKE) -f Makefile.in taz TOOL=gas \
1651 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1652
1653.PHONY: libg++.tar.gz
1654LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1655libg++.tar.gz: $(DIST_SUPPORT) libg++
1656 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1657 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1658
1659GNATS_SUPPORT_DIRS=include libiberty send-pr
1660gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1661 $(MAKE) -f Makefile.in taz TOOL=gnats \
1662 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1663
1664.PHONY: gdb.tar.gz
1665GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
1666GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1667gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1668 $(MAKE) -f Makefile.in taz TOOL=gdb \
1669 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1670
1671.PHONY: newlib.tar.gz
1672NEWLIB_SUPPORT_DIRS=libgloss
1673# taz configures for the sun4 target which won't configure newlib.
1674# We need newlib configured so that the .info files are made.
1675# Unfortunately, it is not enough to just configure newlib separately:
1676# taz will build the .info files but since SUBDIRS won't contain newlib,
1677# distclean won't be run (leaving Makefile, config.status, and the tmp files
1678# used in building the .info files, eg: *.def, *.ref).
1679# The problem isn't solvable however without a lot of extra work because
1680# target libraries are built in subdir $(target_alias) which gets nuked during
1681# the make distclean. For now punt on the issue of shipping newlib info files
1682# with newlib net releases and wait for a day when some native target (sun4?)
1683# supports newlib (if only minimally).
1684newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1685 $(MAKE) -f Makefile.in taz TOOL=newlib \
1686 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1687 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1688
1689.NOEXPORT:
1690MAKEOVERRIDES=
1691
1692
1693# end of Makefile.in
This page took 0.227526 seconds and 5 git commands to generate.