2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
5 # This file is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 exec_prefix = $(prefix)
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir
= $(exec_prefix)/$(target
)
29 program_transform_name
=
31 datadir = $(prefix)/lib
32 mandir = $(prefix)/man
33 man1dir = $(mandir)/man1
34 man2dir = $(mandir)/man2
35 man3dir = $(mandir)/man3
36 man4dir = $(mandir)/man4
37 man5dir = $(mandir)/man5
38 man6dir = $(mandir)/man6
39 man7dir = $(mandir)/man7
40 man8dir = $(mandir)/man8
41 man9dir = $(mandir)/man9
42 infodir = $(prefix)/info
43 includedir = $(prefix)/include
44 docdir
= $(datadir)/doc
49 INSTALL
= $${srcroot}/install.sh
-c
50 INSTALL_PROGRAM
= $(INSTALL
)
51 INSTALL_DATA
= $(INSTALL
) -m
644
52 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
54 INSTALL_DOSREL
= install-dosrel-fake
61 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
62 # here so that they can be overridden by Makefile fragments.
63 HOST_CC
= $(CC_FOR_BUILD
)
65 HOST_PREFIX_1
= loser-
67 # We don't specify -g -O because many compilers don't support -g -O,
68 # and/or -O is broken in and of itself.
71 CFLAGS_FOR_TARGET
= $(CFLAGS
)
72 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
76 # start-sanitize-chill
77 CHILLFLAGS
= $(CFLAGS
)
82 # Use -O2 to stress test the compiler.
84 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
85 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
86 LIBCXXFLAGS_FOR_TARGET
= $(CXXFLAGS_FOR_TARGET
) -fno-implicit-templates
93 # Not plain GZIP, since gzip looks there for extra command-line options.
96 # These values are substituted by configure.
100 # BISON: This line sed'ed to BISON = bison -y for FSF releases, don't remove.
101 BISON
= `if [ -f $$r/byacc/byacc ] ; \
102 then echo $$r/byacc/byacc ; \
103 else echo ${DEFAULT_YACC} ; \
106 LEX
= `if [ -f $$r/flex/flex ] ; \
107 then echo $$r/flex/flex ; \
108 else echo ${DEFAULT_LEX} ; fi`
110 M4
= `if [ -f $$r/m4/m4 ] ; \
111 then echo $$r/m4/m4 ; \
114 MAKEINFO
= `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
115 then echo $$r/texinfo/makeinfo/makeinfo ; \
116 else echo makeinfo ; fi`
118 # This just becomes part of the MAKEINFO definition passed down to
119 # sub-makes. It lets flags be given on the command line while still
120 # using the makeinfo from the object tree.
123 EXPECT
= `if [ -f $$r/expect/expect ] ; \
124 then echo $$r/expect/expect ; \
125 else echo expect ; fi`
127 RUNTEST
= `if [ -f $${srcroot}/dejagnu/runtest ] ; \
128 then echo $${srcroot}/dejagnu/runtest ; \
129 else echo runtest ; fi`
132 # compilers to use to create programs which must be run in the build
135 CXX_FOR_BUILD
= $(CXX
)
137 SUBDIRS
= "this is set via configure, don't edit this"
140 # This is set by the configure script to the list of directories which
141 # should be built using the target tools.
142 TARGET_CONFIGDIRS
= libiberty libgloss newlib libio librx libstdc
++ libg
++ winsup
144 # Target libraries are put under this directory:
145 TARGET_SUBDIR
= .
# Changed by configure to $(target_alias) if cross.
147 # This is set by the configure script to the arguments passed to configure.
150 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
154 # This is the name of the environment variable used for the path to
155 # the libraries. This may be changed by configure.in.
156 RPATH_ENVVAR
= LD_LIBRARY_PATH
158 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
159 REALLY_SET_LIB_PATH
= \
160 $(RPATH_ENVVAR
)=$$r/bfd
:$$r/opcodes
:$$$(RPATH_ENVVAR
); \
161 export $(RPATH_ENVVAR
);
164 INSTALL_TARGET
= install-dirs \
166 $(INSTALL_TARGET_MODULES
) \
167 $(INSTALL_X11_MODULES
) \
173 if [ -f $$r/gcc/Makefile ] ; then \
174 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
175 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
177 echo $$r/gcc/xgcc -B$$r/gcc/; \
180 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
183 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
187 # start-sanitize-chill
188 CHILL_FOR_TARGET
= ` \
189 if [ -f $$r/gcc/Makefile ] ; then \
190 echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
192 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
195 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
202 if [ -f $$r/gcc/Makefile ] ; then \
203 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
204 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
206 echo $$r/gcc/xgcc -B$$r/gcc/; \
209 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
212 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
217 if [ -f $$r/gas/as.new ] ; then \
218 echo $$r/gas/as.new ; \
220 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
223 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
228 if [ -f $$r/ld/ld.new ] ; then \
229 echo $$r/ld/ld.new ; \
231 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
234 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
238 DLLTOOL_FOR_TARGET
= ` \
239 if [ -f $$r/binutils/dlltool ] ; then \
240 echo $$r/binutils/dlltool ; \
242 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
245 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
250 if [ -f $$r/binutils/ar ] ; then \
251 echo $$r/binutils/ar ; \
253 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
256 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
260 RANLIB_FOR_TARGET
= ` \
261 if [ -f $$r/binutils/ranlib ] ; then \
262 echo $$r/binutils/ranlib ; \
264 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
267 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
272 if [ -f $$r/binutils/nm.new ] ; then \
273 echo $$r/binutils/nm.new ; \
275 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
278 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
282 #### host and target specific makefile fragments come in here.
285 # Flags to pass down to all sub-makes.
286 # Please keep these in alphabetical order.
287 BASE_FLAGS_TO_PASS
= \
288 "AR_FLAGS=$(AR_FLAGS)" \
289 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
290 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
292 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
293 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
295 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
296 $(start-sanitize-chill
)\
297 "CHILLFLAGS=$(CHILLFLAGS)" \
298 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
299 "CHILL_LIB=$(CHILL_LIB)" \
300 $(end-sanitize-chill
)\
301 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
302 "CXXFLAGS=$(CXXFLAGS)" \
303 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
304 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
305 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
306 "GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
307 "INSTALL=$(INSTALL)" \
308 "INSTALL_DATA=$(INSTALL_DATA)" \
309 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
310 "INSTALL_XFORM=$(INSTALL_XFORM)" \
311 "LDFLAGS=$(LDFLAGS)" \
313 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
314 "LIBCFLAGS=$(LIBCFLAGS)" \
315 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
316 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
317 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
320 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
321 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
322 "PICFLAG=$(PICFLAG)" \
323 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
324 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
327 "RUNTEST=$(RUNTEST)" \
328 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
330 "exec_prefix=$(exec_prefix)" \
334 # Flags to pass down to most sub-makes, in which we're building with
335 # the host environment.
336 # If any variables are added here, they must be added to do-*, below.
342 'DLLTOOL=$(DLLTOOL)' \
347 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
349 # Flags that are concerned with the location of the X11 include files
352 # NOTE: until the top-level is getting the values via autoconf, it only
353 # causes problems to have this top-level Makefile overriding the autoconf-set
354 # values in child directories. Only variables that don't conflict with
355 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
357 X11_FLAGS_TO_PASS
= \
358 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
359 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
361 # Flags to pass down to makes which are built with the target environment.
362 # The double $ decreases the length of the command line; the variables
363 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
364 # If any variables are added here, they must be added to do-*, below.
365 EXTRA_TARGET_FLAGS
= \
366 'AR=$$(AR_FOR_TARGET)' \
367 'AS=$$(AS_FOR_TARGET)' \
368 'CC=$$(CC_FOR_TARGET)' \
369 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
370 'CXX=$$(CXX_FOR_TARGET)' \
371 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
372 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
373 'LD=$$(LD_FOR_TARGET)' \
374 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
375 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
376 'NM=$$(NM_FOR_TARGET)' \
377 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
378 'RANLIB=$$(RANLIB_FOR_TARGET)'
380 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
382 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
383 # unfortunately needs the native compiler and the target ar and
385 # If any variables are added here, they must be added to do-*, below.
386 # The HOST_* variables are a special case, which are used for the gcc
387 # cross-building scheme.
389 'AR=$$(AR_FOR_TARGET)' \
393 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
394 'HOST_CC=$(CC_FOR_BUILD)' \
395 'HOST_PREFIX=$(HOST_PREFIX)' \
396 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
398 'RANLIB=$$(RANLIB_FOR_TARGET)' \
399 `if test x"$(LANGUAGES)" != x; then echo "LANGUAGES=$(LANGUAGES)"; fi` \
400 `if test x"$(STMP_FIXPROTO)" != x; then echo "STMP_FIXPROTO=$(STMP_FIXPROTO)"; fi` \
401 `if test x"$(LIMITS_H_TEST)" != x; then echo "LIMITS_H_TEST=$(LIMITS_H_TEST)"; fi` \
402 `if test x"$(LIBGCC1_TEST)" != x; then echo "LIBGCC1_TEST=$(LIBGCC1_TEST)"; fi` \
403 `if test x"$(LIBGCC2_CFLAGS)" != x; then echo "LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)"; fi` \
404 `if test x"$(LIBGCC2_INCLUDES)" != x; then echo "LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)"; fi` \
405 `if test x"$(ENQUIRE)" != x; then echo "ENQUIRE=$(ENQUIRE)"; fi` \
406 `if test x"$(BOOT_CFLAGS)" != x; then echo "BOOT_CFLAGS=$(BOOT_CFLAGS)"; fi`
408 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
410 # This is a list of the targets for all of the modules which are compiled
411 # using $(FLAGS_TO_PASS).
460 # This is a list of the check targets for all of the modules which are
461 # compiled using $(FLAGS_TO_PASS).
462 # This is a list of the check targets for all of the modules which are
463 # compiled using $(FLAGS_TO_PASS).
465 # The list is in two parts. The first lists those tools which
466 # are tested as part of the host's native tool-chain, and not
467 # tested in a cross configuration.
468 NATIVE_CHECK_MODULES
= \
472 CROSS_CHECK_MODULES
= \
515 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
517 # This is a list of the install targets for all of the modules which are
518 # compiled using $(FLAGS_TO_PASS).
566 # This is a list of the targets for all of the modules which are compiled
567 # using $(X11_FLAGS_TO_PASS).
578 # This is a list of the check targets for all of the modules which are
579 # compiled using $(X11_FLAGS_TO_PASS).
580 CHECK_X11_MODULES
= \
589 # This is a list of the install targets for all the modules which are
590 # compiled using $(X11_FLAGS_TO_PASS).
591 INSTALL_X11_MODULES
= \
601 # This is a list of the targets for all of the modules which are compiled
602 # using $(TARGET_FLAGS_TO_PASS).
603 ALL_TARGET_MODULES
= \
605 all-target-libstdc
++ \
610 all-target-libgloss \
611 all-target-libiberty \
614 # This is a list of the configure targets for all of the modules which
615 # are compiled using the target tools.
616 CONFIGURE_TARGET_MODULES
= \
617 configure-target-libio \
618 configure-target-libstdc
++ \
619 configure-target-librx \
620 configure-target-libg
++ \
621 configure-target-newlib \
622 configure-target-winsup \
623 configure-target-libgloss \
624 configure-target-libiberty \
625 configure-target-examples
627 # This is a list of the check targets for all of the modules which are
628 # compiled using $(TARGET_FLAGS_TO_PASS).
629 CHECK_TARGET_MODULES
= \
631 check-target-libstdc
++ \
632 check-target-libg
++ \
633 check-target-newlib \
634 check-target-winsup \
635 check-target-libiberty
637 # This is a list of the install targets for all of the modules which are
638 # compiled using $(TARGET_FLAGS_TO_PASS).
639 INSTALL_TARGET_MODULES
= \
640 install-target-libio \
641 install-target-libstdc
++ \
642 install-target-libg
++ \
643 install-target-newlib \
644 install-target-winsup \
645 install-target-libgloss \
646 install-target-libiberty
648 # This is a list of the targets for which we can do a clean-{target}.
697 # All of the target modules that can be cleaned
698 CLEAN_TARGET_MODULES
= \
700 clean-target-libstdc
++ \
702 clean-target-libg
++ \
703 clean-target-newlib \
704 clean-target-winsup \
705 clean-target-libgloss \
706 clean-target-libiberty \
707 clean-target-examples
709 # All of the x11 modules that can be cleaned
710 CLEAN_X11_MODULES
= \
720 # The first rule in the file had better be this one. Don't put any above it.
724 # The target built for a native build.
728 $(ALL_TARGET_MODULES
) \
732 # Do a target for all the subdirectories. A ``make do-X'' will do a
733 # ``make X'' in all subdirectories (because, in general, there is a
734 # dependency (below) of X upon do-X, a ``make X'' will also do this,
735 # but it may do additional work as well).
736 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
737 # because it is so large that it can easily overflow the command line
738 # length limit on some systems.
747 do-maintainer-clean \
751 @target
=`echo $@ | sed -e 's/^do-//'`; \
753 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
755 for i in
$(SUBDIRS
) -dummy-
; do \
756 if
[ -f .
/$$i/Makefile
]; then \
759 for flag in
$(EXTRA_GCC_FLAGS
); do \
760 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
764 for flag in
$(EXTRA_HOST_FLAGS
); do \
765 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
769 export AR AS CC CXX NM RANLIB DLLTOOL
; \
771 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
772 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
773 "RANLIB=$${RANLIB}" \
774 "DLLTOOL=$${DLLTOOL}" \
776 then true
; else exit
1; fi
; \
779 @target
=`echo $@ | sed -e 's/^do-//'`; \
781 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
783 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
784 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
785 for flag in
$(EXTRA_TARGET_FLAGS
); do \
786 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
788 export AR AS CC CXX NM RANLIB DLLTOOL
; \
789 if
(cd
$(TARGET_SUBDIR
)/$$i; \
790 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
791 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
792 "RANLIB=$${RANLIB}" \
793 "DLLTOOL=$${DLLTOOL}" \
795 then true
; else exit
1; fi
; \
799 # Here are the targets which correspond to the do-X targets.
801 .PHONY
: info installcheck dvi install-info
802 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
803 .PHONY
: local-clean local-distclean local-maintainer-clean
805 installcheck: do-installcheck
808 install-info
: do-install-info
dir.
info
809 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
810 if
[ -f
dir.
info ] ; then \
811 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
815 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
818 -rm -f Makefile config.status
819 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
820 rm -rf
$(TARGET_SUBDIR
); \
823 local-maintainer-clean
:
824 @echo
"This command is intended for maintainers to use;"
825 @echo
"it deletes files that may require special tools to rebuild."
827 clean: do-clean local-clean
828 mostlyclean: do-mostlyclean local-clean
829 distclean: do-distclean local-clean local-distclean
830 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
831 maintainer-clean
: local-distclean
832 realclean: maintainer-clean
834 # This rule is used to clean specific modules.
835 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
836 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
837 @
dir=`echo $@ | sed -e 's/clean-//'`; \
838 if
[ -f .
/$${dir}/Makefile
] ; then \
840 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
842 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
847 .PHONY
: $(CLEAN_TARGET_MODULES
)
848 $(CLEAN_TARGET_MODULES
):
849 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
850 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
852 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
854 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
859 clean-target
: $(CLEAN_TARGET_MODULES
)
864 check: $(CHECK_MODULES
) \
865 $(CHECK_TARGET_MODULES
) \
866 $(CHECK_X11_MODULES
) \
869 # Installation targets.
871 .PHONY
: install uninstall source-vault binary-vault vault-install
872 install: $(INSTALL_TARGET
)
875 @echo
"the uninstall target is not supported in this tree"
878 $(MAKE
) -f .
/release
/Build-A-Release \
879 host
=$(host_alias
) source-vault
882 $(MAKE
) -f .
/release
/Build-A-Release \
883 host
=$(host_alias
) target
=$(target_alias
)
886 @if
[ -f .
/release
/vault-install
] ; then \
887 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
893 install.
all: install-no-fixedincludes
894 @if
[ -f .
/gcc
/Makefile
] ; then \
895 r
=`pwd` ; export r
; \
898 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
903 # install-no-fixedincludes is used because Cygnus can not distribute
904 # the fixed header files.
905 .PHONY
: install-no-fixedincludes
906 install-no-fixedincludes
: \
909 $(INSTALL_TARGET_MODULES
) \
910 $(INSTALL_X11_MODULES
) \
913 # Install the gcc headers files, but not the fixed include files,
914 # which Cygnus is not allowed to distribute. This rule is very
915 # dependent on the workings of the gcc Makefile.in.
916 .PHONY
: gcc-no-fixedincludes
917 gcc-no-fixedincludes
:
918 @if
[ -f .
/gcc
/Makefile
]; then \
919 rm -rf gcc
/tmp-include
; \
920 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
922 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
923 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
924 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
926 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
929 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
930 rm -rf gcc
/include; \
931 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
934 # This rule is used to build the modules which use FLAGS_TO_PASS. To
935 # build a target all-X means to cd to X and make all.
937 # all-gui, and all-libproc are handled specially because
938 # they are still experimental, and if they fail to build, that
939 # shouldn't stop "make all".
940 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
941 $(ALL_MODULES
) all-gui all-libproc
:
942 @
dir=`echo $@ | sed -e 's/all-//'`; \
943 if
[ -f .
/$${dir}/Makefile
] ; then \
945 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
947 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
952 # These rules are used to check the modules which use FLAGS_TO_PASS.
953 # To build a target check-X means to cd to X and make check. Some
954 # modules are only tested in a native toolchain.
956 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
957 $(NATIVE_CHECK_MODULES
):
958 @if
[ "$(host_canonical)" = "$(target_canonical)" ] ; then \
959 dir=`echo $@ | sed -e 's/check-//'`; \
960 if
[ -f .
/$${dir}/Makefile
] ; then \
962 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
964 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
970 $(CROSS_CHECK_MODULES
):
971 @
dir=`echo $@ | sed -e 's/check-//'`; \
972 if
[ -f .
/$${dir}/Makefile
] ; then \
974 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
976 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
981 # This rule is used to install the modules which use FLAGS_TO_PASS.
982 # To build a target install-X means to cd to X and make install.
983 .PHONY
: $(INSTALL_MODULES
)
984 $(INSTALL_MODULES
): install-dirs
985 @
dir=`echo $@ | sed -e 's/install-//'`; \
986 if
[ -f .
/$${dir}/Makefile
] ; then \
988 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
990 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
995 # This rule is used to configure the modules which are built with the
997 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
998 $(CONFIGURE_TARGET_MODULES
):
999 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1000 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1002 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1003 if
[ -d
$(srcdir)/$${dir} ]; then \
1004 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1005 r
=`pwd`; export r
; \
1006 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1008 AR
="$(AR_FOR_TARGET)"; export AR
; \
1009 AS
="$(AS_FOR_TARGET)"; export AS
; \
1010 CC
="$(CC_FOR_TARGET)"; export CC
; \
1011 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1012 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1013 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1014 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1015 LD
="$(LD_FOR_TARGET)"; export LD
; \
1016 NM
="$(NM_FOR_TARGET)"; export NM
; \
1017 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1018 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1019 cd
$(TARGET_SUBDIR
)/$${dir}; \
1022 topdir
=$(srcdir) ;; \
1024 case
"$(TARGET_SUBDIR)" in \
1025 .
) topdir
="../$(srcdir)" ;; \
1026 *) topdir
="../../$(srcdir)" ;; \
1029 if
[ "$(srcdir)" = "." ] ; then \
1030 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1031 if
$(SHELL
) $${srcroot}/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1032 if
[ -f Makefile
]; then \
1033 if
$(MAKE
) distclean; then \
1047 srcdiroption
="--srcdir=."; \
1050 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1051 libsrcdir
="$${srcroot}/$${dir}"; \
1053 if
[ -f
$${libsrcdir}/configure
] ; then \
1054 $(SHELL
) $${libsrcdir}/configure \
1055 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1056 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1058 $(SHELL
) $${srcroot}/configure \
1059 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1060 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1069 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1070 # To build a target all-X means to cd to X and make all.
1071 .PHONY
: $(ALL_TARGET_MODULES
)
1072 $(ALL_TARGET_MODULES
):
1073 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1074 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1075 r
=`pwd`; export r
; \
1076 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1078 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1083 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1084 # To build a target install-X means to cd to X and make install.
1085 .PHONY
: $(CHECK_TARGET_MODULES
)
1086 $(CHECK_TARGET_MODULES
):
1087 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1088 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1089 r
=`pwd`; export r
; \
1090 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1092 (cd
$(TARGET_SUBDIR
)/$${dir};$(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1097 # This rule is used to install the modules which use
1098 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1100 .PHONY
: $(INSTALL_TARGET_MODULES
)
1101 $(INSTALL_TARGET_MODULES
): install-dirs
1102 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1103 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1104 r
=`pwd`; export r
; \
1105 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1107 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1108 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1113 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1114 # To build a target all-X means to cd to X and make all.
1115 .PHONY
: $(ALL_X11_MODULES
)
1117 @
dir=`echo $@ | sed -e 's/all-//'`; \
1118 if
[ -f .
/$${dir}/Makefile
] ; then \
1119 r
=`pwd`; export r
; \
1120 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1123 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1128 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1129 # To build a target check-X means to cd to X and make all.
1130 .PHONY
: $(CHECK_X11_MODULES
)
1131 $(CHECK_X11_MODULES
):
1132 @
dir=`echo $@ | sed -e 's/check-//'`; \
1133 if
[ -f .
/$${dir}/Makefile
] ; then \
1134 r
=`pwd`; export r
; \
1135 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1138 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1143 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1144 # To build a target install-X means to cd to X and make install.
1145 .PHONY
: $(INSTALL_X11_MODULES
)
1146 $(INSTALL_X11_MODULES
):
1147 @
dir=`echo $@ | sed -e 's/install-//'`; \
1148 if
[ -f .
/$${dir}/Makefile
] ; then \
1149 r
=`pwd`; export r
; \
1150 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1153 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1158 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1161 @if
[ -f .
/gcc
/Makefile
] ; then \
1162 r
=`pwd`; export r
; \
1163 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1165 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1170 .PHONY
: all-bootstrap
1172 @if
[ -f .
/gcc
/Makefile
] ; then \
1173 r
=`pwd`; export r
; \
1174 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1176 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) bootstrap
); \
1183 @if
[ -f .
/gcc
/Makefile
] ; then \
1184 r
=`pwd`; export r
; \
1185 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1187 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1194 @if
[ -f .
/gcc
/Makefile
] ; then \
1195 r
=`pwd`; export r
; \
1196 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1198 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1204 # EXPERIMENTAL STUFF
1205 # This rule is used to install the modules which use FLAGS_TO_PASS.
1206 # To build a target install-X means to cd to X and make install.
1207 .PHONY
: install-dosrel
1208 install-dosrel
: install-dirs
info
1209 @
dir=`echo $@ | sed -e 's/install-//'`; \
1210 if
[ -f .
/$${dir}/Makefile
] ; then \
1211 r
=`pwd`; export r
; \
1212 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1214 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1219 install-dosrel-fake
:
1222 # This is a list of inter-dependencies among modules.
1223 all-autoconf
: all-m4
1225 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-byacc
1228 all-dejagnu
: all-tcl all-expect all-tk
1229 all-diff
: all-libiberty
1231 all-emacs19
: all-byacc
1233 configure-target-examples
: $(ALL_GCC
)
1234 all-target-examples
: configure-target-examples
1235 all-expect
: all-tcl all-tk
1236 all-fileutils
: all-libiberty
1238 all-flex
: all-libiberty all-byacc
1239 all-gas
: all-libiberty all-opcodes all-bfd
1243 all-gcc
: all-libiberty all-byacc all-binutils all-gas all-ld
1244 all-bootstrap
: all-libiberty all-byacc all-binutils all-gas all-ld
1245 GDB_TK
= all-tk all-tcl
1246 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1247 all-gprof
: all-libiberty all-bfd all-opcodes
1248 all-grep
: all-libiberty
1249 all-grez
: all-libiberty all-bfd all-opcodes
1250 all-gui
: all-gdb all-libproc all-target-librx
1252 all-gzip
: all-libiberty
1253 all-hello
: all-libiberty
1255 all-ispell
: all-emacs19
1256 all-ld
: all-libiberty all-bfd all-opcodes all-byacc all-flex
1257 configure-target-libg
++: $(ALL_GCC
) configure-target-librx
1258 all-target-libg
++: configure-target-libg
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc
++
1259 configure-target-libgloss
: $(ALL_GCC
)
1260 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1261 configure-target-libio
: $(ALL_GCC
)
1262 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1264 configure-target-librx
: $(ALL_GCC
) configure-target-newlib
1265 all-target-librx
: configure-target-librx
1266 configure-target-libstdc
++: $(ALL_GCC
)
1267 all-target-libstdc
++: configure-target-libstdc
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1268 all-m4
: all-libiberty
1269 all-make
: all-libiberty
1271 configure-target-newlib
: $(ALL_GCC
)
1272 all-target-newlib
: configure-target-newlib all-binutils all-gas all-gcc
1273 all-opcodes
: all-bfd all-libiberty
1274 all-patch
: all-libiberty
1276 all-prms
: all-libiberty
1279 all-recode
: all-libiberty
1280 all-sed
: all-libiberty
1281 all-send-pr
: all-prms
1283 all-sim
: all-libiberty all-bfd all-opcodes
1284 all-tar
: all-libiberty
1286 all-tclX
: all-tcl all-tk
1288 all-texinfo
: all-libiberty
1290 all-tgas
: all-libiberty all-bfd all-opcodes
1293 all-target-winsup
: all-target-newlib all-target-libiberty configure-target-winsup
1294 configure-target-winsup
: configure-target-newlib
1295 all-uudecode
: all-libiberty
1296 configure-target-libiberty
: $(ALL_GCC
)
1297 all-target-libiberty
: configure-target-libiberty all-gcc all-ld all-target-newlib
1298 all-target
: $(ALL_TARGET_MODULES
)
1299 install-target
: $(INSTALL_TARGET_MODULES
)
1301 ### other supporting targets
1308 .PHONY
: install-dirs
1310 @for i in
$(MAKEDIRS
) ; do \
1311 echo Making
$$i...
; \
1312 parent
=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
1313 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1314 if
[ ! -d
$$i ] ; then \
1315 if mkdir
$$i ; then \
1326 dir.
info: do-install-info
1327 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1328 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1329 mv
-f
dir.
info.new
dir.
info ; \
1334 @echo
"Building a full distribution of this tree isn't done"
1335 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1339 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1340 # ability to use several tags files at once, so there is probably no need
1341 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1342 # (if we felt like it) have this Makefile write a piece of elisp which
1343 # the user could load to tell emacs19 where all the TAGS files we just
1347 # with the gnu make, this is done automatically.
1349 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
1350 $(SHELL
) .
/config.status
1353 # Support for building net releases
1355 # Files in devo used in any net release.
1356 # ChangeLog omitted because it may refer to files which are not in this
1357 # distribution (perhaps it would be better to include it anyway).
1358 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1359 config.guess config.sub config move-if-change \
1360 mpw-README mpw-build.in mpw-config.in mpw-configure \
1361 COPYING COPYING.LIB
install.sh config-ml.in symlink-tree
1363 # Files in devo/etc used in any net release.
1364 # ChangeLog omitted because it may refer to files which are not in this
1365 # distribution (perhaps it would be better to include it anyway).
1366 ETC_SUPPORT
= Makefile.in cfg-paper.texi configure.in configure.man \
1367 configure.texi standards.texi make-stds.texi \
1368 configure.
info* standards.
info* cfg-paper.
info*
1370 # When you use `make setup-dirs' or `make taz' you should always redefine
1372 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1373 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1374 DISTBISONFILES
= binutils
/Makefile.in gas
/Makefile.in gdb
/Makefile.in
1378 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) \
1379 texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1380 # Make sure "diststuff" files get built properly.
1381 for f in
$(DISTBISONFILES
) ; do \
1382 if
[ -r
$$f ]; then \
1383 sed
'/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp
; \
1387 # Take out texinfo from a few places; make simple BISON=bison line.
1388 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1389 -e
'/^ install-texinfo /d' \
1390 -e
'/^BISON = /,/^$$/d' \
1391 -e
'/^# BISON:/s/.*/BISON = bison -y/' \
1393 mv
-f tmp Makefile.in
1395 $(start-sanitize-Sanitize
)
1396 @if
[ -f .Sanitize
] ; then echo
"RUN Sanitize FIRST!" ; false
; fi
;
1397 $(end-sanitize-Sanitize
)
1399 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1400 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) ALL_GCC
="" \
1401 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1402 # Make links, and run "make diststuff" or "make info" when needed.
1403 rm -rf proto-toplev
; mkdir proto-toplev
1404 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1405 for d in
$$dirs ; do \
1406 if
[ -d
$$d ]; then \
1407 if
[ ! -f
$$d/Makefile
] ; then true
; \
1408 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1409 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1410 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1411 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1413 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1414 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1416 ln
-s ..
/$$d proto-toplev
/$$d ; \
1418 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1420 cd etc
; $(MAKE
) info
1423 mkdir proto-toplev
/etc
1424 (cd proto-toplev
/etc
; \
1425 for i in
$(ETC_SUPPORT
); do \
1426 ln
-s ..
/..
/etc
/$$i .
; \
1429 # Take out texinfo from configurable dirs
1430 rm proto-toplev
/configure.in
1431 sed
-e
'/^host_tools=/s/texinfo //' \
1432 <configure.in
>proto-toplev
/configure.in
1434 mkdir proto-toplev
/texinfo
1435 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1436 ln
-s ..
/..
/texinfo
/gpl.texinfo proto-toplev
/texinfo
/
1437 ln
-s ..
/..
/texinfo
/lgpl.texinfo proto-toplev
/texinfo
/
1438 ln
-s ..
/..
/texinfo
/tex3patch proto-toplev
/texinfo
/
1439 chmod og
=u
`find . -print`
1440 (VER
=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1441 echo
"==> Making $(TOOL)-$$VER.tar.gz"; \
1442 rm -f
$(TOOL
)-$$VER; ln
-s proto-toplev
$(TOOL
)-$$VER; \
1443 tar cfh
- $(TOOL
)-$$VER \
1444 |
$(GZIPPROG
) -v
-9 >$(TOOL
)-$$VER.
tar.gz
)
1446 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1447 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
1450 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes
1451 gas.
tar.gz
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
1452 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1453 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
1455 # The FSF "binutils" release includes gprof and ld.
1456 .PHONY
: binutils.
tar.gz
1457 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof
1458 binutils.
tar.gz
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
1459 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
1460 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1462 .PHONY
: gas
+binutils.
tar.gz
1463 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
1464 gas
+binutils.
tar.gz
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
1465 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1466 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1468 .PHONY
: libg
++.
tar.gz
1469 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
1470 libg
++.
tar.gz
: $(DIST_SUPPORT
) libg
++
1471 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
1472 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
1474 GNATS_SUPPORT_DIRS
=include libiberty send-pr
1475 gnats.
tar.gz
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
1476 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
1477 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
1480 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils
1481 GDBTK_SUPPORT_DIRS
= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1482 gdb.
tar.gz
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
1483 $(MAKE
) -f Makefile.in taz TOOL
=gdb \
1484 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1486 .PHONY
: newlib.
tar.gz
1487 NEWLIB_SUPPORT_DIRS
=libgloss
1488 # taz configures for the sun4 target which won't configure newlib.
1489 # We need newlib configured so that the .info files are made.
1490 # Unfortunately, it is not enough to just configure newlib separately:
1491 # taz will build the .info files but since SUBDIRS won't contain newlib,
1492 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1493 # used in building the .info files, eg: *.def, *.ref).
1494 # The problem isn't solvable however without a lot of extra work because
1495 # target libraries are built in subdir $(target_alias) which gets nuked during
1496 # the make distclean. For now punt on the issue of shipping newlib info files
1497 # with newlib net releases and wait for a day when some native target (sun4?)
1498 # supports newlib (if only minimally).
1499 newlib.
tar.gz
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
1500 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
1501 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
1502 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1507 # start-sanitize-chill
1508 ## This is ugly, but I don't want GNU make to put these variables in
1509 ## the environment. Older makes will see this as a set of targets
1510 ## with no dependencies and no actions.
1511 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET
:
1512 # end-sanitize-chill
1514 # end of Makefile.in