78 |
tmp1=`uname`"_"`uname -m` |
tmp1=`uname`"_"`uname -m` |
79 |
tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
tmp2=`echo $tmp1 | sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
80 |
tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` |
tmp3=`echo $tmp2 | sed -e 's/power macintosh/ppc/'` |
81 |
PLATFORM=`echo $tmp3 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` |
tmp1=`echo $tmp3 | sed -e 's|x86_64|amd64|'` |
82 |
|
tmp2=`echo $tmp1 | sed -e 's/i[3-6]86/ia32/' | sed -e 's/athlon/ia32/'` |
83 |
|
PLATFORM=$tmp2 |
84 |
OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` |
OFLIST=`(cd $ROOTDIR/tools/build_options; ls | grep "^$PLATFORM")` |
85 |
echo " The platform appears to be: $PLATFORM" |
echo " The platform appears to be: $PLATFORM" |
86 |
|
|
1179 |
#EH3 WARNING : This is an UGLY HACK that needs to be removed!!! |
#EH3 WARNING : This is an UGLY HACK that needs to be removed!!! |
1180 |
case $i in |
case $i in |
1181 |
aim_v23) |
aim_v23) |
|
DEFINES="$DEFINES -DALLOW_AIM" |
|
1182 |
ENABLED_PACKAGES="$ENABLED_PACKAGES -DALLOW_AIM" |
ENABLED_PACKAGES="$ENABLED_PACKAGES -DALLOW_AIM" |
1183 |
echo "Warning: ALLOW_AIM is set to enable aim_v23. This is REALLY ugly Jean-Michel :-)" |
echo "Warning: ALLOW_AIM is set to enable aim_v23." |
1184 |
;; |
;; |
1185 |
esac |
esac |
1186 |
#EH3 WARNING : This is an UGLY HACK that needs to be removed!!! |
#EH3 WARNING : This is an UGLY HACK that needs to be removed!!! |
1219 |
names=`ls -1 "$ROOTDIR/pkg"` |
names=`ls -1 "$ROOTDIR/pkg"` |
1220 |
for i in $spaths ; do |
for i in $spaths ; do |
1221 |
try="$i/CPP_OPTIONS.h" |
try="$i/CPP_OPTIONS.h" |
1222 |
if test -f $try -a -r $try -a "x$CPP_OPTIONS" == x ; then |
if test -f $try -a -r $try -a "x$CPP_OPTIONS" = x ; then |
1223 |
echo " found CPP_OPTIONS=\"$try\"" |
echo " found CPP_OPTIONS=\"$try\"" |
1224 |
CPP_OPTIONS="$try" |
CPP_OPTIONS="$try" |
1225 |
# New safety test: make sure packages are not mentioned in CPP_OPTIONS.h |
# New safety test: make sure packages are not mentioned in CPP_OPTIONS.h |
1228 |
done |
done |
1229 |
fi |
fi |
1230 |
try="$i/CPP_EEOPTIONS.h" |
try="$i/CPP_EEOPTIONS.h" |
1231 |
if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" == x ; then |
if test -f $try -a -r $try -a "x$CPP_EEOPTIONS" = x ; then |
1232 |
echo " found CPP_EEOPTIONS=\"$try\"" |
echo " found CPP_EEOPTIONS=\"$try\"" |
1233 |
# New safety test: make sure MPI is not determined by CPP_EEOPTIONS.h |
# New safety test: make sure MPI is not determined by CPP_EEOPTIONS.h |
1234 |
#**** not yet enabled **** |
#**** not yet enabled **** |
1354 |
EXE_SVD=$EXECUTABLE"_svd" |
EXE_SVD=$EXECUTABLE"_svd" |
1355 |
|
|
1356 |
cat >>$MAKEFILE <<EOF |
cat >>$MAKEFILE <<EOF |
1357 |
|
# |
1358 |
|
# OPTFILE="$OPTFILE" |
1359 |
# |
# |
1360 |
# BUILDDIR : Directory where object files are written |
# BUILDDIR : Directory where object files are written |
1361 |
# SOURCEDIRS : Directories containing the source (.F) files |
# SOURCEDIRS : Directories containing the source (.F) files |