Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
294150c831b1e3a47fb830f40fb6229ac8861b89
[simgrid.git] / examples / gras / tokenS / Makefile.am
1 INCLUDES= -I$(top_srcdir)/include
2 TESTS= test_rl test_sg
3 EXTRA_DIST=tokenS_deployment.xml $(TESTS)
4
5 # AUTOMAKE variable definition
6 noinst_PROGRAMS=tokenS_node tokenS_simulator
7
8 tokenS_simulator_SOURCES=  _tokenS_simulator.c tokenS.c
9 tokenS_simulator_LDADD=    $(top_builddir)/src/libsimgrid.la
10
11 tokenS_node_SOURCES=        _tokenS_node.c tokenS.c
12 tokenS_node_LDADD=          $(top_builddir)/src/libgras.la
13
14 # cleanup temps
15 CLEANFILES = _tokenS_simulator.c _tokenS_node.c _tokenS_node.c \
16              tokenS.Makefile.local tokenS.Makefile.remote tokenS.deploy.sh 
17
18 MOSTLYCLEANFILES = tokenS.trace
19
20 # generate temps
21 NAME=tokenS
22 PROCESSES=node
23
24 $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@
25         [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null
26
27 ../../../tools/gras/gras_stub_generator@EXEEXT@:
28         make -C   ../../../tools/gras/ gras_stub_generator@EXEEXT@
29
30 include $(top_srcdir)/acmacro/dist-files.mk