Skip to content

Commit

Permalink
New build script
Browse files Browse the repository at this point in the history
  • Loading branch information
f-fathurrahman committed Jun 8, 2020
1 parent 3d8c994 commit 8053f7d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions examples/V_gaussian_sinc/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
#!/bin/bash

INC="-I../../"
LIB="../../libmain.a -lblas -llapack -lfftw3"
if [ "$#" -ne 2 ]; then
echo
echo "ERROR"
echo "Need two parameters: main file and compiler name (and or options)"
echo "Example: ./build.sh myfile.f90 \"pgf90 -O2\""
echo
exit 1
fi

INC="-I../../src/"
LIB="../../src/libmain.a ../../src/libsparskit.a ../../src/libpoisson_ISF.a \
-L/home/efefer/mysoftwares/libxc-3.0.0/lib -lxcf90 -lxc \
-lblas -llapack -lfftw3"

bas=`basename $1 .f90`

Expand All @@ -10,5 +21,6 @@ rm -vf $bas.x

$2 $INC $1 $LIB -o $bas.x

#gfortran -Wall -O3 -ffree-form $INC $1 $LIB -o $bas.x
echo "Test executable: $bas.x"

0 comments on commit 8053f7d

Please sign in to comment.