2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4 # 1999, 2000, 2001 Free Software Foundation
6 # This file is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 # Tell GNU make 3.79 not to run the top level in parallel. This
22 # prevents contention for $builddir/$target/config.cache, as well
23 # as minimizing scatter in file system caches.
24 NOTPARALLEL
= .NOTPARALLEL
30 exec_prefix = $(prefix)
32 bindir=${exec_prefix}/bin
33 sbindir
=${exec_prefix}/sbin
34 libexecdir
=${exec_prefix}/libexec
35 datadir=${prefix}/share
36 sysconfdir
=${prefix}/etc
37 sharedstatedir
=${prefix}/com
38 localstatedir
=${prefix}/var
39 libdir=${exec_prefix}/lib
40 includedir=${prefix}/include
41 oldincludedir=/usr
/include
42 infodir=${prefix}/info
44 gxx_include_dir
=${includedir}/g
++
46 tooldir
= $(exec_prefix)/$(target_alias
)
47 build_tooldir
= $(exec_prefix)/$(target_alias
)
49 program_transform_name
=
51 man1dir = $(mandir)/man1
52 man2dir = $(mandir)/man2
53 man3dir = $(mandir)/man3
54 man4dir = $(mandir)/man4
55 man5dir = $(mandir)/man5
56 man6dir = $(mandir)/man6
57 man7dir = $(mandir)/man7
58 man8dir = $(mandir)/man8
59 man9dir = $(mandir)/man9
60 infodir = $(prefix)/info
61 includedir = $(prefix)/include
62 # Directory in which the compiler finds executables, libraries, etc.
63 libsubdir
= $(libdir)/gcc-lib
/$(target_alias
)/$(gcc_version
)
68 # INSTALL_PROGRAM_ARGS is changed by configure.in to use -x for a
70 INSTALL_PROGRAM_ARGS
=
72 INSTALL
= $(SHELL
) $$s/install-sh
-c
73 INSTALL_PROGRAM
= $(INSTALL
) $(INSTALL_PROGRAM_ARGS
)
74 INSTALL_SCRIPT
= $(INSTALL
)
75 INSTALL_DATA
= $(INSTALL
) -m
644
77 INSTALL_DOSREL
= install-dosrel-fake
84 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
85 # here so that they can be overridden by Makefile fragments.
86 HOST_CC
= $(CC_FOR_BUILD
)
88 HOST_PREFIX_1
= loser-
90 # These flag values are normally overridden by the configure script.
96 CFLAGS_FOR_BUILD
= $(CFLAGS
)
97 CFLAGS_FOR_TARGET
= $(CFLAGS
)
99 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
103 CHILLFLAGS
= $(CFLAGS
)
107 # Use -O2 to stress test the compiler.
108 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
109 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
110 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 librx 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
:
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
=
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 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
366 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
367 "CXXFLAGS=$(CXXFLAGS)" \
368 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
369 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
370 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
371 "INSTALL=$(INSTALL)" \
372 "INSTALL_DATA=$(INSTALL_DATA)" \
373 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
374 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
375 "LDFLAGS=$(LDFLAGS)" \
377 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
378 "LIBCFLAGS=$(LIBCFLAGS)" \
379 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
380 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
381 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
384 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
385 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
386 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
387 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
390 "RUNTEST=$(RUNTEST)" \
391 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
392 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
393 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
396 "datadir=$(datadir)" \
397 "exec_prefix=$(exec_prefix)" \
398 "includedir=$(includedir)" \
399 "infodir=$(infodir)" \
401 "libexecdir=$(libexecdir)" \
402 "lispdir=$(lispdir)" \
403 "libstdcxx_incdir=$(libstdcxx_incdir)" \
404 "libsubdir=$(libsubdir)" \
405 "localstatedir=$(localstatedir)" \
407 "oldincludedir=$(oldincludedir)" \
409 "sbindir=$(sbindir)" \
410 "sharedstatedir=$(sharedstatedir)" \
411 "sysconfdir=$(sysconfdir)" \
412 "tooldir=$(tooldir)" \
413 "build_tooldir=$(build_tooldir)" \
414 "gxx_include_dir=$(gxx_include_dir)" \
415 "gcc_version=$(gcc_version)" \
416 "gcc_version_trigger=$(gcc_version_trigger)" \
417 "target_alias=$(target_alias)"
419 # For any flags above that may contain shell code that varies from one
420 # target library to another. When doing recursive invocations of the
421 # top-level Makefile, we don't want the outer make to evaluate them,
422 # so we pass these variables down unchanged. They must not contain
423 # single nor double quotes.
425 CXX_FOR_TARGET
='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)'
427 # Flags to pass down to most sub-makes, in which we're building with
428 # the host environment.
429 # If any variables are added here, they must be added to do-*, below.
435 'DLLTOOL=$(DLLTOOL)' \
438 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
441 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
443 # Flags that are concerned with the location of the X11 include files
446 # NOTE: until the top-level is getting the values via autoconf, it only
447 # causes problems to have this top-level Makefile overriding the autoconf-set
448 # values in child directories. Only variables that don't conflict with
449 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
451 X11_FLAGS_TO_PASS
= \
452 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
453 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
455 # Flags to pass down to makes which are built with the target environment.
456 # The double $ decreases the length of the command line; the variables
457 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
458 # If any variables are added here, they must be added to do-*, below.
459 EXTRA_TARGET_FLAGS
= \
460 'AR=$$(AR_FOR_TARGET)' \
461 'AS=$$(AS_FOR_TARGET)' \
462 'CC=$$(CC_FOR_TARGET)' \
463 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
464 'CXX=$$(CXX_FOR_TARGET)' \
465 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
466 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
467 'LD=$$(LD_FOR_TARGET)' \
468 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
469 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
470 'NM=$$(NM_FOR_TARGET)' \
471 'RANLIB=$$(RANLIB_FOR_TARGET)' \
472 'WINDRES=$$(WINDRES_FOR_TARGET)'
474 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
476 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
477 # unfortunately needs the native compiler and the target ar and
479 # If any variables are added here, they must be added to do-*, below.
480 # The HOST_* variables are a special case, which are used for the gcc
481 # cross-building scheme.
487 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
488 'HOST_CC=$(CC_FOR_BUILD)' \
489 'HOST_PREFIX=$(HOST_PREFIX)' \
490 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
492 "`echo 'RANLIB=$(RANLIB)' | sed -e s/.*=$$/XFOO=/`" \
493 'WINDRES=$$(WINDRES_FOR_TARGET)' \
494 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
495 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
496 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s/.*=$$/XFOO=/`" \
497 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s/.*=$$/XFOO=/`" \
498 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s/.*=$$/XFOO=/`" \
499 "`echo 'LIBGCC1_TEST=$(LIBGCC1_TEST)' | sed -e s/.*=$$/XFOO=/`" \
500 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
501 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
502 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s/.*=$$/XFOO=/`" \
503 "`echo 'ENQUIRE=$(ENQUIRE)' | sed -e s/.*=$$/XFOO=/`" \
504 "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s/.*=$$/XFOO=/`" \
505 "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s/.*=$$/XFOO=/`"
507 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
509 # This is a list of the targets for all of the modules which are compiled
510 # using the build machine's native compiler. Configure edits the second
511 # macro for build!=host builds.
512 ALL_BUILD_MODULES_LIST
= \
516 # This is a list of the configure targets for all of the modules which
517 # are compiled using the native tools.
518 CONFIGURE_BUILD_MODULES
= \
519 configure-build-libiberty
521 # This is a list of the targets for all of the modules which are compiled
522 # using $(FLAGS_TO_PASS).
592 $(EXTRA_TARGET_HOST_ALL_MODULES
)
594 # This is a list of the check targets for all of the modules which are
595 # compiled using $(FLAGS_TO_PASS).
597 # The list is in two parts. The first lists those tools which
598 # are tested as part of the host's native tool-chain, and not
599 # tested in a cross configuration.
600 NATIVE_CHECK_MODULES
= \
607 CROSS_CHECK_MODULES
= \
666 $(EXTRA_TARGET_HOST_CHECK_MODULES
)
668 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
670 # This is a list of the install targets for all of the modules which are
671 # compiled using $(FLAGS_TO_PASS).
672 # We put install-opcodes before install-binutils because the installed
673 # binutils might be on PATH, and they might need the shared opcodes
675 # We put install-tcl before install-itcl because itcl wants to run a
676 # program on installation which uses the Tcl libraries.
743 $(EXTRA_TARGET_HOST_INSTALL_MODULES
)
745 # This is a list of the targets for all of the modules which are compiled
746 # using $(X11_FLAGS_TO_PASS).
759 # This is a list of the check targets for all of the modules which are
760 # compiled using $(X11_FLAGS_TO_PASS).
761 CHECK_X11_MODULES
= \
771 # This is a list of the install targets for all the modules which are
772 # compiled using $(X11_FLAGS_TO_PASS).
773 INSTALL_X11_MODULES
= \
785 # This is a list of the targets for all of the modules which are compiled
786 # using $(TARGET_FLAGS_TO_PASS).
787 ALL_TARGET_MODULES
= \
788 all-target-libstdc
++-v3 \
792 all-target-libchill \
794 all-target-libtermcap \
796 all-target-libgloss \
797 all-target-libiberty \
799 all-target-examples \
804 all-target-boehm-gc \
805 all-target-qthreads \
809 # This is a list of the configure targets for all of the modules which
810 # are compiled using the target tools.
811 CONFIGURE_TARGET_MODULES
= \
812 configure-target-libstdc
++-v3 \
813 configure-target-librx \
814 configure-target-newlib \
815 configure-target-libf2c \
816 configure-target-libchill \
817 configure-target-libobjc \
818 configure-target-libtermcap \
819 configure-target-winsup \
820 configure-target-libgloss \
821 configure-target-libiberty \
822 configure-target-gperf \
823 configure-target-examples \
824 configure-target-libstub \
825 configure-target-libffi \
826 configure-target-libjava \
827 configure-target-zlib \
828 configure-target-boehm-gc \
829 configure-target-qthreads \
830 configure-target-bsp \
831 configure-target-cygmon
833 # This is a list of the check targets for all of the modules which are
834 # compiled using $(TARGET_FLAGS_TO_PASS).
835 CHECK_TARGET_MODULES
= \
836 check-target-libstdc
++-v3 \
837 check-target-newlib \
838 check-target-libf2c \
839 check-target-libchill \
840 check-target-libobjc \
841 check-target-winsup \
842 check-target-libiberty \
843 check-target-libffi \
844 check-target-libjava \
846 check-target-boehm-gc \
847 check-target-qthreads \
850 # This is a list of the install targets for all of the modules which are
851 # compiled using $(TARGET_FLAGS_TO_PASS).
852 INSTALL_TARGET_MODULES
= \
853 install-target-libstdc
++-v3 \
854 install-target-newlib \
855 install-target-libf2c \
856 install-target-libchill \
857 install-target-libobjc \
858 install-target-libtermcap \
859 install-target-winsup \
860 install-target-libgloss \
861 install-target-libiberty \
863 install-target-libjava \
864 install-target-zlib \
865 install-target-boehm-gc \
866 install-target-qthreads \
869 # This is a list of the targets for which we can do a clean-{target}.
939 # All of the target modules that can be cleaned
940 CLEAN_TARGET_MODULES
= \
941 clean-target-libstdc
++-v3 \
943 clean-target-newlib \
944 clean-target-libf2c \
945 clean-target-libchill \
946 clean-target-libobjc \
947 clean-target-winsup \
948 clean-target-libgloss \
949 clean-target-libiberty \
951 clean-target-examples \
952 clean-target-libstub \
953 clean-target-libffi \
954 clean-target-libjava \
956 clean-target-boehm-gc \
957 clean-target-qthreads \
961 # All of the x11 modules that can be cleaned
962 CLEAN_X11_MODULES
= \
973 # The target built for a native build.
976 $(ALL_BUILD_MODULES
) \
979 $(ALL_TARGET_MODULES
) \
982 # Do a target for all the subdirectories. A ``make do-X'' will do a
983 # ``make X'' in all subdirectories (because, in general, there is a
984 # dependency (below) of X upon do-X, a ``make X'' will also do this,
985 # but it may do additional work as well).
986 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
987 # because it is so large that it can easily overflow the command line
988 # length limit on some systems.
997 do-maintainer-clean \
1001 @target
=`echo $@ | sed -e 's/^do-//'`; \
1002 r
=`pwd`; export r
; \
1003 s
=`cd $(srcdir); pwd`; export s
; \
1005 for i in
$(SUBDIRS
) -dummy-
; do \
1006 if
[ -f .
/$$i/Makefile
]; then \
1009 for flag in
$(EXTRA_GCC_FLAGS
); do \
1010 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1014 for flag in
$(EXTRA_HOST_FLAGS
); do \
1015 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1020 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1022 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1025 then true
; else exit
1; fi
; \
1028 @target
=`echo $@ | sed -e 's/^do-//'`; \
1029 r
=`pwd`; export r
; \
1030 s
=`cd $(srcdir); pwd`; export s
; \
1032 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
1033 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
1034 for flag in
$(EXTRA_TARGET_FLAGS
); do \
1035 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
1037 if
(cd
$(TARGET_SUBDIR
)/$$i; \
1038 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
1039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
1040 "`echo \"RANLIB=$${RANLIB}\" | sed -e 's/.*=$$/XFOO=/'`" \
1041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
1043 then true
; else exit
1; fi
; \
1047 # Here are the targets which correspond to the do-X targets.
1049 .PHONY
: info installcheck dvi install-info
1050 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
1051 .PHONY
: local-clean local-distclean local-maintainer-clean
1053 installcheck: do-installcheck
1056 # Make sure makeinfo is built before we do a `make info'.
1057 do-info
: all-texinfo
1059 install-info
: do-install-info
dir.
info
1060 s
=`cd $(srcdir); pwd`; export s
; \
1061 if
[ -f
dir.
info ] ; then \
1062 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
1066 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E *.log
1069 -rm -f Makefile config.status config.cache mh-frag mt-frag
1070 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
1071 rm -rf
$(TARGET_SUBDIR
); \
1073 -rm -f texinfo
/po
/Makefile texinfo
/po
/Makefile.in texinfo
/info/Makefile
1074 -rm -f texinfo
/doc
/Makefile texinfo
/po
/POTFILES
1075 -rmdir texinfo
/doc texinfo
/info texinfo
/intl texinfo
/lib
2>/dev
/null
1076 -rmdir texinfo
/makeinfo texinfo
/po texinfo
/util
2>/dev
/null
1077 -rmdir fastjar gcc libiberty texinfo zlib
2>/dev
/null
1079 local-maintainer-clean
:
1080 @echo
"This command is intended for maintainers to use;"
1081 @echo
"it deletes files that may require special tools to rebuild."
1083 clean: do-clean local-clean
1084 mostlyclean: do-mostlyclean local-clean
1085 distclean: do-distclean local-clean local-distclean
1086 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
1087 maintainer-clean
: local-distclean
1088 realclean: maintainer-clean
1090 # This rule is used to clean specific modules.
1091 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
1092 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
1093 @
dir=`echo $@ | sed -e 's/clean-//'`; \
1094 if
[ -f .
/$${dir}/Makefile
] ; then \
1095 r
=`pwd`; export r
; \
1096 s
=`cd $(srcdir); pwd`; export s
; \
1098 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
1103 .PHONY
: $(CLEAN_TARGET_MODULES
)
1104 $(CLEAN_TARGET_MODULES
):
1105 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
1106 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1107 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1108 r
=`pwd`; export r
; \
1109 s
=`cd $(srcdir); pwd`; export s
; \
1111 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
1116 clean-target
: $(CLEAN_TARGET_MODULES
) clean-target-libgcc
1117 clean-target-libgcc
:
1118 test ! -d gcc
/libgcc || \
1119 (cd gcc
/libgcc
&& find .
-type d
-print) | \
1120 while read d
; do
rm -f gcc
/$$d/libgcc.a ||
: ; done
1125 .PHONY
: check do-check
1127 $(MAKE
) do-check NOTPARALLEL
=parallel-ok
1129 do-check
: $(CHECK_MODULES
) \
1130 $(CHECK_TARGET_MODULES
) \
1131 $(CHECK_X11_MODULES
) \
1134 # Automated reporting of test results.
1136 warning.log
: build.log
1137 $(srcdir)/contrib
/warn_summary build.log
> $@
1140 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1141 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1143 $(srcdir)/contrib
/test_summary
-t
>$@
1145 echo If you really want to send e-mail
, run .
/$@ now
1147 mail-report-with-warnings.log
: warning.log
1148 if
test x
'$(BOOT_CFLAGS)' != x
''; then \
1149 BOOT_CFLAGS
='$(BOOT_CFLAGS)'; export BOOT_CFLAGS
; \
1151 $(srcdir)/contrib
/test_summary
-t
-i warning.log
>$@
1153 echo If you really want to send e-mail
, run .
/$@ now
1155 # Installation targets.
1157 .PHONY
: install install-cross
uninstall source-vault binary-vault vault-install
1158 install: $(INSTALL_TARGET
)
1159 install-cross
: $(INSTALL_TARGET_CROSS
)
1162 @echo
"the uninstall target is not supported in this tree"
1165 $(MAKE
) -f .
/release
/Build-A-Release \
1166 host
=$(host_alias
) source-vault
1169 $(MAKE
) -f .
/release
/Build-A-Release \
1170 host
=$(host_alias
) target
=$(target_alias
)
1173 @if
[ -f .
/release
/vault-install
] ; then \
1174 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
1180 install.
all: install-no-fixedincludes
1181 @if
[ -f .
/gcc
/Makefile
] ; then \
1182 r
=`pwd` ; export r
; \
1185 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
1190 # inet-install is used because the I*Net wants DejaGNU installed but
1191 # not built. Similarly, gzip is built but not installed.
1193 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
1195 # install-no-fixedincludes is used because Cygnus can not distribute
1196 # the fixed header files.
1197 .PHONY
: install-no-fixedincludes
1198 install-no-fixedincludes
: \
1200 $(INSTALL_MODULES
) \
1201 $(INSTALL_TARGET_MODULES
) \
1202 $(INSTALL_X11_MODULES
) \
1203 gcc-no-fixedincludes
1205 # Install the gcc headers files, but not the fixed include files,
1206 # which Cygnus is not allowed to distribute. This rule is very
1207 # dependent on the workings of the gcc Makefile.in.
1208 .PHONY
: gcc-no-fixedincludes
1209 gcc-no-fixedincludes
:
1210 @if
[ -f .
/gcc
/Makefile
]; then \
1211 rm -rf gcc
/tmp-include
; \
1212 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
1213 mkdir gcc
/include; \
1214 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
1215 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
1216 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
1217 r
=`pwd`; export r
; \
1218 s
=`cd $(srcdir); pwd` ; export s
; \
1221 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1222 rm -rf gcc
/include; \
1223 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
1226 # This rule is used to build the modules which are built with the
1227 # build machine's native compiler.
1228 .PHONY
: $(ALL_BUILD_MODULES
)
1229 $(ALL_BUILD_MODULES
):
1230 dir=`echo $@ | sed -e 's/all-build-//'`; \
1231 if
[ -f .
/$${dir}/Makefile
] ; then \
1232 r
=`pwd`; export r
; \
1233 s
=`cd $(srcdir); pwd`; export s
; \
1234 (cd
$(BUILD_SUBDIR
)/$${dir} && $(MAKE
) all); \
1239 # This rule is used to configure the modules which are built with the
1241 .PHONY
: $(CONFIGURE_BUILD_MODULES
)
1242 $(CONFIGURE_BUILD_MODULES
):
1243 @
dir=`echo $@ | sed -e 's/configure-build-//'`; \
1244 if
[ ! -d
$(BUILD_SUBDIR
) ]; then \
1246 elif
[ -f
$(BUILD_SUBDIR
)/$${dir}/Makefile
] ; then \
1248 elif echo
" $(BUILD_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1249 if
[ -d
$(srcdir)/$${dir} ]; then \
1250 [ -d
$(BUILD_SUBDIR
)/$${dir} ] || mkdir
$(BUILD_SUBDIR
)/$${dir};\
1251 r
=`pwd`; export r
; \
1252 s
=`cd $(srcdir); pwd`; export s
; \
1253 AR
="$(AR_FOR_BUILD)"; export AR
; \
1254 AS
="$(AS_FOR_BUILD)"; export AS
; \
1255 CC
="$(CC_FOR_BUILD)"; export CC
; \
1256 CFLAGS
="$(CFLAGS_FOR_BUILD)"; export CFLAGS
; \
1257 CXX
="$(CXX_FOR_BUILD)"; export CXX
; \
1258 CXXFLAGS
="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS
; \
1259 GCJ
="$(GCJ_FOR_BUILD)"; export GCJ
; \
1260 DLLTOOL
="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL
; \
1261 LD
="$(LD_FOR_BUILD)"; export LD
; \
1262 LDFLAGS
="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS
; \
1263 NM
="$(NM_FOR_BUILD)"; export NM
; \
1264 RANLIB
="$(RANLIB_FOR_BUILD)"; export RANLIB
; \
1265 WINDRES
="$(WINDRES_FOR_BUILD)"; export WINDRES
; \
1266 echo Configuring in
$(BUILD_SUBDIR
)/$${dir}; \
1267 cd
"$(BUILD_SUBDIR)/$${dir}" || exit
1; \
1269 /* |
[A-Za-z
]:[\\/]*) \
1270 topdir
=$(srcdir) ;; \
1272 case
"$(BUILD_SUBDIR)" in \
1273 .
) topdir
="../$(srcdir)" ;; \
1274 *) topdir
="../../$(srcdir)" ;; \
1277 if
[ "$(srcdir)" = "." ] ; then \
1278 if
[ "$(BUILD_SUBDIR)" != "." ] ; then \
1279 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1280 if
[ -f Makefile
]; then \
1281 if
$(MAKE
) distclean; then \
1295 srcdiroption
="--srcdir=."; \
1298 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1299 libsrcdir
="$$s/$${dir}"; \
1301 if
[ -f
$${libsrcdir}/configure
] ; then \
1302 rm -f no-such-file skip-this-dir
; \
1303 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1304 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1305 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1307 rm -f no-such-file skip-this-dir
; \
1308 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1309 $(BUILD_CONFIGARGS
) $${srcdiroption} \
1310 --with-build-subdir
="$(BUILD_SUBDIR)"; \
1312 if
[ -f skip-this-dir
] ; then \
1314 rm -f skip-this-dir
; \
1315 cd ..
; rmdir
$${dir} || true
; \
1326 # This rule is used to build the modules which use FLAGS_TO_PASS. To
1327 # build a target all-X means to cd to X and make all.
1329 # all-gui, and all-libproc are handled specially because
1330 # they are still experimental, and if they fail to build, that
1331 # shouldn't stop "make all".
1332 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
1333 $(ALL_MODULES
) all-gui all-libproc
:
1334 @
dir=`echo $@ | sed -e 's/all-//'`; \
1335 if
[ -f .
/$${dir}/Makefile
] ; then \
1336 r
=`pwd`; export r
; \
1337 s
=`cd $(srcdir); pwd`; export s
; \
1339 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
1344 # These rules are used to check the modules which use FLAGS_TO_PASS.
1345 # To build a target check-X means to cd to X and make check. Some
1346 # modules are only tested in a native toolchain.
1348 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1349 $(NATIVE_CHECK_MODULES
):
1350 @if
[ '$(host_canonical)' = '$(target_canonical)' ] ; then \
1351 dir=`echo $@ | sed -e 's/check-//'`; \
1352 if
[ -f .
/$${dir}/Makefile
] ; then \
1353 r
=`pwd`; export r
; \
1354 s
=`cd $(srcdir); pwd`; export s
; \
1356 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1362 $(CROSS_CHECK_MODULES
):
1363 @
dir=`echo $@ | sed -e 's/check-//'`; \
1364 if
[ -f .
/$${dir}/Makefile
] ; then \
1365 r
=`pwd`; export r
; \
1366 s
=`cd $(srcdir); pwd`; export s
; \
1368 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1373 # This rule is used to install the modules which use FLAGS_TO_PASS.
1374 # To build a target install-X means to cd to X and make install.
1375 .PHONY
: $(INSTALL_MODULES
)
1376 $(INSTALL_MODULES
): installdirs
1377 @
dir=`echo $@ | sed -e 's/install-//'`; \
1378 if
[ -f .
/$${dir}/Makefile
] ; then \
1379 r
=`pwd`; export r
; \
1380 s
=`cd $(srcdir); pwd`; export s
; \
1382 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1387 # This rule is used to configure the modules which are built with the
1389 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1390 $(CONFIGURE_TARGET_MODULES
):
1391 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1392 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1393 r
=`pwd`; export r
; \
1394 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1395 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1396 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1397 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1398 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1400 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1401 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1402 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1405 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1408 fi
; exit
0 # break command into two pieces
1409 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1410 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1412 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1414 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1415 if
[ -d
$(srcdir)/$${dir} ]; then \
1416 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1417 r
=`pwd`; export r
; \
1418 s
=`cd $(srcdir); pwd`; export s
; \
1420 AR
="$(AR_FOR_TARGET)"; export AR
; \
1421 AS
="$(AS_FOR_TARGET)"; export AS
; \
1422 CC
="$(CC_FOR_TARGET)"; export CC
; \
1423 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1424 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1425 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1426 GCJ
="$(GCJ_FOR_TARGET)"; export GCJ
; \
1427 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1428 LD
="$(LD_FOR_TARGET)"; export LD
; \
1429 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1430 NM
="$(NM_FOR_TARGET)"; export NM
; \
1431 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1432 WINDRES
="$(WINDRES_FOR_TARGET)"; export WINDRES
; \
1433 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1434 cd
"$(TARGET_SUBDIR)/$${dir}" || exit
1; \
1436 /* |
[A-Za-z
]:[\\/]*) \
1437 topdir
=$(srcdir) ;; \
1439 case
"$(TARGET_SUBDIR)" in \
1440 .
) topdir
="../$(srcdir)" ;; \
1441 *) topdir
="../../$(srcdir)" ;; \
1444 if
[ "$(srcdir)" = "." ] ; then \
1445 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1446 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1447 if
[ -f Makefile
]; then \
1448 if
$(MAKE
) distclean; then \
1462 srcdiroption
="--srcdir=."; \
1465 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1466 libsrcdir
="$$s/$${dir}"; \
1468 if
[ -f
$${libsrcdir}/configure
] ; then \
1469 rm -f no-such-file skip-this-dir
; \
1470 CONFIG_SITE
=no-such-file
$(SHELL
) $${libsrcdir}/configure \
1471 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1472 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1474 rm -f no-such-file skip-this-dir
; \
1475 CONFIG_SITE
=no-such-file
$(SHELL
) $$s/configure \
1476 $(TARGET_CONFIGARGS
) $${srcdiroption} \
1477 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1479 if
[ -f skip-this-dir
] ; then \
1481 rm -f skip-this-dir
; \
1482 cd ..
; rmdir
$${dir} || true
; \
1493 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1494 # To build a target all-X means to cd to X and make all.
1495 .PHONY
: $(ALL_TARGET_MODULES
)
1496 $(ALL_TARGET_MODULES
):
1497 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1498 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1499 r
=`pwd`; export r
; \
1500 s
=`cd $(srcdir); pwd`; export s
; \
1502 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1503 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1508 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1509 # To build a target install-X means to cd to X and make install.
1510 .PHONY
: $(CHECK_TARGET_MODULES
)
1511 $(CHECK_TARGET_MODULES
):
1512 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1513 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1514 r
=`pwd`; export r
; \
1515 s
=`cd $(srcdir); pwd`; export s
; \
1517 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1518 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1523 # This rule is used to install the modules which use
1524 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1526 .PHONY
: $(INSTALL_TARGET_MODULES
)
1527 $(INSTALL_TARGET_MODULES
): installdirs
1528 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1529 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1530 r
=`pwd`; export r
; \
1531 s
=`cd $(srcdir); pwd`; export s
; \
1533 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1534 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1539 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1540 # To build a target all-X means to cd to X and make all.
1541 .PHONY
: $(ALL_X11_MODULES
)
1543 @
dir=`echo $@ | sed -e 's/all-//'`; \
1544 if
[ -f .
/$${dir}/Makefile
] ; then \
1545 r
=`pwd`; export r
; \
1546 s
=`cd $(srcdir); pwd`; export s
; \
1549 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1554 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1555 # To build a target check-X means to cd to X and make all.
1556 .PHONY
: $(CHECK_X11_MODULES
)
1557 $(CHECK_X11_MODULES
):
1558 @
dir=`echo $@ | sed -e 's/check-//'`; \
1559 if
[ -f .
/$${dir}/Makefile
] ; then \
1560 r
=`pwd`; export r
; \
1561 s
=`cd $(srcdir); pwd`; export s
; \
1564 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1569 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1570 # To build a target install-X means to cd to X and make install.
1571 .PHONY
: $(INSTALL_X11_MODULES
)
1572 $(INSTALL_X11_MODULES
): installdirs
1573 @
dir=`echo $@ | sed -e 's/install-//'`; \
1574 if
[ -f .
/$${dir}/Makefile
] ; then \
1575 r
=`pwd`; export r
; \
1576 s
=`cd $(srcdir); pwd`; export s
; \
1579 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1584 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1587 @if
[ -f .
/gcc
/Makefile
] ; then \
1588 r
=`pwd`; export r
; \
1589 s
=`cd $(srcdir); pwd`; export s
; \
1591 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1596 # Building GCC uses some tools for rebuilding "source" files
1597 # like texinfo, bison/byacc, etc. So we must depend on those.
1599 # While building GCC, it may be necessary to run various target
1600 # programs like the assembler, linker, etc. So we depend on
1603 # In theory, on an SMP all those dependencies can be resolved
1606 .PHONY
: bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
1607 bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean
: all-bootstrap
1608 @r
=`pwd`; export r
; \
1609 s
=`cd $(srcdir); pwd`; export s
; \
1611 echo
"Bootstrapping the compiler"; \
1612 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $@
1613 @r
=`pwd`; export r
; \
1614 s
=`cd $(srcdir); pwd`; export s
; \
1616 *bootstrap4-lean
) \
1617 msg
="Comparing stage3 and stage4 of the compiler"; \
1618 compare
=compare3-lean
;; \
1619 *bootstrap4
) msg
="Comparing stage3 and stage4 of the compiler"; \
1620 compare
=compare3
;; \
1621 *-lean
) msg
="Comparing stage2 and stage3 of the compiler"; \
1622 compare
=compare-lean
;; \
1623 * ) msg
="Comparing stage2 and stage3 of the compiler"; \
1624 compare
=compare
;; \
1628 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) $$compare
1629 @r
=`pwd`; export r
; \
1630 s
=`cd $(srcdir); pwd` ; export s
; \
1632 echo
"Building runtime libraries"; \
1633 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) all
1636 cross
: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
1637 @r
=`pwd`; export r
; \
1638 s
=`cd $(srcdir); pwd`; export s
; \
1640 echo
"Building the C and C++ compiler"; \
1641 cd gcc
&& $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++"
1642 @r
=`pwd`; export r
; \
1643 s
=`cd $(srcdir); pwd` ; export s
; \
1645 echo
"Building runtime libraries"; \
1646 $(MAKE
) $(BASE_FLAGS_TO_PASS
) $(RECURSE_FLAGS
) \
1647 LANGUAGES
="c c++" all
1651 @if
[ -f .
/gcc
/Makefile
] ; then \
1652 r
=`pwd`; export r
; \
1653 s
=`cd $(srcdir); pwd`; export s
; \
1655 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1662 @if
[ -f .
/gcc
/Makefile
] ; then \
1663 r
=`pwd`; export r
; \
1664 s
=`cd $(srcdir); pwd`; export s
; \
1666 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check-c
++); \
1667 $(MAKE
) check-target-libstdc
++-v3
; \
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
) install); \
1683 .PHONY
: install-gcc-cross
1685 @if
[ -f .
/gcc
/Makefile
] ; then \
1686 r
=`pwd`; export r
; \
1687 s
=`cd $(srcdir); pwd`; export s
; \
1689 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) LANGUAGES
="c c++" install); \
1693 # EXPERIMENTAL STUFF
1694 # This rule is used to install the modules which use FLAGS_TO_PASS.
1695 # To build a target install-X means to cd to X and make install.
1696 .PHONY
: install-dosrel
1697 install-dosrel
: installdirs info
1698 @
dir=`echo $@ | sed -e 's/install-//'`; \
1699 if
[ -f .
/$${dir}/Makefile
] ; then \
1700 r
=`pwd`; export r
; \
1701 s
=`cd $(srcdir); pwd`; export s
; \
1703 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1708 install-dosrel-fake
:
1711 ALL_GCC_C
= $(ALL_GCC
) all-target-newlib all-target-libgloss
1712 ALL_GCC_CXX
= $(ALL_GCC_C
) all-target-libstdc
++-v3
1714 # This is a list of inter-dependencies among modules.
1717 all-autoconf
: all-m4 all-texinfo
1718 all-automake
: all-m4 all-texinfo
1720 all-bfd
: all-libiberty all-intl
1721 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
1722 all-bison
: all-texinfo
1723 configure-target-boehm-gc
: $(ALL_GCC_C
) configure-target-qthreads
1724 all-target-boehm-gc
: configure-target-boehm-gc
1725 configure-target-bsp
: $(ALL_GCC_C
)
1726 all-target-bsp
: configure-target-bsp
1729 all-cgen
: all-libiberty
1731 configure-target-cygmon
: $(ALL_GCC_C
)
1732 all-target-cygmon
: configure-target-cygmon all-target-libiberty all-target-libstub all-target-bsp
1734 all-dejagnu
: all-tcl all-expect all-tk
1735 all-diff
: all-libiberty
1737 all-emacs19
: all-bison all-byacc
1739 configure-target-examples
: $(ALL_GCC_C
)
1740 all-target-examples
: configure-target-examples
1741 all-expect
: all-tcl all-tk
1742 all-fileutils
: all-libiberty
1745 all-flex
: all-libiberty all-bison all-byacc
1746 all-gas
: all-libiberty all-opcodes all-bfd all-intl
1749 all-gcc
: all-bison all-byacc all-binutils all-gas all-ld all-zlib
1750 all-bootstrap
: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
1751 GDB_TK
= all-tk all-tcl all-itcl all-tix all-libgui
1752 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1755 configure-target-gperf
: $(ALL_GCC_CXX
)
1756 all-target-gperf
: configure-target-gperf all-target-libiberty all-target-libstdc
++-v3
1757 all-gprof
: all-libiberty all-bfd all-opcodes all-intl
1758 all-grep
: all-libiberty
1759 all-grez
: all-libiberty all-bfd all-opcodes
1760 all-gui
: all-gdb all-libproc all-target-librx
1762 all-gzip
: all-libiberty
1763 all-hello
: all-libiberty
1765 all-inet
: all-tcl all-send-pr all-perl
1767 all-ispell
: all-emacs19
1768 all-itcl
: all-tcl all-tk all-tcl8.1 all-tk8.1
1769 all-ld
: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
1770 configure-target-libgloss
: $(ALL_GCC
)
1771 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1772 all-libgui
: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
1775 all-build-libiberty
: configure-build-libiberty
1777 configure-target-libffi
: $(ALL_GCC_C
)
1778 all-target-libffi
: configure-target-libffi
1779 configure-target-libjava
: $(ALL_GCC_C
) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
1780 all-target-libjava
: configure-target-libjava all-fastjar all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
1781 configure-target-librx
: $(ALL_GCC_C
)
1782 all-target-librx
: configure-target-librx
1783 configure-target-libstdc
++-v3
: $(ALL_GCC_C
)
1784 all-target-libstdc
++-v3
: configure-target-libstdc
++-v3 all-target-libiberty
1785 configure-target-libstub
: $(ALL_GCC_C
)
1786 all-target-libstub
: configure-target-libstub
1788 configure-target-libf2c
: $(ALL_GCC_C
)
1789 all-target-libf2c
: configure-target-libf2c all-target-libiberty
1790 configure-target-libchill
: $(ALL_GCC_C
)
1791 all-target-libchill
: configure-target-libchill all-target-libiberty
1792 configure-target-libobjc
: $(ALL_GCC_C
)
1793 all-target-libobjc
: configure-target-libobjc all-target-libiberty
1794 all-m4
: all-libiberty all-texinfo
1795 all-make
: all-libiberty
1797 configure-target-newlib
: $(ALL_GCC
)
1798 all-target-newlib
: configure-target-newlib
1799 configure-target-libtermcap
: $(ALL_GCC_C
)
1800 all-target-libtermcap
: configure-target-libtermcap
1801 all-opcodes
: all-bfd all-libiberty all-cgen
1802 all-patch
: all-libiberty
1804 all-prms
: all-libiberty
1805 configure-target-qthreads
: $(ALL_GCC_C
)
1806 all-target-qthreads
: configure-target-qthreads
1809 all-recode
: all-libiberty
1810 all-sed
: all-libiberty
1811 all-send-pr
: all-prms
1813 all-sid
: all-tcl all-tk
1814 all-sim
: all-libiberty all-bfd all-opcodes all-readline all-cgen
1815 all-snavigator
: all-tcl all-tk all-itcl all-tix all-db all-grep all-libgui
1816 all-tar
: all-libiberty
1819 all-tclX
: all-tcl all-tk
1821 all-tk8.1
: all-tcl8.1
1822 all-texinfo
: all-libiberty
1824 all-tgas
: all-libiberty all-bfd all-opcodes
1826 all-tix
: all-tcl all-tk all-tcl8.1 all-tk8.1
1828 configure-target-winsup
: $(ALL_GCC_C
)
1829 all-target-winsup
: all-target-libiberty all-target-libtermcap configure-target-winsup
1830 all-uudecode
: all-libiberty
1833 configure-target-zlib
: $(ALL_GCC_C
)
1834 all-target-zlib
: configure-target-zlib
1835 all-fastjar
: all-zlib all-libiberty
1836 configure-target-fastjar
: configure-target-zlib
1837 all-target-fastjar
: configure-target-fastjar all-target-zlib all-target-libiberty
1838 configure-target-libiberty
: $(ALL_GCC_C
)
1839 all-target-libiberty
: configure-target-libiberty
1840 all-target
: $(ALL_TARGET_MODULES
)
1841 install-target
: $(INSTALL_TARGET_MODULES
)
1842 install-gdb
: install-tcl install-tk install-itcl install-tix install-libgui
1843 install-sid
: install-tcl install-tk
1844 ### other supporting targets
1850 installdirs: mkinstalldirs
1851 $(SHELL
) $(srcdir)/mkinstalldirs
$(MAKEDIRS
)
1853 dir.
info: do-install-info
1854 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1855 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1856 mv
-f
dir.
info.new
dir.
info ; \
1861 @echo
"Building a full distribution of this tree isn't done"
1862 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1866 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1867 # ability to use several tags files at once, so there is probably no need
1868 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1869 # (if we felt like it) have this Makefile write a piece of elisp which
1870 # the user could load to tell emacs19 where all the TAGS files we just
1874 # with the gnu make, this is done automatically.
1876 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
) $(gcc_version_trigger
)
1877 $(SHELL
) .
/config.status
1880 # Support for building net releases
1882 # Files in devo used in any net release.
1883 # ChangeLog omitted because it may refer to files which are not in this
1884 # distribution (perhaps it would be better to include it anyway).
1885 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1886 config.guess config.if config.sub config move-if-change \
1887 mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
1888 COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
1889 mkinstalldirs ltconfig ltmain.sh missing ylwrap \
1890 libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
1892 # Files in devo/etc used in any net release.
1893 # ChangeLog omitted because it may refer to files which are not in this
1894 # distribution (perhaps it would be better to include it anyway).
1895 ETC_SUPPORT
= Makefile.in configure configure.in standards.texi \
1896 make-stds.texi standards.
info* configure.texi configure.
info* \
1897 configbuild.
* configdev.
*
1900 # When you use `make setup-dirs' or `make taz' you should always redefine
1902 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1904 # NOTE: No double quotes in the below. It is used within shell script
1906 VER
= ` if grep 'AM_INIT_AUTOMAKE.*BFD_VERSION' $(TOOL)/configure.in >/dev/null 2>&1; then \
1907 sed < bfd/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1908 elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \
1909 sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \
1910 elif test -f $(TOOL)/version.in; then \
1911 head -1 $(TOOL)/version.in; \
1912 elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \
1913 sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \
1920 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1921 $(MAKE
) -f Makefile.in do-proto-toplev \
1922 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1923 MD5PROG
="$(MD5PROG)" \
1924 SUPPORT_FILES
="$(SUPPORT_FILES)"
1925 $(MAKE
) -f Makefile.in do-md5sum \
1926 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1927 MD5PROG
="$(MD5PROG)" \
1928 SUPPORT_FILES
="$(SUPPORT_FILES)"
1929 $(MAKE
) -f Makefile.in do-tar \
1930 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1931 MD5PROG
="$(MD5PROG)" \
1932 SUPPORT_FILES
="$(SUPPORT_FILES)"
1933 $(MAKE
) -f Makefile.in do-bz2 \
1934 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1935 MD5PROG
="$(MD5PROG)" \
1936 SUPPORT_FILES
="$(SUPPORT_FILES)"
1939 gdb-tar
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1940 $(MAKE
) -f Makefile.in do-proto-toplev \
1941 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1942 MD5PROG
="$(MD5PROG)" \
1943 SUPPORT_FILES
="$(SUPPORT_FILES)"
1944 $(MAKE
) -f Makefile.in do-md5sum \
1945 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1946 MD5PROG
="$(MD5PROG)" \
1947 SUPPORT_FILES
="$(SUPPORT_FILES)"
1948 $(MAKE
) -f Makefile.in do-djunpack \
1949 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1950 MD5PROG
="$(MD5PROG)" \
1951 SUPPORT_FILES
="$(SUPPORT_FILES)"
1952 $(MAKE
) -f Makefile.in do-tar \
1953 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1954 MD5PROG
="$(MD5PROG)" \
1955 SUPPORT_FILES
="$(SUPPORT_FILES)"
1958 gdb-taz
: gdb-tar
$(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1959 $(MAKE
) -f Makefile.in gdb-tar \
1960 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1961 MD5PROG
="$(MD5PROG)" \
1962 SUPPORT_FILES
="$(SUPPORT_FILES)"
1963 $(MAKE
) -f Makefile.in do-bz2 \
1964 TOOL
=$(TOOL
) PACKAGE
="$(PACKAGE)" VER
="$(VER)" \
1965 MD5PROG
="$(MD5PROG)" \
1966 SUPPORT_FILES
="$(SUPPORT_FILES)"
1968 .PHONY
: do-proto-toplev
1969 do-proto-toplev
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) texinfo
/texinfo.
tex
1970 echo
"==> Making $(PACKAGE)-$(VER)/"
1971 # Take out texinfo from a few places.
1972 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1973 -e
'/^ install-texinfo /d' \
1975 mv
-f tmp Makefile.in
1978 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1979 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) \
1980 ALL_GCC
="" ALL_GCC_C
="" ALL_GCC_CXX
="" \
1981 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1982 # Make links, and run "make diststuff" or "make info" when needed.
1983 rm -rf proto-toplev
; mkdir proto-toplev
1984 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1985 for d in
$$dirs ; do \
1986 if
[ -d
$$d ]; then \
1987 if
[ ! -f
$$d/Makefile
] ; then true
; \
1988 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1989 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1990 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1991 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1993 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1994 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1996 ln
-s ..
/$$d proto-toplev
/$$d ; \
1998 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
2000 cd etc
&& $(MAKE
) info
2003 mkdir proto-toplev
/etc
2004 (cd proto-toplev
/etc
; \
2005 for i in
$(ETC_SUPPORT
); do \
2006 ln
-s ..
/..
/etc
/$$i .
; \
2009 # Take out texinfo from configurable dirs
2010 rm proto-toplev
/configure.in
2011 sed
-e
'/^host_tools=/s/texinfo //' \
2012 <configure.in
>proto-toplev
/configure.in
2014 mkdir proto-toplev
/texinfo
2015 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
2016 if
test -r texinfo
/util
/tex3patch
; then \
2017 mkdir proto-toplev
/texinfo
/util
&& \
2018 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
2020 chmod
-R og
=u . || chmod og
=u
`find . -print`
2022 # Create .gmo files from .po files.
2023 for f in
`find . -name '*.po' -type f -print`; do \
2024 msgfmt
-o
`echo $$f | sed -e 's/\.po$$/.gmo/'` $$f ; \
2027 -rm -f
$(PACKAGE
)-$(VER
)
2028 ln
-s proto-toplev
$(PACKAGE
)-$(VER
)
2032 echo
"==> Making $(PACKAGE)-$(VER).tar"
2033 -rm -f
$(PACKAGE
)-$(VER
).
tar
2034 find
$(PACKAGE
)-$(VER
) -follow
-name CVS
-prune
-o
-type f
-print \
2035 |
tar cTfh
- $(PACKAGE
)-$(VER
).
tar
2039 echo
"==> Bzipping $(PACKAGE)-$(VER).tar.bz2"
2040 -rm -f
$(PACKAGE
)-$(VER
).
tar.bz2
2041 $(BZIPPROG
) -v
-9 $(PACKAGE
)-$(VER
).
tar
2045 echo
"==> Adding md5 checksum to top-level directory"
2046 cd proto-toplev
&& find
* -follow
-name CVS
-prune
-o
-type f
-print \
2047 | xargs
$(MD5PROG
) > ..
/md5.sum
2048 mv md5.sum proto-toplev
2052 echo
"==> Adding updated djunpack.bat to top-level directory"
2053 echo
- 's /gdb-[0-9\.]*/gdb-'"$(VER)"'/'
2054 sed
< djunpack.bat
> djunpack.new \
2055 -e
's/gdb-[0-9][0-9\.]*/gdb-'"$(VER)"'/'
2056 mv djunpack.new djunpack.bat
2057 -rm -f proto-toplev
/djunpack.bat
2058 ln
-s ..
/djunpack.bat proto-toplev
/djunpack.bat
2060 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex
2061 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
2064 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes intl setup.com makefile.vms mkdep
2065 gas.
tar.bz2
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
2066 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2067 MD5PROG
="$(MD5PROG)" \
2068 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
2070 # The FSF "binutils" release includes gprof and ld.
2071 .PHONY
: binutils.
tar.bz2
2072 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof intl setup.com makefile.vms mkdep
2073 binutils.
tar.bz2
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
2074 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
2075 MD5PROG
="$(MD5PROG)" \
2076 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS)"
2078 .PHONY
: gas
+binutils.
tar.bz2
2079 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
2080 gas
+binutils.
tar.bz2
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
2081 $(MAKE
) -f Makefile.in taz TOOL
=gas \
2082 MD5PROG
="$(MD5PROG)" \
2083 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS)"
2085 GNATS_SUPPORT_DIRS
=include libiberty send-pr
2086 gnats.
tar.bz2
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
2087 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
2088 MD5PROG
="$(MD5PROG)" \
2089 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
2092 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils intl
2093 gdb.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2094 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb \
2095 MD5PROG
="$(MD5PROG)" \
2096 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS)"
2098 gdb.
tar: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2099 $(MAKE
) -f Makefile.in gdb-tar TOOL
=gdb \
2100 MD5PROG
="$(MD5PROG)" \
2101 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS)"
2103 DEJAGNU_SUPPORT_DIRS
= tcl expect libiberty
2104 .PHONY
: dejagnu.
tar.bz2
2105 dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(DEJAGNU_SUPPORT_DIRS
) dejagnu
2106 $(MAKE
) -f Makefile.in taz TOOL
=dejagnu \
2107 MD5PROG
="$(MD5PROG)" \
2108 SUPPORT_FILES
="$(DEJAGNU_SUPPORT_DIRS)"
2110 .PHONY
: gdb
+dejagnu.
tar.bz2
2111 GDBD_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl expect dejagnu
2112 gdb
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(GDBD_SUPPORT_DIRS
) gdb
2113 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=gdb
+dejagnu \
2114 MD5PROG
="$(MD5PROG)" \
2115 SUPPORT_FILES
="$(GDBD_SUPPORT_DIRS)"
2116 .PHONY
: gdb
+dejagnu.
tar
2117 gdb
+dejagnu.
tar: $(DIST_SUPPORT
) $(GDBD_SUPPORT_DIRS
) gdb
2118 $(MAKE
) -f Makefile.in gdb-tar TOOL
=gdb PACKAGE
=gdb
+dejagnu \
2119 MD5PROG
="$(MD5PROG)" \
2120 SUPPORT_FILES
="$(GDBD_SUPPORT_DIRS)"
2122 .PHONY
: insight.
tar.bz2
2123 INSIGHT_SUPPORT_DIRS
= $(GDB_SUPPORT_DIRS
) tcl tk itcl tix libgui
2124 insight.
tar.bz2
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2125 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
=insight \
2126 MD5PROG
="$(MD5PROG)" \
2127 SUPPORT_FILES
="$(INSIGHT_SUPPORT_DIRS)"
2129 insight.
tar: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
2130 $(MAKE
) -f Makefile.in gdb-tar TOOL
=gdb PACKAGE
=insight \
2131 MD5PROG
="$(MD5PROG)" \
2132 SUPPORT_FILES
="$(INSIGHT_SUPPORT_DIRS)"
2134 .PHONY
: insight
+dejagnu.
tar.bz2
2135 INSIGHTD_SUPPORT_DIRS
= $(INSIGHT_SUPPORT_DIRS
) expect dejagnu
2136 insight
+dejagnu.
tar.bz2
: $(DIST_SUPPORT
) $(INSIGHTD_SUPPORT_DIRS
) gdb
2137 $(MAKE
) -f Makefile.in gdb-taz TOOL
=gdb PACKAGE
="insight+dejagnu" \
2138 MD5PROG
="$(MD5PROG)" \
2139 SUPPORT_FILES
="$(INSIGHTD_SUPPORT_DIRS)"
2140 .PHONY
: insight
+dejagnu.
tar
2141 insight
+dejagnu.
tar: $(DIST_SUPPORT
) $(INSIGHTD_SUPPORT_DIRS
) gdb
2142 $(MAKE
) -f Makefile.in gdb-tar TOOL
=gdb PACKAGE
="insight+dejagnu" \
2143 MD5PROG
="$(MD5PROG)" \
2144 SUPPORT_FILES
="$(INSIGHTD_SUPPORT_DIRS)"
2146 .PHONY
: newlib.
tar.bz2
2147 NEWLIB_SUPPORT_DIRS
=libgloss
2148 # taz configures for the sun4 target which won't configure newlib.
2149 # We need newlib configured so that the .info files are made.
2150 # Unfortunately, it is not enough to just configure newlib separately:
2151 # taz will build the .info files but since SUBDIRS won't contain newlib,
2152 # distclean won't be run (leaving Makefile, config.status, and the tmp files
2153 # used in building the .info files, eg: *.def, *.ref).
2154 # The problem isn't solvable however without a lot of extra work because
2155 # target libraries are built in subdir $(target_alias) which gets nuked during
2156 # the make distclean. For now punt on the issue of shipping newlib info files
2157 # with newlib net releases and wait for a day when some native target (sun4?)
2158 # supports newlib (if only minimally).
2159 newlib.
tar.bz2
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
2160 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
2161 MD5PROG
="$(MD5PROG)" \
2162 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
2163 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
2168 # end of Makefile.in