2015-12-18 22:25:32 +01:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
TARGET=f77_zmq
|
|
|
|
function _install()
|
|
|
|
{
|
2015-12-18 22:53:27 +01:00
|
|
|
cd .. ; QMCCHEM_PATH="$PWD" ; cd -
|
2015-12-18 22:25:32 +01:00
|
|
|
set +u
|
2018-07-09 14:40:45 +02:00
|
|
|
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":../../../include
|
2015-12-18 22:25:32 +01:00
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
cd "${BUILD}"
|
2018-07-09 14:40:45 +02:00
|
|
|
export ZMQ_H="${QMCCHEM_PATH}"/include/zmq.h
|
2015-12-18 22:25:32 +01:00
|
|
|
cp "${ZMQ_H}" .
|
2015-12-18 22:53:27 +01:00
|
|
|
make -j 8
|
2015-12-18 22:25:32 +01:00
|
|
|
cd -
|
2015-12-18 22:53:27 +01:00
|
|
|
rm -f -- "${QMCCHEM_PATH}"/src/ZMQ/f77_zmq.h "${QMCCHEM_PATH}"/lib/libf77zmq.a "${QMCCHEM_PATH}"/lib/libf77zmq.so
|
2015-12-18 22:25:32 +01:00
|
|
|
cp "${BUILD}"/libf77zmq.{a,so} ../lib/
|
2019-07-01 11:32:01 +02:00
|
|
|
cp "${BUILD}"/f77_zmq_free.h ../src/ZMQ/f77_zmq.h
|
2015-12-18 22:25:32 +01:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
source scripts/build.sh
|
|
|
|
|