Index: zshrc ================================================================== --- zshrc +++ zshrc @@ -433,20 +433,20 @@ ;; amiga) case "$2" in m68k) if [ -z "$amiga_gcc_path" ]; then - echo -n "Please set amiga_gcc_path!" 1>&2 + echo "Please set amiga_gcc_path!" 1>&2 return 1 fi export PATH="$amiga_gcc_path/bin:$PATH" export cross_host="m68k-amigaos" ;; ppc) if [ -z "$adtools_path" ]; then - echo -n "Please set adtools_path!" 1>&2 + echo "Please set adtools_path!" 1>&2 return 1 fi export PATH="$adtools_path/bin:$PATH" export cross_host="ppc-amigaos" @@ -499,10 +499,32 @@ export OBJCPP="$CPP" export OBJCXX="$CXX" export OBJCPPXX="$CXXPP" export IPHONEOS_DEPLOYMENT_TARGET="10.0" export cross_host="$archs[(w)1]-apple-darwin" + ;; + macos) + if [ -z "$retro68_path" ]; then + echo "Please set retro68_path!" 1>&2 + return 1 + fi + + export PATH="$retro68_path/bin:$PATH" + + case "$2" in + m68k) + export cross_host="m68k-apple-macos" + ;; + ppc) + export cross_host="powerpc-apple-macos" + ;; + esac + + if [ $# != 2 -o -z "$cross_host" ]; then + echo "Usage: cross macos m68k|ppc" 1>&2 + return 1 + fi ;; mingw) case "$2" in i686 | x86_64) local pkg="mingw-w64-$2-gcc"