2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001 Free Software Foundation
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # Tell GNU make 2.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.
29 exec_prefix = $(prefix)
31 bindir=${exec_prefix}/bin
32 sbindir
=${exec_prefix}/sbin
33 libexecdir
=${exec_prefix}/libexec
34 datadir=${prefix}/share
35 sysconfdir
=${prefix}/etc
36 sharedstatedir
=${prefix}/com
37 localstatedir
=${prefix}/var
38 libdir=${exec_prefix}/lib
39 includedir=${prefix}/include
40 oldincludedir=/usr
/include
41 infodir=${prefix}/info
43 gxx_include_dir
=${includedir}/g
++
45 tooldir
= $(exec_prefix)/$(target_alias
)
46 build_tooldir
= $(exec_prefix)/$(target_alias
)
48 program_transform_name
=
50 man1dir = $(mandir)/man1
51 man2dir = $(mandir)/man2
52 man3dir = $(mandir)/man3
53 man4dir = $(mandir)/man4
54 man5dir = $(mandir)/man5
55 man6dir = $(mandir)/man6
56 man7dir = $(mandir)/man7
57 man8dir = $(mandir)/man8
58 man9dir = $(mandir)/man9
59 infodir = $(prefix)/info
60 includedir = $(prefix)/include
61 # Directory in which the compiler finds executables, libraries, etc.
62 libsubdir
= $(libdir)/gcc-lib
/$(target_alias
)/$(gcc_version
)
67 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
69 INSTALL_PROGRAM_ARGS
=
71 INSTALL
= $(SHELL
) $$s/install-sh
-c
72 INSTALL_PROGRAM
= $(INSTALL
) $(INSTALL_PROGRAM_ARGS
)
73 INSTALL_SCRIPT
= $(INSTALL
)
74 INSTALL_DATA
= $(INSTALL
) -m
644
76 INSTALL_DOSREL
= install-dosrel-fake
83 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
84 # here so that they can be overridden by Makefile fragments.
85 HOST_CC
= $(CC_FOR_BUILD
)
87 HOST_PREFIX_1
= loser-
89 # These flag values are normally overridden by the configure script.
95 CFLAGS_FOR_TARGET
= $(CFLAGS
)
97 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
101 CHILLFLAGS
= $(CFLAGS
)
105 # Use -O2 to stress test the compiler.
106 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
107 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
108 LIBCXXFLAGS_FOR_TARGET
= $(CXXFLAGS_FOR_TARGET
) -fno-implicit-templates
122 # These values are substituted by configure.
127 BISON
= `if [ -f $$r/bison/bison ] ; then \
128 echo $$r/bison/bison -L $$s/bison/ ; \
133 YACC
= `if [ -f $$r/bison/bison ] ; then \
134 echo $$r/bison/bison -y -L $$s/bison/ ; \
135 elif [ -f $$r/byacc/byacc ] ; then \
136 echo $$r/byacc/byacc ; \
138 echo ${DEFAULT_YACC} ; \
141 LEX
= `if [ -f $$r/flex/flex ] ; \
142 then echo $$r/flex/flex ; \
143 else echo ${DEFAULT_LEX} ; fi`
145 M4
= `if [ -f $$r/m4/m4 ] ; \
146 then echo $$r/m4/m4 ; \
147 else echo ${DEFAULT_M4} ; fi`
149 # For an installed makeinfo, we require it to be from texinfo 4 or
150 # higher, else we use the "missing" dummy.
151 MAKEINFO
= `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
152 then echo $$r/texinfo/makeinfo/makeinfo ; \
153 else if (makeinfo --version \
154 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
155 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
157 # This just becomes part of the MAKEINFO definition passed down to
158 # sub-makes. It lets flags be given on the command line while still
159 # using the makeinfo from the object tree.
162 EXPECT
= `if [ -f $$r/expect/expect ] ; \
163 then echo $$r/expect/expect ; \
164 else echo expect ; fi`
166 RUNTEST
= `if [ -f $$s/dejagnu/runtest ] ; \
167 then echo $$s/dejagnu/runtest ; \
168 else echo runtest ; fi`
171 # compilers to use to create programs which must be run in the build
174 CXX_FOR_BUILD
= $(CXX
)
176 SUBDIRS
= "this is set via configure, don't edit this"
179 # This is set by the configure script to the list of directories which
180 # should be built using the target tools.
181 TARGET_CONFIGDIRS
= libiberty libgloss
$(SPECIAL_LIBS
) newlib libio librx libstdc
++ libg
++ winsup opcodes bsp libstub cygmon libf2c libchill libobjc
183 # Target libraries are put under this directory:
184 # Changed by configure to $(target_alias) if cross.
187 BUILD_CONFIGDIRS
= libiberty
190 # This is set by the configure script to the arguments to use when configuring
191 # directories built for the target.
194 # This is set by the configure script to the arguments to use when configuring
195 # directories built for the build system.
198 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
202 # This is the name of the environment variable used for the path to
203 # the libraries. This may be changed by configure.in.
204 RPATH_ENVVAR
= LD_LIBRARY_PATH
206 # This is the list of directories that may be needed in RPATH_ENVVAR
207 # so that programs built for the host machine work.
208 HOST_LIB_PATH
= $$r/bfd
:$$r/opcodes
210 # This is the list of directories that may be needed in RPATH_ENVVAR
211 # so that prorgams built for the target machine work.
212 TARGET_LIB_PATH
= $$r/$(TARGET_SUBDIR
)/libstdc
++-v3
/src
/.libs
:$$r/$(TARGET_SUBDIR
)/libstdc
++
214 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
215 # Some platforms don't like blank entries, so we remove duplicate,
216 # leading and trailing colons.
217 REALLY_SET_LIB_PATH
= \
218 $(RPATH_ENVVAR
)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR
);
221 INSTALL_TARGET
= installdirs \
224 $(INSTALL_TARGET_MODULES
) \
225 $(INSTALL_X11_MODULES
) \
228 INSTALL_TARGET_CROSS
= installdirs \
231 $(INSTALL_TARGET_MODULES
) \
232 $(INSTALL_X11_MODULES
) \
235 # Should be substed by configure.in
240 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE
=
242 # If GCC_FOR_TARGET is not overriden on the command line, then this
243 # variable is passed down to the gcc Makefile, where it is used to
244 # build libgcc2.a. We define it here so that it can itself be
245 # overridden on the command line.
246 GCC_FOR_TARGET
= $$r/gcc
/xgcc
-B
$$r/gcc
/ $(FLAGS_FOR_TARGET
)
249 if [ -f $$r/gas/as-new ] ; then \
250 echo $$r/gas/as-new ; \
251 elif [ -f $$r/gcc/xgcc ]; then \
252 $(CC_FOR_TARGET) -print-prog-name=as ; \
254 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
257 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
262 if [ -f $$r/ld/ld-new ] ; then \
263 echo $$r/ld/ld-new ; \
264 elif [ -f $$r/gcc/xgcc ]; then \
265 $(CC_FOR_TARGET) -print-prog-name=ld ; \
267 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
270 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
274 DLLTOOL_FOR_TARGET
= ` \
275 if [ -f $$r/binutils/dlltool ] ; then \
276 echo $$r/binutils/dlltool ; \
278 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
281 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
285 WINDRES_FOR_TARGET
= ` \
286 if [ -f $$r/binutils/windres ] ; then \
287 echo $$r/binutils/windres ; \
289 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
292 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
297 if [ -f $$r/binutils/ar ] ; then \
298 echo $$r/binutils/ar ; \
300 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
303 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
307 RANLIB_FOR_TARGET
= ` \
308 if [ -f $$r/binutils/ranlib ] ; then \
309 echo $$r/binutils/ranlib ; \
311 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
312 if [ x'$(RANLIB)' != x ]; then \
318 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
323 if [ -f $$r/binutils/nm-new ] ; then \
324 echo $$r/binutils/nm-new ; \
325 elif [ -f $$r/gcc/xgcc ]; then \
326 $(CC_FOR_TARGET) -print-prog-name=nm ; \
328 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
331 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
335 # The first rule in the file had better be this one. Don't put any above it.
336 # This lives here to allow makefile fragments to contain dependencies.
340 # These can be overridden by config/mt-*.
341 # The _TARGET_ is because they're specified in mt-foo.
342 # The _HOST_ is because they're programs that run on the host.
343 EXTRA_TARGET_HOST_ALL_MODULES
=
344 EXTRA_TARGET_HOST_INSTALL_MODULES
=
345 EXTRA_TARGET_HOST_CHECK_MODULES
=
347 #### host and target specific makefile fragments come in here.
350 # Flags to pass down to all sub-makes.
351 # Please keep these in alphabetical order.
352 BASE_FLAGS_TO_PASS
= \
353 "AR_FLAGS=$(AR_FLAGS)" \
354 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
355 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
357 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
358 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
360 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
361 "CHILLFLAGS=$(CHILLFLAGS)" \
362 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
363 "CHILL_LIB=$(CHILL_LIB)" \
364 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
365 "CXXFLAGS=$(CXXFLAGS)" \
366 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
367 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
368 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
369 "INSTALL=$(INSTALL)" \
370 "INSTALL_DATA=$(INSTALL_DATA)" \
371 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
372 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
373 "LDFLAGS=$(LDFLAGS)" \
375 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
376 "LIBCFLAGS=$(LIBCFLAGS)" \
377 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
378 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
379 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
382 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
383 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
384 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
385 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
388 "RUNTEST=$(RUNTEST)" \
389 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
390 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
391 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
394 "datadir=$(datadir)" \
395 "exec_prefix=$(exec_prefix)" \
396 "includedir=$(includedir)" \
397 "infodir=$(infodir)" \
399 "libexecdir=$(libexecdir)" \
400 "lispdir=$(lispdir)" \
401 "localstatedir=$(localstatedir)" \
403 "oldincludedir=$(oldincludedir)" \
405 "sbindir=$(sbindir)" \
406 "sharedstatedir=$(sharedstatedir)" \
407 "sysconfdir=$(sysconfdir)" \
408 "tooldir=$(tooldir)" \
409 "build_tooldir=$(build_tooldir)" \
410 "gxx_include_dir=$(gxx_include_dir)" \
411 "gcc_version=$(gcc_version)" \
412 "gcc_version_trigger=$(gcc_version_trigger)" \
413 "target_alias=$(target_alias)" \
414 "libsubdir=$(libsubdir)"
416 # For any flags above that may contain shell code that varies from one
417 # target library to another. When doing recursive invocations of the
418 # top-level Makefile, we don't want the outer make to evaluate them,
419 # so we pass these variables down unchanged. They must not contain
420 # single nor double quotes.
422 CXX_FOR_TARGET
='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
424 # Flags to pass down to most sub-makes, in which we're building with
425 # the host environment.
426 # If any variables are added here, they must be added to do-*, below.
432 'DLLTOOL=$(DLLTOOL)' \
438 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
440 # Flags that are concerned with the location of the X11 include files
443 # NOTE: until the top-level is getting the values via autoconf, it only
444 # causes problems to have this top-level Makefile overriding the autoconf-set
445 # values in child directories. Only variables that don't conflict with
446 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
448 X11_FLAGS_TO_PASS
= \
449 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
450 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
452 # Flags to pass down to makes which are built with the target environment.
453 # The double $ decreases the length of the command line; the variables
454 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
455 # If any variables are added here, they must be added to do-*, below.
456 EXTRA_TARGET_FLAGS
= \
457 'AR=$$(AR_FOR_TARGET)' \
458 'AS=$$(AS_FOR_TARGET)' \
459 'CC=$$(CC_FOR_TARGET)' \
460 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
461 'CXX=$$(CXX_FOR_TARGET)' \
462 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
463 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
464 'LD=$$(LD_FOR_TARGET)' \
465 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
466 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
467 'NM=$$(NM_FOR_TARGET)' \
468 'RANLIB=$$(RANLIB_FOR_TARGET)' \
469 'WINDRES=$$(WINDRES_FOR_TARGET)'
471 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
473 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
474 # unfortunately needs the native compiler and the target ar and
476 # If any variables are added here, they must be added to do-*, below.
477 # The HOST_* variables are a special case, which are used for the gcc
478 # cross-building scheme.
484 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
485 'HOST_CC=$(CC_FOR_BUILD)' \
486 'HOST_PREFIX=$(HOST_PREFIX)' \
487 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
490 'WINDRES=$$(WINDRES_FOR_TARGET)' \
491 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
492 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
493 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
494 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
495 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
496 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
502 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
504 # This is a list of the targets for all of the modules which are compiled
505 # using the build machine's native compiler. Configure edits the second
506 # macro for build!=host builds.
507 ALL_BUILD_MODULES_LIST
= \
511 # This is a list of the configure targets for all of the modules which
512 # are compiled using the native tools.
513 CONFIGURE_BUILD_MODULES
= \
514 configure-build-libiberty
516 # This is a list of the targets for all of the modules which are compiled
517 # 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
= \
600 CROSS_CHECK_MODULES
= \
659 $(EXTRA_TARGET_HOST_CHECK_MODULES
)
661 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
663 # This is a list of the install targets for all of the modules which are
664 # compiled using $(FLAGS_TO_PASS).
665 # We put install-opcodes before install-binutils because the installed
666 # binutils might be on PATH, and they might need the shared opcodes
668 # We put install-tcl before install-itcl because itcl wants to run a
669 # program on installation which uses the Tcl libraries.
735 $(EXTRA_TARGET_HOST_INSTALL_MODULES
)
737 # This is a list of the targets for all of the modules which are compiled
738 # using $(X11_FLAGS_TO_PASS).
751 # This is a list of the check targets for all of the modules which are
752 # compiled using $(X11_FLAGS_TO_PASS).
753 CHECK_X11_MODULES
= \
763 # This is a list of the install targets for all the modules which are
764 # compiled using $(X11_FLAGS_TO_PASS).
765 INSTALL_X11_MODULES
= \
777 # This is a list of the targets for all of the modules which are compiled
778 # using $(TARGET_FLAGS_TO_PASS).
779 ALL_TARGET_MODULES
= \
781 all-target-libstdc
++ \
782 all-target-libstdc
++-v3 \
787 all-target-libchill \
789 all-target-libtermcap \
791 all-target-libgloss \
792 all-target-libiberty \
794 all-target-examples \
799 all-target-boehm-gc \
800 all-target-qthreads \
804 # This is a list of the configure targets for all of the modules which
805 # are compiled using the target tools.
806 CONFIGURE_TARGET_MODULES
= \
807 configure-target-libio \
808 configure-target-libstdc
++ \
809 configure-target-libstdc
++-v3 \
810 configure-target-librx \
811 configure-target-libg
++ \
812 configure-target-newlib \
813 configure-target-libf2c \
814 configure-target-libchill \
815 configure-target-libobjc \
816 configure-target-libtermcap \
817 configure-target-winsup \
818 configure-target-libgloss \
819 configure-target-libiberty \
820 configure-target-gperf \
821 configure-target-examples \
822 configure-target-libstub \
823 configure-target-libffi \
824 configure-target-libjava \
825 configure-target-zlib \
826 configure-target-boehm-gc \
827 configure-target-qthreads \
828 configure-target-bsp \
829 configure-target-cygmon
831 # This is a list of the check targets for all of the modules which are
832 # compiled using $(TARGET_FLAGS_TO_PASS).
833 CHECK_TARGET_MODULES
= \
835 check-target-libstdc
++ \
836 check-target-libstdc
++-v3 \
837 check-target-libg
++ \
838 check-target-newlib \
839 check-target-libf2c \
840 check-target-libchill \
841 check-target-libobjc \
842 check-target-winsup \
843 check-target-libiberty \
844 check-target-libffi \
845 check-target-libjava \
847 check-target-boehm-gc \
848 check-target-qthreads \
851 # This is a list of the install targets for all of the modules which are
852 # compiled using $(TARGET_FLAGS_TO_PASS).
853 INSTALL_TARGET_MODULES
= \
854 install-target-libio \
855 install-target-libstdc
++ \
856 install-target-libstdc
++-v3 \
857 install-target-libg
++ \
858 install-target-newlib \
859 install-target-libf2c \
860 install-target-libchill \
861 install-target-libobjc \
862 install-target-libtermcap \
863 install-target-winsup \
864 install-target-libgloss \
865 install-target-libiberty \
867 install-target-libjava \
868 install-target-zlib \
869 install-target-boehm-gc \
870 install-target-qthreads \
873 # This is a list of the targets for which we can do a clean-{target}.
942 # All of the target modules that can be cleaned
943 CLEAN_TARGET_MODULES
= \
945 clean-target-libstdc
++ \
946 clean-target-libstdc
++-v3 \
948 clean-target-libg
++ \
949 clean-target-newlib \
950 clean-target-libf2c \
951 clean-target-libchill \
952 clean-target-libobjc \
953 clean-target-winsup \
954 clean-target-libgloss \
955 clean-target-libiberty \
957 clean-target-examples \
958 clean-target-libstub \
959 clean-target-libffi \
960 clean-target-libjava \
962 clean-target-boehm-gc \
963 clean-target-qthreads \
967 # All of the x11 modules that can be cleaned
968 CLEAN_X11_MODULES
= \
979 # The target built for a native build.
982 $(ALL_BUILD_MODULES
) \
985 $(ALL_TARGET_MODULES
) \
988 # Do a target for all the subdirectories. A ``make do-X'' will do a
989 # ``make X'' in all subdirectories (because, in general, there is a
990 # dependency (below) of X upon do-X, a ``make X'' will also do this,
991 # but it may do additional work as well).
992 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
993 # because it is so large that it can easily overflow the command line
994 # length limit on some systems.
1003 do-maintainer-clean \
1007 @target
=`echo $@ | sed -e 's/^do-//'`; \
1008 r
=`pwd`; export r
; \
1009 s
=`cd $(srcdir); pwd`; export s
; \
1011 for i in
$(SUBDIRS
) -dummy-
; do \
1012 if
[ -f .
/$$i/Makefile
]; then \
1015 for flag in
$(EXTRA_GCC_FLAGS
); do \
1016 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1020 for flag in
$(EXTRA_HOST_FLAGS
); do \
1021 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1026 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1028 "RANLIB=$${RANLIB}" \
1029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1031 then true
; else exit
1; fi
; \
1034 @target
=`echo $@ | sed -e 's/^do-//'`; \
1035 r
=`pwd`; export r
; \
1036 s
=`cd $(srcdir); pwd`; export s
; \
1038 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
1039 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
1040 for flag in
$(EXTRA_TARGET_FLAGS
); do \
1041 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1043 if
(cd
$(TARGET_SUBDIR
)/$$i; \
1044 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1046 "RANLIB=$${RANLIB}" \
1047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1049 then true
; else exit
1; fi
; \
1053 # Here are the targets which correspond to the do-X targets.
1055 .PHONY
: info installcheck dvi install-info
1056 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
1057 .PHONY
: local-clean local-distclean local-maintainer-clean
1059 installcheck: do-installcheck
1062 # Make sure makeinfo is built before we do a `make info'.
1063 do-info
: all-texinfo
1065 install-info
: do-install-info
dir.
info
1066 s
=`cd $(srcdir); pwd`; export s
; \
1067 if
[ -f
dir.
info ] ; then \
1068 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
1072 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E *.log
1075 -rm -f Makefile config.status config.cache mh-frag mt-frag
1076 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
1077 rm -rf
$(TARGET_SUBDIR
); \
1080 local-maintainer-clean
:
1081 @echo
"This command is intended for maintainers to use;"
1082 @echo
"it deletes files that may require special tools to rebuild."
1084 clean: do-clean local-clean
1085 mostlyclean: do-mostlyclean local-clean
1086 distclean: do-distclean local-clean local-distclean
1087 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
1088 maintainer-clean
: local-distclean
1089 realclean: maintainer-clean
1091 # This rule is used to clean specific modules.
1092 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
1093 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
1094 @
dir=`echo $@ | sed -e 's/clean-//'`; \
1095 if
[ -f .
/$${dir}/Makefile
] ; then \
1096 r
=`pwd`; export r
; \
1097 s
=`cd $(srcdir); pwd`; export s
; \
1099 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
1104 .PHONY
: $(CLEAN_TARGET_MODULES
)
1105 $(CLEAN_TARGET_MODULES
):
1106 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
1107 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1108 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1109 r
=`pwd`; export r
; \
1110 s
=`cd $(srcdir); pwd`; export s
; \
1112 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
1117 clean-target
: $(CLEAN_TARGET_MODULES
) clean-target-libgcc
1118 clean-target-libgcc
:
1119 test ! -d gcc
/libgcc || \
1120 (cd gcc
/libgcc
&& find .
-type d
-print) | \
1121 while read d
; do
rm -f gcc
/$$d/libgcc.a ||
: ; done
1127 check: $(CHECK_MODULES
) \
1128 $(CHECK_TARGET_MODULES
) \
1129 $(CHECK_X11_MODULES
) \
1132 # Automated reporting of test results.
1134 warning.log
: build.log
1135 $(srcdir)/contrib
/warn_summary build.log
> $@
1138 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1139 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1141 $(srcdir)/contrib
/test_summary
-t
>$@
1143 echo If you really want to send e-mail
, run .
/$@ now
1145 mail-report-with-warnings.log
: warning.log
1146 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1147 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1149 $(srcdir)/contrib
/test_summary
-t
-i warning.log
>$@
1151 echo If you really want to send e-mail
, run .
/$@ now
1153 # Installation targets.
1155 .PHONY
: install install-cross
uninstall source-vault binary-vault vault-install
1156 install: $(INSTALL_TARGET
)
1157 install-cross
: $(INSTALL_TARGET_CROSS
)
1160 @echo
"the uninstall target is not supported in this tree"
1163 $(MAKE
) -f .
/release
/Build-A-Release \
1164 host
=$(host_alias
) source-vault
1167 $(MAKE
) -f .
/release
/Build-A-Release \
1168 host
=$(host_alias
) target
=$(target_alias
)
1171 @if
[ -f .
/release
/vault-install
] ; then \
1172 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
1178 install.
all: install-no-fixedincludes
1179 @if
[ -f .
/gcc
/Makefile
] ; then \
1180 r
=`pwd` ; export r
; \
1183 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
1188 # inet-install is used because the I*Net wants DejaGNU installed but
1189 # not built. Similarly, gzip is built but not installed.
1191 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1193 # install-no-fixedincludes is used because Cygnus can not distribute
1194 # the fixed header files.
1195 .PHONY
: install-no-fixedincludes
1196 install-no-fixedincludes
: \
1198 $(INSTALL_MODULES
) \
1199 $(INSTALL_TARGET_MODULES
) \
1200 $(INSTALL_X11_MODULES
) \
1201 gcc-no-fixedincludes
1203 # Install the gcc headers files, but not the fixed include files,
1204 # which Cygnus is not allowed to distribute. This rule is very
1205 # dependent on the workings of the gcc Makefile.in.
1206 .PHONY
: gcc-no-fixedincludes
1207 gcc-no-fixedincludes
:
1208 @if
[ -f .
/gcc
/Makefile
]; then \
1209 rm -rf gcc
/tmp-include
; \
1210 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
1211 mkdir gcc
/include; \
1212 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
1213 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
1214 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
1215 r
=`pwd`; export r
; \
1216 s
=`cd $(srcdir); pwd` ; export s
; \
1219 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1220 rm -rf gcc
/include; \
1221 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
1224 # This rule is used to build the modules which are built with the
1225 # build machine's native compiler.
1226 .PHONY
: $(ALL_BUILD_MODULES
)
1227 $(ALL_BUILD_MODULES
):
1228 dir=`echo $@ | sed -e 's/all-build-//'`; \
1229 if
[ -f .
/$${dir}/Makefile
] ; then \
1230 r
=`pwd`; export r
; \
1231 s
=`cd $(srcdir); pwd`; export s
; \
1232 (cd
$(BUILD_SUBDIR
)/$${dir} && $(MAKE
) all); \
1237 # This rule is used to configure the modules which are built with the
1239 .PHONY
: $(CONFIGURE_BUILD_MODULES
)
1240 $(CONFIGURE_BUILD_MODULES
):
1241 @
dir=`echo $@ | sed -e 's/configure-build-//'`; \
1242 if
[ ! -d
$(BUILD_SUBDIR
) ]; then \
1244 elif
[ -f
$(BUILD_SUBDIR
)/$${dir}/Makefile
] ; then \
1246 elif echo
" $(BUILD_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1247 if
[ -d
$(srcdir)/$${dir} ]; then \
1248 [ -d
$(BUILD_SUBDIR
)/$${dir} ] || mkdir
$(BUILD_SUBDIR
)/$${dir};\
1249 r
=`pwd`; export r
; \
1250 s
=`cd $(srcdir); pwd`; export s
; \
1251 AR
="$(AR_FOR_BUILD)"; export AR
; \
1252 AS
="$(AS_FOR_BUILD)"; export AS
; \
1253 CC
="$(CC_FOR_BUILD)"; export CC
; \
1254 CFLAGS
="$(CFLAGS_FOR_BUILD)"; export CFLAGS
; \
1255 CXX
="$(CXX_FOR_BUILD)"; export CXX
; \
1256 CXXFLAGS
="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS
; \
1257 GCJ
="$(GCJ_FOR_BUILD)"; export GCJ
; \
1258 DLLTOOL
="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL
; \
1259 LD
="$(LD_FOR_BUILD)"; export LD
; \
1260 LDFLAGS
="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS
; \
1261 NM
="$(NM_FOR_BUILD)"; export NM
; \
1262 RANLIB
="$(RANLIB_FOR_BUILD)"; export RANLIB
; \
1263 WINDRES
="$(WINDRES_FOR_BUILD)"; export WINDRES
; \
1264 echo Configuring in
$(BUILD_SUBDIR
)/$${dir}; \
1265 cd
"$(BUILD_SUBDIR)/$${dir}" || exit
1; \
1267 /* |
[A-Za-z
]:[\\/]*) \
1268 topdir
=$(srcdir) ;; \
1270 case
"$(BUILD_SUBDIR)" in \
1271 .
) topdir
="../$(srcdir)" ;; \
1272 *) topdir
="../../$(srcdir)" ;; \
1275 if
[ "$(srcdir)" = "." ] ; then \
1276 if
[ "$(BUILD_SUBDIR)" != "." ] ; then \
1277 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1278 if
[ -f Makefile
]; then \
1279 if
$(MAKE
) distclean; then \
1293 srcdiroption
="--srcdir=."; \
1296 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1297 libsrcdir
="$$s/$${dir}"; \
1299 if
[ -f
$${libsrcdir}/configure
] ; then \
1300 rm -f no-such-file skip-this-dir
; \
1301 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1302 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1303 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1305 rm -f no-such-file skip-this-dir
; \
1306 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1307 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1308 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1310 if
[ -f skip-this-dir
] ; then \
1312 rm -f skip-this-dir
; \
1313 cd ..
; rmdir
$${dir} || true
; \
1324 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1325 # build a target all-X means to cd to X and make all.
1327 # all-gui, and all-libproc are handled specially because
1328 # they are still experimental, and if they fail to build, that
1329 # shouldn't stop "make all".
1330 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
1331 $(ALL_MODULES
) all-gui all-libproc
:
1332 @
dir=`echo $@ | sed -e 's/all-//'`; \
1333 if
[ -f .
/$${dir}/Makefile
] ; then \
1334 r
=`pwd`; export r
; \
1335 s
=`cd $(srcdir); pwd`; export s
; \
1337 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
1342 # These rules are used to check the modules which use FLAGS_TO_PASS.
1343 # To build a target check-X means to cd to X and make check. Some
1344 # modules are only tested in a native toolchain.
1346 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1347 $(NATIVE_CHECK_MODULES
):
1348 @if
[ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1349 dir=`echo $@ | sed -e 's/check-//'`; \
1350 if
[ -f .
/$${dir}/Makefile
] ; then \
1351 r
=`pwd`; export r
; \
1352 s
=`cd $(srcdir); pwd`; export s
; \
1354 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1360 $(CROSS_CHECK_MODULES
):
1361 @
dir=`echo $@ | sed -e 's/check-//'`; \
1362 if
[ -f .
/$${dir}/Makefile
] ; then \
1363 r
=`pwd`; export r
; \
1364 s
=`cd $(srcdir); pwd`; export s
; \
1366 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1371 # This rule is used to install the modules which use FLAGS_TO_PASS.
1372 # To build a target install-X means to cd to X and make install.
1373 .PHONY
: $(INSTALL_MODULES
)
1374 $(INSTALL_MODULES
): installdirs
1375 @
dir=`echo $@ | sed -e 's/install-//'`; \
1376 if
[ -f .
/$${dir}/Makefile
] ; then \
1377 r
=`pwd`; export r
; \
1378 s
=`cd $(srcdir); pwd`; export s
; \
1380 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1385 # This rule is used to configure the modules which are built with the
1387 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1388 $(CONFIGURE_TARGET_MODULES
):
1389 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1390 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1391 r
=`pwd`; export r
; \
1392 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1393 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1394 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1395 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1396 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1398 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1399 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1400 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1403 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1406 fi
; exit
0 # break command into two pieces
1407 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1408 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1410 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1412 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1413 if
[ -d
$(srcdir)/$${dir} ]; then \
1414 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1415 r
=`pwd`; export r
; \
1416 s
=`cd $(srcdir); pwd`; export s
; \
1418 AR
="$(AR_FOR_TARGET)"; export AR
; \
1419 AS
="$(AS_FOR_TARGET)"; export AS
; \
1420 CC
="$(CC_FOR_TARGET)"; export CC
; \
1421 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1422 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1423 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1424 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1425 LD
="$(LD_FOR_TARGET)"; export LD
; \
1426 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1427 NM
="$(NM_FOR_TARGET)"; export NM
; \
1428 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1429 WINDRES
="$(WINDRES_FOR_TARGET)"; export WINDRES
; \
1430 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1431 cd
$(TARGET_SUBDIR
)/$${dir}; \
1434 topdir
=$(srcdir) ;; \
1436 case
"$(TARGET_SUBDIR)" in \
1437 .
) topdir
="../$(srcdir)" ;; \
1438 *) topdir
="../../$(srcdir)" ;; \
1441 if
[ "$(srcdir)" = "." ] ; then \
1442 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1443 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1444 if
[ -f Makefile
]; then \
1445 if
$(MAKE
) distclean; then \
1459 srcdiroption
="--srcdir=."; \
1462 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1463 libsrcdir
="$$s/$${dir}"; \
1465 if
[ -f
$${libsrcdir}/configure
] ; then \
1466 rm -f no-such-file skip-this-dir
; \
1467 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1468 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1469 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1471 rm -f no-such-file skip-this-dir
; \
1472 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1473 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1474 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1476 if
[ -f skip-this-dir
] ; then \
1478 rm -f skip-this-dir
; \
1479 cd ..
; rmdir
$${dir} || true
; \
1490 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1491 # To build a target all-X means to cd to X and make all.
1492 .PHONY
: $(ALL_TARGET_MODULES
)
1493 $(ALL_TARGET_MODULES
):
1494 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1495 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1496 r
=`pwd`; export r
; \
1497 s
=`cd $(srcdir); pwd`; export s
; \
1499 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1500 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1505 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1506 # To build a target install-X means to cd to X and make install.
1507 .PHONY
: $(CHECK_TARGET_MODULES
)
1508 $(CHECK_TARGET_MODULES
):
1509 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1510 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1511 r
=`pwd`; export r
; \
1512 s
=`cd $(srcdir); pwd`; export s
; \
1514 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1515 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1520 # This rule is used to install the modules which use
1521 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1523 .PHONY
: $(INSTALL_TARGET_MODULES
)
1524 $(INSTALL_TARGET_MODULES
): installdirs
1525 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1526 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1527 r
=`pwd`; export r
; \
1528 s
=`cd $(srcdir); pwd`; export s
; \
1530 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1531 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1536 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1537 # To build a target all-X means to cd to X and make all.
1538 .PHONY
: $(ALL_X11_MODULES
)
1540 @
dir=`echo $@ | sed -e 's/all-//'`; \
1541 if
[ -f .
/$${dir}/Makefile
] ; then \
1542 r
=`pwd`; export r
; \
1543 s
=`cd $(srcdir); pwd`; export s
; \
1546 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1551 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1552 # To build a target check-X means to cd to X and make all.
1553 .PHONY
: $(CHECK_X11_MODULES
)
1554 $(CHECK_X11_MODULES
):
1555 @
dir=`echo $@ | sed -e 's/check-//'`; \
1556 if
[ -f .
/$${dir}/Makefile
] ; then \
1557 r
=`pwd`; export r
; \
1558 s
=`cd $(srcdir); pwd`; export s
; \
1561 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1566 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1567 # To build a target install-X means to cd to X and make install.
1568 .PHONY
: $(INSTALL_X11_MODULES
)
1569 $(INSTALL_X11_MODULES
): installdirs
1570 @
dir=`echo $@ | sed -e 's/install-//'`; \
1571 if
[ -f .
/$${dir}/Makefile
] ; then \
1572 r
=`pwd`; export r
; \
1573 s
=`cd $(srcdir); pwd`; export s
; \
1576 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1581 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1584 @if
[ -f .
/gcc
/Makefile
] ; then \
1585 r
=`pwd`; export r
; \
1586 s
=`cd $(srcdir); pwd`; export s
; \
1588 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1593 # Building GCC uses some tools for rebuilding "source" files
1594 # like texinfo, bison/byacc, etc. So we must depend on those.
1596 # While building GCC, it may be necessary to run various target
1597 # programs like the assembler, linker, etc. So we depend on
1600 # In theory, on an SMP all those dependencies can be resolved
1603 .PHONY
: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1604 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
: all-bootstrap
1605 @r
=`pwd`; export r
; \
1606 s
=`cd $(srcdir); pwd`; export s
; \
1608 echo
"Bootstrapping the compiler"; \
1609 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $@
1610 @r
=`pwd`; export r
; \
1611 s
=`cd $(srcdir); pwd`; export s
; \
1613 *bootstrap4-lean
) \
1614 msg
="Comparing stage3 and stage4 of the compiler"; \
1615 compare
=compare3-lean
;; \
1616 *bootstrap4
) msg
="Comparing stage3 and stage4 of the compiler"; \
1617 compare
=compare3
;; \
1618 *-lean
) msg
="Comparing stage2 and stage3 of the compiler"; \
1619 compare
=compare-lean
;; \
1620 * ) msg
="Comparing stage2 and stage3 of the compiler"; \
1621 compare
=compare
;; \
1625 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $$compare
1626 @r
=`pwd`; export r
; \
1627 s
=`cd $(srcdir); pwd` ; export s
; \
1629 echo
"Building runtime libraries"; \
1630 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) all
1633 cross
: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1634 @r
=`pwd`; export r
; \
1635 s
=`cd $(srcdir); pwd`; export s
; \
1637 echo
"Building the C and C++ compiler"; \
1638 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++"
1639 @r
=`pwd`; export r
; \
1640 s
=`cd $(srcdir); pwd` ; export s
; \
1642 echo
"Building runtime libraries"; \
1643 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) \
1644 LANGUAGES
="c c++" all
1648 @if
[ -f .
/gcc
/Makefile
] ; then \
1649 r
=`pwd`; export r
; \
1650 s
=`cd $(srcdir); pwd`; export s
; \
1652 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1659 @if
[ -f .
/gcc
/Makefile
] ; then \
1660 r
=`pwd`; export r
; \
1661 s
=`cd $(srcdir); pwd`; export s
; \
1663 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1668 .PHONY
: install-gcc-cross
1670 @if
[ -f .
/gcc
/Makefile
] ; then \
1671 r
=`pwd`; export r
; \
1672 s
=`cd $(srcdir); pwd`; export s
; \
1674 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++" install); \
1678 # EXPERIMENTAL STUFF
1679 # This rule is used to install the modules which use FLAGS_TO_PASS.
1680 # To build a target install-X means to cd to X and make install.
1681 .PHONY
: install-dosrel
1682 install-dosrel
: installdirs info
1683 @
dir=`echo $@ | sed -e 's/install-//'`; \
1684 if
[ -f .
/$${dir}/Makefile
] ; then \
1685 r
=`pwd`; export r
; \
1686 s
=`cd $(srcdir); pwd`; export s
; \
1688 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1693 install-dosrel-fake
:
1696 ALL_GCC_C
= $(ALL_GCC
) all-target-newlib all-target-libgloss
1697 ALL_GCC_CXX
= $(ALL_GCC_C
) all-target-libstdc
++ all-target-libstdc
++-v3
1699 # This is a list of inter-dependencies among modules.
1702 all-autoconf
: all-m4 all-texinfo
1703 all-automake
: all-m4 all-texinfo
1705 all-bfd
: all-libiberty all-intl
1706 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1707 all-bison
: all-texinfo
1708 configure-target-boehm-gc
: $(ALL_GCC_CXX
) configure-target-qthreads
1709 all-target-boehm-gc
: configure-target-boehm-gc
1710 configure-target-bsp
: $(ALL_GCC_C
)
1711 all-target-bsp
: configure-target-bsp
1714 all-cgen
: all-libiberty
1716 configure-target-cygmon
: $(ALL_GCC_C
)
1717 all-target-cygmon
: configure-target-cygmon all-target-libiberty all-target-libio all-target-libstub all-target-bsp
1719 all-dejagnu
: all-tcl all-expect all-tk
1720 all-diff
: all-libiberty
1722 all-emacs19
: all-bison all-byacc
1724 configure-target-examples
: $(ALL_GCC_C
)
1725 all-target-examples
: configure-target-examples
1726 all-expect
: all-tcl all-tk
1727 all-fileutils
: all-libiberty
1730 all-flex
: all-libiberty all-bison all-byacc
1731 all-gas
: all-libiberty all-opcodes all-bfd all-intl
1734 all-gcc
: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1735 all-bootstrap
: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1736 GDB_TK
= all-tk all-tcl all-itcl all-tix all-libgui
1737 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1740 configure-target-gperf
: $(ALL_GCC_CXX
)
1741 all-target-gperf
: configure-target-gperf all-target-libiberty all-target-libstdc
++-v3
1742 all-gprof
: all-libiberty all-bfd all-opcodes all-intl
1743 all-grep
: all-libiberty
1744 all-grez
: all-libiberty all-bfd all-opcodes
1745 all-gui
: all-gdb all-libproc all-target-librx
1747 all-gzip
: all-libiberty
1748 all-hello
: all-libiberty
1750 all-inet
: all-tcl all-send-pr all-perl
1752 all-ispell
: all-emacs19
1753 all-itcl
: all-tcl all-tk all-tcl8.1 all-tk8.1
1754 all-ld
: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1755 configure-target-libg
++: $(ALL_GCC_CXX
) configure-target-librx
1756 all-target-libg
++: configure-target-libg
++ all-target-libiberty all-target-librx
1757 configure-target-libgloss
: $(ALL_GCC
)
1758 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1759 configure-target-libio
: $(ALL_GCC_C
)
1760 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1761 check-target-libio
: all-target-libstdc
++
1762 all-libgui
: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1765 all-build-libiberty
: configure-build-libiberty
1767 configure-target-libffi
: $(ALL_GCC_C
)
1768 all-target-libffi
: configure-target-libffi
1769 configure-target-libjava
: $(ALL_GCC_CXX
) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1770 all-target-libjava
: configure-target-libjava all-zip all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1771 configure-target-librx
: $(ALL_GCC_C
)
1772 all-target-librx
: configure-target-librx
1773 configure-target-libstdc
++: $(ALL_GCC_C
)
1774 all-target-libstdc
++: configure-target-libstdc
++ all-target-libiberty all-target-libio
1775 configure-target-libstdc
++-v3
: $(ALL_GCC_C
)
1776 all-target-libstdc
++-v3
: configure-target-libstdc
++-v3 all-target-libiberty
1777 configure-target-libstub
: $(ALL_GCC_C
)
1778 all-target-libstub
: configure-target-libstub
1780 configure-target-libf2c
: $(ALL_GCC_C
)
1781 all-target-libf2c
: configure-target-libf2c all-target-libiberty
1782 configure-target-libchill
: $(ALL_GCC_C
)
1783 all-target-libchill
: configure-target-libchill all-target-libiberty
1784 configure-target-libobjc
: $(ALL_GCC_C
)
1785 all-target-libobjc
: configure-target-libobjc all-target-libiberty
1786 all-m4
: all-libiberty all-texinfo
1787 all-make
: all-libiberty
1789 configure-target-newlib
: $(ALL_GCC
)
1790 all-target-newlib
: configure-target-newlib
1791 configure-target-libtermcap
: $(ALL_GCC_C
)
1792 all-target-libtermcap
: configure-target-libtermcap
1793 all-opcodes
: all-bfd all-libiberty all-cgen
1794 all-patch
: all-libiberty
1796 all-prms
: all-libiberty
1797 configure-target-qthreads
: $(ALL_GCC_C
)
1798 all-target-qthreads
: configure-target-qthreads
1801 all-recode
: all-libiberty
1802 all-sed
: all-libiberty
1803 all-send-pr
: all-prms
1805 all-sid
: all-tcl all-tk
1806 all-sim
: all-libiberty all-bfd all-opcodes all-readline all-cgen
1807 all-snavigator
: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1808 all-tar
: all-libiberty
1811 all-tclX
: all-tcl all-tk
1813 all-tk8.1
: all-tcl8.1
1814 all-texinfo
: all-libiberty
1816 all-tgas
: all-libiberty all-bfd all-opcodes
1818 all-tix
: all-tcl all-tk all-tcl8.1 all-tk8.1
1820 configure-target-winsup
: $(ALL_GCC_C
)
1821 all-target-winsup
: all-target-libiberty all-target-libtermcap configure-target-winsup
1822 all-uudecode
: all-libiberty
1825 configure-target-zlib
: $(ALL_GCC_C
)
1826 all-target-zlib
: configure-target-zlib
1827 configure-target-libiberty
: $(ALL_GCC_C
)
1828 all-target-libiberty
: configure-target-libiberty
1829 all-target
: $(ALL_TARGET_MODULES
)
1830 install-target
: $(INSTALL_TARGET_MODULES
)
1831 install-gdb
: install-tcl install-tk install-itcl install-tix install-libgui
1832 install-sid
: install-tcl install-tk
1833 ### other supporting targets
1839 installdirs: mkinstalldirs
1840 $(SHELL
) $(srcdir)/mkinstalldirs
$(MAKEDIRS
)
1842 dir.
info: do-install-info
1843 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1844 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1845 mv
-f
dir.
info.new
dir.
info ; \
1850 @echo
"Building a full distribution of this tree isn't done"
1851 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1855 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1856 # ability to use several tags files at once, so there is probably no need
1857 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1858 # (if we felt like it) have this Makefile write a piece of elisp which
1859 # the user could load to tell emacs19 where all the TAGS files we just
1863 # with the gnu make, this is done automatically.
1865 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
) $(gcc_version_trigger
)
1866 $(SHELL
) .
/config.status
1869 # Support for building net releases
1871 # Files in devo used in any net release.
1872 # ChangeLog omitted because it may refer to files which are not in this
1873 # distribution (perhaps it would be better to include it anyway).
1874 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1875 config.guess config.if config.sub config move-if-change \
1876 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1877 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1878 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1879 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1881 # Files in devo/etc used in any net release.
1882 # ChangeLog omitted because it may refer to files which are not in this
1883 # distribution (perhaps it would be better to include it anyway).
1884 ETC_SUPPORT
= Makefile.in configure configure.in standards.texi \
1885 make-stds.texi standards.
info* configure.texi configure.
info* \
1886 configbuild.
* configdev.
*
1889 # When you use `make setup-dirs' or `make taz' you should always redefine
1891 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1893 # NOTE: No double quotes in the below. It is used within shell script
1895 VER
= ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1896 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1897 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1898 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1899 elif test -f $(TOOL)/version.in; then \
1900 head -1 $(TOOL)/version.in; \
1901 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1902 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1909 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1910 $(MAKE
) -f Makefile.in do-proto-toplev \
1911 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1912 MD5PROG
="$(MD5PROG)" \
1913 SUPPORT_FILES
="$(SUPPORT_FILES)"
1914 $(MAKE
) -f Makefile.in do-md5sum \
1915 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1916 MD5PROG
="$(MD5PROG)" \
1917 SUPPORT_FILES
="$(SUPPORT_FILES)"
1918 $(MAKE
) -f Makefile.in do-tar-bz2 \
1919 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1920 MD5PROG
="$(MD5PROG)" \
1921 SUPPORT_FILES
="$(SUPPORT_FILES)"
1924 gdb-taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1925 $(MAKE
) -f Makefile.in do-proto-toplev \
1926 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1927 MD5PROG
="$(MD5PROG)" \
1928 SUPPORT_FILES
="$(SUPPORT_FILES)"
1929 $(MAKE
) -f Makefile.in do-md5sum \
1930 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1931 MD5PROG
="$(MD5PROG)" \
1932 SUPPORT_FILES
="$(SUPPORT_FILES)"
1933 $(MAKE
) -f Makefile.in do-djunpack \
1934 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1935 MD5PROG
="$(MD5PROG)" \
1936 SUPPORT_FILES
="$(SUPPORT_FILES)"
1937 $(MAKE
) -f Makefile.in do-tar-bz2 \
1938 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1939 MD5PROG
="$(MD5PROG)" \
1940 SUPPORT_FILES
="$(SUPPORT_FILES)"
1942 .PHONY
: do-proto-toplev
1943 do-proto-toplev
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1944 echo
"==> Making $(PACKAGE)-$(VER)/"
1945 # Take out texinfo from a few places.
1946 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1947 -e
'/^ install-texinfo /d' \
1949 mv
-f tmp Makefile.in
1952 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1953 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) \
1954 ALL_GCC
="" ALL_GCC_C
="" ALL_GCC_CXX
="" \
1955 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1956 # Make links, and run "make diststuff" or "make info" when needed.
1957 rm -rf proto-toplev
; mkdir proto-toplev
1958 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1959 for d in
$$dirs ; do \
1960 if
[ -d
$$d ]; then \
1961 if
[ ! -f
$$d/Makefile
] ; then true
; \
1962 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1963 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1964 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1965 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1967 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1968 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1970 ln
-s ..
/$$d proto-toplev
/$$d ; \
1972 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1974 cd etc
&& $(MAKE
) info
1977 mkdir proto-toplev
/etc
1978 (cd proto-toplev
/etc
; \
1979 for i in
$(ETC_SUPPORT
); do \
1980 ln
-s ..
/..
/etc
/$$i .
; \
1983 # Take out texinfo from configurable dirs
1984 rm proto-toplev
/configure.in
1985 sed
-e
'/^host_tools=/s/texinfo //' \
1986 <configure.in
>proto-toplev
/configure.in
1988 mkdir proto-toplev
/texinfo
1989 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1990 if
test -r texinfo
/util
/tex3patch
; then \
1991 mkdir proto-toplev
/texinfo
/util
&& \
1992 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
1994 chmod
-R og
=u . || chmod og
=u
`find . -print`
1996 # Create .gmo files from .po files.
1997 for f in
`find . -name '*.po' -type f -print`; do \
1998 msgfmt
-o
`echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2001 -rm -f
$(PACKAGE
)-$(VER
)
2002 ln
-s proto-toplev
$(PACKAGE
)-$(VER
)
2006 echo
"==> Making $(PACKAGE)-$(VER).tar.bz2"
2007 -rm -f
$(PACKAGE
)-$(VER
).
tar.bz2
2008 find
$(PACKAGE
)-$(VER
) -follow
-name CVS
-prune
-o
-type f
-print \
2009 |
tar cTfh
- $(PACKAGE
)-$(VER
).
tar
2010 $(BZIPPROG
) -v
-9 $(PACKAGE
)-$(VER
).
tar
2014 echo
"==> Adding md5 checksum to top-level directory"
2015 cd proto-toplev
&& find
* -follow
-name CVS
-prune
-o
-type f
-print \
2016 | xargs
$(MD5PROG
) > ..
/md5.sum
2017 mv md5.sum proto-toplev
2021 echo
"==> Adding updated djunpack.bat to top-level directory"
2022 echo
- 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2023 sed
< djunpack.bat
> djunpack.new \
2024 -e
's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2025 mv djunpack.new djunpack.bat
2026 -rm -f proto-toplev
/djunpack.bat
2027 ln
-s ..
/djunpack.bat proto-toplev
/djunpack.bat
2029 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex
2030 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
2033 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes intl setup.com makefile.vms mkdep
2034 gas.
tar.bz2
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
2035 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2036 MD5PROG
="$(MD5PROG)" \
2037 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
2039 # The FSF "binutils" release includes gprof and ld.
2040 .PHONY
: binutils.
tar.bz2
2041 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof intl setup.com makefile.vms mkdep
2042 binutils.
tar.bz2
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
2043 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
2044 MD5PROG
="$(MD5PROG)" \
2045 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS)"
2047 .PHONY
: gas
+binutils.
tar.bz2
2048 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
2049 gas
+binutils.
tar.bz2
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
2050 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2051 MD5PROG
="$(MD5PROG)" \
2052 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS)"
2054 .PHONY
: libg
++.
tar.bz2
2055 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
2056 libg
++.
tar.bz2
: $(DIST_SUPPORT
) libg
++
2057 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
2058 MD5PROG
="$(MD5PROG)" \
2059 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
2061 GNATS_SUPPORT_DIRS
=include libiberty send-pr
2062 gnats.
tar.bz2
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
2063 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
2064 MD5PROG
="$(MD5PROG)" \
2065 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
2068 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils intl
2069 gdb.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2070 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb \
2071 MD5PROG
="$(MD5PROG)" \
2072 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS)"
2074 .PHONY
: dejagnu.
tar.bz2
2075 DEJAGNU_SUPPORT_DIRS
= tcl expect libiberty
2076 dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(DEJAGNU_SUPPORT_DIRS
) dejagnu
2077 $(MAKE
) -f Makefile.in taz TOOL
=dejagnu \
2078 MD5PROG
="$(MD5PROG)" \
2079 SUPPORT_FILES
="$(DEJAGNU_SUPPORT_DIRS)"
2081 .PHONY
: gdb
+dejagnu.
tar.bz2
2082 GDBD_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl expect dejagnu
2083 gdb
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(GDBD_SUPPORT_DIRS
) gdb
2084 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=gdb
+dejagnu \
2085 MD5PROG
="$(MD5PROG)" \
2086 SUPPORT_FILES
="$(GDBD_SUPPORT_DIRS)"
2088 .PHONY
: insight.
tar.bz2
2089 INSIGHT_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl tk itcl tix libgui
2090 insight.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2091 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=insight \
2092 MD5PROG
="$(MD5PROG)" \
2093 SUPPORT_FILES
="$(INSIGHT_SUPPORT_DIRS)"
2095 .PHONY
: insight
+dejagnu.
tar.bz2
2096 INSIGHTD_SUPPORT_DIRS
= $(INSIGHT_SUPPORT_DIRS
) expect dejagnu
2097 insight
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(INSIGHTD_SUPPORT_DIRS
) gdb
2098 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
="insight+dejagnu" \
2099 MD5PROG
="$(MD5PROG)" \
2100 SUPPORT_FILES
="$(INSIGHTD_SUPPORT_DIRS)"
2102 .PHONY
: newlib.
tar.bz2
2103 NEWLIB_SUPPORT_DIRS
=libgloss
2104 # taz configures for the sun4 target which won't configure newlib.
2105 # We need newlib configured so that the .info files are made.
2106 # Unfortunately, it is not enough to just configure newlib separately:
2107 # taz will build the .info files but since SUBDIRS won't contain newlib,
2108 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2109 # used in building the .info files, eg: *.def, *.ref).
2110 # The problem isn't solvable however without a lot of extra work because
2111 # target libraries are built in subdir $(target_alias) which gets nuked during
2112 # the make distclean. For now punt on the issue of shipping newlib info files
2113 # with newlib net releases and wait for a day when some native target (sun4?)
2114 # supports newlib (if only minimally).
2115 newlib.
tar.bz2
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
2116 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
2117 MD5PROG
="$(MD5PROG)" \
2118 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
2119 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2124 # end of Makefile.in