source: TRACY3/tags/tracy-3.10.2/make_for_tracy3.sh @ 20

Last change on this file since 20 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
9set -x # for debugging
10
11if [ $# -ne 1 ] 
12then                    # 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
18fi
19
20
21
22dir=`pwd`
23#NUM_REC="$dir/num_rec"
24
25#INSTALL="/usr/bin/install"
26
27TRACY="tracy"
28
29cd "$dir/$TRACY"
30
31# CVS file is inside, do not erase
32rm -f autom4te.cache/*
33rm -rf aclocal.m4
34
35make distclean
36
37# Clean everything and call autoreconf
38sh bootstrap.sh
39
40if [ $1 == "debug" ]
41then 
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"
43fi
44
45if [ $1 == "opt" ]
46then 
47./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2  -Wall -fbounds-check" CFLAGS="-O2  -Wall -fno-implicit-templates" CXXFLAGS="-O2  -Wall -fno-implicit-templates"
48fi
49
50if [ $1 == "mpi" ]
51then 
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"
53fi
54
55#make
56#make install
Note: See TracBrowser for help on using the repository browser.