Last change
on this file since 32 was
3,
checked in by zhangj, 12 years ago
|
Initiale import
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | #=================================================== |
---|
4 | # script to compile non-parallel version tracy |
---|
5 | #=================================================== |
---|
6 | |
---|
7 | |
---|
8 | # not sh since on Ubuntu sh is not bash |
---|
9 | set -x # for debugging |
---|
10 | |
---|
11 | if [ $# -ne 1 ] |
---|
12 | then # affiche l'usage |
---|
13 | echo "Missing parameter" |
---|
14 | echo "Use: $0 debug for debug" |
---|
15 | echo "Use: $0 opt for optimization result" |
---|
16 | echo "Use: $0 mpi for optimization result" |
---|
17 | exit 1 |
---|
18 | fi |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | dir=`pwd` |
---|
23 | #NUM_REC="$dir/num_rec" |
---|
24 | |
---|
25 | #INSTALL="/usr/bin/install" |
---|
26 | |
---|
27 | TRACY="tracy" |
---|
28 | |
---|
29 | cd "$dir/$TRACY" |
---|
30 | |
---|
31 | # CVS file is inside, do not erase |
---|
32 | rm -f autom4te.cache/* |
---|
33 | rm -rf aclocal.m4 |
---|
34 | |
---|
35 | make distclean |
---|
36 | |
---|
37 | # Clean everything and call autoreconf |
---|
38 | sh bootstrap.sh |
---|
39 | |
---|
40 | if [ $1 == "debug" ] |
---|
41 | then |
---|
42 | ./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" |
---|
43 | fi |
---|
44 | |
---|
45 | if [ $1 == "opt" ] |
---|
46 | then |
---|
47 | ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates" |
---|
48 | fi |
---|
49 | |
---|
50 | if [ $1 == "mpi" ] |
---|
51 | then |
---|
52 | ./configure --enable-mpi-exec --prefix=$dir/$TRACY/tracy FFLAGS="-O2 -Wall -fbounds-check" CFLAGS="-O2 -Wall -fno-implicit-templates" CXXFLAGS="-O2 -Wall -fno-implicit-templates" |
---|
53 | fi |
---|
54 | |
---|
55 | #make |
---|
56 | #make install |
---|
Note: See
TracBrowser
for help on using the repository browser.