Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile reduce example
[simgrid.git] / examples / smpi / Makefile.am
index 45d03f4..83984e3 100644 (file)
@@ -1,19 +1,20 @@
-# Copyright (c) 2004-2007. The SimGrid team. All right reserved.
+# Copyright (c) 2004-2009. The SimGrid team. All right reserved.
 
 # This file is part of the SimGrid project. This is free software:
 # You can redistribute and/or modify it under the terms of the
 # GNU LGPL (v2.1) licence.
 
 
-#INCLUDES  = -I$(top_srcdir)/include
-#AM_CFLAGS = -g
-
-# For each test and/or example:
+# HOW TO ADD A NEW EXAMPLE:
+#
 #  - add the binary name into the noinst_PROGRAMS variable
 #  - add a rule to compile the program, inspired from the existing ones
+#  - add a tesh file running it in several conditions. 
+#    Write the file taking the others as example, and after reading
+#    <simgrid>/tools/tesh/README.tesh
+#  - List the tesh file in the TESTS variable so that it gets tested on make check
 
-noinst_PROGRAMS = bcast bcbench compute compute2 compute3 first second mvmul ring_c split
-#reduce Not working yet (FIXME)
+noinst_PROGRAMS = bcast bcbench compute compute2 compute3 first second mvmul ring_c split reduce 
 
 bcast: bcast.c
        $(top_builddir)/src/smpi/smpicc $^ -o $@
@@ -39,7 +40,7 @@ mvmul: mvmul.c
        $(top_builddir)/src/smpi/smpicc $^ -o $@
 
 # List the tesh files below
-TESTS = 
+TESTS = bcast.tesh
 
 # No need to change anything after that line
 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh