diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 14:59:17 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-02-11 14:59:17 +0400 |
commit | a232a950cc15b2c6e3427b59d4f90006a70e04f6 (patch) | |
tree | 903fe3c3d4258b04bd61ba8bda78dba5ad727efe /tools/mkstatic | |
download | libcuba-upstream.tar.gz |
Imported Upstream version 3.0+20111124upstream/3.0+20111124upstream
Diffstat (limited to 'tools/mkstatic')
-rwxr-xr-x | tools/mkstatic | 30 |
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 + |