2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001, 2002 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 # 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 CFLAGS_FOR_TARGET = $(CFLAGS)
105 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
111 # Use -O2 to stress test the compiler.
112 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
113 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
114 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
126 # These values are substituted by configure.
131 BISON = `if [ -f $$r/bison/bison ] ; then \
132 echo $$r/bison/bison -L $$s/bison/ ; \
137 YACC = `if [ -f $$r/bison/bison ] ; then \
138 echo $$r/bison/bison -y -L $$s/bison/ ; \
139 elif [ -f $$r/byacc/byacc ] ; then \
140 echo $$r/byacc/byacc ; \
142 echo ${DEFAULT_YACC} ; \
145 LEX = `if [ -f $$r/flex/flex ] ; \
146 then echo $$r/flex/flex ; \
147 else echo ${DEFAULT_LEX} ; fi`
149 M4 = `if [ -f $$r/m4/m4 ] ; \
150 then echo $$r/m4/m4 ; \
151 else echo ${DEFAULT_M4} ; fi`
153 # For an installed makeinfo, we require it to be from texinfo 4 or
154 # higher, else we use the "missing" dummy.
155 MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
156 then echo $$r/texinfo/makeinfo/makeinfo ; \
157 else if (makeinfo --version \
158 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
159 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
161 # This just becomes part of the MAKEINFO definition passed down to
162 # sub-makes. It lets flags be given on the command line while still
163 # using the makeinfo from the object tree.
166 EXPECT = `if [ -f $$r/expect/expect ] ; \
167 then echo $$r/expect/expect ; \
168 else echo expect ; fi`
170 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
171 then echo $$s/dejagnu/runtest ; \
172 else echo runtest ; fi`
175 # compilers to use to create programs which must be run in the build
178 CXX_FOR_BUILD = $(CXX)
180 SUBDIRS = "this is set via configure, don't edit this"
183 # This is set by the configure script to the list of directories which
184 # should be built using the target tools.
185 TARGET_CONFIGDIRS = libiberty libgloss $(SPECIAL_LIBS) newlib librx winsup opcodes bsp libstub cygmon libf2c libobjc
187 # Target libraries are put under this directory:
188 # Changed by configure to $(target_alias) if cross.
191 BUILD_CONFIGDIRS = libiberty
194 # This is set by the configure script to the arguments to use when configuring
195 # directories built for the target.
198 # This is set by the configure script to the arguments to use when configuring
199 # directories built for the build system.
202 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
206 # This is the name of the environment variable used for the path to
207 # the libraries. This may be changed by configure.in.
208 RPATH_ENVVAR = LD_LIBRARY_PATH
210 # This is the list of directories that may be needed in RPATH_ENVVAR
211 # so that programs built for the host machine work.
212 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
214 # This is the list of directories that may be needed in RPATH_ENVVAR
215 # so that prorgams built for the target machine work.
216 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:
218 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
219 # Some platforms don't like blank entries, so we remove duplicate,
220 # leading and trailing colons.
221 REALLY_SET_LIB_PATH = \
222 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
225 INSTALL_TARGET = installdirs \
228 $(INSTALL_TARGET_MODULES) \
229 $(INSTALL_X11_MODULES) \
232 INSTALL_TARGET_CROSS = installdirs \
235 $(INSTALL_TARGET_MODULES) \
236 $(INSTALL_X11_MODULES) \
239 # Should be substed by configure.in
243 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE =
246 # If GCC_FOR_TARGET is not overriden on the command line, then this
247 # variable is passed down to the gcc Makefile, where it is used to
248 # build libgcc2.a. We define it here so that it can itself be
249 # overridden on the command line.
250 GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
253 if [ -f $$r/gas/as-new ] ; then \
254 echo $$r/gas/as-new ; \
255 elif [ -f $$r/gcc/xgcc ]; then \
256 $(CC_FOR_TARGET) -print-prog-name=as ; \
258 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
261 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
266 if [ -f $$r/ld/ld-new ] ; then \
267 echo $$r/ld/ld-new ; \
268 elif [ -f $$r/gcc/xgcc ]; then \
269 $(CC_FOR_TARGET) -print-prog-name=ld ; \
271 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
274 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
278 DLLTOOL_FOR_TARGET = ` \
279 if [ -f $$r/binutils/dlltool ] ; then \
280 echo $$r/binutils/dlltool ; \
282 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
285 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
289 WINDRES_FOR_TARGET = ` \
290 if [ -f $$r/binutils/windres ] ; then \
291 echo $$r/binutils/windres ; \
293 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
296 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
301 if [ -f $$r/binutils/ar ] ; then \
302 echo $$r/binutils/ar ; \
304 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
307 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
311 RANLIB_FOR_TARGET = ` \
312 if [ -f $$r/binutils/ranlib ] ; then \
313 echo $$r/binutils/ranlib ; \
315 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
316 if [ x'$(RANLIB)' != x ]; then \
322 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
327 if [ -f $$r/binutils/nm-new ] ; then \
328 echo $$r/binutils/nm-new ; \
329 elif [ -f $$r/gcc/xgcc ]; then \
330 $(CC_FOR_TARGET) -print-prog-name=nm ; \
332 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
335 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
339 # The first rule in the file had better be this one. Don't put any above it.
340 # This lives here to allow makefile fragments to contain dependencies.
344 # These can be overridden by config/mt-*.
345 # The _TARGET_ is because they're specified in mt-foo.
346 # The _HOST_ is because they're programs that run on the host.
347 EXTRA_TARGET_HOST_ALL_MODULES =
348 EXTRA_TARGET_HOST_INSTALL_MODULES =
349 EXTRA_TARGET_HOST_CHECK_MODULES =
351 #### host and target specific makefile fragments come in here.
354 # Flags to pass down to all sub-makes.
355 # Please keep these in alphabetical order.
356 BASE_FLAGS_TO_PASS = \
357 "AR_FLAGS=$(AR_FLAGS)" \
358 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
359 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
361 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
362 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
364 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
365 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
366 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
367 "CXXFLAGS=$(CXXFLAGS)" \
368 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
369 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
370 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
371 "INSTALL=$(INSTALL)" \
372 "INSTALL_DATA=$(INSTALL_DATA)" \
373 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
374 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
375 "LDFLAGS=$(LDFLAGS)" \
377 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
378 "LIBCFLAGS=$(LIBCFLAGS)" \
379 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
380 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
381 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
384 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
385 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
386 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
387 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
390 "RUNTEST=$(RUNTEST)" \
391 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
392 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
393 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
396 "datadir=$(datadir)" \
397 "exec_prefix=$(exec_prefix)" \
398 "includedir=$(includedir)" \
399 "infodir=$(infodir)" \
401 "libexecdir=$(libexecdir)" \
402 "lispdir=$(lispdir)" \
403 "libstdcxx_incdir=$(libstdcxx_incdir)" \
404 "libsubdir=$(libsubdir)" \
405 "localstatedir=$(localstatedir)" \
407 "oldincludedir=$(oldincludedir)" \
409 "sbindir=$(sbindir)" \
410 "sharedstatedir=$(sharedstatedir)" \
411 "sysconfdir=$(sysconfdir)" \
412 "tooldir=$(tooldir)" \
413 "build_tooldir=$(build_tooldir)" \
414 "gxx_include_dir=$(gxx_include_dir)" \
415 "gcc_version=$(gcc_version)" \
416 "gcc_version_trigger=$(gcc_version_trigger)" \
417 "target_alias=$(target_alias)"
419 # For any flags above that may contain shell code that varies from one
420 # target library to another. When doing recursive invocations of the
421 # top-level Makefile, we don't want the outer make to evaluate them,
422 # so we pass these variables down unchanged. They must not contain
423 # single nor double quotes.
425 CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
427 # Flags to pass down to most sub-makes, in which we're building with
428 # the host environment.
429 # If any variables are added here, they must be added to do-*, below.
435 'DLLTOOL=$(DLLTOOL)' \
438 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
441 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
443 # Flags that are concerned with the location of the X11 include files
446 # NOTE: until the top-level is getting the values via autoconf, it only
447 # causes problems to have this top-level Makefile overriding the autoconf-set
448 # values in child directories. Only variables that don't conflict with
449 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
451 X11_FLAGS_TO_PASS = \
452 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
453 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
455 # Flags to pass down to makes which are built with the target environment.
456 # The double $ decreases the length of the command line; the variables
457 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
458 # If any variables are added here, they must be added to do-*, below.
459 EXTRA_TARGET_FLAGS = \
460 'AR=$$(AR_FOR_TARGET)' \
461 'AS=$$(AS_FOR_TARGET)' \
462 'CC=$$(CC_FOR_TARGET)' \
463 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
464 'CXX=$$(CXX_FOR_TARGET)' \
465 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
466 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
467 'LD=$$(LD_FOR_TARGET)' \
468 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
469 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
470 'NM=$$(NM_FOR_TARGET)' \
471 'RANLIB=$$(RANLIB_FOR_TARGET)' \
472 'WINDRES=$$(WINDRES_FOR_TARGET)'
474 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
476 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
477 # unfortunately needs the native compiler and the target ar and
479 # If any variables are added here, they must be added to do-*, below.
480 # The HOST_* variables are a special case, which are used for the gcc
481 # cross-building scheme.
487 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488 'HOST_CC=$(CC_FOR_BUILD)' \
489 'BUILD_PREFIX=$(BUILD_PREFIX)' \
490 'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
492 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
493 'WINDRES=$$(WINDRES_FOR_TARGET)' \
494 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
495 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
496 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
501 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
502 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
503 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
504 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
505 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
507 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
509 # This is a list of the targets for all of the modules which are compiled
510 # using the build machine's native compiler. Configure edits the second
511 # macro for build!=host builds.
512 ALL_BUILD_MODULES_LIST = \
516 # This is a list of the configure targets for all of the modules which
517 # are compiled using the native tools.
518 CONFIGURE_BUILD_MODULES = \
519 configure-build-libiberty
521 # This is a list of the targets for all of the modules which are compiled
522 # using $(FLAGS_TO_PASS).
591 $(EXTRA_TARGET_HOST_ALL_MODULES)
593 # This is a list of the check targets for all of the modules which are
594 # compiled using $(FLAGS_TO_PASS).
596 # The list is in two parts. The first lists those tools which
597 # are tested as part of the host's native tool-chain, and not
598 # tested in a cross configuration.
599 NATIVE_CHECK_MODULES = \
606 CROSS_CHECK_MODULES = \
665 $(EXTRA_TARGET_HOST_CHECK_MODULES)
667 CHECK_MODULES=$(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
669 # This is a list of the install targets for all of the modules which are
670 # compiled using $(FLAGS_TO_PASS).
671 # We put install-opcodes before install-binutils because the installed
672 # binutils might be on PATH, and they might need the shared opcodes
674 # We put install-tcl before install-itcl because itcl wants to run a
675 # program on installation which uses the Tcl libraries.
741 $(EXTRA_TARGET_HOST_INSTALL_MODULES)
743 # This is a list of the targets for all of the modules which are compiled
744 # using $(X11_FLAGS_TO_PASS).
755 # This is a list of the check targets for all of the modules which are
756 # compiled using $(X11_FLAGS_TO_PASS).
757 CHECK_X11_MODULES = \
766 # This is a list of the install targets for all the modules which are
767 # compiled using $(X11_FLAGS_TO_PASS).
768 INSTALL_X11_MODULES = \
778 # This is a list of the targets for all of the modules which are compiled
779 # using $(TARGET_FLAGS_TO_PASS).
780 ALL_TARGET_MODULES = \
781 all-target-libstdc++-v3 \
786 all-target-libtermcap \
788 all-target-libgloss \
789 all-target-libiberty \
791 all-target-examples \
796 all-target-boehm-gc \
797 all-target-qthreads \
801 # This is a list of the configure targets for all of the modules which
802 # are compiled using the target tools.
803 CONFIGURE_TARGET_MODULES = \
804 configure-target-libstdc++-v3 \
805 configure-target-librx \
806 configure-target-newlib \
807 configure-target-libf2c \
808 configure-target-libobjc \
809 configure-target-libtermcap \
810 configure-target-winsup \
811 configure-target-libgloss \
812 configure-target-libiberty \
813 configure-target-gperf \
814 configure-target-examples \
815 configure-target-libstub \
816 configure-target-libffi \
817 configure-target-libjava \
818 configure-target-zlib \
819 configure-target-boehm-gc \
820 configure-target-qthreads \
821 configure-target-bsp \
822 configure-target-cygmon
824 # This is a list of the check targets for all of the modules which are
825 # compiled using $(TARGET_FLAGS_TO_PASS).
826 CHECK_TARGET_MODULES = \
827 check-target-libstdc++-v3 \
828 check-target-newlib \
829 check-target-libf2c \
830 check-target-libobjc \
831 check-target-winsup \
832 check-target-libiberty \
833 check-target-libffi \
834 check-target-libjava \
836 check-target-boehm-gc \
837 check-target-qthreads \
840 # This is a list of the install targets for all of the modules which are
841 # compiled using $(TARGET_FLAGS_TO_PASS).
842 INSTALL_TARGET_MODULES = \
843 install-target-libstdc++-v3 \
844 install-target-newlib \
845 install-target-libf2c \
846 install-target-libobjc \
847 install-target-libtermcap \
848 install-target-winsup \
849 install-target-libgloss \
850 install-target-libiberty \
852 install-target-libjava \
853 install-target-zlib \
854 install-target-boehm-gc \
855 install-target-qthreads \
858 # This is a list of the targets for which we can do a clean-{target}.
928 # All of the target modules that can be cleaned
929 CLEAN_TARGET_MODULES = \
930 clean-target-libstdc++-v3 \
932 clean-target-newlib \
933 clean-target-libf2c \
934 clean-target-libobjc \
935 clean-target-winsup \
936 clean-target-libgloss \
937 clean-target-libiberty \
939 clean-target-examples \
940 clean-target-libstub \
941 clean-target-libffi \
942 clean-target-libjava \
944 clean-target-boehm-gc \
945 clean-target-qthreads \
949 # All of the x11 modules that can be cleaned
950 CLEAN_X11_MODULES = \
960 # The target built for a native build.
963 $(ALL_BUILD_MODULES) \
966 $(ALL_TARGET_MODULES) \
969 # Do a target for all the subdirectories. A ``make do-X'' will do a
970 # ``make X'' in all subdirectories (because, in general, there is a
971 # dependency (below) of X upon do-X, a ``make X'' will also do this,
972 # but it may do additional work as well).
973 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
974 # because it is so large that it can easily overflow the command line
975 # length limit on some systems.
984 do-maintainer-clean \
988 @target=`echo $@ | sed -e 's/^do-//'`; \
989 r=`${PWD}`; export r; \
990 s=`cd $(srcdir); ${PWD}`; export s; \
992 for i in $(SUBDIRS) -dummy-; do \
993 if [ -f ./$$i/Makefile ]; then \
996 for flag in $(EXTRA_GCC_FLAGS); do \
997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1001 for flag in $(EXTRA_HOST_FLAGS); do \
1002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1009 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1012 then true; else exit 1; fi; \
1015 @target=`echo $@ | sed -e 's/^do-//'`; \
1016 r=`${PWD}`; export r; \
1017 s=`cd $(srcdir); ${PWD}`; export s; \
1019 for i in $(TARGET_CONFIGDIRS) -dummy-; do \
1020 if [ -f $(TARGET_SUBDIR)/$$i/Makefile ]; then \
1021 for flag in $(EXTRA_TARGET_FLAGS); do \
1022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1024 if (cd $(TARGET_SUBDIR)/$$i; \
1025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
1026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1027 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1030 then true; else exit 1; fi; \
1034 # Here are the targets which correspond to the do-X targets.
1036 .PHONY: info installcheck dvi install-info
1037 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1038 .PHONY: local-clean local-distclean local-maintainer-clean
1040 installcheck: do-installcheck
1043 # Make sure makeinfo is built before we do a `make info'.
1044 do-info: all-texinfo
1046 install-info: do-install-info dir.info
1047 s=`cd $(srcdir); ${PWD}`; export s; \
1048 if [ -f dir.info ] ; then \
1049 $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
1053 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1056 -rm -f Makefile config.status config.cache mh-frag mt-frag
1057 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1058 rm -rf $(TARGET_SUBDIR); \
1060 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1061 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1062 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1063 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1064 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1066 local-maintainer-clean:
1067 @echo "This command is intended for maintainers to use;"
1068 @echo "it deletes files that may require special tools to rebuild."
1070 clean: do-clean local-clean
1071 mostlyclean: do-mostlyclean local-clean
1072 distclean: do-distclean local-clean local-distclean
1073 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
1074 maintainer-clean: local-distclean
1075 realclean: maintainer-clean
1077 # This rule is used to clean specific modules.
1078 .PHONY: $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc
1079 $(CLEAN_MODULES) $(CLEAN_X11_MODULES) clean-gcc:
1080 @dir=`echo $@ | sed -e 's/clean-//'`; \
1081 if [ -f ./$${dir}/Makefile ] ; then \
1082 r=`${PWD}`; export r; \
1083 s=`cd $(srcdir); ${PWD}`; export s; \
1085 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) clean); \
1090 .PHONY: $(CLEAN_TARGET_MODULES)
1091 $(CLEAN_TARGET_MODULES):
1092 @dir=`echo $@ | sed -e 's/clean-target-//'`; \
1093 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1094 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1095 r=`${PWD}`; export r; \
1096 s=`cd $(srcdir); ${PWD}`; export s; \
1098 (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) clean); \
1103 clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
1104 clean-target-libgcc:
1105 test ! -d gcc/libgcc || \
1106 (cd gcc/libgcc && find . -type d -print) | \
1107 while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1112 .PHONY: check do-check
1114 $(MAKE) do-check NOTPARALLEL=parallel-ok
1116 do-check: $(CHECK_MODULES) \
1117 $(CHECK_TARGET_MODULES) \
1118 $(CHECK_X11_MODULES) \
1121 # Automated reporting of test results.
1123 warning.log: build.log
1124 $(srcdir)/contrib/warn_summary build.log > $@
1127 if test x'$(BOOT_CFLAGS)' != x''; then \
1128 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1130 $(srcdir)/contrib/test_summary -t >$@
1132 echo If you really want to send e-mail, run ./$@ now
1134 mail-report-with-warnings.log: warning.log
1135 if test x'$(BOOT_CFLAGS)' != x''; then \
1136 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1138 $(srcdir)/contrib/test_summary -t -i warning.log >$@
1140 echo If you really want to send e-mail, run ./$@ now
1142 # Installation targets.
1144 .PHONY: install install-cross uninstall source-vault binary-vault vault-install
1145 install: $(INSTALL_TARGET)
1146 install-cross: $(INSTALL_TARGET_CROSS)
1149 @echo "the uninstall target is not supported in this tree"
1152 $(MAKE) -f ./release/Build-A-Release \
1153 host=$(host_alias) source-vault
1156 $(MAKE) -f ./release/Build-A-Release \
1157 host=$(host_alias) target=$(target_alias)
1160 @if [ -f ./release/vault-install ] ; then \
1161 ./release/vault-install $(host_alias) $(target_alias) ; \
1167 install.all: install-no-fixedincludes
1168 @if [ -f ./gcc/Makefile ] ; then \
1169 r=`${PWD}` ; export r ; \
1172 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1177 # inet-install is used because the I*Net wants DejaGNU installed but
1178 # not built. Similarly, gzip is built but not installed.
1180 $(MAKE) INSTALL_MODULES="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1182 # install-no-fixedincludes is used because Cygnus can not distribute
1183 # the fixed header files.
1184 .PHONY: install-no-fixedincludes
1185 install-no-fixedincludes: \
1187 $(INSTALL_MODULES) \
1188 $(INSTALL_TARGET_MODULES) \
1189 $(INSTALL_X11_MODULES) \
1190 gcc-no-fixedincludes
1192 # Install the gcc headers files, but not the fixed include files,
1193 # which Cygnus is not allowed to distribute. This rule is very
1194 # dependent on the workings of the gcc Makefile.in.
1195 .PHONY: gcc-no-fixedincludes
1196 gcc-no-fixedincludes:
1197 @if [ -f ./gcc/Makefile ]; then \
1198 rm -rf gcc/tmp-include; \
1199 mv gcc/include gcc/tmp-include 2>/dev/null; \
1200 mkdir gcc/include; \
1201 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
1202 touch gcc/stmp-fixinc gcc/include/fixed; \
1203 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
1204 r=`${PWD}`; export r; \
1205 s=`cd $(srcdir); ${PWD}` ; export s; \
1208 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1209 rm -rf gcc/include; \
1210 mv gcc/tmp-include gcc/include 2>/dev/null; \
1213 # This rule is used to build the modules which are built with the
1214 # build machine's native compiler.
1215 .PHONY: $(ALL_BUILD_MODULES)
1216 $(ALL_BUILD_MODULES):
1217 dir=`echo $@ | sed -e 's/all-build-//'`; \
1218 if [ -f ./$${dir}/Makefile ] ; then \
1219 r=`${PWD}`; export r; \
1220 s=`cd $(srcdir); ${PWD}`; export s; \
1221 (cd $(BUILD_SUBDIR)/$${dir} && $(MAKE) all); \
1226 # This rule is used to configure the modules which are built with the
1228 .PHONY: $(CONFIGURE_BUILD_MODULES)
1229 $(CONFIGURE_BUILD_MODULES):
1230 @dir=`echo $@ | sed -e 's/configure-build-//'`; \
1231 if [ ! -d $(BUILD_SUBDIR) ]; then \
1233 elif [ -f $(BUILD_SUBDIR)/$${dir}/Makefile ] ; then \
1235 elif echo " $(BUILD_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1236 if [ -d $(srcdir)/$${dir} ]; then \
1237 [ -d $(BUILD_SUBDIR)/$${dir} ] || mkdir $(BUILD_SUBDIR)/$${dir};\
1238 r=`${PWD}`; export r; \
1239 s=`cd $(srcdir); ${PWD}`; export s; \
1240 AR="$(AR_FOR_BUILD)"; export AR; \
1241 AS="$(AS_FOR_BUILD)"; export AS; \
1242 CC="$(CC_FOR_BUILD)"; export CC; \
1243 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
1244 CXX="$(CXX_FOR_BUILD)"; export CXX; \
1245 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
1246 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
1247 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
1248 LD="$(LD_FOR_BUILD)"; export LD; \
1249 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
1250 NM="$(NM_FOR_BUILD)"; export NM; \
1251 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
1252 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
1253 echo Configuring in $(BUILD_SUBDIR)/$${dir}; \
1254 cd "$(BUILD_SUBDIR)/$${dir}" || exit 1; \
1256 /* | [A-Za-z]:[\\/]*) \
1257 topdir=$(srcdir) ;; \
1259 case "$(BUILD_SUBDIR)" in \
1260 .) topdir="../$(srcdir)" ;; \
1261 *) topdir="../../$(srcdir)" ;; \
1264 if [ "$(srcdir)" = "." ] ; then \
1265 if [ "$(BUILD_SUBDIR)" != "." ] ; then \
1266 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1267 if [ -f Makefile ]; then \
1268 if $(MAKE) distclean; then \
1282 srcdiroption="--srcdir=."; \
1285 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1286 libsrcdir="$$s/$${dir}"; \
1288 if [ -f $${libsrcdir}/configure ] ; then \
1289 rm -f no-such-file skip-this-dir; \
1290 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1291 $(BUILD_CONFIGARGS) $${srcdiroption} \
1292 --with-build-subdir="$(BUILD_SUBDIR)"; \
1294 rm -f no-such-file skip-this-dir; \
1295 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1296 $(BUILD_CONFIGARGS) $${srcdiroption} \
1297 --with-build-subdir="$(BUILD_SUBDIR)"; \
1299 if [ -f skip-this-dir ] ; then \
1301 rm -f skip-this-dir; \
1302 cd ..; rmdir $${dir} || true; \
1313 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1314 # build a target all-X means to cd to X and make all.
1316 # all-gui, and all-libproc are handled specially because
1317 # they are still experimental, and if they fail to build, that
1318 # shouldn't stop "make all".
1319 .PHONY: $(ALL_MODULES) all-gui all-libproc
1320 $(ALL_MODULES) all-gui all-libproc:
1321 @dir=`echo $@ | sed -e 's/all-//'`; \
1322 if [ -f ./$${dir}/Makefile ] ; then \
1323 r=`${PWD}`; export r; \
1324 s=`cd $(srcdir); ${PWD}`; export s; \
1326 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
1331 # These rules are used to check the modules which use FLAGS_TO_PASS.
1332 # To build a target check-X means to cd to X and make check. Some
1333 # modules are only tested in a native toolchain.
1335 .PHONY: $(CHECK_MODULES) $(NATIVE_CHECK_MODULES) $(CROSS_CHECK_MODULES)
1336 $(NATIVE_CHECK_MODULES):
1337 @if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1338 dir=`echo $@ | sed -e 's/check-//'`; \
1339 if [ -f ./$${dir}/Makefile ] ; then \
1340 r=`${PWD}`; export r; \
1341 s=`cd $(srcdir); ${PWD}`; export s; \
1343 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1349 $(CROSS_CHECK_MODULES):
1350 @dir=`echo $@ | sed -e 's/check-//'`; \
1351 if [ -f ./$${dir}/Makefile ] ; then \
1352 r=`${PWD}`; export r; \
1353 s=`cd $(srcdir); ${PWD}`; export s; \
1355 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
1360 # This rule is used to install the modules which use FLAGS_TO_PASS.
1361 # To build a target install-X means to cd to X and make install.
1362 .PHONY: $(INSTALL_MODULES)
1363 $(INSTALL_MODULES): installdirs
1364 @dir=`echo $@ | sed -e 's/install-//'`; \
1365 if [ -f ./$${dir}/Makefile ] ; then \
1366 r=`${PWD}`; export r; \
1367 s=`cd $(srcdir); ${PWD}`; export s; \
1369 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1374 # This rule is used to configure the modules which are built with the
1376 .PHONY: $(CONFIGURE_TARGET_MODULES)
1377 $(CONFIGURE_TARGET_MODULES):
1378 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1379 if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
1380 r=`${PWD}`; export r; \
1381 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
1382 if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
1383 if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
1384 if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
1385 rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
1387 echo "Multilibs changed for $${dir}, reconfiguring"; \
1388 rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
1389 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1392 mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
1395 fi; exit 0 # break command into two pieces
1396 @dir=`echo $@ | sed -e 's/configure-target-//'`; \
1397 if [ ! -d $(TARGET_SUBDIR) ]; then \
1399 elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1401 elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
1402 if [ -d $(srcdir)/$${dir} ]; then \
1403 [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
1404 r=`${PWD}`; export r; \
1405 s=`cd $(srcdir); ${PWD}`; export s; \
1407 AR="$(AR_FOR_TARGET)"; export AR; \
1408 AS="$(AS_FOR_TARGET)"; export AS; \
1409 CC="$(CC_FOR_TARGET)"; export CC; \
1410 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
1411 CXX="$(CXX_FOR_TARGET)"; export CXX; \
1412 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
1413 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
1414 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
1415 LD="$(LD_FOR_TARGET)"; export LD; \
1416 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
1417 NM="$(NM_FOR_TARGET)"; export NM; \
1418 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
1419 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
1420 echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
1421 cd "$(TARGET_SUBDIR)/$${dir}" || exit 1; \
1423 /* | [A-Za-z]:[\\/]*) \
1424 topdir=$(srcdir) ;; \
1426 case "$(TARGET_SUBDIR)" in \
1427 .) topdir="../$(srcdir)" ;; \
1428 *) topdir="../../$(srcdir)" ;; \
1431 if [ "$(srcdir)" = "." ] ; then \
1432 if [ "$(TARGET_SUBDIR)" != "." ] ; then \
1433 if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
1434 if [ -f Makefile ]; then \
1435 if $(MAKE) distclean; then \
1449 srcdiroption="--srcdir=."; \
1452 srcdiroption="--srcdir=$${topdir}/$${dir}"; \
1453 libsrcdir="$$s/$${dir}"; \
1455 if [ -f $${libsrcdir}/configure ] ; then \
1456 rm -f no-such-file skip-this-dir; \
1457 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
1458 $(TARGET_CONFIGARGS) $${srcdiroption} \
1459 --with-target-subdir="$(TARGET_SUBDIR)"; \
1461 rm -f no-such-file skip-this-dir; \
1462 CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
1463 $(TARGET_CONFIGARGS) $${srcdiroption} \
1464 --with-target-subdir="$(TARGET_SUBDIR)"; \
1466 if [ -f skip-this-dir ] ; then \
1468 rm -f skip-this-dir; \
1469 cd ..; rmdir $${dir} || true; \
1480 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1481 # To build a target all-X means to cd to X and make all.
1482 .PHONY: $(ALL_TARGET_MODULES)
1483 $(ALL_TARGET_MODULES):
1484 @dir=`echo $@ | sed -e 's/all-target-//'`; \
1485 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1486 r=`${PWD}`; export r; \
1487 s=`cd $(srcdir); ${PWD}`; export s; \
1489 (cd $(TARGET_SUBDIR)/$${dir}; \
1490 $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
1495 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1496 # To build a target install-X means to cd to X and make install.
1497 .PHONY: $(CHECK_TARGET_MODULES)
1498 $(CHECK_TARGET_MODULES):
1499 @dir=`echo $@ | sed -e 's/check-target-//'`; \
1500 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1501 r=`${PWD}`; export r; \
1502 s=`cd $(srcdir); ${PWD}`; export s; \
1504 (cd $(TARGET_SUBDIR)/$${dir}; \
1505 $(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
1510 # This rule is used to install the modules which use
1511 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1513 .PHONY: $(INSTALL_TARGET_MODULES)
1514 $(INSTALL_TARGET_MODULES): installdirs
1515 @dir=`echo $@ | sed -e 's/install-target-//'`; \
1516 if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
1517 r=`${PWD}`; export r; \
1518 s=`cd $(srcdir); ${PWD}`; export s; \
1520 (cd $(TARGET_SUBDIR)/$${dir}; \
1521 $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
1526 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1527 # To build a target all-X means to cd to X and make all.
1528 .PHONY: $(ALL_X11_MODULES)
1530 @dir=`echo $@ | sed -e 's/all-//'`; \
1531 if [ -f ./$${dir}/Makefile ] ; then \
1532 r=`${PWD}`; export r; \
1533 s=`cd $(srcdir); ${PWD}`; export s; \
1536 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
1541 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1542 # To build a target check-X means to cd to X and make all.
1543 .PHONY: $(CHECK_X11_MODULES)
1544 $(CHECK_X11_MODULES):
1545 @dir=`echo $@ | sed -e 's/check-//'`; \
1546 if [ -f ./$${dir}/Makefile ] ; then \
1547 r=`${PWD}`; export r; \
1548 s=`cd $(srcdir); ${PWD}`; export s; \
1551 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
1556 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1557 # To build a target install-X means to cd to X and make install.
1558 .PHONY: $(INSTALL_X11_MODULES)
1559 $(INSTALL_X11_MODULES): installdirs
1560 @dir=`echo $@ | sed -e 's/install-//'`; \
1561 if [ -f ./$${dir}/Makefile ] ; then \
1562 r=`${PWD}`; export r; \
1563 s=`cd $(srcdir); ${PWD}`; export s; \
1566 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
1571 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1574 @if [ -f ./gcc/Makefile ] ; then \
1575 r=`${PWD}`; export r; \
1576 s=`cd $(srcdir); ${PWD}`; export s; \
1578 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
1583 # Building GCC uses some tools for rebuilding "source" files
1584 # like texinfo, bison/byacc, etc. So we must depend on those.
1586 # While building GCC, it may be necessary to run various target
1587 # programs like the assembler, linker, etc. So we depend on
1590 # In theory, on an SMP all those dependencies can be resolved
1593 .PHONY: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1594 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean: all-bootstrap
1595 @r=`${PWD}`; export r; \
1596 s=`cd $(srcdir); ${PWD}`; export s; \
1598 echo "Bootstrapping the compiler"; \
1599 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
1600 @r=`${PWD}`; export r; \
1601 s=`cd $(srcdir); ${PWD}`; export s; \
1603 *bootstrap4-lean ) \
1604 msg="Comparing stage3 and stage4 of the compiler"; \
1605 compare=compare3-lean ;; \
1606 *bootstrap4 ) msg="Comparing stage3 and stage4 of the compiler"; \
1607 compare=compare3 ;; \
1608 *-lean ) msg="Comparing stage2 and stage3 of the compiler"; \
1609 compare=compare-lean ;; \
1610 * ) msg="Comparing stage2 and stage3 of the compiler"; \
1611 compare=compare ;; \
1615 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
1616 @r=`${PWD}`; export r; \
1617 s=`cd $(srcdir); ${PWD}` ; export s; \
1619 echo "Building runtime libraries"; \
1620 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) all
1623 cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1624 @r=`${PWD}`; export r; \
1625 s=`cd $(srcdir); ${PWD}`; export s; \
1627 echo "Building the C and C++ compiler"; \
1628 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
1629 @r=`${PWD}`; export r; \
1630 s=`cd $(srcdir); ${PWD}` ; export s; \
1632 echo "Building runtime libraries"; \
1633 $(MAKE) $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS) \
1634 LANGUAGES="c c++" all
1638 @if [ -f ./gcc/Makefile ] ; then \
1639 r=`${PWD}`; export r; \
1640 s=`cd $(srcdir); ${PWD}`; export s; \
1642 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
1649 @if [ -f ./gcc/Makefile ] ; then \
1650 r=`${PWD}`; export r; \
1651 s=`cd $(srcdir); ${PWD}`; export s; \
1653 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
1654 $(MAKE) check-target-libstdc++-v3; \
1661 @if [ -f ./gcc/Makefile ] ; then \
1662 r=`${PWD}`; export r; \
1663 s=`cd $(srcdir); ${PWD}`; export s; \
1665 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
1670 .PHONY: install-gcc-cross
1672 @if [ -f ./gcc/Makefile ] ; then \
1673 r=`${PWD}`; export r; \
1674 s=`cd $(srcdir); ${PWD}`; export s; \
1676 (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++" install); \
1680 # EXPERIMENTAL STUFF
1681 # This rule is used to install the modules which use FLAGS_TO_PASS.
1682 # To build a target install-X means to cd to X and make install.
1683 .PHONY: install-dosrel
1684 install-dosrel: installdirs info
1685 @dir=`echo $@ | sed -e 's/install-//'`; \
1686 if [ -f ./$${dir}/Makefile ] ; then \
1687 r=`${PWD}`; export r; \
1688 s=`cd $(srcdir); ${PWD}`; export s; \
1690 (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
1695 install-dosrel-fake:
1698 ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
1699 ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++-v3
1701 # This is a list of inter-dependencies among modules.
1704 all-autoconf: all-m4 all-texinfo
1705 all-automake: all-m4 all-texinfo
1707 all-bfd: all-libiberty all-intl
1708 all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1709 all-bison: all-texinfo
1710 configure-target-boehm-gc: $(ALL_GCC_C) configure-target-qthreads
1711 all-target-boehm-gc: configure-target-boehm-gc
1712 configure-target-bsp: $(ALL_GCC_C)
1713 all-target-bsp: configure-target-bsp
1716 all-cgen: all-libiberty
1718 configure-target-cygmon: $(ALL_GCC_C)
1719 all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp
1721 all-dejagnu: all-tcl all-expect all-tk
1722 all-diff: all-libiberty
1724 all-emacs19: all-bison all-byacc
1726 configure-target-examples: $(ALL_GCC_C)
1727 all-target-examples: configure-target-examples
1728 all-expect: all-tcl all-tk
1729 all-fileutils: all-libiberty
1732 all-flex: all-libiberty all-bison all-byacc
1733 all-gas: all-libiberty all-opcodes all-bfd all-intl
1735 all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1736 all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1737 GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
1738 all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
1741 configure-target-gperf: $(ALL_GCC_CXX)
1742 all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++-v3
1743 all-gprof: all-libiberty all-bfd all-opcodes all-intl
1744 all-grep: all-libiberty
1745 all-grez: all-libiberty all-bfd all-opcodes
1746 all-gui: all-gdb all-libproc all-target-librx
1748 all-gzip: all-libiberty
1749 all-hello: all-libiberty
1751 all-inet: all-tcl all-send-pr all-perl
1753 all-ispell: all-emacs19
1754 all-itcl: all-tcl all-tk
1755 all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1756 configure-target-libgloss: $(ALL_GCC)
1757 all-target-libgloss: configure-target-libgloss configure-target-newlib
1758 all-libgui: all-tcl all-tk all-itcl
1761 all-build-libiberty: configure-build-libiberty
1763 configure-target-libffi: $(ALL_GCC_C)
1764 all-target-libffi: configure-target-libffi
1765 configure-target-libjava: $(ALL_GCC_C) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1766 all-target-libjava: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1767 configure-target-librx: $(ALL_GCC_C)
1768 all-target-librx: configure-target-librx
1769 configure-target-libstdc++-v3: $(ALL_GCC_C)
1770 all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
1771 configure-target-libstub: $(ALL_GCC_C)
1772 all-target-libstub: configure-target-libstub
1774 configure-target-libf2c: $(ALL_GCC_C)
1775 all-target-libf2c: configure-target-libf2c all-target-libiberty
1776 configure-target-libobjc: $(ALL_GCC_C)
1777 all-target-libobjc: configure-target-libobjc all-target-libiberty
1778 all-m4: all-libiberty all-texinfo
1779 all-make: all-libiberty
1781 configure-target-newlib: $(ALL_GCC)
1782 all-target-newlib: configure-target-newlib
1783 configure-target-libtermcap: $(ALL_GCC_C)
1784 all-target-libtermcap: configure-target-libtermcap
1785 all-opcodes: all-bfd all-libiberty all-cgen
1786 all-patch: all-libiberty
1788 all-prms: all-libiberty
1789 configure-target-qthreads: $(ALL_GCC_C)
1790 all-target-qthreads: configure-target-qthreads
1793 all-recode: all-libiberty
1794 all-sed: all-libiberty
1795 all-send-pr: all-prms
1797 all-sid: all-tcl all-tk
1798 all-sim: all-libiberty all-bfd all-opcodes all-readline all-cgen
1799 all-snavigator: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1800 all-tar: all-libiberty
1802 all-tclX: all-tcl all-tk
1804 all-texinfo: all-libiberty
1806 all-tgas: all-libiberty all-bfd all-opcodes
1808 all-tix: all-tcl all-tk
1810 configure-target-winsup: $(ALL_GCC_C)
1811 all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
1812 all-uudecode: all-libiberty
1815 configure-target-zlib: $(ALL_GCC_C)
1816 all-target-zlib: configure-target-zlib
1817 all-fastjar: all-zlib all-libiberty
1818 configure-target-fastjar: configure-target-zlib
1819 all-target-fastjar: configure-target-fastjar all-target-zlib all-target-libiberty
1820 configure-target-libiberty: $(ALL_GCC_C)
1821 all-target-libiberty: configure-target-libiberty
1822 all-target: $(ALL_TARGET_MODULES)
1823 install-target: $(INSTALL_TARGET_MODULES)
1824 install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
1825 install-sid: install-tcl install-tk
1826 ### other supporting targets
1829 $(DESTDIR)$(prefix) \
1830 $(DESTDIR)$(exec_prefix)
1832 installdirs: mkinstalldirs
1833 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1835 dir.info: do-install-info
1836 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
1837 $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
1838 mv -f dir.info.new dir.info ; \
1843 @echo "Building a full distribution of this tree isn't done"
1844 @echo "via 'make dist'. Check out the etc/ subdirectory"
1848 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1849 # ability to use several tags files at once, so there is probably no need
1850 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1851 # (if we felt like it) have this Makefile write a piece of elisp which
1852 # the user could load to tell emacs19 where all the TAGS files we just
1856 # with the gnu make, this is done automatically.
1858 Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag) $(gcc_version_trigger)
1859 $(SHELL) ./config.status
1862 # Support for building net releases
1864 # Files in devo used in any net release.
1865 # ChangeLog omitted because it may refer to files which are not in this
1866 # distribution (perhaps it would be better to include it anyway).
1867 DEVO_SUPPORT= README Makefile.in configure configure.in \
1868 config.guess config.if config.sub config move-if-change \
1869 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1870 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1871 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1872 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1874 # Files in devo/etc used in any net release.
1875 # ChangeLog omitted because it may refer to files which are not in this
1876 # distribution (perhaps it would be better to include it anyway).
1877 ETC_SUPPORT= Makefile.in configure configure.in standards.texi \
1878 make-stds.texi standards.info* configure.texi configure.info* \
1879 configbuild.* configdev.*
1882 # When you use `make setup-dirs' or `make taz' you should always redefine
1884 SUPPORT_FILES = list-of-support-files-for-tool-in-question
1886 # NOTE: No double quotes in the below. It is used within shell script
1888 VER = ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1889 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1890 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1891 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1892 elif test -f $(TOOL)/version.in; then \
1893 head -1 $(TOOL)/version.in; \
1894 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1895 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1902 taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1903 $(MAKE) -f Makefile.in do-proto-toplev \
1904 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1905 MD5PROG="$(MD5PROG)" \
1906 SUPPORT_FILES="$(SUPPORT_FILES)"
1907 $(MAKE) -f Makefile.in do-md5sum \
1908 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1909 MD5PROG="$(MD5PROG)" \
1910 SUPPORT_FILES="$(SUPPORT_FILES)"
1911 $(MAKE) -f Makefile.in do-tar \
1912 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1913 MD5PROG="$(MD5PROG)" \
1914 SUPPORT_FILES="$(SUPPORT_FILES)"
1915 $(MAKE) -f Makefile.in do-bz2 \
1916 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1917 MD5PROG="$(MD5PROG)" \
1918 SUPPORT_FILES="$(SUPPORT_FILES)"
1921 gdb-tar: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1922 $(MAKE) -f Makefile.in do-proto-toplev \
1923 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1924 MD5PROG="$(MD5PROG)" \
1925 SUPPORT_FILES="$(SUPPORT_FILES)"
1926 $(MAKE) -f Makefile.in do-md5sum \
1927 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1928 MD5PROG="$(MD5PROG)" \
1929 SUPPORT_FILES="$(SUPPORT_FILES)"
1930 $(MAKE) -f Makefile.in do-djunpack \
1931 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1932 MD5PROG="$(MD5PROG)" \
1933 SUPPORT_FILES="$(SUPPORT_FILES)"
1934 $(MAKE) -f Makefile.in do-tar \
1935 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1936 MD5PROG="$(MD5PROG)" \
1937 SUPPORT_FILES="$(SUPPORT_FILES)"
1940 gdb-taz: gdb-tar $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1941 $(MAKE) -f Makefile.in gdb-tar \
1942 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1943 MD5PROG="$(MD5PROG)" \
1944 SUPPORT_FILES="$(SUPPORT_FILES)"
1945 $(MAKE) -f Makefile.in do-bz2 \
1946 TOOL=$(TOOL) PACKAGE="$(PACKAGE)" VER="$(VER)" \
1947 MD5PROG="$(MD5PROG)" \
1948 SUPPORT_FILES="$(SUPPORT_FILES)"
1950 .PHONY: do-proto-toplev
1951 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
1952 echo "==> Making $(PACKAGE)-$(VER)/"
1953 # Take out texinfo from a few places.
1954 sed -e '/^all\.normal: /s/\all-texinfo //' \
1955 -e '/^ install-texinfo /d' \
1957 mv -f tmp Makefile.in
1960 [ -z "$(CONFIGURE_TARGET_MODULES)" ] \
1961 || $(MAKE) $(CONFIGURE_TARGET_MODULES) \
1962 ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
1963 CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
1964 # Make links, and run "make diststuff" or "make info" when needed.
1965 rm -rf proto-toplev ; mkdir proto-toplev
1966 set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1967 for d in $$dirs ; do \
1968 if [ -d $$d ]; then \
1969 if [ ! -f $$d/Makefile ] ; then true ; \
1970 elif grep '^diststuff:' $$d/Makefile >/dev/null ; then \
1971 (cd $$d ; $(MAKE) diststuff ) || exit 1 ; \
1972 elif grep '^info:' $$d/Makefile >/dev/null ; then \
1973 (cd $$d ; $(MAKE) info ) || exit 1 ; \
1975 if [ -d $$d/proto-$$d.dir ]; then \
1976 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
1978 ln -s ../$$d proto-toplev/$$d ; \
1980 else ln -s ../$$d proto-toplev/$$d ; fi ; \
1982 cd etc && $(MAKE) info
1985 mkdir proto-toplev/etc
1986 (cd proto-toplev/etc; \
1987 for i in $(ETC_SUPPORT); do \
1988 ln -s ../../etc/$$i . ; \
1991 # Take out texinfo from configurable dirs
1992 rm proto-toplev/configure.in
1993 sed -e '/^host_tools=/s/texinfo //' \
1994 <configure.in >proto-toplev/configure.in
1996 mkdir proto-toplev/texinfo
1997 ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
1998 if test -r texinfo/util/tex3patch ; then \
1999 mkdir proto-toplev/texinfo/util && \
2000 ln -s ../../../texinfo/util/tex3patch proto-toplev/texinfo/util ; \
2002 chmod -R og=u . || chmod og=u `find . -print`
2004 # Create .gmo files from .po files.
2005 for f in `find . -name '*.po' -type f -print`; do \
2006 msgfmt -o `echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2009 -rm -f $(PACKAGE)-$(VER)
2010 ln -s proto-toplev $(PACKAGE)-$(VER)
2014 echo "==> Making $(PACKAGE)-$(VER).tar"
2015 -rm -f $(PACKAGE)-$(VER).tar
2016 find $(PACKAGE)-$(VER) -follow -name CVS -prune -o -type f -print \
2017 | tar cTfh - $(PACKAGE)-$(VER).tar
2021 echo "==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2022 -rm -f $(PACKAGE)-$(VER).tar.bz2
2023 $(BZIPPROG) -v -9 $(PACKAGE)-$(VER).tar
2027 echo "==> Adding md5 checksum to top-level directory"
2028 cd proto-toplev && find * -follow -name CVS -prune -o -type f -print \
2029 | xargs $(MD5PROG) > ../md5.sum
2030 mv md5.sum proto-toplev
2034 echo "==> Adding updated djunpack.bat to top-level directory"
2035 echo - 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2036 sed < djunpack.bat > djunpack.new \
2037 -e 's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2038 mv djunpack.new djunpack.bat
2039 -rm -f proto-toplev/djunpack.bat
2040 ln -s ../djunpack.bat proto-toplev/djunpack.bat
2042 TEXINFO_SUPPORT= texinfo/texinfo.tex
2043 DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
2046 GAS_SUPPORT_DIRS= bfd include libiberty opcodes intl setup.com makefile.vms mkdep
2047 gas.tar.bz2: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
2048 $(MAKE) -f Makefile.in taz TOOL=gas \
2049 MD5PROG="$(MD5PROG)" \
2050 SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
2052 # The FSF "binutils" release includes gprof and ld.
2053 .PHONY: binutils.tar.bz2
2054 BINUTILS_SUPPORT_DIRS= bfd gas include libiberty opcodes ld gprof intl setup.com makefile.vms mkdep
2055 binutils.tar.bz2: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
2056 $(MAKE) -f Makefile.in taz TOOL=binutils \
2057 MD5PROG="$(MD5PROG)" \
2058 SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
2060 .PHONY: gas+binutils.tar.bz2
2061 GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
2062 gas+binutils.tar.bz2: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
2063 $(MAKE) -f Makefile.in taz TOOL=gas \
2064 MD5PROG="$(MD5PROG)" \
2065 SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
2067 GNATS_SUPPORT_DIRS=include libiberty send-pr
2068 gnats.tar.bz2: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
2069 $(MAKE) -f Makefile.in taz TOOL=gnats \
2070 MD5PROG="$(MD5PROG)" \
2071 SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
2074 GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim utils intl
2075 gdb.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2076 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb \
2077 MD5PROG="$(MD5PROG)" \
2078 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2080 gdb.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2081 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb \
2082 MD5PROG="$(MD5PROG)" \
2083 SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
2085 DEJAGNU_SUPPORT_DIRS= tcl expect libiberty
2086 .PHONY: dejagnu.tar.bz2
2087 dejagnu.tar.bz2: $(DIST_SUPPORT) $(DEJAGNU_SUPPORT_DIRS) dejagnu
2088 $(MAKE) -f Makefile.in taz TOOL=dejagnu \
2089 MD5PROG="$(MD5PROG)" \
2090 SUPPORT_FILES="$(DEJAGNU_SUPPORT_DIRS)"
2092 .PHONY: gdb+dejagnu.tar.bz2
2093 GDBD_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl expect dejagnu
2094 gdb+dejagnu.tar.bz2: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2095 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=gdb+dejagnu \
2096 MD5PROG="$(MD5PROG)" \
2097 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2098 .PHONY: gdb+dejagnu.tar
2099 gdb+dejagnu.tar: $(DIST_SUPPORT) $(GDBD_SUPPORT_DIRS) gdb
2100 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=gdb+dejagnu \
2101 MD5PROG="$(MD5PROG)" \
2102 SUPPORT_FILES="$(GDBD_SUPPORT_DIRS)"
2104 .PHONY: insight.tar.bz2
2105 INSIGHT_SUPPORT_DIRS= $(GDB_SUPPORT_DIRS) tcl tk itcl tix libgui
2106 insight.tar.bz2: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2107 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE=insight \
2108 MD5PROG="$(MD5PROG)" \
2109 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2111 insight.tar: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
2112 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE=insight \
2113 MD5PROG="$(MD5PROG)" \
2114 SUPPORT_FILES="$(INSIGHT_SUPPORT_DIRS)"
2116 .PHONY: insight+dejagnu.tar.bz2
2117 INSIGHTD_SUPPORT_DIRS= $(INSIGHT_SUPPORT_DIRS) expect dejagnu
2118 insight+dejagnu.tar.bz2: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2119 $(MAKE) -f Makefile.in gdb-taz TOOL=gdb PACKAGE="insight+dejagnu" \
2120 MD5PROG="$(MD5PROG)" \
2121 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2122 .PHONY: insight+dejagnu.tar
2123 insight+dejagnu.tar: $(DIST_SUPPORT) $(INSIGHTD_SUPPORT_DIRS) gdb
2124 $(MAKE) -f Makefile.in gdb-tar TOOL=gdb PACKAGE="insight+dejagnu" \
2125 MD5PROG="$(MD5PROG)" \
2126 SUPPORT_FILES="$(INSIGHTD_SUPPORT_DIRS)"
2128 .PHONY: newlib.tar.bz2
2129 NEWLIB_SUPPORT_DIRS=libgloss
2130 # taz configures for the sun4 target which won't configure newlib.
2131 # We need newlib configured so that the .info files are made.
2132 # Unfortunately, it is not enough to just configure newlib separately:
2133 # taz will build the .info files but since SUBDIRS won't contain newlib,
2134 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2135 # used in building the .info files, eg: *.def, *.ref).
2136 # The problem isn't solvable however without a lot of extra work because
2137 # target libraries are built in subdir $(target_alias) which gets nuked during
2138 # the make distclean. For now punt on the issue of shipping newlib info files
2139 # with newlib net releases and wait for a day when some native target (sun4?)
2140 # supports newlib (if only minimally).
2141 newlib.tar.bz2: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
2142 $(MAKE) -f Makefile.in taz TOOL=newlib \
2143 MD5PROG="$(MD5PROG)" \
2144 SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
2145 DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2150 # end of Makefile.in