10
1
mirror of https://gitlab.com/scemama/qmcchem.git synced 2024-11-06 22:23:39 +01:00
qmcchem/install/scripts/install_f77_zmq.sh
2019-07-01 11:32:01 +02:00

24 lines
528 B
Bash
Executable File

#!/bin/bash -x
TARGET=f77_zmq
function _install()
{
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
set +u
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":../../../include
set -e
set -u
cd "${BUILD}"
export ZMQ_H="${QMCCHEM_PATH}"/include/zmq.h
cp "${ZMQ_H}" .
make -j 8
cd -
rm -f -- "${QMCCHEM_PATH}"/src/ZMQ/f77_zmq.h "${QMCCHEM_PATH}"/lib/libf77zmq.a "${QMCCHEM_PATH}"/lib/libf77zmq.so
cp "${BUILD}"/libf77zmq.{a,so} ../lib/
cp "${BUILD}"/f77_zmq_free.h ../src/ZMQ/f77_zmq.h
return 0
}
source scripts/build.sh