axmol/scripting/lua/luajit/build_mac.sh

18 lines
337 B
Bash
Executable File

#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SRCDIR=$DIR/LuaJit-2.0.1
DESTDIR=$DIR/proj.mac
MACOSX_DEPLOYMENT_TARGET="10.6"
rm "$DESTDIR"/*.a
cd $SRCDIR
make clean
make CC="gcc -m32 -arch i386" clean all
if [ -f $SRCDIR/src/libluajit.a ]; then
mv $SRCDIR/src/libluajit.a $DESTDIR/libluajit2.a
fi;
make clean