diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-10-05 19:16:47 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-10-05 19:16:47 +0000 |
commit | cbe527ae1e3a18ddc7ad26b0d13143029853f964 (patch) | |
tree | 4cf716bba067bbe1a17d0bc275d4a7764586b9c8 /lib/make/known-architectures | |
parent | 5f78e6dfd35e3fde471d918aa930be9643939382 (diff) |
Sort out some preprocessor stuff.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4175 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures')
-rw-r--r-- | lib/make/known-architectures/superux | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/make/known-architectures/superux b/lib/make/known-architectures/superux index bb543172..bb65e40e 100644 --- a/lib/make/known-architectures/superux +++ b/lib/make/known-architectures/superux @@ -6,12 +6,23 @@ # @desc # Known architecture stuff for the SX-5 # @enddesc -# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/superux,v 1.17 2003-10-06 14:47:17 tradke Exp $ +# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/superux,v 1.18 2005-10-05 19:16:47 goodale Exp $ # @@*/ if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then - : + # use the Cactus preprocessor for Fortran + if test -z "$FPP"; then + FPP='$(PERL) $(CCTK_HOME)/lib/sbin/cpp.pl' + echo Setting FPP to $FPP + fi + + if test -z "$CPP"; then + if test -n "`echo $CC | grep sxcc`" ; then + CPP=$CC + echo Setting CPP to $CPP + fi + fi else @@ -26,7 +37,7 @@ else # switch off warnings by default, reactivate if WARN=yes was set : ${F77FLAGS='-w'} - : ${F90FLAGS='$(F77FLAGS)'} + : ${F90FLAGS="$F77FLAGS"} if test "$WARN" = 'xyes' ; then : ${F77_WARN_FLAGS='-Nw'} : ${F90_WARN_FLAGS='-Nw'} |