source: TRACY3/trunk/make_for_tracy3.sh

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