summaryrefslogtreecommitdiff
path: root/src/datestamp.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-01-17 21:53:13 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-01-17 21:53:13 +0000
commit49dd8431ebb496bd0e709be24073f725e52687e2 (patch)
tree64c6321712054ec87e742611b9f89cc3da3e04a9 /src/datestamp.c
parent803e78cd9586d7141ea1079600ae284cbaf2127b (diff)
New make system.
To build a configuration <conf> do make <conf> if <conf> doesn't exist you'll get a complaint make by itself will list existing configurations, or run the setup perl script if there are none. make config will make a new configuration make help should list all options make tags will create a Vi style tags file make TAGS will create an Emacs style TAGS file make distclean will nuke your build directory. When setting up a configuration the make system creates the following directories $(CCTK_HOME)/build $(CCTK_HOME)/build/$(config) $(CCTK_HOME)/build/$(config)/config-data $(CCTK_HOME)/build/$(config)/lib $(CCTK_HOME)/build/$(config)/build and runs autoconf in the config-data directory. You then need to create a file make.thornlist containing one line of the form THORNS=toolkit1/thorn1 toolkit3/thorn45 ... in the config-data directory. (This will be automatically created from ActiveThorns later.) At that point you should be fine for making the system. Note that it doesn't preprocess the files yet, nor in fact touch any of the ccl scripts. This is coming to a make system near you soon... Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@62 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/datestamp.c')
-rw-r--r--src/datestamp.c75
1 files changed, 75 insertions, 0 deletions
diff --git a/src/datestamp.c b/src/datestamp.c
new file mode 100644
index 00000000..933c6125
--- /dev/null
+++ b/src/datestamp.c
@@ -0,0 +1,75 @@
+ /*@@
+ @file datestamp.c
+ @date Mon May 11 10:20:58 1998
+ @author Paul Walker
+ @desc
+
+ @enddesc
+ @@*/
+#include <stdio.h>
+
+static char *rcsid = "$Id$";
+
+ /*@@
+ @routine datastamp
+ @date Mon May 11 10:20:58 1998
+ @author Paul Walker
+ @desc
+
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+void datestamp() {
+ printf (" Compiled on %s at %s\n", __DATE__, __TIME__);
+}
+
+ /*@@
+ @routine compileTime
+ @date Mon May 11 10:20:58 1998
+ @author Paul Walker
+ @desc
+
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+char *compileTime() {
+ return (__TIME__);
+}
+
+ /*@@
+ @routine compileDate
+ @date Mon May 11 10:20:58 1998
+ @author Paul Walker
+ @desc
+
+ @enddesc
+ @calls
+ @calledby
+ @history
+
+ @endhistory
+
+@@*/
+char *compileDate() {
+ return (__DATE__);
+}
+
+/*#define MAKETEST*/
+#ifdef MAKETEST
+int main()
+{
+ printf("CCTK maketest compiled on %s\n", compileDate());
+
+ return 0;
+}
+#endif