aboutsummaryrefslogtreecommitdiff
path: root/mpw-build.in
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-02-28 00:15:29 +0000
committerStan Shebs <shebs@codesourcery.com>1994-02-28 00:15:29 +0000
commitaa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace (patch)
tree251e526697b35fc3b015707a749caa1e69710baf /mpw-build.in
parentd63840d0163e42f202f4f1bdfce353a7b3fbbdda (diff)
downloadgdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.zip
gdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.tar.gz
gdb-aa8f28af4b5ffa3eb67b9b51db0ab3c436be7ace.tar.bz2
Sun Feb 27 16:05:15 1994 Stan Shebs (shebs@andros.cygnus.com)
* mpw-configure (prefix, mpw_prefix): Handle it. (ARCHDEFS): Add to makefile editing. (TDEPFILES, TM_FILE, XDEPFILES, XM_FILE, NAT_FILE): Add to makefile if defined. (mpw-edit-prefix): Use during makefile editing. * mpw-config.in (mmalloc, readline): Don't configure. * mpw-build.in (thisscript): Rename to ThisScript. Use mpw-build instead of BuildProgram everywhere. (mmalloc, readline): Don't build. * mpw-README: New file, basic documentation about the MPW port.
Diffstat (limited to 'mpw-build.in')
-rw-r--r--mpw-build.in120
1 files changed, 51 insertions, 69 deletions
diff --git a/mpw-build.in b/mpw-build.in
index a581e62..c9ea70d 100644
--- a/mpw-build.in
+++ b/mpw-build.in
@@ -4,126 +4,108 @@ Set savedir "`Directory`"
#Set Echo 1
-Set thisscript "{0}"
-
-Set topsrcdir ":"
-
-Set srcdir ":"
+Set ThisScript "{0}"
Set objdir ":"
Set verify 0
-Set verifystr ""
Set BuildTarget "none"
-Set prefix "{Boot}"Cygnus:latest:
-
# Parse arguments.
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
-If "{BuildTarget}" =~ /all/
- "{thisscript}" all-ld
- "{thisscript}" all-gcc
- "{thisscript}" all-gdb
+If {verify} == 1
+ Echo "#" Doing "{ThisScript}" "{BuildTarget}" in "`Directory`" ...
+End If
+
+If "`Exists Makefile`" != ""
+ Echo "Set Echo 1" >{BuildTarget}.makeout
+ Make -f Makefile {BuildTarget} >>{BuildTarget}.makeout
+ {BuildTarget}.makeout
+ Delete {BuildTarget}.makeout
+Else If "{BuildTarget}" =~ /all/
+ "{ThisScript}" all-gcc
+ "{ThisScript}" all-ld
+ "{ThisScript}" all-gdb
Else If "{BuildTarget}" =~ /all-binutils/
- "{thisscript}" do-libiberty
- "{thisscript}" do-bfd
- "{thisscript}" do-opcodes
- "{thisscript}" do-binutils
+ "{ThisScript}" do-libiberty
+ "{ThisScript}" do-bfd
+ "{ThisScript}" do-opcodes
+ "{ThisScript}" do-binutils
Else If "{BuildTarget}" =~ /all-gas/
- "{thisscript}" do-libiberty
- "{thisscript}" do-bfd
- "{thisscript}" do-opcodes
- "{thisscript}" do-gas
+ "{ThisScript}" do-libiberty
+ "{ThisScript}" do-bfd
+ "{ThisScript}" do-opcodes
+ "{ThisScript}" do-gas
Else If "{BuildTarget}" =~ /all-gcc/
- "{thisscript}" all-gas
- "{thisscript}" do-gcc
+ "{ThisScript}" all-gas
+ "{ThisScript}" all-binutils
+ "{ThisScript}" do-gcc
Else If "{BuildTarget}" =~ /all-gdb/
- "{thisscript}" do-libiberty
- "{thisscript}" do-bfd
- "{thisscript}" do-opcodes
- "{thisscript}" do-gdb
+ "{ThisScript}" do-libiberty
+ "{ThisScript}" do-bfd
+ "{ThisScript}" do-opcodes
+ "{ThisScript}" do-gdb
Else If "{BuildTarget}" =~ /all-ld/
- "{thisscript}" do-libiberty
- "{thisscript}" do-bfd
- "{thisscript}" do-opcodes
- "{thisscript}" do-ld
+ "{ThisScript}" do-libiberty
+ "{ThisScript}" do-bfd
+ "{ThisScript}" do-opcodes
+ "{ThisScript}" do-ld
Else If "{BuildTarget}" =~ /do-bfd/
SetDirectory :bfd:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-libiberty/
SetDirectory :libiberty:
- BuildProgram all
-Else If "{BuildTarget}" =~ /do-mmalloc/
- SetDirectory :mmalloc:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-opcodes/
SetDirectory :opcodes:
- BuildProgram all
-Else If "{BuildTarget}" =~ /do-readline/
- SetDirectory :readline:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-binutils/
SetDirectory :binutils:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-gas/
SetDirectory :gas:
- :mpw-build all --prefix "{prefix}"
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-gcc/
SetDirectory :gcc:
- :mpw-build all --prefix "{prefix}"
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-gdb/
SetDirectory :gdb:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /do-ld/
SetDirectory :ld:
- BuildProgram all
+ ::mpw-build all
Else If "{BuildTarget}" =~ /install/
- "{thisscript}" install-binutils
- "{thisscript}" install-gas
- "{thisscript}" install-gcc
- "{thisscript}" install-gdb
- "{thisscript}" install-ld
+ "{ThisScript}" install-binutils
+ "{ThisScript}" install-gas
+ "{ThisScript}" install-gcc
+# "{ThisScript}" install-gdb
+ "{ThisScript}" install-ld
Else If "{BuildTarget}" =~ /install-binutils/
SetDirectory :binutils:
- :mpw-build install --prefix "{prefix}"
+ ::mpw-build install
Else If "{BuildTarget}" =~ /install-gas/
SetDirectory :gas:
- :mpw-build install --prefix "{prefix}"
+ ::mpw-build install
Else If "{BuildTarget}" =~ /install-gcc/
SetDirectory :gcc:
- :mpw-build install --prefix "{prefix}"
+ ::mpw-build install
Else If "{BuildTarget}" =~ /install-gdb/
SetDirectory :gdb:
- :mpw-build install --prefix "{prefix}"
+ ::mpw-build install
Else If "{BuildTarget}" =~ /install-ld/
SetDirectory :ld:
- :mpw-build install --prefix "{prefix}"
+ ::mpw-build install
Else
End If