1998-03-01 23:41:17 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# This script installs the main files generated by the binutils
|
|
|
|
# "configure" scripts and makefiles. It can be used for upgrading to
|
|
|
|
# a new version of binutils.
|
|
|
|
#
|
|
|
|
# Don't forget to change the VERSION definition in the top level
|
|
|
|
# "Makefile.inc0".
|
|
|
|
|
|
|
|
gnudir=$(pwd)
|
|
|
|
contribdir="${gnudir}/../../../contrib/binutils"
|
1998-03-12 04:54:42 +00:00
|
|
|
platform="`uname -m`"
|
1998-03-01 23:41:17 +00:00
|
|
|
|
|
|
|
rm -rf build
|
1998-03-12 02:55:43 +00:00
|
|
|
mkdir build
|
1998-03-01 23:41:17 +00:00
|
|
|
|
1998-03-12 04:54:42 +00:00
|
|
|
echo "binutils elf configuration for $platform"
|
|
|
|
|
1998-03-12 02:55:43 +00:00
|
|
|
(cd build
|
1998-03-12 04:54:42 +00:00
|
|
|
${contribdir}/configure $platform-unknown-freebsdelf || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
(cd gas
|
1998-03-12 02:55:43 +00:00
|
|
|
echo "Updating as"
|
1998-03-01 23:41:17 +00:00
|
|
|
make config.h || exit
|
1998-03-12 04:54:42 +00:00
|
|
|
cp config.h ${gnudir}/as/$platform/config.h || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd ld
|
1998-03-12 02:55:43 +00:00
|
|
|
echo "Updating ld"
|
1998-03-01 23:41:17 +00:00
|
|
|
make config.h ldemul-list.h || exit
|
1998-03-12 02:55:43 +00:00
|
|
|
cp config.h ${gnudir}/ld || exit
|
1998-03-12 04:54:42 +00:00
|
|
|
cp ldemul-list.h ${gnudir}/ld/$platform || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd bfd
|
|
|
|
echo "Updating libbfd"
|
|
|
|
make bfd.h config.h || exit
|
1998-03-12 04:54:42 +00:00
|
|
|
cp bfd.h ${gnudir}/libbfd/$platform || exit
|
|
|
|
cp config.h ${gnudir}/libbfd/$platform || exit
|
1998-03-01 23:41:17 +00:00
|
|
|
)
|
|
|
|
(cd binutils
|
|
|
|
echo "Updating libbinutils"
|
|
|
|
make config.h || exit
|
|
|
|
cp config.h ${gnudir}/libbinutils/config.h || exit
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
rm -rf build
|