aboutsummaryrefslogtreecommitdiff
path: root/gas/mpw-build.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-01-25 18:59:27 +0000
committerStan Shebs <shebs@codesourcery.com>1994-01-25 18:59:27 +0000
commit6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb (patch)
treea953d7b4faf78aff1e8d30947908cd5567fb74d5 /gas/mpw-build.in
parent7c805df0529c50b5022ae1c3cbf2e7313a975061 (diff)
downloadfsf-binutils-gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.zip
fsf-binutils-gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.tar.gz
fsf-binutils-gdb-6d15011d40cb79dc8b63d8bf429e8c1bbf3e6ffb.tar.bz2
Tue Jan 25 10:49:31 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-config.in (varargs.h, sys/*.h): Don't create when configuring. (host.h): Create with forward-include. * mpw-make.in (CFLAGS): Add -w flag. * mpw-build.in: New file, build script fragment.
Diffstat (limited to 'gas/mpw-build.in')
-rw-r--r--gas/mpw-build.in48
1 files changed, 48 insertions, 0 deletions
diff --git a/gas/mpw-build.in b/gas/mpw-build.in
new file mode 100644
index 0000000..f35c93d
--- /dev/null
+++ b/gas/mpw-build.in
@@ -0,0 +1,48 @@
+# Script fragment to build MPW GAS.
+
+Set BuildTarget "none"
+
+Loop
+ Break If {#} == 0
+ If "{1}" =~ /--srcdir/
+ Set srcdir "{2}"
+ Shift 1
+ Else If "{1}" =~ /--topdir/
+ Set topsrcdir "{2}"
+ Shift 1
+ Else If "{1}" =~ /--prefix/
+ Set prefix "{2}"
+ Shift 1
+ Else If "{1}" =~ /-v/
+ Set verify 1
+ Set verifystr "-v"
+ Shift 1
+ Else
+ If "{BuildTarget}" =~ /none/
+ Set BuildTarget "{1}"
+ Else
+ Echo Only one build target allowed, ignoring "{1}"
+ End If
+ End If
+ Shift 1
+End Loop
+
+Set libsubdir "{libdir}"gcc-lib:"{target_canonical}":"{version}":
+
+If "{BuildTarget}" =~ /all/
+ Echo "Set Echo 1" >all.makeout
+ Make >>all.makeout
+ all.makeout
+ Delete all.makeout
+Else If "{BuildTarget}" =~ /install/
+ If "`Exists "{prefix}"`" == ""
+ Echo "{prefix}" does not exist, cannot install anything
+ Exit 1
+ End If
+ If "`Exists "{bindir}"`" == ""
+ NewFolder "{bindir}"
+ End If
+ Duplicate -y :as.new "{bindir}"as
+Else
+ Echo {BuildTarget} not a valid build target
+End If