Newer
Older
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
#!/bin/bash
#===================================================
# script to compile non-parallel version tracy
#===================================================
# not sh since on Ubuntu sh is not bash
set -x # for debugging
if [ $# -ne 1 ]
then # affiche l'usage
echo "Missing parameter"
echo "Use: $0 debug for debug"
echo "Use: $0 opt for optimization result"
exit 1
fi
dir=`pwd`
#NUM_REC="$dir/num_rec"
#INSTALL="/usr/bin/install"
TRACY="tracy"
cd "$dir/$TRACY"
# CVS file is inside, do not erase
rm -f autom4te.cache/*
rm -rf aclocal.m4
make distclean
# Clean everything and call autoreconf
sh bootstrap.sh
if [ $1 == "debug" ]
then
./configure --prefix=$dir/$TRACY/tracy FFLAGS="-g -O2 -Wall -fbounds-check" CFLAGS="-g -O2 -Wall -fno-implicit-templates" CXXFLAGS="-g -O2 -Wall -fno-implicit-templates"
fi
if [ $1 == "opt" ]
then
./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates"
fi
make
make install