Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Initial revision
[simgrid.git] / examples / bandwidth / Makefile.am
diff --git a/examples/bandwidth/Makefile.am b/examples/bandwidth/Makefile.am
new file mode 100644 (file)
index 0000000..b8105fc
--- /dev/null
@@ -0,0 +1,20 @@
+DISTCLEANFILES=Makefile.in
+INCLUDES= -I$(top_srcdir)/src/include
+
+noinst_PROGRAMS=bandwidth_simulator bandwidth_maestro bandwidth_sensor
+
+bandwidth_simulator_SOURCES=   _bandwidth_simulator.c bandwidth.c
+bandwidth_maestro_SOURCES=     _bandwidth_maestro.c bandwidth.c
+bandwidth_sensor_SOURCES=      _bandwidth_sensor.c bandwidth.c
+
+
+bandwidth_simulator_LDADD=     $(top_srcdir)/src/core/libgrassg.a $(top_srcdir)/src/modules/libgrasmodules.a @LIBS_SimGrid@ @LIBS_XML@
+bandwidth_maestro_LDADD=       $(top_srcdir)/src/core/libgrasrl.a $(top_srcdir)/src/modules/libgrasmodules.a
+bandwidth_sensor_LDADD=        $(top_srcdir)/src/core/libgrasrl.a $(top_srcdir)/src/modules/libgrasmodules.a
+
+# cleanup temps
+CLEANFILES=_bandwidth_simulator.c _bandwidth_maestro.c _bandwidth_sensor.c
+
+# generate temps
+_bandwidth_maestro.c _bandwidth_sensor.c _bandwidth_simulator.c: bandwidth_deployment.txt
+       $(top_srcdir)/src/examples/gras_stub_generator bandwidth bandwidth_deployment.txt >/dev/null