mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 05:20:30 +00:00
b5b2c88649
* mpw-config.in: New file, MPW configuration fragment. * mpw-build.in: New file, MPW build script fragment. * mpw-make.in: New file, MPW makefile fragment. (This file is semi-automatically generated from Makefile.in.) * ldfile.c (slash): If MPW, set to `:'. * ldlex.l (TRUE_FALSE_ALREADY_DEFINED): If MPW, set this to prevent redefinition errors.
49 lines
964 B
Plaintext
49 lines
964 B
Plaintext
# 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 :ld.new "{bindir}"ld
|
|
Else
|
|
Echo {BuildTarget} not a valid build target
|
|
End If
|