-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
28 lines (25 loc) · 841 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
export VERSION="10.0.3"
echo $VERSION > .version && echo $VERSION > .tarball-version && ./autogen.sh
./config/scripts/makemake
./configure --prefix=${PREFIX} \
--with-mpi="yes" --enable-mpi-io="yes" \
--with-libxc="yes" \
--with-hdf5="yes" \
--with-fftw3="yes" \
--with-netcdf="yes" \
--with-netcdf-fortran="yes" \
--with-fft-flavor="fftw3" \
FFTW3_LIBS="-lfftw3 -lfftw3f" \
CC="mpicc" \
FC="mpifort" \
CXX="mpicxx" \
CFLAGS="${CFLAGS}" \
FFLAGS="${FFLAGS}" \
FCFLAGS="${FCFLAGS}" \
FCFLAGS_EXTRA="-fallow-argument-mismatch" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
make -j${CPU_COUNT}
make check
make install-exec