Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4a3d360530783b1b5ffc7028a43c0f9c40a493a5
[simgrid.git] / examples / bandwidth / Makefile.am
1 INCLUDES= -I$(top_srcdir)/include
2 AM_CFLAGS=-g
3 TESTS=test_rl test_sg
4 EXTRA_DIST=bandwidth_deployment.txt $(TESTS)
5
6 noinst_PROGRAMS=bandwidth_maestro bandwidth_sensor bandwidth_simulator
7   
8 bandwidth_simulator_SOURCES=    _bandwidth_simulator.c bandwidth.c
9 bandwidth_simulator_LDADD=      $(top_builddir)/src/libsimgrid.la $(top_builddir)/src/amok/libamok.la
10
11 bandwidth_maestro_SOURCES=      _bandwidth_maestro.c bandwidth.c
12 bandwidth_maestro_LDADD=        $(top_builddir)/src/libgras.la $(top_builddir)/src/amok/libamok.la
13
14 bandwidth_sensor_SOURCES=       _bandwidth_sensor.c bandwidth.c
15 bandwidth_sensor_LDADD=         $(top_builddir)/src/libgras.la $(top_builddir)/src/amok/libamok.la
16
17 # cleanup temps
18 CLEANFILES=_bandwidth_simulator.c _bandwidth_maestro.c _bandwidth_sensor.c \
19            bandwidth.Makefile.local bandwidth.Makefile.remote bandwidth.deploy.sh
20            
21 MOSTLYCLEANFILES = bandwidth.trace
22
23 # generate temps
24 NAME=bandwidth
25 PROCESSES= maestro sensor
26
27 $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@
28         [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null
29
30 ../../../tools/gras/gras_stub_generator@EXEEXT@:
31         make -C   ../../../tools/gras/ gras_stub_generator@EXEEXT@
32
33 include $(top_srcdir)/acmacro/dist-files.mk