Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check return value of (v)asprintf.
[simgrid.git] / examples / gras / synchro / 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 -I$(top_srcdir)/src/include
9
10 EXTRA_DIST=synchro.xml
11 include $(top_srcdir)/examples/gras/tests.mk
12
13 # AUTOMAKE variable definition
14 noinst_PROGRAMS=synchro_philosopher synchro_simulator
15
16 synchro_simulator_SOURCES=      _synchro_simulator.c philosopher.c
17 synchro_simulator_LDADD=        $(top_builddir)/src/libsimgrid.la
18
19 synchro_philosopher_SOURCES=    _synchro_philosopher.c  philosopher.c
20 synchro_philosopher_LDADD=      $(top_builddir)/src/libgras.la
21
22 # Take care of generatated sources
23 # (manually since the child is not in the deployment file, so we need an extra argument to the stub generator)
24
25 _synchro_simulator.c _synchro_philosopher.c: $(srcdir)/synchro.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
26         [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ synchro $(srcdir)/synchro.xml
27
28 $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@:
29         make -C $(top_builddir)/tools/gras/ gras_stub_generator@EXEEXT@
30
31 CLEANFILES = _synchro_simulator.c synchro.mk _synchro_philosopher.c
32 MOSTLYCLEANFILES = synchro.trace
33
34 # Cruft
35 include $(top_srcdir)/acmacro/dist-files.mk