#!/bin/bash source "$(dirname $0)/../lib/libem.bash" function em.configure() { cat < "${EM_SRCDIR}/make.inc" SHELL = /bin/sh PLAT = DRVOPTS = \$(OPTS) LOADER = \$(FORTRAN) -pthread ARCHFLAGS= -ru #RANLIB = ranlib EOF } function em.build() { cd "${EM_SRCDIR}" make TARGET=CORE2 BINARY=64 } function em.install() { make PREFIX="${PREFIX}" install # We have to build shared libs and remove them here. # Building with NOSHARED gives an error during install - # due to a bug in the Makefile(s). rm -f "${PREFIX}/lib/"*.so } function em.install_doc() { : } em.add_to_family 'Compiler' em.set_runtime_dependencies "${COMPILER}" em.set_build_dependencies "${COMPILER}" em.make_all em.cleanup_src