diff --git a/zshrc b/zshrc index 0eabe90..f1e2971 100644 --- a/zshrc +++ b/zshrc @@ -435,7 +435,7 @@ cross() { 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 @@ -444,7 +444,7 @@ cross() { ;; ppc) if [ -z "$adtools_path" ]; then - echo -n "Please set adtools_path!" 1>&2 + echo "Please set adtools_path!" 1>&2 return 1 fi @@ -502,6 +502,28 @@ cross() { 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)