Commit a04664c6 authored by gsell's avatar gsell
Browse files

libem.bash: prefix EM_ changed to MODULE_ for all variables related to the...

libem.bash: prefix EM_ changed to MODULE_ for all variables related to the build system, the prefix EM_ is reserved for the environment modules itself
parent 91602645
...@@ -123,20 +123,20 @@ while (( $# > 0 )); do ...@@ -123,20 +123,20 @@ while (( $# > 0 )); do
shift shift
done done
declare -rx EM_BASEDIR=$(abspath $SHLIBDIR/..) declare -rx BUILD_BASEDIR=$(abspath $SHLIBDIR/..)
source "${EM_BASEDIR}/config/environment.bash" source "${BUILD_BASEDIR}/config/environment.bash"
declare -xr EM_CONFIGDIR="${EM_BASEDIR}/config" declare -xr BUILD_CONFIGDIR="${BUILD_BASEDIR}/config"
declare -xr EM_SCRIPTDIR="${EM_BASEDIR}/scripts" declare -xr BUILD_SCRIPTSDIR="${BUILD_BASEDIR}/scripts"
declare -xr EM_TMPDIR="${EM_BASEDIR}/tmp" declare -xr BUILD_TMPDIR="${BUILD_BASEDIR}/tmp"
declare -rx EM_DOWNLOADDIR="${EM_BASEDIR}/Downloads" declare -xr BUILD_DOWNLOADSDIR="${BUILD_BASEDIR}/Downloads"
declare -xr EM_DEFAULT_VERSIONSFILE="${EM_CONFIGDIR}/versions.conf" declare -xr BUILD_VERSIONSFILE="${BUILD_CONFIGDIR}/versions.conf"
if [[ -z "${EM_CONFIGDIR}/families.d/"*.conf ]]; then if [[ -z "${BUILD_CONFIGDIR}/families.d/"*.conf ]]; then
die 1 "Default family configuration not set in ${EM_CONFIGDIR}/families.d" die 1 "Default family configuration not set in ${BUILD_CONFIGDIR}/families.d"
fi fi
for f in "${EM_CONFIGDIR}/families.d/"*.conf; do for f in "${BUILD_CONFIGDIR}/families.d/"*.conf; do
source "${f}" source "${f}"
done done
...@@ -146,16 +146,17 @@ eval "${ENVIRONMENT_ARGS}" ...@@ -146,16 +146,17 @@ eval "${ENVIRONMENT_ARGS}"
declare -x PREFIX='' declare -x PREFIX=''
declare -x DOCDIR='' declare -x DOCDIR=''
declare -x EM_FAMILY='' declare -x MODULE_FAMILY=''
declare -x EM_RELEASE='stable' declare -x MODULE_RELEASE='stable'
declare -x EM_MODULENAME='' declare -x MODULE_NAME=''
# these directories are module dependend # these directories are module dependend
declare -x EM_SRCDIR='' declare -x MODULE_SRCDIR=''
declare -x EM_BUILDDIR='' declare -x MODULE_BUILDDIR=''
declare -x EM_BUILD_DEPENDENCIES declare -x MODULE_BUILD_DEPENDENCIES
declare -x MODULE_DEPENDENCIES
declare -x C_INCLUDE_PATH declare -x C_INCLUDE_PATH
declare -x CPLUS_INCLUDE_PATH declare -x CPLUS_INCLUDE_PATH
...@@ -176,7 +177,7 @@ fi ...@@ -176,7 +177,7 @@ fi
function em.release() { function em.release() {
case $1 in case $1 in
unstable | stable | obsolete ) unstable | stable | obsolete )
EM_RELEASE="$1" MODULE_RELEASE="$1"
;; ;;
* ) * )
die 1 "$P: unknown release type: $1" die 1 "$P: unknown release type: $1"
...@@ -198,27 +199,27 @@ function em.add_to_family() { ...@@ -198,27 +199,27 @@ function em.add_to_family() {
if [[ ! -d ${EM_ETCDIR}/${1} ]]; then if [[ ! -d ${EM_ETCDIR}/${1} ]]; then
die 43 "${1}: family does not exist." die 43 "${1}: family does not exist."
fi fi
EM_FAMILY=$1 MODULE_FAMILY=$1
} }
function em.set_build_dependencies() { function em.set_build_dependencies() {
EM_BUILD_DEPENDENCIES=("$@") MODULE_BUILD_DEPENDENCIES=("$@")
} }
function em.set_runtime_dependencies() { function em.set_runtime_dependencies() {
EM_DEPENDENCIES=("$@") MODULE_DEPENDENCIES=("$@")
} }
function em.set_supported_compilers() { function em.set_supported_compilers() {
EM_SUPPORTED_COMPILERS=("$@") MODULE_SUPPORTED_COMPILERS=("$@")
} }
function em.set_docfiles() { function em.set_docfiles() {
EM_DOCFILES=("$@") MODULE_DOCFILES=("$@")
} }
function _load_build_dependencies() { function _load_build_dependencies() {
for m in "${EM_BUILD_DEPENDENCIES[@]}"; do for m in "${MODULE_BUILD_DEPENDENCIES[@]}"; do
[[ -z $m ]] && continue [[ -z $m ]] && continue
if [[ ! $m =~ "*/*" ]]; then if [[ ! $m =~ "*/*" ]]; then
local _V=$(echo -n $m | tr [:lower:] [:upper:] )_VERSION local _V=$(echo -n $m | tr [:lower:] [:upper:] )_VERSION
...@@ -230,7 +231,7 @@ function _load_build_dependencies() { ...@@ -230,7 +231,7 @@ function _load_build_dependencies() {
fi fi
if [[ -z $(module avail "$m" 2>&1) ]]; then if [[ -z $(module avail "$m" 2>&1) ]]; then
echo "$m: info: module does not exist, trying to build it..." echo "$m: info: module does not exist, trying to build it..."
"${EM_SCRIPTDIR}/${m/\/*}.build" ${ARGS[@]} "${BUILD_SCRIPTSDIR}/${m/\/*}.build" ${ARGS[@]}
if [[ -z $(module avail "$m" 2>&1) ]]; then if [[ -z $(module avail "$m" 2>&1) ]]; then
die 1 "$m: oops: build failed..." die 1 "$m: oops: build failed..."
fi fi
...@@ -246,7 +247,7 @@ function _write_runtime_dependencies() { ...@@ -246,7 +247,7 @@ function _write_runtime_dependencies() {
local -r fname="${PREFIX}/.dependencies" local -r fname="${PREFIX}/.dependencies"
local dep local dep
echo -n "" > "${fname}" echo -n "" > "${fname}"
for dep in "${EM_DEPENDENCIES[@]}"; do for dep in "${MODULE_DEPENDENCIES[@]}"; do
[[ -z $dep ]] && continue [[ -z $dep ]] && continue
if [[ ! $dep =~ "*/*" ]]; then if [[ ! $dep =~ "*/*" ]]; then
local _V=$(echo -n $dep | tr [:lower:] [:upper:] )_VERSION local _V=$(echo -n $dep | tr [:lower:] [:upper:] )_VERSION
...@@ -260,7 +261,7 @@ function _write_build_dependencies() { ...@@ -260,7 +261,7 @@ function _write_build_dependencies() {
local -r fname="${PREFIX}/.build_dependencies" local -r fname="${PREFIX}/.build_dependencies"
local dep local dep
echo -n "" > "${fname}" echo -n "" > "${fname}"
for dep in "${EM_BUILD_DEPENDENCIES[@]}"; do for dep in "${MODULE_BUILD_DEPENDENCIES[@]}"; do
[[ -z $dep ]] && continue [[ -z $dep ]] && continue
if [[ ! $dep =~ "*/*" ]]; then if [[ ! $dep =~ "*/*" ]]; then
local _V=$(echo -n $dep | tr [:lower:] [:upper:] )_VERSION local _V=$(echo -n $dep | tr [:lower:] [:upper:] )_VERSION
...@@ -278,7 +279,7 @@ function _setup_env() { ...@@ -278,7 +279,7 @@ function _setup_env() {
LD_LIBRARY_PATH='' LD_LIBRARY_PATH=''
DYLD_LIBRARY_PATH='' DYLD_LIBRARY_PATH=''
if [[ -z ${EM_FAMILY} ]]; then if [[ -z ${MODULE_FAMILY} ]]; then
die 1 "$P: family not set." die 1 "$P: family not set."
fi fi
...@@ -288,7 +289,7 @@ function _setup_env() { ...@@ -288,7 +289,7 @@ function _setup_env() {
[[ "${_name:0:1}" == '#' ]] && continue [[ "${_name:0:1}" == '#' ]] && continue
_NAME=$(echo ${_name} | tr [:lower:] [:upper:]) _NAME=$(echo ${_name} | tr [:lower:] [:upper:])
eval ${_NAME}_VERSION=$_version eval ${_NAME}_VERSION=$_version
done < "${EM_DEFAULT_VERSIONSFILE}" done < "${BUILD_VERSIONSFILE}"
# overwrite environment variables with values we got on the cmd line # overwrite environment variables with values we got on the cmd line
eval "${ENVIRONMENT_ARGS}" eval "${ENVIRONMENT_ARGS}"
...@@ -302,51 +303,51 @@ function _setup_env() { ...@@ -302,51 +303,51 @@ function _setup_env() {
if [[ -z $V ]]; then if [[ -z $V ]]; then
die 1 "$P: Missing version." die 1 "$P: Missing version."
fi fi
EM_SRCDIR="${EM_TMPDIR}/src/${P/_serial}-$V" MODULE_SRCDIR="${BUILD_TMPDIR}/src/${P/_serial}-$V"
EM_BUILDDIR="${EM_TMPDIR}/build/$P-$V/$COMPILER/$COMPILER_VERSION" MODULE_BUILDDIR="${BUILD_TMPDIR}/build/$P-$V/$COMPILER/$COMPILER_VERSION"
# build module name # build module name
case ${EM_FAMILY} in case ${MODULE_FAMILY} in
Tools ) Tools )
EM_PREFIX="${P}/${V}" MODULE_RPREFIX="${P}/${V}"
EM_MODULENAME="${P}/${V}" MODULE_NAME="${P}/${V}"
;; ;;
Programming ) Programming )
EM_PREFIX="${P}/${V}" MODULE_RPREFIX="${P}/${V}"
EM_MODULENAME="${P}/${V}" MODULE_NAME="${P}/${V}"
;; ;;
Libraries ) Libraries )
EM_PREFIX="${P}/${V}" MODULE_RPREFIX="${P}/${V}"
EM_MODULENAME="${P}/${V}" MODULE_NAME="${P}/${V}"
;; ;;
System ) System )
EM_PREFIX="${P}/${V}" MODULE_RPREFIX="${P}/${V}"
EM_MODULENAME="${P}/${V}" MODULE_NAME="${P}/${V}"
;; ;;
Compiler ) Compiler )
EM_PREFIX="${P}/${V}/${COMPILER}/${COMPILER_VERSION}" MODULE_RPREFIX="${P}/${V}/${COMPILER}/${COMPILER_VERSION}"
EM_MODULENAME="${COMPILER}/${COMPILER_VERSION}/${P}/${V}" MODULE_NAME="${COMPILER}/${COMPILER_VERSION}/${P}/${V}"
;; ;;
MPI ) MPI )
EM_PREFIX="${P}/${V}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}" MODULE_RPREFIX="${P}/${V}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}"
EM_MODULENAME="${COMPILER}/${COMPILER_VERSION}/${MPI}/${MPI_VERSION}/${P}/${V}" MODULE_NAME="${COMPILER}/${COMPILER_VERSION}/${MPI}/${MPI_VERSION}/${P}/${V}"
;; ;;
HDF5 ) HDF5 )
EM_PREFIX="${P}/${V}/${HDF5}/${HDF5_VERSION}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}/" MODULE_RPREFIX="${P}/${V}/${HDF5}/${HDF5_VERSION}/${MPI}/${MPI_VERSION}/${COMPILER}/${COMPILER_VERSION}/"
EM_MODULENAME="${COMPILER}/${COMPILER_VERSION}/${MPI}/${MPI_VERSION}/${HDF5}/${HDF5_VERSION}/${P}/${V}" MODULE_NAME="${COMPILER}/${COMPILER_VERSION}/${MPI}/${MPI_VERSION}/${HDF5}/${HDF5_VERSION}/${P}/${V}"
;; ;;
HDF5_serial ) HDF5_serial )
EM_PREFIX="${P}/${V}/hdf5_serial/${HDF5_SERIAL_VERSION}/${COMPILER}/${COMPILER_VERSION}" MODULE_RPREFIX="${P}/${V}/hdf5_serial/${HDF5_SERIAL_VERSION}/${COMPILER}/${COMPILER_VERSION}"
EM_MODULENAME="${COMPILER}/${COMPILER_VERSION}/hdf5_serial/${HDF5_VERSION}/${P}/${V}" MODULE_NAME="${COMPILER}/${COMPILER_VERSION}/hdf5_serial/${HDF5_VERSION}/${P}/${V}"
;; ;;
* ) * )
die 1 "$P: oops: unknown family: ${EM_FAMILY}" die 1 "$P: oops: unknown family: ${MODULE_FAMILY}"
;; ;;
esac esac
case ${EM_RELEASE} in case ${MODULE_RELEASE} in
unstable | obsolete ) unstable | obsolete )
EM_FAMILY="${EM_FAMILY}.${EM_RELEASE}" MODULE_FAMILY="${MODULE_FAMILY}.${MODULE_RELEASE}"
;; ;;
stable ) stable )
;; ;;
...@@ -356,11 +357,11 @@ function _setup_env() { ...@@ -356,11 +357,11 @@ function _setup_env() {
esac esac
# set PREFIX of module # set PREFIX of module
PREFIX="${EM_BINDIR}/${EM_FAMILY}/${EM_PREFIX}" PREFIX="${EM_BINDIR}/${MODULE_FAMILY}/${MODULE_RPREFIX}"
DOCDIR="${PREFIX}/share/doc/$P" DOCDIR="${PREFIX}/share/doc/$P"
TARBALL="${EM_DOWNLOADDIR}/${P/_serial}-$V.tar" TARBALL="${BUILD_DOWNLOADSDIR}/${P/_serial}-$V.tar"
if [[ -r $TARBALL.gz ]]; then if [[ -r $TARBALL.gz ]]; then
TARBALL=${TARBALL}.gz TARBALL=${TARBALL}.gz
_UNTAR_FLAGS='xvzf' _UNTAR_FLAGS='xvzf'
...@@ -376,13 +377,13 @@ function _setup_env() { ...@@ -376,13 +377,13 @@ function _setup_env() {
function _prep() { function _prep() {
# untar sources # untar sources
if [[ ! -d ${EM_SRCDIR} ]]; then if [[ ! -d ${MODULE_SRCDIR} ]]; then
mkdir -p "${EM_TMPDIR}/src" mkdir -p "${BUILD_TMPDIR}/src"
(cd "${EM_TMPDIR}/src" && tar ${_UNTAR_FLAGS} "${TARBALL}") (cd "${BUILD_TMPDIR}/src" && tar ${_UNTAR_FLAGS} "${TARBALL}")
fi fi
# create build directory # create build directory
mkdir -p "${EM_BUILDDIR}" mkdir -p "${MODULE_BUILDDIR}"
} }
...@@ -391,7 +392,7 @@ function em.pre_configure() { ...@@ -391,7 +392,7 @@ function em.pre_configure() {
} }
function em.configure() { function em.configure() {
${EM_SRCDIR}/configure \ ${MODULE_SRCDIR}/configure \
--prefix="${PREFIX}" --prefix="${PREFIX}"
} }
...@@ -408,27 +409,27 @@ function em.post_install() { ...@@ -408,27 +409,27 @@ function em.post_install() {
} }
function em.install_doc() { function em.install_doc() {
install -m0444 ${EM_DOCFILES[*]} "${BUILDSCRIPT}" "${DOCDIR}" install -m0444 ${MODULE_DOCFILES[*]} "${BUILDSCRIPT}" "${DOCDIR}"
} }
function _set_link() { function _set_link() {
(mkdir -p "${MODULEPATH_ROOT}" (mkdir -p "${MODULEPATH_ROOT}"
cd "${MODULEPATH_ROOT}" cd "${MODULEPATH_ROOT}"
local _path="${EM_FAMILY}/${EM_MODULENAME%/*}" local _path="${MODULE_FAMILY}/${MODULE_NAME%/*}"
mkdir -p "${_path}" mkdir -p "${_path}"
cd "${_path}" cd "${_path}"
local x local x
IFS='/' x=(${_path}) IFS='/' x=(${_path})
local -r _target="../"$(eval printf "../%.s" {1..${#x[@]}})${EM_ETCDIR##*/}/"${EM_FAMILY}/${P}/modulefile" local -r _target="../"$(eval printf "../%.s" {1..${#x[@]}})${EM_ETCDIR##*/}/"${MODULE_FAMILY}/${P}/modulefile"
ln -fs "${_target}" "${EM_MODULENAME##*/}" ln -fs "${_target}" "${MODULE_NAME##*/}"
) )
} }
function _cleanup_build() { function _cleanup_build() {
( (
[[ -d /${EM_BUILDDIR} ]] || return 0 [[ -d /${MODULE_BUILDDIR} ]] || return 0
cd "/${EM_BUILDDIR}/.."; cd "/${MODULE_BUILDDIR}/..";
if [[ $(pwd) != / ]]; then if [[ $(pwd) != / ]]; then
echo "Cleaning up $(pwd)/${COMPILER_VERSION}" echo "Cleaning up $(pwd)/${COMPILER_VERSION}"
rm -rf * rm -rf *
...@@ -438,18 +439,18 @@ function _cleanup_build() { ...@@ -438,18 +439,18 @@ function _cleanup_build() {
function em.cleanup_src() { function em.cleanup_src() {
( (
[[ -d /${EM_SRCDIR} ]] || return 0 [[ -d /${MODULE_SRCDIR} ]] || return 0
cd "/${EM_SRCDIR}/.."; cd "/${MODULE_SRCDIR}/..";
if [[ $(pwd) != / ]]; then if [[ $(pwd) != / ]]; then
echo "Cleaning up $(pwd)" echo "Cleaning up $(pwd)"
rm -rf ${EM_SRCDIR##*/} rm -rf ${MODULE_SRCDIR##*/}
fi fi
); );
} }
function _check_compiler() { function _check_compiler() {
test -z ${EM_SUPPORTED_COMPILERS} && return 0 test -z ${MODULE_SUPPORTED_COMPILERS} && return 0
for cc in ${EM_SUPPORTED_COMPILERS[@]}; do for cc in ${MODULE_SUPPORTED_COMPILERS[@]}; do
if [[ ${COMPILER}/${COMPILER_VERSION} =~ ${cc} ]]; then if [[ ${COMPILER}/${COMPILER_VERSION} =~ ${cc} ]]; then
return 0 return 0
fi fi
...@@ -464,14 +465,14 @@ function em.make_all() { ...@@ -464,14 +465,14 @@ function em.make_all() {
_load_build_dependencies _load_build_dependencies
_check_compiler _check_compiler
_prep _prep
cd "${EM_SRCDIR}" cd "${MODULE_SRCDIR}"
em.pre_configure em.pre_configure
cd "${EM_BUILDDIR}" cd "${MODULE_BUILDDIR}"
em.configure em.configure
em.build em.build
em.install em.install
em.post_install em.post_install
cd "${EM_SRCDIR}" cd "${MODULE_SRCDIR}"
mkdir -p "${DOCDIR}" mkdir -p "${DOCDIR}"
em.install_doc em.install_doc
else else
......
...@@ -6,7 +6,7 @@ function em.configure() { ...@@ -6,7 +6,7 @@ function em.configure() {
CC=$MPICC CXX=$MPICXX cmake \ CC=$MPICC CXX=$MPICXX cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_BUILD_TYPE=RELEASE \
"${EM_SRCDIR}" "${MODULE_SRCDIR}"
} }
em.add_to_family 'MPI' em.add_to_family 'MPI'
......
...@@ -13,8 +13,8 @@ function em.configure() { ...@@ -13,8 +13,8 @@ function em.configure() {
F90=$MPIF90 F90=$MPIF90
FC=$MPIFC FC=$MPIFC
FORTRAN=$MPIFORTRAN FORTRAN=$MPIFORTRAN
#( cd "${EM_SRCDIR}" && ./autogen.sh ) #( cd "${MODULE_SRCDIR}" && ./autogen.sh )
"${EM_SRCDIR}"/configure \ "${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--enable-parallel \ --enable-parallel \
--enable-debug \ --enable-debug \
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
(cd "${EM_SRCDIR}" && ./autogen.sh) (cd "${MODULE_SRCDIR}" && ./autogen.sh)
"${EM_SRCDIR}"/configure \ "${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--enable-debug \ --enable-debug \
--enable-vtkconverter \ --enable-vtkconverter \
......
...@@ -7,7 +7,7 @@ function em.pre_configure() { ...@@ -7,7 +7,7 @@ function em.pre_configure() {
} }
function em.configure() { function em.configure() {
"${EM_SRCDIR}"/configure \ "${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \ --prefix="${PREFIX}" \
--enable-h5hut \ --enable-h5hut \
--enable-hdf5 \ --enable-hdf5 \
......
...@@ -3,15 +3,15 @@ ...@@ -3,15 +3,15 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
cd "${EM_SRCDIR}" cd "${MODULE_SRCDIR}"
"${EM_SRCDIR}"/configure \ "${MODULE_SRCDIR}"/configure \
--prefix="${EM_PREFIX}/core" \ --prefix="${EM_PREFIX}/core" \
--with-module-root-path="${MODULEPATH_ROOT}" \ --with-module-root-path="${MODULEPATH_ROOT}" \
|| exit 1 || exit 1
} }
function em.build() { function em.build() {
cd "${EM_SRCDIR}" cd "${MODULE_SRCDIR}"
make -j ${JOBS} make -j ${JOBS}
} }
......
...@@ -5,8 +5,8 @@ source "$(dirname $0)/../lib/libem.bash" ...@@ -5,8 +5,8 @@ source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
CPPFLAGS="-DUSE_INTERP_ERRORLINE" "${EM_SRCDIR}"/configure \ CPPFLAGS="-DUSE_INTERP_ERRORLINE" "${MODULE_SRCDIR}"/configure \
--prefix="${EM_BINDIR}/${EM_FAMILY}" \ --prefix="${EM_BINDIR}/${MODULE_FAMILY}" \
--with-module-path="${MODULEPATH_ROOT}" \ --with-module-path="${MODULEPATH_ROOT}" \
|| exit 1 || exit 1
} }
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
CC=$MPICC CXX=$MPICXX cmake \ CC="$MPICC -fopenmp" CXX="$MPICXX -fopenmp" cmake \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_BUILD_TYPE=RELEASE \
-DENABLE_SAAMG_SOLVER=TRUE \ -DENABLE_SAAMG_SOLVER=TRUE \
"${EM_SRCDIR}" "${MODULE_SRCDIR}"
} }
em.add_to_family 'Tools' em.add_to_family 'Tools'
......
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
source "$(dirname $0)/../lib/libem.bash" source "$(dirname $0)/../lib/libem.bash"
function em.configure() { function em.configure() {
cat <<EOF > "${EM_SRCDIR}/make.inc" cat <<EOF > "${MODULE_SRCDIR}/make.inc"
SHELL = /bin/sh SHELL = /bin/sh
PLAT = PLAT =
DRVOPTS = \$(OPTS) DRVOPTS = \$(OPTS)
LOADER = \$(FORTRAN) -pthread LOADER = \$(FORTRAN) -pthread
ARCHFLAGS= -ru ARCHFLAGS= -ru
EOF EOF
cat <<EOF > "${EM_SRCDIR}/Makefile.rule" cat <<EOF > "${MODULE_SRCDIR}/Makefile.rule"
VERSION = 0.2.9 VERSION = 0.2.9
TARGET = CORE2 TARGET = CORE2
CC = gcc CC = gcc
...@@ -26,7 +26,7 @@ EOF ...@@ -26,7 +26,7 @@ EOF
} }