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)/share
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
48 INSTALL
= $${srcroot}/install.sh
-c
49 INSTALL_PROGRAM
= $(INSTALL
)
50 INSTALL_DATA
= $(INSTALL
) -m
644
51 INSTALL_XFORM
= $(INSTALL
) -t
='$(program_transform_name)'
53 INSTALL_DOSREL
= install-dosrel-fake
60 # Special variables passed down in EXTRA_GCC_FLAGS. They are defined
61 # here so that they can be overridden by Makefile fragments.
62 HOST_CC
= $(CC_FOR_BUILD
)
64 HOST_PREFIX_1
= loser-
66 # We don't specify -g -O because many compilers don't support -g -O,
67 # and/or -O is broken in and of itself.
70 CFLAGS_FOR_TARGET
= $(CFLAGS
)
71 LIBCFLAGS_FOR_TARGET
= $(CFLAGS_FOR_TARGET
)
75 # start-sanitize-chill
76 CHILLFLAGS
= $(CFLAGS
)
81 # Use -O2 to stress test the compiler.
83 LIBCXXFLAGS
= $(CXXFLAGS
) -fno-implicit-templates
84 CXXFLAGS_FOR_TARGET
= $(CXXFLAGS
)
85 LIBCXXFLAGS_FOR_TARGET
= $(CXXFLAGS_FOR_TARGET
) -fno-implicit-templates
92 # Not plain GZIP, since gzip looks there for extra command-line options.
95 # These values are substituted by configure.
99 # BISON: This line sed'ed to BISON = bison -y for FSF releases, don't remove.
100 BISON
= `if [ -f $$r/byacc/byacc ] ; \
101 then echo $$r/byacc/byacc ; \
102 else echo ${DEFAULT_YACC} ; \
105 LEX
= `if [ -f $$r/flex/flex ] ; \
106 then echo $$r/flex/flex ; \
107 else echo ${DEFAULT_LEX} ; fi`
109 M4
= `if [ -f $$r/m4/m4 ] ; \
110 then echo $$r/m4/m4 ; \
113 MAKEINFO
= `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
114 then echo $$r/texinfo/makeinfo/makeinfo ; \
115 else echo makeinfo ; fi`
117 # This just becomes part of the MAKEINFO definition passed down to
118 # sub-makes. It lets flags be given on the command line while still
119 # using the makeinfo from the object tree.
122 EXPECT
= `if [ -f $$r/expect/expect ] ; \
123 then echo $$r/expect/expect ; \
124 else echo expect ; fi`
126 RUNTEST
= `if [ -f $${srcroot}/dejagnu/runtest ] ; \
127 then echo $${srcroot}/dejagnu/runtest ; \
128 else echo runtest ; fi`
131 # compilers to use to create programs which must be run in the build
134 CXX_FOR_BUILD
= $(CXX
)
136 SUBDIRS
= "this is set via configure, don't edit this"
139 # This is set by the configure script to the list of directories which
140 # should be built using the target tools.
141 TARGET_CONFIGDIRS
= libiberty libgloss newlib libio librx libstdc
++ libg
++ winsup
143 # Target libraries are put under this directory:
144 # 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).
463 # This is a list of the check targets for all of the modules which are
464 # compiled using $(FLAGS_TO_PASS).
466 # The list is in two parts. The first lists those tools which
467 # are tested as part of the host's native tool-chain, and not
468 # tested in a cross configuration.
469 NATIVE_CHECK_MODULES
= \
473 CROSS_CHECK_MODULES
= \
519 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
521 # This is a list of the install targets for all of the modules which are
522 # compiled using $(FLAGS_TO_PASS).
573 # This is a list of the targets for all of the modules which are compiled
574 # using $(X11_FLAGS_TO_PASS).
585 # This is a list of the check targets for all of the modules which are
586 # compiled using $(X11_FLAGS_TO_PASS).
587 CHECK_X11_MODULES
= \
596 # This is a list of the install targets for all the modules which are
597 # compiled using $(X11_FLAGS_TO_PASS).
598 INSTALL_X11_MODULES
= \
608 # This is a list of the targets for all of the modules which are compiled
609 # using $(TARGET_FLAGS_TO_PASS).
610 ALL_TARGET_MODULES
= \
612 all-target-libstdc
++ \
617 all-target-libgloss \
618 all-target-libiberty \
621 # This is a list of the configure targets for all of the modules which
622 # are compiled using the target tools.
623 CONFIGURE_TARGET_MODULES
= \
624 configure-target-libio \
625 configure-target-libstdc
++ \
626 configure-target-librx \
627 configure-target-libg
++ \
628 configure-target-newlib \
629 configure-target-winsup \
630 configure-target-libgloss \
631 configure-target-libiberty \
632 configure-target-examples
634 # This is a list of the check targets for all of the modules which are
635 # compiled using $(TARGET_FLAGS_TO_PASS).
636 CHECK_TARGET_MODULES
= \
638 check-target-libstdc
++ \
639 check-target-libg
++ \
640 check-target-newlib \
641 check-target-winsup \
642 check-target-libiberty
644 # This is a list of the install targets for all of the modules which are
645 # compiled using $(TARGET_FLAGS_TO_PASS).
646 INSTALL_TARGET_MODULES
= \
647 install-target-libio \
648 install-target-libstdc
++ \
649 install-target-libg
++ \
650 install-target-newlib \
651 install-target-winsup \
652 install-target-libgloss \
653 install-target-libiberty
655 # This is a list of the targets for which we can do a clean-{target}.
707 # All of the target modules that can be cleaned
708 CLEAN_TARGET_MODULES
= \
710 clean-target-libstdc
++ \
712 clean-target-libg
++ \
713 clean-target-newlib \
714 clean-target-winsup \
715 clean-target-libgloss \
716 clean-target-libiberty \
717 clean-target-examples
719 # All of the x11 modules that can be cleaned
720 CLEAN_X11_MODULES
= \
730 # The first rule in the file had better be this one. Don't put any above it.
734 # The target built for a native build.
738 $(ALL_TARGET_MODULES
) \
742 # Do a target for all the subdirectories. A ``make do-X'' will do a
743 # ``make X'' in all subdirectories (because, in general, there is a
744 # dependency (below) of X upon do-X, a ``make X'' will also do this,
745 # but it may do additional work as well).
746 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
747 # because it is so large that it can easily overflow the command line
748 # length limit on some systems.
757 do-maintainer-clean \
761 @target
=`echo $@ | sed -e 's/^do-//'`; \
763 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
765 for i in
$(SUBDIRS
) -dummy-
; do \
766 if
[ -f .
/$$i/Makefile
]; then \
769 for flag in
$(EXTRA_GCC_FLAGS
); do \
770 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
774 for flag in
$(EXTRA_HOST_FLAGS
); do \
775 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
779 export AR AS CC CXX NM RANLIB DLLTOOL
; \
781 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
782 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
783 "RANLIB=$${RANLIB}" \
784 "DLLTOOL=$${DLLTOOL}" \
786 then true
; else exit
1; fi
; \
789 @target
=`echo $@ | sed -e 's/^do-//'`; \
791 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
793 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
794 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
795 for flag in
$(EXTRA_TARGET_FLAGS
); do \
796 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
798 export AR AS CC CXX NM RANLIB DLLTOOL
; \
799 if
(cd
$(TARGET_SUBDIR
)/$$i; \
800 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
801 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
802 "RANLIB=$${RANLIB}" \
803 "DLLTOOL=$${DLLTOOL}" \
805 then true
; else exit
1; fi
; \
809 # Here are the targets which correspond to the do-X targets.
811 .PHONY
: info installcheck dvi install-info
812 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
813 .PHONY
: local-clean local-distclean local-maintainer-clean
815 installcheck: do-installcheck
818 install-info
: do-install-info
dir.
info
819 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
820 if
[ -f
dir.
info ] ; then \
821 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
825 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
828 -rm -f Makefile config.status
829 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
830 rm -rf
$(TARGET_SUBDIR
); \
833 local-maintainer-clean
:
834 @echo
"This command is intended for maintainers to use;"
835 @echo
"it deletes files that may require special tools to rebuild."
837 clean: do-clean local-clean
838 mostlyclean: do-mostlyclean local-clean
839 distclean: do-distclean local-clean local-distclean
840 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
841 maintainer-clean
: local-distclean
842 realclean: maintainer-clean
844 # This rule is used to clean specific modules.
845 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
846 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
847 @
dir=`echo $@ | sed -e 's/clean-//'`; \
848 if
[ -f .
/$${dir}/Makefile
] ; then \
850 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
852 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
857 .PHONY
: $(CLEAN_TARGET_MODULES
)
858 $(CLEAN_TARGET_MODULES
):
859 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
860 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
862 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
864 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
869 clean-target
: $(CLEAN_TARGET_MODULES
)
874 check: $(CHECK_MODULES
) \
875 $(CHECK_TARGET_MODULES
) \
876 $(CHECK_X11_MODULES
) \
879 # Installation targets.
881 .PHONY
: install uninstall source-vault binary-vault vault-install
882 install: $(INSTALL_TARGET
)
885 @echo
"the uninstall target is not supported in this tree"
888 $(MAKE
) -f .
/release
/Build-A-Release \
889 host
=$(host_alias
) source-vault
892 $(MAKE
) -f .
/release
/Build-A-Release \
893 host
=$(host_alias
) target
=$(target_alias
)
896 @if
[ -f .
/release
/vault-install
] ; then \
897 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
903 install.
all: install-no-fixedincludes
904 @if
[ -f .
/gcc
/Makefile
] ; then \
905 r
=`pwd` ; export r
; \
908 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
913 # inet-install is used because the I*Net wants DejaGNU installed but
916 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//'`" install
918 # install-no-fixedincludes is used because Cygnus can not distribute
919 # the fixed header files.
920 .PHONY
: install-no-fixedincludes
921 install-no-fixedincludes
: \
924 $(INSTALL_TARGET_MODULES
) \
925 $(INSTALL_X11_MODULES
) \
928 # Install the gcc headers files, but not the fixed include files,
929 # which Cygnus is not allowed to distribute. This rule is very
930 # dependent on the workings of the gcc Makefile.in.
931 .PHONY
: gcc-no-fixedincludes
932 gcc-no-fixedincludes
:
933 @if
[ -f .
/gcc
/Makefile
]; then \
934 rm -rf gcc
/tmp-include
; \
935 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
937 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
938 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
939 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
941 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
944 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
945 rm -rf gcc
/include; \
946 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
949 # This rule is used to build the modules which use FLAGS_TO_PASS. To
950 # build a target all-X means to cd to X and make all.
952 # all-gui, and all-libproc are handled specially because
953 # they are still experimental, and if they fail to build, that
954 # shouldn't stop "make all".
955 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
956 $(ALL_MODULES
) all-gui all-libproc
:
957 @
dir=`echo $@ | sed -e 's/all-//'`; \
958 if
[ -f .
/$${dir}/Makefile
] ; then \
960 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
962 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
967 # These rules are used to check the modules which use FLAGS_TO_PASS.
968 # To build a target check-X means to cd to X and make check. Some
969 # modules are only tested in a native toolchain.
971 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
972 $(NATIVE_CHECK_MODULES
):
973 @if
[ "$(host_canonical)" = "$(target_canonical)" ] ; then \
974 dir=`echo $@ | sed -e 's/check-//'`; \
975 if
[ -f .
/$${dir}/Makefile
] ; then \
977 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
979 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
985 $(CROSS_CHECK_MODULES
):
986 @
dir=`echo $@ | sed -e 's/check-//'`; \
987 if
[ -f .
/$${dir}/Makefile
] ; then \
989 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
991 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
996 # This rule is used to install the modules which use FLAGS_TO_PASS.
997 # To build a target install-X means to cd to X and make install.
998 .PHONY
: $(INSTALL_MODULES
)
999 $(INSTALL_MODULES
): install-dirs
1000 @
dir=`echo $@ | sed -e 's/install-//'`; \
1001 if
[ -f .
/$${dir}/Makefile
] ; then \
1002 r
=`pwd`; export r
; \
1003 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1005 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1010 # This rule is used to configure the modules which are built with the
1012 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1013 $(CONFIGURE_TARGET_MODULES
):
1014 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1015 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1017 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1018 if
[ -d
$(srcdir)/$${dir} ]; then \
1019 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1020 r
=`pwd`; export r
; \
1021 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1023 AR
="$(AR_FOR_TARGET)"; export AR
; \
1024 AS
="$(AS_FOR_TARGET)"; export AS
; \
1025 CC
="$(CC_FOR_TARGET)"; export CC
; \
1026 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1027 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1028 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1029 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1030 LD
="$(LD_FOR_TARGET)"; export LD
; \
1031 NM
="$(NM_FOR_TARGET)"; export NM
; \
1032 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1033 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1034 cd
$(TARGET_SUBDIR
)/$${dir}; \
1037 topdir
=$(srcdir) ;; \
1039 case
"$(TARGET_SUBDIR)" in \
1040 .
) topdir
="../$(srcdir)" ;; \
1041 *) topdir
="../../$(srcdir)" ;; \
1044 if
[ "$(srcdir)" = "." ] ; then \
1045 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1046 if
$(SHELL
) $${srcroot}/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1047 if
[ -f Makefile
]; then \
1048 if
$(MAKE
) distclean; then \
1062 srcdiroption
="--srcdir=."; \
1065 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1066 libsrcdir
="$${srcroot}/$${dir}"; \
1068 if
[ -f
$${libsrcdir}/configure
] ; then \
1069 $(SHELL
) $${libsrcdir}/configure \
1070 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1071 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1073 $(SHELL
) $${srcroot}/configure \
1074 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1075 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1084 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1085 # To build a target all-X means to cd to X and make all.
1086 .PHONY
: $(ALL_TARGET_MODULES
)
1087 $(ALL_TARGET_MODULES
):
1088 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1089 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1090 r
=`pwd`; export r
; \
1091 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1093 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1098 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1099 # To build a target install-X means to cd to X and make install.
1100 .PHONY
: $(CHECK_TARGET_MODULES
)
1101 $(CHECK_TARGET_MODULES
):
1102 @
dir=`echo $@ | sed -e 's/check-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};$(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1112 # This rule is used to install the modules which use
1113 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1115 .PHONY
: $(INSTALL_TARGET_MODULES
)
1116 $(INSTALL_TARGET_MODULES
): install-dirs
1117 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1118 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1119 r
=`pwd`; export r
; \
1120 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1122 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1123 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1128 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1129 # To build a target all-X means to cd to X and make all.
1130 .PHONY
: $(ALL_X11_MODULES
)
1132 @
dir=`echo $@ | sed -e 's/all-//'`; \
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
) all); \
1143 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1144 # To build a target check-X means to cd to X and make all.
1145 .PHONY
: $(CHECK_X11_MODULES
)
1146 $(CHECK_X11_MODULES
):
1147 @
dir=`echo $@ | sed -e 's/check-//'`; \
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
) check); \
1158 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1159 # To build a target install-X means to cd to X and make install.
1160 .PHONY
: $(INSTALL_X11_MODULES
)
1161 $(INSTALL_X11_MODULES
):
1162 @
dir=`echo $@ | sed -e 's/install-//'`; \
1163 if
[ -f .
/$${dir}/Makefile
] ; then \
1164 r
=`pwd`; export r
; \
1165 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1168 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1173 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1176 @if
[ -f .
/gcc
/Makefile
] ; then \
1177 r
=`pwd`; export r
; \
1178 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1180 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1185 .PHONY
: all-bootstrap
1187 @if
[ -f .
/gcc
/Makefile
] ; then \
1188 r
=`pwd`; export r
; \
1189 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1191 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) bootstrap
); \
1198 @if
[ -f .
/gcc
/Makefile
] ; then \
1199 r
=`pwd`; export r
; \
1200 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1202 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1209 @if
[ -f .
/gcc
/Makefile
] ; then \
1210 r
=`pwd`; export r
; \
1211 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1213 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1219 # EXPERIMENTAL STUFF
1220 # This rule is used to install the modules which use FLAGS_TO_PASS.
1221 # To build a target install-X means to cd to X and make install.
1222 .PHONY
: install-dosrel
1223 install-dosrel
: install-dirs
info
1224 @
dir=`echo $@ | sed -e 's/install-//'`; \
1225 if
[ -f .
/$${dir}/Makefile
] ; then \
1226 r
=`pwd`; export r
; \
1227 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1229 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1234 install-dosrel-fake
:
1237 # This is a list of inter-dependencies among modules.
1239 all-autoconf
: all-m4
1242 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-byacc
1245 all-dejagnu
: all-tcl all-expect all-tk
1246 all-diff
: all-libiberty
1248 all-emacs19
: all-byacc
1250 configure-target-examples
: $(ALL_GCC
)
1251 all-target-examples
: configure-target-examples
1252 all-expect
: all-tcl all-tk
1253 all-fileutils
: all-libiberty
1255 all-flex
: all-libiberty all-byacc
1256 all-gas
: all-libiberty all-opcodes all-bfd
1260 all-gcc
: all-libiberty all-byacc all-binutils all-gas all-ld
1261 all-bootstrap
: all-libiberty all-byacc all-binutils all-gas all-ld
1262 GDB_TK
= all-tk all-tcl
1263 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1264 all-gprof
: all-libiberty all-bfd all-opcodes
1265 all-grep
: all-libiberty
1266 all-grez
: all-libiberty all-bfd all-opcodes
1267 all-gui
: all-gdb all-libproc all-target-librx
1269 all-gzip
: all-libiberty
1270 all-hello
: all-libiberty
1272 all-inet
: all-tcl all-send-pr all-perl
1273 all-ispell
: all-emacs19
1274 all-ld
: all-libiberty all-bfd all-opcodes all-byacc all-flex
1275 configure-target-libg
++: $(ALL_GCC
) configure-target-librx
1276 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
++
1277 configure-target-libgloss
: $(ALL_GCC
)
1278 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1279 configure-target-libio
: $(ALL_GCC
)
1280 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1282 configure-target-librx
: $(ALL_GCC
) configure-target-newlib
1283 all-target-librx
: configure-target-librx
1284 configure-target-libstdc
++: $(ALL_GCC
)
1285 all-target-libstdc
++: configure-target-libstdc
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1286 all-m4
: all-libiberty
1287 all-make
: all-libiberty
1289 configure-target-newlib
: $(ALL_GCC
)
1290 all-target-newlib
: configure-target-newlib all-binutils all-gas all-gcc
1291 all-opcodes
: all-bfd all-libiberty
1292 all-patch
: all-libiberty
1294 all-prms
: all-libiberty
1297 all-recode
: all-libiberty
1298 all-sed
: all-libiberty
1299 all-send-pr
: all-prms
1301 all-sim
: all-libiberty all-bfd all-opcodes
1302 all-tar
: all-libiberty
1304 all-tclX
: all-tcl all-tk
1306 all-texinfo
: all-libiberty
1308 all-tgas
: all-libiberty all-bfd all-opcodes
1311 all-target-winsup
: all-target-newlib all-target-libiberty configure-target-winsup
1312 configure-target-winsup
: configure-target-newlib
1313 all-uudecode
: all-libiberty
1314 configure-target-libiberty
: $(ALL_GCC
)
1315 all-target-libiberty
: configure-target-libiberty all-gcc all-ld all-target-newlib
1316 all-target
: $(ALL_TARGET_MODULES
)
1317 install-target
: $(INSTALL_TARGET_MODULES
)
1319 ### other supporting targets
1324 .PHONY
: install-dirs
1326 @for i in
$(MAKEDIRS
) ; do \
1327 echo Making
$$i...
; \
1328 parent
=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
1329 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1330 if
[ ! -d
$$i ] ; then \
1331 if mkdir
$$i ; then \
1342 dir.
info: do-install-info
1343 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1344 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1345 mv
-f
dir.
info.new
dir.
info ; \
1350 @echo
"Building a full distribution of this tree isn't done"
1351 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1355 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1356 # ability to use several tags files at once, so there is probably no need
1357 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1358 # (if we felt like it) have this Makefile write a piece of elisp which
1359 # the user could load to tell emacs19 where all the TAGS files we just
1363 # with the gnu make, this is done automatically.
1365 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
1366 $(SHELL
) .
/config.status
1369 # Support for building net releases
1371 # Files in devo used in any net release.
1372 # ChangeLog omitted because it may refer to files which are not in this
1373 # distribution (perhaps it would be better to include it anyway).
1374 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1375 config.guess config.sub config move-if-change \
1376 mpw-README mpw-build.in mpw-config.in mpw-configure \
1377 COPYING COPYING.LIB
install.sh config-ml.in symlink-tree
1379 # Files in devo/etc used in any net release.
1380 # ChangeLog omitted because it may refer to files which are not in this
1381 # distribution (perhaps it would be better to include it anyway).
1382 ETC_SUPPORT
= Makefile.in cfg-paper.texi configure.in configure.man \
1383 configure.texi standards.texi make-stds.texi \
1384 configure.
info* standards.
info* cfg-paper.
info*
1386 # When you use `make setup-dirs' or `make taz' you should always redefine
1388 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1389 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1390 DISTBISONFILES
= binutils
/Makefile.in gas
/Makefile.in gdb
/Makefile.in
1394 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) \
1395 texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1396 # Make sure "diststuff" files get built properly.
1397 for f in
$(DISTBISONFILES
) ; do \
1398 if
[ -r
$$f ]; then \
1399 sed
'/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp
; \
1403 # Take out texinfo from a few places; make simple BISON=bison line.
1404 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1405 -e
'/^ install-texinfo /d' \
1406 -e
'/^BISON = /,/^$$/d' \
1407 -e
'/^# BISON:/s/.*/BISON = bison -y/' \
1409 mv
-f tmp Makefile.in
1411 $(start-sanitize-Sanitize
)
1412 @if
[ -f .Sanitize
] ; then echo
"RUN Sanitize FIRST!" ; false
; fi
;
1413 $(end-sanitize-Sanitize
)
1415 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1416 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) ALL_GCC
="" \
1417 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1418 # Make links, and run "make diststuff" or "make info" when needed.
1419 rm -rf proto-toplev
; mkdir proto-toplev
1420 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1421 for d in
$$dirs ; do \
1422 if
[ -d
$$d ]; then \
1423 if
[ ! -f
$$d/Makefile
] ; then true
; \
1424 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1425 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1426 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1427 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1429 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1430 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1432 ln
-s ..
/$$d proto-toplev
/$$d ; \
1434 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1436 cd etc
; $(MAKE
) info
1439 mkdir proto-toplev
/etc
1440 (cd proto-toplev
/etc
; \
1441 for i in
$(ETC_SUPPORT
); do \
1442 ln
-s ..
/..
/etc
/$$i .
; \
1445 # Take out texinfo from configurable dirs
1446 rm proto-toplev
/configure.in
1447 sed
-e
'/^host_tools=/s/texinfo //' \
1448 <configure.in
>proto-toplev
/configure.in
1450 mkdir proto-toplev
/texinfo
1451 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1452 ln
-s ..
/..
/texinfo
/gpl.texinfo proto-toplev
/texinfo
/
1453 ln
-s ..
/..
/texinfo
/lgpl.texinfo proto-toplev
/texinfo
/
1454 if
test -r texinfo
/util
/tex3patch
; then \
1455 mkdir proto-toplev
/texinfo
/util
&& \
1456 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
1458 chmod og
=u
`find . -print`
1459 (VER
=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1460 echo
"==> Making $(TOOL)-$$VER.tar.gz"; \
1461 rm -f
$(TOOL
)-$$VER; ln
-s proto-toplev
$(TOOL
)-$$VER; \
1462 tar cfh
- $(TOOL
)-$$VER \
1463 |
$(GZIPPROG
) -v
-9 >$(TOOL
)-$$VER.
tar.gz
)
1465 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1466 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
1469 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes
1470 gas.
tar.gz
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
1471 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1472 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
1474 # The FSF "binutils" release includes gprof and ld.
1475 .PHONY
: binutils.
tar.gz
1476 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof
1477 binutils.
tar.gz
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
1478 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
1479 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1481 .PHONY
: gas
+binutils.
tar.gz
1482 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
1483 gas
+binutils.
tar.gz
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
1484 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1485 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1487 .PHONY
: libg
++.
tar.gz
1488 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
1489 libg
++.
tar.gz
: $(DIST_SUPPORT
) libg
++
1490 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
1491 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
1493 GNATS_SUPPORT_DIRS
=include libiberty send-pr
1494 gnats.
tar.gz
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
1495 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
1496 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
1499 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils
1500 GDBTK_SUPPORT_DIRS
= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1501 gdb.
tar.gz
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
1502 $(MAKE
) -f Makefile.in taz TOOL
=gdb \
1503 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1505 .PHONY
: newlib.
tar.gz
1506 NEWLIB_SUPPORT_DIRS
=libgloss
1507 # taz configures for the sun4 target which won't configure newlib.
1508 # We need newlib configured so that the .info files are made.
1509 # Unfortunately, it is not enough to just configure newlib separately:
1510 # taz will build the .info files but since SUBDIRS won't contain newlib,
1511 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1512 # used in building the .info files, eg: *.def, *.ref).
1513 # The problem isn't solvable however without a lot of extra work because
1514 # target libraries are built in subdir $(target_alias) which gets nuked during
1515 # the make distclean. For now punt on the issue of shipping newlib info files
1516 # with newlib net releases and wait for a day when some native target (sun4?)
1517 # supports newlib (if only minimally).
1518 newlib.
tar.gz
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
1519 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
1520 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
1521 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1526 # start-sanitize-chill
1527 ## This is ugly, but I don't want GNU make to put these variables in
1528 ## the environment. Older makes will see this as a set of targets
1529 ## with no dependencies and no actions.
1530 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET
:
1531 # end-sanitize-chill
1533 # end of Makefile.in