- em.xyz renamed to pmodules.xxy
- underscore removed as prefix of function names - keyword function removed
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../../../lib/libem.bash"
|
||||
source "$(dirname $0)/../../../lib/libpmodules.bash"
|
||||
|
||||
function em.configure() {
|
||||
pmodules.configure() {
|
||||
cat <<EOF > "${MODULE_SRCDIR}/SuiteSparse_config/SuiteSparse_config.mk"
|
||||
CF = \$(CFLAGS) \$(CPPFLAGS) \$(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER
|
||||
RANLIB = ranlib
|
||||
@@ -26,19 +26,19 @@ TBB =
|
||||
EOF
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
pmodules.build() {
|
||||
cd "${MODULE_SRCDIR}/UMFPACK"
|
||||
make TARGET=CORE2 BINARY=64 USE_THREAD=0 NO_SHARED=1
|
||||
}
|
||||
|
||||
function em.install() {
|
||||
pmodules.install() {
|
||||
install -d "${PREFIX}/include"
|
||||
install -d "${PREFIX}/lib"
|
||||
make PREFIX="${PREFIX}" install
|
||||
}
|
||||
|
||||
em.add_to_family 'Compiler'
|
||||
em.set_runtime_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
em.set_build_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
em.make_all
|
||||
#em.cleanup_src
|
||||
pmodules.add_to_group 'Compiler'
|
||||
pmodules.set_runtime_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
pmodules.set_build_dependencies "${COMPILER}" 'OpenBLAS'
|
||||
pmodules.make_all
|
||||
#pmodules.cleanup_src
|
||||
|
||||
Reference in New Issue
Block a user