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)" \
319 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
320 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
321 "PICFLAG=$(PICFLAG)" \
322 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
323 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
326 "RUNTEST=$(RUNTEST)" \
327 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
329 "exec_prefix=$(exec_prefix)" \
333 # Flags to pass down to most sub-makes, in which we're building with
334 # the host environment.
335 # If any variables are added here, they must be added to do-*, below.
341 'DLLTOOL=$(DLLTOOL)' \
346 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
348 # Flags that are concerned with the location of the X11 include files
351 # NOTE: until the top-level is getting the values via autoconf, it only
352 # causes problems to have this top-level Makefile overriding the autoconf-set
353 # values in child directories. Only variables that don't conflict with
354 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
356 X11_FLAGS_TO_PASS
= \
357 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
358 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
360 # Flags to pass down to makes which are built with the target environment.
361 # The double $ decreases the length of the command line; the variables
362 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
363 # If any variables are added here, they must be added to do-*, below.
364 EXTRA_TARGET_FLAGS
= \
365 'AR=$$(AR_FOR_TARGET)' \
366 'AS=$$(AS_FOR_TARGET)' \
367 'CC=$$(CC_FOR_TARGET)' \
368 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
369 'CXX=$$(CXX_FOR_TARGET)' \
370 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
371 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
372 'LD=$$(LD_FOR_TARGET)' \
373 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
374 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
375 'NM=$$(NM_FOR_TARGET)' \
376 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
377 'RANLIB=$$(RANLIB_FOR_TARGET)'
379 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
381 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
382 # unfortunately needs the native compiler and the target ar and
384 # If any variables are added here, they must be added to do-*, below.
385 # The HOST_* variables are a special case, which are used for the gcc
386 # cross-building scheme.
388 'AR=$$(AR_FOR_TARGET)' \
392 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
393 'HOST_CC=$(CC_FOR_BUILD)' \
394 'HOST_PREFIX=$(HOST_PREFIX)' \
395 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
397 'RANLIB=$$(RANLIB_FOR_TARGET)' \
398 `if test x"$(LANGUAGES)" != x; then echo "LANGUAGES=$(LANGUAGES)"; fi` \
399 `if test x"$(STMP_FIXPROTO)" != x; then echo "STMP_FIXPROTO=$(STMP_FIXPROTO)"; fi` \
400 `if test x"$(LIMITS_H_TEST)" != x; then echo "LIMITS_H_TEST=$(LIMITS_H_TEST)"; fi` \
401 `if test x"$(LIBGCC1_TEST)" != x; then echo "LIBGCC1_TEST=$(LIBGCC1_TEST)"; fi` \
402 `if test x"$(LIBGCC2_CFLAGS)" != x; then echo "LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)"; fi` \
403 `if test x"$(LIBGCC2_INCLUDES)" != x; then echo "LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)"; fi` \
404 `if test x"$(ENQUIRE)" != x; then echo "ENQUIRE=$(ENQUIRE)"; fi` \
405 `if test x"$(BOOT_CFLAGS)" != x; then echo "BOOT_CFLAGS=$(BOOT_CFLAGS)"; fi`
407 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
409 # This is a list of the targets for all of the modules which are compiled
410 # using $(FLAGS_TO_PASS).
459 # This is a list of the check targets for all of the modules which are
460 # compiled using $(FLAGS_TO_PASS).
461 # This is a list of the check targets for all of the modules which are
462 # compiled using $(FLAGS_TO_PASS).
464 # The list is in two parts. The first lists those tools which
465 # are tested as part of the host's native tool-chain, and not
466 # tested in a cross configuration.
467 NATIVE_CHECK_MODULES
= \
471 CROSS_CHECK_MODULES
= \
514 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
516 # This is a list of the install targets for all of the modules which are
517 # compiled using $(FLAGS_TO_PASS).
565 # This is a list of the targets for all of the modules which are compiled
566 # using $(X11_FLAGS_TO_PASS).
577 # This is a list of the check targets for all of the modules which are
578 # compiled using $(X11_FLAGS_TO_PASS).
579 CHECK_X11_MODULES
= \
588 # This is a list of the install targets for all the modules which are
589 # compiled using $(X11_FLAGS_TO_PASS).
590 INSTALL_X11_MODULES
= \
600 # This is a list of the targets for all of the modules which are compiled
601 # using $(TARGET_FLAGS_TO_PASS).
602 ALL_TARGET_MODULES
= \
604 all-target-libstdc
++ \
609 all-target-libgloss \
610 all-target-libiberty \
613 # This is a list of the configure targets for all of the modules which
614 # are compiled using the target tools.
615 CONFIGURE_TARGET_MODULES
= \
616 configure-target-libio \
617 configure-target-libstdc
++ \
618 configure-target-librx \
619 configure-target-libg
++ \
620 configure-target-newlib \
621 configure-target-winsup \
622 configure-target-libgloss \
623 configure-target-libiberty \
624 configure-target-examples
626 # This is a list of the check targets for all of the modules which are
627 # compiled using $(TARGET_FLAGS_TO_PASS).
628 CHECK_TARGET_MODULES
= \
630 check-target-libstdc
++ \
631 check-target-libg
++ \
632 check-target-newlib \
633 check-target-winsup \
634 check-target-libiberty
636 # This is a list of the install targets for all of the modules which are
637 # compiled using $(TARGET_FLAGS_TO_PASS).
638 INSTALL_TARGET_MODULES
= \
639 install-target-libio \
640 install-target-libstdc
++ \
641 install-target-libg
++ \
642 install-target-newlib \
643 install-target-winsup \
644 install-target-libgloss \
645 install-target-libiberty
647 # The first rule in the file had better be this one. Don't put any above it.
651 # The target built for a native build.
655 $(ALL_TARGET_MODULES
) \
659 # Do a target for all the subdirectories. A ``make do-X'' will do a
660 # ``make X'' in all subdirectories (because, in general, there is a
661 # dependency (below) of X upon do-X, a ``make X'' will also do this,
662 # but it may do additional work as well).
663 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
664 # because it is so large that it can easily overflow the command line
665 # length limit on some systems.
674 do-maintainer-clean \
678 @target
=`echo $@ | sed -e 's/^do-//'`; \
680 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
682 for i in
$(SUBDIRS
) -dummy-
; do \
683 if
[ -f .
/$$i/Makefile
]; then \
686 for flag in
$(EXTRA_GCC_FLAGS
); do \
687 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
691 for flag in
$(EXTRA_HOST_FLAGS
); do \
692 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
696 export AR AS CC CXX NM RANLIB DLLTOOL
; \
698 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
699 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
700 "RANLIB=$${RANLIB}" \
701 "DLLTOOL=$${DLLTOOL}" \
703 then true
; else exit
1; fi
; \
706 @target
=`echo $@ | sed -e 's/^do-//'`; \
708 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
710 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
711 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
712 for flag in
$(EXTRA_TARGET_FLAGS
); do \
713 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
715 export AR AS CC CXX NM RANLIB DLLTOOL
; \
716 if
(cd
$(TARGET_SUBDIR
)/$$i; \
717 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
718 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
719 "RANLIB=$${RANLIB}" \
720 "DLLTOOL=$${DLLTOOL}" \
722 then true
; else exit
1; fi
; \
726 # Here are the targets which correspond to the do-X targets.
728 .PHONY
: info installcheck dvi install-info
729 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
730 .PHONY
: local-clean local-distclean local-maintainer-clean
732 installcheck: do-installcheck
735 install-info
: do-install-info
dir.
info
736 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
737 if
[ -f
dir.
info ] ; then \
738 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
742 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
745 -rm -f Makefile config.status
746 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
747 rm -rf
$(TARGET_SUBDIR
); \
750 local-maintainer-clean
:
751 @echo
"This command is intended for maintainers to use;"
752 @echo
"it deletes files that may require special tools to rebuild."
754 clean: do-clean local-clean
755 mostlyclean: do-mostlyclean local-clean
756 distclean: do-distclean local-clean local-distclean
757 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
758 maintainer-clean
: local-distclean
759 realclean: maintainer-clean
764 check: $(CHECK_MODULES
) \
765 $(CHECK_TARGET_MODULES
) \
766 $(CHECK_X11_MODULES
) \
769 # Installation targets.
771 .PHONY
: install uninstall source-vault binary-vault vault-install
772 install: $(INSTALL_TARGET
)
775 @echo
"the uninstall target is not supported in this tree"
778 $(MAKE
) -f .
/release
/Build-A-Release \
779 host
=$(host_alias
) source-vault
782 $(MAKE
) -f .
/release
/Build-A-Release \
783 host
=$(host_alias
) target
=$(target_alias
)
786 @if
[ -f .
/release
/vault-install
] ; then \
787 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
793 install.
all: install-no-fixedincludes
794 @if
[ -f .
/gcc
/Makefile
] ; then \
795 r
=`pwd` ; export r
; \
798 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
803 # install-no-fixedincludes is used because Cygnus can not distribute
804 # the fixed header files.
805 .PHONY
: install-no-fixedincludes
806 install-no-fixedincludes
: \
809 $(INSTALL_TARGET_MODULES
) \
810 $(INSTALL_X11_MODULES
) \
813 # Install the gcc headers files, but not the fixed include files,
814 # which Cygnus is not allowed to distribute. This rule is very
815 # dependent on the workings of the gcc Makefile.in.
816 .PHONY
: gcc-no-fixedincludes
817 gcc-no-fixedincludes
:
818 @if
[ -f .
/gcc
/Makefile
]; then \
819 rm -rf gcc
/tmp-include
; \
820 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
822 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
823 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
824 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
826 srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
829 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
830 rm -rf gcc
/include; \
831 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
834 # This rule is used to build the modules which use FLAGS_TO_PASS. To
835 # build a target all-X means to cd to X and make all.
837 # all-gui, and all-libproc are handled specially because
838 # they are still experimental, and if they fail to build, that
839 # shouldn't stop "make all".
840 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
841 $(ALL_MODULES
) all-gui all-libproc
:
842 @
dir=`echo $@ | sed -e 's/all-//'`; \
843 if
[ -f .
/$${dir}/Makefile
] ; then \
845 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
847 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
852 # These rules are used to check the modules which use FLAGS_TO_PASS.
853 # To build a target check-X means to cd to X and make check. Some
854 # modules are only tested in a native toolchain.
856 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
857 $(NATIVE_CHECK_MODULES
):
858 @if
[ "$(host_canonical)" = "$(target_canonical)" ] ; then \
859 dir=`echo $@ | sed -e 's/check-//'`; \
860 if
[ -f .
/$${dir}/Makefile
] ; then \
862 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
864 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
870 $(CROSS_CHECK_MODULES
):
871 @
dir=`echo $@ | sed -e 's/check-//'`; \
872 if
[ -f .
/$${dir}/Makefile
] ; then \
874 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
876 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
881 # This rule is used to install the modules which use FLAGS_TO_PASS.
882 # To build a target install-X means to cd to X and make install.
883 .PHONY
: $(INSTALL_MODULES
)
884 $(INSTALL_MODULES
): install-dirs
885 @
dir=`echo $@ | sed -e 's/install-//'`; \
886 if
[ -f .
/$${dir}/Makefile
] ; then \
888 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
890 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
895 # This rule is used to configure the modules which are built with the
897 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
898 $(CONFIGURE_TARGET_MODULES
):
899 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
900 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
902 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
903 if
[ -d
$(srcdir)/$${dir} ]; then \
904 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
906 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
908 AR
="$(AR_FOR_TARGET)"; export AR
; \
909 AS
="$(AS_FOR_TARGET)"; export AS
; \
910 CC
="$(CC_FOR_TARGET)"; export CC
; \
911 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
912 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
913 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
914 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
915 LD
="$(LD_FOR_TARGET)"; export LD
; \
916 NM
="$(NM_FOR_TARGET)"; export NM
; \
917 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
918 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
919 cd
$(TARGET_SUBDIR
)/$${dir}; \
922 topdir
=$(srcdir) ;; \
924 case
"$(TARGET_SUBDIR)" in \
925 .
) topdir
="../$(srcdir)" ;; \
926 *) topdir
="../../$(srcdir)" ;; \
929 if
[ "$(srcdir)" = "." ] ; then \
930 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
931 if
$(SHELL
) $${srcroot}/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
932 if
[ -f Makefile
]; then \
933 if
$(MAKE
) distclean; then \
947 srcdiroption
="--srcdir=."; \
950 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
951 libsrcdir
="$${srcroot}/$${dir}"; \
953 if
[ -f
$${libsrcdir}/configure
] ; then \
954 $(SHELL
) $${libsrcdir}/configure \
955 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
956 --with-target-subdir
="$(TARGET_SUBDIR)"; \
958 $(SHELL
) $${srcroot}/configure \
959 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
960 --with-target-subdir
="$(TARGET_SUBDIR)"; \
969 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
970 # To build a target all-X means to cd to X and make all.
971 .PHONY
: $(ALL_TARGET_MODULES
)
972 $(ALL_TARGET_MODULES
):
973 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
974 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
976 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
978 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
983 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
984 # To build a target install-X means to cd to X and make install.
985 .PHONY
: $(CHECK_TARGET_MODULES
)
986 $(CHECK_TARGET_MODULES
):
987 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
988 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
990 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
992 (cd
$(TARGET_SUBDIR
)/$${dir};$(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
997 # This rule is used to install the modules which use
998 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1000 .PHONY
: $(INSTALL_TARGET_MODULES
)
1001 $(INSTALL_TARGET_MODULES
): install-dirs
1002 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1003 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1004 r
=`pwd`; export r
; \
1005 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1007 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1008 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1013 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1014 # To build a target all-X means to cd to X and make all.
1015 .PHONY
: $(ALL_X11_MODULES
)
1017 @
dir=`echo $@ | sed -e 's/all-//'`; \
1018 if
[ -f .
/$${dir}/Makefile
] ; then \
1019 r
=`pwd`; export r
; \
1020 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1023 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1028 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1029 # To build a target check-X means to cd to X and make all.
1030 .PHONY
: $(CHECK_X11_MODULES
)
1031 $(CHECK_X11_MODULES
):
1032 @
dir=`echo $@ | sed -e 's/check-//'`; \
1033 if
[ -f .
/$${dir}/Makefile
] ; then \
1034 r
=`pwd`; export r
; \
1035 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1038 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1043 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1044 # To build a target install-X means to cd to X and make install.
1045 .PHONY
: $(INSTALL_X11_MODULES
)
1046 $(INSTALL_X11_MODULES
):
1047 @
dir=`echo $@ | sed -e 's/install-//'`; \
1048 if
[ -f .
/$${dir}/Makefile
] ; then \
1049 r
=`pwd`; export r
; \
1050 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1053 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1058 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1061 @if
[ -f .
/gcc
/Makefile
] ; then \
1062 r
=`pwd`; export r
; \
1063 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1065 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1070 .PHONY
: all-bootstrap
1072 @if
[ -f .
/gcc
/Makefile
] ; then \
1073 r
=`pwd`; export r
; \
1074 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1076 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) bootstrap
); \
1083 @if
[ -f .
/gcc
/Makefile
] ; then \
1084 r
=`pwd`; export r
; \
1085 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1087 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1094 @if
[ -f .
/gcc
/Makefile
] ; then \
1095 r
=`pwd`; export r
; \
1096 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1098 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1104 # EXPERIMENTAL STUFF
1105 # This rule is used to install the modules which use FLAGS_TO_PASS.
1106 # To build a target install-X means to cd to X and make install.
1107 .PHONY
: install-dosrel
1108 install-dosrel
: install-dirs
info
1109 @
dir=`echo $@ | sed -e 's/install-//'`; \
1110 if
[ -f .
/$${dir}/Makefile
] ; then \
1111 r
=`pwd`; export r
; \
1112 srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
1114 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1119 install-dosrel-fake
:
1122 # This is a list of inter-dependencies among modules.
1123 all-autoconf
: all-m4
1125 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-byacc
1128 all-dejagnu
: all-tcl all-expect all-tk
1129 all-diff
: all-libiberty
1131 all-emacs19
: all-byacc
1133 configure-target-examples
: $(ALL_GCC
)
1134 all-target-examples
: configure-target-examples
1135 all-expect
: all-tcl all-tk
1136 all-fileutils
: all-libiberty
1138 all-flex
: all-libiberty all-byacc
1139 all-gas
: all-libiberty all-opcodes all-bfd
1143 all-gcc
: all-libiberty all-byacc all-binutils all-gas all-ld
1144 all-bootstrap
: all-libiberty all-byacc all-binutils all-gas all-ld
1145 GDB_TK
= all-tk all-tcl
1146 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1147 all-gprof
: all-libiberty all-bfd all-opcodes
1148 all-grep
: all-libiberty
1149 all-grez
: all-libiberty all-bfd all-opcodes
1150 all-gui
: all-gdb all-libproc all-target-librx
1152 all-gzip
: all-libiberty
1153 all-hello
: all-libiberty
1155 all-ispell
: all-emacs19
1156 all-ld
: all-libiberty all-bfd all-opcodes all-byacc all-flex
1157 configure-target-libg
++: $(ALL_GCC
) configure-target-librx
1158 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
++
1159 configure-target-libgloss
: $(ALL_GCC
)
1160 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1161 configure-target-libio
: $(ALL_GCC
)
1162 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1164 configure-target-librx
: $(ALL_GCC
) configure-target-newlib
1165 all-target-librx
: configure-target-librx
1166 configure-target-libstdc
++: $(ALL_GCC
)
1167 all-target-libstdc
++: configure-target-libstdc
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1168 all-m4
: all-libiberty
1169 all-make
: all-libiberty
1171 configure-target-newlib
: $(ALL_GCC
)
1172 all-target-newlib
: configure-target-newlib all-binutils all-gas all-gcc
1173 all-opcodes
: all-bfd all-libiberty
1174 all-patch
: all-libiberty
1176 all-prms
: all-libiberty
1179 all-recode
: all-libiberty
1180 all-sed
: all-libiberty
1181 all-send-pr
: all-prms
1183 all-sim
: all-libiberty all-bfd all-opcodes
1184 all-tar
: all-libiberty
1186 all-tclX
: all-tcl all-tk
1188 all-texinfo
: all-libiberty
1190 all-tgas
: all-libiberty all-bfd all-opcodes
1193 all-target-winsup
: all-target-newlib all-target-libiberty configure-target-winsup
1194 configure-target-winsup
: configure-target-newlib
1195 all-uudecode
: all-libiberty
1196 configure-target-libiberty
: $(ALL_GCC
)
1197 all-target-libiberty
: configure-target-libiberty all-gcc all-ld all-target-newlib
1198 all-target
: $(ALL_TARGET_MODULES
)
1199 install-target
: $(INSTALL_TARGET_MODULES
)
1201 ### other supporting targets
1208 .PHONY
: install-dirs
1210 @for i in
$(MAKEDIRS
) ; do \
1211 echo Making
$$i...
; \
1212 parent
=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
1213 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1214 if
[ ! -d
$$i ] ; then \
1215 if mkdir
$$i ; then \
1226 dir.
info: do-install-info
1227 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1228 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1229 mv
-f
dir.
info.new
dir.
info ; \
1234 @echo
"Building a full distribution of this tree isn't done"
1235 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1239 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1240 # ability to use several tags files at once, so there is probably no need
1241 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1242 # (if we felt like it) have this Makefile write a piece of elisp which
1243 # the user could load to tell emacs19 where all the TAGS files we just
1247 # with the gnu make, this is done automatically.
1249 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
1250 $(SHELL
) .
/config.status
1253 # Support for building net releases
1255 # Files in devo used in any net release.
1256 # ChangeLog omitted because it may refer to files which are not in this
1257 # distribution (perhaps it would be better to include it anyway).
1258 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1259 config.guess config.sub config move-if-change \
1260 mpw-README mpw-build.in mpw-config.in mpw-configure \
1261 COPYING COPYING.LIB
install.sh config-ml.in symlink-tree
1263 # Files in devo/etc used in any net release.
1264 # ChangeLog omitted because it may refer to files which are not in this
1265 # distribution (perhaps it would be better to include it anyway).
1266 ETC_SUPPORT
= Makefile.in cfg-paper.texi configure.in configure.man \
1267 configure.texi standards.texi make-stds.texi \
1268 configure.
info* standards.
info* cfg-paper.
info*
1270 # When you use `make setup-dirs' or `make taz' you should always redefine
1272 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1273 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1274 DISTBISONFILES
= binutils
/Makefile.in gas
/Makefile.in gdb
/Makefile.in
1278 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) \
1279 texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1280 # Make sure "diststuff" files get built properly.
1281 for f in
$(DISTBISONFILES
) ; do \
1282 if
[ -r
$$f ]; then \
1283 sed
'/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp
; \
1287 # Take out texinfo from a few places; make simple BISON=bison line.
1288 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1289 -e
'/^ install-texinfo /d' \
1290 -e
'/^BISON = /,/^$$/d' \
1291 -e
'/^# BISON:/s/.*/BISON = bison -y/' \
1293 mv
-f tmp Makefile.in
1295 $(start-sanitize-Sanitize
)
1296 @if
[ -f .Sanitize
] ; then echo
"RUN Sanitize FIRST!" ; false
; fi
;
1297 $(end-sanitize-Sanitize
)
1299 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1300 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) ALL_GCC
="" \
1301 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1302 # Make links, and run "make diststuff" or "make info" when needed.
1303 rm -rf proto-toplev
; mkdir proto-toplev
1304 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1305 for d in
$$dirs ; do \
1306 if
[ -d
$$d ]; then \
1307 if
[ ! -f
$$d/Makefile
] ; then true
; \
1308 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1309 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1310 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1311 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1313 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1314 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1316 ln
-s ..
/$$d proto-toplev
/$$d ; \
1318 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1320 cd etc
; $(MAKE
) info
1323 mkdir proto-toplev
/etc
1324 (cd proto-toplev
/etc
; \
1325 for i in
$(ETC_SUPPORT
); do \
1326 ln
-s ..
/..
/etc
/$$i .
; \
1329 # Take out texinfo from configurable dirs
1330 rm proto-toplev
/configure.in
1331 sed
-e
'/^host_tools=/s/texinfo //' \
1332 <configure.in
>proto-toplev
/configure.in
1334 mkdir proto-toplev
/texinfo
1335 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1336 ln
-s ..
/..
/texinfo
/gpl.texinfo proto-toplev
/texinfo
/
1337 ln
-s ..
/..
/texinfo
/lgpl.texinfo proto-toplev
/texinfo
/
1338 ln
-s ..
/..
/texinfo
/tex3patch proto-toplev
/texinfo
/
1339 chmod og
=u
`find . -print`
1340 (VER
=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
1341 echo
"==> Making $(TOOL)-$$VER.tar.gz"; \
1342 rm -f
$(TOOL
)-$$VER; ln
-s proto-toplev
$(TOOL
)-$$VER; \
1343 tar cfh
- $(TOOL
)-$$VER \
1344 |
$(GZIPPROG
) -v
-9 >$(TOOL
)-$$VER.
tar.gz
)
1346 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1347 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
1350 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes
1351 gas.
tar.gz
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
1352 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1353 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
1355 # The FSF "binutils" release includes gprof and ld.
1356 .PHONY
: binutils.
tar.gz
1357 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof
1358 binutils.
tar.gz
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
1359 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
1360 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1362 .PHONY
: gas
+binutils.
tar.gz
1363 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
1364 gas
+binutils.
tar.gz
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
1365 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1366 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1368 .PHONY
: libg
++.
tar.gz
1369 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
1370 libg
++.
tar.gz
: $(DIST_SUPPORT
) libg
++
1371 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
1372 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
1374 GNATS_SUPPORT_DIRS
=include libiberty send-pr
1375 gnats.
tar.gz
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
1376 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
1377 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
1380 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils
1381 GDBTK_SUPPORT_DIRS
= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1382 gdb.
tar.gz
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
1383 $(MAKE
) -f Makefile.in taz TOOL
=gdb \
1384 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1386 .PHONY
: newlib.
tar.gz
1387 NEWLIB_SUPPORT_DIRS
=libgloss
1388 # taz configures for the sun4 target which won't configure newlib.
1389 # We need newlib configured so that the .info files are made.
1390 # Unfortunately, it is not enough to just configure newlib separately:
1391 # taz will build the .info files but since SUBDIRS won't contain newlib,
1392 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1393 # used in building the .info files, eg: *.def, *.ref).
1394 # The problem isn't solvable however without a lot of extra work because
1395 # target libraries are built in subdir $(target_alias) which gets nuked during
1396 # the make distclean. For now punt on the issue of shipping newlib info files
1397 # with newlib net releases and wait for a day when some native target (sun4?)
1398 # supports newlib (if only minimally).
1399 newlib.
tar.gz
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
1400 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
1401 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
1402 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1407 # start-sanitize-chill
1408 ## This is ugly, but I don't want GNU make to put these variables in
1409 ## the environment. Older makes will see this as a set of targets
1410 ## with no dependencies and no actions.
1411 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET
:
1412 # end-sanitize-chill
1414 # end of Makefile.in