1046 |
FFLAGS= |
FFLAGS= |
1047 |
FOPTIM= |
FOPTIM= |
1048 |
FEXTRAFLAGS= |
FEXTRAFLAGS= |
1049 |
|
USE_EXTENDED_SRC= |
1050 |
|
EXTENDED_SRC_FLAG= |
1051 |
CFLAGS= |
CFLAGS= |
1052 |
KFLAGS1= |
KFLAGS1= |
1053 |
KFLAGS2= |
KFLAGS2= |
1404 |
fi |
fi |
1405 |
|
|
1406 |
# Find the MITgcm ${THISVER} |
# Find the MITgcm ${THISVER} |
1407 |
if test -f "${ROOTDIR}/doc/tag-index" ; then |
version_file="${ROOTDIR}/doc/tag-index" |
1408 |
THISVER=`grep '^checkpoint' ${ROOTDIR}/doc/tag-index | head -1` |
if test -f $version_file ; then |
1409 |
|
THISVER=`grep '^checkpoint' $version_file | head -1` |
1410 |
|
#- remove ./BUILD_INFO.h file if older than version_file |
1411 |
|
if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then |
1412 |
|
echo " remove ./BUILD_INFO.h (older than ${version_file})" |
1413 |
|
rm -f ./BUILD_INFO.h |
1414 |
|
fi |
1415 |
fi |
fi |
1416 |
|
|
1417 |
if test "x$MAKEFILE" = x ; then |
if test "x$MAKEFILE" = x ; then |
1648 |
INCLUDES="$INCLUDES $GSLINC" |
INCLUDES="$INCLUDES $GSLINC" |
1649 |
LIBS="$LIBS $GSLLIB" |
LIBS="$LIBS $GSLLIB" |
1650 |
fi |
fi |
1651 |
|
#- if USE_EXTENDED_SRC is set, add EXTENDED_SRC_FLAG to FFLAGS : |
1652 |
|
if test ! "x$USE_EXTENDED_SRC" = x ; then |
1653 |
|
FFLAGS="$FFLAGS $EXTENDED_SRC_FLAG" |
1654 |
|
F90FIXEDFORMAT="$F90FIXEDFORMAT $EXTENDED_SRC_FLAG" |
1655 |
|
fi |
1656 |
|
|
1657 |
printf "\n=== Checking system libraries ===\n" |
printf "\n=== Checking system libraries ===\n" |
1658 |
printf " Do we have the system() command using $FC... " |
printf " Do we have the system() command using $FC... " |
3012 |
|
|
3013 |
# canonicalizer |
# canonicalizer |
3014 |
ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py |
ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py |
3015 |
./preProcess.py -H \$< -o \$@ |
./preProcess.py --mode=reverse \$< -o \$@ |
3016 |
|
|
3017 |
# F -> WHIRL |
# F -> WHIRL |
3018 |
# note that the canonicalized version cuts off at col 72 |
# note that the canonicalized version cuts off at col 72 |