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