10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 12:56:14 +01:00
quantum_package/install/scripts/install_f77zmq.sh

24 lines
433 B
Bash
Raw Normal View History

2015-11-25 11:49:42 +01:00
#!/bin/bash -x
TARGET=f77zmq
function _install()
{
2015-11-25 18:59:49 +01:00
cd ..
QP_ROOT=$PWD
cd -
2015-11-25 13:57:40 +01:00
export C_INCLUDE_PATH="${C_INCLUDE_PATH}":"${QP_ROOT}"/lib
2015-11-25 11:49:42 +01:00
set -e
set -u
2015-11-25 13:57:40 +01:00
export ZMQ_H="${QP_ROOT}"/lib/zmq.h
2015-11-25 11:49:42 +01:00
cd "${BUILD}"
2015-11-25 13:57:40 +01:00
make -j 8 || exit 1
mv libf77zmq.a "${QP_ROOT}"/lib || exit 1
mv libf77zmq.so "${QP_ROOT}"/lib || exit 1
2015-12-01 12:34:24 +01:00
cp f77_zmq.h "${QP_ROOT}"/src/ZMQ/
2015-11-25 11:49:42 +01:00
cd -
return 0
}
source scripts/build.sh