Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add a proper example of master/slaves, using mailboxes
[simgrid.git] / examples / msg / Makefile.am
1 # Copyright (c) 2004-2007. The SimGrid team. All right reserved.
2
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.
6
7
8 INCLUDES  = -I$(top_srcdir)/include
9 AM_CFLAGS = -g
10
11 EXTRA_DIST = msg_platform.xml \
12              small_platform.xml \
13              small_platform_with_failures.xml \
14              jupiter_state.trace link5_state.trace \
15              sendrecv/platform_sendrecv.xml \
16              sendrecv/deployment_sendrecv.xml \
17              suspend/deployment_suspend.xml \
18              masterslave/deployment_masterslave_forwarder.xml \
19              masterslave/deployment_masterslave.xml \
20              migration/migration.deploy \
21              gtnets/onelink-p.xml \
22              gtnets/onelink-d.xml \
23              gtnets/dogbone-d.xml \
24              gtnets/dogbone-p.xml \
25              gtnets/waxman-d.xml \
26              gtnets/waxman-p.xml \
27              parallel_task/test_ptask_deployment.xml \
28              parallel_task/test_ptask_platform.xml \
29              priority/deployment_priority.xml \
30              properties/deployment_properties.xml \
31              trace/test_trace_integration.xml \
32              trace/file.trace \
33              trace/test1.xml \
34              trace/test2.xml \
35              trace/test3.xml \
36              trace/test4.xml \
37              trace/test5.xml \
38              trace/test6.xml \
39              trace/test7.xml \
40              trace/test8.xml \
41              trace/test9.xml \
42              trace/test10.xml \
43              trace/test11.xml \
44              fafard_state.trace jupiter_state.trace link5_state.trace
45
46
47 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
48
49
50 TESTS = sendrecv/sendrecv_CLM03.tesh \
51         sendrecv/sendrecv_Vegas.tesh \
52         sendrecv/sendrecv_Reno.tesh \
53         suspend/suspend.tesh \
54         masterslave/masterslave.tesh \
55         masterslave/masterslave_forwarder.tesh \
56         masterslave/masterslave_failure.tesh \
57         masterslave/masterslave_bypass.tesh \
58         migration/migration.tesh \
59         parallel_task/parallel_task.tesh \
60         priority/priority.tesh \
61         properties/msg_prop.tesh \
62     trace/trace.tesh \
63         masterslave/masterslave_cpu_ti.tesh
64
65 if HAVE_GTNETS
66   TESTS += gtnets/gtnets.tesh
67 endif
68
69 CLEANFILES = sendrecv/*~ \
70              sendrecv/sendrecv \
71              suspend/*~ \
72              suspend/suspend \
73              masterslave/*~ \
74              masterslave/masterslave_forwarder \
75              masterslave/masterslave_failure \
76              masterslave/masterslave_bypass \
77              parallel_task/parallel_task \
78              parallel_task/test_ptask \
79              priority/priority \
80              properties/msg_prop \
81              trace/test_trace_integration
82
83 if HAVE_GTNETS
84              CLEANFILES += gtnets/gtnets
85 endif
86
87
88
89
90 noinst_PROGRAMS = sendrecv/sendrecv \
91                   suspend/suspend \
92                   masterslave/masterslave_mailbox \
93                   masterslave/masterslave_forwarder \
94                   masterslave/masterslave_failure \
95                   masterslave/masterslave_bypass \
96                   migration/migration \
97                   parallel_task/parallel_task \
98                   parallel_task/test_ptask \
99                   priority/priority \
100                   properties/msg_prop \
101                   actions/actions \
102                   trace/test_trace_integration
103
104 if HAVE_GTNETS
105   noinst_PROGRAMS += gtnets/gtnets
106 endif
107
108
109 # property handle example
110 properties_msg_prop_SOURCES = properties/msg_prop.c
111 properties_msg_prop_LDADD   = $(top_builddir)/src/libsimgrid.la
112
113 # actions example
114 actions_actions_SOURCES = actions/actions.c
115 actions_actions_LDADD   = $(top_builddir)/src/libsimgrid.la
116
117 # migration example
118 migration_migration_SOURCES = migration/migration.c
119 migration_migration_LDADD   = $(top_builddir)/src/libsimgrid.la
120
121
122 # sendrecv simple example
123 sendrecv_sendrecv_SOURCES = sendrecv/sendrecv.c
124 sendrecv_sendrecv_LDADD   = $(top_builddir)/src/libsimgrid.la
125
126 # suspend/resume simple example
127 suspend_suspend_SOURCES = suspend/suspend.c
128 suspend_suspend_LDADD   = $(top_builddir)/src/libsimgrid.la
129
130 # parallel task example
131 parallel_task_parallel_task_SOURCES = parallel_task/parallel_task.c
132 parallel_task_parallel_task_LDADD   = $(top_builddir)/src/libsimgrid.la
133 parallel_task_test_ptask_SOURCES = parallel_task/test_ptask.c
134 parallel_task_test_ptask_LDADD   = $(top_builddir)/src/libsimgrid.la
135
136 # playing with priorities example
137 priority_priority_SOURCES = priority/priority.c
138 priority_priority_LDADD   = $(top_builddir)/src/libsimgrid.la
139
140 # master/slave application example using a forwarder module
141 masterslave_masterslave_forwarder_SOURCES = masterslave/masterslave_forwarder.c
142 masterslave_masterslave_forwarder_LDADD   = $(top_builddir)/src/libsimgrid.la
143
144 # master/slave application example using a mailboxes
145 masterslave_masterslave_mailbox_SOURCES = masterslave/masterslave_mailbox.c
146 masterslave_masterslave_mailbox_LDADD   = $(top_builddir)/src/libsimgrid.la
147
148 # master/slave application example with failures
149 masterslave_masterslave_failure_SOURCES = masterslave/masterslave_failure.c
150 masterslave_masterslave_failure_LDADD   = $(top_builddir)/src/libsimgrid.la
151
152 # bypass the surf xml parser
153 masterslave_masterslave_bypass_SOURCES = masterslave/masterslave_bypass.c
154 masterslave_masterslave_bypass_LDADD   = $(top_builddir)/src/libsimgrid.la
155
156 # bypass the surf xml parser
157 trace_test_trace_integration_SOURCES = trace/test_trace_integration.c
158 trace_test_trace_integration_LDADD   = $(top_builddir)/src/libsimgrid.la
159
160 # verify if the GTNETS feature is working
161 if HAVE_GTNETS
162 gtnets_gtnets_SOURCES  = gtnets/gtnets.c
163 gtnets_gtnets_LDADD   = $(top_builddir)/src/libsimgrid.la
164 else
165   EXTRA_DIST+= gtnets/gtnets.c
166 endif
167
168 EXTRA_DIST+=$(TESTS)
169 include $(top_srcdir)/acmacro/dist-files.mk