AR_FLAGS = qc
RANLIB = ranlib
-BISON = `if [ -d $(unsubdir)/../bison ] ; \
- then echo \`pwd\`/$(unsubdir)/../bison$(subdir)/bison -L \`pwd\`/$(unsubdir)/../bison$(subdir)/ -y ; \
+BISON = `if [ -d $${rootme}/bison ] ; \
+ then echo $${rootme}/bison/bison -L $${rootme}/bison/ -y ; \
else echo bison -y ; fi`
-MAKEINFO = makeinfo
-FRESHMAKEINFO = `if [ -d $(unsubdir)/../texinfo/C ] ; \
- then echo \`pwd\`/$(unsubdir)/../texinfo/C$(subdir)/makeinfo ; \
- else echo echo ; fi`
+MAKEINFO = `if [ -d $${rootme}/texinfo/C ] ; \
+ then echo $${rootme}/texinfo/C/makeinfo ; \
+ else echo makeinfo ; fi`
-#\`(cd $(srcdir)/bison ; \\`pwd\\`)\`
SUBDIRS = libiberty glob readline bfd gdb binutils ld gas gcc libg++ gnulib clib
OTHERS =
all: $(ALL)
info: cfg-paper.info
- $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)"
+ rootme=`pwd` ; export rootme ; $(MAKE) subdir_do DO=info "DODIRS=$(SUBDIRS)" "MAKEINFO=$(MAKEINFO)"
clean-info:
$(MAKE) subdir_do DO=clean-info "DODIRS=$(SUBDIRS)"
rm -f cfg-paper.info
cfg-paper.info: cfg-paper.texi
- $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
+ rootme=`pwd` ; export rootme ; $(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi
configure.info: configure.texi
- $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
+ rootme=`pwd` ; export rootme ; $(MAKEINFO) -o configure.info $(srcdir)/configure.texi
install-info: install-info-dirs force
$(MAKE) subdir_do DO=install-info "DODIRS=$(SUBDIRS)"
# clib prms
# all-gnulib
all.normal: all-texinfo all-bison all-byacc all-flex all-ld \
- all-gcc all-gas all-binutils \
+ 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
# $(MAKE) subdir_do DO=all "DODIRS=$(SUBDIRS) $(OTHERS)"
all-libiberty: just-libiberty
just-libiberty: force
if [ -d $(unsubdir)/libiberty ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libiberty$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-libiberty: force
if [ -d $(unsubdir)/libiberty ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libiberty$(subdir); \
$(MAKE) \
"against=$(against)" \
install-libiberty: force
if [ -d $(unsubdir)/libiberty ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libiberty$(subdir); \
$(MAKE) \
"against=$(against)" \
all-texinfo: just-texinfo
just-texinfo: just-libiberty force
if [ -d $(unsubdir)/texinfo ] ; then \
+ rootme=`pwd` ; export rootme ; \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/texinfo$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-texinfo: force
if [ -d $(unsubdir)/texinfo ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/texinfo$(subdir); \
$(MAKE) \
"against=$(against)" \
install-texinfo: force
if [ -d $(unsubdir)/texinfo ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/texinfo$(subdir); \
$(MAKE) \
"against=$(against)" \
all-bfd: just-bfd
just-bfd: force
if [ -d $(unsubdir)/bfd ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bfd$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-bfd: force
if [ -d $(unsubdir)/bfd ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bfd$(subdir); \
$(MAKE) \
"against=$(against)" \
install-bfd: force
if [ -d $(unsubdir)/bfd ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bfd$(subdir); \
$(MAKE) \
"against=$(against)" \
all-binutils: just-binutils
just-binutils: just-libiberty just-bfd force
if [ -d $(unsubdir)/binutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/binutils$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-binutils: force
if [ -d $(unsubdir)/binutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/binutils$(subdir); \
$(MAKE) \
"against=$(against)" \
install-binutils: force
if [ -d $(unsubdir)/binutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/binutils$(subdir); \
$(MAKE) \
"against=$(against)" \
all-byacc: just-byacc
just-byacc: force
if [ -d $(unsubdir)/byacc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/byacc$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-byacc: force
if [ -d $(unsubdir)/byacc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/byacc$(subdir); \
$(MAKE) \
"against=$(against)" \
install-byacc: force
if [ -d $(unsubdir)/byacc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/byacc$(subdir); \
$(MAKE) \
"against=$(against)" \
all-bison: just-bison
just-bison: just-libiberty force
if [ -d $(unsubdir)/bison ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bison$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-bison: force
if [ -d $(unsubdir)/bison ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bison$(subdir); \
$(MAKE) \
"against=$(against)" \
install-bison: force
if [ -d $(unsubdir)/bison ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/bison$(subdir); \
$(MAKE) \
"against=$(against)" \
.PHONY: all-gcc just-gcc
all-gcc: just-gcc
#just-gcc: just-libiberty just-bison just-gnulib1 force
-just-gcc: just-libiberty just-bison force
+just-gcc: just-libiberty just-bison just-gas force
if [ -d $(unsubdir)/gcc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gcc$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gcc: force
if [ -d $(unsubdir)/gcc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gcc$(subdir); \
$(MAKE) \
"against=$(against)" \
install-gcc:
if [ -d $(unsubdir)/gcc ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gcc$(subdir); \
$(MAKE) \
"against=$(against)" \
all-readline: just-readline
just-readline: force
if [ -d $(unsubdir)/readline ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/readline$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-readline: force
if [ -d $(unsubdir)/readline ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/readline$(subdir); \
$(MAKE) \
"against=$(against)" \
install-readline: force
if [ -d $(unsubdir)/readline ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/readline$(subdir); \
$(MAKE) \
"against=$(against)" \
all-glob: just-glob
just-glob: force
if [ -d $(unsubdir)/glob ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/glob$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-glob: force
if [ -d $(unsubdir)/glob ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/glob$(subdir); \
$(MAKE) \
"against=$(against)" \
install-glob: force
if [ -d $(unsubdir)/glob ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/glob$(subdir); \
$(MAKE) \
"against=$(against)" \
all-gas: just-gas
just-gas: just-libiberty just-bfd force
if [ -d $(unsubdir)/gas ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gas$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gas: force
if [ -d $(unsubdir)/gas ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gas$(subdir); \
$(MAKE) \
"against=$(against)" \
install-gas: force
if [ -d $(unsubdir)/gas ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gas$(subdir); \
$(MAKE) \
"against=$(against)" \
all-ld: just-ld
just-ld: just-libiberty just-bfd just-bison force
if [ -d $(unsubdir)/ld ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ld$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-ld: force
if [ -d $(unsubdir)/ld ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ld$(subdir); \
$(MAKE) \
"against=$(against)" \
install-ld: force
if [ -d $(unsubdir)/ld ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ld$(subdir); \
$(MAKE) \
"against=$(against)" \
.PHONY: all-gnulib just-gnulib1 just-gnulib
just-gnulib1: all-gas all-binutils force
if [ -d $(unsubdir)/gnulib ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gnulib$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gnulib1: force
if [ -d $(unsubdir)/gnulib ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gnulib$(subdir); \
$(MAKE) \
"against=$(against)" \
echo gnulib1 is a component, not an installable target
all-gnulib: just-gnulib
-just-gnulib: all-gcc all-gas all-binutils force
+just-gnulib: all-gas all-gcc all-binutils force
true
if [ -d $(unsubdir)/gnulib ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gnulib$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gnulib: force
if [ -d $(unsubdir)/gnulib ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gnulib$(subdir); \
$(MAKE) \
"against=$(against)" \
install-gnulib: force
if [ -d $(unsubdir)/gnulib ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gnulib$(subdir); \
$(MAKE) \
"against=$(against)" \
all-gdb: just-gdb
just-gdb: just-bfd just-libiberty just-readline just-glob just-bison force
if [ -d $(unsubdir)/gdb ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdb$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gdb: force
if [ -d $(unsubdir)/gdb ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdb$(subdir); \
$(MAKE) \
"against=$(against)" \
install-gdb: force
if [ -d $(unsubdir)/gdb ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdb$(subdir); \
$(MAKE) \
"against=$(against)" \
all-make: just-make
just-make: all-libiberty force
if [ -d $(unsubdir)/make ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/make$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-make: force
if [ -d $(unsubdir)/make ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/make$(subdir); \
$(MAKE) \
"against=$(against)" \
install-make: force
if [ -d $(unsubdir)/make ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/make$(subdir); \
$(MAKE) \
"against=$(against)" \
all-diff: just-diff
just-diff: force
if [ -d $(unsubdir)/diff ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/diff$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-diff: force
if [ -d $(unsubdir)/diff ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/diff$(subdir); \
$(MAKE) \
"against=$(against)" \
install-diff: force
if [ -d $(unsubdir)/diff ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/diff/$(subdir); \
$(MAKE) \
"against=$(against)" \
all-grep: just-grep
just-grep: force
if [ -d $(unsubdir)/grep ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/grep$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-grep: force
if [ -d $(unsubdir)/grep ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/grep$(subdir); \
$(MAKE) \
"against=$(against)" \
install-grep: force
if [ -d $(unsubdir)/grep ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/grep$(subdir); \
$(MAKE) \
"against=$(against)" \
all-rcs: just-rcs
just-rcs: just-diff just-grep force
if [ -d $(unsubdir)/rcs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/rcs$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-rcs: force
if [ -d $(unsubdir)/rcs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/rcs$(subdir); \
$(MAKE) \
"against=$(against)" \
install-rcs: install-grep install-diff force
if [ -d $(unsubdir)/rcs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/rcs$(subdir); \
$(MAKE) \
"against=$(against)" \
all-gdbm: just-gdbm
just-gdbm: force
if [ -d $(unsubdir)/gdbm ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdbm$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-gdbm: force
if [ -d $(unsubdir)/gdbm ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdbm$(subdir); \
$(MAKE) \
"against=$(against)" \
install-gdbm: force
if [ -d $(unsubdir)/gdbm ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/gdbm$(subdir); \
$(MAKE) \
"against=$(against)" \
all-cvs: just-cvs just-rcs just-grep just-diff
just-cvs: just-gdbm force
if [ -d $(unsubdir)/cvs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/cvs$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-cvs: clean-gdbm force
if [ -d $(unsubdir)/cvs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/cvs$(subdir); \
$(MAKE) \
"against=$(against)" \
install-cvs: install-rcs install-gdbm force
if [ -d $(unsubdir)/cvs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/cvs$(subdir); \
$(MAKE) \
"bindir=$(bindir)" \
all-patch: just-patch
just-patch: force
if [ -d $(unsubdir)/patch ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/patch$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-patch: force
if [ -d $(unsubdir)/patch ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/patch$(subdir); \
$(MAKE) \
"against=$(against)" \
install-patch: force
if [ -d $(unsubdir)/patch ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/patch$(subdir); \
$(MAKE) \
bindir=$(bindir) \
all-emacs: just-emacs
just-emacs: force
if [ -d $(unsubdir)/emacs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/emacs$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-emacs: force
if [ -d $(unsubdir)/emacs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/emacs$(subdir); \
$(MAKE) \
"against=$(against)" \
install-emacs: install-rcs install-gdbm force
if [ -d $(unsubdir)/emacs ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/emacs$(subdir); \
$(MAKE) \
"against=$(against)" \
all-ispell: just-ispell
just-ispell: all-emacs force
if [ -d $(unsubdir)/ispell ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ispell$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-ispell: force
if [ -d $(unsubdir)/ispell ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ispell$(subdir); \
$(MAKE) \
"against=$(against)" \
install-ispell: install-rcs install-gdbm force
if [ -d $(unsubdir)/ispell ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/ispell$(subdir); \
$(MAKE) \
"against=$(against)" \
all-flex: just-flex
just-flex: force
if [ -d $(unsubdir)/flex ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/flex$(subdir); \
$(MAKE) \
"against=$(against)" \
clean-flex: force
if [ -d $(unsubdir)/flex ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/flex$(subdir); \
$(MAKE) \
"against=$(against)" \
install-flex: force
if [ -d $(unsubdir)/flex ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/flex$(subdir); \
$(MAKE) \
"against=$(against)" \
all-fileutils: just-fileutils
just-fileutils: force
if [ -d $(unsubdir)/fileutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/fileutils$(subdir); \
$(MAKE) \
"prefix=$(prefix)" \
clean-fileutils: force
if [ -d $(unsubdir)/fileutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/fileutils$(subdir); \
$(MAKE) \
"prefix=$(prefix)" \
install-fileutils: force
if [ -d $(unsubdir)/fileutils ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/fileutils$(subdir); \
$(MAKE) \
"prefix=$(prefix)" \
### libg++
.PHONY: all-libg++ just-libg++
-all-libg++: just-gcc just-libg++
+all-libg++: just-gas just-ld just-gcc just-make just-libg++
# NOTE! We have added GXX= and XTRAFLAGS to the $(MAKE) line!!!
# and CC == GXX
# Do not clone this one.
-just-libg++: force
+just-libg++: just-make force
if [ -d $(unsubdir)/libg++ ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libg++$(subdir); \
$(MAKE) \
GXX=`cd $(unsubdir)/..$(subdir); pwd`"/gcc/gcc -B"`cd $(unsubdir)/..$(subdir);pwd`"/gcc/" \
+ MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
"XTRAFLAGS=-I"`cd $(unsubdir)/..$(subdir); pwd`/gcc/include\
"prefix=$(prefix)" \
"datadir=$(datadir)" \
clean-libg++: force
if [ -d $(unsubdir)/libg++ ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libg++$(subdir); \
$(MAKE) \
+ MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
install-libg++: force
if [ -d $(unsubdir)/libg++ ] ; then \
+ rootme=`pwd` ; export rootme ; \
(cd $(unsubdir)/libg++$(subdir); \
$(MAKE) \
+ MAKE=`cd $(unsubdir)/..$(subdir); pwd`/make/make \
"prefix=$(prefix)" \
"datadir=$(datadir)" \
"mandir=$(mandir)" \
subdir_do: force
for i in $(DODIRS); do \
if [ -f $(unsubdir)/$$i/localenv ] ; then \
- if (cd $(unsubdir)/$$i$(subdir); \
+ if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
$(MAKE) \
"against=$(against)" \
"BISON=$(BISON)" \
$(DO)) ; then true ; \
else exit 1 ; fi ; \
else if [ -d $(unsubdir)/$$i ] ; then \
- if (cd $(unsubdir)/$$i$(subdir); \
+ if (rootme=`pwd` ; export rootme ; cd $(unsubdir)/$$i$(subdir); \
$(MAKE) \
"against=$(against)" \
"AR=$(AR)" \