9 |
|
|
10 |
set -xe |
set -xe |
11 |
|
|
12 |
compiler=gfortran |
compiler=nag_tools |
13 |
|
|
14 |
|
dest_dir=~/Bureau/Compil_prod_$compiler |
15 |
|
##dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler |
16 |
|
|
|
##dest_dir=~/Bureau/Compil_prod_$compiler |
|
|
dest_dir=/save/workdir_Lionel/LMDZ_work/LMDZE/Compil_prod_$compiler |
|
17 |
# (Do not just use the name of the compiler as a directory name, it |
# (Do not just use the name of the compiler as a directory name, it |
18 |
# confuses some compilers.) |
# confuses some compilers.) |
19 |
|
|
20 |
cp --update --verbose ../Compilers/$compiler.mk $dest_dir/compiler.mk |
if [[ ../Compilers/$compiler.mk -nt $dest_dir/compiler.mk ]] |
21 |
make -C $dest_dir -f $PWD/GNUmakefile $* libf_dir=$PWD |
then |
22 |
|
cp --force ../Compilers/$compiler.mk $dest_dir/compiler.mk |
23 |
|
chmod a-w $dest_dir/compiler.mk |
24 |
|
fi |
25 |
|
|
26 |
|
make -C $dest_dir -f $PWD/GNUmakefile -I$PWD $* libf_dir=$PWD |
27 |
|
# "-I" option for "nag_rules.mk" |