Created
October 28, 2014 03:05
-
-
Save hiracchi/f28ab392512149c4ec71 to your computer and use it in GitHub Desktop.
build ProteinDF on gnu/openmpi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export LANG=C | |
MY_PREFIX=${HOME}/local/gnu/ProteinDF | |
export F77=gfortran | |
export FC=gfortran | |
export CC=gcc | |
export CXX=g++ | |
export CFLAGS=" \ | |
-Wall -O3 \ | |
-fopenmp \ | |
-DMPICH_IGNORE_CXX_SEEK \ | |
" | |
export CXXFLAGS="${CFLAGS} -std=c++11" | |
export CXXFLAGS=${CFLAGS} | |
#export MPICXX=${HOME}/local/gnu/openmpi/bin/mpicxx | |
export LIBS="-lgfortran -lm -static-libgcc" | |
echo "prefix is ${MY_PREFIX}" | |
CONFIGURE_OPT=" \ | |
--disable-shared \ | |
--enable-static \ | |
--disable-parallel \ | |
--with-blas=${HOME}/local/gnu/lib/librefblas.a \ | |
--with-lapack=${HOME}/local/gnu/lib/liblapack.a \ | |
" | |
rm -rf autom4te.cache | |
./bootstrap.sh | |
./configure --prefix=${MY_PREFIX} ${CONFIGURE_OPT} 2>&1 | tee out.configure | |
make -j 3 2>&1 | tee out.make | |
make install 2>&1 | tee out.make_install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment