(newlib.tar.gz): Configure newlib subdir so .info files are made.
This commit is contained in:
parent
f9e903ee03
commit
041038455c
1 changed files with 35 additions and 20 deletions
55
Makefile.in
55
Makefile.in
|
@ -42,6 +42,7 @@ man9dir = $(mandir)/man9
|
||||||
infodir = $(prefix)/info
|
infodir = $(prefix)/info
|
||||||
includedir = $(prefix)/include
|
includedir = $(prefix)/include
|
||||||
docdir = $(datadir)/doc
|
docdir = $(datadir)/doc
|
||||||
|
GDB_NLM_DEPS =
|
||||||
|
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
||||||
|
@ -69,6 +70,8 @@ CFLAGS = -g
|
||||||
LIBCFLAGS = $(CFLAGS)
|
LIBCFLAGS = $(CFLAGS)
|
||||||
CFLAGS_FOR_TARGET = $(CFLAGS)
|
CFLAGS_FOR_TARGET = $(CFLAGS)
|
||||||
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
|
LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
|
||||||
|
PICFLAG =
|
||||||
|
PICFLAG_FOR_TARGET =
|
||||||
|
|
||||||
# start-sanitize-chill
|
# start-sanitize-chill
|
||||||
CHILLFLAGS = $(CFLAGS)
|
CHILLFLAGS = $(CFLAGS)
|
||||||
|
@ -157,7 +160,7 @@ CC_FOR_TARGET = ` \
|
||||||
# start-sanitize-chill
|
# start-sanitize-chill
|
||||||
CHILL_FOR_TARGET = ` \
|
CHILL_FOR_TARGET = ` \
|
||||||
if [ -f $$r/gcc/Makefile ] ; then \
|
if [ -f $$r/gcc/Makefile ] ; then \
|
||||||
echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/chillrt/; \
|
echo $$r/gcc/xgcc -B$$r/gcc/ -L$$r/gcc/ch/runtime/; \
|
||||||
else \
|
else \
|
||||||
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
|
||||||
echo $(CC); \
|
echo $(CC); \
|
||||||
|
@ -259,11 +262,13 @@ BASE_FLAGS_TO_PASS = \
|
||||||
"LEX=$(LEX)" \
|
"LEX=$(LEX)" \
|
||||||
"LIBCFLAGS=$(LIBCFLAGS)" \
|
"LIBCFLAGS=$(LIBCFLAGS)" \
|
||||||
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
||||||
"LIBCXXFLAGS=$(LIBCFLAGS)" \
|
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
|
||||||
"LIBCXXFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
|
"LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
|
||||||
"M4=$(M4)" \
|
"M4=$(M4)" \
|
||||||
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
|
||||||
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
|
"NM_FOR_TARGET=$(NM_FOR_TARGET)" \
|
||||||
|
"PICFLAG=$(PICFLAG)" \
|
||||||
|
"PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
|
||||||
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
|
"RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
|
||||||
"SHELL=$(SHELL)" \
|
"SHELL=$(SHELL)" \
|
||||||
"EXPECT=$(EXPECT)" \
|
"EXPECT=$(EXPECT)" \
|
||||||
|
@ -308,6 +313,7 @@ EXTRA_TARGET_FLAGS = \
|
||||||
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
|
'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
|
||||||
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
|
'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
|
||||||
'NM=$$(NM_FOR_TARGET)' \
|
'NM=$$(NM_FOR_TARGET)' \
|
||||||
|
'PICFLAG=$$(PICFLAG_FOR_TARGET)' \
|
||||||
'RANLIB=$$(RANLIB_FOR_TARGET)'
|
'RANLIB=$$(RANLIB_FOR_TARGET)'
|
||||||
|
|
||||||
TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
|
TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
|
||||||
|
@ -348,7 +354,6 @@ ALL_MODULES = \
|
||||||
all-flex \
|
all-flex \
|
||||||
all-gas \
|
all-gas \
|
||||||
all-gawk \
|
all-gawk \
|
||||||
all-gdb \
|
|
||||||
all-gprof \
|
all-gprof \
|
||||||
all-grep \
|
all-grep \
|
||||||
all-gzip \
|
all-gzip \
|
||||||
|
@ -404,7 +409,6 @@ CROSS_CHECK_MODULES = \
|
||||||
check-find \
|
check-find \
|
||||||
check-gas \
|
check-gas \
|
||||||
check-gawk \
|
check-gawk \
|
||||||
check-gdb \
|
|
||||||
check-gprof \
|
check-gprof \
|
||||||
check-grep \
|
check-grep \
|
||||||
check-gzip \
|
check-gzip \
|
||||||
|
@ -454,8 +458,6 @@ INSTALL_MODULES = \
|
||||||
install-flex \
|
install-flex \
|
||||||
install-gas \
|
install-gas \
|
||||||
install-gawk \
|
install-gawk \
|
||||||
install-gdb \
|
|
||||||
install-glob \
|
|
||||||
install-gprof \
|
install-gprof \
|
||||||
install-grep \
|
install-grep \
|
||||||
install-gzip \
|
install-gzip \
|
||||||
|
@ -491,6 +493,7 @@ INSTALL_MODULES = \
|
||||||
ALL_X11_MODULES = \
|
ALL_X11_MODULES = \
|
||||||
all-emacs \
|
all-emacs \
|
||||||
all-emacs19 \
|
all-emacs19 \
|
||||||
|
all-gdb \
|
||||||
all-expect \
|
all-expect \
|
||||||
all-gash \
|
all-gash \
|
||||||
all-tclX \
|
all-tclX \
|
||||||
|
@ -500,6 +503,7 @@ ALL_X11_MODULES = \
|
||||||
# compiled using $(X11_FLAGS_TO_PASS).
|
# compiled using $(X11_FLAGS_TO_PASS).
|
||||||
CHECK_X11_MODULES = \
|
CHECK_X11_MODULES = \
|
||||||
check-emacs \
|
check-emacs \
|
||||||
|
check-gdb \
|
||||||
check-expect \
|
check-expect \
|
||||||
check-gash \
|
check-gash \
|
||||||
check-tclX \
|
check-tclX \
|
||||||
|
@ -510,6 +514,7 @@ CHECK_X11_MODULES = \
|
||||||
INSTALL_X11_MODULES = \
|
INSTALL_X11_MODULES = \
|
||||||
install-emacs \
|
install-emacs \
|
||||||
install-emacs19 \
|
install-emacs19 \
|
||||||
|
install-gdb \
|
||||||
install-expect \
|
install-expect \
|
||||||
install-gash \
|
install-gash \
|
||||||
install-tclX \
|
install-tclX \
|
||||||
|
@ -659,12 +664,20 @@ check: $(CHECK_MODULES) \
|
||||||
|
|
||||||
# Installation targets.
|
# Installation targets.
|
||||||
|
|
||||||
.PHONY: install uninstall vault-install
|
.PHONY: install uninstall source-vault binary-vault vault-install
|
||||||
install: $(INSTALL_TARGET)
|
install: $(INSTALL_TARGET)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@echo "the uninstall target is not supported in this tree"
|
@echo "the uninstall target is not supported in this tree"
|
||||||
|
|
||||||
|
source-vault:
|
||||||
|
$(MAKE) -f ./release/Build-A-Release \
|
||||||
|
host=$(host_alias) source-vault
|
||||||
|
|
||||||
|
binary-vault:
|
||||||
|
$(MAKE) -f ./release/Build-A-Release \
|
||||||
|
host=$(host_alias) target=$(target_alias)
|
||||||
|
|
||||||
vault-install:
|
vault-install:
|
||||||
@if [ -f ./release/vault-install ] ; then \
|
@if [ -f ./release/vault-install ] ; then \
|
||||||
./release/vault-install $(host_alias) $(target_alias) ; \
|
./release/vault-install $(host_alias) $(target_alias) ; \
|
||||||
|
@ -714,13 +727,12 @@ gcc-no-fixedincludes:
|
||||||
|
|
||||||
# This rule is used to build the modules which use FLAGS_TO_PASS. To
|
# This rule is used to build the modules which use FLAGS_TO_PASS. To
|
||||||
# build a target all-X means to cd to X and make all.
|
# build a target all-X means to cd to X and make all.
|
||||||
# all-glob is handled specially because it doesn't actually build.
|
|
||||||
#
|
#
|
||||||
# all-gui, and all-libproc are handled specially because
|
# all-gui, and all-libproc are handled specially because
|
||||||
# they are still experimental, and if they fail to build, that
|
# they are still experimental, and if they fail to build, that
|
||||||
# shouldn't stop "make all".
|
# shouldn't stop "make all".
|
||||||
.PHONY: $(ALL_MODULES) all-glob all-gui all-libproc
|
.PHONY: $(ALL_MODULES) all-gui all-libproc
|
||||||
$(ALL_MODULES) all-glob all-gui all-libproc:
|
$(ALL_MODULES) all-gui all-libproc:
|
||||||
@dir=`echo $@ | sed -e 's/all-//'`; \
|
@dir=`echo $@ | sed -e 's/all-//'`; \
|
||||||
if [ -f ./$${dir}/Makefile ] ; then \
|
if [ -f ./$${dir}/Makefile ] ; then \
|
||||||
r=`pwd`; export r; \
|
r=`pwd`; export r; \
|
||||||
|
@ -922,9 +934,8 @@ all-flex: all-libiberty all-byacc
|
||||||
all-gas: all-libiberty all-opcodes all-bfd
|
all-gas: all-libiberty all-opcodes all-bfd
|
||||||
all-gash: all-tcl
|
all-gash: all-tcl
|
||||||
all-gawk:
|
all-gawk:
|
||||||
all-gcc: all-libiberty all-byacc all-binutils all-gas
|
all-gcc: all-libiberty all-byacc all-binutils all-gas all-ld
|
||||||
all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-glob all-byacc all-sim all-gcc all-ld
|
all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-byacc all-sim $(gdbnlmrequirements)
|
||||||
all-glob:
|
|
||||||
all-gprof: all-libiberty all-bfd
|
all-gprof: all-libiberty all-bfd
|
||||||
all-grep: all-libiberty
|
all-grep: all-libiberty
|
||||||
all-gui: all-gdb all-libproc all-librx
|
all-gui: all-gdb all-libproc all-librx
|
||||||
|
@ -933,7 +944,7 @@ all-hello: all-libiberty
|
||||||
all-indent:
|
all-indent:
|
||||||
all-ispell: all-emacs19
|
all-ispell: all-emacs19
|
||||||
all-ld: all-libiberty all-bfd all-byacc all-flex
|
all-ld: all-libiberty all-bfd all-byacc all-flex
|
||||||
all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib all-libio all-librx
|
all-libg++: all-gas all-ld all-gcc all-xiberty all-newlib all-libio all-librx all-libstdc++
|
||||||
all-libio: all-gas all-ld all-gcc all-xiberty all-newlib
|
all-libio: all-gas all-ld all-gcc all-xiberty all-newlib
|
||||||
all-libiberty:
|
all-libiberty:
|
||||||
all-libstdc++: all-gas all-ld all-gcc all-xiberty all-newlib all-libio
|
all-libstdc++: all-gas all-ld all-gcc all-xiberty all-newlib all-libio
|
||||||
|
@ -1081,8 +1092,7 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
|
||||||
if [ -d $$d ]; then \
|
if [ -d $$d ]; then \
|
||||||
case " $$p " in \
|
case " $$p " in \
|
||||||
*" $$d "*) \
|
*" $$d "*) \
|
||||||
echo making diststuff in $$d ; \
|
(cd $$d ; $(MAKE) diststuff ) || exit 1 ;; \
|
||||||
(cd $$d ; pwd ; $(MAKE) diststuff ) || exit 1 ;; \
|
|
||||||
esac ; \
|
esac ; \
|
||||||
if [ -d $$d/proto-$$d.dir ]; then \
|
if [ -d $$d/proto-$$d.dir ]; then \
|
||||||
ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
|
ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
|
||||||
|
@ -1102,10 +1112,9 @@ taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
|
||||||
ln -s ../../etc/$$i* . ; \
|
ln -s ../../etc/$$i* . ; \
|
||||||
done)
|
done)
|
||||||
#
|
#
|
||||||
# Take out texinfo and glob from configurable dirs
|
# Take out texinfo from configurable dirs
|
||||||
rm proto-toplev/configure.in
|
rm proto-toplev/configure.in
|
||||||
sed -e '/^host_tools=/s/texinfo //' \
|
sed -e '/^host_tools=/s/texinfo //' \
|
||||||
-e '/^host_libs=/s/glob //' \
|
|
||||||
<configure.in >proto-toplev/configure.in
|
<configure.in >proto-toplev/configure.in
|
||||||
#
|
#
|
||||||
mkdir proto-toplev/texinfo
|
mkdir proto-toplev/texinfo
|
||||||
|
@ -1154,14 +1163,20 @@ gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
|
||||||
SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
|
SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
|
||||||
|
|
||||||
.PHONY: gdb.tar.gz
|
.PHONY: gdb.tar.gz
|
||||||
GDB_SUPPORT_DIRS= bfd glob include libiberty mmalloc opcodes readline sim
|
GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline sim
|
||||||
gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
|
gdb.tar.gz: $(DIST_SUPPORT) $(GDB_SUPPORT_DIRS) gdb
|
||||||
$(MAKE) -f Makefile.in taz TOOL=gdb \
|
$(MAKE) -f Makefile.in taz TOOL=gdb \
|
||||||
SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
|
SUPPORT_FILES="$(GDB_SUPPORT_DIRS)"
|
||||||
|
|
||||||
.PHONY: newlib.tar.gz
|
.PHONY: newlib.tar.gz
|
||||||
NEWLIB_SUPPORT_DIRS=
|
NEWLIB_SUPPORT_DIRS=
|
||||||
|
# taz configures for the sun4 target which won't configure newlib.
|
||||||
|
# compensate here by configuring newlib for a simple (no multilib support)
|
||||||
|
# cross target (sparc64).
|
||||||
newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
|
newlib.tar.gz: $(DIST_SUPPORT) $(NEWLIB_SUPPORT_DIRS) newlib
|
||||||
|
rootme=`pwd` ; \
|
||||||
|
cd newlib && ../configure --srcdir $$rootme/newlib \
|
||||||
|
--host sun4 --target sparc64-elf
|
||||||
$(MAKE) -f Makefile.in taz TOOL=newlib \
|
$(MAKE) -f Makefile.in taz TOOL=newlib \
|
||||||
SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
|
SUPPORT_FILES="$(NEWLIB_SUPPORT_DIRS)" \
|
||||||
DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" \
|
DEVO_SUPPORT="$(DEVO_SUPPORT) COPYING.NEWLIB" \
|
||||||
|
|
Loading…
Reference in a new issue