]> gcc.gnu.org Git - gcc.git/blame - Makefile.in
*** empty log message ***
[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)" \
355 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
356 "YACC=$(YACC)" \
357 "exec_prefix=$(exec_prefix)" \
358 "prefix=$(prefix)" \
d0a8352c 359 "tooldir=$(tooldir)" \
fe2fa3c4
MH
360 "gxx_include_dir=$(gxx_include_dir)" \
361 "gcc_version=$(gcc_version)" \
362 "target_alias=$(target_alias)" \
363 "libsubdir=$(libsubdir)"
6599da04
JM
364
365# Flags to pass down to most sub-makes, in which we're building with
366# the host environment.
367# If any variables are added here, they must be added to do-*, below.
368EXTRA_HOST_FLAGS = \
369 'AR=$(AR)' \
370 'AS=$(AS)' \
371 'CC=$(CC)' \
372 'CXX=$(CXX)' \
373 'DLLTOOL=$(DLLTOOL)' \
374 'LD=$(LD)' \
375 'NM=$(NM)' \
376 'RANLIB=$(RANLIB)' \
377 'WINDRES=$(WINDRES)'
378
379FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
380
381# Flags that are concerned with the location of the X11 include files
382# and library files
383#
384# NOTE: until the top-level is getting the values via autoconf, it only
385# causes problems to have this top-level Makefile overriding the autoconf-set
386# values in child directories. Only variables that don't conflict with
387# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
388#
389X11_FLAGS_TO_PASS = \
390 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
391 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
392
393# Flags to pass down to makes which are built with the target environment.
394# The double $ decreases the length of the command line; the variables
395# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
396# If any variables are added here, they must be added to do-*, below.
397EXTRA_TARGET_FLAGS = \
398 'AR=$$(AR_FOR_TARGET)' \
399 'AS=$$(AS_FOR_TARGET)' \
400 'CC=$$(CC_FOR_TARGET)' \
401 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
402 'CXX=$$(CXX_FOR_TARGET)' \
403 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
404 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
405 'LD=$$(LD_FOR_TARGET)' \
406 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
407 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
408 'NM=$$(NM_FOR_TARGET)' \
6599da04
JM
409 'RANLIB=$$(RANLIB_FOR_TARGET)' \
410 'WINDRES=$$(WINDRES_FOR_TARGET)'
411
412TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
413
414# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
415# unfortunately needs the native compiler and the target ar and
416# ranlib.
417# If any variables are added here, they must be added to do-*, below.
418# The HOST_* variables are a special case, which are used for the gcc
419# cross-building scheme.
420EXTRA_GCC_FLAGS = \
421 'AR=$$(AR_FOR_TARGET)' \
422 'AS=$(AS)' \
423 'CC=$(CC)' \
424 'CXX=$(CXX)' \
425 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
426 'HOST_CC=$(CC_FOR_BUILD)' \
427 'HOST_PREFIX=$(HOST_PREFIX)' \
428 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
429 'NM=$(NM)' \
430 'RANLIB=$$(RANLIB_FOR_TARGET)' \
431 'WINDRES=$$(WINDRES_FOR_TARGET)' \
432 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
433 "`if test x'$(LANGUAGES)' != x; then echo 'LANGUAGES=$(LANGUAGES)'; else echo 'XFOO=bar'; fi`" \
434 "`if test x'$(STMP_FIXPROTO)' != x; then echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)'; else echo 'XFOO=bar'; fi`" \
435 "`if test x'$(LIMITS_H_TEST)' != x; then echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)'; else echo 'XFOO=bar'; fi`" \
436 "`if test x'$(LIBGCC1_TEST)' != x; then echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)'; else echo 'XFOO=bar'; fi`" \
437 "`if test x'$(LIBGCC2_CFLAGS)' != x; then echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
438 "`if test x'$(LIBGCC2_DEBUG_CFLAGS)' != x; then echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)'; else echo 'XFOO=bar'; fi`" \
439 "`if test x'$(LIBGCC2_INCLUDES)' != x; then echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)'; else echo 'XFOO=bar'; fi`" \
440 "`if test x'$(ENQUIRE)' != x; then echo 'ENQUIRE=$(ENQUIRE)'; else echo 'XFOO=bar'; fi`" \
441 "`if test x'$(BOOT_CFLAGS)' != x; then echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)'; else echo 'XFOO=bar'; fi`"
442
443GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
444
445# This is a list of the targets for all of the modules which are compiled
446# using $(FLAGS_TO_PASS).
447ALL_MODULES = \
448 all-apache \
449 all-autoconf \
450 all-automake \
451 all-bash \
452 all-bfd \
453 all-binutils \
454 all-bison \
455 all-byacc \
456 all-cvs \
457 all-db \
458 all-dejagnu \
459 all-diff \
460 all-dosutils \
461 all-etc \
462 all-fileutils \
463 all-findutils \
464 all-find \
465 all-flex \
466 all-gas \
467 all-gawk \
468 all-gnuserv \
469 all-gprof \
470 all-grep \
471 all-grez \
472 all-gzip \
473 all-hello \
474 all-indent \
475 all-inet \
476 all-ispell \
477 all-itcl \
478 all-ld \
479 all-libiberty \
480 all-m4 \
481 all-make \
482 all-mmalloc \
483 all-opcodes \
484 all-patch \
485 all-perl \
486 all-prms \
487 all-rcs \
488 all-readline \
489 all-release \
490 all-recode \
491 all-sed \
492 all-send-pr \
493 all-shellutils \
494 all-sim \
495 all-sn \
496 all-tar \
497 all-tcl \
498 all-texinfo \
499 all-textutils \
500 all-tgas \
501 all-time \
502 all-uudecode \
503 all-wdiff
504
505# This is a list of the check targets for all of the modules which are
506# compiled using $(FLAGS_TO_PASS).
507#
508# The list is in two parts. The first lists those tools which
509# are tested as part of the host's native tool-chain, and not
510# tested in a cross configuration.
511NATIVE_CHECK_MODULES = \
512 check-bison \
513 check-byacc \
514 check-flex
515
516CROSS_CHECK_MODULES = \
517 check-apache \
518 check-autoconf \
519 check-automake \
520 check-bash \
521 check-bfd \
522 check-binutils \
523 check-cvs \
524 check-db \
525 check-dejagnu \
526 check-diff \
527 check-etc \
528 check-fileutils \
529 check-findutils \
530 check-find \
531 check-gas \
532 check-gawk \
533 check-gnuserv \
534 check-gprof \
535 check-grep \
536 check-gzip \
537 check-hello \
538 check-indent \
539 check-inet \
540 check-ispell \
541 check-itcl \
542 check-ld \
543 check-libiberty \
544 check-m4 \
545 check-make \
546 check-mmcheckoc \
547 check-opcodes \
548 check-patch \
549 check-perl \
550 check-prms \
551 check-rcs \
552 check-readline \
553 check-recode \
554 check-sed \
555 check-send-pr \
556 check-shellutils \
557 check-sn \
558 check-sim \
559 check-tar \
560 check-tcl \
561 check-texinfo \
562 check-textutils \
563 check-tgas \
564 check-time \
565 check-uudecode \
566 check-wdiff
567
568CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
569
570# This is a list of the install targets for all of the modules which are
571# compiled using $(FLAGS_TO_PASS).
572# We put install-opcodes before install-binutils because the installed
573# binutils might be on PATH, and they might need the shared opcodes
574# library.
575INSTALL_MODULES = \
576 install-apache \
577 install-autoconf \
578 install-automake \
579 install-bash \
580 install-bfd \
581 install-opcodes \
582 install-binutils \
583 install-bison \
584 install-byacc \
585 install-cvs \
586 install-db \
587 install-dejagnu \
588 install-diff \
589 install-dosutils \
590 install-etc \
591 install-fileutils \
592 install-findutils \
593 install-find \
594 install-flex \
595 install-gas \
596 install-gawk \
597 install-gnuserv \
598 install-gprof \
599 install-grep \
600 install-grez \
601 install-gzip \
602 install-hello \
603 install-indent \
604 install-inet \
605 install-ispell \
606 install-itcl \
607 install-ld \
608 install-libiberty \
609 install-m4 \
610 install-make \
611 install-mmalloc \
612 install-patch \
613 install-perl \
614 install-prms \
615 install-rcs \
616 install-readline \
617 install-recode \
618 install-sed \
619 install-send-pr \
620 install-shellutils \
621 install-sim \
622 install-sn \
623 install-tar \
624 install-tcl \
6599da04
JM
625 install-textutils \
626 install-tgas \
627 install-time \
628 install-uudecode \
629 install-wdiff
630
631# This is a list of the targets for all of the modules which are compiled
632# using $(X11_FLAGS_TO_PASS).
633ALL_X11_MODULES = \
634 all-emacs \
635 all-emacs19 \
636 all-gdb \
637 all-expect \
638 all-gash \
639 all-guile \
640 all-tclX \
641 all-tk \
642 all-tix
643
644# This is a list of the check targets for all of the modules which are
645# compiled using $(X11_FLAGS_TO_PASS).
646CHECK_X11_MODULES = \
647 check-emacs \
648 check-gdb \
649 check-guile \
650 check-expect \
651 check-gash \
652 check-tclX \
653 check-tk \
654 check-tix
655
656# This is a list of the install targets for all the modules which are
657# compiled using $(X11_FLAGS_TO_PASS).
658INSTALL_X11_MODULES = \
659 install-emacs \
660 install-emacs19 \
661 install-gdb \
662 install-guile \
663 install-expect \
664 install-gash \
665 install-tclX \
666 install-tk \
667 install-tix
668
669# This is a list of the targets for all of the modules which are compiled
670# using $(TARGET_FLAGS_TO_PASS).
671ALL_TARGET_MODULES = \
672 all-target-libio \
673 all-target-libstdc++ \
674 all-target-librx \
675 all-target-libg++ \
676 all-target-newlib \
8821a725 677 all-target-libf2c \
6599da04
JM
678 all-target-winsup \
679 all-target-libgloss \
680 all-target-libiberty \
681 all-target-gperf \
682 all-target-examples
683
684# This is a list of the configure targets for all of the modules which
685# are compiled using the target tools.
686CONFIGURE_TARGET_MODULES = \
687 configure-target-libio \
688 configure-target-libstdc++ \
689 configure-target-librx \
690 configure-target-libg++ \
691 configure-target-newlib \
8821a725 692 configure-target-libf2c \
6599da04
JM
693 configure-target-winsup \
694 configure-target-libgloss \
695 configure-target-libiberty \
696 configure-target-gperf \
697 configure-target-examples
698
699# This is a list of the check targets for all of the modules which are
700# compiled using $(TARGET_FLAGS_TO_PASS).
701CHECK_TARGET_MODULES = \
702 check-target-libio \
703 check-target-libstdc++ \
704 check-target-libg++ \
705 check-target-newlib \
8821a725 706 check-target-libf2c \
6599da04
JM
707 check-target-winsup \
708 check-target-libiberty \
709 check-target-gperf
710
711# This is a list of the install targets for all of the modules which are
712# compiled using $(TARGET_FLAGS_TO_PASS).
713INSTALL_TARGET_MODULES = \
714 install-target-libio \
715 install-target-libstdc++ \
716 install-target-libg++ \
717 install-target-newlib \
8821a725 718 install-target-libf2c \
6599da04
JM
719 install-target-winsup \
720 install-target-libgloss \
721 install-target-libiberty \
722 install-target-gperf
723
724# This is a list of the targets for which we can do a clean-{target}.
725CLEAN_MODULES = \
726 clean-apache \
727 clean-autoconf \
728 clean-automake \
729 clean-bash \
730 clean-bfd \
731 clean-binutils \
732 clean-bison \
733 clean-byacc \
734 clean-cvs \
735 clean-db \
736 clean-dejagnu \
737 clean-diff \
738 clean-dosutils \
739 clean-etc \
740 clean-fileutils \
741 clean-findutils \
742 clean-find \
743 clean-flex \
744 clean-gas \
745 clean-gawk \
746 clean-gnuserv \
747 clean-gprof \
748 clean-grep \
749 clean-grez \
750 clean-gzip \
751 clean-hello \
752 clean-indent \
753 clean-inet \
754 clean-ispell \
755 clean-itcl \
756 clean-ld \
757 clean-libiberty \
758 clean-m4 \
759 clean-make \
760 clean-mmalloc \
761 clean-opcodes \
762 clean-patch \
763 clean-perl \
764 clean-prms \
765 clean-rcs \
766 clean-readline \
767 clean-release \
768 clean-recode \
769 clean-sed \
770 clean-send-pr \
771 clean-shellutils \
772 clean-sim \
773 clean-sn \
774 clean-tar \
775 clean-tcl \
776 clean-texinfo \
777 clean-textutils \
778 clean-tgas \
779 clean-time \
780 clean-uudecode \
781 clean-wdiff
782
783# All of the target modules that can be cleaned
784CLEAN_TARGET_MODULES = \
785 clean-target-libio \
786 clean-target-libstdc++ \
787 clean-target-librx \
788 clean-target-libg++ \
789 clean-target-newlib \
8821a725 790 clean-target-libf2c \
6599da04
JM
791 clean-target-winsup \
792 clean-target-libgloss \
793 clean-target-libiberty \
794 clean-target-gperf \
795 clean-target-examples
796
797# All of the x11 modules that can be cleaned
798CLEAN_X11_MODULES = \
799 clean-emacs \
800 clean-emacs19 \
801 clean-gdb \
802 clean-expect \
803 clean-gash \
804 clean-guile \
805 clean-tclX \
806 clean-tk \
807 clean-tix
808
809# The first rule in the file had better be this one. Don't put any above it.
810all: all.normal
811.PHONY: all
812
813# The target built for a native build.
814.PHONY: all.normal
815all.normal: \
816 $(ALL_MODULES) \
817 $(ALL_X11_MODULES) \
818 $(ALL_TARGET_MODULES) \
819 all-gcc
820
821# Do a target for all the subdirectories. A ``make do-X'' will do a
822# ``make X'' in all subdirectories (because, in general, there is a
823# dependency (below) of X upon do-X, a ``make X'' will also do this,
824# but it may do additional work as well).
825# This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
826# because it is so large that it can easily overflow the command line
827# length limit on some systems.
828DO_X = \
829 do-clean \
830 do-distclean \
831 do-dvi \
832 do-info \
833 do-install-info \
834 do-installcheck \
835 do-mostlyclean \
836 do-maintainer-clean \
837 do-TAGS
838.PHONY: $(DO_X)
839$(DO_X):
840 @target=`echo $@ | sed -e 's/^do-//'`; \
841 r=`pwd`; export r; \
842 s=`cd $(srcdir); pwd`; export s; \
843 $(SET_LIB_PATH) \
844 for i in $(SUBDIRS) -dummy-; do \
845 if [ -f ./$$i/Makefile ]; then \
846 case $$i in \
847 gcc) \
848 for flag in $(EXTRA_GCC_FLAGS); do \
849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
850 done; \
851 ;; \
852 *) \
853 for flag in $(EXTRA_HOST_FLAGS); do \
854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
855 done; \
856 ;; \
857 esac ; \
858 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
859 if (cd ./$$i; \
860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
862 "RANLIB=$${RANLIB}" \
863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
864 $${target}); \
865 then true; else exit 1; fi; \
866 else true; fi; \
867 done
868 @target=`echo $@ | sed -e 's/^do-//'`; \
869 r=`pwd`; export r; \
870 s=`cd $(srcdir); pwd`; export s; \
871 $(SET_LIB_PATH) \
872 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
873 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
874 for flag in $(EXTRA_TARGET_FLAGS); do \
875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
876 done; \
877 export AR AS CC CXX LD NM RANLIB DLLTOOL WINDRES; \
878 if (cd $(TARGET_SUBDIR)/$$i; \
879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
881 "RANLIB=$${RANLIB}" \
882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
883 $${target}); \
884 then true; else exit 1; fi; \
885 else true; fi; \
886 done
887
888# Here are the targets which correspond to the do-X targets.
889
890.PHONY: info installcheck dvi install-info
891.PHONY: clean distclean mostlyclean maintainer-clean realclean
892.PHONY: local-clean local-distclean local-maintainer-clean
893info: do-info
894installcheck: do-installcheck
895dvi: do-dvi
896
897# Make sure makeinfo is built before we do a `make info'.
898do-info: all-texinfo
899
900install-info: do-install-info dir.info
901 s=`cd $(srcdir); pwd`; export s; \
902 if [ -f dir.info ] ; then \
903 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
904 else true ; fi
905
906local-clean:
c4137c50 907 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
6599da04
JM
908
909local-distclean:
f401679e 910 -rm -f Makefile config.status config.cache mh-frag mt-frag
6599da04
JM
911 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
912 rm -rf $(TARGET_SUBDIR); \
913 else true; fi
914
915local-maintainer-clean:
916 @echo "This command is intended for maintainers to use;"
917 @echo "it deletes files that may require special tools to rebuild."
918
919clean: do-clean local-clean
920mostlyclean: do-mostlyclean local-clean
921distclean: do-distclean local-clean local-distclean
922maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
923maintainer-clean: local-distclean
924realclean: maintainer-clean
925
926# This rule is used to clean specific modules.
927.PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
928$(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
929 @dir=`echo $@ | sed -e 's/clean-//'`; \
930 if [ -f ./$${dir}/Makefile ] ; then \
931 r=`pwd`; export r; \
932 s=`cd $(srcdir); pwd`; export s; \
933 $(SET_LIB_PATH) \
934 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
935 else \
936 true; \
937 fi
938
939.PHONY: $(CLEAN_TARGET_MODULES)
940$(CLEAN_TARGET_MODULES):
941 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
942 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
943 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
944 r=`pwd`; export r; \
945 s=`cd $(srcdir); pwd`; export s; \
946 $(SET_LIB_PATH) \
947 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
948 else \
949 true; \
950 fi
951
952clean-target: $(CLEAN_TARGET_MODULES)
953
954# Check target.
955
956.PHONY: check
957check: $(CHECK_MODULES) \
958 $(CHECK_TARGET_MODULES) \
959 $(CHECK_X11_MODULES) \
960 check-gcc
961
c4137c50
AO
962# Automated reporting of test results.
963
964warning.log: build.log
965 $(srcdir)/contrib/warn_summary build.log > $@
966
967mail-report.log:
968 if test x'$(BOOT_CFLAGS)' != x''; then \
969 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
970 fi; \
971 $(srcdir)/contrib/test_summary -t >$@
972 chmod +x $@
973 echo If you really want to send e-mail, run ./$@ now
974
975mail-report-with-warnings.log: warning.log
976 if test x'$(BOOT_CFLAGS)' != x''; then \
977 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
978 fi; \
979 $(srcdir)/contrib/test_summary -t -i warning.log >$@
980 chmod +x $@
981 echo If you really want to send e-mail, run ./$@ now
982
6599da04
JM
983# Installation targets.
984
205cba53 985.PHONY: install install-cross uninstall source-vault binary-vault vault-install
6599da04 986install: $(INSTALL_TARGET)
205cba53 987install-cross: $(INSTALL_TARGET_CROSS)
6599da04
JM
988
989uninstall:
990 @echo "the uninstall target is not supported in this tree"
991
992source-vault:
993 $(MAKE) -f ./release/Build-A-Release \
994 host=$(host_alias) source-vault
995
996binary-vault:
997 $(MAKE) -f ./release/Build-A-Release \
998 host=$(host_alias) target=$(target_alias)
999
1000vault-install:
1001 @if [ -f ./release/vault-install ] ; then \
1002 ./release/vault-install $(host_alias) $(target_alias) ; \
1003 else \
1004 true ; \
1005 fi
1006
1007.PHONY: install.all
1008install.all: install-no-fixedincludes
1009 @if [ -f ./gcc/Makefile ] ; then \
1010 r=`pwd` ; export r ; \
1011 $(SET_LIB_PATH) \
1012 (cd ./gcc; \
1013 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1014 else \
1015 true ; \
1016 fi
1017
1018# inet-install is used because the I*Net wants DejaGNU installed but
1019# not built. Similarly, gzip is built but not installed.
1020inet-install:
1021 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1022
1023# install-no-fixedincludes is used because Cygnus can not distribute
1024# the fixed header files.
1025.PHONY: install-no-fixedincludes
1026install-no-fixedincludes: \
1027 installdirs \
1028 $(INSTALL_MODULES) \
1029 $(INSTALL_TARGET_MODULES) \
1030 $(INSTALL_X11_MODULES) \
1031 gcc-no-fixedincludes
1032
1033# Install the gcc headers files, but not the fixed include files,
1034# which Cygnus is not allowed to distribute. This rule is very
1035# dependent on the workings of the gcc Makefile.in.
1036.PHONY: gcc-no-fixedincludes
1037gcc-no-fixedincludes:
1038 @if [ -f ./gcc/Makefile ]; then \
1039 rm -rf gcc/tmp-include; \
1040 mv gcc/include gcc/tmp-include 2>/dev/null; \
1041 mkdir gcc/include; \
1042 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1043 touch gcc/stmp-fixinc gcc/include/fixed; \
1044 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1045 r=`pwd`; export r; \
1046 s=`cd $(srcdir); pwd` ; export s; \
1047 $(SET_LIB_PATH) \
1048 (cd ./gcc; \
1049 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1050 rm -rf gcc/include; \
1051 mv gcc/tmp-include gcc/include 2>/dev/null; \
1052 else true; fi
1053
1054# This rule is used to build the modules which use FLAGS_TO_PASS. To
1055# build a target all-X means to cd to X and make all.
1056#
1057# all-gui, and all-libproc are handled specially because
1058# they are still experimental, and if they fail to build, that
1059# shouldn't stop "make all".
1060.PHONY: $(ALL_MODULES) all-gui all-libproc
1061$(ALL_MODULES) all-gui all-libproc:
1062 @dir=`echo $@ | sed -e 's/all-//'`; \
1063 if [ -f ./$${dir}/Makefile ] ; then \
1064 r=`pwd`; export r; \
1065 s=`cd $(srcdir); pwd`; export s; \
1066 $(SET_LIB_PATH) \
1067 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1068 else \
1069 true; \
1070 fi
1071
1072# These rules are used to check the modules which use FLAGS_TO_PASS.
1073# To build a target check-X means to cd to X and make check. Some
1074# modules are only tested in a native toolchain.
1075
1076.PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1077$(NATIVE_CHECK_MODULES):
1078 @if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1079 dir=`echo $@ | sed -e 's/check-//'`; \
1080 if [ -f ./$${dir}/Makefile ] ; then \
1081 r=`pwd`; export r; \
1082 s=`cd $(srcdir); pwd`; export s; \
1083 $(SET_LIB_PATH) \
1084 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1085 else \
1086 true; \
1087 fi; \
1088 fi
1089
1090$(CROSS_CHECK_MODULES):
1091 @dir=`echo $@ | sed -e 's/check-//'`; \
1092 if [ -f ./$${dir}/Makefile ] ; then \
1093 r=`pwd`; export r; \
1094 s=`cd $(srcdir); pwd`; export s; \
1095 $(SET_LIB_PATH) \
1096 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1097 else \
1098 true; \
1099 fi
1100
1101# This rule is used to install the modules which use FLAGS_TO_PASS.
1102# To build a target install-X means to cd to X and make install.
1103.PHONY: $(INSTALL_MODULES)
1104$(INSTALL_MODULES): installdirs
1105 @dir=`echo $@ | sed -e 's/install-//'`; \
1106 if [ -f ./$${dir}/Makefile ] ; then \
1107 r=`pwd`; export r; \
1108 s=`cd $(srcdir); pwd`; export s; \
1109 $(SET_LIB_PATH) \
1110 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1111 else \
1112 true; \
1113 fi
1114
1115# This rule is used to configure the modules which are built with the
1116# target tools.
1117.PHONY: $(CONFIGURE_TARGET_MODULES)
1118$(CONFIGURE_TARGET_MODULES):
1119 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1120 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1121 r=`pwd`; export r; \
1122 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1123 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1124 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1125 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1126 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1127 else \
1128 echo "Multilibs changed for $${dir}, reconfiguring"; \
1129 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1130 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1131 fi; \
1132 else \
1133 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1134 fi; \
1135 fi; \
1136 fi; exit 0 # break command into two pieces
1137 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1138 if [ ! -d $(TARGET_SUBDIR) ]; then \
1139 true; \
1140 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1141 true; \
1142 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1143 if [ -d $(srcdir)/$${dir} ]; then \
1144 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1145 r=`pwd`; export r; \
1146 s=`cd $(srcdir); pwd`; export s; \
1147 $(SET_LIB_PATH) \
1148 AR="$(AR_FOR_TARGET)"; export AR; \
1149 AS="$(AS_FOR_TARGET)"; export AS; \
1150 CC="$(CC_FOR_TARGET)"; export CC; \
1151 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1152 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1153 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1154 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1155 LD="$(LD_FOR_TARGET)"; export LD; \
1156 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1157 NM="$(NM_FOR_TARGET)"; export NM; \
1158 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1159 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1160 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1161 cd $(TARGET_SUBDIR)/$${dir}; \
1162 case $(srcdir) in \
1163 /*) \
1164 topdir=$(srcdir) ;; \
1165 *) \
1166 case "$(TARGET_SUBDIR)" in \
1167 .) topdir="../$(srcdir)" ;; \
1168 *) topdir="../../$(srcdir)" ;; \
1169 esac ;; \
1170 esac; \
1171 if [ "$(srcdir)" = "." ] ; then \
1172 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1173 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1174 if [ -f Makefile ]; then \
1175 if $(MAKE) distclean; then \
1176 true; \
1177 else \
1178 exit 1; \
1179 fi; \
1180 else \
1181 true; \
1182 fi; \
1183 else \
1184 exit 1; \
1185 fi; \
1186 else \
1187 true; \
1188 fi; \
1189 srcdiroption="--srcdir=."; \
1190 libsrcdir="."; \
1191 else \
1192 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1193 libsrcdir="$$s/$${dir}"; \
1194 fi; \
1195 if [ -f $${libsrcdir}/configure ] ; then \
601c6475
DL
1196 rm -f no-such-file; \
1197 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
6599da04
JM
1198 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1199 --with-target-subdir="$(TARGET_SUBDIR)"; \
1200 else \
601c6475
DL
1201 rm -f no-such-file; \
1202 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
6599da04
JM
1203 $(CONFIG_ARGUMENTS) $${srcdiroption} \
1204 --with-target-subdir="$(TARGET_SUBDIR)"; \
1205 fi; \
1206 else \
1207 true; \
1208 fi; \
1209 else \
1210 true; \
1211 fi
1212
1213# This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1214# To build a target all-X means to cd to X and make all.
1215.PHONY: $(ALL_TARGET_MODULES)
1216$(ALL_TARGET_MODULES):
1217 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1218 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1219 r=`pwd`; export r; \
1220 s=`cd $(srcdir); pwd`; export s; \
1221 $(SET_LIB_PATH) \
1222 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1223 else \
1224 true; \
1225 fi
1226
1227# This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1228# To build a target install-X means to cd to X and make install.
1229.PHONY: $(CHECK_TARGET_MODULES)
1230$(CHECK_TARGET_MODULES):
1231 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1232 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1233 r=`pwd`; export r; \
1234 s=`cd $(srcdir); pwd`; export s; \
1235 $(SET_LIB_PATH) \
1236 (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1237 else \
1238 true; \
1239 fi
1240
1241# This rule is used to install the modules which use
1242# TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1243# and make install.
1244.PHONY: $(INSTALL_TARGET_MODULES)
1245$(INSTALL_TARGET_MODULES): installdirs
1246 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1247 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1248 r=`pwd`; export r; \
1249 s=`cd $(srcdir); pwd`; export s; \
1250 $(SET_LIB_PATH) \
1251 (cd $(TARGET_SUBDIR)/$${dir}; \
1252 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1253 else \
1254 true; \
1255 fi
1256
1257# This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1258# To build a target all-X means to cd to X and make all.
1259.PHONY: $(ALL_X11_MODULES)
1260$(ALL_X11_MODULES):
1261 @dir=`echo $@ | sed -e 's/all-//'`; \
1262 if [ -f ./$${dir}/Makefile ] ; then \
1263 r=`pwd`; export r; \
1264 s=`cd $(srcdir); pwd`; export s; \
1265 $(SET_LIB_PATH) \
1266 (cd $${dir}; \
1267 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1268 else \
1269 true; \
1270 fi
1271
1272# This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1273# To build a target check-X means to cd to X and make all.
1274.PHONY: $(CHECK_X11_MODULES)
1275$(CHECK_X11_MODULES):
1276 @dir=`echo $@ | sed -e 's/check-//'`; \
1277 if [ -f ./$${dir}/Makefile ] ; then \
1278 r=`pwd`; export r; \
1279 s=`cd $(srcdir); pwd`; export s; \
1280 $(SET_LIB_PATH) \
1281 (cd $${dir}; \
1282 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1283 else \
1284 true; \
1285 fi
1286
1287# This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1288# To build a target install-X means to cd to X and make install.
1289.PHONY: $(INSTALL_X11_MODULES)
1290$(INSTALL_X11_MODULES): installdirs
1291 @dir=`echo $@ | sed -e 's/install-//'`; \
1292 if [ -f ./$${dir}/Makefile ] ; then \
1293 r=`pwd`; export r; \
1294 s=`cd $(srcdir); pwd`; export s; \
1295 $(SET_LIB_PATH) \
1296 (cd $${dir}; \
1297 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1298 else \
1299 true; \
1300 fi
1301
1302# gcc is the only module which uses GCC_FLAGS_TO_PASS.
1303.PHONY: all-gcc
1304all-gcc:
1305 @if [ -f ./gcc/Makefile ] ; then \
1306 r=`pwd`; export r; \
1307 s=`cd $(srcdir); pwd`; export s; \
1308 $(SET_LIB_PATH) \
1309 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1310 else \
1311 true; \
1312 fi
1313
ec20b1b9
JL
1314# Building GCC uses some tools for rebuilding "source" files
1315# like texinfo, bison/byacc, etc. So we must depend on those.
1316#
1317# While building GCC, it may be necessary to run various target
1318# programs like the assembler, linker, etc. So we depend on
1319# those too.
1320#
1321# In theory, on an SMP all those dependencies can be resolved
1322# in parallel.
1323#
f0983958
AO
1324.PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1325bootstrap 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
1326 @r=`pwd`; export r; \
1327 s=`cd $(srcdir); pwd`; export s; \
1328 $(SET_LIB_PATH) \
339c9b00
AO
1329 echo "Bootstrapping the compiler"; \
1330 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
ec20b1b9
JL
1331 @r=`pwd`; export r; \
1332 s=`cd $(srcdir); pwd`; export s; \
cc71c0ca 1333 case "$@" in \
f0983958
AO
1334 *bootstrap4-lean ) \
1335 msg="Comparing stage3 and stage4 of the compiler"; \
1336 compare=compare3-lean ;; \
cc71c0ca
MH
1337 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1338 compare=compare3 ;; \
1339 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1340 compare=compare-lean ;; \
1341 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1342 compare=compare ;; \
1343 esac; \
ec20b1b9 1344 $(SET_LIB_PATH) \
cc71c0ca
MH
1345 echo "$$msg"; \
1346 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
b1e3ddfd
AJ
1347 @echo "Building runtime libraries"; \
1348 $(MAKE) all
1349
09f97c1e
JL
1350.PHONY: cross
1351cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1352 @r=`pwd`; export r; \
1353 s=`cd $(srcdir); pwd`; export s; \
1354 $(SET_LIB_PATH) \
1355 echo "Building the C and C++ compiler"; \
1356 cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1357 @echo "Building runtime libraries"; \
1358 $(MAKE) all LANGUAGES="c c++"
1359
6599da04
JM
1360.PHONY: check-gcc
1361check-gcc:
1362 @if [ -f ./gcc/Makefile ] ; then \
1363 r=`pwd`; export r; \
1364 s=`cd $(srcdir); pwd`; export s; \
1365 $(SET_LIB_PATH) \
1366 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1367 else \
1368 true; \
1369 fi
1370
1371.PHONY: install-gcc
1372install-gcc:
1373 @if [ -f ./gcc/Makefile ] ; then \
1374 r=`pwd`; export r; \
1375 s=`cd $(srcdir); pwd`; export s; \
1376 $(SET_LIB_PATH) \
3cd730af 1377 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
6599da04
JM
1378 else \
1379 true; \
1380 fi
1381
205cba53
JL
1382.PHONY: install-gcc-cross
1383install-gcc-cross:
1384 @if [ -f ./gcc/Makefile ] ; then \
1385 r=`pwd`; export r; \
1386 s=`cd $(srcdir); pwd`; export s; \
1387 $(SET_LIB_PATH) \
3cd730af 1388 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
205cba53
JL
1389 else \
1390 true; \
1391 fi
6599da04
JM
1392# EXPERIMENTAL STUFF
1393# This rule is used to install the modules which use FLAGS_TO_PASS.
1394# To build a target install-X means to cd to X and make install.
1395.PHONY: install-dosrel
1396install-dosrel: installdirs info
1397 @dir=`echo $@ | sed -e 's/install-//'`; \
1398 if [ -f ./$${dir}/Makefile ] ; then \
1399 r=`pwd`; export r; \
1400 s=`cd $(srcdir); pwd`; export s; \
1401 $(SET_LIB_PATH) \
1402 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1403 else \
1404 true; \
1405 fi
1406
1407install-dosrel-fake:
1408
1409
1410# This is a list of inter-dependencies among modules.
1411all-apache:
1412all-autoconf: all-m4 all-texinfo
1413all-automake:
1414all-bash:
1415all-bfd:
1416all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc
1417all-bison: all-texinfo
1418all-byacc:
1419all-cvs:
1420all-db:
1421all-dejagnu: all-tcl all-expect all-tk
1422all-diff: all-libiberty
1423all-emacs:
1424all-emacs19: all-bison all-byacc
1425all-etc:
1426configure-target-examples: $(ALL_GCC)
1427all-target-examples: configure-target-examples
1428all-expect: all-tcl all-tk
1429all-fileutils: all-libiberty
1430all-findutils:
1431all-find:
1432all-flex: all-libiberty all-bison all-byacc
1433all-gas: all-libiberty all-opcodes all-bfd
1434all-gash: all-tcl
1435all-gawk:
1436ALL_GCC = all-gcc
1437all-gcc: all-bison all-byacc all-binutils all-gas all-ld
6599da04
JM
1438GDB_TK = all-tk all-tcl all-itcl all-tix
1439all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1440all-gnuserv:
1441configure-target-gperf: $(ALL_GCC)
1442all-target-gperf: configure-target-gperf all-target-libiberty all-target-libg++
1443all-gprof: all-libiberty all-bfd all-opcodes
1444all-grep: all-libiberty
1445all-grez: all-libiberty all-bfd all-opcodes
1446all-gui: all-gdb all-libproc all-target-librx
1447all-guile:
1448all-gzip: all-libiberty
1449all-hello: all-libiberty
1450all-indent:
1451all-inet: all-tcl all-send-pr all-perl
1452all-ispell: all-emacs19
1453all-itcl: all-tcl all-tk
1454all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex
1455configure-target-libg++: $(ALL_GCC) configure-target-librx
1456all-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++
1457configure-target-libgloss: $(ALL_GCC)
1458all-target-libgloss: configure-target-libgloss configure-target-newlib
1459configure-target-libio: $(ALL_GCC)
1460all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
c9670e62 1461check-target-libio: all-target-libstdc++
6599da04
JM
1462all-libiberty:
1463configure-target-librx: $(ALL_GCC) configure-target-newlib
1464all-target-librx: configure-target-librx
1465configure-target-libstdc++: $(ALL_GCC)
1466all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
8821a725 1467all-target-libf2c: configure-target-libf2c all-gas all-ld all-gcc all-target-libiberty all-target-newlib
6599da04
JM
1468all-m4: all-libiberty
1469all-make: all-libiberty
1470all-mmalloc:
1471configure-target-newlib: $(ALL_GCC)
1472all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
1473all-opcodes: all-bfd all-libiberty
1474all-patch: all-libiberty
1475all-perl:
1476all-prms: all-libiberty
1477all-rcs:
1478all-readline:
1479all-recode: all-libiberty
1480all-sed: all-libiberty
1481all-send-pr: all-prms
1482all-shellutils:
1483all-sim: all-libiberty all-bfd all-opcodes
1484all-sn: all-tcl all-tk all-itcl all-db all-grep
1485all-tar: all-libiberty
1486all-tcl:
1487all-tclX: all-tcl all-tk
1488all-tk: all-tcl
1489all-texinfo: all-libiberty
1490all-textutils:
1491all-tgas: all-libiberty all-bfd all-opcodes
1492all-time:
1493all-tix: all-tcl all-tk
1494all-wdiff:
1495all-target-winsup: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup
1496configure-target-winsup: configure-target-newlib
1497all-uudecode: all-libiberty
1498configure-target-libiberty: $(ALL_GCC)
1499all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
1500all-target: $(ALL_TARGET_MODULES)
1501install-target: $(INSTALL_TARGET_MODULES)
1502
1503### other supporting targets
1504
1505MAKEDIRS= \
1506 $(prefix) \
1507 $(exec_prefix)
1508.PHONY: installdirs
1509installdirs: mkinstalldirs
1510 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1511
1512dir.info: do-install-info
1513 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1514 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1515 mv -f dir.info.new dir.info ; \
1516 else true ; \
1517 fi
1518
1519dist:
1520 @echo "Building a full distribution of this tree isn't done"
1521 @echo "via 'make dist'. Check out the etc/ subdirectory"
1522
1523etags tags: TAGS
1524
1525# Right now this just builds TAGS in each subdirectory. emacs19 has the
1526# ability to use several tags files at once, so there is probably no need
1527# to combine them into one big TAGS file (like CVS 1.3 does). We could
1528# (if we felt like it) have this Makefile write a piece of elisp which
1529# the user could load to tell emacs19 where all the TAGS files we just
1530# built are.
1531TAGS: do-TAGS
1532
1533# with the gnu make, this is done automatically.
1534
1535Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
1536 $(SHELL) ./config.status
1537
1538#
1539# Support for building net releases
1540
1541# Files in devo used in any net release.
1542# ChangeLog omitted because it may refer to files which are not in this
1543# distribution (perhaps it would be better to include it anyway).
1544DEVO_SUPPORT= README Makefile.in configure configure.in \
1545 config.guess config.sub config move-if-change \
1546 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1547 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1548 mkinstalldirs ltconfig ltmain.sh missing ylwrap
1549
1550# Files in devo/etc used in any net release.
1551# ChangeLog omitted because it may refer to files which are not in this
1552# distribution (perhaps it would be better to include it anyway).
1553ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1554 make-stds.texi standards.info*
1555
1556# When you use `make setup-dirs' or `make taz' you should always redefine
1557# this macro.
1558SUPPORT_FILES = list-of-support-files-for-tool-in-question
1559
1560.PHONY: taz
1561
1562taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
1563 texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1564 # Take out texinfo from a few places; make simple BISON=bison line.
1565 sed -e '/^all\.normal: /s/\all-texinfo //' \
1566 -e '/^ install-texinfo /d' \
1567 <Makefile.in >tmp
1568 mv -f tmp Makefile.in
1569 #
1570 ./configure sun4
1571 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1572 || $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
1573 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1574 # Make links, and run "make diststuff" or "make info" when needed.
1575 rm -rf proto-toplev ; mkdir proto-toplev
1576 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1577 for d in $$dirs ; do \
1578 if [ -d $$d ]; then \
1579 if [ ! -f $$d/Makefile ] ; then true ; \
1580 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1581 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1582 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1583 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1584 fi ; \
1585 if [ -d $$d/proto-$$d.dir ]; then \
1586 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1587 else \
1588 ln -s ../$$d proto-toplev/$$d ; \
1589 fi ; \
1590 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1591 done
1592 cd etc ; $(MAKE) info
1593 $(MAKE) distclean
1594 #
1595 mkdir proto-toplev/etc
1596 (cd proto-toplev/etc; \
1597 for i in $(ETC_SUPPORT); do \
1598 ln -s ../../etc/$$i . ; \
1599 done)
1600 #
1601 # Take out texinfo from configurable dirs
1602 rm proto-toplev/configure.in
1603 sed -e '/^host_tools=/s/texinfo //' \
1604 <configure.in >proto-toplev/configure.in
1605 #
1606 mkdir proto-toplev/texinfo
1607 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1608 ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
1609 ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
1610 if test -r texinfo/util/tex3patch ; then \
1611 mkdir proto-toplev/texinfo/util && \
1612 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1613 else true; fi
1614 chmod og=u `find . -print`
1615 if grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1616 ver=`sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'`; \
1617 else \
1618 ver=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1619 fi; \
1620 $(MAKE) -f Makefile.in do-tar-gz TOOL=$(TOOL) VER=$$ver
1621
1622do-tar-gz:
1623 echo "==> Making $(TOOL)-$(VER).tar.gz"
1624 -rm -f $(TOOL)-$(VER)
1625 ln -s proto-toplev $(TOOL)-$(VER)
1626 tar cfh $(TOOL)-$(VER).tar $(TOOL)-$(VER)
1627 $(GZIPPROG) -v -9 $(TOOL)-$(VER).tar
1628
1629TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
1630DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1631
1632.PHONY: gas.tar.gz
1633GAS_SUPPORT_DIRS= bfd include libiberty opcodes setup.com makefile.vms
1634gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1635 $(MAKE) -f Makefile.in taz TOOL=gas \
1636 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1637
1638# The FSF "binutils" release includes gprof and ld.
1639.PHONY: binutils.tar.gz
1640BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof setup.com makefile.vms
1641binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
1642 $(MAKE) -f Makefile.in taz TOOL=binutils \
1643 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1644
1645.PHONY: gas+binutils.tar.gz
1646GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
1647gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
1648 $(MAKE) -f Makefile.in taz TOOL=gas \
1649 SUPPORT_FILES="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1650
1651.PHONY: libg++.tar.gz
1652LIBGXX_SUPPORT_DIRS=include libstdc++ libio librx libiberty
1653libg++.tar.gz: $(DIST_SUPPORT) libg++
1654 $(MAKE) -f Makefile.in taz TOOL=libg++ \
1655 SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
1656
1657GNATS_SUPPORT_DIRS=include libiberty send-pr
1658gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
1659 $(MAKE) -f Makefile.in taz TOOL=gnats \
1660 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
1661
1662.PHONY: gdb.tar.gz
1663GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils
1664GDBTK_SUPPORT_DIRS= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1665gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
1666 $(MAKE) -f Makefile.in taz TOOL=gdb \
1667 SUPPORT_FILES="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1668
1669.PHONY: newlib.tar.gz
1670NEWLIB_SUPPORT_DIRS=libgloss
1671# taz configures for the sun4 target which won't configure newlib.
1672# We need newlib configured so that the .info files are made.
1673# Unfortunately, it is not enough to just configure newlib separately:
1674# taz will build the .info files but since SUBDIRS won't contain newlib,
1675# distclean won't be run (leaving Makefile, config.status, and the tmp files
1676# used in building the .info files, eg: *.def, *.ref).
1677# The problem isn't solvable however without a lot of extra work because
1678# target libraries are built in subdir $(target_alias) which gets nuked during
1679# the make distclean. For now punt on the issue of shipping newlib info files
1680# with newlib net releases and wait for a day when some native target (sun4?)
1681# supports newlib (if only minimally).
1682newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
1683 $(MAKE) -f Makefile.in taz TOOL=newlib \
1684 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
1685 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1686
1687.NOEXPORT:
1688MAKEOVERRIDES=
1689
1690
1691# end of Makefile.in
This page took 0.258726 seconds and 5 git commands to generate.