Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
refactored smpi into multiple source files.
[simgrid.git] / examples / gras / spawn / Makefile.am
1 INCLUDES= -I$(top_srcdir)/include
2
3 EXTRA_DIST=spawn.xml spawn.h
4 include $(top_srcdir)/examples/gras/tests.mk
5
6 # AUTOMAKE variable definition
7 noinst_PROGRAMS=spawn_child spawn_father spawn_simulator
8
9 spawn_simulator_SOURCES=        _spawn_simulator.c spawn_father.c spawn_child.c spawn_common.c
10 spawn_simulator_LDADD=  $(top_builddir)/src/libsimgrid.la
11
12 spawn_child_SOURCES=    _spawn_child.c                  spawn_child.c spawn_common.c
13 spawn_child_LDADD=      $(top_builddir)/src/libgras.la
14
15 spawn_father_SOURCES=   _spawn_father.c  spawn_father.c spawn_child.c spawn_common.c
16 spawn_father_LDADD=     $(top_builddir)/src/libgras.la
17
18 # Take care of generatated sources
19 # (manually since the child is not in the deployment file, so we need an extra argument to the stub generator)
20
21 _spawn_father.c _spawn_child.c _spawn_simulator.c: $(srcdir)/spawn.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
22         [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ --extra-process=child spawn $(srcdir)/spawn.xml
23
24 $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@:
25         make -C $(top_builddir)/tools/gras/ gras_stub_generator@EXEEXT@
26
27 CLEANFILES = _spawn_simulator.c spawn.mk _spawn_father.c _spawn_child.c
28 MOSTLYCLEANFILES = spawn.trace
29
30 # Cruft
31 include $(top_srcdir)/acmacro/dist-files.mk