2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
4 # Makefile for directory with subdirs to build.
5 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 # 1999, 2000, 2001, 2002 Free Software Foundation
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 # Tell GNU make 3.79 not to run the top level in parallel. This
24 # prevents contention for $builddir/$target/config.cache, as well
25 # as minimizing scatter in file system caches.
26 NOTPARALLEL = .NOTPARALLEL
32 exec_prefix = @exec_prefix@
36 libexecdir = @libexecdir@
38 sysconfdir = @sysconfdir@
39 sharedstatedir = @sharedstatedir@
40 localstatedir = @localstatedir@
42 includedir = @includedir@
43 oldincludedir = @oldincludedir@
46 gxx_include_dir=@gxx_include_dir@
49 build_tooldir = @build_tooldir@
51 program_transform_name = @program_transform_name@
53 man1dir = $(mandir)/man1
54 man2dir = $(mandir)/man2
55 man3dir = $(mandir)/man3
56 man4dir = $(mandir)/man4
57 man5dir = $(mandir)/man5
58 man6dir = $(mandir)/man6
59 man7dir = $(mandir)/man7
60 man8dir = $(mandir)/man8
61 man9dir = $(mandir)/man9
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(gcc_version)
66 SHELL = @config_shell@
68 # pwd command to use. Allow user to override default by setting PWDCMD in
69 # the environment to account for automounters. The make variable must not
70 # be called PWDCMD, otherwise the value set here is passed to make
71 # subprocesses and overrides the setting from the user's environment.
74 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
76 INSTALL_PROGRAM_ARGS =
78 INSTALL = $(SHELL) $$s/install-sh -c
79 INSTALL_PROGRAM = $(INSTALL) $(INSTALL_PROGRAM_ARGS)
80 INSTALL_SCRIPT = $(INSTALL)
81 INSTALL_DATA = $(INSTALL) -m 644
83 INSTALL_DOSREL = install-dosrel-fake
90 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
91 # here so that they can be overridden by Makefile fragments.
92 HOST_CC = $(CC_FOR_BUILD)
94 BUILD_PREFIX_1 = loser-
96 # These flag values are normally overridden by the configure script.
101 LIBCFLAGS = $(CFLAGS)
102 CFLAGS_FOR_BUILD = $(CFLAGS)
103 # During gcc bootstrap, if we use some random cc for stage1 then
104 # CFLAGS will be just -g. We want to ensure that TARGET libraries
105 # (which we know are built with gcc) are built with optimizations so
106 # prepend -O2 when setting CFLAGS_FOR_TARGET.
107 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
109 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
115 # Use -O2 to stress test the compiler.
116 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
117 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
118 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
130 # These values are substituted by configure.
131 DEFAULT_YACC = @DEFAULT_YACC@
132 DEFAULT_LEX = @DEFAULT_LEX@
133 DEFAULT_M4 = @DEFAULT_M4@
135 BISON = `if [ -f $$r/bison/bison ] ; then \
136 echo $$r/bison/bison -L $$s/bison/ ; \
141 YACC = `if [ -f $$r/bison/bison ] ; then \
142 echo $$r/bison/bison -y -L $$s/bison/ ; \
143 elif [ -f $$r/byacc/byacc ] ; then \
144 echo $$r/byacc/byacc ; \
146 echo ${DEFAULT_YACC} ; \
149 LEX = `if [ -f $$r/flex/flex ] ; \
150 then echo $$r/flex/flex ; \
151 else echo ${DEFAULT_LEX} ; fi`
153 M4 = `if [ -f $$r/m4/m4 ] ; \
154 then echo $$r/m4/m4 ; \
155 else echo ${DEFAULT_M4} ; fi`
157 # For an installed makeinfo, we require it to be from texinfo 4 or
158 # higher, else we use the "missing" dummy.
159 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
160 then echo $$r/texinfo/makeinfo/makeinfo ; \
161 else if (makeinfo --version \
162 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
163 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
165 # This just becomes part of the MAKEINFO definition passed down to
166 # sub-makes. It lets flags be given on the command line while still
167 # using the makeinfo from the object tree.
170 EXPECT = `if [ -f $$r/expect/expect ] ; \
171 then echo $$r/expect/expect ; \
172 else echo expect ; fi`
174 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
175 then echo $$s/dejagnu/runtest ; \
176 else echo runtest ; fi`
179 # compilers to use to create programs which must be run in the build
182 CXX_FOR_BUILD = $(CXX)
184 SUBDIRS = @configdirs@
186 # This is set by the configure script to the list of directories which
187 # should be built using the target tools.
188 TARGET_CONFIGDIRS = @target_configdirs@
190 # Target libraries are put under this directory:
191 # Changed by configure to $(target_alias) if cross.
192 TARGET_SUBDIR = @target_subdir@
194 BUILD_CONFIGDIRS = libiberty
195 BUILD_SUBDIR = @build_subdir@
197 # This is set by the configure script to the arguments to use when configuring
198 # directories built for the target.
199 TARGET_CONFIGARGS = @target_configargs@
201 # This is set by the configure script to the arguments to use when configuring
202 # directories built for the build system.
203 BUILD_CONFIGARGS = @build_configargs@
205 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
209 # This is the name of the environment variable used for the path to
210 # the libraries. This may be changed by configure.in.
211 RPATH_ENVVAR = LD_LIBRARY_PATH
213 # This is the list of directories that may be needed in RPATH_ENVVAR
214 # so that programs built for the host machine work.
215 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
217 # This is the list of directories that may be needed in RPATH_ENVVAR
218 # so that prorgams built for the target machine work.
219 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
221 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
222 # Some platforms don't like blank entries, so we remove duplicate,
223 # leading and trailing colons.
224 REALLY_SET_LIB_PATH = \
225 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
228 INSTALL_TARGET = installdirs \
231 $(INSTALL_TARGET_MODULES) \
232 $(INSTALL_X11_MODULES) \
235 INSTALL_TARGET_CROSS = installdirs \
238 $(INSTALL_TARGET_MODULES) \
239 $(INSTALL_X11_MODULES) \
242 # Should be substed by configure.in
243 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
244 CC_FOR_TARGET = @CC_FOR_TARGET@
245 CXX_FOR_TARGET = @CXX_FOR_TARGET@
246 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
247 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
249 # If GCC_FOR_TARGET is not overriden on the command line, then this
250 # variable is passed down to the gcc Makefile, where it is used to
251 # build libgcc2.a. We define it here so that it can itself be
252 # overridden on the command line.
253 GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
256 if [ -f $$r/gas/as-new ] ; then \
257 echo $$r/gas/as-new ; \
258 elif [ -f $$r/gcc/xgcc ]; then \
259 $(CC_FOR_TARGET) -print-prog-name=as ; \
261 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
264 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
269 if [ -f $$r/ld/ld-new ] ; then \
270 echo $$r/ld/ld-new ; \
271 elif [ -f $$r/gcc/xgcc ]; then \
272 $(CC_FOR_TARGET) -print-prog-name=ld ; \
274 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
277 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
281 DLLTOOL_FOR_TARGET = ` \
282 if [ -f $$r/binutils/dlltool ] ; then \
283 echo $$r/binutils/dlltool ; \
285 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
288 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
292 WINDRES_FOR_TARGET = ` \
293 if [ -f $$r/binutils/windres ] ; then \
294 echo $$r/binutils/windres ; \
296 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
299 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
304 if [ -f $$r/binutils/ar ] ; then \
305 echo $$r/binutils/ar ; \
307 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
310 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
314 RANLIB_FOR_TARGET = ` \
315 if [ -f $$r/binutils/ranlib ] ; then \
316 echo $$r/binutils/ranlib ; \
318 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
319 if [ x'$(RANLIB)' != x ]; then \
325 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
330 if [ -f $$r/binutils/nm-new ] ; then \
331 echo $$r/binutils/nm-new ; \
332 elif [ -f $$r/gcc/xgcc ]; then \
333 $(CC_FOR_TARGET) -print-prog-name=nm ; \
335 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
338 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
342 # The first rule in the file had better be this one. Don't put any above it.
343 # This lives here to allow makefile fragments to contain dependencies.
347 # These can be overridden by config/mt-*.
348 # The _TARGET_ is because they're specified in mt-foo.
349 # The _HOST_ is because they're programs that run on the host.
350 EXTRA_TARGET_HOST_ALL_MODULES =
351 EXTRA_TARGET_HOST_INSTALL_MODULES =
352 EXTRA_TARGET_HOST_CHECK_MODULES =
354 #### host and target specific makefile fragments come in here.
357 # Flags to pass down to all sub-makes.
358 # Please keep these in alphabetical order.
359 BASE_FLAGS_TO_PASS = \
360 "AR_FLAGS=$(AR_FLAGS)" \
361 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
362 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
364 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
365 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
367 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
368 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
369 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
370 "CXXFLAGS=$(CXXFLAGS)" \
371 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
372 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
373 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
374 "INSTALL=$(INSTALL)" \
375 "INSTALL_DATA=$(INSTALL_DATA)" \
376 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
377 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
378 "LDFLAGS=$(LDFLAGS)" \
380 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
381 "LIBCFLAGS=$(LIBCFLAGS)" \
382 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
383 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
384 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
387 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
388 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
389 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
390 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
393 "RUNTEST=$(RUNTEST)" \
394 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
395 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
396 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
399 "datadir=$(datadir)" \
400 "exec_prefix=$(exec_prefix)" \
401 "includedir=$(includedir)" \
402 "infodir=$(infodir)" \
404 "libexecdir=$(libexecdir)" \
405 "lispdir=$(lispdir)" \
406 "libstdcxx_incdir=$(libstdcxx_incdir)" \
407 "libsubdir=$(libsubdir)" \
408 "localstatedir=$(localstatedir)" \
410 "oldincludedir=$(oldincludedir)" \
412 "sbindir=$(sbindir)" \
413 "sharedstatedir=$(sharedstatedir)" \
414 "sysconfdir=$(sysconfdir)" \
415 "tooldir=$(tooldir)" \
416 "build_tooldir=$(build_tooldir)" \
417 "gxx_include_dir=$(gxx_include_dir)" \
418 "gcc_version=$(gcc_version)" \
419 "gcc_version_trigger=$(gcc_version_trigger)" \
420 "target_alias=$(target_alias)"
422 # For any flags above that may contain shell code that varies from one
423 # target library to another. When doing recursive invocations of the
424 # top-level Makefile, we don't want the outer make to evaluate them,
425 # so we pass these variables down unchanged. They must not contain
426 # single nor double quotes.
428 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
430 # Flags to pass down to most sub-makes, in which we're building with
431 # the host environment.
432 # If any variables are added here, they must be added to do-*, below.
438 'DLLTOOL=$(DLLTOOL)' \
441 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
444 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
446 # Flags that are concerned with the location of the X11 include files
449 # NOTE: until the top-level is getting the values via autoconf, it only
450 # causes problems to have this top-level Makefile overriding the autoconf-set
451 # values in child directories. Only variables that don't conflict with
452 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
454 X11_FLAGS_TO_PASS = \
455 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
456 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
458 # Flags to pass down to makes which are built with the target environment.
459 # The double $ decreases the length of the command line; the variables
460 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
461 # If any variables are added here, they must be added to do-*, below.
462 EXTRA_TARGET_FLAGS = \
463 'AR=$$(AR_FOR_TARGET)' \
464 'AS=$$(AS_FOR_TARGET)' \
465 'CC=$$(CC_FOR_TARGET)' \
466 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
467 'CXX=$$(CXX_FOR_TARGET)' \
468 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
469 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
470 'LD=$$(LD_FOR_TARGET)' \
471 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
472 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
473 'NM=$$(NM_FOR_TARGET)' \
474 'RANLIB=$$(RANLIB_FOR_TARGET)' \
475 'WINDRES=$$(WINDRES_FOR_TARGET)'
477 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
479 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
480 # unfortunately needs the native compiler and the target ar and
482 # If any variables are added here, they must be added to do-*, below.
483 # The HOST_* variables are a special case, which are used for the gcc
484 # cross-building scheme.
490 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
491 'HOST_CC=$(CC_FOR_BUILD)' \
492 'BUILD_PREFIX=$(BUILD_PREFIX)' \
493 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
495 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
496 'WINDRES=$$(WINDRES_FOR_TARGET)' \
497 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
498 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
499 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
501 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
502 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
503 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
504 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
505 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
506 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
507 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
509 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
511 # This is a list of the targets for all of the modules which are compiled
512 # using the build machine's native compiler. Configure edits the second
513 # macro for build!=host builds.
514 ALL_BUILD_MODULES_LIST = \
516 ALL_BUILD_MODULES = @all_build_modules@
518 # This is a list of the configure targets for all of the modules which
519 # are compiled using the native tools.
520 CONFIGURE_BUILD_MODULES = \
521 configure-build-libiberty
523 # This is a list of the targets for all of the modules which are compiled
524 # 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 = \
653 $(EXTRA_TARGET_HOST_CHECK_MODULES)
655 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
657 # This is a list of the install targets for all of the modules which are
658 # compiled using $(FLAGS_TO_PASS).
659 # We put install-opcodes before install-binutils because the installed
660 # binutils might be on PATH, and they might need the shared opcodes
662 # We put install-tcl before install-itcl because itcl wants to run a
663 # program on installation which uses the Tcl libraries.
722 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
724 # This is a list of the targets for all of the modules which are compiled
725 # using $(X11_FLAGS_TO_PASS).
734 # This is a list of the check targets for all of the modules which are
735 # compiled using $(X11_FLAGS_TO_PASS).
736 CHECK_X11_MODULES = \
744 # This is a list of the install targets for all the modules which are
745 # compiled using $(X11_FLAGS_TO_PASS).
746 INSTALL_X11_MODULES = \
754 # This is a list of the targets for all of the modules which are compiled
755 # using $(TARGET_FLAGS_TO_PASS).
756 ALL_TARGET_MODULES = \
757 all-target-libstdc++-v3 \
761 all-target-libtermcap \
763 all-target-libgloss \
764 all-target-libiberty \
766 all-target-examples \
770 all-target-boehm-gc \
773 # This is a list of the configure targets for all of the modules which
774 # are compiled using the target tools.
775 CONFIGURE_TARGET_MODULES = \
776 configure-target-libstdc++-v3 \
777 configure-target-newlib \
778 configure-target-libf2c \
779 configure-target-libobjc \
780 configure-target-libtermcap \
781 configure-target-winsup \
782 configure-target-libgloss \
783 configure-target-libiberty \
784 configure-target-gperf \
785 configure-target-examples \
786 configure-target-libffi \
787 configure-target-libjava \
788 configure-target-zlib \
789 configure-target-boehm-gc \
790 configure-target-qthreads
792 # This is a list of the check targets for all of the modules which are
793 # compiled using $(TARGET_FLAGS_TO_PASS).
794 CHECK_TARGET_MODULES = \
795 check-target-libstdc++-v3 \
796 check-target-newlib \
797 check-target-libf2c \
798 check-target-libobjc \
799 check-target-winsup \
800 check-target-libiberty \
802 check-target-libffi \
803 check-target-libjava \
805 check-target-boehm-gc \
806 check-target-qthreads
808 # This is a list of the install targets for all of the modules which are
809 # compiled using $(TARGET_FLAGS_TO_PASS).
810 INSTALL_TARGET_MODULES = \
811 install-target-libstdc++-v3 \
812 install-target-newlib \
813 install-target-libf2c \
814 install-target-libobjc \
815 install-target-libtermcap \
816 install-target-winsup \
817 install-target-libgloss \
818 install-target-libiberty \
819 install-target-gperf \
820 install-target-libjava \
821 install-target-zlib \
822 install-target-boehm-gc \
823 install-target-qthreads
825 # This is a list of the targets for which we can do a clean-{target}.
888 # All of the target modules that can be cleaned
889 CLEAN_TARGET_MODULES = \
890 clean-target-libstdc++-v3 \
891 clean-target-newlib \
892 clean-target-libf2c \
893 clean-target-libobjc \
894 clean-target-winsup \
895 clean-target-libgloss \
896 clean-target-libiberty \
898 clean-target-examples \
899 clean-target-libffi \
900 clean-target-libjava \
902 clean-target-boehm-gc \
903 clean-target-qthreads
905 # All of the x11 modules that can be cleaned
906 CLEAN_X11_MODULES = \
914 # The target built for a native build.
917 $(ALL_BUILD_MODULES) \
920 $(ALL_TARGET_MODULES) \
923 # Do a target for all the subdirectories. A ``make do-X'' will do a
924 # ``make X'' in all subdirectories (because, in general, there is a
925 # dependency (below) of X upon do-X, a ``make X'' will also do this,
926 # but it may do additional work as well).
927 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
928 # because it is so large that it can easily overflow the command line
929 # length limit on some systems.
938 do-maintainer-clean \
942 @target=`echo $@ | sed -e 's/^do-//'`; \
943 r=`${PWD}`; export r; \
944 s=`cd $(srcdir); ${PWD}`; export s; \
946 for i in $(SUBDIRS) -dummy-; do \
947 if [ -f ./$$i/Makefile ]; then \
950 for flag in $(EXTRA_GCC_FLAGS); do \
951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
955 for flag in $(EXTRA_HOST_FLAGS); do \
956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
963 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
966 then true; else exit 1; fi; \
969 @target=`echo $@ | sed -e 's/^do-//'`; \
970 r=`${PWD}`; export r; \
971 s=`cd $(srcdir); ${PWD}`; export s; \
973 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
974 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
975 for flag in $(EXTRA_TARGET_FLAGS); do \
976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
978 if (cd $(TARGET_SUBDIR)/$$i; \
979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
981 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
984 then true; else exit 1; fi; \
988 # Here are the targets which correspond to the do-X targets.
990 .PHONY: info installcheck dvi install-info
991 .PHONY: clean distclean mostlyclean maintainer-clean realclean
992 .PHONY: local-clean local-distclean local-maintainer-clean
994 installcheck: do-installcheck
997 # Make sure makeinfo is built before we do a `make info'.
1000 install-info: do-install-info dir.info
1001 s=`cd $(srcdir); ${PWD}`; export s; \
1002 if [ -f dir.info ] ; then \
1003 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1007 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1010 -rm -f Makefile config.status config.cache mh-frag mt-frag
1011 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1012 rm -rf $(TARGET_SUBDIR); \
1014 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1015 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1016 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1017 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1018 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1020 local-maintainer-clean:
1021 @echo "This command is intended for maintainers to use;"
1022 @echo "it deletes files that may require special tools to rebuild."
1024 clean: do-clean local-clean
1025 mostlyclean: do-mostlyclean local-clean
1026 distclean: do-distclean local-clean local-distclean
1027 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1028 maintainer-clean: local-distclean
1029 realclean: maintainer-clean
1031 # This rule is used to clean specific modules.
1032 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1033 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1034 @dir=`echo $@ | sed -e 's/clean-//'`; \
1035 if [ -f ./$${dir}/Makefile ] ; then \
1036 r=`${PWD}`; export r; \
1037 s=`cd $(srcdir); ${PWD}`; export s; \
1039 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1044 .PHONY: $(CLEAN_TARGET_MODULES)
1045 $(CLEAN_TARGET_MODULES):
1046 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1047 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1048 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1049 r=`${PWD}`; export r; \
1050 s=`cd $(srcdir); ${PWD}`; export s; \
1052 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1057 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1058 clean-target-libgcc:
1059 test ! -d gcc/libgcc || \
1060 (cd gcc/libgcc && find . -type d -print) | \
1061 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1066 .PHONY: check do-check
1068 $(MAKE) do-check NOTPARALLEL=parallel-ok
1070 do-check: $(CHECK_MODULES) \
1071 $(CHECK_TARGET_MODULES) \
1072 $(CHECK_X11_MODULES) \
1075 # Automated reporting of test results.
1077 warning.log: build.log
1078 $(srcdir)/contrib/warn_summary build.log > $@
1081 if test x'$(BOOT_CFLAGS)' != x''; then \
1082 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1084 $(srcdir)/contrib/test_summary -t >$@
1086 echo If you really want to send e-mail, run ./$@ now
1088 mail-report-with-warnings.log: warning.log
1089 if test x'$(BOOT_CFLAGS)' != x''; then \
1090 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1092 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1094 echo If you really want to send e-mail, run ./$@ now
1096 # Installation targets.
1098 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1099 install: $(INSTALL_TARGET)
1100 install-cross: $(INSTALL_TARGET_CROSS)
1103 @echo "the uninstall target is not supported in this tree"
1106 $(MAKE) -f ./release/Build-A-Release \
1107 host=$(host_alias) source-vault
1110 $(MAKE) -f ./release/Build-A-Release \
1111 host=$(host_alias) target=$(target_alias)
1114 @if [ -f ./release/vault-install ] ; then \
1115 ./release/vault-install $(host_alias) $(target_alias) ; \
1121 install.all: install-no-fixedincludes
1122 @if [ -f ./gcc/Makefile ] ; then \
1123 r=`${PWD}` ; export r ; \
1126 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1131 # install-no-fixedincludes is used because Cygnus can not distribute
1132 # the fixed header files.
1133 .PHONY: install-no-fixedincludes
1134 install-no-fixedincludes: \
1136 $(INSTALL_MODULES) \
1137 $(INSTALL_TARGET_MODULES) \
1138 $(INSTALL_X11_MODULES) \
1139 gcc-no-fixedincludes
1141 # Install the gcc headers files, but not the fixed include files,
1142 # which Cygnus is not allowed to distribute. This rule is very
1143 # dependent on the workings of the gcc Makefile.in.
1144 .PHONY: gcc-no-fixedincludes
1145 gcc-no-fixedincludes:
1146 @if [ -f ./gcc/Makefile ]; then \
1147 rm -rf gcc/tmp-include; \
1148 mv gcc/include gcc/tmp-include 2>/dev/null; \
1149 mkdir gcc/include; \
1150 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1151 touch gcc/stmp-fixinc gcc/include/fixed; \
1152 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1153 r=`${PWD}`; export r; \
1154 s=`cd $(srcdir); ${PWD}` ; export s; \
1157 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1158 rm -rf gcc/include; \
1159 mv gcc/tmp-include gcc/include 2>/dev/null; \
1162 # This rule is used to build the modules which are built with the
1163 # build machine's native compiler.
1164 .PHONY: $(ALL_BUILD_MODULES)
1165 $(ALL_BUILD_MODULES):
1166 dir=`echo $@ | sed -e 's/all-build-//'`; \
1167 if [ -f ./$${dir}/Makefile ] ; then \
1168 r=`${PWD}`; export r; \
1169 s=`cd $(srcdir); ${PWD}`; export s; \
1170 (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1175 # This rule is used to configure the modules which are built with the
1177 .PHONY: $(CONFIGURE_BUILD_MODULES)
1178 $(CONFIGURE_BUILD_MODULES):
1179 @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1180 if [ ! -d $(BUILD_SUBDIR) ]; then \
1182 elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1184 elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1185 if [ -d $(srcdir)/$${dir} ]; then \
1186 [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1187 r=`${PWD}`; export r; \
1188 s=`cd $(srcdir); ${PWD}`; export s; \
1189 AR="$(AR_FOR_BUILD)"; export AR; \
1190 AS="$(AS_FOR_BUILD)"; export AS; \
1191 CC="$(CC_FOR_BUILD)"; export CC; \
1192 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1193 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1194 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1195 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1196 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1197 LD="$(LD_FOR_BUILD)"; export LD; \
1198 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1199 NM="$(NM_FOR_BUILD)"; export NM; \
1200 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1201 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1202 echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1203 cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1205 /* | [A-Za-z]:[\\/]*) \
1206 topdir=$(srcdir) ;; \
1208 case "$(BUILD_SUBDIR)" in \
1209 .) topdir="../$(srcdir)" ;; \
1210 *) topdir="../../$(srcdir)" ;; \
1213 if [ "$(srcdir)" = "." ] ; then \
1214 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1215 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1216 if [ -f Makefile ]; then \
1217 if $(MAKE) distclean; then \
1231 srcdiroption="--srcdir=."; \
1234 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1235 libsrcdir="$$s/$${dir}"; \
1237 if [ -f $${libsrcdir}/configure ] ; then \
1238 rm -f no-such-file skip-this-dir; \
1239 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1240 $(BUILD_CONFIGARGS) $${srcdiroption} \
1241 --with-build-subdir="$(BUILD_SUBDIR)"; \
1243 rm -f no-such-file skip-this-dir; \
1244 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1245 $(BUILD_CONFIGARGS) $${srcdiroption} \
1246 --with-build-subdir="$(BUILD_SUBDIR)"; \
1248 if [ -f skip-this-dir ] ; then \
1250 rm -f skip-this-dir; \
1251 cd ..; rmdir $${dir} || true; \
1262 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1263 # build a target all-X means to cd to X and make all.
1265 # all-gui, and all-libproc are handled specially because
1266 # they are still experimental, and if they fail to build, that
1267 # shouldn't stop "make all".
1268 .PHONY: $(ALL_MODULES) all-gui all-libproc
1269 $(ALL_MODULES) all-gui all-libproc:
1270 @dir=`echo $@ | sed -e 's/all-//'`; \
1271 if [ -f ./$${dir}/Makefile ] ; then \
1272 r=`${PWD}`; export r; \
1273 s=`cd $(srcdir); ${PWD}`; export s; \
1275 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1280 # These rules are used to check the modules which use FLAGS_TO_PASS.
1281 # To build a target check-X means to cd to X and make check. Some
1282 # modules are only tested in a native toolchain.
1284 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1285 $(NATIVE_CHECK_MODULES):
1286 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1287 dir=`echo $@ | sed -e 's/check-//'`; \
1288 if [ -f ./$${dir}/Makefile ] ; then \
1289 r=`${PWD}`; export r; \
1290 s=`cd $(srcdir); ${PWD}`; export s; \
1292 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1298 $(CROSS_CHECK_MODULES):
1299 @dir=`echo $@ | sed -e 's/check-//'`; \
1300 if [ -f ./$${dir}/Makefile ] ; then \
1301 r=`${PWD}`; export r; \
1302 s=`cd $(srcdir); ${PWD}`; export s; \
1304 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1309 # This rule is used to install the modules which use FLAGS_TO_PASS.
1310 # To build a target install-X means to cd to X and make install.
1311 .PHONY: $(INSTALL_MODULES)
1312 $(INSTALL_MODULES): installdirs
1313 @dir=`echo $@ | sed -e 's/install-//'`; \
1314 if [ -f ./$${dir}/Makefile ] ; then \
1315 r=`${PWD}`; export r; \
1316 s=`cd $(srcdir); ${PWD}`; export s; \
1318 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1323 # This rule is used to configure the modules which are built with the
1325 .PHONY: $(CONFIGURE_TARGET_MODULES)
1326 $(CONFIGURE_TARGET_MODULES):
1327 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1328 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1329 r=`${PWD}`; export r; \
1330 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1331 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1332 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1333 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1334 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1336 echo "Multilibs changed for $${dir}, reconfiguring"; \
1337 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1338 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1341 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1344 fi; exit 0 # break command into two pieces
1345 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1346 if [ ! -d $(TARGET_SUBDIR) ]; then \
1348 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1350 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1351 if [ -d $(srcdir)/$${dir} ]; then \
1352 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1353 r=`${PWD}`; export r; \
1354 s=`cd $(srcdir); ${PWD}`; export s; \
1356 AR="$(AR_FOR_TARGET)"; export AR; \
1357 AS="$(AS_FOR_TARGET)"; export AS; \
1358 CC="$(CC_FOR_TARGET)"; export CC; \
1359 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1360 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1361 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1362 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1363 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1364 LD="$(LD_FOR_TARGET)"; export LD; \
1365 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1366 NM="$(NM_FOR_TARGET)"; export NM; \
1367 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1368 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1369 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1370 cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
1372 /* | [A-Za-z]:[\\/]*) \
1373 topdir=$(srcdir) ;; \
1375 case "$(TARGET_SUBDIR)" in \
1376 .) topdir="../$(srcdir)" ;; \
1377 *) topdir="../../$(srcdir)" ;; \
1380 if [ "$(srcdir)" = "." ] ; then \
1381 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1382 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1383 if [ -f Makefile ]; then \
1384 if $(MAKE) distclean; then \
1398 srcdiroption="--srcdir=."; \
1401 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1402 libsrcdir="$$s/$${dir}"; \
1404 if [ -f $${libsrcdir}/configure ] ; then \
1405 rm -f no-such-file skip-this-dir; \
1406 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1407 $(TARGET_CONFIGARGS) $${srcdiroption} \
1408 --with-target-subdir="$(TARGET_SUBDIR)"; \
1410 rm -f no-such-file skip-this-dir; \
1411 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1412 $(TARGET_CONFIGARGS) $${srcdiroption} \
1413 --with-target-subdir="$(TARGET_SUBDIR)"; \
1415 if [ -f skip-this-dir ] ; then \
1417 rm -f skip-this-dir; \
1418 cd ..; rmdir $${dir} || true; \
1429 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1430 # To build a target all-X means to cd to X and make all.
1431 .PHONY: $(ALL_TARGET_MODULES)
1432 $(ALL_TARGET_MODULES):
1433 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1434 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1435 r=`${PWD}`; export r; \
1436 s=`cd $(srcdir); ${PWD}`; export s; \
1438 (cd $(TARGET_SUBDIR)/$${dir}; \
1439 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1444 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1445 # To build a target install-X means to cd to X and make install.
1446 .PHONY: $(CHECK_TARGET_MODULES)
1447 $(CHECK_TARGET_MODULES):
1448 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1449 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1450 r=`${PWD}`; export r; \
1451 s=`cd $(srcdir); ${PWD}`; export s; \
1453 (cd $(TARGET_SUBDIR)/$${dir}; \
1454 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1459 # This rule is used to install the modules which use
1460 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1462 .PHONY: $(INSTALL_TARGET_MODULES)
1463 $(INSTALL_TARGET_MODULES): installdirs
1464 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1465 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1466 r=`${PWD}`; export r; \
1467 s=`cd $(srcdir); ${PWD}`; export s; \
1469 (cd $(TARGET_SUBDIR)/$${dir}; \
1470 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1475 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1476 # To build a target all-X means to cd to X and make all.
1477 .PHONY: $(ALL_X11_MODULES)
1479 @dir=`echo $@ | sed -e 's/all-//'`; \
1480 if [ -f ./$${dir}/Makefile ] ; then \
1481 r=`${PWD}`; export r; \
1482 s=`cd $(srcdir); ${PWD}`; export s; \
1485 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1490 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1491 # To build a target check-X means to cd to X and make all.
1492 .PHONY: $(CHECK_X11_MODULES)
1493 $(CHECK_X11_MODULES):
1494 @dir=`echo $@ | sed -e 's/check-//'`; \
1495 if [ -f ./$${dir}/Makefile ] ; then \
1496 r=`${PWD}`; export r; \
1497 s=`cd $(srcdir); ${PWD}`; export s; \
1500 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1505 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1506 # To build a target install-X means to cd to X and make install.
1507 .PHONY: $(INSTALL_X11_MODULES)
1508 $(INSTALL_X11_MODULES): installdirs
1509 @dir=`echo $@ | sed -e 's/install-//'`; \
1510 if [ -f ./$${dir}/Makefile ] ; then \
1511 r=`${PWD}`; export r; \
1512 s=`cd $(srcdir); ${PWD}`; export s; \
1515 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1520 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1523 @if [ -f ./gcc/Makefile ] ; then \
1524 r=`${PWD}`; export r; \
1525 s=`cd $(srcdir); ${PWD}`; export s; \
1527 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1532 # Building GCC uses some tools for rebuilding "source" files
1533 # like texinfo, bison/byacc, etc. So we must depend on those.
1535 # While building GCC, it may be necessary to run various target
1536 # programs like the assembler, linker, etc. So we depend on
1539 # In theory, on an SMP all those dependencies can be resolved
1542 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1543 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1544 @r=`${PWD}`; export r; \
1545 s=`cd $(srcdir); ${PWD}`; export s; \
1547 echo "Bootstrapping the compiler"; \
1548 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1549 @r=`${PWD}`; export r; \
1550 s=`cd $(srcdir); ${PWD}`; export s; \
1552 *bootstrap4-lean ) \
1553 msg="Comparing stage3 and stage4 of the compiler"; \
1554 compare=compare3-lean ;; \
1555 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1556 compare=compare3 ;; \
1557 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1558 compare=compare-lean ;; \
1559 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1560 compare=compare ;; \
1564 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1565 @r=`${PWD}`; export r; \
1566 s=`cd $(srcdir); ${PWD}` ; export s; \
1568 echo "Building runtime libraries"; \
1569 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1572 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1573 @r=`${PWD}`; export r; \
1574 s=`cd $(srcdir); ${PWD}`; export s; \
1576 echo "Building the C and C++ compiler"; \
1577 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1578 @r=`${PWD}`; export r; \
1579 s=`cd $(srcdir); ${PWD}` ; export s; \
1581 echo "Building runtime libraries"; \
1582 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1583 LANGUAGES="c c++" all
1587 @if [ -f ./gcc/Makefile ] ; then \
1588 r=`${PWD}`; export r; \
1589 s=`cd $(srcdir); ${PWD}`; export s; \
1591 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1598 @if [ -f ./gcc/Makefile ] ; then \
1599 r=`${PWD}`; export r; \
1600 s=`cd $(srcdir); ${PWD}`; export s; \
1602 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1603 $(MAKE) check-target-libstdc++-v3; \
1610 @if [ -f ./gcc/Makefile ] ; then \
1611 r=`${PWD}`; export r; \
1612 s=`cd $(srcdir); ${PWD}`; export s; \
1614 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1619 .PHONY: install-gcc-cross
1621 @if [ -f ./gcc/Makefile ] ; then \
1622 r=`${PWD}`; export r; \
1623 s=`cd $(srcdir); ${PWD}`; export s; \
1625 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1629 # EXPERIMENTAL STUFF
1630 # This rule is used to install the modules which use FLAGS_TO_PASS.
1631 # To build a target install-X means to cd to X and make install.
1632 .PHONY: install-dosrel
1633 install-dosrel: installdirs info
1634 @dir=`echo $@ | sed -e 's/install-//'`; \
1635 if [ -f ./$${dir}/Makefile ] ; then \
1636 r=`${PWD}`; export r; \
1637 s=`cd $(srcdir); ${PWD}`; export s; \
1639 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1644 install-dosrel-fake:
1647 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1648 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
1650 # This is a list of inter-dependencies among modules.
1652 all-autoconf: all-m4 all-texinfo
1653 all-automake: all-m4 all-texinfo
1655 all-bfd: all-libiberty all-intl
1656 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1657 all-bison: all-texinfo
1658 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
1662 all-dejagnu: all-tcl all-expect all-tk
1663 all-diff: all-libiberty
1665 configure-target-examples: $(ALL_GCC_C)
1666 all-expect: all-tcl all-tk
1667 all-fileutils: all-libiberty
1670 all-flex: all-libiberty all-bison all-byacc
1671 all-gas: all-libiberty all-opcodes all-bfd all-intl
1673 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1674 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1676 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1679 configure-target-gperf: $(ALL_GCC_CXX)
1680 all-target-gperf: all-target-libiberty all-target-libstdc++-v3
1681 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1682 all-grep: all-libiberty
1683 all-gui: all-gdb all-libproc
1685 all-gzip: all-libiberty
1686 all-hello: all-libiberty
1689 all-itcl: all-tcl all-tk
1690 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1691 configure-target-libgloss: $(ALL_GCC)
1692 all-target-libgloss: configure-target-newlib
1693 all-libgui: all-tcl all-tk all-itcl
1696 all-build-libiberty: configure-build-libiberty
1698 configure-target-libffi: $(ALL_GCC_C)
1699 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1700 all-target-libjava: all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1701 configure-target-libstdc++-v3: $(ALL_GCC_C)
1702 all-target-libstdc++-v3: all-target-libiberty
1704 configure-target-libf2c: $(ALL_GCC_C)
1705 all-target-libf2c: all-target-libiberty
1706 configure-target-libobjc: $(ALL_GCC_C)
1707 all-target-libobjc: all-target-libiberty
1708 all-m4: all-libiberty all-texinfo
1709 all-make: all-libiberty
1711 configure-target-newlib: $(ALL_GCC)
1712 configure-target-libtermcap: $(ALL_GCC_C)
1713 all-opcodes: all-bfd all-libiberty
1714 all-patch: all-libiberty
1716 all-prms: all-libiberty
1717 configure-target-qthreads: $(ALL_GCC_C)
1720 all-recode: all-libiberty
1721 all-sed: all-libiberty
1722 all-send-pr: all-prms
1724 all-sid: all-tcl all-tk
1725 all-sim: all-libiberty all-bfd all-opcodes all-readline
1726 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1727 all-tar: all-libiberty
1729 all-tclX: all-tcl all-tk
1731 all-texinfo: all-libiberty
1734 all-tix: all-tcl all-tk
1736 configure-target-winsup: $(ALL_GCC_C)
1737 all-target-winsup: all-target-libiberty all-target-libtermcap
1738 all-uudecode: all-libiberty
1741 configure-target-zlib: $(ALL_GCC_C)
1742 all-fastjar: all-zlib all-libiberty
1743 configure-target-fastjar: configure-target-zlib
1744 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
1745 configure-target-libiberty: $(ALL_GCC_C)
1746 all-target: $(ALL_TARGET_MODULES)
1747 install-target: $(INSTALL_TARGET_MODULES)
1748 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1749 install-sid: install-tcl install-tk
1751 # Dependencies of all-target-foo on configure-target-foo.
1752 all-target-libstdc++-v3: configure-target-libstdc++-v3
1753 all-target-newlib: configure-target-newlib
1754 all-target-libf2c: configure-target-libf2c
1755 all-target-libobjc: configure-target-libobjc
1756 all-target-libtermcap: configure-target-libtermcap
1757 all-target-winsup: configure-target-winsup
1758 all-target-libgloss: configure-target-libgloss
1759 all-target-libiberty: configure-target-libiberty
1760 all-target-gperf: configure-target-gperf
1761 all-target-examples: configure-target-examples
1762 all-target-libffi: configure-target-libffi
1763 all-target-libjava: configure-target-libjava
1764 all-target-zlib: configure-target-zlib
1765 all-target-boehm-gc: configure-target-boehm-gc
1766 all-target-qthreads: configure-target-qthreads
1769 ### other supporting targets
1772 $(DESTDIR)$(prefix) \
1773 $(DESTDIR)$(exec_prefix)
1775 installdirs: mkinstalldirs
1776 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1778 dir.info: do-install-info
1779 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1780 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1781 mv -f dir.info.new dir.info ; \
1786 @echo "Building a full distribution of this tree isn't done"
1787 @echo "via 'make dist'. Check out the etc/ subdirectory"
1791 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1792 # ability to use several tags files at once, so there is probably no need
1793 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1794 # (if we felt like it) have this Makefile write a piece of elisp which
1795 # the user could load to tell emacs19 where all the TAGS files we just
1799 # Rebuilding Makefile.in, using autogen.
1800 $(srcdir)/Makefile.in: # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
1801 cd $(srcdir) && autogen Makefile.def
1803 # with the gnu make, this is done automatically.
1805 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1806 $(SHELL) ./config.status
1809 # Support for building net releases
1811 # Files in devo used in any net release.
1812 # ChangeLog omitted because it may refer to files which are not in this
1813 # distribution (perhaps it would be better to include it anyway).
1814 DEVO_SUPPORT= README Makefile.in configure configure.in \
1815 config.guess config.if config.sub config move-if-change \
1816 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1817 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1818 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1819 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1821 # Files in devo/etc used in any net release.
1822 # ChangeLog omitted because it may refer to files which are not in this
1823 # distribution (perhaps it would be better to include it anyway).
1824 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1825 make-stds.texi standards.info* configure.texi configure.info* \
1826 configbuild.* configdev.*
1829 # When you use `make setup-dirs' or `make taz' you should always redefine
1831 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1833 # NOTE: No double quotes in the below. It is used within shell script
1835 VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1836 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1837 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1838 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1839 elif test -f $(TOOL)/version.in; then \
1840 head -1 $(TOOL)/version.in; \
1841 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1842 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1849 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1850 $(MAKE) -f Makefile.in do-proto-toplev \
1851 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1852 MD5PROG="$(MD5PROG)" \
1853 SUPPORT_FILES="$(SUPPORT_FILES)"
1854 $(MAKE) -f Makefile.in do-md5sum \
1855 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1856 MD5PROG="$(MD5PROG)" \
1857 SUPPORT_FILES="$(SUPPORT_FILES)"
1858 $(MAKE) -f Makefile.in do-tar \
1859 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1860 MD5PROG="$(MD5PROG)" \
1861 SUPPORT_FILES="$(SUPPORT_FILES)"
1862 $(MAKE) -f Makefile.in do-bz2 \
1863 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1864 MD5PROG="$(MD5PROG)" \
1865 SUPPORT_FILES="$(SUPPORT_FILES)"
1868 gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1869 $(MAKE) -f Makefile.in do-proto-toplev \
1870 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1871 MD5PROG="$(MD5PROG)" \
1872 SUPPORT_FILES="$(SUPPORT_FILES)"
1873 $(MAKE) -f Makefile.in do-md5sum \
1874 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1875 MD5PROG="$(MD5PROG)" \
1876 SUPPORT_FILES="$(SUPPORT_FILES)"
1877 $(MAKE) -f Makefile.in do-djunpack \
1878 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1879 MD5PROG="$(MD5PROG)" \
1880 SUPPORT_FILES="$(SUPPORT_FILES)"
1881 $(MAKE) -f Makefile.in do-tar \
1882 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1883 MD5PROG="$(MD5PROG)" \
1884 SUPPORT_FILES="$(SUPPORT_FILES)"
1887 gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1888 $(MAKE) -f Makefile.in gdb-tar \
1889 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1890 MD5PROG="$(MD5PROG)" \
1891 SUPPORT_FILES="$(SUPPORT_FILES)"
1892 $(MAKE) -f Makefile.in do-bz2 \
1893 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1894 MD5PROG="$(MD5PROG)" \
1895 SUPPORT_FILES="$(SUPPORT_FILES)"
1897 .PHONY: do-proto-toplev
1898 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1899 echo "==> Making $(PACKAGE)-$(VER)/"
1900 # Take out texinfo from a few places.
1901 sed -e '/^all\.normal: /s/\all-texinfo //' \
1902 -e '/^ install-texinfo /d' \
1904 mv -f tmp Makefile.in
1907 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1908 || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1909 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
1910 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1911 # Make links, and run "make diststuff" or "make info" when needed.
1912 rm -rf proto-toplev ; mkdir proto-toplev
1913 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1914 for d in $$dirs ; do \
1915 if [ -d $$d ]; then \
1916 if [ ! -f $$d/Makefile ] ; then true ; \
1917 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1918 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1919 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1920 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1922 if [ -d $$d/proto-$$d.dir ]; then \
1923 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1925 ln -s ../$$d proto-toplev/$$d ; \
1927 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1929 cd etc && $(MAKE) info
1932 mkdir proto-toplev/etc
1933 (cd proto-toplev/etc; \
1934 for i in $(ETC_SUPPORT); do \
1935 ln -s ../../etc/$$i . ; \
1938 # Take out texinfo from configurable dirs
1939 rm proto-toplev/configure.in
1940 sed -e '/^host_tools=/s/texinfo //' \
1941 <configure.in >proto-toplev/configure.in
1943 mkdir proto-toplev/texinfo
1944 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1945 if test -r texinfo/util/tex3patch ; then \
1946 mkdir proto-toplev/texinfo/util && \
1947 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
1949 chmod -R og=u . || chmod og=u `find . -print`
1951 # Create .gmo files from .po files.
1952 for f in `find . -name '*.po' -type f -print`; do \
1953 msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
1956 -rm -f $(PACKAGE)-$(VER)
1957 ln -s proto-toplev $(PACKAGE)-$(VER)
1961 echo "==> Making $(PACKAGE)-$(VER).tar"
1962 -rm -f $(PACKAGE)-$(VER).tar
1963 find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
1964 | tar cTfh - $(PACKAGE)-$(VER).tar
1968 echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
1969 -rm -f $(PACKAGE)-$(VER).tar.bz2
1970 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
1974 echo "==> Adding md5 checksum to top-level directory"
1975 cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
1976 | xargs $(MD5PROG) > ../md5.sum
1977 mv md5.sum proto-toplev
1981 echo "==> Adding updated djunpack.bat to top-level directory"
1982 echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
1983 sed < djunpack.bat > djunpack.new \
1984 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
1985 mv djunpack.new djunpack.bat
1986 -rm -f proto-toplev/djunpack.bat
1987 ln -s ../djunpack.bat proto-toplev/djunpack.bat
1989 TEXINFO_SUPPORT= texinfo/texinfo.tex
1990 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
1993 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
1994 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
1995 $(MAKE) -f Makefile.in taz TOOL=gas \
1996 MD5PROG="$(MD5PROG)" \
1997 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
1999 # The FSF "binutils" release includes gprof and ld.
2000 .PHONY: binutils.tar.bz2
2001 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2002 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2003 $(MAKE) -f Makefile.in taz TOOL=binutils \
2004 MD5PROG="$(MD5PROG)" \
2005 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2007 .PHONY: gas+binutils.tar.bz2
2008 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2009 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2010 $(MAKE) -f Makefile.in taz TOOL=gas \
2011 MD5PROG="$(MD5PROG)" \
2012 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2014 GNATS_SUPPORT_DIRS=include libiberty send-pr
2015 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2016 $(MAKE) -f Makefile.in taz TOOL=gnats \
2017 MD5PROG="$(MD5PROG)" \
2018 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2021 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2022 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2023 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2024 MD5PROG="$(MD5PROG)" \
2025 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2027 gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2028 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2029 MD5PROG="$(MD5PROG)" \
2030 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2032 DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
2033 .PHONY: dejagnu.tar.bz2
2034 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2035 $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2036 MD5PROG="$(MD5PROG)" \
2037 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2039 .PHONY: gdb+dejagnu.tar.bz2
2040 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2041 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2042 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2043 MD5PROG="$(MD5PROG)" \
2044 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2045 .PHONY: gdb+dejagnu.tar
2046 gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2047 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2048 MD5PROG="$(MD5PROG)" \
2049 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2051 .PHONY: insight.tar.bz2
2052 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2053 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2054 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2055 MD5PROG="$(MD5PROG)" \
2056 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2058 insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2059 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2060 MD5PROG="$(MD5PROG)" \
2061 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2063 .PHONY: insight+dejagnu.tar.bz2
2064 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2065 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2066 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2067 MD5PROG="$(MD5PROG)" \
2068 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2069 .PHONY: insight+dejagnu.tar
2070 insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2071 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2072 MD5PROG="$(MD5PROG)" \
2073 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2075 .PHONY: newlib.tar.bz2
2076 NEWLIB_SUPPORT_DIRS=libgloss
2077 # taz configures for the sun4 target which won't configure newlib.
2078 # We need newlib configured so that the .info files are made.
2079 # Unfortunately, it is not enough to just configure newlib separately:
2080 # taz will build the .info files but since SUBDIRS won't contain newlib,
2081 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2082 # used in building the .info files, eg: *.def, *.ref).
2083 # The problem isn't solvable however without a lot of extra work because
2084 # target libraries are built in subdir $(target_alias) which gets nuked during
2085 # the make distclean. For now punt on the issue of shipping newlib info files
2086 # with newlib net releases and wait for a day when some native target (sun4?)
2087 # supports newlib (if only minimally).
2088 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2089 $(MAKE) -f Makefile.in taz TOOL=newlib \
2090 MD5PROG="$(MD5PROG)" \
2091 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2092 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2097 # end of Makefile.in