Commit efc9daa3 by Doug Evans

configure.frag: New arguments xmake_files, tmake_files.

	* configure.frag: New arguments xmake_files, tmake_files.
	Build Make-host, Make-target.

From-SVN: r14517
parent 94f42018
# configure.frag for GNU CC # configure.frag for GNU CC
# Process the Makefile fragments from language directories. # Process the host/target/language Makefile fragments.
# Copyright (C) 1997 Free Software Foundation, Inc. # Copyright (C) 1997 Free Software Foundation, Inc.
...@@ -20,14 +20,42 @@ ...@@ -20,14 +20,42 @@
#the Free Software Foundation, 59 Temple Place - Suite 330, #the Free Software Foundation, 59 Temple Place - Suite 330,
#Boston, MA 02111-1307, USA. #Boston, MA 02111-1307, USA.
# First parameter is the source directory, second is list of subdirectories # First parameter is the source directory, second is list of subdirectories,
# third is list of host makefile fragments, fourth is list of target makefile
# fragments.
savesrcdir=$1 srcdir=$1
savesubdirs=$2 subdirs=$2
xmake_files=$3
tmake_files=$4
# First ensure the language build subdirectories exist. # Copy all the host makefile fragments into Make-host.
for subdir in . $savesubdirs rm -f Make-host
touch Make-host
for f in .. $xmake_files
do
if [ -f $f ]
then
cat $f >> Make-host
fi
done
# Copy all the target makefile fragments into Make-target.
rm -f Make-target
touch Make-target
for f in .. $tmake_files
do
if [ -f $f ]
then
cat $f >> Make-target
fi
done
# Ensure the language build subdirectories exist.
for subdir in . $subdirs
do do
if [ $subdir != . ] if [ $subdir != . ]
then then
...@@ -40,10 +68,10 @@ done ...@@ -40,10 +68,10 @@ done
rm -f Make-lang rm -f Make-lang
touch Make-lang touch Make-lang
for subdir in . $savesubdirs for subdir in . $subdirs
do do
if [ $subdir != . ] if [ $subdir != . ]
then then
cat $savesrcdir/$subdir/Make-lang.in >> Make-lang cat $srcdir/$subdir/Make-lang.in >> Make-lang
fi fi
done done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment