summaryrefslogtreecommitdiff
path: root/lib/make/configure
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-03-06 22:27:11 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-03-06 22:27:11 +0000
commit1a8dbaee5f1a9e40180215f3af984a3cef40a05d (patch)
tree9eceb55a5131bc2a463c47073e338b8967a54753 /lib/make/configure
parentab3270bfb33ecfb9ae2480978857abffa8517051 (diff)
Added yet another thing which can be set by the known-architecture stuff:
CXX_WORKING_NAME this defaults to the working name being the filename without the directory info, but can be used to give the file generated after preprocessing a different name. E.g. if your machine requires C++ files to end with .C you should be able to do CXX_WORKING_NAME='$(notdir $<).C to solve the problem. At some point we're going to have to go through all these obscure flags and decide on nice names and what functionality they really should have. For instance the above could also have been done by introducing CXX_SUFFIX which would of course be easier for the end-user, but might in some circumstances be less useful. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1420 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/configure')
-rwxr-xr-xlib/make/configure21
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/make/configure b/lib/make/configure
index a2094cbc..98a8bdbd 100755
--- a/lib/make/configure
+++ b/lib/make/configure
@@ -3238,24 +3238,28 @@ if test -z "F90_WARN_FLAGS" ; then
fi
-#Set the createexe flag if it's not been set by now
+# Set the createexe flag if it's not been set by now
: ${CREATEEXE="-o"}
+# Set the directory seperator for this architecture
: ${DIRSEP="/"}
+# Set the option seperator for this architecture. Hopefully it is the same for all compilers.
: ${OPTIONSEP='$(EMPTY_VAR) # a single space'}
+# How to link the cactus libraries
: ${CACTUSLIBLINKLINE='-L$(CCTK_LIBDIR) $(addprefix -l, $(ALLCACTUSLIBS))'}
+# How to generate C dependency info
: ${C_DEPEND='$(CC) -E -M $(CPPFLAGS)'}
@@ -3264,6 +3268,7 @@ fi
: ${C_DEPEND_OUT=' > $@'}
+# How to generate C++ dependency info
: ${CXX_DEPEND='$(CXX) -E -M $(CPPFLAGS)'}
@@ -3272,6 +3277,7 @@ fi
: ${CXX_DEPEND_OUT=' > $@'}
+# How to generate F77 dependency info
: ${F77_DEPEND='$(CPP) -M $(CPPFLAGS)'}
@@ -3280,6 +3286,7 @@ fi
: ${F77_DEPEND_OUT=' > $@'}
+# How to generate F90 dependency info
: ${F_DEPEND='$(CPP) -M $(CPPFLAGS)'}
@@ -3288,21 +3295,32 @@ fi
: ${F_DEPEND_OUT=' > $@'}
+# How to generate an intermediate C++ name (some compilers are very picky).
+
+
+
+: ${CXX_WORKING_NAME='$(notdir $<)'}
+
+# How to get the current working directory when in the shell
: ${GET_WD="pwd"}
+# Any additional system include directories.
: ${SYS_INC_DIRS=" "}
+# How to link in the non-Cactus libraries
: ${GENERAL_LIBRARIES='$(LIBDIRS:%=-L%) $(LIBS:%=-l%)'}
+# Do we need to make sure Perl makes a backup when editting in place ?
: ${PERL_BACKUP_NECESSARY=""}
# Cache stuff - this will probably change
+# L2 Cache
: ${L2_CACHELINE_BYTES="0"}
: ${L2_CACHE_SIZE="0"}
@@ -3521,6 +3539,7 @@ s%@F77_DEPEND@%$F77_DEPEND%g
s%@F77_DEPEND_OUT@%$F77_DEPEND_OUT%g
s%@F_DEPEND@%$F_DEPEND%g
s%@F_DEPEND_OUT@%$F_DEPEND_OUT%g
+s%@CXX_WORKING_NAME@%$CXX_WORKING_NAME%g
s%@GET_WD@%$GET_WD%g
s%@SYS_INC_DIRS@%$SYS_INC_DIRS%g
s%@GENERAL_LIBRARIES@%$GENERAL_LIBRARIES%g