mirror of https://github.com/axmolengine/axmol.git
18 lines
337 B
Bash
18 lines
337 B
Bash
|
#!/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
|