mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-11 18:30:58 +00:00
add --cmakeonly option
This commit is contained in:
parent
f0173384c0
commit
ead3ac1ad6
@ -22,11 +22,24 @@ SRC=$(cd `dirname $0` && pwd -P)
|
||||
PREFIX=`pwd -P`/toolchain/
|
||||
BINUTILS=`pwd -P`/binutils-build
|
||||
|
||||
for ARG in $*; do
|
||||
case $ARG in
|
||||
--cmakeonly)
|
||||
CMAKEONLY=true
|
||||
;;
|
||||
*)
|
||||
echo "unknown option $ARG"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ $CMAKEONLY != true ]; then
|
||||
|
||||
# Remove old install tree
|
||||
rm -rf toolchain
|
||||
mkdir -p toolchain
|
||||
|
||||
|
||||
# Build binutils for 68K
|
||||
mkdir -p binutils-build
|
||||
cd binutils-build
|
||||
@ -95,6 +108,8 @@ done
|
||||
|
||||
cp $SRC/ImportLibraries/*.a toolchain/powerpc-apple-macos/lib/
|
||||
|
||||
fi # CMAKEONLY
|
||||
|
||||
# Build host-based components
|
||||
mkdir -p build-host
|
||||
cd build-host
|
||||
|
Loading…
x
Reference in New Issue
Block a user