704 |
fi |
fi |
705 |
fi |
fi |
706 |
|
|
707 |
# Check that FC, LINK, CPP, and S64 are defined. If not, complain |
# Check that FC, LINK, CPP, S64, and LN are defined. If not, |
708 |
# and abort! |
# complain and abort! |
709 |
if test "x$FC" = x ; then |
if test "x$FC" = x ; then |
710 |
cat <<EOF 1>&2 |
cat <<EOF 1>&2 |
711 |
|
|
741 |
if test "x$MAKEDEPEND" = x ; then |
if test "x$MAKEDEPEND" = x ; then |
742 |
MAKEDEPEND=makedepend |
MAKEDEPEND=makedepend |
743 |
fi |
fi |
744 |
|
if test "x$LN" = x ; then |
745 |
|
LN="ln -s" |
746 |
|
fi |
747 |
|
echo "test" > genmake_test_ln |
748 |
|
$LN genmake_test_ln genmake_tlink |
749 |
|
RETVAL=$? |
750 |
|
if test "x$RETVAL" != x0 ; then |
751 |
|
cat <<EOF 1>&2 |
752 |
|
|
753 |
|
Error: The command "ln -s" failed -- please specify a working soft-link |
754 |
|
command in the optfile. |
755 |
|
|
756 |
|
EOF |
757 |
|
exit 1 |
758 |
|
fi |
759 |
|
rm -f genmake_test_ln genmake_tlink |
760 |
|
|
761 |
printf "\n=== Checking system libraries ===\n" |
printf "\n=== Checking system libraries ===\n" |
762 |
echo -n " Do we have the system() command using $FC... " |
echo -n " Do we have the system() command using $FC... " |
864 |
# they appear as regular source code |
# they appear as regular source code |
865 |
if test -r $ROOTDIR"/eesupp/src/Makefile" ; then |
if test -r $ROOTDIR"/eesupp/src/Makefile" ; then |
866 |
echo " Making source files in eesupp from templates" |
echo " Making source files in eesupp from templates" |
867 |
$MAKE -C $ROOTDIR"/eesupp/src/" > make_eesupp.errors 2>&1 |
( cd $ROOTDIR"/eesupp/src/" && $MAKE ) > make_eesupp.errors 2>&1 |
868 |
RETVAL=$? |
RETVAL=$? |
869 |
if test "x${RETVAL}" = x0 ; then |
if test "x${RETVAL}" = x0 ; then |
870 |
rm -f make_eesupp.errors |
rm -f make_eesupp.errors |
1495 |
\$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.f |
\$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.f |
1496 |
cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f |
cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f |
1497 |
|
|
1498 |
|
adtafonly: |
1499 |
|
\$(TAF) \$(AD_TAF_FLAGS) \$(TAF_EXTRA) ad_input_code.f |
1500 |
|
cat ad_input_code_ad.f | sed -f adjoint_sed > ad_taf_output.f |
1501 |
|
|
1502 |
ad_taf: ad_taf_output.o \$(OBJFILES) |
ad_taf: ad_taf_output.o \$(OBJFILES) |
1503 |
\$(LINK) -o ${EXE_AD} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) ad_taf_output.o \$(LIBS) |
\$(LINK) -o ${EXE_AD} \$(FFLAGS) \$(FOPTIM) \$(OBJFILES) ad_taf_output.o \$(LIBS) |
1504 |
|
|