X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3a3ad7b4828808aeaddac16924ff03c45dd73fca..e67841d89e12eca6d394db1b31180d6f0efda8eb:/examples/bandwidth/Makefile.am?ds=sidebyside diff --git a/examples/bandwidth/Makefile.am b/examples/bandwidth/Makefile.am index 959b882689..7c836b8a9f 100644 --- a/examples/bandwidth/Makefile.am +++ b/examples/bandwidth/Makefile.am @@ -1,20 +1,26 @@ -DISTCLEANFILES=Makefile.in -INCLUDES= -I$(top_srcdir)/src/include +INCLUDES= -I$(top_srcdir)/include +AM_CFLAGS=-g +TESTS=test_rl test_sg +EXTRA_DIST=bandwidth_deployment.txt $(TESTS) -noinst_PROGRAMS=bandwidth_simulator bandwidth_maestro bandwidth_sensor +if HAVE_SG + check_PROGRAMS=bandwidth_maestro bandwidth_sensor bandwidth_simulator + + bandwidth_simulator_SOURCES= _bandwidth_simulator.c bandwidth.c + bandwidth_simulator_LDADD= $(top_builddir)/src/libgrassg.la $(top_builddir)/src/amok/libamok.la @LIBS_SimGrid@ +else + check_PROGRAMS=bandwidth_maestro bandwidth_sensor +endif -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/base/libgrassg.a $(top_srcdir)/src/modules/libgrasmodules.a @LIBS_SimGrid@ @LIBS_XML@ -bandwidth_maestro_LDADD= $(top_srcdir)/src/base/libgrasrl.a $(top_srcdir)/src/modules/libgrasmodules.a -bandwidth_sensor_LDADD= $(top_srcdir)/src/base/libgrasrl.a $(top_srcdir)/src/modules/libgrasmodules.a +bandwidth_maestro_LDADD= $(top_builddir)/src/libgrasrl.la $(top_builddir)/src/amok/libamok.la +bandwidth_sensor_LDADD= $(top_builddir)/src/libgrasrl.la $(top_builddir)/src/amok/libamok.la # cleanup temps -CLEANFILES=_bandwidth_simulator.c _bandwidth_maestro.c _bandwidth_sensor.c +MAINTAINERCLEANFILES=_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 + $(top_srcdir)/examples/gras_stub_generator bandwidth bandwidth_deployment.txt >/dev/null