-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmake_unibench.sh
executable file
·79 lines (67 loc) · 1.71 KB
/
smake_unibench.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
if [ -d "/benchmark/smake-out" ]; then
echo "smake-out directory already exists. Removing it..."
rm -rf /benchmark/smake-out
fi
mkdir -p /benchmark/smake-out
export CC="clang"
export CXX="clang++"
export CMAKE_EXPORT_COMPILE_COMMANDS=1
### Program: cflow-1.6 #ok
# cd /benchmark/project
# program="cflow-1.6"
# binaries="cflow"
# cd $program
# ./configure
# make -j clean
# yes | /smake/smake --init
# /smake/smake -j 1
# for binary in $binaries; do
# cp -r sparrow/src/$binary /benchmark/smake-out/$binary || exit 1
# done
### Program: jasper-2.0.12
cd /benchmark/project
program="jasper-2.0.12"
binaries="imginfo"
cd $program
cmake -DJAS_ENABLE_SHARED=OFF -DALLOW_IN_SOURCE_BUILD=ON .
make -j clean
yes | /smake/smake --init
/smake/smake -j 1
for binary in $binaries; do
cp -r sparrow/src/appl/$binary /benchmark/smake-out/$binary || exit 1
done
### Program: wav2swf
# cd /benchmark/project
# program="swftools-0.9.2"
# binaries="wav2swf"
# cd $program
# ./configure
# make -j clean
# yes | /smake/smake --init
# /smake/smake -j 1
# for binary in $binaries; do
# cp -r sparrow/src/$binary /benchmark/smake-out/$binary || exit 1
# done
# ### Program: mp3gain #ok
# cd /benchmark/project
# program="mp3gain-1.5.2"
# binaries="mp3gain"
# cd $program
# sed -i 's/CC=/CC?=/' Makefile
# make -j clean
# yes | /smake/smake --init
# /smake/smake -j 1
# for binary in $binaries; do
# cp -r sparrow/$binary /benchmark/smake-out/$binary || exit 1
# done
### Program: jhead
# cd /benchmark/project
# program="jhead-3.00"
# binaries="jhead"
# cd $program
# make -j clean
# yes | /smake/smake --init
# /smake/smake -j 1
# for binary in $binaries; do
# cp -r sparrow/$binary /benchmark/smake-out/$binary || exit 1
# done