#!/bin/sh

working_dir=@CWD@

prefix=@prefix@
exec_prefix=@exec_prefix@

CL="@CXX@"

CCFLAGS="@CPLINLINE@ @COMPILER_OPT@"

if [ -f ${working_dir}/src/kernel/libadlib.a ]
then 
  $CL $CCFLAGS -I${working_dir}/src/include -L${working_dir}/src/kernel @MPI_INC@ @MPI_LIB@ $* -ladlib @LIBKEY@ 
else
  $CL $CCFLAGS -I${prefix}/include -L${exec_prefix}/lib @MPI_INC@ @MPI_LIB@ $* -ladlib @LIBKEY@
fi  
