From cbe527ae1e3a18ddc7ad26b0d13143029853f964 Mon Sep 17 00:00:00 2001 From: goodale Date: Wed, 5 Oct 2005 19:16:47 +0000 Subject: Sort out some preprocessor stuff. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4175 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/known-architectures/superux | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'lib') 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'} -- cgit v1.2.3