#!/bin/sh

#To build a TOMB executable for osx
#  1  install dislin 
#  2 install gfortran f90-95 compiler
#  modify the makefile to remove all the linking stuff so that it just compiles 
#  source code
#  copy this shell script to where the object files are and run it 
#  move the executable to directory with your data files

libs="-L$DISLIN -ldislin_d"
modpath=$DISLIN/gf/real64
xlibs="-L/usr/OpenMotif/lib -lXm"
params="$2 $3 $4 $5 $6 $7"

gfortran -m64 TOMB.o tomprocs.o odds.o scand.o plot.o yamal1.o yamal2.o rfigs.o nat98.o grudd.o china.o chron.o chrondata.o crcsutil.o stand.o detdata.o -o TOMBosx $params $libs $xlibs