1 # Copyright (c) 2004-2009. The SimGrid team. All right reserved.
3 # This file is part of the SimGrid project. This is free software:
4 # You can redistribute and/or modify it under the terms of the
5 # GNU LGPL (v2.1) licence.
8 # HOW TO ADD A NEW EXAMPLE:
10 # - add the binary name into the noinst_PROGRAMS variable
11 # - add a rule to compile the program, inspired from the existing ones
12 # - add a tesh file running it in several conditions.
13 # Write the file taking the others as example, and after reading
14 # <simgrid>/tools/tesh/README.tesh
15 # - List the tesh file in the TESTS variable so that it gets tested on make check
17 noinst_PROGRAMS = allreduce bcast bcbench compute compute2 compute3 first second mvmul ring_c split scatter reduce sendrecv
18 allreduce: allreduce.c
19 $(top_builddir)/src/smpi/smpicc $^ -o $@
21 $(top_builddir)/src/smpi/smpicc $^ -o $@
23 $(top_builddir)/src/smpi/smpicc $^ -o $@
25 $(top_builddir)/src/smpi/smpicc $^ -o $@
27 $(top_builddir)/src/smpi/smpicc $^ -o $@
29 $(top_builddir)/src/smpi/smpicc $^ -o $@
31 $(top_builddir)/src/smpi/smpicc $^ -o $@
33 $(top_builddir)/src/smpi/smpicc $^ -o $@
35 $(top_builddir)/src/smpi/smpicc $^ -o $@
37 $(top_builddir)/src/smpi/smpicc $^ -o $@
39 $(top_builddir)/src/smpi/smpicc $^ -o $@
41 $(top_builddir)/src/smpi/smpicc $^ -o $@
43 $(top_builddir)/src/smpi/smpicc $^ -o $@
45 $(top_builddir)/src/smpi/smpicc $^ -o $@
47 # List the tesh files below
48 TESTS = bcast.tesh reduce.tesh
50 # No need to change anything after that line
51 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
55 include $(top_srcdir)/acmacro/dist-files.mk