Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check return value of (v)asprintf.
[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 XFAIL_TESTS+=bandwidth/bandwidth_rl.tesh
31
32 noinst_PROGRAMS += \
33   bandwidth/bandwidth_maestro   \
34   bandwidth/bandwidth_sensor    \
35   bandwidth/bandwidth_simulator
36   
37 bandwidth_bandwidth_simulator_SOURCES=  bandwidth/bandwidth.c bandwidth/_bandwidth_simulator.c
38 bandwidth_bandwidth_maestro_SOURCES=    bandwidth/bandwidth.c bandwidth/_bandwidth_maestro.c
39 bandwidth_bandwidth_sensor_SOURCES=     bandwidth/bandwidth.c bandwidth/_bandwidth_sensor.c 
40
41 bandwidth_bandwidth_simulator_LDADD=    $(LDADD_SG)
42 bandwidth_bandwidth_maestro_LDADD=      $(LDADD_RL)
43 bandwidth_bandwidth_sensor_LDADD=       $(LDADD_RL)
44
45
46 # Take care of generatated sources
47 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@
48         cd bandwidth; $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ bandwidth $(abs_top_srcdir)/examples/amok/bandwidth/bandwidth.xml
49
50 ###################
51 # saturate tests #
52 ###################
53 EXTRA_DIST+=saturate/saturate.xml
54
55 if GRAS_ARCH_32_BITS
56   TESTS       += saturate/saturate_rl.tesh saturate/saturate_sg_32.tesh
57 else
58   TESTS       += saturate/saturate_rl.tesh saturate/saturate_sg_64.tesh
59   XFAIL_TESTS += saturate/saturate_sg_64.tesh
60 endif
61 XFAIL_TESTS += saturate/saturate_rl.tesh 
62
63
64 noinst_PROGRAMS += \
65   saturate/saturate_maestro   \
66   saturate/saturate_sensor    \
67   saturate/saturate_simulator
68   
69 saturate_saturate_simulator_SOURCES=    saturate/saturate.c saturate/_saturate_simulator.c
70 saturate_saturate_maestro_SOURCES=      saturate/saturate.c saturate/_saturate_maestro.c
71 saturate_saturate_sensor_SOURCES=       saturate/saturate.c saturate/_saturate_sensor.c 
72
73 saturate_saturate_simulator_LDADD=      $(LDADD_SG)
74 saturate_saturate_maestro_LDADD=        $(LDADD_RL)
75 saturate_saturate_sensor_LDADD=         $(LDADD_RL)
76
77
78 # Take care of generatated sources
79 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@
80         cd saturate; $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ saturate $(abs_top_srcdir)/examples/amok/saturate/saturate.xml
81
82
83
84 #########
85 # Cruft #
86 #########
87 EXTRA_DIST+=$(TESTS)
88 include $(top_srcdir)/acmacro/dist-files.mk