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
= $$s/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
)
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/Makefile ] ; \
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 $$s/dejagnu/runtest ] ; \
128 then echo $$s/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 # Changed by configure to $(target_alias) if cross.
148 # This is set by the configure script to the arguments passed to configure.
151 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
155 # This is the name of the environment variable used for the path to
156 # the libraries. This may be changed by configure.in.
157 RPATH_ENVVAR
= LD_LIBRARY_PATH
159 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
160 REALLY_SET_LIB_PATH
= \
161 $(RPATH_ENVVAR
)=$$r/bfd
:$$r/opcodes
:$$$(RPATH_ENVVAR
); \
162 export $(RPATH_ENVVAR
);
165 INSTALL_TARGET
= install-dirs \
167 $(INSTALL_TARGET_MODULES
) \
168 $(INSTALL_X11_MODULES
) \
174 if [ -f $$r/gcc/xgcc ] ; then \
175 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
176 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
177 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
179 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
182 echo $$r/gcc/xgcc -B$$r/gcc/; \
185 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
188 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
192 # If CC_FOR_TARGET is not overriden on the command line, then this
193 # variable is passed down to the gcc Makefile, where it is used to
194 # build libgcc2.a. We define it here so that it can itself be
195 # overridden on the command line.
196 GCC_FOR_TARGET
= $$r/gcc
/xgcc
-B
$$r/gcc
/
198 # start-sanitize-chill
199 CHILL_FOR_TARGET
= ` \
200 if [ -f $$r/gcc/xgcc ] ; then \
201 echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
203 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
206 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
213 if [ -f $$r/gcc/xgcc ] ; then \
214 if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
215 if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
216 echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
218 echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
221 echo $$r/gcc/xgcc -B$$r/gcc/; \
224 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
227 t='$(program_transform_name)'; echo gcc | sed -e 's/x/x/' $$t; \
232 if [ -f $$r/gas/as.new ] ; then \
233 echo $$r/gas/as.new ; \
235 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
238 t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \
243 if [ -f $$r/ld/ld.new ] ; then \
244 echo $$r/ld/ld.new ; \
246 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
249 t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \
253 DLLTOOL_FOR_TARGET
= ` \
254 if [ -f $$r/binutils/dlltool ] ; then \
255 echo $$r/binutils/dlltool ; \
257 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
260 t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \
265 if [ -f $$r/binutils/ar ] ; then \
266 echo $$r/binutils/ar ; \
268 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
271 t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \
275 RANLIB_FOR_TARGET
= ` \
276 if [ -f $$r/binutils/ranlib ] ; then \
277 echo $$r/binutils/ranlib ; \
279 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
282 t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \
287 if [ -f $$r/binutils/nm.new ] ; then \
288 echo $$r/binutils/nm.new ; \
290 if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
293 t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \
297 #### host and target specific makefile fragments come in here.
300 # Flags to pass down to all sub-makes.
301 # Please keep these in alphabetical order.
302 BASE_FLAGS_TO_PASS
= \
303 "AR_FLAGS=$(AR_FLAGS)" \
304 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
305 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
307 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
308 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
310 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
311 $(start-sanitize-chill
)\
312 "CHILLFLAGS=$(CHILLFLAGS)" \
313 "CHILL_FOR_TARGET=$(CHILL_FOR_TARGET)" \
314 "CHILL_LIB=$(CHILL_LIB)" \
315 $(end-sanitize-chill
)\
316 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
317 "CXXFLAGS=$(CXXFLAGS)" \
318 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
319 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
320 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
321 "INSTALL=$(INSTALL)" \
322 "INSTALL_DATA=$(INSTALL_DATA)" \
323 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
324 "INSTALL_XFORM=$(INSTALL_XFORM)" \
325 "LDFLAGS=$(LDFLAGS)" \
327 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
328 "LIBCFLAGS=$(LIBCFLAGS)" \
329 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
330 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
331 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
334 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
335 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
336 "PICFLAG=$(PICFLAG)" \
337 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
338 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
341 "RUNTEST=$(RUNTEST)" \
342 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
344 "exec_prefix=$(exec_prefix)" \
348 # Flags to pass down to most sub-makes, in which we're building with
349 # the host environment.
350 # If any variables are added here, they must be added to do-*, below.
356 'DLLTOOL=$(DLLTOOL)' \
361 FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_HOST_FLAGS
)
363 # Flags that are concerned with the location of the X11 include files
366 # NOTE: until the top-level is getting the values via autoconf, it only
367 # causes problems to have this top-level Makefile overriding the autoconf-set
368 # values in child directories. Only variables that don't conflict with
369 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
371 X11_FLAGS_TO_PASS
= \
372 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
373 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
375 # Flags to pass down to makes which are built with the target environment.
376 # The double $ decreases the length of the command line; the variables
377 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
378 # If any variables are added here, they must be added to do-*, below.
379 EXTRA_TARGET_FLAGS
= \
380 'AR=$$(AR_FOR_TARGET)' \
381 'AS=$$(AS_FOR_TARGET)' \
382 'CC=$$(CC_FOR_TARGET)' \
383 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
384 'CXX=$$(CXX_FOR_TARGET)' \
385 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
386 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
387 'LD=$$(LD_FOR_TARGET)' \
388 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
389 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
390 'NM=$$(NM_FOR_TARGET)' \
391 'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
392 'RANLIB=$$(RANLIB_FOR_TARGET)'
394 TARGET_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_TARGET_FLAGS
)
396 # Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
397 # unfortunately needs the native compiler and the target ar and
399 # If any variables are added here, they must be added to do-*, below.
400 # The HOST_* variables are a special case, which are used for the gcc
401 # cross-building scheme.
403 'AR=$$(AR_FOR_TARGET)' \
407 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
408 'HOST_CC=$(CC_FOR_BUILD)' \
409 'HOST_PREFIX=$(HOST_PREFIX)' \
410 'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
412 'RANLIB=$$(RANLIB_FOR_TARGET)' \
413 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
414 `if test x"$(LANGUAGES)" != x; then echo "LANGUAGES=$(LANGUAGES)"; fi` \
415 `if test x"$(STMP_FIXPROTO)" != x; then echo "STMP_FIXPROTO=$(STMP_FIXPROTO)"; fi` \
416 `if test x"$(LIMITS_H_TEST)" != x; then echo "LIMITS_H_TEST=$(LIMITS_H_TEST)"; fi` \
417 `if test x"$(LIBGCC1_TEST)" != x; then echo "LIBGCC1_TEST=$(LIBGCC1_TEST)"; fi` \
418 `if test x"$(LIBGCC2_CFLAGS)" != x; then echo "LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)"; fi` \
419 `if test x"$(LIBGCC2_INCLUDES)" != x; then echo "LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)"; fi` \
420 `if test x"$(ENQUIRE)" != x; then echo "ENQUIRE=$(ENQUIRE)"; fi` \
421 `if test x"$(BOOT_CFLAGS)" != x; then echo "BOOT_CFLAGS=$(BOOT_CFLAGS)"; fi`
423 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
425 # This is a list of the targets for all of the modules which are compiled
426 # using $(FLAGS_TO_PASS).
481 # This is a list of the check targets for all of the modules which are
482 # compiled using $(FLAGS_TO_PASS).
484 # The list is in two parts. The first lists those tools which
485 # are tested as part of the host's native tool-chain, and not
486 # tested in a cross configuration.
487 NATIVE_CHECK_MODULES
= \
491 CROSS_CHECK_MODULES
= \
540 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
542 # This is a list of the install targets for all of the modules which are
543 # compiled using $(FLAGS_TO_PASS).
597 # This is a list of the targets for all of the modules which are compiled
598 # using $(X11_FLAGS_TO_PASS).
609 # This is a list of the check targets for all of the modules which are
610 # compiled using $(X11_FLAGS_TO_PASS).
611 CHECK_X11_MODULES
= \
620 # This is a list of the install targets for all the modules which are
621 # compiled using $(X11_FLAGS_TO_PASS).
622 INSTALL_X11_MODULES
= \
632 # This is a list of the targets for all of the modules which are compiled
633 # using $(TARGET_FLAGS_TO_PASS).
634 ALL_TARGET_MODULES
= \
636 all-target-libstdc
++ \
641 all-target-libgloss \
642 all-target-libiberty \
645 # This is a list of the configure targets for all of the modules which
646 # are compiled using the target tools.
647 CONFIGURE_TARGET_MODULES
= \
648 configure-target-libio \
649 configure-target-libstdc
++ \
650 configure-target-librx \
651 configure-target-libg
++ \
652 configure-target-newlib \
653 configure-target-winsup \
654 configure-target-libgloss \
655 configure-target-libiberty \
656 configure-target-examples
658 # This is a list of the check targets for all of the modules which are
659 # compiled using $(TARGET_FLAGS_TO_PASS).
660 CHECK_TARGET_MODULES
= \
662 check-target-libstdc
++ \
663 check-target-libg
++ \
664 check-target-newlib \
665 check-target-winsup \
666 check-target-libiberty
668 # This is a list of the install targets for all of the modules which are
669 # compiled using $(TARGET_FLAGS_TO_PASS).
670 INSTALL_TARGET_MODULES
= \
671 install-target-libio \
672 install-target-libstdc
++ \
673 install-target-libg
++ \
674 install-target-newlib \
675 install-target-winsup \
676 install-target-libgloss \
677 install-target-libiberty
679 # This is a list of the targets for which we can do a clean-{target}.
734 # All of the target modules that can be cleaned
735 CLEAN_TARGET_MODULES
= \
737 clean-target-libstdc
++ \
739 clean-target-libg
++ \
740 clean-target-newlib \
741 clean-target-winsup \
742 clean-target-libgloss \
743 clean-target-libiberty \
744 clean-target-examples
746 # All of the x11 modules that can be cleaned
747 CLEAN_X11_MODULES
= \
757 # The first rule in the file had better be this one. Don't put any above it.
761 # The target built for a native build.
765 $(ALL_TARGET_MODULES
) \
769 # Do a target for all the subdirectories. A ``make do-X'' will do a
770 # ``make X'' in all subdirectories (because, in general, there is a
771 # dependency (below) of X upon do-X, a ``make X'' will also do this,
772 # but it may do additional work as well).
773 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
774 # because it is so large that it can easily overflow the command line
775 # length limit on some systems.
784 do-maintainer-clean \
788 @target
=`echo $@ | sed -e 's/^do-//'`; \
790 s
=`cd $(srcdir); pwd`; export s
; \
792 for i in
$(SUBDIRS
) -dummy-
; do \
793 if
[ -f .
/$$i/Makefile
]; then \
796 for flag in
$(EXTRA_GCC_FLAGS
); do \
797 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
801 for flag in
$(EXTRA_HOST_FLAGS
); do \
802 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
806 export AR AS CC CXX NM RANLIB DLLTOOL
; \
808 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
809 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
810 "RANLIB=$${RANLIB}" \
811 "DLLTOOL=$${DLLTOOL}" \
813 then true
; else exit
1; fi
; \
816 @target
=`echo $@ | sed -e 's/^do-//'`; \
818 s
=`cd $(srcdir); pwd`; export s
; \
820 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
821 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
822 for flag in
$(EXTRA_TARGET_FLAGS
); do \
823 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
825 export AR AS CC CXX NM RANLIB DLLTOOL
; \
826 if
(cd
$(TARGET_SUBDIR
)/$$i; \
827 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
828 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
829 "RANLIB=$${RANLIB}" \
830 "DLLTOOL=$${DLLTOOL}" \
832 then true
; else exit
1; fi
; \
836 # Here are the targets which correspond to the do-X targets.
838 .PHONY
: info installcheck dvi install-info
839 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
840 .PHONY
: local-clean local-distclean local-maintainer-clean
842 installcheck: do-installcheck
845 # Make sure makeinfo is built before we do a `make info'.
848 install-info
: do-install-info
dir.
info
849 s
=`cd $(srcdir); pwd`; export s
; \
850 if
[ -f
dir.
info ] ; then \
851 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
855 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
858 -rm -f Makefile config.status
859 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
860 rm -rf
$(TARGET_SUBDIR
); \
863 local-maintainer-clean
:
864 @echo
"This command is intended for maintainers to use;"
865 @echo
"it deletes files that may require special tools to rebuild."
867 clean: do-clean local-clean
868 mostlyclean: do-mostlyclean local-clean
869 distclean: do-distclean local-clean local-distclean
870 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
871 maintainer-clean
: local-distclean
872 realclean: maintainer-clean
874 # This rule is used to clean specific modules.
875 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
876 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
877 @
dir=`echo $@ | sed -e 's/clean-//'`; \
878 if
[ -f .
/$${dir}/Makefile
] ; then \
880 s
=`cd $(srcdir); pwd`; export s
; \
882 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
887 .PHONY
: $(CLEAN_TARGET_MODULES
)
888 $(CLEAN_TARGET_MODULES
):
889 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
890 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
891 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
893 s
=`cd $(srcdir); pwd`; export s
; \
895 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
900 clean-target
: $(CLEAN_TARGET_MODULES
)
905 check: $(CHECK_MODULES
) \
906 $(CHECK_TARGET_MODULES
) \
907 $(CHECK_X11_MODULES
) \
910 # Installation targets.
912 .PHONY
: install uninstall source-vault binary-vault vault-install
913 install: $(INSTALL_TARGET
)
916 @echo
"the uninstall target is not supported in this tree"
919 $(MAKE
) -f .
/release
/Build-A-Release \
920 host
=$(host_alias
) source-vault
923 $(MAKE
) -f .
/release
/Build-A-Release \
924 host
=$(host_alias
) target
=$(target_alias
)
927 @if
[ -f .
/release
/vault-install
] ; then \
928 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
934 install.
all: install-no-fixedincludes
935 @if
[ -f .
/gcc
/Makefile
] ; then \
936 r
=`pwd` ; export r
; \
939 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
944 # inet-install is used because the I*Net wants DejaGNU installed but
945 # not built. Similarly, gzip is built but not installed.
947 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
949 # install-no-fixedincludes is used because Cygnus can not distribute
950 # the fixed header files.
951 .PHONY
: install-no-fixedincludes
952 install-no-fixedincludes
: \
955 $(INSTALL_TARGET_MODULES
) \
956 $(INSTALL_X11_MODULES
) \
959 # Install the gcc headers files, but not the fixed include files,
960 # which Cygnus is not allowed to distribute. This rule is very
961 # dependent on the workings of the gcc Makefile.in.
962 .PHONY
: gcc-no-fixedincludes
963 gcc-no-fixedincludes
:
964 @if
[ -f .
/gcc
/Makefile
]; then \
965 rm -rf gcc
/tmp-include
; \
966 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
968 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
969 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
970 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
972 s
=`cd $(srcdir); pwd` ; export s
; \
975 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
976 rm -rf gcc
/include; \
977 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
980 # This rule is used to build the modules which use FLAGS_TO_PASS. To
981 # build a target all-X means to cd to X and make all.
983 # all-gui, and all-libproc are handled specially because
984 # they are still experimental, and if they fail to build, that
985 # shouldn't stop "make all".
986 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
987 $(ALL_MODULES
) all-gui all-libproc
:
988 @
dir=`echo $@ | sed -e 's/all-//'`; \
989 if
[ -f .
/$${dir}/Makefile
] ; then \
991 s
=`cd $(srcdir); pwd`; export s
; \
993 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
998 # These rules are used to check the modules which use FLAGS_TO_PASS.
999 # To build a target check-X means to cd to X and make check. Some
1000 # modules are only tested in a native toolchain.
1002 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1003 $(NATIVE_CHECK_MODULES
):
1004 @if
[ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1005 dir=`echo $@ | sed -e 's/check-//'`; \
1006 if
[ -f .
/$${dir}/Makefile
] ; then \
1007 r
=`pwd`; export r
; \
1008 s
=`cd $(srcdir); pwd`; export s
; \
1010 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1016 $(CROSS_CHECK_MODULES
):
1017 @
dir=`echo $@ | sed -e 's/check-//'`; \
1018 if
[ -f .
/$${dir}/Makefile
] ; then \
1019 r
=`pwd`; export r
; \
1020 s
=`cd $(srcdir); pwd`; export s
; \
1022 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1027 # This rule is used to install the modules which use FLAGS_TO_PASS.
1028 # To build a target install-X means to cd to X and make install.
1029 .PHONY
: $(INSTALL_MODULES
)
1030 $(INSTALL_MODULES
): install-dirs
1031 @
dir=`echo $@ | sed -e 's/install-//'`; \
1032 if
[ -f .
/$${dir}/Makefile
] ; then \
1033 r
=`pwd`; export r
; \
1034 s
=`cd $(srcdir); pwd`; export s
; \
1036 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1041 # This rule is used to configure the modules which are built with the
1043 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1044 $(CONFIGURE_TARGET_MODULES
):
1045 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1046 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1047 r
=`pwd`; export r
; \
1048 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1049 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1050 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1051 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1052 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1054 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1055 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1056 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1059 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1062 fi
; exit
0 # break command into two pieces
1063 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1064 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1066 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1068 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1069 if
[ -d
$(srcdir)/$${dir} ]; then \
1070 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1071 r
=`pwd`; export r
; \
1072 s
=`cd $(srcdir); pwd`; export s
; \
1074 AR
="$(AR_FOR_TARGET)"; export AR
; \
1075 AS
="$(AS_FOR_TARGET)"; export AS
; \
1076 CC
="$(CC_FOR_TARGET)"; export CC
; \
1077 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1078 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1079 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1080 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1081 LD
="$(LD_FOR_TARGET)"; export LD
; \
1082 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1083 NM
="$(NM_FOR_TARGET)"; export NM
; \
1084 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1085 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1086 cd
$(TARGET_SUBDIR
)/$${dir}; \
1089 topdir
=$(srcdir) ;; \
1091 case
"$(TARGET_SUBDIR)" in \
1092 .
) topdir
="../$(srcdir)" ;; \
1093 *) topdir
="../../$(srcdir)" ;; \
1096 if
[ "$(srcdir)" = "." ] ; then \
1097 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1098 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1099 if
[ -f Makefile
]; then \
1100 if
$(MAKE
) distclean; then \
1114 srcdiroption
="--srcdir=."; \
1117 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1118 libsrcdir
="$$s/$${dir}"; \
1120 if
[ -f
$${libsrcdir}/configure
] ; then \
1121 $(SHELL
) $${libsrcdir}/configure \
1122 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1123 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1125 $(SHELL
) $$s/configure \
1126 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1127 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1136 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1137 # To build a target all-X means to cd to X and make all.
1138 .PHONY
: $(ALL_TARGET_MODULES
)
1139 $(ALL_TARGET_MODULES
):
1140 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1141 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1142 r
=`pwd`; export r
; \
1143 s
=`cd $(srcdir); pwd`; export s
; \
1145 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1150 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1151 # To build a target install-X means to cd to X and make install.
1152 .PHONY
: $(CHECK_TARGET_MODULES
)
1153 $(CHECK_TARGET_MODULES
):
1154 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1155 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1156 r
=`pwd`; export r
; \
1157 s
=`cd $(srcdir); pwd`; export s
; \
1159 (cd
$(TARGET_SUBDIR
)/$${dir};$(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1164 # This rule is used to install the modules which use
1165 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1167 .PHONY
: $(INSTALL_TARGET_MODULES
)
1168 $(INSTALL_TARGET_MODULES
): install-dirs
1169 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1170 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1171 r
=`pwd`; export r
; \
1172 s
=`cd $(srcdir); pwd`; export s
; \
1174 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1175 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1180 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1181 # To build a target all-X means to cd to X and make all.
1182 .PHONY
: $(ALL_X11_MODULES
)
1184 @
dir=`echo $@ | sed -e 's/all-//'`; \
1185 if
[ -f .
/$${dir}/Makefile
] ; then \
1186 r
=`pwd`; export r
; \
1187 s
=`cd $(srcdir); pwd`; export s
; \
1190 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1195 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1196 # To build a target check-X means to cd to X and make all.
1197 .PHONY
: $(CHECK_X11_MODULES
)
1198 $(CHECK_X11_MODULES
):
1199 @
dir=`echo $@ | sed -e 's/check-//'`; \
1200 if
[ -f .
/$${dir}/Makefile
] ; then \
1201 r
=`pwd`; export r
; \
1202 s
=`cd $(srcdir); pwd`; export s
; \
1205 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1210 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1211 # To build a target install-X means to cd to X and make install.
1212 .PHONY
: $(INSTALL_X11_MODULES
)
1213 $(INSTALL_X11_MODULES
):
1214 @
dir=`echo $@ | sed -e 's/install-//'`; \
1215 if
[ -f .
/$${dir}/Makefile
] ; then \
1216 r
=`pwd`; export r
; \
1217 s
=`cd $(srcdir); pwd`; export s
; \
1220 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1225 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1228 @if
[ -f .
/gcc
/Makefile
] ; then \
1229 r
=`pwd`; export r
; \
1230 s
=`cd $(srcdir); pwd`; export s
; \
1232 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1237 .PHONY
: all-bootstrap
1239 @if
[ -f .
/gcc
/Makefile
] ; then \
1240 r
=`pwd`; export r
; \
1241 s
=`cd $(srcdir); pwd`; export s
; \
1243 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) bootstrap
); \
1250 @if
[ -f .
/gcc
/Makefile
] ; then \
1251 r
=`pwd`; export r
; \
1252 s
=`cd $(srcdir); pwd`; export s
; \
1254 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1261 @if
[ -f .
/gcc
/Makefile
] ; then \
1262 r
=`pwd`; export r
; \
1263 s
=`cd $(srcdir); pwd`; export s
; \
1265 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1271 # EXPERIMENTAL STUFF
1272 # This rule is used to install the modules which use FLAGS_TO_PASS.
1273 # To build a target install-X means to cd to X and make install.
1274 .PHONY
: install-dosrel
1275 install-dosrel
: install-dirs
info
1276 @
dir=`echo $@ | sed -e 's/install-//'`; \
1277 if
[ -f .
/$${dir}/Makefile
] ; then \
1278 r
=`pwd`; export r
; \
1279 s
=`cd $(srcdir); pwd`; export s
; \
1281 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1286 install-dosrel-fake
:
1289 # This is a list of inter-dependencies among modules.
1291 all-autoconf
: all-m4
1294 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-byacc
1297 all-dejagnu
: all-tcl all-expect all-tk
1298 all-diff
: all-libiberty
1300 all-emacs19
: all-byacc
1302 configure-target-examples
: $(ALL_GCC
)
1303 all-target-examples
: configure-target-examples
1304 all-expect
: all-tcl all-tk
1305 all-fileutils
: all-libiberty
1308 all-flex
: all-libiberty all-byacc
1309 all-gas
: all-libiberty all-opcodes all-bfd
1313 all-gcc
: all-libiberty all-byacc all-binutils all-gas all-ld
1314 all-bootstrap
: all-libiberty all-byacc all-binutils all-gas all-ld
1315 GDB_TK
= all-tk all-tcl
1316 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1317 all-gprof
: all-libiberty all-bfd all-opcodes
1318 all-grep
: all-libiberty
1319 all-grez
: all-libiberty all-bfd all-opcodes
1320 all-gui
: all-gdb all-libproc all-target-librx
1322 all-gzip
: all-libiberty
1323 all-hello
: all-libiberty
1325 all-inet
: all-tcl all-send-pr all-perl
1326 all-ispell
: all-emacs19
1327 all-itcl
: all-tcl all-tk
1328 all-ld
: all-libiberty all-bfd all-opcodes all-byacc all-flex
1329 configure-target-libg
++: $(ALL_GCC
) configure-target-librx
1330 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
++
1331 configure-target-libgloss
: $(ALL_GCC
)
1332 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1333 configure-target-libio
: $(ALL_GCC
)
1334 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1336 configure-target-librx
: $(ALL_GCC
) configure-target-newlib
1337 all-target-librx
: configure-target-librx
1338 configure-target-libstdc
++: $(ALL_GCC
)
1339 all-target-libstdc
++: configure-target-libstdc
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1340 all-m4
: all-libiberty
1341 all-make
: all-libiberty
1343 configure-target-newlib
: $(ALL_GCC
)
1344 all-target-newlib
: configure-target-newlib all-binutils all-gas all-gcc
1345 all-opcodes
: all-bfd all-libiberty
1346 all-patch
: all-libiberty
1348 all-prms
: all-libiberty
1351 all-recode
: all-libiberty
1352 all-sed
: all-libiberty
1353 all-send-pr
: all-prms
1355 all-sim
: all-libiberty all-bfd all-opcodes
1356 all-tar
: all-libiberty
1358 all-tclX
: all-tcl all-tk
1360 all-texinfo
: all-libiberty
1362 all-tgas
: all-libiberty all-bfd all-opcodes
1365 all-target-winsup
: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup
1366 configure-target-winsup
: configure-target-newlib
1367 all-uudecode
: all-libiberty
1368 configure-target-libiberty
: $(ALL_GCC
)
1369 all-target-libiberty
: configure-target-libiberty all-gcc all-ld all-target-newlib
1370 all-target
: $(ALL_TARGET_MODULES
)
1371 install-target
: $(INSTALL_TARGET_MODULES
)
1373 ### other supporting targets
1378 .PHONY
: install-dirs
1380 @for i in
$(MAKEDIRS
) ; do \
1381 echo Making
$$i...
; \
1382 parent
=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
1383 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1384 if
[ ! -d
$$i ] ; then \
1385 if mkdir
$$i ; then \
1396 dir.
info: do-install-info
1397 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1398 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1399 mv
-f
dir.
info.new
dir.
info ; \
1404 @echo
"Building a full distribution of this tree isn't done"
1405 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1409 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1410 # ability to use several tags files at once, so there is probably no need
1411 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1412 # (if we felt like it) have this Makefile write a piece of elisp which
1413 # the user could load to tell emacs19 where all the TAGS files we just
1417 # with the gnu make, this is done automatically.
1419 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
1420 $(SHELL
) .
/config.status
1423 # Support for building net releases
1425 # Files in devo used in any net release.
1426 # ChangeLog omitted because it may refer to files which are not in this
1427 # distribution (perhaps it would be better to include it anyway).
1428 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1429 config.guess config.sub config move-if-change \
1430 mpw-README mpw-build.in mpw-config.in mpw-configure \
1431 COPYING COPYING.LIB
install.sh config-ml.in symlink-tree
1433 # Files in devo/etc used in any net release.
1434 # ChangeLog omitted because it may refer to files which are not in this
1435 # distribution (perhaps it would be better to include it anyway).
1436 ETC_SUPPORT
= Makefile.in cfg-paper.texi configure configure.in configure.man \
1437 configure.texi standards.texi make-stds.texi \
1438 configure.
info* standards.
info* cfg-paper.
info*
1440 # When you use `make setup-dirs' or `make taz' you should always redefine
1442 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1443 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1444 DISTBISONFILES
= binutils
/Makefile.in gas
/Makefile.in gdb
/Makefile.in
1448 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) \
1449 texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1450 # Make sure "diststuff" files get built properly.
1451 for f in
$(DISTBISONFILES
) ; do \
1452 if
[ -r
$$f ]; then \
1453 sed
'/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp
; \
1457 # Take out texinfo from a few places; make simple BISON=bison line.
1458 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1459 -e
'/^ install-texinfo /d' \
1460 -e
'/^BISON = /,/^$$/d' \
1461 -e
'/^# BISON:/s/.*/BISON = bison -y/' \
1463 mv
-f tmp Makefile.in
1465 $(start-sanitize-Sanitize
)
1466 @if
[ -f .Sanitize
] ; then echo
"RUN Sanitize FIRST!" ; false
; fi
;
1467 $(end-sanitize-Sanitize
)
1469 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1470 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) ALL_GCC
="" \
1471 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1472 # Make links, and run "make diststuff" or "make info" when needed.
1473 rm -rf proto-toplev
; mkdir proto-toplev
1474 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1475 for d in
$$dirs ; do \
1476 if
[ -d
$$d ]; then \
1477 if
[ ! -f
$$d/Makefile
] ; then true
; \
1478 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1479 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1480 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1481 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1483 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1484 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1486 ln
-s ..
/$$d proto-toplev
/$$d ; \
1488 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1490 cd etc
; $(MAKE
) info
1493 mkdir proto-toplev
/etc
1494 (cd proto-toplev
/etc
; \
1495 for i in
$(ETC_SUPPORT
); do \
1496 ln
-s ..
/..
/etc
/$$i .
; \
1499 # Take out texinfo from configurable dirs
1500 rm proto-toplev
/configure.in
1501 sed
-e
'/^host_tools=/s/texinfo //' \
1502 <configure.in
>proto-toplev
/configure.in
1504 mkdir proto-toplev
/texinfo
1505 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1506 ln
-s ..
/..
/texinfo
/gpl.texinfo proto-toplev
/texinfo
/
1507 ln
-s ..
/..
/texinfo
/lgpl.texinfo proto-toplev
/texinfo
/
1508 if
test -r texinfo
/util
/tex3patch
; then \
1509 mkdir proto-toplev
/texinfo
/util
&& \
1510 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
1512 chmod og
=u
`find . -print`
1513 $(MAKE
) -f Makefile.in do-tar-gz TOOL
=$(TOOL
) \
1514 VER
=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`
1517 echo
"==> Making $(TOOL)-$(VER).tar.gz"
1518 -rm -f
$(TOOL
)-$(VER
)
1519 ln
-s proto-toplev
$(TOOL
)-$(VER
)
1520 tar cfh
$(TOOL
)-$(VER
).
tar $(TOOL
)-$(VER
)
1521 $(GZIPPROG
) -v
-9 $(TOOL
)-$(VER
).
tar
1523 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1524 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
1527 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes make-all.com setup.com
1528 gas.
tar.gz
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
1529 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1530 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
1532 # The FSF "binutils" release includes gprof and ld.
1533 .PHONY
: binutils.
tar.gz
1534 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof make-all.com setup.com
1535 binutils.
tar.gz
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
1536 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
1537 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1539 .PHONY
: gas
+binutils.
tar.gz
1540 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
1541 gas
+binutils.
tar.gz
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
1542 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1543 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1545 .PHONY
: libg
++.
tar.gz
1546 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
1547 libg
++.
tar.gz
: $(DIST_SUPPORT
) libg
++
1548 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
1549 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
1551 GNATS_SUPPORT_DIRS
=include libiberty send-pr
1552 gnats.
tar.gz
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
1553 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
1554 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
1557 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils
1558 GDBTK_SUPPORT_DIRS
= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1559 gdb.
tar.gz
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
1560 $(MAKE
) -f Makefile.in taz TOOL
=gdb \
1561 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1563 .PHONY
: newlib.
tar.gz
1564 NEWLIB_SUPPORT_DIRS
=libgloss
1565 # taz configures for the sun4 target which won't configure newlib.
1566 # We need newlib configured so that the .info files are made.
1567 # Unfortunately, it is not enough to just configure newlib separately:
1568 # taz will build the .info files but since SUBDIRS won't contain newlib,
1569 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1570 # used in building the .info files, eg: *.def, *.ref).
1571 # The problem isn't solvable however without a lot of extra work because
1572 # target libraries are built in subdir $(target_alias) which gets nuked during
1573 # the make distclean. For now punt on the issue of shipping newlib info files
1574 # with newlib net releases and wait for a day when some native target (sun4?)
1575 # supports newlib (if only minimally).
1576 newlib.
tar.gz
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
1577 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
1578 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
1579 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1584 # start-sanitize-chill
1585 ## This is ugly, but I don't want GNU make to put these variables in
1586 ## the environment. Older makes will see this as a set of targets
1587 ## with no dependencies and no actions.
1588 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET
:
1589 # end-sanitize-chill
1591 # end of Makefile.in