summaryrefslogtreecommitdiffstats
path: root/gcc/fixinc/mkfixinc.sh
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-13 20:07:46 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-13 20:07:46 +0000
commit5beb4ba097ebc3d2d87ee799606ae7789547c89a (patch)
treeaa77d1e180b5de6f18f88e4ec71062700cc5d417 /gcc/fixinc/mkfixinc.sh
parent370f8928be64012444d56f6d5392d77fe148096f (diff)
downloadppe42-gcc-5beb4ba097ebc3d2d87ee799606ae7789547c89a.tar.gz
ppe42-gcc-5beb4ba097ebc3d2d87ee799606ae7789547c89a.zip
Use one makefile for fixinc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38231 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc/mkfixinc.sh')
-rwxr-xr-xgcc/fixinc/mkfixinc.sh33
1 files changed, 12 insertions, 21 deletions
diff --git a/gcc/fixinc/mkfixinc.sh b/gcc/fixinc/mkfixinc.sh
index ec9cdbcb985..5bb6a5502c9 100755
--- a/gcc/fixinc/mkfixinc.sh
+++ b/gcc/fixinc/mkfixinc.sh
@@ -1,39 +1,30 @@
#! /bin/sh
-build=$1
-machine=$2
-
-if [ -z "$build" ]
-then
- echo No target system name given
- exit 1
-fi
-
-# If we don't get two arguments, then assume both arguments
-# are the same
-#
-if [ -z "$machine" ]
+if [ $# -ne 2 ]
then
- machine="$build"
+ echo "Usage: $0 <build-mach-triplet> <target-mach-triplet>"
+ exit 1
fi
+build=$1
+machine=$2
target=../fixinc.sh
echo constructing ${target} for $machine to run on $build
fixincludes="${machine}"
-# Choose fix build method by build system
+# Choose one or two-process fix methodology. Systems that cannot handle
+# bi-directional pipes must use the twoprocess method.
+#
case $build in
- i?86-*-msdosdjgpp* )
- MAKE="${MAKE} -f ${srcdir}/Makefile.DOS srcdir=${srcdir}"
- ;;
-
+ i?86-*-msdosdjgpp* | \
*-*-beos* )
- MAKE="${MAKE} -f ${srcdir}/Makefile.BEOS srcdir=${srcdir}"
+ MAKE="${MAKE} TARGETS=twoprocess"
+ CFLAGS="${CFLAGS} -DSEPARATE_FIX_PROC"
;;
* )
- MAKE="${MAKE} -f Makefile"
+ MAKE="${MAKE} TARGETS=oneprocess"
;;
esac
OpenPOWER on IntegriCloud