diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-09-11 12:15:08 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-09-11 12:15:08 +0000 |
commit | 5368b374141f194145ed9d0577c257339ccf2463 (patch) | |
tree | 5f9ad9fdf0d130b46ba5784e52bbacd3b1a4b922 | |
parent | cb8b86fc5efe451b7e19e7975c62fc907f07040a (diff) |
clean up LAPACK configuration -- now does it properly, the same way
the elliptic-solver thorns do PETSc
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@722 f88db872-0e4f-0410-b76b-b9085cfa78c5
-rw-r--r-- | src/make.configuration.defn | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/make.configuration.defn b/src/make.configuration.defn index fca6781..050e60e 100644 --- a/src/make.configuration.defn +++ b/src/make.configuration.defn @@ -1,14 +1,26 @@ # additional configuration information for Cactus to build this thorn # $Header$ -# environment variable LAPACK_DIR, if set (should be a blank-separated -# list of directories), says where to look for LAPACK/BLAS libraries -ifneq ($(strip $(LAPACK_DIR)), ) - LIBDIRS += $(LAPACK_DIR) +# check if LAPACK_DIR is set, bail out if not +ifeq ($(strip $(LAPACK_DIR)),) +$(NAME): MissingLAPACK_DIR +.pseudo: MissingLAPACK_DIR +MissingLAPACK_DIR: + @echo 'thorn AHFinderDirect uses LAPACK (which in turn uses BLAS)' + @echo '==> must set LAPACK_DIR = directory (or blank-separated directory search list)' + @echo ' in which LAPACK and BLAS libraries live' + exit 2 endif -# n.b. lapack and blas need to go at the *front* of other libs +LIBDIRS += $(LAPACK_DIR) + +# +# Note that LAPACK and BLAS need to go at the *front* of other libs # since they may use libm etc -# n.b. g2c is needed here if and only if g77 is use for any code -# (eg on linux lapack/blas rpms are usually built with g77) +# +# FIXME: g2c is appropriate here if and only if g77 is use for any code +# (eg on linux lapack/blas rpms are usually built with g77); +# we should really check whether g77 is in use instead of +# hard-coding this +# LIBS := lapack blas g2c $(LIBS) |