2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001 Free Software Foundation
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # Tell GNU make 3.79 not to run the top level in parallel. This
22 # prevents contention for $builddir/$target/config.cache, as well
23 # as minimizing scatter in file system caches.
24 NOTPARALLEL = .NOTPARALLEL
30 exec_prefix = $(prefix)
32 bindir=${exec_prefix}/bin
33 sbindir=${exec_prefix}/sbin
34 libexecdir=${exec_prefix}/libexec
35 datadir=${prefix}/share
36 sysconfdir=${prefix}/etc
37 sharedstatedir=${prefix}/com
38 localstatedir=${prefix}/var
39 libdir=${exec_prefix}/lib
40 includedir=${prefix}/include
41 oldincludedir=/usr/include
42 infodir=${prefix}/info
44 gxx_include_dir=${includedir}/g++
46 tooldir = $(exec_prefix)/$(target_alias)
47 build_tooldir = $(exec_prefix)/$(target_alias)
49 program_transform_name =
51 man1dir = $(mandir)/man1
52 man2dir = $(mandir)/man2
53 man3dir = $(mandir)/man3
54 man4dir = $(mandir)/man4
55 man5dir = $(mandir)/man5
56 man6dir = $(mandir)/man6
57 man7dir = $(mandir)/man7
58 man8dir = $(mandir)/man8
59 man9dir = $(mandir)/man9
60 infodir = $(prefix)/info
61 includedir = $(prefix)/include
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
68 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
70 INSTALL_PROGRAM_ARGS =
72 INSTALL = $(SHELL) $$s/install-sh -c
73 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
74 INSTALL_SCRIPT = $(INSTALL)
75 INSTALL_DATA = $(INSTALL) -m 644
77 INSTALL_DOSREL = install-dosrel-fake
84 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
85 # here so that they can be overridden by Makefile fragments.
86 HOST_CC = $(CC_FOR_BUILD)
88 HOST_PREFIX_1 = loser-
90 # These flag values are normally overridden by the configure script.
96 CFLAGS_FOR_BUILD = $(CFLAGS)
97 CFLAGS_FOR_TARGET = $(CFLAGS)
99 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
105 # Use -O2 to stress test the compiler.
106 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
107 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
108 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
120 # These values are substituted by configure.
125 BISON = `if [ -f $$r/bison/bison ] ; then \
126 echo $$r/bison/bison -L $$s/bison/ ; \
131 YACC = `if [ -f $$r/bison/bison ] ; then \
132 echo $$r/bison/bison -y -L $$s/bison/ ; \
133 elif [ -f $$r/byacc/byacc ] ; then \
134 echo $$r/byacc/byacc ; \
136 echo ${DEFAULT_YACC} ; \
139 LEX = `if [ -f $$r/flex/flex ] ; \
140 then echo $$r/flex/flex ; \
141 else echo ${DEFAULT_LEX} ; fi`
143 M4 = `if [ -f $$r/m4/m4 ] ; \
144 then echo $$r/m4/m4 ; \
145 else echo ${DEFAULT_M4} ; fi`
147 # For an installed makeinfo, we require it to be from texinfo 4 or
148 # higher, else we use the "missing" dummy.
149 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
150 then echo $$r/texinfo/makeinfo/makeinfo ; \
151 else if (makeinfo --version \
152 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
153 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
155 # This just becomes part of the MAKEINFO definition passed down to
156 # sub-makes. It lets flags be given on the command line while still
157 # using the makeinfo from the object tree.
160 EXPECT = `if [ -f $$r/expect/expect ] ; \
161 then echo $$r/expect/expect ; \
162 else echo expect ; fi`
164 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
165 then echo $$s/dejagnu/runtest ; \
166 else echo runtest ; fi`
169 # compilers to use to create programs which must be run in the build
172 CXX_FOR_BUILD = $(CXX)
174 SUBDIRS = "this is set via configure, don't edit this"
177 # This is set by the configure script to the list of directories which
178 # should be built using the target tools.
179 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib librx winsup opcodes bsp libstub cygmon libf2c libobjc
181 # Target libraries are put under this directory:
182 # Changed by configure to $(target_alias) if cross.
185 BUILD_CONFIGDIRS = libiberty
188 # This is set by the configure script to the arguments to use when configuring
189 # directories built for the target.
192 # This is set by the configure script to the arguments to use when configuring
193 # directories built for the build system.
196 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
200 # This is the name of the environment variable used for the path to
201 # the libraries. This may be changed by configure.in.
202 RPATH_ENVVAR = LD_LIBRARY_PATH
204 # This is the list of directories that may be needed in RPATH_ENVVAR
205 # so that programs built for the host machine work.
206 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
208 # This is the list of directories that may be needed in RPATH_ENVVAR
209 # so that prorgams built for the target machine work.
210 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
212 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
213 # Some platforms don't like blank entries, so we remove duplicate,
214 # leading and trailing colons.
215 REALLY_SET_LIB_PATH = \
216 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
219 INSTALL_TARGET = installdirs \
222 $(INSTALL_TARGET_MODULES) \
223 $(INSTALL_X11_MODULES) \
226 INSTALL_TARGET_CROSS = installdirs \
229 $(INSTALL_TARGET_MODULES) \
230 $(INSTALL_X11_MODULES) \
233 # Should be substed by configure.in
237 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =
240 # If GCC_FOR_TARGET is not overriden on the command line, then this
241 # variable is passed down to the gcc Makefile, where it is used to
242 # build libgcc2.a. We define it here so that it can itself be
243 # overridden on the command line.
244 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
247 if [ -f $$r/gas/as-new ] ; then \
248 echo $$r/gas/as-new ; \
249 elif [ -f $$r/gcc/xgcc ]; then \
250 $(CC_FOR_TARGET) -print-prog-name=as ; \
252 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
255 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
260 if [ -f $$r/ld/ld-new ] ; then \
261 echo $$r/ld/ld-new ; \
262 elif [ -f $$r/gcc/xgcc ]; then \
263 $(CC_FOR_TARGET) -print-prog-name=ld ; \
265 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
268 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
272 DLLTOOL_FOR_TARGET = ` \
273 if [ -f $$r/binutils/dlltool ] ; then \
274 echo $$r/binutils/dlltool ; \
276 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
279 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
283 WINDRES_FOR_TARGET = ` \
284 if [ -f $$r/binutils/windres ] ; then \
285 echo $$r/binutils/windres ; \
287 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
290 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
295 if [ -f $$r/binutils/ar ] ; then \
296 echo $$r/binutils/ar ; \
298 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
301 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
305 RANLIB_FOR_TARGET = ` \
306 if [ -f $$r/binutils/ranlib ] ; then \
307 echo $$r/binutils/ranlib ; \
309 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
310 if [ x'$(RANLIB)' != x ]; then \
316 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
321 if [ -f $$r/binutils/nm-new ] ; then \
322 echo $$r/binutils/nm-new ; \
323 elif [ -f $$r/gcc/xgcc ]; then \
324 $(CC_FOR_TARGET) -print-prog-name=nm ; \
326 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
329 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
333 # The first rule in the file had better be this one. Don't put any above it.
334 # This lives here to allow makefile fragments to contain dependencies.
338 # These can be overridden by config/mt-*.
339 # The _TARGET_ is because they're specified in mt-foo.
340 # The _HOST_ is because they're programs that run on the host.
341 EXTRA_TARGET_HOST_ALL_MODULES =
342 EXTRA_TARGET_HOST_INSTALL_MODULES =
343 EXTRA_TARGET_HOST_CHECK_MODULES =
345 #### host and target specific makefile fragments come in here.
348 # Flags to pass down to all sub-makes.
349 # Please keep these in alphabetical order.
350 BASE_FLAGS_TO_PASS = \
351 "AR_FLAGS=$(AR_FLAGS)" \
352 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
353 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
355 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
356 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
358 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
359 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
360 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
361 "CXXFLAGS=$(CXXFLAGS)" \
362 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
363 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
364 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
365 "INSTALL=$(INSTALL)" \
366 "INSTALL_DATA=$(INSTALL_DATA)" \
367 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
368 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
369 "LDFLAGS=$(LDFLAGS)" \
371 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
372 "LIBCFLAGS=$(LIBCFLAGS)" \
373 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
374 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
375 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
378 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
379 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
380 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
381 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
384 "RUNTEST=$(RUNTEST)" \
385 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
386 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
387 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
390 "datadir=$(datadir)" \
391 "exec_prefix=$(exec_prefix)" \
392 "includedir=$(includedir)" \
393 "infodir=$(infodir)" \
395 "libexecdir=$(libexecdir)" \
396 "lispdir=$(lispdir)" \
397 "libstdcxx_incdir=$(libstdcxx_incdir)" \
398 "libsubdir=$(libsubdir)" \
399 "localstatedir=$(localstatedir)" \
401 "oldincludedir=$(oldincludedir)" \
403 "sbindir=$(sbindir)" \
404 "sharedstatedir=$(sharedstatedir)" \
405 "sysconfdir=$(sysconfdir)" \
406 "tooldir=$(tooldir)" \
407 "build_tooldir=$(build_tooldir)" \
408 "gxx_include_dir=$(gxx_include_dir)" \
409 "gcc_version=$(gcc_version)" \
410 "gcc_version_trigger=$(gcc_version_trigger)" \
411 "target_alias=$(target_alias)"
413 # For any flags above that may contain shell code that varies from one
414 # target library to another. When doing recursive invocations of the
415 # top-level Makefile, we don't want the outer make to evaluate them,
416 # so we pass these variables down unchanged. They must not contain
417 # single nor double quotes.
419 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
421 # Flags to pass down to most sub-makes, in which we're building with
422 # the host environment.
423 # If any variables are added here, they must be added to do-*, below.
429 'DLLTOOL=$(DLLTOOL)' \
432 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
435 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
437 # Flags that are concerned with the location of the X11 include files
440 # NOTE: until the top-level is getting the values via autoconf, it only
441 # causes problems to have this top-level Makefile overriding the autoconf-set
442 # values in child directories. Only variables that don't conflict with
443 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
445 X11_FLAGS_TO_PASS = \
446 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
447 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
449 # Flags to pass down to makes which are built with the target environment.
450 # The double $ decreases the length of the command line; the variables
451 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
452 # If any variables are added here, they must be added to do-*, below.
453 EXTRA_TARGET_FLAGS = \
454 'AR=$$(AR_FOR_TARGET)' \
455 'AS=$$(AS_FOR_TARGET)' \
456 'CC=$$(CC_FOR_TARGET)' \
457 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
458 'CXX=$$(CXX_FOR_TARGET)' \
459 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
460 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
461 'LD=$$(LD_FOR_TARGET)' \
462 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
463 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
464 'NM=$$(NM_FOR_TARGET)' \
465 'RANLIB=$$(RANLIB_FOR_TARGET)' \
466 'WINDRES=$$(WINDRES_FOR_TARGET)'
468 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
470 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
471 # unfortunately needs the native compiler and the target ar and
473 # If any variables are added here, they must be added to do-*, below.
474 # The HOST_* variables are a special case, which are used for the gcc
475 # cross-building scheme.
481 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
482 'HOST_CC=$(CC_FOR_BUILD)' \
483 'HOST_PREFIX=$(HOST_PREFIX)' \
484 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
486 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
487 'WINDRES=$$(WINDRES_FOR_TARGET)' \
488 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
489 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
490 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
491 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
492 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
493 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
494 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
495 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
496 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
501 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
503 # This is a list of the targets for all of the modules which are compiled
504 # using the build machine's native compiler. Configure edits the second
505 # macro for build!=host builds.
506 ALL_BUILD_MODULES_LIST = \
510 # This is a list of the configure targets for all of the modules which
511 # are compiled using the native tools.
512 CONFIGURE_BUILD_MODULES = \
513 configure-build-libiberty
515 # This is a list of the targets for all of the modules which are compiled
516 # using $(FLAGS_TO_PASS).
586 $(EXTRA_TARGET_HOST_ALL_MODULES)
588 # This is a list of the check targets for all of the modules which are
589 # compiled using $(FLAGS_TO_PASS).
591 # The list is in two parts. The first lists those tools which
592 # are tested as part of the host's native tool-chain, and not
593 # tested in a cross configuration.
594 NATIVE_CHECK_MODULES = \
601 CROSS_CHECK_MODULES = \
660 $(EXTRA_TARGET_HOST_CHECK_MODULES)
662 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
664 # This is a list of the install targets for all of the modules which are
665 # compiled using $(FLAGS_TO_PASS).
666 # We put install-opcodes before install-binutils because the installed
667 # binutils might be on PATH, and they might need the shared opcodes
669 # We put install-tcl before install-itcl because itcl wants to run a
670 # program on installation which uses the Tcl libraries.
737 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
739 # This is a list of the targets for all of the modules which are compiled
740 # using $(X11_FLAGS_TO_PASS).
753 # This is a list of the check targets for all of the modules which are
754 # compiled using $(X11_FLAGS_TO_PASS).
755 CHECK_X11_MODULES = \
765 # This is a list of the install targets for all the modules which are
766 # compiled using $(X11_FLAGS_TO_PASS).
767 INSTALL_X11_MODULES = \
779 # This is a list of the targets for all of the modules which are compiled
780 # using $(TARGET_FLAGS_TO_PASS).
781 ALL_TARGET_MODULES = \
782 all-target-libstdc++-v3 \
787 all-target-libtermcap \
789 all-target-libgloss \
790 all-target-libiberty \
792 all-target-examples \
797 all-target-boehm-gc \
798 all-target-qthreads \
802 # This is a list of the configure targets for all of the modules which
803 # are compiled using the target tools.
804 CONFIGURE_TARGET_MODULES = \
805 configure-target-libstdc++-v3 \
806 configure-target-librx \
807 configure-target-newlib \
808 configure-target-libf2c \
809 configure-target-libobjc \
810 configure-target-libtermcap \
811 configure-target-winsup \
812 configure-target-libgloss \
813 configure-target-libiberty \
814 configure-target-gperf \
815 configure-target-examples \
816 configure-target-libstub \
817 configure-target-libffi \
818 configure-target-libjava \
819 configure-target-zlib \
820 configure-target-boehm-gc \
821 configure-target-qthreads \
822 configure-target-bsp \
823 configure-target-cygmon
825 # This is a list of the check targets for all of the modules which are
826 # compiled using $(TARGET_FLAGS_TO_PASS).
827 CHECK_TARGET_MODULES = \
828 check-target-libstdc++-v3 \
829 check-target-newlib \
830 check-target-libf2c \
831 check-target-libobjc \
832 check-target-winsup \
833 check-target-libiberty \
834 check-target-libffi \
835 check-target-libjava \
837 check-target-boehm-gc \
838 check-target-qthreads \
841 # This is a list of the install targets for all of the modules which are
842 # compiled using $(TARGET_FLAGS_TO_PASS).
843 INSTALL_TARGET_MODULES = \
844 install-target-libstdc++-v3 \
845 install-target-newlib \
846 install-target-libf2c \
847 install-target-libobjc \
848 install-target-libtermcap \
849 install-target-winsup \
850 install-target-libgloss \
851 install-target-libiberty \
853 install-target-libjava \
854 install-target-zlib \
855 install-target-boehm-gc \
856 install-target-qthreads \
859 # This is a list of the targets for which we can do a clean-{target}.
929 # All of the target modules that can be cleaned
930 CLEAN_TARGET_MODULES = \
931 clean-target-libstdc++-v3 \
933 clean-target-newlib \
934 clean-target-libf2c \
935 clean-target-libobjc \
936 clean-target-winsup \
937 clean-target-libgloss \
938 clean-target-libiberty \
940 clean-target-examples \
941 clean-target-libstub \
942 clean-target-libffi \
943 clean-target-libjava \
945 clean-target-boehm-gc \
946 clean-target-qthreads \
950 # All of the x11 modules that can be cleaned
951 CLEAN_X11_MODULES = \
962 # The target built for a native build.
965 $(ALL_BUILD_MODULES) \
968 $(ALL_TARGET_MODULES) \
971 # Do a target for all the subdirectories. A ``make do-X'' will do a
972 # ``make X'' in all subdirectories (because, in general, there is a
973 # dependency (below) of X upon do-X, a ``make X'' will also do this,
974 # but it may do additional work as well).
975 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
976 # because it is so large that it can easily overflow the command line
977 # length limit on some systems.
986 do-maintainer-clean \
990 @target=`echo $@ | sed -e 's/^do-//'`; \
992 s=`cd $(srcdir); pwd`; export s; \
994 for i in $(SUBDIRS) -dummy-; do \
995 if [ -f ./$$i/Makefile ]; then \
998 for flag in $(EXTRA_GCC_FLAGS); do \
999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1003 for flag in $(EXTRA_HOST_FLAGS); do \
1004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1011 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1014 then true; else exit 1; fi; \
1017 @target=`echo $@ | sed -e 's/^do-//'`; \
1018 r=`pwd`; export r; \
1019 s=`cd $(srcdir); pwd`; export s; \
1021 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1022 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1023 for flag in $(EXTRA_TARGET_FLAGS); do \
1024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1026 if (cd $(TARGET_SUBDIR)/$$i; \
1027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1029 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1032 then true; else exit 1; fi; \
1036 # Here are the targets which correspond to the do-X targets.
1038 .PHONY: info installcheck dvi install-info
1039 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1040 .PHONY: local-clean local-distclean local-maintainer-clean
1042 installcheck: do-installcheck
1045 # Make sure makeinfo is built before we do a `make info'.
1046 do-info: all-texinfo
1048 install-info: do-install-info dir.info
1049 s=`cd $(srcdir); pwd`; export s; \
1050 if [ -f dir.info ] ; then \
1051 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1055 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1058 -rm -f Makefile config.status config.cache mh-frag mt-frag
1059 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1060 rm -rf $(TARGET_SUBDIR); \
1062 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1063 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1064 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1065 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1066 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1068 local-maintainer-clean:
1069 @echo "This command is intended for maintainers to use;"
1070 @echo "it deletes files that may require special tools to rebuild."
1072 clean: do-clean local-clean
1073 mostlyclean: do-mostlyclean local-clean
1074 distclean: do-distclean local-clean local-distclean
1075 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1076 maintainer-clean: local-distclean
1077 realclean: maintainer-clean
1079 # This rule is used to clean specific modules.
1080 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1081 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1082 @dir=`echo $@ | sed -e 's/clean-//'`; \
1083 if [ -f ./$${dir}/Makefile ] ; then \
1084 r=`pwd`; export r; \
1085 s=`cd $(srcdir); pwd`; export s; \
1087 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1092 .PHONY: $(CLEAN_TARGET_MODULES)
1093 $(CLEAN_TARGET_MODULES):
1094 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1095 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1096 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1097 r=`pwd`; export r; \
1098 s=`cd $(srcdir); pwd`; export s; \
1100 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1105 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1106 clean-target-libgcc:
1107 test ! -d gcc/libgcc || \
1108 (cd gcc/libgcc && find . -type d -print) | \
1109 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1114 .PHONY: check do-check
1116 $(MAKE) do-check NOTPARALLEL=parallel-ok
1118 do-check: $(CHECK_MODULES) \
1119 $(CHECK_TARGET_MODULES) \
1120 $(CHECK_X11_MODULES) \
1123 # Automated reporting of test results.
1125 warning.log: build.log
1126 $(srcdir)/contrib/warn_summary build.log > $@
1129 if test x'$(BOOT_CFLAGS)' != x''; then \
1130 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1132 $(srcdir)/contrib/test_summary -t >$@
1134 echo If you really want to send e-mail, run ./$@ now
1136 mail-report-with-warnings.log: warning.log
1137 if test x'$(BOOT_CFLAGS)' != x''; then \
1138 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1140 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1142 echo If you really want to send e-mail, run ./$@ now
1144 # Installation targets.
1146 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1147 install: $(INSTALL_TARGET)
1148 install-cross: $(INSTALL_TARGET_CROSS)
1151 @echo "the uninstall target is not supported in this tree"
1154 $(MAKE) -f ./release/Build-A-Release \
1155 host=$(host_alias) source-vault
1158 $(MAKE) -f ./release/Build-A-Release \
1159 host=$(host_alias) target=$(target_alias)
1162 @if [ -f ./release/vault-install ] ; then \
1163 ./release/vault-install $(host_alias) $(target_alias) ; \
1169 install.all: install-no-fixedincludes
1170 @if [ -f ./gcc/Makefile ] ; then \
1171 r=`pwd` ; export r ; \
1174 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1179 # inet-install is used because the I*Net wants DejaGNU installed but
1180 # not built. Similarly, gzip is built but not installed.
1182 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1184 # install-no-fixedincludes is used because Cygnus can not distribute
1185 # the fixed header files.
1186 .PHONY: install-no-fixedincludes
1187 install-no-fixedincludes: \
1189 $(INSTALL_MODULES) \
1190 $(INSTALL_TARGET_MODULES) \
1191 $(INSTALL_X11_MODULES) \
1192 gcc-no-fixedincludes
1194 # Install the gcc headers files, but not the fixed include files,
1195 # which Cygnus is not allowed to distribute. This rule is very
1196 # dependent on the workings of the gcc Makefile.in.
1197 .PHONY: gcc-no-fixedincludes
1198 gcc-no-fixedincludes:
1199 @if [ -f ./gcc/Makefile ]; then \
1200 rm -rf gcc/tmp-include; \
1201 mv gcc/include gcc/tmp-include 2>/dev/null; \
1202 mkdir gcc/include; \
1203 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1204 touch gcc/stmp-fixinc gcc/include/fixed; \
1205 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1206 r=`pwd`; export r; \
1207 s=`cd $(srcdir); pwd` ; export s; \
1210 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1211 rm -rf gcc/include; \
1212 mv gcc/tmp-include gcc/include 2>/dev/null; \
1215 # This rule is used to build the modules which are built with the
1216 # build machine's native compiler.
1217 .PHONY: $(ALL_BUILD_MODULES)
1218 $(ALL_BUILD_MODULES):
1219 dir=`echo $@ | sed -e 's/all-build-//'`; \
1220 if [ -f ./$${dir}/Makefile ] ; then \
1221 r=`pwd`; export r; \
1222 s=`cd $(srcdir); pwd`; export s; \
1223 (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1228 # This rule is used to configure the modules which are built with the
1230 .PHONY: $(CONFIGURE_BUILD_MODULES)
1231 $(CONFIGURE_BUILD_MODULES):
1232 @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1233 if [ ! -d $(BUILD_SUBDIR) ]; then \
1235 elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1237 elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1238 if [ -d $(srcdir)/$${dir} ]; then \
1239 [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1240 r=`pwd`; export r; \
1241 s=`cd $(srcdir); pwd`; export s; \
1242 AR="$(AR_FOR_BUILD)"; export AR; \
1243 AS="$(AS_FOR_BUILD)"; export AS; \
1244 CC="$(CC_FOR_BUILD)"; export CC; \
1245 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1246 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1247 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1248 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1249 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1250 LD="$(LD_FOR_BUILD)"; export LD; \
1251 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1252 NM="$(NM_FOR_BUILD)"; export NM; \
1253 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1254 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1255 echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1256 cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1258 /* | [A-Za-z]:[\\/]*) \
1259 topdir=$(srcdir) ;; \
1261 case "$(BUILD_SUBDIR)" in \
1262 .) topdir="../$(srcdir)" ;; \
1263 *) topdir="../../$(srcdir)" ;; \
1266 if [ "$(srcdir)" = "." ] ; then \
1267 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1268 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1269 if [ -f Makefile ]; then \
1270 if $(MAKE) distclean; then \
1284 srcdiroption="--srcdir=."; \
1287 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1288 libsrcdir="$$s/$${dir}"; \
1290 if [ -f $${libsrcdir}/configure ] ; then \
1291 rm -f no-such-file skip-this-dir; \
1292 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1293 $(BUILD_CONFIGARGS) $${srcdiroption} \
1294 --with-build-subdir="$(BUILD_SUBDIR)"; \
1296 rm -f no-such-file skip-this-dir; \
1297 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1298 $(BUILD_CONFIGARGS) $${srcdiroption} \
1299 --with-build-subdir="$(BUILD_SUBDIR)"; \
1301 if [ -f skip-this-dir ] ; then \
1303 rm -f skip-this-dir; \
1304 cd ..; rmdir $${dir} || true; \
1315 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1316 # build a target all-X means to cd to X and make all.
1318 # all-gui, and all-libproc are handled specially because
1319 # they are still experimental, and if they fail to build, that
1320 # shouldn't stop "make all".
1321 .PHONY: $(ALL_MODULES) all-gui all-libproc
1322 $(ALL_MODULES) all-gui all-libproc:
1323 @dir=`echo $@ | sed -e 's/all-//'`; \
1324 if [ -f ./$${dir}/Makefile ] ; then \
1325 r=`pwd`; export r; \
1326 s=`cd $(srcdir); pwd`; export s; \
1328 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1333 # These rules are used to check the modules which use FLAGS_TO_PASS.
1334 # To build a target check-X means to cd to X and make check. Some
1335 # modules are only tested in a native toolchain.
1337 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1338 $(NATIVE_CHECK_MODULES):
1339 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1340 dir=`echo $@ | sed -e 's/check-//'`; \
1341 if [ -f ./$${dir}/Makefile ] ; then \
1342 r=`pwd`; export r; \
1343 s=`cd $(srcdir); pwd`; export s; \
1345 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1351 $(CROSS_CHECK_MODULES):
1352 @dir=`echo $@ | sed -e 's/check-//'`; \
1353 if [ -f ./$${dir}/Makefile ] ; then \
1354 r=`pwd`; export r; \
1355 s=`cd $(srcdir); pwd`; export s; \
1357 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1362 # This rule is used to install the modules which use FLAGS_TO_PASS.
1363 # To build a target install-X means to cd to X and make install.
1364 .PHONY: $(INSTALL_MODULES)
1365 $(INSTALL_MODULES): installdirs
1366 @dir=`echo $@ | sed -e 's/install-//'`; \
1367 if [ -f ./$${dir}/Makefile ] ; then \
1368 r=`pwd`; export r; \
1369 s=`cd $(srcdir); pwd`; export s; \
1371 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1376 # This rule is used to configure the modules which are built with the
1378 .PHONY: $(CONFIGURE_TARGET_MODULES)
1379 $(CONFIGURE_TARGET_MODULES):
1380 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1381 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1382 r=`pwd`; export r; \
1383 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1384 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1385 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1386 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1387 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1389 echo "Multilibs changed for $${dir}, reconfiguring"; \
1390 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1391 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1394 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1397 fi; exit 0 # break command into two pieces
1398 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1399 if [ ! -d $(TARGET_SUBDIR) ]; then \
1401 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1403 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1404 if [ -d $(srcdir)/$${dir} ]; then \
1405 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1406 r=`pwd`; export r; \
1407 s=`cd $(srcdir); pwd`; export s; \
1409 AR="$(AR_FOR_TARGET)"; export AR; \
1410 AS="$(AS_FOR_TARGET)"; export AS; \
1411 CC="$(CC_FOR_TARGET)"; export CC; \
1412 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1413 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1414 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1415 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1416 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1417 LD="$(LD_FOR_TARGET)"; export LD; \
1418 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1419 NM="$(NM_FOR_TARGET)"; export NM; \
1420 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1421 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1422 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1423 cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
1425 /* | [A-Za-z]:[\\/]*) \
1426 topdir=$(srcdir) ;; \
1428 case "$(TARGET_SUBDIR)" in \
1429 .) topdir="../$(srcdir)" ;; \
1430 *) topdir="../../$(srcdir)" ;; \
1433 if [ "$(srcdir)" = "." ] ; then \
1434 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1435 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1436 if [ -f Makefile ]; then \
1437 if $(MAKE) distclean; then \
1451 srcdiroption="--srcdir=."; \
1454 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1455 libsrcdir="$$s/$${dir}"; \
1457 if [ -f $${libsrcdir}/configure ] ; then \
1458 rm -f no-such-file skip-this-dir; \
1459 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1460 $(TARGET_CONFIGARGS) $${srcdiroption} \
1461 --with-target-subdir="$(TARGET_SUBDIR)"; \
1463 rm -f no-such-file skip-this-dir; \
1464 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1465 $(TARGET_CONFIGARGS) $${srcdiroption} \
1466 --with-target-subdir="$(TARGET_SUBDIR)"; \
1468 if [ -f skip-this-dir ] ; then \
1470 rm -f skip-this-dir; \
1471 cd ..; rmdir $${dir} || true; \
1482 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1483 # To build a target all-X means to cd to X and make all.
1484 .PHONY: $(ALL_TARGET_MODULES)
1485 $(ALL_TARGET_MODULES):
1486 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1487 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1488 r=`pwd`; export r; \
1489 s=`cd $(srcdir); pwd`; export s; \
1491 (cd $(TARGET_SUBDIR)/$${dir}; \
1492 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1497 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1498 # To build a target install-X means to cd to X and make install.
1499 .PHONY: $(CHECK_TARGET_MODULES)
1500 $(CHECK_TARGET_MODULES):
1501 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1502 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1503 r=`pwd`; export r; \
1504 s=`cd $(srcdir); pwd`; export s; \
1506 (cd $(TARGET_SUBDIR)/$${dir}; \
1507 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1512 # This rule is used to install the modules which use
1513 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1515 .PHONY: $(INSTALL_TARGET_MODULES)
1516 $(INSTALL_TARGET_MODULES): installdirs
1517 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1518 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1519 r=`pwd`; export r; \
1520 s=`cd $(srcdir); pwd`; export s; \
1522 (cd $(TARGET_SUBDIR)/$${dir}; \
1523 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1528 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1529 # To build a target all-X means to cd to X and make all.
1530 .PHONY: $(ALL_X11_MODULES)
1532 @dir=`echo $@ | sed -e 's/all-//'`; \
1533 if [ -f ./$${dir}/Makefile ] ; then \
1534 r=`pwd`; export r; \
1535 s=`cd $(srcdir); pwd`; export s; \
1538 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1543 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1544 # To build a target check-X means to cd to X and make all.
1545 .PHONY: $(CHECK_X11_MODULES)
1546 $(CHECK_X11_MODULES):
1547 @dir=`echo $@ | sed -e 's/check-//'`; \
1548 if [ -f ./$${dir}/Makefile ] ; then \
1549 r=`pwd`; export r; \
1550 s=`cd $(srcdir); pwd`; export s; \
1553 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1558 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1559 # To build a target install-X means to cd to X and make install.
1560 .PHONY: $(INSTALL_X11_MODULES)
1561 $(INSTALL_X11_MODULES): installdirs
1562 @dir=`echo $@ | sed -e 's/install-//'`; \
1563 if [ -f ./$${dir}/Makefile ] ; then \
1564 r=`pwd`; export r; \
1565 s=`cd $(srcdir); pwd`; export s; \
1568 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1573 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1576 @if [ -f ./gcc/Makefile ] ; then \
1577 r=`pwd`; export r; \
1578 s=`cd $(srcdir); pwd`; export s; \
1580 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1585 # Building GCC uses some tools for rebuilding "source" files
1586 # like texinfo, bison/byacc, etc. So we must depend on those.
1588 # While building GCC, it may be necessary to run various target
1589 # programs like the assembler, linker, etc. So we depend on
1592 # In theory, on an SMP all those dependencies can be resolved
1595 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1596 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1597 @r=`pwd`; export r; \
1598 s=`cd $(srcdir); pwd`; export s; \
1600 echo "Bootstrapping the compiler"; \
1601 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1602 @r=`pwd`; export r; \
1603 s=`cd $(srcdir); pwd`; export s; \
1605 *bootstrap4-lean ) \
1606 msg="Comparing stage3 and stage4 of the compiler"; \
1607 compare=compare3-lean ;; \
1608 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1609 compare=compare3 ;; \
1610 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1611 compare=compare-lean ;; \
1612 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1613 compare=compare ;; \
1617 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1618 @r=`pwd`; export r; \
1619 s=`cd $(srcdir); pwd` ; export s; \
1621 echo "Building runtime libraries"; \
1622 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1625 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1626 @r=`pwd`; export r; \
1627 s=`cd $(srcdir); pwd`; export s; \
1629 echo "Building the C and C++ compiler"; \
1630 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1631 @r=`pwd`; export r; \
1632 s=`cd $(srcdir); pwd` ; export s; \
1634 echo "Building runtime libraries"; \
1635 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1636 LANGUAGES="c c++" all
1640 @if [ -f ./gcc/Makefile ] ; then \
1641 r=`pwd`; export r; \
1642 s=`cd $(srcdir); pwd`; export s; \
1644 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1651 @if [ -f ./gcc/Makefile ] ; then \
1652 r=`pwd`; export r; \
1653 s=`cd $(srcdir); pwd`; export s; \
1655 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1656 $(MAKE) check-target-libstdc++-v3; \
1663 @if [ -f ./gcc/Makefile ] ; then \
1664 r=`pwd`; export r; \
1665 s=`cd $(srcdir); pwd`; export s; \
1667 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1672 .PHONY: install-gcc-cross
1674 @if [ -f ./gcc/Makefile ] ; then \
1675 r=`pwd`; export r; \
1676 s=`cd $(srcdir); pwd`; export s; \
1678 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1682 # EXPERIMENTAL STUFF
1683 # This rule is used to install the modules which use FLAGS_TO_PASS.
1684 # To build a target install-X means to cd to X and make install.
1685 .PHONY: install-dosrel
1686 install-dosrel: installdirs info
1687 @dir=`echo $@ | sed -e 's/install-//'`; \
1688 if [ -f ./$${dir}/Makefile ] ; then \
1689 r=`pwd`; export r; \
1690 s=`cd $(srcdir); pwd`; export s; \
1692 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1697 install-dosrel-fake:
1700 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1701 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
1703 # This is a list of inter-dependencies among modules.
1706 all-autoconf: all-m4 all-texinfo
1707 all-automake: all-m4 all-texinfo
1709 all-bfd: all-libiberty all-intl
1710 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1711 all-bison: all-texinfo
1712 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
1713 all-target-boehm-gc: configure-target-boehm-gc
1714 configure-target-bsp: $(ALL_GCC_C)
1715 all-target-bsp: configure-target-bsp
1718 all-cgen: all-libiberty
1720 configure-target-cygmon: $(ALL_GCC_C)
1721 all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp
1723 all-dejagnu: all-tcl all-expect all-tk
1724 all-diff: all-libiberty
1726 all-emacs19: all-bison all-byacc
1728 configure-target-examples: $(ALL_GCC_C)
1729 all-target-examples: configure-target-examples
1730 all-expect: all-tcl all-tk
1731 all-fileutils: all-libiberty
1734 all-flex: all-libiberty all-bison all-byacc
1735 all-gas: all-libiberty all-opcodes all-bfd all-intl
1738 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1739 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1740 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1741 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1744 configure-target-gperf: $(ALL_GCC_CXX)
1745 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
1746 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1747 all-grep: all-libiberty
1748 all-grez: all-libiberty all-bfd all-opcodes
1749 all-gui: all-gdb all-libproc all-target-librx
1751 all-gzip: all-libiberty
1752 all-hello: all-libiberty
1754 all-inet: all-tcl all-send-pr all-perl
1756 all-ispell: all-emacs19
1757 all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
1758 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1759 configure-target-libgloss: $(ALL_GCC)
1760 all-target-libgloss: configure-target-libgloss configure-target-newlib
1761 all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1764 all-build-libiberty: configure-build-libiberty
1766 configure-target-libffi: $(ALL_GCC_C)
1767 all-target-libffi: configure-target-libffi
1768 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1769 all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1770 configure-target-librx: $(ALL_GCC_C)
1771 all-target-librx: configure-target-librx
1772 configure-target-libstdc++-v3: $(ALL_GCC_C)
1773 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1774 configure-target-libstub: $(ALL_GCC_C)
1775 all-target-libstub: configure-target-libstub
1777 configure-target-libf2c: $(ALL_GCC_C)
1778 all-target-libf2c: configure-target-libf2c all-target-libiberty
1779 configure-target-libobjc: $(ALL_GCC_C)
1780 all-target-libobjc: configure-target-libobjc all-target-libiberty
1781 all-m4: all-libiberty all-texinfo
1782 all-make: all-libiberty
1784 configure-target-newlib: $(ALL_GCC)
1785 all-target-newlib: configure-target-newlib
1786 configure-target-libtermcap: $(ALL_GCC_C)
1787 all-target-libtermcap: configure-target-libtermcap
1788 all-opcodes: all-bfd all-libiberty all-cgen
1789 all-patch: all-libiberty
1791 all-prms: all-libiberty
1792 configure-target-qthreads: $(ALL_GCC_C)
1793 all-target-qthreads: configure-target-qthreads
1796 all-recode: all-libiberty
1797 all-sed: all-libiberty
1798 all-send-pr: all-prms
1800 all-sid: all-tcl all-tk
1801 all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen
1802 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1803 all-tar: all-libiberty
1806 all-tclX: all-tcl all-tk
1808 all-tk8.1: all-tcl8.1
1809 all-texinfo: all-libiberty
1811 all-tgas: all-libiberty all-bfd all-opcodes
1813 all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
1815 configure-target-winsup: $(ALL_GCC_C)
1816 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
1817 all-uudecode: all-libiberty
1820 configure-target-zlib: $(ALL_GCC_C)
1821 all-target-zlib: configure-target-zlib
1822 all-fastjar: all-zlib all-libiberty
1823 configure-target-fastjar: configure-target-zlib
1824 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
1825 configure-target-libiberty: $(ALL_GCC_C)
1826 all-target-libiberty: configure-target-libiberty
1827 all-target: $(ALL_TARGET_MODULES)
1828 install-target: $(INSTALL_TARGET_MODULES)
1829 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1830 install-sid: install-tcl install-tk
1831 ### other supporting targets
1837 installdirs: mkinstalldirs
1838 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1840 dir.info: do-install-info
1841 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1842 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1843 mv -f dir.info.new dir.info ; \
1848 @echo "Building a full distribution of this tree isn't done"
1849 @echo "via 'make dist'. Check out the etc/ subdirectory"
1853 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1854 # ability to use several tags files at once, so there is probably no need
1855 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1856 # (if we felt like it) have this Makefile write a piece of elisp which
1857 # the user could load to tell emacs19 where all the TAGS files we just
1861 # with the gnu make, this is done automatically.
1863 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1864 $(SHELL) ./config.status
1867 # Support for building net releases
1869 # Files in devo used in any net release.
1870 # ChangeLog omitted because it may refer to files which are not in this
1871 # distribution (perhaps it would be better to include it anyway).
1872 DEVO_SUPPORT= README Makefile.in configure configure.in \
1873 config.guess config.if config.sub config move-if-change \
1874 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1875 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1876 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1877 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1879 # Files in devo/etc used in any net release.
1880 # ChangeLog omitted because it may refer to files which are not in this
1881 # distribution (perhaps it would be better to include it anyway).
1882 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1883 make-stds.texi standards.info* configure.texi configure.info* \
1884 configbuild.* configdev.*
1887 # When you use `make setup-dirs' or `make taz' you should always redefine
1889 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1891 # NOTE: No double quotes in the below. It is used within shell script
1893 VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1894 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1895 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1896 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1897 elif test -f $(TOOL)/version.in; then \
1898 head -1 $(TOOL)/version.in; \
1899 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1900 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1907 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1908 $(MAKE) -f Makefile.in do-proto-toplev \
1909 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1910 MD5PROG="$(MD5PROG)" \
1911 SUPPORT_FILES="$(SUPPORT_FILES)"
1912 $(MAKE) -f Makefile.in do-md5sum \
1913 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1914 MD5PROG="$(MD5PROG)" \
1915 SUPPORT_FILES="$(SUPPORT_FILES)"
1916 $(MAKE) -f Makefile.in do-tar \
1917 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1918 MD5PROG="$(MD5PROG)" \
1919 SUPPORT_FILES="$(SUPPORT_FILES)"
1920 $(MAKE) -f Makefile.in do-bz2 \
1921 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1922 MD5PROG="$(MD5PROG)" \
1923 SUPPORT_FILES="$(SUPPORT_FILES)"
1926 gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1927 $(MAKE) -f Makefile.in do-proto-toplev \
1928 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1929 MD5PROG="$(MD5PROG)" \
1930 SUPPORT_FILES="$(SUPPORT_FILES)"
1931 $(MAKE) -f Makefile.in do-md5sum \
1932 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1933 MD5PROG="$(MD5PROG)" \
1934 SUPPORT_FILES="$(SUPPORT_FILES)"
1935 $(MAKE) -f Makefile.in do-djunpack \
1936 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1937 MD5PROG="$(MD5PROG)" \
1938 SUPPORT_FILES="$(SUPPORT_FILES)"
1939 $(MAKE) -f Makefile.in do-tar \
1940 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1941 MD5PROG="$(MD5PROG)" \
1942 SUPPORT_FILES="$(SUPPORT_FILES)"
1945 gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1946 $(MAKE) -f Makefile.in gdb-tar \
1947 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1948 MD5PROG="$(MD5PROG)" \
1949 SUPPORT_FILES="$(SUPPORT_FILES)"
1950 $(MAKE) -f Makefile.in do-bz2 \
1951 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1952 MD5PROG="$(MD5PROG)" \
1953 SUPPORT_FILES="$(SUPPORT_FILES)"
1955 .PHONY: do-proto-toplev
1956 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1957 echo "==> Making $(PACKAGE)-$(VER)/"
1958 # Take out texinfo from a few places.
1959 sed -e '/^all\.normal: /s/\all-texinfo //' \
1960 -e '/^ install-texinfo /d' \
1962 mv -f tmp Makefile.in
1965 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1966 || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1967 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
1968 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1969 # Make links, and run "make diststuff" or "make info" when needed.
1970 rm -rf proto-toplev ; mkdir proto-toplev
1971 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1972 for d in $$dirs ; do \
1973 if [ -d $$d ]; then \
1974 if [ ! -f $$d/Makefile ] ; then true ; \
1975 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1976 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1977 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1978 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1980 if [ -d $$d/proto-$$d.dir ]; then \
1981 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1983 ln -s ../$$d proto-toplev/$$d ; \
1985 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1987 cd etc && $(MAKE) info
1990 mkdir proto-toplev/etc
1991 (cd proto-toplev/etc; \
1992 for i in $(ETC_SUPPORT); do \
1993 ln -s ../../etc/$$i . ; \
1996 # Take out texinfo from configurable dirs
1997 rm proto-toplev/configure.in
1998 sed -e '/^host_tools=/s/texinfo //' \
1999 <configure.in >proto-toplev/configure.in
2001 mkdir proto-toplev/texinfo
2002 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
2003 if test -r texinfo/util/tex3patch ; then \
2004 mkdir proto-toplev/texinfo/util && \
2005 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
2007 chmod -R og=u . || chmod og=u `find . -print`
2009 # Create .gmo files from .po files.
2010 for f in `find . -name '*.po' -type f -print`; do \
2011 msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2014 -rm -f $(PACKAGE)-$(VER)
2015 ln -s proto-toplev $(PACKAGE)-$(VER)
2019 echo "==> Making $(PACKAGE)-$(VER).tar"
2020 -rm -f $(PACKAGE)-$(VER).tar
2021 find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
2022 | tar cTfh - $(PACKAGE)-$(VER).tar
2026 echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2027 -rm -f $(PACKAGE)-$(VER).tar.bz2
2028 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
2032 echo "==> Adding md5 checksum to top-level directory"
2033 cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2034 | xargs $(MD5PROG) > ../md5.sum
2035 mv md5.sum proto-toplev
2039 echo "==> Adding updated djunpack.bat to top-level directory"
2040 echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2041 sed < djunpack.bat > djunpack.new \
2042 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2043 mv djunpack.new djunpack.bat
2044 -rm -f proto-toplev/djunpack.bat
2045 ln -s ../djunpack.bat proto-toplev/djunpack.bat
2047 TEXINFO_SUPPORT= texinfo/texinfo.tex
2048 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2051 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
2052 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
2053 $(MAKE) -f Makefile.in taz TOOL=gas \
2054 MD5PROG="$(MD5PROG)" \
2055 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2057 # The FSF "binutils" release includes gprof and ld.
2058 .PHONY: binutils.tar.bz2
2059 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2060 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2061 $(MAKE) -f Makefile.in taz TOOL=binutils \
2062 MD5PROG="$(MD5PROG)" \
2063 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2065 .PHONY: gas+binutils.tar.bz2
2066 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2067 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2068 $(MAKE) -f Makefile.in taz TOOL=gas \
2069 MD5PROG="$(MD5PROG)" \
2070 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2072 GNATS_SUPPORT_DIRS=include libiberty send-pr
2073 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2074 $(MAKE) -f Makefile.in taz TOOL=gnats \
2075 MD5PROG="$(MD5PROG)" \
2076 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2079 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2080 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2081 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2082 MD5PROG="$(MD5PROG)" \
2083 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2085 gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2086 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2087 MD5PROG="$(MD5PROG)" \
2088 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2090 DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
2091 .PHONY: dejagnu.tar.bz2
2092 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2093 $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2094 MD5PROG="$(MD5PROG)" \
2095 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2097 .PHONY: gdb+dejagnu.tar.bz2
2098 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2099 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2100 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2101 MD5PROG="$(MD5PROG)" \
2102 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2103 .PHONY: gdb+dejagnu.tar
2104 gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2105 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2106 MD5PROG="$(MD5PROG)" \
2107 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2109 .PHONY: insight.tar.bz2
2110 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2111 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2112 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2113 MD5PROG="$(MD5PROG)" \
2114 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2116 insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2117 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2118 MD5PROG="$(MD5PROG)" \
2119 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2121 .PHONY: insight+dejagnu.tar.bz2
2122 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2123 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2124 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2125 MD5PROG="$(MD5PROG)" \
2126 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2127 .PHONY: insight+dejagnu.tar
2128 insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2129 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2130 MD5PROG="$(MD5PROG)" \
2131 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2133 .PHONY: newlib.tar.bz2
2134 NEWLIB_SUPPORT_DIRS=libgloss
2135 # taz configures for the sun4 target which won't configure newlib.
2136 # We need newlib configured so that the .info files are made.
2137 # Unfortunately, it is not enough to just configure newlib separately:
2138 # taz will build the .info files but since SUBDIRS won't contain newlib,
2139 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2140 # used in building the .info files, eg: *.def, *.ref).
2141 # The problem isn't solvable however without a lot of extra work because
2142 # target libraries are built in subdir $(target_alias) which gets nuked during
2143 # the make distclean. For now punt on the issue of shipping newlib info files
2144 # with newlib net releases and wait for a day when some native target (sun4?)
2145 # supports newlib (if only minimally).
2146 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2147 $(MAKE) -f Makefile.in taz TOOL=newlib \
2148 MD5PROG="$(MD5PROG)" \
2149 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2150 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2155 # end of Makefile.in