summaryrefslogtreecommitdiff
path: root/compilation
diff options
context:
space:
mode:
Diffstat (limited to 'compilation')
-rwxr-xr-xcompilation63
1 files changed, 58 insertions, 5 deletions
diff --git a/compilation b/compilation
index 47892ba..636c5b2 100755
--- a/compilation
+++ b/compilation
@@ -46,14 +46,26 @@ git clone lua-modules-iup lua-modules-iup-win32
git clone LuaJIT LuaJIT-win32
###############################
+#################################
+## prepare darwin9 compilation ##
+## skip if you don't want it ##
+#################################
+git clone lua-interface lua-interface-darwin9
+ln -s ../lua-interface-darwin9/lua-interface.dylib lua-interface
+git clone lua-modules lua-modules-darwin9
+git clone lua-modules-cd-tool lua-modules-cd-tool-darwin9
+git clone lua-modules-iup lua-modules-iup-darwin9
+git clone LuaJIT LuaJIT-darwin9
+###############################
+
cd LuaJIT
-colormake || exit -1
+make BUILDMODE=static || exit -1
cd ..
cd lua-interface
colormake || exit -1
./lua-interface -e 'print "Hello, world!"'
-cp lua-interface ../lua-interface-distrib/linux
+cp lua-interface luac ../lua-interface-distrib/linux
cd ..
cd lua-modules
@@ -91,7 +103,7 @@ mkdir -p lua-interface-distrib/win32
mkdir -p lua-interface-distrib/win32-light
cd LuaJIT-win32
-make -f Makefile.mingw32 || exit -1
+make CROSS=i586-mingw32msvc- TARGET=Windows BUILDMODE=static || exit -1
cd ..
cd lua-interface-win32
@@ -121,6 +133,44 @@ cd ..
cp win32-dlls/* lua-interface-distrib/win32
+
+##########################################
+## win32 version done - next is darwin9 ##
+##########################################
+
+tar xvfz Mesa-7.4.4-osmesa-darwin9-precomp.tar.gz
+
+mkdir -p lua-interface-distrib/darwin9
+
+cd LuaJIT-darwin9
+make CROSS=i686-apple-darwin9- TARGET=Darwin BUILDMODE=static || exit -1
+cd ..
+
+cd lua-interface-darwin9
+SYSTEM=Darwin make || exit -1
+cp lua-interface *.dylib ../lua-interface-distrib/darwin9
+cd ..
+
+cd lua-modules-darwin9
+SYSTEM=Darwin make || exit -1
+cp *.dylib ../lua-interface-distrib/darwin9
+cd ..
+
+cd lua-modules-cd-tool-darwin9
+SYSTEM=Darwin make || exit -1
+cp *.dylib ../lua-interface-distrib/darwin9
+cd ..
+
+cd lua-modules-iup-darwin9
+SYSTEM=Darwin make || exit -1
+cp *.dylib ../lua-interface-distrib/darwin9
+cd ..
+
+
+##########################
+## All done, packing up ##
+##########################
+
cp lua-interface/lua-interface.lua lua-interface-distrib/linux
cp lua-interface/lua-interface.lua lua-interface-distrib/win32
cp lua-interface/lua-interface.lua lua-interface-distrib/win32-light
@@ -147,7 +197,10 @@ mv lua-interface win32
mv win32-light lua-interface-light
i586-mingw32msvc-strip --strip-unneeded lua-interface-light/*
-i586-mingw32msvc-strip lua-interface-light/*.exe
-rm lua-interface/lua-interface-light.dll
zip -r lua-interface-win32-light.zip lua-interface-light
mv lua-interface-light win32-light
+
+mv darwin9 lua-interface
+i686-apple-darwin9-strip -x lua-interface/*
+zip -r lua-interface-darwin9.zip lua-interface
+mv lua-interface darwin9