mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* Makefile.in: Merge with GCC and libgcj.
(ALL_GCC_C, ALL_GCC_CXX): New macros. Use them as dependencies of configure-target-<library> when their configure scripts need the C or C++ library to have already been built to work properly. (do_proto_toplev): Set them to an empty string.
This commit is contained in:
parent
bb19e2ea27
commit
25688b70d5
@ -1,3 +1,11 @@
|
|||||||
|
2000-11-18 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
|
* Makefile.in: Merge with GCC and libgcj.
|
||||||
|
(ALL_GCC_C, ALL_GCC_CXX): New macros. Use them as dependencies of
|
||||||
|
configure-target-<library> when their configure scripts need the C
|
||||||
|
or C++ library to have already been built to work properly.
|
||||||
|
(do_proto_toplev): Set them to an empty string.
|
||||||
|
|
||||||
Sat Nov 18 18:57:50 2000 Alexandre Oliva <aoliva@redhat.com>
|
Sat Nov 18 18:57:50 2000 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
|
* Makefile.in (HOST_LIB_PATH, TARGET_LIB_PATH): New macros.
|
||||||
|
104
Makefile.in
104
Makefile.in
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Makefile for directory with subdirs to build.
|
# Makefile for directory with subdirs to build.
|
||||||
# Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 1998
|
# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
||||||
# Free Software Foundation
|
# 1999, 2000 Free Software Foundation
|
||||||
#
|
#
|
||||||
# This file is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -225,7 +225,7 @@ CXX_FOR_TARGET =
|
|||||||
# variable is passed down to the gcc Makefile, where it is used to
|
# variable is passed down to the gcc Makefile, where it is used to
|
||||||
# build libgcc2.a. We define it here so that it can itself be
|
# build libgcc2.a. We define it here so that it can itself be
|
||||||
# overridden on the command line.
|
# overridden on the command line.
|
||||||
GCC_FOR_TARGET = $$r/gcc/xgcc $(FLAGS_FOR_TARGET)
|
GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
|
||||||
|
|
||||||
AS_FOR_TARGET = ` \
|
AS_FOR_TARGET = ` \
|
||||||
if [ -f $$r/gas/as-new ] ; then \
|
if [ -f $$r/gas/as-new ] ; then \
|
||||||
@ -533,6 +533,7 @@ ALL_MODULES = \
|
|||||||
all-uudecode \
|
all-uudecode \
|
||||||
all-wdiff \
|
all-wdiff \
|
||||||
all-zip \
|
all-zip \
|
||||||
|
all-zlib \
|
||||||
$(EXTRA_TARGET_HOST_ALL_MODULES)
|
$(EXTRA_TARGET_HOST_ALL_MODULES)
|
||||||
|
|
||||||
# This is a list of the check targets for all of the modules which are
|
# This is a list of the check targets for all of the modules which are
|
||||||
@ -883,7 +884,8 @@ CLEAN_MODULES = \
|
|||||||
clean-time \
|
clean-time \
|
||||||
clean-uudecode \
|
clean-uudecode \
|
||||||
clean-wdiff \
|
clean-wdiff \
|
||||||
clean-zip
|
clean-zip \
|
||||||
|
clean-zlib
|
||||||
|
|
||||||
# All of the target modules that can be cleaned
|
# All of the target modules that can be cleaned
|
||||||
CLEAN_TARGET_MODULES = \
|
CLEAN_TARGET_MODULES = \
|
||||||
@ -1061,7 +1063,12 @@ $(CLEAN_TARGET_MODULES):
|
|||||||
true; \
|
true; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clean-target: $(CLEAN_TARGET_MODULES)
|
clean-target: $(CLEAN_TARGET_MODULES) clean-target-libgcc
|
||||||
|
clean-target-libgcc:
|
||||||
|
test ! -d gcc/libgcc || \
|
||||||
|
(cd gcc/libgcc && find . -type d -print) | \
|
||||||
|
while read d; do rm -f gcc/$$d/libgcc.a || : ; done
|
||||||
|
-rm -rf gcc/libgcc
|
||||||
|
|
||||||
# Check target.
|
# Check target.
|
||||||
|
|
||||||
@ -1446,7 +1453,7 @@ bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean b
|
|||||||
s=`cd $(srcdir); pwd`; export s; \
|
s=`cd $(srcdir); pwd`; export s; \
|
||||||
$(SET_LIB_PATH) \
|
$(SET_LIB_PATH) \
|
||||||
echo "Bootstrapping the compiler"; \
|
echo "Bootstrapping the compiler"; \
|
||||||
cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $@
|
cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
|
||||||
@r=`pwd`; export r; \
|
@r=`pwd`; export r; \
|
||||||
s=`cd $(srcdir); pwd`; export s; \
|
s=`cd $(srcdir); pwd`; export s; \
|
||||||
case "$@" in \
|
case "$@" in \
|
||||||
@ -1462,7 +1469,7 @@ bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean b
|
|||||||
esac; \
|
esac; \
|
||||||
$(SET_LIB_PATH) \
|
$(SET_LIB_PATH) \
|
||||||
echo "$$msg"; \
|
echo "$$msg"; \
|
||||||
cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
|
cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
|
||||||
@r=`pwd`; export r; \
|
@r=`pwd`; export r; \
|
||||||
s=`cd $(srcdir); pwd` ; export s; \
|
s=`cd $(srcdir); pwd` ; export s; \
|
||||||
$(SET_LIB_PATH) \
|
$(SET_LIB_PATH) \
|
||||||
@ -1475,7 +1482,7 @@ cross: all-texinfo all-bison all-byacc all-binutils all-gas all-ld
|
|||||||
s=`cd $(srcdir); pwd`; export s; \
|
s=`cd $(srcdir); pwd`; export s; \
|
||||||
$(SET_LIB_PATH) \
|
$(SET_LIB_PATH) \
|
||||||
echo "Building the C and C++ compiler"; \
|
echo "Building the C and C++ compiler"; \
|
||||||
cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
|
cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
|
||||||
@r=`pwd`; export r; \
|
@r=`pwd`; export r; \
|
||||||
s=`cd $(srcdir); pwd` ; export s; \
|
s=`cd $(srcdir); pwd` ; export s; \
|
||||||
$(SET_LIB_PATH) \
|
$(SET_LIB_PATH) \
|
||||||
@ -1541,23 +1548,23 @@ all-bash:
|
|||||||
all-bfd: all-libiberty all-intl
|
all-bfd: all-libiberty all-intl
|
||||||
all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
|
all-binutils: all-libiberty all-opcodes all-bfd all-flex all-bison all-byacc all-intl
|
||||||
all-bison: all-texinfo
|
all-bison: all-texinfo
|
||||||
configure-target-boehm-gc: configure-target-newlib configure-target-qthreads
|
configure-target-boehm-gc: $(ALL_GCC_CXX) configure-target-qthreads
|
||||||
all-target-boehm-gc: configure-target-boehm-gc
|
all-target-boehm-gc: configure-target-boehm-gc
|
||||||
configure-target-bsp: $(ALL_GCC)
|
configure-target-bsp: $(ALL_GCC_C)
|
||||||
all-target-bsp: configure-target-bsp all-gcc all-binutils all-target-newlib
|
all-target-bsp: configure-target-bsp
|
||||||
all-byacc:
|
all-byacc:
|
||||||
all-bzip2:
|
all-bzip2:
|
||||||
all-cgen: all-libiberty
|
all-cgen: all-libiberty
|
||||||
all-cvssrc:
|
all-cvssrc:
|
||||||
configure-target-cygmon: $(ALL_GCC)
|
configure-target-cygmon: $(ALL_GCC_C)
|
||||||
all-target-cygmon: configure-target-cygmon all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-libstub all-target-bsp
|
all-target-cygmon: configure-target-cygmon all-target-libiberty all-target-libio all-target-libstub all-target-bsp
|
||||||
all-db:
|
all-db:
|
||||||
all-dejagnu: all-tcl all-expect all-tk
|
all-dejagnu: all-tcl all-expect all-tk
|
||||||
all-diff: all-libiberty
|
all-diff: all-libiberty
|
||||||
all-emacs:
|
all-emacs:
|
||||||
all-emacs19: all-bison all-byacc
|
all-emacs19: all-bison all-byacc
|
||||||
all-etc:
|
all-etc:
|
||||||
configure-target-examples: $(ALL_GCC)
|
configure-target-examples: $(ALL_GCC_C)
|
||||||
all-target-examples: configure-target-examples
|
all-target-examples: configure-target-examples
|
||||||
all-expect: all-tcl all-tk
|
all-expect: all-tcl all-tk
|
||||||
all-fileutils: all-libiberty
|
all-fileutils: all-libiberty
|
||||||
@ -1568,13 +1575,15 @@ all-gas: all-libiberty all-opcodes all-bfd all-intl
|
|||||||
all-gash: all-tcl
|
all-gash: all-tcl
|
||||||
all-gawk:
|
all-gawk:
|
||||||
ALL_GCC = all-gcc
|
ALL_GCC = all-gcc
|
||||||
all-gcc: all-bison all-byacc all-binutils all-gas all-ld
|
ALL_GCC_C = $(ALL_GCC) all-target-newlib all-target-libgloss
|
||||||
|
ALL_GCC_CXX = $(ALL_GCC_C) all-target-libstdc++ all-target-libstdc++-v3
|
||||||
|
all-gcc: all-bison all-byacc all-binutils all-gas all-ld all-zlib
|
||||||
all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
|
all-bootstrap: all-libiberty all-texinfo all-bison all-byacc all-binutils all-gas all-ld all-zlib
|
||||||
GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
|
GDB_TK = all-tk all-tcl all-itcl all-tix all-libgui
|
||||||
all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
|
all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-bison all-byacc all-sim $(gdbnlmrequirements) $(GDB_TK)
|
||||||
all-gettext:
|
all-gettext:
|
||||||
all-gnuserv:
|
all-gnuserv:
|
||||||
configure-target-gperf: $(ALL_GCC)
|
configure-target-gperf: $(ALL_GCC_C)
|
||||||
all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
|
all-target-gperf: configure-target-gperf all-target-libiberty all-target-libstdc++
|
||||||
all-gprof: all-libiberty all-bfd all-opcodes all-intl
|
all-gprof: all-libiberty all-bfd all-opcodes all-intl
|
||||||
all-grep: all-libiberty
|
all-grep: all-libiberty
|
||||||
@ -1589,46 +1598,46 @@ all-intl:
|
|||||||
all-ispell: all-emacs19
|
all-ispell: all-emacs19
|
||||||
all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
|
all-itcl: all-tcl all-tk all-tcl8.1 all-tk8.1
|
||||||
all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
|
all-ld: all-libiberty all-bfd all-opcodes all-bison all-byacc all-flex all-intl
|
||||||
configure-target-libg++: $(ALL_GCC) configure-target-librx
|
configure-target-libg++: $(ALL_GCC_CXX) configure-target-librx
|
||||||
all-target-libg++: configure-target-libg++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio all-target-librx all-target-libstdc++
|
all-target-libg++: configure-target-libg++ all-target-libiberty all-target-librx
|
||||||
configure-target-libgloss: $(ALL_GCC)
|
configure-target-libgloss: $(ALL_GCC)
|
||||||
all-target-libgloss: configure-target-libgloss configure-target-newlib
|
all-target-libgloss: configure-target-libgloss configure-target-newlib
|
||||||
configure-target-libio: $(ALL_GCC)
|
configure-target-libio: $(ALL_GCC_C)
|
||||||
all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
all-target-libio: configure-target-libio all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
||||||
check-target-libio:
|
check-target-libio: all-target-libstdc++
|
||||||
all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
|
all-libgui: all-tcl all-tk all-tcl8.1 all-tk8.1 all-itcl
|
||||||
all-libiberty:
|
all-libiberty:
|
||||||
configure-target-libffi: $(ALL_GCC)
|
configure-target-libffi: $(ALL_GCC_C)
|
||||||
configure-target-libjava: $(ALL_GCC) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-newlib configure-target-libffi
|
|
||||||
all-target-libffi: configure-target-libffi
|
all-target-libffi: configure-target-libffi
|
||||||
all-target-libjava: configure-target-libjava all-gcc all-zip all-target-newlib all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
|
configure-target-libjava: $(ALL_GCC_CXX) configure-target-zlib configure-target-boehm-gc configure-target-qthreads configure-target-libffi
|
||||||
configure-target-librx: $(ALL_GCC) configure-target-newlib
|
all-target-libjava: configure-target-libjava all-zip all-target-zlib all-target-boehm-gc all-target-qthreads all-target-libffi
|
||||||
|
configure-target-librx: $(ALL_GCC_C)
|
||||||
all-target-librx: configure-target-librx
|
all-target-librx: configure-target-librx
|
||||||
configure-target-libstdc++: $(ALL_GCC)
|
configure-target-libstdc++: $(ALL_GCC_C)
|
||||||
configure-target-libstdc++-v3: $(ALL_GCC)
|
all-target-libstdc++: configure-target-libstdc++ all-target-libiberty all-target-libio
|
||||||
all-target-libstdc++: configure-target-libstdc++ all-gas all-ld all-gcc all-target-libiberty all-target-newlib all-target-libio
|
configure-target-libstdc++-v3: $(ALL_GCC_C)
|
||||||
all-target-libstdc++-v3: configure-target-libstdc++-v3 all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
all-target-libstdc++-v3: configure-target-libstdc++-v3 all-target-libiberty
|
||||||
configure-target-libstub: $(ALL_GCC)
|
configure-target-libstub: $(ALL_GCC_C)
|
||||||
all-target-libstub: configure-target-libstub
|
all-target-libstub: configure-target-libstub
|
||||||
all-libtool:
|
all-libtool:
|
||||||
configure-target-libf2c: $(ALL_GCC)
|
configure-target-libf2c: $(ALL_GCC_C)
|
||||||
all-target-libf2c: configure-target-libf2c all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
all-target-libf2c: configure-target-libf2c all-target-libiberty
|
||||||
configure-target-libchill: $(ALL_GCC)
|
configure-target-libchill: $(ALL_GCC_C)
|
||||||
all-target-libchill: configure-target-libchill all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
all-target-libchill: configure-target-libchill all-target-libiberty
|
||||||
configure-target-libobjc: $(ALL_GCC)
|
configure-target-libobjc: $(ALL_GCC_C)
|
||||||
all-target-libobjc: configure-target-libobjc all-gas all-ld all-gcc all-target-libiberty all-target-newlib
|
all-target-libobjc: configure-target-libobjc all-target-libiberty
|
||||||
all-m4: all-libiberty
|
all-m4: all-libiberty
|
||||||
all-make: all-libiberty
|
all-make: all-libiberty
|
||||||
all-mmalloc:
|
all-mmalloc:
|
||||||
configure-target-newlib: $(ALL_GCC)
|
configure-target-newlib: $(ALL_GCC)
|
||||||
configure-target-libtermcap: $(ALL_GCC)
|
all-target-newlib: configure-target-newlib
|
||||||
all-target-newlib: configure-target-newlib all-binutils all-gas all-gcc
|
configure-target-libtermcap: $(ALL_GCC_C)
|
||||||
all-target-libtermcap: configure-target-libtermcap all-binutils all-gas all-gcc
|
all-target-libtermcap: configure-target-libtermcap
|
||||||
all-opcodes: all-bfd all-libiberty all-cgen
|
all-opcodes: all-bfd all-libiberty all-cgen
|
||||||
all-patch: all-libiberty
|
all-patch: all-libiberty
|
||||||
all-perl:
|
all-perl:
|
||||||
all-prms: all-libiberty
|
all-prms: all-libiberty
|
||||||
configure-target-qthreads: configure-target-newlib
|
configure-target-qthreads: $(ALL_GCC_C)
|
||||||
all-target-qthreads: configure-target-qthreads
|
all-target-qthreads: configure-target-qthreads
|
||||||
all-rcs:
|
all-rcs:
|
||||||
all-readline:
|
all-readline:
|
||||||
@ -1650,15 +1659,15 @@ all-tgas: all-libiberty all-bfd all-opcodes
|
|||||||
all-time:
|
all-time:
|
||||||
all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
|
all-tix: all-tcl all-tk all-tcl8.1 all-tk8.1
|
||||||
all-wdiff:
|
all-wdiff:
|
||||||
all-target-winsup: all-target-newlib all-target-libiberty all-target-libtermcap configure-target-winsup
|
configure-target-winsup: $(ALL_GCC_C)
|
||||||
configure-target-winsup: configure-target-newlib
|
all-target-winsup: all-target-libiberty all-target-libtermcap configure-target-winsup
|
||||||
all-uudecode: all-libiberty
|
all-uudecode: all-libiberty
|
||||||
all-zip:
|
all-zip:
|
||||||
all-zlib:
|
all-zlib:
|
||||||
configure-target-zlib: $(ALL_GCC)
|
configure-target-zlib: $(ALL_GCC_C)
|
||||||
all-target-zlib: configure-target-zlib
|
all-target-zlib: configure-target-zlib
|
||||||
configure-target-libiberty: $(ALL_GCC) configure-target-newlib
|
configure-target-libiberty: $(ALL_GCC_C)
|
||||||
all-target-libiberty: configure-target-libiberty all-gcc all-ld all-target-newlib
|
all-target-libiberty: configure-target-libiberty
|
||||||
all-target: $(ALL_TARGET_MODULES)
|
all-target: $(ALL_TARGET_MODULES)
|
||||||
install-target: $(INSTALL_TARGET_MODULES)
|
install-target: $(INSTALL_TARGET_MODULES)
|
||||||
install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
|
install-gdb: install-tcl install-tk install-itcl install-tix install-libgui
|
||||||
@ -1708,7 +1717,7 @@ DEVO_SUPPORT= README Makefile.in configure configure.in \
|
|||||||
mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
|
mpw-README mpw-build.in mpw-config.in mpw-configure mpw-install \
|
||||||
COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
|
COPYING COPYING.LIB install-sh config-ml.in symlink-tree \
|
||||||
mkinstalldirs ltconfig ltmain.sh missing ylwrap \
|
mkinstalldirs ltconfig ltmain.sh missing ylwrap \
|
||||||
libtool.m4 gettext.m4 ltcf-c.sh
|
libtool.m4 gettext.m4 ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh
|
||||||
|
|
||||||
# Files in devo/etc used in any net release.
|
# Files in devo/etc used in any net release.
|
||||||
# ChangeLog omitted because it may refer to files which are not in this
|
# ChangeLog omitted because it may refer to files which are not in this
|
||||||
@ -1774,7 +1783,8 @@ do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
|
|||||||
#
|
#
|
||||||
./configure sun4
|
./configure sun4
|
||||||
[ -z "$(CONFIGURE_TARGET_MODULES)" ] \
|
[ -z "$(CONFIGURE_TARGET_MODULES)" ] \
|
||||||
|| $(MAKE) $(CONFIGURE_TARGET_MODULES) ALL_GCC="" \
|
|| $(MAKE) $(CONFIGURE_TARGET_MODULES) \
|
||||||
|
ALL_GCC="" ALL_GCC_C="" ALL_GCC_CXX="" \
|
||||||
CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
|
CC_FOR_TARGET="$(CC)" CXX_FOR_TARGET="$(CXX)"
|
||||||
# Make links, and run "make diststuff" or "make info" when needed.
|
# Make links, and run "make diststuff" or "make info" when needed.
|
||||||
rm -rf proto-toplev ; mkdir proto-toplev
|
rm -rf proto-toplev ; mkdir proto-toplev
|
||||||
@ -1794,7 +1804,7 @@ do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex
|
|||||||
fi ; \
|
fi ; \
|
||||||
else ln -s ../$$d proto-toplev/$$d ; fi ; \
|
else ln -s ../$$d proto-toplev/$$d ; fi ; \
|
||||||
done
|
done
|
||||||
cd etc ; $(MAKE) info
|
cd etc && $(MAKE) info
|
||||||
$(MAKE) distclean
|
$(MAKE) distclean
|
||||||
#
|
#
|
||||||
mkdir proto-toplev/etc
|
mkdir proto-toplev/etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user