summaryrefslogtreecommitdiff
path: root/tools/mkstatic
blob: d816fcdea1279d594130e55011e97905830d39e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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