summaryrefslogtreecommitdiff
path: root/tools/mkstatic
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mkstatic')
-rwxr-xr-xtools/mkstatic30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/mkstatic b/tools/mkstatic
new file mode 100755
index 0000000..d816fcd
--- /dev/null
+++ b/tools/mkstatic
@@ -0,0 +1,30 @@
+#! /bin/sh
+
+exe=
+mach=
+mlmach=
+case `uname -s` in
+Linux) tag=Linux
+ st=-static
+ mach=-m32
+ mlmach=-b32
+ ;;
+Darwin) tag=Mac
+ st=-static-libgcc
+ ;;
+CYG*) tag=Windows
+ export CC=i686-pc-mingw32-gcc
+ st="-static -static-libgcc"
+ exe=.exe
+ ;;
+esac
+
+./configure CFLAGS="-O3 -fomit-frame-pointer -ffast-math $st $mach" MCFLAGS="-st $mlmach"
+
+make math
+
+for file in Vegas Suave Divonne Cuhre ; do
+ gzip $file$exe
+ mv $file$exe.gz $file$exe-$tag.gz
+done
+