# Makefile for directory with subdirs to build.
# Copyright (C) 1990, 1991, 1992 Free Software Foundation
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
INSTALL_PROGRAM
= $(INSTALL
)
INSTALL_DATA
= $(INSTALL
)
BISON
= `if [ -f $${rootme}/byacc/byacc ] ; \
then echo $${rootme}/byacc/byacc ; \
LEX
= `if [ -f $${rootme}/flex/flex ] ; \
then echo $${rootme}/flex/flex ; \
MAKEINFO
= `if [ -f $${rootme}/texinfo/C/makeinfo ] ; \
then echo $${rootme}/texinfo/C/makeinfo ; \
# C compiler to use to create programs which must be run in the build
SUBDIRS
= libiberty mmalloc readline opcodes bfd gdb binutils
ld gas tgas gcc libg
++ newlib
INSTALL_TARGET
= install.
all
if [ -f $${rootme}/gcc/Makefile ] ; then \
echo $${rootme}/gcc/gcc -B$${rootme}/gcc/; \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
t='$(program_transform_name)'; echo gcc | sed -e '' $$t; \
if [ -f $${rootme}/gas/Makefile ] ; then \
echo $${rootme}/gas/as.new ; \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
if [ -f $${rootme}/binutils/Makefile ] ; then \
echo $${rootme}/binutils/ar ; \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
if [ -f $${rootme}/binutils/Makefile ] ; then \
echo $${rootme}/binutils/ranlib ; \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
if [ -f $${rootme}/binutils/Makefile ] ; then \
echo $${rootme}/binutils/nm ; \
if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
if [ -f $${rootme}/gcc/Makefile ] ; then \
if [ -f $${rootme}/newlib/Makefile ] ; then \
echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
echo -I$${rootme}/gcc/include ; \
#### host and target specific makefile fragments come in here.
# Flags to pass down to sub-makes
"exec_prefix=$(exec_prefix)" \
"LOADLIBES=$(LOADLIBES)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)"
# Flags to pass down to makes which are built with the target
# environment (e.g. libg++, xiberty, newlib).
"exec_prefix=$(exec_prefix)" \
"LOADLIBES=$(LOADLIBES)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
"CC_FOR_BUILD=$(CC_FOR_BUILD)" \
"RANLIB=$(RANLIB_FOR_TARGET)" \
# The first rule in the file had better be this one. Don't put any above it.
.PHONY
: all info install-info clean-info
@rootme
=`pwd` ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) subdir_do DO
=info "DODIRS=$(SUBDIRS)"
@rootme
=`pwd` ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=check "DODIRS=$(SUBDIRS)" subdir_do
@rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=clean-info
"DODIRS=$(SUBDIRS)" subdir_do
install-info
: install-info-dirs
force
-parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
-if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
@rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) DO
=install-info
"DODIRS=$(SUBDIRS)" subdir_do
@rootme
='pwd' ; export rootme
; $(MAKE
) $(FLAGS_TO_PASS
) dir.
info install-dir.
info
-parent
=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
-if
[ -d
$(infodir) ] ; then true
; else mkdir
$(infodir) ; fi
$(INSTALL_DATA
) dir.
info $(infodir)/dir.
info
all.normal
: all-autoconf all-libiberty all-mmalloc \
all-byacc all-flex all-opcodes all-bfd all-ld all-gas all-tgas \
all-gcc all-binutils all-libg
++ all-readline all-gdb \
all-make all-rcs all-cvs all-diff all-grep \
all-patch all-emacs all-ispell all-etc \
all-newlib all-gprof all-send_pr all-libm
all.cross
: all-libiberty all-mmalloc all-gas all-byacc all-flex all-ld \
all-opcodes all-bfd all-readline all-gdb all-binutils all-gcc \
clean: clean-autoconf clean-libiberty clean-mmalloc \
clean-bfd clean-newlib clean-binutils clean-flex \
clean-byacc clean-ld clean-gas clean-etc clean-opcodes \
clean-gcc clean-readline clean-glob clean-gdb \
clean-make clean-diff clean-grep clean-rcs \
clean-cvs clean-patch clean-emacs clean-ispell \
clean-libg
++ clean-gprof clean-send_pr clean-libm clean-xiberty
-rm -rf
*.a TEMP errs core
*.o
*~ \
#* TAGS *.E
install.
all: install-no-fixedincludes
@if
[ -f .
/gcc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install-headers
) ; \
install-no-fixedincludes
: install-dirs gcc-no-fixedincludes \
@if
[ -f .
/gcc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install install-man \
"INSTALL_HEADERS=install-common-headers install-float-h install-limits-h") ; \
install.cross
: install-dirs install-libiberty install-mmalloc \
install-binutils install-opcodes install-byacc install-flex \
install-ld install-gas install-readline \
install-glob install-gdb install-mmalloc \
install-newlib install-gcc install-etc
@if
[ -f .
/autoconf
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/autoconf
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/autoconf
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/autoconf
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/etc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/etc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/etc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
(cd .
/etc
; $(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/libiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/libiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/libiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-xiberty
: all-gcc all-newlib
@if
[ -f .
/xiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/xiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/xiberty
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd`; export srcroot
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/mmalloc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/mmalloc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/mmalloc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-texinfo
: all-libiberty
@if
[ -f .
/texinfo
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/texinfo
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/texinfo
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/bfd
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/bfd
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/bfd
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/opcodes
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/opcodes
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/opcodes
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-binutils
: all-opcodes all-libiberty all-bfd all-flex
@if
[ -f .
/binutils
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/binutils
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/binutils
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-newlib
: all-binutils all-ld all-gas all-gcc
@if
[ -f .
/newlib
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/newlib
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/newlib
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
all-gprof
: all-libiberty all-bfd
@if
[ -f .
/gprof
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/gprof
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/gprof
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/byacc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/byacc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/byacc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/flex
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/flex
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/flex
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-gcc
: all-libiberty all-byacc
@if
[ -f .
/gcc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/gcc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/gcc
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/readline
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/readline
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/readline
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/glob
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/glob
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/glob
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-gas
: all-libiberty all-opcodes all-bfd
@if
[ -f .
/gas
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/gas
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/gas
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-tgas
: all-libiberty all-bfd
@if
[ -f .
/tgas
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
all-ld
: all-libiberty all-bfd all-byacc all-flex
@if
[ -f .
/ld/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/ld/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/ld/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-gdb
: all-bfd all-opcodes all-libiberty all-mmalloc all-readline all-glob all-byacc
@if
[ -f .
/gdb
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/gdb
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/gdb
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/make
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/make
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/make
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/diff
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/diff
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/diff
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/grep
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/grep
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/grep
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/rcs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/rcs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/rcs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/cvs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/cvs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/cvs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/patch
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/patch
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/patch
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) \
man1dir=$(man1dir) install) ; \
@if
[ -f .
/emacs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/emacs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/emacs
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/ispell
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/ispell
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/ispell
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/send_pr
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/send_pr
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/send_pr
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
@if
[ -f .
/libm
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/libm
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/libm
/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) install) ; \
all-libg
++: all-gas all-ld all-gcc
@if
[ -f .
/libg
++/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) all) ; \
@if
[ -f .
/libg
++/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) clean) ; \
@if
[ -f .
/libg
++/Makefile
] ; then \
rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) install) ; \
### other supporting targets
if
[ -f clib
/Makefile
] ; then \
(cd clib
; $(MAKE
) $(FLAGS_TO_PASS
)) ; \
@for i in
$(DODIRS
); do \
if
[ -f .
/$$i/localenv
] ||
[ -f .
/$$i/Makefile
] ; then \
libg
++ | xiberty | newlib
) \
if
(rootme
=`pwd` ; export rootme
; \
srcroot
=`cd $(srcdir); pwd` ; export srcroot
; \
$(MAKE
) $(TARGET_FLAGS_TO_PASS
) $(DO
)) ; then true
; \
if
(rootme
=`pwd` ; export rootme
; \
$(MAKE
) $(FLAGS_TO_PASS
) $(DO
)) ; then true
; \
# The "else true" stuff is for Ultrix; the shell returns the exit code
# of the "if" command, if no commands are run in the "then" or "else" part,
for i in
$(MAKEDIRS
) ; do \
parent
=`echo $$i|sed -e 's@/[^/]*$$@@'`; \
if
[ -d
$$parent ] ; then true
; else mkdir
$$parent ; fi
; \
if
[ -d
$(prefix) ] ; then true
; else mkdir
$(prefix) ; fi
# if [ -d $(datadir) ] ; then true ; else mkdir $(datadir) ; fi
# if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
$(srcdir)/texinfo
/gen-info-dir
$(infodir) $(srcdir)/texinfo
/dir.info-template
> dir.
info.new
mv
-f
dir.
info.new
dir.
info
# with the gnu make, this is done automatically.
Makefile
: $(srcdir)/Makefile.in
$(host_makefile_frag
) $(target_makefile_frag
)
# Build GDB distributions that contain BFD, Include, Libiberty, Readline, etc
DEVO_SUPPORT
= README cfg-paper.texi Makefile.in configure configure.in \
config.sub config configure.man configure.texi move-if-change \
GDB_SUPPORT_DIRS
= bfd
include libiberty mmalloc opcodes readline glob
GDB_SUPPORT_FILES
= $(GDB_SUPPORT_DIRS
) texinfo
/fsf
/texinfo.
tex
chmod og
=u
`find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
(cd gdb
; $(MAKE
) -f Makefile.in make-proto-gdb.
dir)
$(MAKE
) $(MFLAGS
) -f Makefile.in make-gdb.
tar.Z
make-gdb.
tar.Z
: $(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
) gdb texinfo
/fsf
/texinfo.
tex
rm -rf proto-toplev
; mkdir proto-toplev
ln
-s ..
/gdb
/proto-gdb.
dir proto-toplev
/gdb
(cd proto-toplev
; for i in
$(DEVO_SUPPORT
) $(GDB_SUPPORT_DIRS
); do \
# Put only one copy (four hard links) of COPYING in the tar file.
rm proto-toplev
/bfd
/COPYING
ln proto-toplev
/gdb
/COPYING proto-toplev
/bfd
/COPYING
rm proto-toplev
/include/COPYING
ln proto-toplev
/gdb
/COPYING proto-toplev
/include/COPYING
rm proto-toplev
/readline
/COPYING
ln proto-toplev
/gdb
/COPYING proto-toplev
/readline
/COPYING
# Take out texinfo from configurable dirs
rm proto-toplev
/configure.in
sed
'/^configdirs=/s/texinfo //' <configure.in
>proto-toplev
/configure.in
# Take out glob from buildable dirs
rm proto-toplev
/Makefile.in
sed
-e
'/^SUBDIRS =/s/glob //' \
-e
'/^all\.normal: /s/\all-texinfo //' \
-e
'/^clean: /s/clean-texinfo //' \
-e
'/^install\.all: /s/install-texinfo //' \
<Makefile.in
>proto-toplev
/Makefile.in
mkdir proto-toplev
/texinfo
mkdir proto-toplev
/texinfo
/fsf
ln
-s ..
/..
/..
/texinfo
/fsf
/texinfo.
tex proto-toplev
/texinfo
/fsf
/
chmod og
=u
`find proto-toplev -print`
(VER
=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
echo
"==> Making gdb-$$VER.tar.Z"; \
ln
-s proto-toplev gdb-
$$VER; \
| compress
-v
>gdb-
$$VER.
tar.Z
)