2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001 Free Software Foundation
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # Tell GNU make 3.79 not to run the top level in parallel. This
22 # prevents contention for $builddir/$target/config.cache, as well
23 # as minimizing scatter in file system caches.
24 NOTPARALLEL
= .NOTPARALLEL
30 exec_prefix = $(prefix)
32 bindir=${exec_prefix}/bin
33 sbindir
=${exec_prefix}/sbin
34 libexecdir
=${exec_prefix}/libexec
35 datadir=${prefix}/share
36 sysconfdir
=${prefix}/etc
37 sharedstatedir
=${prefix}/com
38 localstatedir
=${prefix}/var
39 libdir=${exec_prefix}/lib
40 includedir=${prefix}/include
41 oldincludedir=/usr
/include
42 infodir=${prefix}/info
44 gxx_include_dir
=${includedir}/g
++
46 tooldir
= $(exec_prefix)/$(target_alias
)
47 build_tooldir
= $(exec_prefix)/$(target_alias
)
49 program_transform_name
=
51 man1dir = $(mandir)/man1
52 man2dir = $(mandir)/man2
53 man3dir = $(mandir)/man3
54 man4dir = $(mandir)/man4
55 man5dir = $(mandir)/man5
56 man6dir = $(mandir)/man6
57 man7dir = $(mandir)/man7
58 man8dir = $(mandir)/man8
59 man9dir = $(mandir)/man9
60 infodir = $(prefix)/info
61 includedir = $(prefix)/include
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir
= $(libdir)/gcc-lib
/$(target_alias
)/$(gcc_version
)
68 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
70 INSTALL_PROGRAM_ARGS
=
72 INSTALL
= $(SHELL
) $$s/install-sh
-c
73 INSTALL_PROGRAM
= $(INSTALL
) $(INSTALL_PROGRAM_ARGS
)
74 INSTALL_SCRIPT
= $(INSTALL
)
75 INSTALL_DATA
= $(INSTALL
) -m
644
77 INSTALL_DOSREL
= install-dosrel-fake
84 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
85 # here so that they can be overridden by Makefile fragments.
86 HOST_CC
= $(CC_FOR_BUILD
)
88 HOST_PREFIX_1
= loser-
90 # These flag values are normally overridden by the configure script.
96 CFLAGS_FOR_TARGET
= $(CFLAGS
)
98 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
102 CHILLFLAGS
= $(CFLAGS
)
106 # Use -O2 to stress test the compiler.
107 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
108 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
109 LIBCXXFLAGS_FOR_TARGET
= $(CXXFLAGS_FOR_TARGET
) -fno-implicit-templates
123 # These values are substituted by configure.
128 BISON
= `if [ -f $$r/bison/bison ] ; then \
129 echo $$r/bison/bison -L $$s/bison/ ; \
134 YACC
= `if [ -f $$r/bison/bison ] ; then \
135 echo $$r/bison/bison -y -L $$s/bison/ ; \
136 elif [ -f $$r/byacc/byacc ] ; then \
137 echo $$r/byacc/byacc ; \
139 echo ${DEFAULT_YACC} ; \
142 LEX
= `if [ -f $$r/flex/flex ] ; \
143 then echo $$r/flex/flex ; \
144 else echo ${DEFAULT_LEX} ; fi`
146 M4
= `if [ -f $$r/m4/m4 ] ; \
147 then echo $$r/m4/m4 ; \
148 else echo ${DEFAULT_M4} ; fi`
150 # For an installed makeinfo, we require it to be from texinfo 4 or
151 # higher, else we use the "missing" dummy.
152 MAKEINFO
= `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
153 then echo $$r/texinfo/makeinfo/makeinfo ; \
154 else if (makeinfo --version \
155 | egrep 'texinfo[^0-9]*([1-3][0-9]|[4-9])') >/dev/null 2>&1; \
156 then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
158 # This just becomes part of the MAKEINFO definition passed down to
159 # sub-makes. It lets flags be given on the command line while still
160 # using the makeinfo from the object tree.
163 EXPECT
= `if [ -f $$r/expect/expect ] ; \
164 then echo $$r/expect/expect ; \
165 else echo expect ; fi`
167 RUNTEST
= `if [ -f $$s/dejagnu/runtest ] ; \
168 then echo $$s/dejagnu/runtest ; \
169 else echo runtest ; fi`
172 # compilers to use to create programs which must be run in the build
175 CXX_FOR_BUILD
= $(CXX
)
177 SUBDIRS
= "this is set via configure, don't edit this"
180 # This is set by the configure script to the list of directories which
181 # should be built using the target tools.
182 TARGET_CONFIGDIRS
= libiberty libgloss
$(SPECIAL_LIBS
) newlib libio librx libstdc
++ libg
++ winsup opcodes bsp libstub cygmon libf2c libchill libobjc
184 # Target libraries are put under this directory:
185 # Changed by configure to $(target_alias) if cross.
188 BUILD_CONFIGDIRS
= libiberty
191 # This is set by the configure script to the arguments to use when configuring
192 # directories built for the target.
195 # This is set by the configure script to the arguments to use when configuring
196 # directories built for the build system.
199 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
203 # This is the name of the environment variable used for the path to
204 # the libraries. This may be changed by configure.in.
205 RPATH_ENVVAR
= LD_LIBRARY_PATH
207 # This is the list of directories that may be needed in RPATH_ENVVAR
208 # so that programs built for the host machine work.
209 HOST_LIB_PATH
= $$r/bfd
:$$r/opcodes
211 # This is the list of directories that may be needed in RPATH_ENVVAR
212 # so that prorgams built for the target machine work.
213 TARGET_LIB_PATH
= $$r/$(TARGET_SUBDIR
)/libstdc
++-v3
/src
/.libs
:$$r/$(TARGET_SUBDIR
)/libstdc
++
215 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
216 # Some platforms don't like blank entries, so we remove duplicate,
217 # leading and trailing colons.
218 REALLY_SET_LIB_PATH
= \
219 $(RPATH_ENVVAR
)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR
);
222 INSTALL_TARGET
= installdirs \
225 $(INSTALL_TARGET_MODULES
) \
226 $(INSTALL_X11_MODULES
) \
229 INSTALL_TARGET_CROSS
= installdirs \
232 $(INSTALL_TARGET_MODULES
) \
233 $(INSTALL_X11_MODULES
) \
236 # Should be substed by configure.in
241 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE
=
243 # If GCC_FOR_TARGET is not overriden on the command line, then this
244 # variable is passed down to the gcc Makefile, where it is used to
245 # build libgcc2.a. We define it here so that it can itself be
246 # overridden on the command line.
247 GCC_FOR_TARGET
= $$r/gcc
/xgcc
-B
$$r/gcc
/ $(FLAGS_FOR_TARGET
)
250 if [ -f $$r/gas/as-new ] ; then \
251 echo $$r/gas/as-new ; \
252 elif [ -f $$r/gcc/xgcc ]; then \
253 $(CC_FOR_TARGET) -print-prog-name=as ; \
255 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
258 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
263 if [ -f $$r/ld/ld-new ] ; then \
264 echo $$r/ld/ld-new ; \
265 elif [ -f $$r/gcc/xgcc ]; then \
266 $(CC_FOR_TARGET) -print-prog-name=ld ; \
268 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
271 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
275 DLLTOOL_FOR_TARGET
= ` \
276 if [ -f $$r/binutils/dlltool ] ; then \
277 echo $$r/binutils/dlltool ; \
279 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
282 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
286 WINDRES_FOR_TARGET
= ` \
287 if [ -f $$r/binutils/windres ] ; then \
288 echo $$r/binutils/windres ; \
290 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
293 t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \
298 if [ -f $$r/binutils/ar ] ; then \
299 echo $$r/binutils/ar ; \
301 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
304 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
308 RANLIB_FOR_TARGET
= ` \
309 if [ -f $$r/binutils/ranlib ] ; then \
310 echo $$r/binutils/ranlib ; \
312 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
313 if [ x'$(RANLIB)' != x ]; then \
319 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
324 if [ -f $$r/binutils/nm-new ] ; then \
325 echo $$r/binutils/nm-new ; \
326 elif [ -f $$r/gcc/xgcc ]; then \
327 $(CC_FOR_TARGET) -print-prog-name=nm ; \
329 if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \
332 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
336 # The first rule in the file had better be this one. Don't put any above it.
337 # This lives here to allow makefile fragments to contain dependencies.
341 # These can be overridden by config/mt-*.
342 # The _TARGET_ is because they're specified in mt-foo.
343 # The _HOST_ is because they're programs that run on the host.
344 EXTRA_TARGET_HOST_ALL_MODULES
=
345 EXTRA_TARGET_HOST_INSTALL_MODULES
=
346 EXTRA_TARGET_HOST_CHECK_MODULES
=
348 #### host and target specific makefile fragments come in here.
351 # Flags to pass down to all sub-makes.
352 # Please keep these in alphabetical order.
353 BASE_FLAGS_TO_PASS
= \
354 "AR_FLAGS=$(AR_FLAGS)" \
355 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
356 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
358 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
359 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
361 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
362 "CHILLFLAGS=$(CHILLFLAGS)" \
363 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
364 "CHILL_LIB=$(CHILL_LIB)" \
365 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
366 "CXXFLAGS=$(CXXFLAGS)" \
367 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
368 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
369 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
370 "INSTALL=$(INSTALL)" \
371 "INSTALL_DATA=$(INSTALL_DATA)" \
372 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
373 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
374 "LDFLAGS=$(LDFLAGS)" \
376 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
377 "LIBCFLAGS=$(LIBCFLAGS)" \
378 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
379 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
380 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
383 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
384 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
385 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
386 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
389 "RUNTEST=$(RUNTEST)" \
390 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
391 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
392 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
395 "datadir=$(datadir)" \
396 "exec_prefix=$(exec_prefix)" \
397 "includedir=$(includedir)" \
398 "infodir=$(infodir)" \
400 "libexecdir=$(libexecdir)" \
401 "lispdir=$(lispdir)" \
402 "localstatedir=$(localstatedir)" \
404 "oldincludedir=$(oldincludedir)" \
406 "sbindir=$(sbindir)" \
407 "sharedstatedir=$(sharedstatedir)" \
408 "sysconfdir=$(sysconfdir)" \
409 "tooldir=$(tooldir)" \
410 "build_tooldir=$(build_tooldir)" \
411 "gxx_include_dir=$(gxx_include_dir)" \
412 "gcc_version=$(gcc_version)" \
413 "gcc_version_trigger=$(gcc_version_trigger)" \
414 "target_alias=$(target_alias)" \
415 "libsubdir=$(libsubdir)"
417 # For any flags above that may contain shell code that varies from one
418 # target library to another. When doing recursive invocations of the
419 # top-level Makefile, we don't want the outer make to evaluate them,
420 # so we pass these variables down unchanged. They must not contain
421 # single nor double quotes.
423 CXX_FOR_TARGET
='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
425 # Flags to pass down to most sub-makes, in which we're building with
426 # the host environment.
427 # If any variables are added here, they must be added to do-*, below.
433 'DLLTOOL=$(DLLTOOL)' \
439 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
441 # Flags that are concerned with the location of the X11 include files
444 # NOTE: until the top-level is getting the values via autoconf, it only
445 # causes problems to have this top-level Makefile overriding the autoconf-set
446 # values in child directories. Only variables that don't conflict with
447 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
449 X11_FLAGS_TO_PASS
= \
450 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
451 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
453 # Flags to pass down to makes which are built with the target environment.
454 # The double $ decreases the length of the command line; the variables
455 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
456 # If any variables are added here, they must be added to do-*, below.
457 EXTRA_TARGET_FLAGS
= \
458 'AR=$$(AR_FOR_TARGET)' \
459 'AS=$$(AS_FOR_TARGET)' \
460 'CC=$$(CC_FOR_TARGET)' \
461 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
462 'CXX=$$(CXX_FOR_TARGET)' \
463 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
464 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
465 'LD=$$(LD_FOR_TARGET)' \
466 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
467 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
468 'NM=$$(NM_FOR_TARGET)' \
469 'RANLIB=$$(RANLIB_FOR_TARGET)' \
470 'WINDRES=$$(WINDRES_FOR_TARGET)'
472 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
474 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
475 # unfortunately needs the native compiler and the target ar and
477 # If any variables are added here, they must be added to do-*, below.
478 # The HOST_* variables are a special case, which are used for the gcc
479 # cross-building scheme.
485 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
486 'HOST_CC=$(CC_FOR_BUILD)' \
487 'HOST_PREFIX=$(HOST_PREFIX)' \
488 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
491 'WINDRES=$$(WINDRES_FOR_TARGET)' \
492 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
493 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
494 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
495 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
496 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
501 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
503 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
505 # This is a list of the targets for all of the modules which are compiled
506 # using the build machine's native compiler. Configure edits the second
507 # macro for build!=host builds.
508 ALL_BUILD_MODULES_LIST
= \
512 # This is a list of the configure targets for all of the modules which
513 # are compiled using the native tools.
514 CONFIGURE_BUILD_MODULES
= \
515 configure-build-libiberty
517 # This is a list of the targets for all of the modules which are compiled
518 # using $(FLAGS_TO_PASS).
587 $(EXTRA_TARGET_HOST_ALL_MODULES
)
589 # This is a list of the check targets for all of the modules which are
590 # compiled using $(FLAGS_TO_PASS).
592 # The list is in two parts. The first lists those tools which
593 # are tested as part of the host's native tool-chain, and not
594 # tested in a cross configuration.
595 NATIVE_CHECK_MODULES
= \
601 CROSS_CHECK_MODULES
= \
660 $(EXTRA_TARGET_HOST_CHECK_MODULES
)
662 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
664 # This is a list of the install targets for all of the modules which are
665 # compiled using $(FLAGS_TO_PASS).
666 # We put install-opcodes before install-binutils because the installed
667 # binutils might be on PATH, and they might need the shared opcodes
669 # We put install-tcl before install-itcl because itcl wants to run a
670 # program on installation which uses the Tcl libraries.
736 $(EXTRA_TARGET_HOST_INSTALL_MODULES
)
738 # This is a list of the targets for all of the modules which are compiled
739 # using $(X11_FLAGS_TO_PASS).
752 # This is a list of the check targets for all of the modules which are
753 # compiled using $(X11_FLAGS_TO_PASS).
754 CHECK_X11_MODULES
= \
764 # This is a list of the install targets for all the modules which are
765 # compiled using $(X11_FLAGS_TO_PASS).
766 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
= \
782 all-target-libstdc
++ \
783 all-target-libstdc
++-v3 \
788 all-target-libchill \
790 all-target-libtermcap \
792 all-target-libgloss \
793 all-target-libiberty \
795 all-target-examples \
800 all-target-boehm-gc \
801 all-target-qthreads \
805 # This is a list of the configure targets for all of the modules which
806 # are compiled using the target tools.
807 CONFIGURE_TARGET_MODULES
= \
808 configure-target-libio \
809 configure-target-libstdc
++ \
810 configure-target-libstdc
++-v3 \
811 configure-target-librx \
812 configure-target-libg
++ \
813 configure-target-newlib \
814 configure-target-libf2c \
815 configure-target-libchill \
816 configure-target-libobjc \
817 configure-target-libtermcap \
818 configure-target-winsup \
819 configure-target-libgloss \
820 configure-target-libiberty \
821 configure-target-gperf \
822 configure-target-examples \
823 configure-target-libstub \
824 configure-target-libffi \
825 configure-target-libjava \
826 configure-target-zlib \
827 configure-target-boehm-gc \
828 configure-target-qthreads \
829 configure-target-bsp \
830 configure-target-cygmon
832 # This is a list of the check targets for all of the modules which are
833 # compiled using $(TARGET_FLAGS_TO_PASS).
834 CHECK_TARGET_MODULES
= \
836 check-target-libstdc
++ \
837 check-target-libstdc
++-v3 \
838 check-target-libg
++ \
839 check-target-newlib \
840 check-target-libf2c \
841 check-target-libchill \
842 check-target-libobjc \
843 check-target-winsup \
844 check-target-libiberty \
845 check-target-libffi \
846 check-target-libjava \
848 check-target-boehm-gc \
849 check-target-qthreads \
852 # This is a list of the install targets for all of the modules which are
853 # compiled using $(TARGET_FLAGS_TO_PASS).
854 INSTALL_TARGET_MODULES
= \
855 install-target-libio \
856 install-target-libstdc
++ \
857 install-target-libstdc
++-v3 \
858 install-target-libg
++ \
859 install-target-newlib \
860 install-target-libf2c \
861 install-target-libchill \
862 install-target-libobjc \
863 install-target-libtermcap \
864 install-target-winsup \
865 install-target-libgloss \
866 install-target-libiberty \
868 install-target-libjava \
869 install-target-zlib \
870 install-target-boehm-gc \
871 install-target-qthreads \
874 # This is a list of the targets for which we can do a clean-{target}.
943 # All of the target modules that can be cleaned
944 CLEAN_TARGET_MODULES
= \
946 clean-target-libstdc
++ \
947 clean-target-libstdc
++-v3 \
949 clean-target-libg
++ \
950 clean-target-newlib \
951 clean-target-libf2c \
952 clean-target-libchill \
953 clean-target-libobjc \
954 clean-target-winsup \
955 clean-target-libgloss \
956 clean-target-libiberty \
958 clean-target-examples \
959 clean-target-libstub \
960 clean-target-libffi \
961 clean-target-libjava \
963 clean-target-boehm-gc \
964 clean-target-qthreads \
968 # All of the x11 modules that can be cleaned
969 CLEAN_X11_MODULES
= \
980 # The target built for a native build.
983 $(ALL_BUILD_MODULES
) \
986 $(ALL_TARGET_MODULES
) \
989 # Do a target for all the subdirectories. A ``make do-X'' will do a
990 # ``make X'' in all subdirectories (because, in general, there is a
991 # dependency (below) of X upon do-X, a ``make X'' will also do this,
992 # but it may do additional work as well).
993 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
994 # because it is so large that it can easily overflow the command line
995 # length limit on some systems.
1004 do-maintainer-clean \
1008 @target
=`echo $@ | sed -e 's/^do-//'`; \
1009 r
=`pwd`; export r
; \
1010 s
=`cd $(srcdir); pwd`; export s
; \
1012 for i in
$(SUBDIRS
) -dummy-
; do \
1013 if
[ -f .
/$$i/Makefile
]; then \
1016 for flag in
$(EXTRA_GCC_FLAGS
); do \
1017 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1021 for flag in
$(EXTRA_HOST_FLAGS
); do \
1022 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1027 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1029 "RANLIB=$${RANLIB}" \
1030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1032 then true
; else exit
1; fi
; \
1035 @target
=`echo $@ | sed -e 's/^do-//'`; \
1036 r
=`pwd`; export r
; \
1037 s
=`cd $(srcdir); pwd`; export s
; \
1039 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
1040 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
1041 for flag in
$(EXTRA_TARGET_FLAGS
); do \
1042 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1044 if
(cd
$(TARGET_SUBDIR
)/$$i; \
1045 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1047 "RANLIB=$${RANLIB}" \
1048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1050 then true
; else exit
1; fi
; \
1054 # Here are the targets which correspond to the do-X targets.
1056 .PHONY
: info installcheck dvi install-info
1057 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
1058 .PHONY
: local-clean local-distclean local-maintainer-clean
1060 installcheck: do-installcheck
1063 # Make sure makeinfo is built before we do a `make info'.
1064 do-info
: all-texinfo
1066 install-info
: do-install-info
dir.
info
1067 s
=`cd $(srcdir); pwd`; export s
; \
1068 if
[ -f
dir.
info ] ; then \
1069 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
1073 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E *.log
1076 -rm -f Makefile config.status config.cache mh-frag mt-frag
1077 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
1078 rm -rf
$(TARGET_SUBDIR
); \
1081 local-maintainer-clean
:
1082 @echo
"This command is intended for maintainers to use;"
1083 @echo
"it deletes files that may require special tools to rebuild."
1085 clean: do-clean local-clean
1086 mostlyclean: do-mostlyclean local-clean
1087 distclean: do-distclean local-clean local-distclean
1088 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
1089 maintainer-clean
: local-distclean
1090 realclean: maintainer-clean
1092 # This rule is used to clean specific modules.
1093 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
1094 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
1095 @
dir=`echo $@ | sed -e 's/clean-//'`; \
1096 if
[ -f .
/$${dir}/Makefile
] ; then \
1097 r
=`pwd`; export r
; \
1098 s
=`cd $(srcdir); pwd`; export s
; \
1100 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
1105 .PHONY
: $(CLEAN_TARGET_MODULES
)
1106 $(CLEAN_TARGET_MODULES
):
1107 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
1108 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1109 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1110 r
=`pwd`; export r
; \
1111 s
=`cd $(srcdir); pwd`; export s
; \
1113 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
1118 clean-target
: $(CLEAN_TARGET_MODULES
) clean-target-libgcc
1119 clean-target-libgcc
:
1120 test ! -d gcc
/libgcc || \
1121 (cd gcc
/libgcc
&& find .
-type d
-print) | \
1122 while read d
; do
rm -f gcc
/$$d/libgcc.a ||
: ; done
1127 .PHONY
: check do-check
1129 $(MAKE
) do-check NOTPARALLEL
=parallel-ok
1131 do-check
: $(CHECK_MODULES
) \
1132 $(CHECK_TARGET_MODULES
) \
1133 $(CHECK_X11_MODULES
) \
1136 # Automated reporting of test results.
1138 warning.log
: build.log
1139 $(srcdir)/contrib
/warn_summary build.log
> $@
1142 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1143 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1145 $(srcdir)/contrib
/test_summary
-t
>$@
1147 echo If you really want to send e-mail
, run .
/$@ now
1149 mail-report-with-warnings.log
: warning.log
1150 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1151 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1153 $(srcdir)/contrib
/test_summary
-t
-i warning.log
>$@
1155 echo If you really want to send e-mail
, run .
/$@ now
1157 # Installation targets.
1159 .PHONY
: install install-cross
uninstall source-vault binary-vault vault-install
1160 install: $(INSTALL_TARGET
)
1161 install-cross
: $(INSTALL_TARGET_CROSS
)
1164 @echo
"the uninstall target is not supported in this tree"
1167 $(MAKE
) -f .
/release
/Build-A-Release \
1168 host
=$(host_alias
) source-vault
1171 $(MAKE
) -f .
/release
/Build-A-Release \
1172 host
=$(host_alias
) target
=$(target_alias
)
1175 @if
[ -f .
/release
/vault-install
] ; then \
1176 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
1182 install.
all: install-no-fixedincludes
1183 @if
[ -f .
/gcc
/Makefile
] ; then \
1184 r
=`pwd` ; export r
; \
1187 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
1192 # inet-install is used because the I*Net wants DejaGNU installed but
1193 # not built. Similarly, gzip is built but not installed.
1195 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1197 # install-no-fixedincludes is used because Cygnus can not distribute
1198 # the fixed header files.
1199 .PHONY
: install-no-fixedincludes
1200 install-no-fixedincludes
: \
1202 $(INSTALL_MODULES
) \
1203 $(INSTALL_TARGET_MODULES
) \
1204 $(INSTALL_X11_MODULES
) \
1205 gcc-no-fixedincludes
1207 # Install the gcc headers files, but not the fixed include files,
1208 # which Cygnus is not allowed to distribute. This rule is very
1209 # dependent on the workings of the gcc Makefile.in.
1210 .PHONY
: gcc-no-fixedincludes
1211 gcc-no-fixedincludes
:
1212 @if
[ -f .
/gcc
/Makefile
]; then \
1213 rm -rf gcc
/tmp-include
; \
1214 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
1215 mkdir gcc
/include; \
1216 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
1217 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
1218 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
1219 r
=`pwd`; export r
; \
1220 s
=`cd $(srcdir); pwd` ; export s
; \
1223 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1224 rm -rf gcc
/include; \
1225 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
1228 # This rule is used to build the modules which are built with the
1229 # build machine's native compiler.
1230 .PHONY
: $(ALL_BUILD_MODULES
)
1231 $(ALL_BUILD_MODULES
):
1232 dir=`echo $@ | sed -e 's/all-build-//'`; \
1233 if
[ -f .
/$${dir}/Makefile
] ; then \
1234 r
=`pwd`; export r
; \
1235 s
=`cd $(srcdir); pwd`; export s
; \
1236 (cd
$(BUILD_SUBDIR
)/$${dir} && $(MAKE
) all); \
1241 # This rule is used to configure the modules which are built with the
1243 .PHONY
: $(CONFIGURE_BUILD_MODULES
)
1244 $(CONFIGURE_BUILD_MODULES
):
1245 @
dir=`echo $@ | sed -e 's/configure-build-//'`; \
1246 if
[ ! -d
$(BUILD_SUBDIR
) ]; then \
1248 elif
[ -f
$(BUILD_SUBDIR
)/$${dir}/Makefile
] ; then \
1250 elif echo
" $(BUILD_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1251 if
[ -d
$(srcdir)/$${dir} ]; then \
1252 [ -d
$(BUILD_SUBDIR
)/$${dir} ] || mkdir
$(BUILD_SUBDIR
)/$${dir};\
1253 r
=`pwd`; export r
; \
1254 s
=`cd $(srcdir); pwd`; export s
; \
1255 AR
="$(AR_FOR_BUILD)"; export AR
; \
1256 AS
="$(AS_FOR_BUILD)"; export AS
; \
1257 CC
="$(CC_FOR_BUILD)"; export CC
; \
1258 CFLAGS
="$(CFLAGS_FOR_BUILD)"; export CFLAGS
; \
1259 CXX
="$(CXX_FOR_BUILD)"; export CXX
; \
1260 CXXFLAGS
="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS
; \
1261 GCJ
="$(GCJ_FOR_BUILD)"; export GCJ
; \
1262 DLLTOOL
="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL
; \
1263 LD
="$(LD_FOR_BUILD)"; export LD
; \
1264 LDFLAGS
="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS
; \
1265 NM
="$(NM_FOR_BUILD)"; export NM
; \
1266 RANLIB
="$(RANLIB_FOR_BUILD)"; export RANLIB
; \
1267 WINDRES
="$(WINDRES_FOR_BUILD)"; export WINDRES
; \
1268 echo Configuring in
$(BUILD_SUBDIR
)/$${dir}; \
1269 cd
"$(BUILD_SUBDIR)/$${dir}" || exit
1; \
1271 /* |
[A-Za-z
]:[\\/]*) \
1272 topdir
=$(srcdir) ;; \
1274 case
"$(BUILD_SUBDIR)" in \
1275 .
) topdir
="../$(srcdir)" ;; \
1276 *) topdir
="../../$(srcdir)" ;; \
1279 if
[ "$(srcdir)" = "." ] ; then \
1280 if
[ "$(BUILD_SUBDIR)" != "." ] ; then \
1281 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1282 if
[ -f Makefile
]; then \
1283 if
$(MAKE
) distclean; then \
1297 srcdiroption
="--srcdir=."; \
1300 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1301 libsrcdir
="$$s/$${dir}"; \
1303 if
[ -f
$${libsrcdir}/configure
] ; then \
1304 rm -f no-such-file skip-this-dir
; \
1305 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1306 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1307 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1309 rm -f no-such-file skip-this-dir
; \
1310 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1311 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1312 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1314 if
[ -f skip-this-dir
] ; then \
1316 rm -f skip-this-dir
; \
1317 cd ..
; rmdir
$${dir} || true
; \
1328 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1329 # build a target all-X means to cd to X and make all.
1331 # all-gui, and all-libproc are handled specially because
1332 # they are still experimental, and if they fail to build, that
1333 # shouldn't stop "make all".
1334 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
1335 $(ALL_MODULES
) all-gui all-libproc
:
1336 @
dir=`echo $@ | sed -e 's/all-//'`; \
1337 if
[ -f .
/$${dir}/Makefile
] ; then \
1338 r
=`pwd`; export r
; \
1339 s
=`cd $(srcdir); pwd`; export s
; \
1341 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
1346 # These rules are used to check the modules which use FLAGS_TO_PASS.
1347 # To build a target check-X means to cd to X and make check. Some
1348 # modules are only tested in a native toolchain.
1350 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1351 $(NATIVE_CHECK_MODULES
):
1352 @if
[ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1353 dir=`echo $@ | sed -e 's/check-//'`; \
1354 if
[ -f .
/$${dir}/Makefile
] ; then \
1355 r
=`pwd`; export r
; \
1356 s
=`cd $(srcdir); pwd`; export s
; \
1358 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1364 $(CROSS_CHECK_MODULES
):
1365 @
dir=`echo $@ | sed -e 's/check-//'`; \
1366 if
[ -f .
/$${dir}/Makefile
] ; then \
1367 r
=`pwd`; export r
; \
1368 s
=`cd $(srcdir); pwd`; export s
; \
1370 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1375 # This rule is used to install the modules which use FLAGS_TO_PASS.
1376 # To build a target install-X means to cd to X and make install.
1377 .PHONY
: $(INSTALL_MODULES
)
1378 $(INSTALL_MODULES
): installdirs
1379 @
dir=`echo $@ | sed -e 's/install-//'`; \
1380 if
[ -f .
/$${dir}/Makefile
] ; then \
1381 r
=`pwd`; export r
; \
1382 s
=`cd $(srcdir); pwd`; export s
; \
1384 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1389 # This rule is used to configure the modules which are built with the
1391 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1392 $(CONFIGURE_TARGET_MODULES
):
1393 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1394 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1395 r
=`pwd`; export r
; \
1396 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1397 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1398 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1399 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1400 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1402 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1403 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1404 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1407 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1410 fi
; exit
0 # break command into two pieces
1411 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1412 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1414 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1416 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1417 if
[ -d
$(srcdir)/$${dir} ]; then \
1418 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1419 r
=`pwd`; export r
; \
1420 s
=`cd $(srcdir); pwd`; export s
; \
1422 AR
="$(AR_FOR_TARGET)"; export AR
; \
1423 AS
="$(AS_FOR_TARGET)"; export AS
; \
1424 CC
="$(CC_FOR_TARGET)"; export CC
; \
1425 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1426 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1427 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1428 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1429 LD
="$(LD_FOR_TARGET)"; export LD
; \
1430 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1431 NM
="$(NM_FOR_TARGET)"; export NM
; \
1432 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1433 WINDRES
="$(WINDRES_FOR_TARGET)"; export WINDRES
; \
1434 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1435 cd
$(TARGET_SUBDIR
)/$${dir}; \
1438 topdir
=$(srcdir) ;; \
1440 case
"$(TARGET_SUBDIR)" in \
1441 .
) topdir
="../$(srcdir)" ;; \
1442 *) topdir
="../../$(srcdir)" ;; \
1445 if
[ "$(srcdir)" = "." ] ; then \
1446 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1447 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1448 if
[ -f Makefile
]; then \
1449 if
$(MAKE
) distclean; then \
1463 srcdiroption
="--srcdir=."; \
1466 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1467 libsrcdir
="$$s/$${dir}"; \
1469 if
[ -f
$${libsrcdir}/configure
] ; then \
1470 rm -f no-such-file skip-this-dir
; \
1471 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1472 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1473 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1475 rm -f no-such-file skip-this-dir
; \
1476 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1477 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1478 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1480 if
[ -f skip-this-dir
] ; then \
1482 rm -f skip-this-dir
; \
1483 cd ..
; rmdir
$${dir} || true
; \
1494 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1495 # To build a target all-X means to cd to X and make all.
1496 .PHONY
: $(ALL_TARGET_MODULES
)
1497 $(ALL_TARGET_MODULES
):
1498 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1499 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1500 r
=`pwd`; export r
; \
1501 s
=`cd $(srcdir); pwd`; export s
; \
1503 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1504 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1509 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1510 # To build a target install-X means to cd to X and make install.
1511 .PHONY
: $(CHECK_TARGET_MODULES
)
1512 $(CHECK_TARGET_MODULES
):
1513 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1514 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1515 r
=`pwd`; export r
; \
1516 s
=`cd $(srcdir); pwd`; export s
; \
1518 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1519 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1524 # This rule is used to install the modules which use
1525 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1527 .PHONY
: $(INSTALL_TARGET_MODULES
)
1528 $(INSTALL_TARGET_MODULES
): installdirs
1529 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1530 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1531 r
=`pwd`; export r
; \
1532 s
=`cd $(srcdir); pwd`; export s
; \
1534 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1535 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1540 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1541 # To build a target all-X means to cd to X and make all.
1542 .PHONY
: $(ALL_X11_MODULES
)
1544 @
dir=`echo $@ | sed -e 's/all-//'`; \
1545 if
[ -f .
/$${dir}/Makefile
] ; then \
1546 r
=`pwd`; export r
; \
1547 s
=`cd $(srcdir); pwd`; export s
; \
1550 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1555 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1556 # To build a target check-X means to cd to X and make all.
1557 .PHONY
: $(CHECK_X11_MODULES
)
1558 $(CHECK_X11_MODULES
):
1559 @
dir=`echo $@ | sed -e 's/check-//'`; \
1560 if
[ -f .
/$${dir}/Makefile
] ; then \
1561 r
=`pwd`; export r
; \
1562 s
=`cd $(srcdir); pwd`; export s
; \
1565 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1570 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1571 # To build a target install-X means to cd to X and make install.
1572 .PHONY
: $(INSTALL_X11_MODULES
)
1573 $(INSTALL_X11_MODULES
): installdirs
1574 @
dir=`echo $@ | sed -e 's/install-//'`; \
1575 if
[ -f .
/$${dir}/Makefile
] ; then \
1576 r
=`pwd`; export r
; \
1577 s
=`cd $(srcdir); pwd`; export s
; \
1580 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1585 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1588 @if
[ -f .
/gcc
/Makefile
] ; then \
1589 r
=`pwd`; export r
; \
1590 s
=`cd $(srcdir); pwd`; export s
; \
1592 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1597 # Building GCC uses some tools for rebuilding "source" files
1598 # like texinfo, bison/byacc, etc. So we must depend on those.
1600 # While building GCC, it may be necessary to run various target
1601 # programs like the assembler, linker, etc. So we depend on
1604 # In theory, on an SMP all those dependencies can be resolved
1607 .PHONY
: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1608 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
: all-bootstrap
1609 @r
=`pwd`; export r
; \
1610 s
=`cd $(srcdir); pwd`; export s
; \
1612 echo
"Bootstrapping the compiler"; \
1613 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $@
1614 @r
=`pwd`; export r
; \
1615 s
=`cd $(srcdir); pwd`; export s
; \
1617 *bootstrap4-lean
) \
1618 msg
="Comparing stage3 and stage4 of the compiler"; \
1619 compare
=compare3-lean
;; \
1620 *bootstrap4
) msg
="Comparing stage3 and stage4 of the compiler"; \
1621 compare
=compare3
;; \
1622 *-lean
) msg
="Comparing stage2 and stage3 of the compiler"; \
1623 compare
=compare-lean
;; \
1624 * ) msg
="Comparing stage2 and stage3 of the compiler"; \
1625 compare
=compare
;; \
1629 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $$compare
1630 @r
=`pwd`; export r
; \
1631 s
=`cd $(srcdir); pwd` ; export s
; \
1633 echo
"Building runtime libraries"; \
1634 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) all
1637 cross
: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1638 @r
=`pwd`; export r
; \
1639 s
=`cd $(srcdir); pwd`; export s
; \
1641 echo
"Building the C and C++ compiler"; \
1642 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++"
1643 @r
=`pwd`; export r
; \
1644 s
=`cd $(srcdir); pwd` ; export s
; \
1646 echo
"Building runtime libraries"; \
1647 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) \
1648 LANGUAGES
="c c++" all
1652 @if
[ -f .
/gcc
/Makefile
] ; then \
1653 r
=`pwd`; export r
; \
1654 s
=`cd $(srcdir); pwd`; export s
; \
1656 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1663 @if
[ -f .
/gcc
/Makefile
] ; then \
1664 r
=`pwd`; export r
; \
1665 s
=`cd $(srcdir); pwd`; export s
; \
1667 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1672 .PHONY
: install-gcc-cross
1674 @if
[ -f .
/gcc
/Makefile
] ; then \
1675 r
=`pwd`; export r
; \
1676 s
=`cd $(srcdir); pwd`; export s
; \
1678 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++" install); \
1682 # EXPERIMENTAL STUFF
1683 # This rule is used to install the modules which use FLAGS_TO_PASS.
1684 # To build a target install-X means to cd to X and make install.
1685 .PHONY
: install-dosrel
1686 install-dosrel
: installdirs info
1687 @
dir=`echo $@ | sed -e 's/install-//'`; \
1688 if
[ -f .
/$${dir}/Makefile
] ; then \
1689 r
=`pwd`; export r
; \
1690 s
=`cd $(srcdir); pwd`; export s
; \
1692 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1697 install-dosrel-fake
:
1700 ALL_GCC_C
= $(ALL_GCC
) all-target-newlib all-target-libgloss
1701 ALL_GCC_CXX
= $(ALL_GCC_C
) all-target-libstdc
++ all-target-libstdc
++-v3
1703 # This is a list of inter-dependencies among modules.
1706 all-autoconf
: all-m4 all-texinfo
1707 all-automake
: all-m4 all-texinfo
1709 all-bfd
: all-libiberty all-intl
1710 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1711 all-bison
: all-texinfo
1712 configure-target-boehm-gc
: $(ALL_GCC_CXX
) configure-target-qthreads
1713 all-target-boehm-gc
: configure-target-boehm-gc
1714 configure-target-bsp
: $(ALL_GCC_C
)
1715 all-target-bsp
: configure-target-bsp
1718 all-cgen
: all-libiberty
1720 configure-target-cygmon
: $(ALL_GCC_C
)
1721 all-target-cygmon
: configure-target-cygmon all-target-libiberty all-target-libio all-target-libstub all-target-bsp
1723 all-dejagnu
: all-tcl all-expect all-tk
1724 all-diff
: all-libiberty
1726 all-emacs19
: all-bison all-byacc
1728 configure-target-examples
: $(ALL_GCC_C
)
1729 all-target-examples
: configure-target-examples
1730 all-expect
: all-tcl all-tk
1731 all-fileutils
: all-libiberty
1734 all-flex
: all-libiberty all-bison all-byacc
1735 all-gas
: all-libiberty all-opcodes all-bfd all-intl
1738 all-gcc
: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1739 all-bootstrap
: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1740 GDB_TK
= all-tk all-tcl all-itcl all-tix all-libgui
1741 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1744 configure-target-gperf
: $(ALL_GCC_CXX
)
1745 all-target-gperf
: configure-target-gperf all-target-libiberty all-target-libstdc
++-v3
1746 all-gprof
: all-libiberty all-bfd all-opcodes all-intl
1747 all-grep
: all-libiberty
1748 all-grez
: all-libiberty all-bfd all-opcodes
1749 all-gui
: all-gdb all-libproc all-target-librx
1751 all-gzip
: all-libiberty
1752 all-hello
: all-libiberty
1754 all-inet
: all-tcl all-send-pr all-perl
1756 all-ispell
: all-emacs19
1757 all-itcl
: all-tcl all-tk all-tcl8.1 all-tk8.1
1758 all-ld
: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1759 configure-target-libg
++: $(ALL_GCC_CXX
) configure-target-librx
1760 all-target-libg
++: configure-target-libg
++ all-target-libiberty all-target-librx
1761 configure-target-libgloss
: $(ALL_GCC
)
1762 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1763 configure-target-libio
: $(ALL_GCC_C
)
1764 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1765 check-target-libio
: all-target-libstdc
++
1766 all-libgui
: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1769 all-build-libiberty
: configure-build-libiberty
1771 configure-target-libffi
: $(ALL_GCC_C
)
1772 all-target-libffi
: configure-target-libffi
1773 configure-target-libjava
: $(ALL_GCC_CXX
) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1774 all-target-libjava
: configure-target-libjava all-zip all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1775 configure-target-librx
: $(ALL_GCC_C
)
1776 all-target-librx
: configure-target-librx
1777 configure-target-libstdc
++: $(ALL_GCC_C
)
1778 all-target-libstdc
++: configure-target-libstdc
++ all-target-libiberty all-target-libio
1779 configure-target-libstdc
++-v3
: $(ALL_GCC_C
)
1780 all-target-libstdc
++-v3
: configure-target-libstdc
++-v3 all-target-libiberty
1781 configure-target-libstub
: $(ALL_GCC_C
)
1782 all-target-libstub
: configure-target-libstub
1784 configure-target-libf2c
: $(ALL_GCC_C
)
1785 all-target-libf2c
: configure-target-libf2c all-target-libiberty
1786 configure-target-libchill
: $(ALL_GCC_C
)
1787 all-target-libchill
: configure-target-libchill all-target-libiberty
1788 configure-target-libobjc
: $(ALL_GCC_C
)
1789 all-target-libobjc
: configure-target-libobjc all-target-libiberty
1790 all-m4
: all-libiberty all-texinfo
1791 all-make
: all-libiberty
1793 configure-target-newlib
: $(ALL_GCC
)
1794 all-target-newlib
: configure-target-newlib
1795 configure-target-libtermcap
: $(ALL_GCC_C
)
1796 all-target-libtermcap
: configure-target-libtermcap
1797 all-opcodes
: all-bfd all-libiberty all-cgen
1798 all-patch
: all-libiberty
1800 all-prms
: all-libiberty
1801 configure-target-qthreads
: $(ALL_GCC_C
)
1802 all-target-qthreads
: configure-target-qthreads
1805 all-recode
: all-libiberty
1806 all-sed
: all-libiberty
1807 all-send-pr
: all-prms
1809 all-sid
: all-tcl all-tk
1810 all-sim
: all-libiberty all-bfd all-opcodes all-readline all-cgen
1811 all-snavigator
: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1812 all-tar
: all-libiberty
1815 all-tclX
: all-tcl all-tk
1817 all-tk8.1
: all-tcl8.1
1818 all-texinfo
: all-libiberty
1820 all-tgas
: all-libiberty all-bfd all-opcodes
1822 all-tix
: all-tcl all-tk all-tcl8.1 all-tk8.1
1824 configure-target-winsup
: $(ALL_GCC_C
)
1825 all-target-winsup
: all-target-libiberty all-target-libtermcap configure-target-winsup
1826 all-uudecode
: all-libiberty
1829 configure-target-zlib
: $(ALL_GCC_C
)
1830 all-target-zlib
: configure-target-zlib
1831 configure-target-libiberty
: $(ALL_GCC_C
)
1832 all-target-libiberty
: configure-target-libiberty
1833 all-target
: $(ALL_TARGET_MODULES
)
1834 install-target
: $(INSTALL_TARGET_MODULES
)
1835 install-gdb
: install-tcl install-tk install-itcl install-tix install-libgui
1836 install-sid
: install-tcl install-tk
1837 ### other supporting targets
1843 installdirs: mkinstalldirs
1844 $(SHELL
) $(srcdir)/mkinstalldirs
$(MAKEDIRS
)
1846 dir.
info: do-install-info
1847 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1848 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1849 mv
-f
dir.
info.new
dir.
info ; \
1854 @echo
"Building a full distribution of this tree isn't done"
1855 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1859 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1860 # ability to use several tags files at once, so there is probably no need
1861 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1862 # (if we felt like it) have this Makefile write a piece of elisp which
1863 # the user could load to tell emacs19 where all the TAGS files we just
1867 # with the gnu make, this is done automatically.
1869 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
) $(gcc_version_trigger
)
1870 $(SHELL
) .
/config.status
1873 # Support for building net releases
1875 # Files in devo used in any net release.
1876 # ChangeLog omitted because it may refer to files which are not in this
1877 # distribution (perhaps it would be better to include it anyway).
1878 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1879 config.guess config.if config.sub config move-if-change \
1880 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1881 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1882 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1883 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1885 # Files in devo/etc used in any net release.
1886 # ChangeLog omitted because it may refer to files which are not in this
1887 # distribution (perhaps it would be better to include it anyway).
1888 ETC_SUPPORT
= Makefile.in configure configure.in standards.texi \
1889 make-stds.texi standards.
info* configure.texi configure.
info* \
1890 configbuild.
* configdev.
*
1893 # When you use `make setup-dirs' or `make taz' you should always redefine
1895 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1897 # NOTE: No double quotes in the below. It is used within shell script
1899 VER
= ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1900 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1901 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1902 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1903 elif test -f $(TOOL)/version.in; then \
1904 head -1 $(TOOL)/version.in; \
1905 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1906 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1913 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1914 $(MAKE
) -f Makefile.in do-proto-toplev \
1915 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1916 MD5PROG
="$(MD5PROG)" \
1917 SUPPORT_FILES
="$(SUPPORT_FILES)"
1918 $(MAKE
) -f Makefile.in do-md5sum \
1919 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1920 MD5PROG
="$(MD5PROG)" \
1921 SUPPORT_FILES
="$(SUPPORT_FILES)"
1922 $(MAKE
) -f Makefile.in do-tar-bz2 \
1923 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1924 MD5PROG
="$(MD5PROG)" \
1925 SUPPORT_FILES
="$(SUPPORT_FILES)"
1928 gdb-taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1929 $(MAKE
) -f Makefile.in do-proto-toplev \
1930 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1931 MD5PROG
="$(MD5PROG)" \
1932 SUPPORT_FILES
="$(SUPPORT_FILES)"
1933 $(MAKE
) -f Makefile.in do-md5sum \
1934 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1935 MD5PROG
="$(MD5PROG)" \
1936 SUPPORT_FILES
="$(SUPPORT_FILES)"
1937 $(MAKE
) -f Makefile.in do-djunpack \
1938 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1939 MD5PROG
="$(MD5PROG)" \
1940 SUPPORT_FILES
="$(SUPPORT_FILES)"
1941 $(MAKE
) -f Makefile.in do-tar-bz2 \
1942 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1943 MD5PROG
="$(MD5PROG)" \
1944 SUPPORT_FILES
="$(SUPPORT_FILES)"
1946 .PHONY
: do-proto-toplev
1947 do-proto-toplev
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1948 echo
"==> Making $(PACKAGE)-$(VER)/"
1949 # Take out texinfo from a few places.
1950 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1951 -e
'/^ install-texinfo /d' \
1953 mv
-f tmp Makefile.in
1956 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1957 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) \
1958 ALL_GCC
="" ALL_GCC_C
="" ALL_GCC_CXX
="" \
1959 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1960 # Make links, and run "make diststuff" or "make info" when needed.
1961 rm -rf proto-toplev
; mkdir proto-toplev
1962 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1963 for d in
$$dirs ; do \
1964 if
[ -d
$$d ]; then \
1965 if
[ ! -f
$$d/Makefile
] ; then true
; \
1966 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1967 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1968 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1969 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1971 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1972 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1974 ln
-s ..
/$$d proto-toplev
/$$d ; \
1976 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1978 cd etc
&& $(MAKE
) info
1981 mkdir proto-toplev
/etc
1982 (cd proto-toplev
/etc
; \
1983 for i in
$(ETC_SUPPORT
); do \
1984 ln
-s ..
/..
/etc
/$$i .
; \
1987 # Take out texinfo from configurable dirs
1988 rm proto-toplev
/configure.in
1989 sed
-e
'/^host_tools=/s/texinfo //' \
1990 <configure.in
>proto-toplev
/configure.in
1992 mkdir proto-toplev
/texinfo
1993 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1994 if
test -r texinfo
/util
/tex3patch
; then \
1995 mkdir proto-toplev
/texinfo
/util
&& \
1996 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
1998 chmod
-R og
=u . || chmod og
=u
`find . -print`
2000 # Create .gmo files from .po files.
2001 for f in
`find . -name '*.po' -type f -print`; do \
2002 msgfmt
-o
`echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2005 -rm -f
$(PACKAGE
)-$(VER
)
2006 ln
-s proto-toplev
$(PACKAGE
)-$(VER
)
2010 echo
"==> Making $(PACKAGE)-$(VER).tar.bz2"
2011 -rm -f
$(PACKAGE
)-$(VER
).
tar.bz2
2012 find
$(PACKAGE
)-$(VER
) -follow
-name CVS
-prune
-o
-type f
-print \
2013 |
tar cTfh
- $(PACKAGE
)-$(VER
).
tar
2014 $(BZIPPROG
) -v
-9 $(PACKAGE
)-$(VER
).
tar
2018 echo
"==> Adding md5 checksum to top-level directory"
2019 cd proto-toplev
&& find
* -follow
-name CVS
-prune
-o
-type f
-print \
2020 | xargs
$(MD5PROG
) > ..
/md5.sum
2021 mv md5.sum proto-toplev
2025 echo
"==> Adding updated djunpack.bat to top-level directory"
2026 echo
- 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2027 sed
< djunpack.bat
> djunpack.new \
2028 -e
's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2029 mv djunpack.new djunpack.bat
2030 -rm -f proto-toplev
/djunpack.bat
2031 ln
-s ..
/djunpack.bat proto-toplev
/djunpack.bat
2033 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex
2034 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
2037 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes intl setup.com makefile.vms mkdep
2038 gas.
tar.bz2
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
2039 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2040 MD5PROG
="$(MD5PROG)" \
2041 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
2043 # The FSF "binutils" release includes gprof and ld.
2044 .PHONY
: binutils.
tar.bz2
2045 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof intl setup.com makefile.vms mkdep
2046 binutils.
tar.bz2
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
2047 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
2048 MD5PROG
="$(MD5PROG)" \
2049 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS)"
2051 .PHONY
: gas
+binutils.
tar.bz2
2052 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
2053 gas
+binutils.
tar.bz2
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
2054 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2055 MD5PROG
="$(MD5PROG)" \
2056 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS)"
2058 .PHONY
: libg
++.
tar.bz2
2059 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
2060 libg
++.
tar.bz2
: $(DIST_SUPPORT
) libg
++
2061 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
2062 MD5PROG
="$(MD5PROG)" \
2063 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
2065 GNATS_SUPPORT_DIRS
=include libiberty send-pr
2066 gnats.
tar.bz2
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
2067 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
2068 MD5PROG
="$(MD5PROG)" \
2069 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
2072 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils intl
2073 gdb.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2074 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb \
2075 MD5PROG
="$(MD5PROG)" \
2076 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS)"
2078 .PHONY
: dejagnu.
tar.bz2
2079 DEJAGNU_SUPPORT_DIRS
= tcl expect libiberty
2080 dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(DEJAGNU_SUPPORT_DIRS
) dejagnu
2081 $(MAKE
) -f Makefile.in taz TOOL
=dejagnu \
2082 MD5PROG
="$(MD5PROG)" \
2083 SUPPORT_FILES
="$(DEJAGNU_SUPPORT_DIRS)"
2085 .PHONY
: gdb
+dejagnu.
tar.bz2
2086 GDBD_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl expect dejagnu
2087 gdb
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(GDBD_SUPPORT_DIRS
) gdb
2088 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=gdb
+dejagnu \
2089 MD5PROG
="$(MD5PROG)" \
2090 SUPPORT_FILES
="$(GDBD_SUPPORT_DIRS)"
2092 .PHONY
: insight.
tar.bz2
2093 INSIGHT_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl tk itcl tix libgui
2094 insight.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2095 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=insight \
2096 MD5PROG
="$(MD5PROG)" \
2097 SUPPORT_FILES
="$(INSIGHT_SUPPORT_DIRS)"
2099 .PHONY
: insight
+dejagnu.
tar.bz2
2100 INSIGHTD_SUPPORT_DIRS
= $(INSIGHT_SUPPORT_DIRS
) expect dejagnu
2101 insight
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(INSIGHTD_SUPPORT_DIRS
) gdb
2102 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
="insight+dejagnu" \
2103 MD5PROG
="$(MD5PROG)" \
2104 SUPPORT_FILES
="$(INSIGHTD_SUPPORT_DIRS)"
2106 .PHONY
: newlib.
tar.bz2
2107 NEWLIB_SUPPORT_DIRS
=libgloss
2108 # taz configures for the sun4 target which won't configure newlib.
2109 # We need newlib configured so that the .info files are made.
2110 # Unfortunately, it is not enough to just configure newlib separately:
2111 # taz will build the .info files but since SUBDIRS won't contain newlib,
2112 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2113 # used in building the .info files, eg: *.def, *.ref).
2114 # The problem isn't solvable however without a lot of extra work because
2115 # target libraries are built in subdir $(target_alias) which gets nuked during
2116 # the make distclean. For now punt on the issue of shipping newlib info files
2117 # with newlib net releases and wait for a day when some native target (sun4?)
2118 # supports newlib (if only minimally).
2119 newlib.
tar.bz2
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
2120 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
2121 MD5PROG
="$(MD5PROG)" \
2122 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
2123 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2128 # end of Makefile.in