diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-28 03:15:04 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-28 03:15:04 +0000 |
commit | dea3c9269960456b9f2fe65f36617d38ca759222 (patch) | |
tree | 67165361839d66b6fbf71d14be85eceb368dfc57 /lib/make/extras/GRACE | |
parent | bd614a6666f00626ab135a210672d1b5be9f1cb8 (diff) |
Added Erik's GRACE configuration stuff (after renaming to GRACE from NDAGH).
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1327 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/extras/GRACE')
-rwxr-xr-x | lib/make/extras/GRACE/setup.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/lib/make/extras/GRACE/setup.sh b/lib/make/extras/GRACE/setup.sh new file mode 100755 index 00000000..a59d0369 --- /dev/null +++ b/lib/make/extras/GRACE/setup.sh @@ -0,0 +1,44 @@ +#! /bin/sh +# /*@@ +# @file setup.sh +# @date +# @author Erik Schnetter +# @desc +# +# @enddesc +# @history +# @hdate Thu Jan 27 21:06:23 2000 @hauthor Tom Goodale +# @hdesc Placed in main distribution and changed GRACE to GRACE +# @endhistory +# @version $Header$ +# @@*/ + +if test -n "$GRACE"; then + + echo "Configuring with GRACE." + + if test -z "$GRACE_DIR"; then + echo "GRACE selected but no GRACE_DIR set" + exit 2 + fi + if test -z "$GRACE_ARCH"; then + echo "GRACE selected but no GRACE_ARCH set" + exit 2 + fi + GRACE_INC_DIRS="$GRACE_DIR/include $GRACE_RNPL_INC_DIRS $GRACE_HDF_INC_DIRS $GRACE_IEEEIO_INC_DIRS $GRACE_MPI_INC_DIRS" + GRACE_LIB_DIRS="$GRACE_DIR/lib/$GRACE_ARCH $GRACE_RNPL_LIB_DIRS $GRACE_HDF_LIB_DIRS $GRACE_IEEEIO_LIB_DIRS $GRACE_MPI_LIB_DIRS" + GRACE_LIBS="grace $GRACE_RNPL_LIBS $GRACE_HDF_LIBS $GRACE_IEEEIO_LIBS $GRACE_MPI_LIBS" + +# CCTK_WriteLine cctk_Extradefs.h "#define GRACE" + + CCTK_WriteLine make.extra.defn "GRACE_INC_DIRS = $GRACE_INC_DIRS" + CCTK_WriteLine make.extra.defn "GRACE_LIB_DIRS = $GRACE_LIB_DIRS" + CCTK_WriteLine make.extra.defn "GRACE_LIBS = $GRACE_LIBS" + + CCTK_WriteLine make.extra.defn "" + + CCTK_WriteLine make.extra.defn 'SYS_INC_DIRS += $(GRACE_INC_DIRS)' + CCTK_WriteLine make.extra.defn 'LIBDIRS += $(GRACE_LIB_DIRS)' + CCTK_WriteLine make.extra.defn 'LIBS += $(GRACE_LIBS)' + +fi |