Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9a2d98bc38aa02c151cd0ee61de5bad6a47acb6e
[simgrid.git] / examples / amok / Makefile.am
1 INCLUDES= -I$(top_srcdir)/include
2 AM_CFLAGS=-g
3
4 EXTRA_DIST=
5 noinst_PROGRAMS=
6
7 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
8 TESTS=
9 XFAIL_TESTS=
10
11 LDADD_SG=$(top_builddir)/src/libsimgrid.la
12 LDADD_RL=$(top_builddir)/src/libgras.la
13
14 ###################
15 # Bandwidth tests #
16 ###################
17 EXTRA_DIST+=bandwidth/bandwidth.xml
18 TESTS += bandwidth/bandwidth_rl.tesh bandwidth/bandwidth_sg.tesh
19
20 noinst_PROGRAMS += \
21   bandwidth/bandwidth_maestro   \
22   bandwidth/bandwidth_sensor    \
23   bandwidth/bandwidth_simulator
24   
25 bandwidth_bandwidth_simulator_SOURCES=  bandwidth/bandwidth.c bandwidth/_bandwidth_simulator.c
26 bandwidth_bandwidth_maestro_SOURCES=    bandwidth/bandwidth.c bandwidth/_bandwidth_maestro.c
27 bandwidth_bandwidth_sensor_SOURCES=     bandwidth/bandwidth.c bandwidth/_bandwidth_sensor.c 
28
29 bandwidth_bandwidth_simulator_LDADD=    $(LDADD_SG)
30 bandwidth_bandwidth_maestro_LDADD=      $(LDADD_RL)
31 bandwidth_bandwidth_sensor_LDADD=       $(LDADD_RL)
32
33
34 # Take care of generatated sources
35 bandwidth/_bandwidth_simulator.c bandwidth/_bandwidth_sensor.c bandwidth/_bandwidth_maestro.c : bandwidth/bandwidth.c bandwidth/bandwidth.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
36         cd bandwidth; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ bandwidth $(srcdir)/../bandwidth/bandwidth.xml
37
38 ###################
39 # saturate tests #
40 ###################
41 EXTRA_DIST+=saturate/saturate.xml
42 TESTS += saturate/saturate_rl.tesh saturate/saturate_sg.tesh
43
44 noinst_PROGRAMS += \
45   saturate/saturate_maestro   \
46   saturate/saturate_sensor    \
47   saturate/saturate_simulator
48   
49 saturate_saturate_simulator_SOURCES=    saturate/saturate.c saturate/_saturate_simulator.c
50 saturate_saturate_maestro_SOURCES=      saturate/saturate.c saturate/_saturate_maestro.c
51 saturate_saturate_sensor_SOURCES=       saturate/saturate.c saturate/_saturate_sensor.c 
52
53 saturate_saturate_simulator_LDADD=      $(LDADD_SG)
54 saturate_saturate_maestro_LDADD=        $(LDADD_RL)
55 saturate_saturate_sensor_LDADD=         $(LDADD_RL)
56
57
58 # Take care of generatated sources
59 saturate/_saturate_simulator.c saturate/_saturate_sensor.c saturate/_saturate_maestro.c : saturate/saturate.c saturate/saturate.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
60         cd saturate; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ saturate $(srcdir)/../saturate/saturate.xml
61
62
63
64 #########
65 # Cruft #
66 #########
67 include $(top_srcdir)/acmacro/dist-files.mk