File: mkstatic

package info (click to toggle)
cuba 3.0%2B20111124-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 984 kB
  • ctags: 677
  • sloc: ansic: 6,090; sh: 343; fortran: 216; makefile: 216; cpp: 189
file content (30 lines) | stat: -rwxr-xr-x 448 bytes parent folder | download
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