############################
# Shell script to build the shared library for calling from Julia
# Author: Satoki Tsujino (satoki_at_gfd-dennou.org)
# Date: 2020/06/05
############################

###### You can change the variables depending on your environment ######
FC=gfortran
FCFLAGS='-fconvert=big-endian -fPIC -shared'
TARGET='libstpk.so'
###### You can change the variables depending on your environment ######

$FC \
math_const.f90 \
phys_const.f90 \
thermo_const.f90 \
cloud_const.f90 \
file_operate.f90 \
math_function.f90 \
matrix_calc.f90 \
max_min.f90 \
stdio.f90 \
 \
basis.f90 \
algebra.f90 \
ffts.f90 \
geometry.f90 \
map_function.f90 \
special_function.f90 \
 \
derivation.f90 \
ellip_slv.f90 \
poly_function.f90 \
pv_analy.f90 \
 \
statistics.f90 \
vert_coord_conv.f90 \
trajectory.f90 \
thermo_function.f90 \
thermo_routine.f90 \
 \
cloud_basic.f90 \
cloud_cold.f90 \
cloud_warm.f90 \
thermo_advanced_function.f90 \
thermo_advanced_routine.f90 \
typhoon_analy.f90 \
$FCFLAGS -o $TARGET
