summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/make.code.defn4
-rw-r--r--src/IO/make.code.deps0
-rw-r--r--src/comm/make.code.defn5
-rw-r--r--src/comm/make.code.deps0
-rw-r--r--src/create_make.code.stuff13
-rw-r--r--src/main/make.code.defn18
-rw-r--r--src/main/make.code.deps0
-rw-r--r--src/make.code.defn31
-rw-r--r--src/make.code.deps56
-rw-r--r--src/util/make.code.defn8
-rw-r--r--src/util/make.code.deps0
11 files changed, 37 insertions, 98 deletions
diff --git a/src/IO/make.code.defn b/src/IO/make.code.defn
new file mode 100644
index 00000000..ca36d274
--- /dev/null
+++ b/src/IO/make.code.defn
@@ -0,0 +1,4 @@
+SRCS=\
+CactusDefaultIO.c\
+RegisterIOFunction.c\
+
diff --git a/src/IO/make.code.deps b/src/IO/make.code.deps
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/IO/make.code.deps
diff --git a/src/comm/make.code.defn b/src/comm/make.code.defn
new file mode 100644
index 00000000..094b4e70
--- /dev/null
+++ b/src/comm/make.code.defn
@@ -0,0 +1,5 @@
+SRCS=\
+CactusDefaultComm.c\
+GHExtensions.c\
+RegisterCommFunction.c\
+
diff --git a/src/comm/make.code.deps b/src/comm/make.code.deps
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/comm/make.code.deps
diff --git a/src/create_make.code.stuff b/src/create_make.code.stuff
deleted file mode 100644
index 9d8ea5ed..00000000
--- a/src/create_make.code.stuff
+++ /dev/null
@@ -1,13 +0,0 @@
-# These are commands which can be used to automatically create make.code.defn
-# and make.code.deps stuff where there are subdirectories.
-# Hopefully the finalmake system won't need these -- Tom
-#
-
-find . -name '*.c' -o -name '*.cc' | perl -p -e 's:\./::' | grep -v datestamp.c | awk 'BEGIN {print "SRCS=\\"}; {print $0 "\\"} END {print
-""};' - > make.code.defn
-
-find . -name '*.c' | perl -p -e 's,(.*)\.(.*),\1\.o:\$(SRCDIR)/\1.\2\n\t\$(CC) \$(CFLAGS) -o \$\@ -c \$< \$(addprefix -I\,\$(INC_DIRS)),' > make.code.deps
-
-find . -name '*.cc' | perl -p -e 's,(.*)\.(.*),\1\.o:\$(SRCDIR)/\1.\2\n\t\$(CXX) \$(CXXFLAGS) -o \$\@ -c \$< \$(addprefix -I\,\$(INC_DIRS)),' >> make.code.deps
-
-
diff --git a/src/main/make.code.defn b/src/main/make.code.defn
new file mode 100644
index 00000000..499d09d8
--- /dev/null
+++ b/src/main/make.code.defn
@@ -0,0 +1,18 @@
+SRCS=\
+CactusDefaultEvolve.c\
+CactusDefaultInitialise.c\
+CallStartupFunctions.c\
+ConfigData.c\
+CreateGroup.c\
+InitialiseCactus.c\
+InitialiseDataStructures.c\
+ProcessCommandLine.c\
+ProcessParameterDatabase.c\
+RecordImplementation.c\
+RegisterMainFunction.c\
+RegisterThorn.c\
+SetParams.c\
+ShutdownCactus.c\
+StoreVariableData.c\
+flesh.cc\
+
diff --git a/src/main/make.code.deps b/src/main/make.code.deps
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/main/make.code.deps
diff --git a/src/make.code.defn b/src/make.code.defn
index e5974870..b268651e 100644
--- a/src/make.code.defn
+++ b/src/make.code.defn
@@ -1,29 +1,2 @@
-SRCS=\
-IO/CactusDefaultIO.c\
-IO/RegisterIOFunction.c\
-comm/CactusDefaultComm.c\
-comm/RegisterCommFunction.c\
-comm/GHExtensions.c\
-main/CactusDefaultInitialise.c\
-main/CallStartupFunctions.c\
-main/InitialiseCactus.c\
-main/ProcessCommandLine.c\
-main/ProcessParameterDatabase.c\
-main/RegisterMainFunction.c\
-main/ShutdownCactus.c\
-main/flesh.cc\
-main/CactusDefaultEvolve.c\
-main/SetParams.c\
-main/InitialiseDataStructures.c\
-main/RecordImplementation.c\
-main/RegisterThorn.c\
-main/CreateGroup.c\
-main/StoreVariableData.c\
-main/ConfigData.c\
-util/RegisterKeyedFunction.c\
-util/StoreKeyedData.c\
-util/StoreNamedData.c\
-util/BinaryTree.c\
-util/CactusTimers.c\
-util/ParseFile.c\
-util/ParseFile.c
+SRCS =
+SUBDIRS = IO comm rfr util main
diff --git a/src/make.code.deps b/src/make.code.deps
index 6b004a22..e69de29b 100644
--- a/src/make.code.deps
+++ b/src/make.code.deps
@@ -1,56 +0,0 @@
-./IO/CactusDefaultIO.o:$(SRCDIR)/./IO/CactusDefaultIO.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./IO/RegisterIOFunction.o:$(SRCDIR)/./IO/RegisterIOFunction.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./comm/CactusDefaultComm.o:$(SRCDIR)/./comm/CactusDefaultComm.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./comm/RegisterCommFunction.o:$(SRCDIR)/./comm/RegisterCommFunction.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./comm/GHExtensions.o:$(SRCDIR)/./comm/GHExtensions.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/CactusDefaultInitialise.o:$(SRCDIR)/./main/CactusDefaultInitialise.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/CallStartupFunctions.o:$(SRCDIR)/./main/CallStartupFunctions.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/InitialiseCactus.o:$(SRCDIR)/./main/InitialiseCactus.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/ProcessCommandLine.o:$(SRCDIR)/./main/ProcessCommandLine.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/ProcessParameterDatabase.o:$(SRCDIR)/./main/ProcessParameterDatabase.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/RegisterMainFunction.o:$(SRCDIR)/./main/RegisterMainFunction.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/ShutdownCactus.o:$(SRCDIR)/./main/ShutdownCactus.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/CactusDefaultEvolve.o:$(SRCDIR)/./main/CactusDefaultEvolve.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/SetParams.o:$(SRCDIR)/./main/SetParams.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/InitialiseDataStructures.o:$(SRCDIR)/./main/InitialiseDataStructures.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/RecordImplementation.o:$(SRCDIR)/./main/RecordImplementation.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/RegisterThorn.o:$(SRCDIR)/./main/RegisterThorn.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/CreateGroup.o:$(SRCDIR)/./main/CreateGroup.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/StoreVariableData.o:$(SRCDIR)/./main/StoreVariableData.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/ConfigData.o:$(SRCDIR)/./main/ConfigData.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/RegisterKeyedFunction.o:$(SRCDIR)/./util/RegisterKeyedFunction.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/StoreKeyedData.o:$(SRCDIR)/./util/StoreKeyedData.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/StoreNamedData.o:$(SRCDIR)/./util/StoreNamedData.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/BinaryTree.o:$(SRCDIR)/./util/BinaryTree.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/CactusTimers.o:$(SRCDIR)/./util/CactusTimers.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./util/ParseFile.o:$(SRCDIR)/./util/ParseFile.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./datestamp.o:$(SRCDIR)/./datestamp.c
- $(CC) $(CFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
-./main/flesh.o:$(SRCDIR)/./main/flesh.cc
- $(CXX) $(CXXFLAGS) -o $@ -c $< $(addprefix -I,$(INC_DIRS))
diff --git a/src/util/make.code.defn b/src/util/make.code.defn
new file mode 100644
index 00000000..3b7274fb
--- /dev/null
+++ b/src/util/make.code.defn
@@ -0,0 +1,8 @@
+SRCS=\
+BinaryTree.c\
+CactusTimers.c\
+ParseFile.c\
+RegisterKeyedFunction.c\
+StoreKeyedData.c\
+StoreNamedData.c\
+
diff --git a/src/util/make.code.deps b/src/util/make.code.deps
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/util/make.code.deps