/[lmdze]/trunk/libf/make.sh
ViewVC logotype

Contents of /trunk/libf/make.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 52 - (show annotations)
Fri Sep 23 12:28:01 2011 UTC (12 years, 7 months ago) by guez
File MIME type: application/x-sh
File size: 1023 byte(s)
Split "conflx.f" into single-procedure files in directory "Conflx".

Split "cv_routines.f" into single-procedure files in directory
"CV_routines". Made module "cvparam" from included file
"cvparam.h". No included file other than "netcdf.inc" left in LMDZE.

1 # This is a script in Bash.
2
3 # This script allows to build LMDZE into a directory other than
4 # "libf". If you just want to build into "libf" with the current
5 # compiler file, you can invoke "make" directly.
6
7 # Usage:
8 # make.sh [options and arguments for make]
9
10 set -xe
11
12 MAKE=make
13 compiler=gfortran
14 ##compiler=nag_tools
15
16 dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler
17 ##dest_dir=~/Bureau/Compil_prod_$compiler
18
19 # (Do not just use the name of the compiler as a directory name, it
20 # confuses some compilers.)
21
22 compiler_macros_dir=../Compilers
23
24 test -d $dest_dir
25 test -d $compiler_macros_dir
26
27 set +x
28 if [[ ! -f $compiler_macros_dir/$compiler.mk && -f $dest_dir/compiler.mk ]]
29 then
30 rm -v $dest_dir/compiler.mk
31 elif [[ $compiler_macros_dir/$compiler.mk -nt $dest_dir/compiler.mk ]]
32 then
33 cp -v --force $compiler_macros_dir/$compiler.mk $dest_dir/compiler.mk
34 chmod a-w $dest_dir/compiler.mk
35 fi
36 set -x
37
38 $MAKE -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD
39 # "-I" option for "nag_rules.mk"

Properties

Name Value
svn:eol-style native
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.21