binutils-gdb/Makefile.in

1946 lines
40 KiB
Makefile
Raw Normal View History

1991-04-05 03:01:18 +08:00
#
1991-04-11 10:41:53 +08:00
# Makefile for directory with subdirs to build.
1992-03-11 10:01:42 +08:00
# Copyright (C) 1990, 1991, 1992 Free Software Foundation
1991-04-05 03:01:18 +08:00
#
1991-08-22 16:15:49 +09:00
# 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. */
#
1991-04-05 03:01:18 +08:00
srcdir = .
1991-11-01 08:25:28 +08:00
prefix = /usr/local
1991-04-05 03:01:18 +08:00
1992-03-11 10:01:42 +08:00
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
datadir = $(prefix)/lib
1992-03-11 10:01:42 +08:00
mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
1992-03-11 10:01:42 +08:00
infodir = $(prefix)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
SHELL = /bin/sh
INSTALL = install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL)
1991-08-26 08:40:24 +09:00
AR = ar
AR_FLAGS = qc
RANLIB = ranlib
1991-04-05 03:01:18 +08:00
BISON = `if [ -d $${rootme}/bison ] ; \
then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
else echo bison -y ; fi`
MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
then echo $${rootme}/texinfo/C/makeinfo ; \
else echo makeinfo ; fi`
1992-03-11 10:01:42 +08:00
SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ libgcc clib newlib
1991-04-25 01:52:32 +09:00
OTHERS =
ALL = all.normal
1991-12-10 08:49:07 +08:00
INSTALL_TARGET = install.all
1991-11-11 18:17:11 +08:00
### for debugging
#GCCVERBOSE=-v
1991-04-05 03:01:18 +08:00
#### host and target specific makefile fragments come in here.
###
1991-04-05 03:01:18 +08:00
.PHONY: all info install-info clean-info
all: $(ALL)
1992-02-25 09:08:38 +08:00
info: cfg-paper.info configure.info
rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
1992-03-11 10:01:42 +08:00
check:; rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=check \
"DODIRS=`echo $(SUBDIRS) | sed -e \"s/libg\+\+//\"" \
"MAKEINFO=$(MAKEINFO)"
if [ -d libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
(cd libg++ ; \
$(MAKE) check "CC=$${rootme}/gcc/gcc \
-B$${rootme}/gcc/") ; \
fi
clean-info:
$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
1992-02-25 09:08:38 +08:00
rm -f cfg-paper.info* configure.info*
1991-12-19 08:22:09 +08:00
cfg-paper.info: cfg-paper.texi
rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
1991-12-19 08:22:09 +08:00
configure.info: configure.texi
rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
1991-12-12 14:25:48 +08:00
install-info: install-info-dirs force
1992-02-25 09:08:38 +08:00
[ -d $(infodir) ] || mkdir $(infodir)
$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
1991-12-19 08:22:09 +08:00
$(INSTALL_DATA) cfg-paper.info $(infodir)/cfg-paper.info
$(INSTALL_DATA) configure.info $(infodir)/configure.info
1991-12-12 14:25:48 +08:00
$(MAKE) dir.info install-dir.info
install-dir.info:
$(INSTALL_DATA) dir.info $(infodir)/dir.info
1992-02-26 10:20:45 +08:00
# clib send_pr
1992-03-11 10:01:42 +08:00
# all-libgcc
1992-03-11 13:57:50 +08:00
all.normal: .stmp-texinfo .stmp-bison .stmp-byacc .stmp-ld \
.stmp-gas .stmp-gcc .stmp-binutils \
.stmp-libg++ .stmp-gdb .stmp-make .stmp-cvs .stmp-patch .stmp-emacs \
.stmp-ispell .stmp-fileutils \
.stmp-newlib
all.cross: .stmp-bison .stmp-ld .stmp-libgcc .stmp-gdb
# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
1992-03-11 10:01:42 +08:00
clean: clean-stamps clean-libiberty clean-texinfo clean-bfd clean-newlib clean-binutils \
1992-03-11 13:57:50 +08:00
clean-bison clean-byacc clean-ld clean-gas \
1992-03-11 10:01:42 +08:00
clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
clean-make clean-diff clean-grep clean-rcs clean-gdbm \
1992-03-11 10:01:42 +08:00
clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils \
clean-libg++
-rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
clean-stamps:
1992-03-11 13:57:50 +08:00
-rm -f .stmp-*
install: $(INSTALL_TARGET) $(srcdir)/configure.man
$(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
1991-12-10 08:49:07 +08:00
install.all: install-dirs install-libiberty install-texinfo \
1992-03-11 10:01:42 +08:00
install-bfd install-binutils install-bison install-byacc \
1992-03-11 13:57:50 +08:00
install-ld install-gas install-gcc \
1992-03-11 10:01:42 +08:00
install-libgcc install-readline install-glob install-gdb \
install-make install-cvs install-patch install-emacs \
install-ispell install-fileutils install-libg++ install-newlib
1991-12-10 08:49:07 +08:00
install.cross: install-dirs install-libiberty install-binutils install-bison \
1992-03-11 10:01:42 +08:00
install-byacc install-ld install-gas install-libgcc \
1991-12-10 08:49:07 +08:00
install-readline install-glob install-gdb
### libiberty
1992-03-11 13:57:50 +08:00
all-libiberty: .stmp-libiberty
.stmp-libiberty:
1992-03-11 10:01:42 +08:00
if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-libiberty
clean-libiberty: force
1992-03-11 10:01:42 +08:00
if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-libiberty: force
1992-03-11 10:01:42 +08:00
if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### texinfo
1992-03-11 13:57:50 +08:00
all-texinfo: .stmp-libiberty .stmp-texinfo
.stmp-texinfo:
1992-03-11 10:01:42 +08:00
if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-texinfo
clean-texinfo: force
1992-03-11 10:01:42 +08:00
if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-texinfo: force
1992-03-11 10:01:42 +08:00
if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### bfd
1992-03-11 13:57:50 +08:00
all-bfd: .stmp-bfd
.stmp-bfd:
1992-03-11 10:01:42 +08:00
if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-bfd
clean-bfd: force
1992-03-11 10:01:42 +08:00
if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-bfd: force
1992-03-11 10:01:42 +08:00
if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### binutils
1992-03-11 13:57:50 +08:00
all-binutils: .stmp-libiberty .stmp-bfd .stmp-binutils
.stmp-binutils:
1992-03-11 10:01:42 +08:00
if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./binutils; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-binutils
clean-binutils: force
1992-03-11 10:01:42 +08:00
if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./binutils; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-binutils: force
1992-03-11 10:01:42 +08:00
if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./binutils; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
install) ; \
else \
true ; \
fi
### newlib
1992-03-11 13:57:50 +08:00
all-newlib: .stmp-newlib
.stmp-newlib:
1992-03-11 10:01:42 +08:00
if [ -d ./newlib ] ; then \
rootme=`pwd` ; export rootme ; \
(cd ./newlib; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-newlib
1992-03-11 10:01:42 +08:00
clean-newlib: force
if [ -d ./newlib ] ; then \
rootme=`pwd` ; export rootme ; \
(cd ./newlib; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
clean) ; \
else \
true ; \
fi
install-newlib: force
if [ -d ./newlib ] ; then \
rootme=`pwd` ; export rootme ; \
(cd ./newlib; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### byacc
1992-03-11 13:57:50 +08:00
all-byacc: .stmp-byacc
.stmp-byacc:
1992-03-11 10:01:42 +08:00
if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-byacc
clean-byacc: force
1992-03-11 10:01:42 +08:00
if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-byacc: force
1992-03-11 10:01:42 +08:00
if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### bison
1992-03-11 13:57:50 +08:00
all-bison: .stmp-libiberty .stmp-bison
.stmp-bison:
1992-03-11 10:01:42 +08:00
if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bison; \
$(MAKE) \
1992-02-25 09:08:38 +08:00
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-bison
clean-bison: force
1992-03-11 10:01:42 +08:00
if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bison; \
$(MAKE) \
1992-02-25 09:08:38 +08:00
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-bison: force
1992-03-11 10:01:42 +08:00
if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./bison; \
$(MAKE) \
1992-02-25 09:08:38 +08:00
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### gcc
1992-03-11 13:57:50 +08:00
all-gcc: .stmp-libiberty .stmp-bison .stmp-gas
.stmp-gcc:
1992-03-11 10:01:42 +08:00
if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-gcc
clean-gcc: force
1992-03-11 10:01:42 +08:00
if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-gcc:
1992-03-11 10:01:42 +08:00
if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### readline
1992-03-11 13:57:50 +08:00
all-readline: .stmp-readline
.stmp-readline:
1992-03-11 10:01:42 +08:00
if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-readline
clean-readline: force
1992-03-11 10:01:42 +08:00
if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-readline: force
1992-03-11 10:01:42 +08:00
if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### glob
1992-03-11 13:57:50 +08:00
all-glob: .stmp-glob
.stmp-glob:
1992-03-11 10:01:42 +08:00
if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-glob
clean-glob: force
1992-03-11 10:01:42 +08:00
if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-glob: force
1992-03-11 10:01:42 +08:00
if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### gas
1992-03-11 13:57:50 +08:00
all-gas: .stmp-libiberty .stmp-bfd .stmp-gas
.stmp-gas:
1992-03-11 10:01:42 +08:00
if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-gas
clean-gas: force
1992-03-11 10:01:42 +08:00
if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-gas: force
1992-03-11 10:01:42 +08:00
if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### ld
1992-03-11 13:57:50 +08:00
all-ld: .stmp-libiberty .stmp-bfd .stmp-bison .stmp-ld
.stmp-ld:
1992-03-11 10:01:42 +08:00
if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-ld
clean-ld: force
1992-03-11 10:01:42 +08:00
if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
1991-04-25 01:52:32 +09:00
install-ld: force
1992-03-11 10:01:42 +08:00
if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
1992-03-11 10:01:42 +08:00
### libgcc (and libgcc1)
1992-03-11 13:57:50 +08:00
all-libgcc1: all-gas all-binutils .stmp-libgcc1
.stmp-libgcc1:
1992-03-11 10:01:42 +08:00
if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libgcc; \
1991-12-19 08:22:09 +08:00
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1992-03-11 10:01:42 +08:00
libgcc1.a) ; \
1991-12-19 08:22:09 +08:00
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-libgcc1
1991-12-19 08:22:09 +08:00
1992-03-11 10:01:42 +08:00
clean-libgcc1: force
if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libgcc; \
1991-12-19 08:22:09 +08:00
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1992-03-11 10:01:42 +08:00
clean-libgcc1) ; \
1991-12-19 08:22:09 +08:00
else \
true ; \
fi
1992-03-11 10:01:42 +08:00
install-libgcc1: force
echo libgcc1 is a component, not an installable target
1991-12-19 08:22:09 +08:00
1992-03-11 13:57:50 +08:00
all-libgcc: all-gas all-gcc all-binutils .stmp-libgcc
.stmp-libgcc:
true
1992-03-11 10:01:42 +08:00
if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-libgcc
1992-03-11 10:01:42 +08:00
clean-libgcc: force
if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
1992-03-11 10:01:42 +08:00
install-libgcc: force
if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### gdb
1992-03-11 13:57:50 +08:00
all-gdb: .stmp-bfd .stmp-libiberty .stmp-readline .stmp-glob .stmp-bison .stmp-gdb
.stmp-gdb:
1992-03-11 10:01:42 +08:00
if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-gdb
clean-gdb: force
1992-03-11 10:01:42 +08:00
if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-gdb: force
1992-03-11 10:01:42 +08:00
if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### make
1992-03-11 13:57:50 +08:00
all-make: all-libiberty .stmp-make
.stmp-make:
1992-03-11 10:01:42 +08:00
if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-make
clean-make: force
1992-03-11 10:01:42 +08:00
if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-make: force
1992-03-11 10:01:42 +08:00
if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### diff
1992-03-11 13:57:50 +08:00
all-diff: .stmp-diff
.stmp-diff:
1992-03-11 10:01:42 +08:00
if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./diff; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-diff
clean-diff: force
1992-03-11 10:01:42 +08:00
if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./diff; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-diff: force
1992-03-11 10:01:42 +08:00
if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./diff/; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### grep
1992-03-11 13:57:50 +08:00
all-grep: .stmp-grep
.stmp-grep:
1992-03-11 10:01:42 +08:00
if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-grep
clean-grep: force
1992-03-11 10:01:42 +08:00
if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-grep: force
1992-03-11 10:01:42 +08:00
if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### rcs
1992-03-11 13:57:50 +08:00
all-rcs: .stmp-diff .stmp-grep .stmp-rcs
.stmp-rcs:
1992-03-11 10:01:42 +08:00
if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-rcs
clean-rcs: force
1992-03-11 10:01:42 +08:00
if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-rcs: install-grep install-diff force
1992-03-11 10:01:42 +08:00
if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### gdbm
1992-03-11 13:57:50 +08:00
all-gdbm: .stmp-gdbm
.stmp-gdbm:
1992-03-11 10:01:42 +08:00
if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-gdbm
clean-gdbm: force
1992-03-11 10:01:42 +08:00
if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-gdbm: force
1992-03-11 10:01:42 +08:00
if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### cvs
1992-03-11 13:57:50 +08:00
all-cvs: .stmp-cvs .stmp-rcs .stmp-grep .stmp-diff
.stmp-cvs: .stmp-gdbm force
1992-03-11 10:01:42 +08:00
if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./cvs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-cvs
clean-cvs: clean-gdbm force
1992-03-11 10:01:42 +08:00
if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./cvs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-cvs: install-rcs install-gdbm force
1992-03-11 10:01:42 +08:00
if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./cvs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
1992-02-07 08:36:15 +08:00
### patch
1992-03-11 13:57:50 +08:00
all-patch: .stmp-patch
.stmp-patch: force
1992-03-11 10:01:42 +08:00
if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./patch; \
1992-02-07 08:36:15 +08:00
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-patch
1992-02-07 08:36:15 +08:00
clean-patch: force
1992-03-11 10:01:42 +08:00
if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./patch; \
1992-02-07 08:36:15 +08:00
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
clean) ; \
else \
true ; \
fi
install-patch: force
1992-03-11 10:01:42 +08:00
if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./patch; \
1992-02-07 08:36:15 +08:00
$(MAKE) \
bindir=$(bindir) \
man1dir=$(man1dir) \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
install) ; \
else \
true ; \
fi
### emacs
1992-03-11 13:57:50 +08:00
all-emacs: .stmp-emacs
.stmp-emacs: force
1992-03-11 10:01:42 +08:00
if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-emacs
clean-emacs: force
1992-03-11 10:01:42 +08:00
if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-emacs: install-rcs install-gdbm force
1992-03-11 10:01:42 +08:00
if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### ispell
1992-03-11 13:57:50 +08:00
all-ispell: .stmp-ispell
.stmp-ispell: all-emacs force
1992-03-11 10:01:42 +08:00
if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-ispell
clean-ispell: force
1992-03-11 10:01:42 +08:00
if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
clean) ; \
else \
true ; \
fi
install-ispell: install-rcs install-gdbm force
1992-03-11 10:01:42 +08:00
if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
1991-12-10 08:49:07 +08:00
install) ; \
else \
true ; \
fi
### fileutils
1992-03-11 13:57:50 +08:00
all-fileutils: .stmp-fileutils
.stmp-fileutils: force
1992-03-11 10:01:42 +08:00
if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-fileutils
clean-fileutils: force
1992-03-11 10:01:42 +08:00
if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
clean) ; \
else \
true ; \
fi
install-fileutils: force
1992-03-11 10:01:42 +08:00
if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
install) ; \
else \
true ; \
fi
### libg++
1992-03-11 13:57:50 +08:00
GXX = `if [ -d $${rootme}/gcc ] ; \
then echo $${rootme}/gcc/gcc -B$${rootme}/gcc/ ; \
else echo gcc ; fi`
XTRAFLAGS = `if [ -d $${rootme}/gcc ] ; \
then echo -I$${rootme}/gcc/include ; \
else echo ; fi`
all-libg++: .stmp-gas .stmp-ld .stmp-gcc .stmp-libg++
.stmp-libg++: .stmp-gcc
1992-03-11 10:01:42 +08:00
if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
1992-03-11 13:57:50 +08:00
"CC=${GXX}" \
"XTRAFLAGS=${XTRAFLAGS}" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
all) ; \
else \
true ; \
fi
1992-03-11 13:57:50 +08:00
touch .stmp-libg++
clean-libg++: force
1992-03-11 10:01:42 +08:00
if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
clean) ; \
else \
true ; \
fi
install-libg++: force
1992-03-11 10:01:42 +08:00
if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
1992-03-11 10:01:42 +08:00
(cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
install) ; \
else \
true ; \
fi
### other supporting targets
# this is a bad hack.
all.xclib: all.normal
if [ -d clib ] ; then \
(cd clib ; $(MAKE)) ; \
fi
1991-05-19 09:36:45 +09:00
subdir_do: force
1991-06-10 05:27:20 +09:00
for i in $(DODIRS); do \
1992-03-11 10:01:42 +08:00
if [ -f ./$$i/localenv ] ; then \
if (rootme=`pwd` ; export rootme ; cd ./$$i; \
$(MAKE) \
"against=$(against)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
$(DO)) ; then true ; \
else exit 1 ; fi ; \
1992-03-11 10:01:42 +08:00
else if [ -d ./$$i ] ; then \
if (rootme=`pwd` ; export rootme ; cd ./$$i; \
1991-06-10 05:27:20 +09:00
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
"CC=$(CC)" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
$(DO)) ; then true ; \
1991-06-10 05:27:20 +09:00
else exit 1 ; fi ; \
else true ; fi ; \
fi ; \
1991-06-10 05:27:20 +09:00
done
1991-04-05 03:01:18 +08:00
bootstrap:
$(MAKE) all info
$(MAKE) stage1
1991-04-25 01:52:32 +09:00
$(MAKE) pass "stagepass=stage1"
$(MAKE) stage2
$(MAKE) pass "stagepass=stage2"
1991-06-10 05:27:20 +09:00
$(MAKE) comparison
1991-04-25 01:52:32 +09:00
bootstrap2:
1991-04-25 01:52:32 +09:00
$(MAKE) pass "stagepass=stage1"
$(MAKE) stage2
$(MAKE) pass "stagepass=stage2"
1991-06-10 05:27:20 +09:00
$(MAKE) comparison
1991-04-25 01:52:32 +09:00
bootstrap3:
1991-04-25 01:52:32 +09:00
$(MAKE) pass "stagepass=stage2"
1991-06-10 05:27:20 +09:00
$(MAKE) comparison
1991-04-25 01:52:32 +09:00
pass:
1992-03-11 10:01:42 +08:00
cp $(srcdir)/gcc/gstdarg.h ./gas/stdarg.h
$(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
1992-03-11 10:01:42 +08:00
"CC=`pwd`/gcc/$(stagepass)/gcc \
-O $(GCCVERBOSE) -I`pwd`/gcc/include \
-B`pwd`/gcc/$(stagepass)/ \
-B`pwd`/gas/$(stagepass)/ \
-B`pwd`/ld/$(stagepass)/" \
"AR=`pwd`/binutils/$(stagepass)/ar" \
"LD=`pwd`/gcc/$(stagepass)/gcc $(GCCVERBOSE)" \
"RANLIB=`pwd`/binutils/$(stagepass)/ranlib" \
"LOADLIBES=`pwd`/libgcc/$(stagepass)/libgcc.a /lib/libc.a" \
1991-04-25 01:52:32 +09:00
"LDFLAGS=-nostdlib /lib/crt0.o \
1992-03-11 10:01:42 +08:00
-L`pwd`/libgcc/$(stagepass)/ \
-B`pwd`/ld/$(stagepass)/"
1991-04-05 03:01:18 +08:00
stage1:
1991-05-19 09:36:45 +09:00
$(MAKE) subdir_do DO=stage1 "DODIRS=$(SUBDIRS)"
1991-04-05 03:01:18 +08:00
stage2:
1991-05-19 09:36:45 +09:00
$(MAKE) subdir_do DO=stage2 "DODIRS=$(SUBDIRS)"
1991-04-05 03:01:18 +08:00
stage3:
1991-05-19 09:36:45 +09:00
$(MAKE) subdir_do DO=stage3 "DODIRS=$(SUBDIRS)"
1991-04-05 03:01:18 +08:00
stage4:
1991-05-19 09:36:45 +09:00
$(MAKE) subdir_do DO=stage4 "DODIRS=$(SUBDIRS)"
1991-04-05 03:01:18 +08:00
1991-06-10 05:27:20 +09:00
against=stage2
comparison:; $(MAKE) subdir_do DO=comparison against=$(against) "DODIRS=$(SUBDIRS)"
1991-05-19 09:36:45 +09:00
de-stage1:; $(MAKE) subdir_do DO=de-stage1 "DODIRS=$(SUBDIRS)"
de-stage2:; $(MAKE) subdir_do DO=de-stage2 "DODIRS=$(SUBDIRS)"
de-stage3:; $(MAKE) subdir_do DO=de-stage3 "DODIRS=$(SUBDIRS)"
de-stage4:; $(MAKE) subdir_do DO=de-stage4 "DODIRS=$(SUBDIRS)"
1991-04-25 01:52:32 +09:00
# 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,
# causing Make to quit.
MAKEDIRS= \
$(prefix) \
1992-03-11 10:01:42 +08:00
$(exec_prefix) \
$(bindir) \
$(libdir) \
1992-03-11 10:01:42 +08:00
$(tooldir) \
$(includedir) \
$(datadir) \
$(docdir) \
$(mandir) \
$(man1dir) \
$(man5dir)
# $(man2dir) \
# $(man3dir) \
# $(man4dir) \
# $(man6dir) \
# $(man7dir) \
# $(man8dir)
install-dirs: force
for i in $(MAKEDIRS) ; do \
echo Making $$i... ; \
1992-03-11 10:01:42 +08:00
[ -d $$i ] || mkdir $$i || exit 1 ; \
done
MAKEINFODIRS= \
$(prefix) \
$(infodir)
install-info-dirs: force
1991-12-12 14:25:48 +08:00
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
dir.info: force
1991-12-11 12:15:50 +08:00
$(srcdir)/texinfo/gen-info-dir $(infodir) > dir.info.new
mv -f dir.info.new dir.info
1991-04-05 03:01:18 +08:00
etags tags: TAGS
TAGS: FORCE
etags `$(MAKE) ls`
ls:
@echo Makefile
@for i in $(SUBDIRS); \
do \
(cd $$i; \
pwd=`pwd`; \
wd=`basename $$pwd`; \
for j in `$(MAKE) ls`; \
do \
echo $$wd/$$j; \
done) \
done
1991-05-19 09:36:45 +09:00
force:
1991-04-05 03:01:18 +08:00
# with the gnu make, this is done automatically.
1991-10-02 15:24:45 +08:00
Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
$(SHELL) ./config.status
1991-04-05 03:01:18 +08:00
1991-07-31 11:47:14 +09:00
#
# 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
GDB_SUPPORT_DIRS= bfd include libiberty readline glob
GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS) texinfo/fsf/texinfo.tex
1991-07-31 11:47:14 +09:00
setup-dirs: force_update
1991-07-31 11:47:14 +09:00
./configure sun4
make clean
./configure -rm sun4
chmod og=u `find $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
bfd.ilrt.tar.Z: setup-dirs
1991-07-31 11:47:14 +09:00
rm -f bfd.ilrt.tar.Z
tar cf - $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) \
1991-07-31 11:47:14 +09:00
| compress -v >bfd.ilrt.tar.Z
gdb.tar.Z: setup-dirs
(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 \
ln -s ../$$i . ; \
done)
1992-02-07 08:36:15 +08:00
# 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 '/^SUBDIRS =/s/glob //' <Makefile.in >proto-toplev/Makefile.in
# Take out texinfo from buildable dirs
cp proto-toplev/Makefile.in temp.$$
sed '/^all\.normal: /s/all-texinfo //' <temp.$$ >temp1.$$
sed '/^clean: /s/clean-texinfo //' <temp1.$$ >temp.$$
sed '/^install\.all: /s/install-texinfo //' <temp.$$ >proto-toplev/Makefile.in
rm temp.$$ temp1.$$
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; \
tar cfh - gdb-$$VER \
| compress -v >gdb-$$VER.tar.Z)
1991-07-31 11:47:14 +09:00
force_update:
nothing:
1991-04-05 03:01:18 +08:00
# end of Makefile.in