#!/bin/bash
. s.ssmuse.dot runtools devtools gfortran rmnlib-dev
RMNLIB=$(s.locate --lib rmnshared_014)
s.cc -c wrapper.c
[[ -n ${LD_RUN_PATH} ]] && export LD_RUN_PATH=${LD_RUN_PATH}:${RMNLIB%/*}
[[ -z ${LD_RUN_PATH} ]] && export LD_RUN_PATH=${RMNLIB%/*}
s.f90 -shared -o libfst_beta.so wrapper.o -lrmnshared_014 -shared
