Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
top_srcdir is not supposed to be a relative path
[simgrid.git] / examples / amok / Makefile.am
1 # Copyright (c) 2004-2007. The SimGrid team. All right reserved.
2
3 # This file is part of the SimGrid project. This is free software:
4 # You can redistribute and/or modify it under the terms of the
5 # GNU LGPL (v2.1) licence.
6
7
8 INCLUDES= -I$(top_srcdir)/include
9 AM_CFLAGS=-g
10
11 EXTRA_DIST=
12 noinst_PROGRAMS=
13
14 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
15 TESTS=
16 XFAIL_TESTS=
17
18 LDADD_SG=$(top_builddir)/src/libsimgrid.la
19 LDADD_RL=$(top_builddir)/src/libgras.la
20
21 ###################
22 # Bandwidth tests #
23 ###################
24 EXTRA_DIST+=bandwidth/bandwidth.xml
25 if GRAS_ARCH_32_BITS
26   TESTS += bandwidth/bandwidth_rl.tesh bandwidth/bandwidth_sg_32.tesh
27 else
28   TESTS += bandwidth/bandwidth_rl.tesh bandwidth/bandwidth_sg_64.tesh
29 endif
30
31 noinst_PROGRAMS += \
32   bandwidth/bandwidth_maestro   \
33   bandwidth/bandwidth_sensor    \
34   bandwidth/bandwidth_simulator
35   
36 bandwidth_bandwidth_simulator_SOURCES=  bandwidth/bandwidth.c bandwidth/_bandwidth_simulator.c
37 bandwidth_bandwidth_maestro_SOURCES=    bandwidth/bandwidth.c bandwidth/_bandwidth_maestro.c
38 bandwidth_bandwidth_sensor_SOURCES=     bandwidth/bandwidth.c bandwidth/_bandwidth_sensor.c 
39
40 bandwidth_bandwidth_simulator_LDADD=    $(LDADD_SG)
41 bandwidth_bandwidth_maestro_LDADD=      $(LDADD_RL)
42 bandwidth_bandwidth_sensor_LDADD=       $(LDADD_RL)
43
44
45 # Take care of generatated sources
46 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@
47         cd bandwidth; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ bandwidth $(top_srcdir)/examples/amok/bandwidth/bandwidth.xml
48
49 ###################
50 # saturate tests #
51 ###################
52 EXTRA_DIST+=saturate/saturate.xml
53
54 if GRAS_ARCH_32_BITS
55   TESTS += saturate/saturate_rl.tesh saturate/saturate_sg_32.tesh
56 else
57   TESTS += saturate/saturate_rl.tesh saturate/saturate_sg_64.tesh
58 endif
59 noinst_PROGRAMS += \
60   saturate/saturate_maestro   \
61   saturate/saturate_sensor    \
62   saturate/saturate_simulator
63   
64 saturate_saturate_simulator_SOURCES=    saturate/saturate.c saturate/_saturate_simulator.c
65 saturate_saturate_maestro_SOURCES=      saturate/saturate.c saturate/_saturate_maestro.c
66 saturate_saturate_sensor_SOURCES=       saturate/saturate.c saturate/_saturate_sensor.c 
67
68 saturate_saturate_simulator_LDADD=      $(LDADD_SG)
69 saturate_saturate_maestro_LDADD=        $(LDADD_RL)
70 saturate_saturate_sensor_LDADD=         $(LDADD_RL)
71
72
73 # Take care of generatated sources
74 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@
75         cd saturate; ../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ saturate $(top_srcdir)/examples/amok/saturate/saturate.xml
76
77
78
79 #########
80 # Cruft #
81 #########
82 EXTRA_DIST+=$(TESTS)
83 include $(top_srcdir)/acmacro/dist-files.mk