2 # Makefile for directory with subdirs to build.
3 # Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 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_DEBUG_CFLAGS)" != x; then echo "LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)"; fi` \
420 `if test x"$(LIBGCC2_INCLUDES)" != x; then echo "LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)"; fi` \
421 `if test x"$(ENQUIRE)" != x; then echo "ENQUIRE=$(ENQUIRE)"; fi` \
422 `if test x"$(BOOT_CFLAGS)" != x; then echo "BOOT_CFLAGS=$(BOOT_CFLAGS)"; fi`
424 GCC_FLAGS_TO_PASS
= $(BASE_FLAGS_TO_PASS
) $(EXTRA_GCC_FLAGS
)
426 # This is a list of the targets for all of the modules which are compiled
427 # using $(FLAGS_TO_PASS).
483 # This is a list of the check targets for all of the modules which are
484 # compiled using $(FLAGS_TO_PASS).
486 # The list is in two parts. The first lists those tools which
487 # are tested as part of the host's native tool-chain, and not
488 # tested in a cross configuration.
489 NATIVE_CHECK_MODULES
= \
493 CROSS_CHECK_MODULES
= \
543 CHECK_MODULES
=$(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
545 # This is a list of the install targets for all of the modules which are
546 # compiled using $(FLAGS_TO_PASS).
601 # This is a list of the targets for all of the modules which are compiled
602 # using $(X11_FLAGS_TO_PASS).
613 # This is a list of the check targets for all of the modules which are
614 # compiled using $(X11_FLAGS_TO_PASS).
615 CHECK_X11_MODULES
= \
623 # This is a list of the install targets for all the modules which are
624 # compiled using $(X11_FLAGS_TO_PASS).
625 INSTALL_X11_MODULES
= \
635 # This is a list of the targets for all of the modules which are compiled
636 # using $(TARGET_FLAGS_TO_PASS).
637 ALL_TARGET_MODULES
= \
639 all-target-libstdc
++ \
644 all-target-libgloss \
645 all-target-libiberty \
648 # This is a list of the configure targets for all of the modules which
649 # are compiled using the target tools.
650 CONFIGURE_TARGET_MODULES
= \
651 configure-target-libio \
652 configure-target-libstdc
++ \
653 configure-target-librx \
654 configure-target-libg
++ \
655 configure-target-newlib \
656 configure-target-winsup \
657 configure-target-libgloss \
658 configure-target-libiberty \
659 configure-target-examples
661 # This is a list of the check targets for all of the modules which are
662 # compiled using $(TARGET_FLAGS_TO_PASS).
663 CHECK_TARGET_MODULES
= \
665 check-target-libstdc
++ \
666 check-target-libg
++ \
667 check-target-newlib \
668 check-target-winsup \
669 check-target-libiberty
671 # This is a list of the install targets for all of the modules which are
672 # compiled using $(TARGET_FLAGS_TO_PASS).
673 INSTALL_TARGET_MODULES
= \
674 install-target-libio \
675 install-target-libstdc
++ \
676 install-target-libg
++ \
677 install-target-newlib \
678 install-target-winsup \
679 install-target-libgloss \
680 install-target-libiberty
682 # This is a list of the targets for which we can do a clean-{target}.
738 # All of the target modules that can be cleaned
739 CLEAN_TARGET_MODULES
= \
741 clean-target-libstdc
++ \
743 clean-target-libg
++ \
744 clean-target-newlib \
745 clean-target-winsup \
746 clean-target-libgloss \
747 clean-target-libiberty \
748 clean-target-examples
750 # All of the x11 modules that can be cleaned
751 CLEAN_X11_MODULES
= \
761 # The first rule in the file had better be this one. Don't put any above it.
765 # The target built for a native build.
770 $(ALL_TARGET_MODULES
) \
773 # Do a target for all the subdirectories. A ``make do-X'' will do a
774 # ``make X'' in all subdirectories (because, in general, there is a
775 # dependency (below) of X upon do-X, a ``make X'' will also do this,
776 # but it may do additional work as well).
777 # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
778 # because it is so large that it can easily overflow the command line
779 # length limit on some systems.
788 do-maintainer-clean \
792 @target
=`echo $@ | sed -e 's/^do-//'`; \
794 s
=`cd $(srcdir); pwd`; export s
; \
796 for i in
$(SUBDIRS
) -dummy-
; do \
797 if
[ -f .
/$$i/Makefile
]; then \
800 for flag in
$(EXTRA_GCC_FLAGS
); do \
801 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
805 for flag in
$(EXTRA_HOST_FLAGS
); do \
806 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
810 export AR AS CC CXX NM RANLIB DLLTOOL
; \
812 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
813 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
814 "RANLIB=$${RANLIB}" \
815 "DLLTOOL=$${DLLTOOL}" \
817 then true
; else exit
1; fi
; \
820 @target
=`echo $@ | sed -e 's/^do-//'`; \
822 s
=`cd $(srcdir); pwd`; export s
; \
824 for i in
$(TARGET_CONFIGDIRS
) -dummy-
; do \
825 if
[ -f
$(TARGET_SUBDIR
)/$$i/Makefile
]; then \
826 for flag in
$(EXTRA_TARGET_FLAGS
); do \
827 eval
`echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'|"`; \
829 export AR AS CC CXX NM RANLIB DLLTOOL
; \
830 if
(cd
$(TARGET_SUBDIR
)/$$i; \
831 $(MAKE
) $(BASE_FLAGS_TO_PASS
) "AR=$${AR}" "AS=$${AS}" \
832 "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
833 "RANLIB=$${RANLIB}" \
834 "DLLTOOL=$${DLLTOOL}" \
836 then true
; else exit
1; fi
; \
840 # Here are the targets which correspond to the do-X targets.
842 .PHONY
: info installcheck dvi install-info
843 .PHONY
: clean distclean mostlyclean maintainer-clean
realclean
844 .PHONY
: local-clean local-distclean local-maintainer-clean
846 installcheck: do-installcheck
849 # Make sure makeinfo is built before we do a `make info'.
852 install-info
: do-install-info
dir.
info
853 s
=`cd $(srcdir); pwd`; export s
; \
854 if
[ -f
dir.
info ] ; then \
855 $(INSTALL_DATA
) dir.
info $(infodir)/dir.
info ; \
859 -rm -f
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
862 -rm -f Makefile config.status config.cache
863 -if
[ "$(TARGET_SUBDIR)" != "." ]; then \
864 rm -rf
$(TARGET_SUBDIR
); \
867 local-maintainer-clean
:
868 @echo
"This command is intended for maintainers to use;"
869 @echo
"it deletes files that may require special tools to rebuild."
871 clean: do-clean local-clean
872 mostlyclean: do-mostlyclean local-clean
873 distclean: do-distclean local-clean local-distclean
874 maintainer-clean
: local-maintainer-clean do-maintainer-clean local-clean
875 maintainer-clean
: local-distclean
876 realclean: maintainer-clean
878 # This rule is used to clean specific modules.
879 .PHONY
: $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
880 $(CLEAN_MODULES
) $(CLEAN_X11_MODULES
) clean-gcc
:
881 @
dir=`echo $@ | sed -e 's/clean-//'`; \
882 if
[ -f .
/$${dir}/Makefile
] ; then \
884 s
=`cd $(srcdir); pwd`; export s
; \
886 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) clean); \
891 .PHONY
: $(CLEAN_TARGET_MODULES
)
892 $(CLEAN_TARGET_MODULES
):
893 @
dir=`echo $@ | sed -e 's/clean-target-//'`; \
894 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
895 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
897 s
=`cd $(srcdir); pwd`; export s
; \
899 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean); \
904 clean-target
: $(CLEAN_TARGET_MODULES
)
909 check: $(CHECK_MODULES
) \
910 $(CHECK_TARGET_MODULES
) \
911 $(CHECK_X11_MODULES
) \
914 # Installation targets.
916 .PHONY
: install uninstall source-vault binary-vault vault-install
917 install: $(INSTALL_TARGET
)
920 @echo
"the uninstall target is not supported in this tree"
923 $(MAKE
) -f .
/release
/Build-A-Release \
924 host
=$(host_alias
) source-vault
927 $(MAKE
) -f .
/release
/Build-A-Release \
928 host
=$(host_alias
) target
=$(target_alias
)
931 @if
[ -f .
/release
/vault-install
] ; then \
932 .
/release
/vault-install
$(host_alias
) $(target_alias
) ; \
938 install.
all: install-no-fixedincludes
939 @if
[ -f .
/gcc
/Makefile
] ; then \
940 r
=`pwd` ; export r
; \
943 $(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
948 # inet-install is used because the I*Net wants DejaGNU installed but
949 # not built. Similarly, gzip is built but not installed.
951 $(MAKE
) INSTALL_MODULES
="`echo $(INSTALL_MODULES) | sed -e 's/install-dejagnu//' -e 's/install-gzip//'`" install
953 # install-no-fixedincludes is used because Cygnus can not distribute
954 # the fixed header files.
955 .PHONY
: install-no-fixedincludes
956 install-no-fixedincludes
: \
959 $(INSTALL_TARGET_MODULES
) \
960 $(INSTALL_X11_MODULES
) \
963 # Install the gcc headers files, but not the fixed include files,
964 # which Cygnus is not allowed to distribute. This rule is very
965 # dependent on the workings of the gcc Makefile.in.
966 .PHONY
: gcc-no-fixedincludes
967 gcc-no-fixedincludes
:
968 @if
[ -f .
/gcc
/Makefile
]; then \
969 rm -rf gcc
/tmp-include
; \
970 mv gcc
/include gcc
/tmp-include
2>/dev
/null
; \
972 cp
$(srcdir)/gcc
/gsyslimits.h gcc
/include/syslimits.h
; \
973 touch gcc
/stmp-fixinc gcc
/include/fixed
; \
974 rm -f gcc
/stmp-headers gcc
/stmp-int-hdrs
; \
976 s
=`cd $(srcdir); pwd` ; export s
; \
979 $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
980 rm -rf gcc
/include; \
981 mv gcc
/tmp-include gcc
/include 2>/dev
/null
; \
984 # This rule is used to build the modules which use FLAGS_TO_PASS. To
985 # build a target all-X means to cd to X and make all.
987 # all-gui, and all-libproc are handled specially because
988 # they are still experimental, and if they fail to build, that
989 # shouldn't stop "make all".
990 .PHONY
: $(ALL_MODULES
) all-gui all-libproc
991 $(ALL_MODULES
) all-gui all-libproc
:
992 @
dir=`echo $@ | sed -e 's/all-//'`; \
993 if
[ -f .
/$${dir}/Makefile
] ; then \
995 s
=`cd $(srcdir); pwd`; export s
; \
997 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) all); \
1002 # These rules are used to check the modules which use FLAGS_TO_PASS.
1003 # To build a target check-X means to cd to X and make check. Some
1004 # modules are only tested in a native toolchain.
1006 .PHONY
: $(CHECK_MODULES
) $(NATIVE_CHECK_MODULES
) $(CROSS_CHECK_MODULES
)
1007 $(NATIVE_CHECK_MODULES
):
1008 @if
[ "$(host_canonical)" = "$(target_canonical)" ] ; then \
1009 dir=`echo $@ | sed -e 's/check-//'`; \
1010 if
[ -f .
/$${dir}/Makefile
] ; then \
1011 r
=`pwd`; export r
; \
1012 s
=`cd $(srcdir); pwd`; export s
; \
1014 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1020 $(CROSS_CHECK_MODULES
):
1021 @
dir=`echo $@ | sed -e 's/check-//'`; \
1022 if
[ -f .
/$${dir}/Makefile
] ; then \
1023 r
=`pwd`; export r
; \
1024 s
=`cd $(srcdir); pwd`; export s
; \
1026 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) check); \
1031 # This rule is used to install the modules which use FLAGS_TO_PASS.
1032 # To build a target install-X means to cd to X and make install.
1033 .PHONY
: $(INSTALL_MODULES
)
1034 $(INSTALL_MODULES
): install-dirs
1035 @
dir=`echo $@ | sed -e 's/install-//'`; \
1036 if
[ -f .
/$${dir}/Makefile
] ; then \
1037 r
=`pwd`; export r
; \
1038 s
=`cd $(srcdir); pwd`; export s
; \
1040 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1045 # This rule is used to configure the modules which are built with the
1047 .PHONY
: $(CONFIGURE_TARGET_MODULES
)
1048 $(CONFIGURE_TARGET_MODULES
):
1049 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1050 if
[ -d
$(TARGET_SUBDIR
)/$${dir} ]; then \
1051 r
=`pwd`; export r
; \
1052 $(CC_FOR_TARGET
) --print-multi-lib
> $(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
2> /dev
/null
; \
1053 if
[ -s
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
]; then \
1054 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
]; then \
1055 if cmp
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
> /dev
/null
; then \
1056 rm -f
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
; \
1058 echo
"Multilibs changed for $${dir}, reconfiguring"; \
1059 rm -f
$(TARGET_SUBDIR
)/$${dir}/multilib.out
$(TARGET_SUBDIR
)/$${dir}/Makefile
; \
1060 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1063 mv
$(TARGET_SUBDIR
)/$${dir}/tmpmulti.out
$(TARGET_SUBDIR
)/$${dir}/multilib.out
; \
1066 fi
; exit
0 # break command into two pieces
1067 @
dir=`echo $@ | sed -e 's/configure-target-//'`; \
1068 if
[ ! -d
$(TARGET_SUBDIR
) ]; then \
1070 elif
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1072 elif echo
" $(TARGET_CONFIGDIRS) " | grep
" $${dir} " >/dev
/null
2>&1; then \
1073 if
[ -d
$(srcdir)/$${dir} ]; then \
1074 [ -d
$(TARGET_SUBDIR
)/$${dir} ] || mkdir
$(TARGET_SUBDIR
)/$${dir};\
1075 r
=`pwd`; export r
; \
1076 s
=`cd $(srcdir); pwd`; export s
; \
1078 AR
="$(AR_FOR_TARGET)"; export AR
; \
1079 AS
="$(AS_FOR_TARGET)"; export AS
; \
1080 CC
="$(CC_FOR_TARGET)"; export CC
; \
1081 CFLAGS
="$(CFLAGS_FOR_TARGET)"; export CFLAGS
; \
1082 CXX
="$(CXX_FOR_TARGET)"; export CXX
; \
1083 CXXFLAGS
="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS
; \
1084 DLLTOOL
="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL
; \
1085 LD
="$(LD_FOR_TARGET)"; export LD
; \
1086 LDFLAGS
="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS
; \
1087 NM
="$(NM_FOR_TARGET)"; export NM
; \
1088 RANLIB
="$(RANLIB_FOR_TARGET)"; export RANLIB
; \
1089 echo Configuring in
$(TARGET_SUBDIR
)/$${dir}; \
1090 cd
$(TARGET_SUBDIR
)/$${dir}; \
1093 topdir
=$(srcdir) ;; \
1095 case
"$(TARGET_SUBDIR)" in \
1096 .
) topdir
="../$(srcdir)" ;; \
1097 *) topdir
="../../$(srcdir)" ;; \
1100 if
[ "$(srcdir)" = "." ] ; then \
1101 if
[ "$(TARGET_SUBDIR)" != "." ] ; then \
1102 if
$(SHELL
) $$s/symlink-tree
$${topdir}/$${dir} "no-such-file" ; then \
1103 if
[ -f Makefile
]; then \
1104 if
$(MAKE
) distclean; then \
1118 srcdiroption
="--srcdir=."; \
1121 srcdiroption
="--srcdir=$${topdir}/$${dir}"; \
1122 libsrcdir
="$$s/$${dir}"; \
1124 if
[ -f
$${libsrcdir}/configure
] ; then \
1125 $(SHELL
) $${libsrcdir}/configure \
1126 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1127 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1129 $(SHELL
) $$s/configure \
1130 $(CONFIG_ARGUMENTS
) $${srcdiroption} \
1131 --with-target-subdir
="$(TARGET_SUBDIR)"; \
1140 # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
1141 # To build a target all-X means to cd to X and make all.
1142 .PHONY
: $(ALL_TARGET_MODULES
)
1143 $(ALL_TARGET_MODULES
):
1144 @
dir=`echo $@ | sed -e 's/all-target-//'`; \
1145 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1146 r
=`pwd`; export r
; \
1147 s
=`cd $(srcdir); pwd`; export s
; \
1149 (cd
$(TARGET_SUBDIR
)/$${dir}; $(MAKE
) $(TARGET_FLAGS_TO_PASS
) all); \
1154 # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
1155 # To build a target install-X means to cd to X and make install.
1156 .PHONY
: $(CHECK_TARGET_MODULES
)
1157 $(CHECK_TARGET_MODULES
):
1158 @
dir=`echo $@ | sed -e 's/check-target-//'`; \
1159 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1160 r
=`pwd`; export r
; \
1161 s
=`cd $(srcdir); pwd`; export s
; \
1163 (cd
$(TARGET_SUBDIR
)/$${dir};$(MAKE
) $(TARGET_FLAGS_TO_PASS
) check);\
1168 # This rule is used to install the modules which use
1169 # TARGET_FLAGS_TO_PASS. To build a target install-X means to cd to X
1171 .PHONY
: $(INSTALL_TARGET_MODULES
)
1172 $(INSTALL_TARGET_MODULES
): install-dirs
1173 @
dir=`echo $@ | sed -e 's/install-target-//'`; \
1174 if
[ -f
$(TARGET_SUBDIR
)/$${dir}/Makefile
] ; then \
1175 r
=`pwd`; export r
; \
1176 s
=`cd $(srcdir); pwd`; export s
; \
1178 (cd
$(TARGET_SUBDIR
)/$${dir}; \
1179 $(MAKE
) $(TARGET_FLAGS_TO_PASS
) install); \
1184 # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
1185 # To build a target all-X means to cd to X and make all.
1186 .PHONY
: $(ALL_X11_MODULES
)
1188 @
dir=`echo $@ | sed -e 's/all-//'`; \
1189 if
[ -f .
/$${dir}/Makefile
] ; then \
1190 r
=`pwd`; export r
; \
1191 s
=`cd $(srcdir); pwd`; export s
; \
1194 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) all); \
1199 # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
1200 # To build a target check-X means to cd to X and make all.
1201 .PHONY
: $(CHECK_X11_MODULES
)
1202 $(CHECK_X11_MODULES
):
1203 @
dir=`echo $@ | sed -e 's/check-//'`; \
1204 if
[ -f .
/$${dir}/Makefile
] ; then \
1205 r
=`pwd`; export r
; \
1206 s
=`cd $(srcdir); pwd`; export s
; \
1209 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) check); \
1214 # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
1215 # To build a target install-X means to cd to X and make install.
1216 .PHONY
: $(INSTALL_X11_MODULES
)
1217 $(INSTALL_X11_MODULES
):
1218 @
dir=`echo $@ | sed -e 's/install-//'`; \
1219 if
[ -f .
/$${dir}/Makefile
] ; then \
1220 r
=`pwd`; export r
; \
1221 s
=`cd $(srcdir); pwd`; export s
; \
1224 $(MAKE
) $(FLAGS_TO_PASS
) $(X11_FLAGS_TO_PASS
) install); \
1229 # gcc is the only module which uses GCC_FLAGS_TO_PASS.
1232 @if
[ -f .
/gcc
/Makefile
] ; then \
1233 r
=`pwd`; export r
; \
1234 s
=`cd $(srcdir); pwd`; export s
; \
1236 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) all); \
1241 .PHONY
: all-bootstrap
1243 @if
[ -f .
/gcc
/Makefile
] ; then \
1244 r
=`pwd`; export r
; \
1245 s
=`cd $(srcdir); pwd`; export s
; \
1247 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) bootstrap
); \
1254 @if
[ -f .
/gcc
/Makefile
] ; then \
1255 r
=`pwd`; export r
; \
1256 s
=`cd $(srcdir); pwd`; export s
; \
1258 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) check); \
1265 @if
[ -f .
/gcc
/Makefile
] ; then \
1266 r
=`pwd`; export r
; \
1267 s
=`cd $(srcdir); pwd`; export s
; \
1269 (cd gcc
; $(MAKE
) $(GCC_FLAGS_TO_PASS
) install); \
1275 # EXPERIMENTAL STUFF
1276 # This rule is used to install the modules which use FLAGS_TO_PASS.
1277 # To build a target install-X means to cd to X and make install.
1278 .PHONY
: install-dosrel
1279 install-dosrel
: install-dirs
info
1280 @
dir=`echo $@ | sed -e 's/install-//'`; \
1281 if
[ -f .
/$${dir}/Makefile
] ; then \
1282 r
=`pwd`; export r
; \
1283 s
=`cd $(srcdir); pwd`; export s
; \
1285 (cd
$${dir}; $(MAKE
) $(FLAGS_TO_PASS
) install); \
1290 install-dosrel-fake
:
1293 # This is a list of inter-dependencies among modules.
1295 all-autoconf
: all-m4
1298 all-binutils
: all-libiberty all-opcodes all-bfd all-flex all-byacc
1302 all-dejagnu
: all-tcl all-expect all-tk
1303 all-diff
: all-libiberty
1305 all-emacs19
: all-byacc
1307 configure-target-examples
: $(ALL_GCC
)
1308 all-target-examples
: configure-target-examples
1309 all-expect
: all-tcl all-tk
1310 all-fileutils
: all-libiberty
1313 all-flex
: all-libiberty all-byacc
1314 all-gas
: all-libiberty all-opcodes all-bfd
1318 all-gcc
: all-libiberty all-byacc all-binutils all-gas all-ld
1319 all-bootstrap
: all-libiberty all-byacc all-binutils all-gas all-ld
1320 GDB_TK
= all-tk all-tcl
1321 all-gdb
: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim
$(gdbnlmrequirements
) $(GDB_TK
)
1322 all-gprof
: all-libiberty all-bfd all-opcodes
1323 all-grep
: all-libiberty
1324 all-grez
: all-libiberty all-bfd all-opcodes
1325 all-gui
: all-gdb all-libproc all-target-librx
1327 all-gzip
: all-libiberty
1328 all-hello
: all-libiberty
1330 all-inet
: all-tcl all-send-pr all-perl
1331 all-ispell
: all-emacs19
1332 all-itcl
: all-tcl all-tk
1333 all-ld
: all-libiberty all-bfd all-opcodes all-byacc all-flex
1334 configure-target-libg
++: $(ALL_GCC
) configure-target-librx
1335 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
++
1336 configure-target-libgloss
: $(ALL_GCC
)
1337 all-target-libgloss
: configure-target-libgloss configure-target-newlib
1338 configure-target-libio
: $(ALL_GCC
)
1339 all-target-libio
: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
1341 configure-target-librx
: $(ALL_GCC
) configure-target-newlib
1342 all-target-librx
: configure-target-librx
1343 configure-target-libstdc
++: $(ALL_GCC
)
1344 all-target-libstdc
++: configure-target-libstdc
++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
1345 all-m4
: all-libiberty
1346 all-make
: all-libiberty
1348 configure-target-newlib
: $(ALL_GCC
)
1349 all-target-newlib
: configure-target-newlib all-binutils all-gas all-gcc
1350 all-opcodes
: all-bfd all-libiberty
1351 all-patch
: all-libiberty
1353 all-prms
: all-libiberty
1356 all-recode
: all-libiberty
1357 all-sed
: all-libiberty
1358 all-send-pr
: all-prms
1360 all-sim
: all-libiberty all-bfd all-opcodes
1361 all-sn
: all-tcl all-tk all-itcl all-db
1362 all-tar
: all-libiberty
1364 all-tclX
: all-tcl all-tk
1366 all-texinfo
: all-libiberty
1368 all-tgas
: all-libiberty all-bfd all-opcodes
1371 all-target-winsup
: all-target-newlib all-target-libiberty all-target-librx all-target-libio configure-target-winsup
1372 configure-target-winsup
: configure-target-newlib
1373 all-uudecode
: all-libiberty
1374 configure-target-libiberty
: $(ALL_GCC
)
1375 all-target-libiberty
: configure-target-libiberty all-gcc all-ld all-target-newlib
1376 all-target
: $(ALL_TARGET_MODULES
)
1377 install-target
: $(INSTALL_TARGET_MODULES
)
1379 ### other supporting targets
1384 .PHONY
: install-dirs
1386 @for i in ..
$(MAKEDIRS
) ; do \
1387 if
[ x
$$i != x..
]; then \
1388 echo Making
$$i...
; \
1389 parent
=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
1390 if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
1391 if
[ ! -d
$$i ] ; then \
1392 if mkdir
$$i ; then \
1403 dir.
info: do-install-info
1404 if
[ -f
$(srcdir)/texinfo
/gen-info-dir
] ; then \
1405 $(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
; \
1406 mv
-f
dir.
info.new
dir.
info ; \
1411 @echo
"Building a full distribution of this tree isn't done"
1412 @echo
"via 'make dist'. Check out the etc/ subdirectory"
1416 # Right now this just builds TAGS in each subdirectory. emacs19 has the
1417 # ability to use several tags files at once, so there is probably no need
1418 # to combine them into one big TAGS file (like CVS 1.3 does). We could
1419 # (if we felt like it) have this Makefile write a piece of elisp which
1420 # the user could load to tell emacs19 where all the TAGS files we just
1424 # with the gnu make, this is done automatically.
1426 Makefile
: Makefile.in configure.in
$(host_makefile_frag
) $(target_makefile_frag
)
1427 $(SHELL
) .
/config.status
1430 # Support for building net releases
1432 # Files in devo used in any net release.
1433 # ChangeLog omitted because it may refer to files which are not in this
1434 # distribution (perhaps it would be better to include it anyway).
1435 DEVO_SUPPORT
= README Makefile.in configure configure.in \
1436 config.guess config.sub config move-if-change \
1437 mpw-README mpw-build.in mpw-config.in mpw-configure \
1438 COPYING COPYING.LIB
install.sh config-ml.in symlink-tree
1440 # Files in devo/etc used in any net release.
1441 # ChangeLog omitted because it may refer to files which are not in this
1442 # distribution (perhaps it would be better to include it anyway).
1443 ETC_SUPPORT
= Makefile.in configure configure.in standards.texi \
1444 make-stds.texi standards.
info*
1446 # When you use `make setup-dirs' or `make taz' you should always redefine
1448 SUPPORT_FILES
= list-of-support-files-for-tool-in-question
1449 # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
1450 DISTBISONFILES
= binutils
/Makefile.in gas
/Makefile.in gdb
/Makefile.in
1454 taz
: $(DEVO_SUPPORT
) $(SUPPORT_FILES
) \
1455 texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1456 # Make sure "diststuff" files get built properly.
1457 for f in
$(DISTBISONFILES
) ; do \
1458 if
[ -r
$$f ]; then \
1459 sed
'/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp
; \
1463 # Take out texinfo from a few places; make simple BISON=bison line.
1464 sed
-e
'/^all\.normal: /s/\all-texinfo //' \
1465 -e
'/^ install-texinfo /d' \
1466 -e
'/^BISON = /,/^$$/d' \
1467 -e
'/^# BISON:/s/.*/BISON = bison -y/' \
1469 mv
-f tmp Makefile.in
1471 $(start-sanitize-Sanitize
)
1472 @if
[ -f .Sanitize
] ; then echo
"RUN Sanitize FIRST!" ; false
; fi
;
1473 $(end-sanitize-Sanitize
)
1475 [ -z
"$(CONFIGURE_TARGET_MODULES)" ] \
1476 ||
$(MAKE
) $(CONFIGURE_TARGET_MODULES
) ALL_GCC
="" \
1477 CC_FOR_TARGET
="$(CC)" CXX_FOR_TARGET
="$(CXX)"
1478 # Make links, and run "make diststuff" or "make info" when needed.
1479 rm -rf proto-toplev
; mkdir proto-toplev
1480 set
-e
; dirs
="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
1481 for d in
$$dirs ; do \
1482 if
[ -d
$$d ]; then \
1483 if
[ ! -f
$$d/Makefile
] ; then true
; \
1484 elif grep
'^diststuff:' $$d/Makefile
>/dev
/null
; then \
1485 (cd
$$d ; $(MAKE
) diststuff
) || exit
1 ; \
1486 elif grep
'^info:' $$d/Makefile
>/dev
/null
; then \
1487 (cd
$$d ; $(MAKE
) info ) || exit
1 ; \
1489 if
[ -d
$$d/proto-
$$d.
dir ]; then \
1490 ln
-s ..
/$$d/proto-
$$d.
dir proto-toplev
/$$d ; \
1492 ln
-s ..
/$$d proto-toplev
/$$d ; \
1494 else ln
-s ..
/$$d proto-toplev
/$$d ; fi
; \
1496 cd etc
; $(MAKE
) info
1499 mkdir proto-toplev
/etc
1500 (cd proto-toplev
/etc
; \
1501 for i in
$(ETC_SUPPORT
); do \
1502 ln
-s ..
/..
/etc
/$$i .
; \
1505 # Take out texinfo from configurable dirs
1506 rm proto-toplev
/configure.in
1507 sed
-e
'/^host_tools=/s/texinfo //' \
1508 <configure.in
>proto-toplev
/configure.in
1510 mkdir proto-toplev
/texinfo
1511 ln
-s ..
/..
/texinfo
/texinfo.
tex proto-toplev
/texinfo
/
1512 ln
-s ..
/..
/texinfo
/gpl.texinfo proto-toplev
/texinfo
/
1513 ln
-s ..
/..
/texinfo
/lgpl.texinfo proto-toplev
/texinfo
/
1514 if
test -r texinfo
/util
/tex3patch
; then \
1515 mkdir proto-toplev
/texinfo
/util
&& \
1516 ln
-s ..
/..
/..
/texinfo
/util
/tex3patch proto-toplev
/texinfo
/util
; \
1518 chmod og
=u
`find . -print`
1519 $(MAKE
) -f Makefile.in do-tar-gz TOOL
=$(TOOL
) \
1520 VER
=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`
1523 echo
"==> Making $(TOOL)-$(VER).tar.gz"
1524 -rm -f
$(TOOL
)-$(VER
)
1525 ln
-s proto-toplev
$(TOOL
)-$(VER
)
1526 tar cfh
$(TOOL
)-$(VER
).
tar $(TOOL
)-$(VER
)
1527 $(GZIPPROG
) -v
-9 $(TOOL
)-$(VER
).
tar
1529 TEXINFO_SUPPORT
= texinfo
/texinfo.
tex texinfo
/gpl.texinfo texinfo
/lgpl.texinfo
1530 DIST_SUPPORT
= $(DEVO_SUPPORT
) $(TEXINFO_SUPPORT
)
1533 GAS_SUPPORT_DIRS
= bfd
include libiberty opcodes setup.com makefile.vms
1534 gas.
tar.gz
: $(DIST_SUPPORT
) $(GAS_SUPPORT_DIRS
) gas
1535 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1536 SUPPORT_FILES
="$(GAS_SUPPORT_DIRS)"
1538 # The FSF "binutils" release includes gprof and ld.
1539 .PHONY
: binutils.
tar.gz
1540 BINUTILS_SUPPORT_DIRS
= bfd gas
include libiberty opcodes
ld gprof setup.com makefile.vms
1541 binutils.
tar.gz
: $(DIST_SUPPORT
) $(BINUTILS_SUPPORT_DIRS
) binutils
1542 $(MAKE
) -f Makefile.in taz TOOL
=binutils \
1543 SUPPORT_FILES
="$(BINUTILS_SUPPORT_DIRS) makeall.bat configure.bat"
1545 .PHONY
: gas
+binutils.
tar.gz
1546 GASB_SUPPORT_DIRS
= $(GAS_SUPPORT_DIRS
) binutils
ld gprof
1547 gas
+binutils.
tar.gz
: $(DIST_SUPPORT
) $(GASB_SUPPORT_DIRS
) gas
1548 $(MAKE
) -f Makefile.in taz TOOL
=gas \
1549 SUPPORT_FILES
="$(GASB_SUPPORT_DIRS) makeall.bat configure.bat"
1551 .PHONY
: libg
++.
tar.gz
1552 LIBGXX_SUPPORT_DIRS
=include libstdc
++ libio librx libiberty
1553 libg
++.
tar.gz
: $(DIST_SUPPORT
) libg
++
1554 $(MAKE
) -f Makefile.in taz TOOL
=libg
++ \
1555 SUPPORT_FILES
="$(LIBGXX_SUPPORT_DIRS)"
1557 GNATS_SUPPORT_DIRS
=include libiberty send-pr
1558 gnats.
tar.gz
: $(DIST_SUPPORT
) $(GNATS_SUPPORT_DIRS
) gnats
1559 $(MAKE
) -f Makefile.in taz TOOL
=gnats \
1560 SUPPORT_FILES
="$(GNATS_SUPPORT_DIRS)"
1563 GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline sim utils
1564 GDBTK_SUPPORT_DIRS
= `if [ -d tcl -a -d tk ] ; then echo tcl tk ; fi`
1565 gdb.
tar.gz
: $(DIST_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb
1566 $(MAKE
) -f Makefile.in taz TOOL
=gdb \
1567 SUPPORT_FILES
="$(GDB_SUPPORT_DIRS) $(GDBTK_SUPPORT_DIRS)"
1569 .PHONY
: newlib.
tar.gz
1570 NEWLIB_SUPPORT_DIRS
=libgloss
1571 # taz configures for the sun4 target which won't configure newlib.
1572 # We need newlib configured so that the .info files are made.
1573 # Unfortunately, it is not enough to just configure newlib separately:
1574 # taz will build the .info files but since SUBDIRS won't contain newlib,
1575 # distclean won't be run (leaving Makefile, config.status, and the tmp files
1576 # used in building the .info files, eg: *.def, *.ref).
1577 # The problem isn't solvable however without a lot of extra work because
1578 # target libraries are built in subdir $(target_alias) which gets nuked during
1579 # the make distclean. For now punt on the issue of shipping newlib info files
1580 # with newlib net releases and wait for a day when some native target (sun4?)
1581 # supports newlib (if only minimally).
1582 newlib.
tar.gz
: $(DIST_SUPPORT
) $(NEWLIB_SUPPORT_DIRS
) newlib
1583 $(MAKE
) -f Makefile.in taz TOOL
=newlib \
1584 SUPPORT_FILES
="$(NEWLIB_SUPPORT_DIRS)" \
1585 DEVO_SUPPORT
="$(DEVO_SUPPORT) COPYING.NEWLIB" newlib
1590 # start-sanitize-chill
1591 ## This is ugly, but I don't want GNU make to put these variables in
1592 ## the environment. Older makes will see this as a set of targets
1593 ## with no dependencies and no actions.
1594 unexport CHILLFLAGS CHILL_LIB CHILL_FOR_TARGET
:
1595 # end-sanitize-chill
1597 # end of Makefile.in