You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
308 B
16 lines
308 B
2 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ -z "$1" ]
|
||
|
then
|
||
|
printf "Usage: setup.sh install_directory [dependencies].\n"
|
||
|
exit
|
||
|
fi
|
||
|
|
||
|
# $2 zlib, $3 hdf5
|
||
|
cd $(dirname $0)
|
||
|
libname=$(basename $(pwd))
|
||
|
CPPFLAGS="-I$3/include -I$2/include" LDFLAGS="-L$3/lib -L$2/lib" ./configure --prefix="$1"
|
||
|
make all -j8
|
||
|
make check
|
||
|
make install
|