Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yeah, right. 64bits architectures produce a different output
[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 if GRAS_ARCH_32_BITS
19   TESTS += bandwidth/bandwidth_rl.tesh bandwidth/bandwidth_sg_32.tesh
20 else
21   TESTS += bandwidth/bandwidth_rl.tesh bandwidth/bandwidth_sg_64.tesh
22 endif
23
24 noinst_PROGRAMS += \
25   bandwidth/bandwidth_maestro   \
26   bandwidth/bandwidth_sensor    \
27   bandwidth/bandwidth_simulator
28   
29 bandwidth_bandwidth_simulator_SOURCES=  bandwidth/bandwidth.c bandwidth/_bandwidth_simulator.c
30 bandwidth_bandwidth_maestro_SOURCES=    bandwidth/bandwidth.c bandwidth/_bandwidth_maestro.c
31 bandwidth_bandwidth_sensor_SOURCES=     bandwidth/bandwidth.c bandwidth/_bandwidth_sensor.c 
32
33 bandwidth_bandwidth_simulator_LDADD=    $(LDADD_SG)
34 bandwidth_bandwidth_maestro_LDADD=      $(LDADD_RL)
35 bandwidth_bandwidth_sensor_LDADD=       $(LDADD_RL)
36
37
38 # Take care of generatated sources
39 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@
40         cd bandwidth; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ bandwidth $(srcdir)/../bandwidth/bandwidth.xml
41
42 ###################
43 # saturate tests #
44 ###################
45 EXTRA_DIST+=saturate/saturate.xml
46
47 if GRAS_ARCH_32_BITS
48   TESTS += saturate/saturate_rl.tesh saturate/saturate_sg_32.tesh
49 else
50   TESTS += saturate/saturate_rl.tesh saturate/saturate_sg_64.tesh
51 endif
52 noinst_PROGRAMS += \
53   saturate/saturate_maestro   \
54   saturate/saturate_sensor    \
55   saturate/saturate_simulator
56   
57 saturate_saturate_simulator_SOURCES=    saturate/saturate.c saturate/_saturate_simulator.c
58 saturate_saturate_maestro_SOURCES=      saturate/saturate.c saturate/_saturate_maestro.c
59 saturate_saturate_sensor_SOURCES=       saturate/saturate.c saturate/_saturate_sensor.c 
60
61 saturate_saturate_simulator_LDADD=      $(LDADD_SG)
62 saturate_saturate_maestro_LDADD=        $(LDADD_RL)
63 saturate_saturate_sensor_LDADD=         $(LDADD_RL)
64
65
66 # Take care of generatated sources
67 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@
68         cd saturate; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ saturate $(srcdir)/../saturate/saturate.xml
69
70
71
72 #########
73 # Cruft #
74 #########
75 include $(top_srcdir)/acmacro/dist-files.mk