#
# Makefile for directory with subdirs to build.
-# Copyright (C) 1990, 1991 Cygnus Support
+# 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
prefix = /usr/local
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+libdir = $(exec_prefix)/lib
+
datadir = $(prefix)/lib
-bindir = $(prefix)/bin
-libdir = $(prefix)/lib
-mandir = $(datadir)/man
+mandir = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
-infodir = $(datadir)/info
+infodir = $(prefix)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
then echo $${rootme}/texinfo/C/makeinfo ; \
else echo makeinfo ; fi`
-SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
+SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ libgcc clib newlib
OTHERS =
ALL = all.normal
info: cfg-paper.info configure.info
rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
+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)"
rm -f cfg-paper.info* configure.info*
$(INSTALL_DATA) dir.info $(infodir)/dir.info
# clib send_pr
-# all-gnulib
+# all-libgcc
all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
all-gas all-gcc all-binutils \
- all-libg++ all-gdb all-make all-cvs all-patch all-emacs all-ispell all-fileutils
-all.cross: all-bison all-ld all-gnulib all-gdb
+ all-libg++ all-gdb all-make all-cvs all-patch all-emacs \
+ all-ispell all-fileutils \
+ all-newlib
+all.cross: all-bison all-ld all-libgcc all-gdb
# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
-clean: clean-libiberty clean-texinfo clean-bfd clean-binutils \
+clean: clean-stamps clean-libiberty clean-texinfo clean-bfd clean-newlib clean-binutils \
clean-bison clean-byacc clean-flex clean-ld clean-gas \
- clean-gcc clean-gnulib clean-readline clean-glob clean-gdb \
+ clean-gcc clean-libgcc clean-readline clean-glob clean-gdb \
clean-make clean-diff clean-grep clean-rcs clean-gdbm \
- clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils
- rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
+ clean-cvs clean-patch clean-emacs clean-ispell clean-fileutils \
+ clean-libg++
+ -rm -rf *.a TEMP errs core *.o *~ \#* TAGS *.E
+
+clean-stamps:
+ -rm -f stmp-*
install: $(INSTALL_TARGET) $(srcdir)/configure.man
$(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1
install.all: install-dirs install-libiberty install-texinfo \
- install-binutils install-bison install-byacc install-flex \
- install-ld install-gas install-gcc install-gnulib \
- install-readline install-glob install-gdb install-make \
- install-cvs install-patch install-emacs install-ispell install-fileutils
+ install-bfd install-binutils install-bison install-byacc \
+ install-flex install-ld install-gas install-gcc \
+ install-libgcc install-readline install-glob install-gdb \
+ install-make install-cvs install-patch install-emacs \
+ install-ispell install-fileutils install-libg++ install-newlib
+
install.cross: install-dirs install-libiberty install-binutils install-bison \
- install-byacc install-ld install-gas install-gnulib \
+ install-byacc install-ld install-gas install-libgcc \
install-readline install-glob install-gdb
### libiberty
-.PHONY: all-libiberty just-libiberty
-all-libiberty: just-libiberty
-just-libiberty: force
- if [ -d $(unsubdir)/libiberty ] ; then \
+.PHONY: all-libiberty stmp-libiberty
+all-libiberty: stmp-libiberty
+stmp-libiberty:
+ if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libiberty$(subdir); \
+ (cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-libiberty
clean-libiberty: force
- if [ -d $(unsubdir)/libiberty ] ; then \
+ if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libiberty$(subdir); \
+ (cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-libiberty: force
- if [ -d $(unsubdir)/libiberty ] ; then \
+ if [ -d ./libiberty ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libiberty$(subdir); \
+ (cd ./libiberty; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### texinfo
-.PHONY: all-texinfo just-texinfo
-all-texinfo: just-texinfo
-just-texinfo: just-libiberty force
- if [ -d $(unsubdir)/texinfo ] ; then \
+.PHONY: all-texinfo stmp-texinfo
+all-texinfo: stmp-libiberty stmp-texinfo
+stmp-texinfo:
+ if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/texinfo$(subdir); \
+ (cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-texinfo
clean-texinfo: force
- if [ -d $(unsubdir)/texinfo ] ; then \
+ if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/texinfo$(subdir); \
+ (cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-texinfo: force
- if [ -d $(unsubdir)/texinfo ] ; then \
+ if [ -d ./texinfo ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/texinfo$(subdir); \
+ (cd ./texinfo; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### bfd
-.PHONY: all-bfd just-bfd
-all-bfd: just-bfd
-just-bfd: force
- if [ -d $(unsubdir)/bfd ] ; then \
+.PHONY: all-bfd stmp-bfd
+all-bfd: stmp-bfd
+stmp-bfd:
+ if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bfd$(subdir); \
+ (cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-bfd
clean-bfd: force
- if [ -d $(unsubdir)/bfd ] ; then \
+ if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bfd$(subdir); \
+ (cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-bfd: force
- if [ -d $(unsubdir)/bfd ] ; then \
+ if [ -d ./bfd ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bfd$(subdir); \
+ (cd ./bfd; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### binutils
-.PHONY: all-binutils just-binutils
-all-binutils: just-binutils
-just-binutils: just-libiberty just-bfd force
- if [ -d $(unsubdir)/binutils ] ; then \
+.PHONY: all-binutils stmp-binutils
+all-binutils: stmp-libiberty stmp-bfd stmp-binutils
+stmp-binutils:
+ if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/binutils$(subdir); \
+ (cd ./binutils; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-binutils
clean-binutils: force
- if [ -d $(unsubdir)/binutils ] ; then \
+ if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/binutils$(subdir); \
+ (cd ./binutils; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-binutils: force
- if [ -d $(unsubdir)/binutils ] ; then \
+ if [ -d ./binutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/binutils$(subdir); \
+ (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
+.PHONY: all-newlib stmp-newlib
+all-newlib: stmp-newlib
+stmp-newlib:
+ 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
+ touch stmp-newlib
+
+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)" \
fi
### byacc
-.PHONY: all-byacc just-byacc
-all-byacc: just-byacc
-just-byacc: force
- if [ -d $(unsubdir)/byacc ] ; then \
+.PHONY: all-byacc stmp-byacc
+all-byacc: stmp-byacc
+stmp-byacc:
+ if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/byacc$(subdir); \
+ (cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-byacc
clean-byacc: force
- if [ -d $(unsubdir)/byacc ] ; then \
+ if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/byacc$(subdir); \
+ (cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-byacc: force
- if [ -d $(unsubdir)/byacc ] ; then \
+ if [ -d ./byacc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/byacc$(subdir); \
+ (cd ./byacc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### bison
-.PHONY: all-bison just-bison
-all-bison: just-bison
-just-bison: just-libiberty force
- if [ -d $(unsubdir)/bison ] ; then \
+.PHONY: all-bison stmp-bison
+all-bison: stmp-libiberty stmp-bison
+stmp-bison:
+ if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bison$(subdir); \
+ (cd ./bison; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
else \
true ; \
fi
+ touch stmp-bison
clean-bison: force
- if [ -d $(unsubdir)/bison ] ; then \
+ if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bison$(subdir); \
+ (cd ./bison; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
fi
install-bison: force
- if [ -d $(unsubdir)/bison ] ; then \
+ if [ -d ./bison ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/bison$(subdir); \
+ (cd ./bison; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
fi
### gcc
-.PHONY: all-gcc just-gcc
-all-gcc: just-gcc
-#just-gcc: just-libiberty just-bison just-gnulib1 force
-just-gcc: just-libiberty just-bison just-gas force
- if [ -d $(unsubdir)/gcc ] ; then \
+.PHONY: all-gcc stmp-gcc
+all-gcc: stmp-libiberty stmp-bison stmp-gas
+stmp-gcc:
+ if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gcc$(subdir); \
+ (cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-gcc
clean-gcc: force
- if [ -d $(unsubdir)/gcc ] ; then \
+ if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gcc$(subdir); \
+ (cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-gcc:
- if [ -d $(unsubdir)/gcc ] ; then \
+ if [ -d ./gcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gcc$(subdir); \
+ (cd ./gcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### readline
-.PHONY: all-readline just-readline
-all-readline: just-readline
-just-readline: force
- if [ -d $(unsubdir)/readline ] ; then \
+.PHONY: all-readline stmp-readline
+all-readline: stmp-readline
+stmp-readline:
+ if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/readline$(subdir); \
+ (cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-readline
clean-readline: force
- if [ -d $(unsubdir)/readline ] ; then \
+ if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/readline$(subdir); \
+ (cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-readline: force
- if [ -d $(unsubdir)/readline ] ; then \
+ if [ -d ./readline ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/readline$(subdir); \
+ (cd ./readline; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### glob
-.PHONY: all-glob just-glob
-all-glob: just-glob
-just-glob: force
- if [ -d $(unsubdir)/glob ] ; then \
+.PHONY: all-glob stmp-glob
+all-glob: stmp-glob
+stmp-glob:
+ if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/glob$(subdir); \
+ (cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-glob
clean-glob: force
- if [ -d $(unsubdir)/glob ] ; then \
+ if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/glob$(subdir); \
+ (cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-glob: force
- if [ -d $(unsubdir)/glob ] ; then \
+ if [ -d ./glob ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/glob$(subdir); \
+ (cd ./glob; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### gas
-.PHONY: all-gas just-gas
-all-gas: just-gas
-just-gas: just-libiberty just-bfd force
- if [ -d $(unsubdir)/gas ] ; then \
+.PHONY: all-gas stmp-gas
+all-gas: stmp-libiberty stmp-bfd stmp-gas
+stmp-gas:
+ if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gas$(subdir); \
+ (cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-gas
clean-gas: force
- if [ -d $(unsubdir)/gas ] ; then \
+ if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gas$(subdir); \
+ (cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-gas: force
- if [ -d $(unsubdir)/gas ] ; then \
+ if [ -d ./gas ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gas$(subdir); \
+ (cd ./gas; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### ld
-.PHONY: all-ld just-ld
-all-ld: just-ld
-just-ld: just-libiberty just-bfd just-bison force
- if [ -d $(unsubdir)/ld ] ; then \
+.PHONY: all-ld stmp-ld
+all-ld: stmp-libiberty stmp-bfd stmp-bison stmp-ld
+stmp-ld:
+ if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ld$(subdir); \
+ (cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-ld
clean-ld: force
- if [ -d $(unsubdir)/ld ] ; then \
+ if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ld$(subdir); \
+ (cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-ld: force
- if [ -d $(unsubdir)/ld ] ; then \
+ if [ -d ./ld ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ld$(subdir); \
+ (cd ./ld; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
true ; \
fi
-### gnulib (and gnulib1)
-.PHONY: all-gnulib just-gnulib1 just-gnulib
-just-gnulib1: all-gas all-binutils force
- if [ -d $(unsubdir)/gnulib ] ; then \
+### libgcc (and libgcc1)
+.PHONY: all-libgcc stmp-libgcc1 stmp-libgcc
+all-libgcc1: all-gas all-binutils stmp-libgcc1
+stmp-libgcc1:
+ if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gnulib$(subdir); \
+ (cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
- gnulib1.a) ; \
+ libgcc1.a) ; \
else \
true ; \
fi
+ touch stmp-libgcc1
-clean-gnulib1: force
- if [ -d $(unsubdir)/gnulib ] ; then \
+clean-libgcc1: force
+ if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gnulib$(subdir); \
+ (cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
"LDFLAGS=$(LDFLAGS)" \
"BISON=$(BISON)" \
"MAKEINFO=$(MAKEINFO)" \
- clean-gnulib1) ; \
+ clean-libgcc1) ; \
else \
true ; \
fi
-install-gnulib1: force
- echo gnulib1 is a component, not an installable target
+install-libgcc1: force
+ echo libgcc1 is a component, not an installable target
-all-gnulib: just-gnulib
-just-gnulib: all-gas all-gcc all-binutils force
+all-libgcc: all-gas all-gcc all-binutils stmp-libgcc
+stmp-libgcc:
true
- if [ -d $(unsubdir)/gnulib ] ; then \
+ if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gnulib$(subdir); \
+ (cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-libgcc
-clean-gnulib: force
- if [ -d $(unsubdir)/gnulib ] ; then \
+clean-libgcc: force
+ if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gnulib$(subdir); \
+ (cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
true ; \
fi
-install-gnulib: force
- if [ -d $(unsubdir)/gnulib ] ; then \
+install-libgcc: force
+ if [ -d ./libgcc ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gnulib$(subdir); \
+ (cd ./libgcc; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### gdb
-.PHONY: all-gdb just-gdb
-all-gdb: just-gdb
-just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
- if [ -d $(unsubdir)/gdb ] ; then \
+.PHONY: all-gdb stmp-gdb
+all-gdb: stmp-bfd stmp-libiberty stmp-readline stmp-glob stmp-bison stmp-gdb
+stmp-gdb:
+ if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdb$(subdir); \
+ (cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-gdb
clean-gdb: force
- if [ -d $(unsubdir)/gdb ] ; then \
+ if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdb$(subdir); \
+ (cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-gdb: force
- if [ -d $(unsubdir)/gdb ] ; then \
+ if [ -d ./gdb ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdb$(subdir); \
+ (cd ./gdb; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### make
-.PHONY: all-make just-make
-all-make: just-make
-just-make: all-libiberty force
- if [ -d $(unsubdir)/make ] ; then \
+.PHONY: all-make stmp-make
+all-make: all-libiberty stmp-make
+stmp-make:
+ if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/make$(subdir); \
+ (cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-make
clean-make: force
- if [ -d $(unsubdir)/make ] ; then \
+ if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/make$(subdir); \
+ (cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-make: force
- if [ -d $(unsubdir)/make ] ; then \
+ if [ -d ./make ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/make$(subdir); \
+ (cd ./make; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### diff
-.PHONY: all-diff just-diff
-all-diff: just-diff
-just-diff: force
- if [ -d $(unsubdir)/diff ] ; then \
+.PHONY: all-diff stmp-diff
+all-diff: stmp-diff
+stmp-diff:
+ if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/diff$(subdir); \
+ (cd ./diff; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-diff
clean-diff: force
- if [ -d $(unsubdir)/diff ] ; then \
+ if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/diff$(subdir); \
+ (cd ./diff; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-diff: force
- if [ -d $(unsubdir)/diff ] ; then \
+ if [ -d ./diff ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/diff/$(subdir); \
+ (cd ./diff/; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### grep
-.PHONY: all-grep just-grep
-all-grep: just-grep
-just-grep: force
- if [ -d $(unsubdir)/grep ] ; then \
+.PHONY: all-grep stmp-grep
+all-grep: stmp-grep
+stmp-grep:
+ if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/grep$(subdir); \
+ (cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-grep
clean-grep: force
- if [ -d $(unsubdir)/grep ] ; then \
+ if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/grep$(subdir); \
+ (cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-grep: force
- if [ -d $(unsubdir)/grep ] ; then \
+ if [ -d ./grep ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/grep$(subdir); \
+ (cd ./grep; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### rcs
-.PHONY: all-rcs just-rcs
-all-rcs: just-rcs
-just-rcs: just-diff just-grep force
- if [ -d $(unsubdir)/rcs ] ; then \
+.PHONY: all-rcs stmp-rcs
+all-rcs: stmp-diff stmp-grep stmp-rcs
+stmp-rcs:
+ if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/rcs$(subdir); \
+ (cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-rcs
clean-rcs: force
- if [ -d $(unsubdir)/rcs ] ; then \
+ if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/rcs$(subdir); \
+ (cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-rcs: install-grep install-diff force
- if [ -d $(unsubdir)/rcs ] ; then \
+ if [ -d ./rcs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/rcs$(subdir); \
+ (cd ./rcs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### gdbm
-.PHONY: all-gdbm just-gdbm
-all-gdbm: just-gdbm
-just-gdbm: force
- if [ -d $(unsubdir)/gdbm ] ; then \
+.PHONY: all-gdbm stmp-gdbm
+all-gdbm: stmp-gdbm
+stmp-gdbm: force
+ if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdbm$(subdir); \
+ (cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-gdbm
clean-gdbm: force
- if [ -d $(unsubdir)/gdbm ] ; then \
+ if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdbm$(subdir); \
+ (cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-gdbm: force
- if [ -d $(unsubdir)/gdbm ] ; then \
+ if [ -d ./gdbm ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/gdbm$(subdir); \
+ (cd ./gdbm; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### cvs
-.PHONY: all-cvs just-cvs
-all-cvs: just-cvs just-rcs just-grep just-diff
-just-cvs: just-gdbm force
- if [ -d $(unsubdir)/cvs ] ; then \
+.PHONY: all-cvs stmp-cvs
+all-cvs: stmp-cvs stmp-rcs stmp-grep stmp-diff
+stmp-cvs: stmp-gdbm force
+ if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/cvs$(subdir); \
+ (cd ./cvs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-cvs
clean-cvs: clean-gdbm force
- if [ -d $(unsubdir)/cvs ] ; then \
+ if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/cvs$(subdir); \
+ (cd ./cvs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-cvs: install-rcs install-gdbm force
- if [ -d $(unsubdir)/cvs ] ; then \
+ if [ -d ./cvs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/cvs$(subdir); \
+ (cd ./cvs; \
$(MAKE) \
- "bindir=$(bindir)" \
- "mandir=$(man1dir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
fi
### patch
-.PHONY: all-patch just-patch
-all-patch: just-patch
-just-patch: force
- if [ -d $(unsubdir)/patch ] ; then \
+.PHONY: all-patch stmp-patch
+all-patch: stmp-patch
+stmp-patch: force
+ if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/patch$(subdir); \
+ (cd ./patch; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-patch
clean-patch: force
- if [ -d $(unsubdir)/patch ] ; then \
+ if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/patch$(subdir); \
+ (cd ./patch; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-patch: force
- if [ -d $(unsubdir)/patch ] ; then \
+ if [ -d ./patch ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/patch$(subdir); \
+ (cd ./patch; \
$(MAKE) \
bindir=$(bindir) \
man1dir=$(man1dir) \
fi
### emacs
-.PHONY: all-emacs just-emacs
-all-emacs: just-emacs
-just-emacs: force
- if [ -d $(unsubdir)/emacs ] ; then \
+.PHONY: all-emacs stmp-emacs
+all-emacs: stmp-emacs
+stmp-emacs: force
+ if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/emacs$(subdir); \
+ (cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-emacs
clean-emacs: force
- if [ -d $(unsubdir)/emacs ] ; then \
+ if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/emacs$(subdir); \
+ (cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-emacs: install-rcs install-gdbm force
- if [ -d $(unsubdir)/emacs ] ; then \
+ if [ -d ./emacs ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/emacs$(subdir); \
+ (cd ./emacs; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### ispell
-.PHONY: all-ispell just-ispell
-all-ispell: just-ispell
-just-ispell: all-emacs force
- if [ -d $(unsubdir)/ispell ] ; then \
+.PHONY: all-ispell stmp-ispell
+all-ispell: stmp-ispell
+stmp-ispell: all-emacs force
+ if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ispell$(subdir); \
+ (cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-ispell
clean-ispell: force
- if [ -d $(unsubdir)/ispell ] ; then \
+ if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ispell$(subdir); \
+ (cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-ispell: install-rcs install-gdbm force
- if [ -d $(unsubdir)/ispell ] ; then \
+ if [ -d ./ispell ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/ispell$(subdir); \
+ (cd ./ispell; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### flex
-.PHONY: all-flex just-flex
-all-flex: just-flex
-just-flex: force
- if [ -d $(unsubdir)/flex ] ; then \
+.PHONY: all-flex stmp-flex
+all-flex: stmp-flex
+stmp-flex: force
+ if [ -d ./flex ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/flex$(subdir); \
+ (cd ./flex; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
else \
true ; \
fi
+ touch stmp-flex
clean-flex: force
- if [ -d $(unsubdir)/flex ] ; then \
+ if [ -d ./flex ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/flex$(subdir); \
+ (cd ./flex; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
install-flex: force
- if [ -d $(unsubdir)/flex ] ; then \
+ if [ -d ./flex ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/flex$(subdir); \
+ (cd ./flex; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
fi
### fileutils
-.PHONY: all-fileutils just-fileutils
-all-fileutils: just-fileutils
-just-fileutils: force
- if [ -d $(unsubdir)/fileutils ] ; then \
+.PHONY: all-fileutils stmp-fileutils
+all-fileutils: stmp-fileutils
+stmp-fileutils: force
+ if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/fileutils$(subdir); \
+ (cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
else \
true ; \
fi
+ touch stmp-fileutils
clean-fileutils: force
- if [ -d $(unsubdir)/fileutils ] ; then \
+ if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/fileutils$(subdir); \
+ (cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
fi
install-fileutils: force
- if [ -d $(unsubdir)/fileutils ] ; then \
+ if [ -d ./fileutils ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/fileutils$(subdir); \
+ (cd ./fileutils; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
fi
### libg++
-.PHONY: all-libg++ just-libg++
-all-libg++: just-gas just-ld just-gcc just-make just-libg++
-just-libg++: just-gcc force
- if [ -d $(unsubdir)/libg++ ] ; then \
+.PHONY: all-libg++ stmp-libg++
+all-libg++: stmp-gas stmp-ld stmp-gcc stmp-libg++
+stmp-libg++: stmp-gcc force
+ if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libg++$(subdir); \
+ (cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"against=$(against)" \
"AR=$(AR)" \
"AR_FLAGS=$(AR_FLAGS)" \
- "CC=$(CC)" \
+ "CC=$${rootme}/gcc/gcc -B$${rootme}/gcc/" \
"RANLIB=$(RANLIB)" \
"LOADLIBES=$(LOADLIBES)" \
"LDFLAGS=$(LDFLAGS)" \
else \
true ; \
fi
+ touch stmp-libgxx
clean-libg++: force
- if [ -d $(unsubdir)/libg++ ] ; then \
+ if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libg++$(subdir); \
+ (cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
fi
install-libg++: force
- if [ -d $(unsubdir)/libg++ ] ; then \
+ if [ -d ./libg++ ] ; then \
rootme=`pwd` ; export rootme ; \
- (cd $(unsubdir)/libg++$(subdir); \
+ (cd ./libg++; \
$(MAKE) \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
subdir_do: force
for i in $(DODIRS); do \
- if [ -f $(unsubdir)/$$i/localenv ] ; then \
- if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
+ 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 ; \
- else if [ -d $(unsubdir)/$$i ] ; then \
- if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
+ else if [ -d ./$$i ] ; then \
+ if (rootme=`pwd` ; export rootme ; cd ./$$i; \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \
$(MAKE) comparison
pass:
- cp $(srcdir)/gcc/gstdarg.h $(unsubdir)/gas$(subdir)/stdarg.h
+ cp $(srcdir)/gcc/gstdarg.h ./gas/stdarg.h
$(MAKE) subdir_do "DO=all info" "DODIRS=$(SUBDIRS)" \
- "CC=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc \
- -O $(GCCVERBOSE) -I`pwd`/$(unsubdir)/gcc$(subdir)/include \
- -B`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/ \
- -B`pwd`/$(unsubdir)/gas$(subdir)/$(stagepass)/ \
- -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/" \
- "AR=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ar" \
- "LD=`pwd`/$(unsubdir)/gcc$(subdir)/$(stagepass)/gcc $(GCCVERBOSE)" \
- "RANLIB=`pwd`/$(unsubdir)/binutils$(subdir)/$(stagepass)/ranlib" \
- "LOADLIBES=`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/gnulib.a /lib/libc.a" \
+ "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" \
"LDFLAGS=-nostdlib /lib/crt0.o \
- -L`pwd`/$(unsubdir)/gnulib$(subdir)/$(stagepass)/ \
- -B`pwd`/$(unsubdir)/ld$(subdir)/$(stagepass)/"
+ -L`pwd`/libgcc/$(stagepass)/ \
+ -B`pwd`/ld/$(stagepass)/"
stage1:
MAKEDIRS= \
$(prefix) \
+ $(exec_prefix) \
$(bindir) \
$(libdir) \
+ $(tooldir) \
$(includedir) \
$(datadir) \
$(docdir) \
install-dirs: force
for i in $(MAKEDIRS) ; do \
echo Making $$i... ; \
- if [ -d $$i ] ; then true ; else mkdir $$i || exit 1 ; fi ; \
+ [ -d $$i ] || mkdir $$i || exit 1 ; \
done
MAKEINFODIRS= \