Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
21e9e320a74c379dde2b9f4471901b56b096317f
[simgrid.git] / examples / gras / timer / Makefile.am
1 INCLUDES= -I$(top_srcdir)/include
2 AM_CFLAGS=-g
3 NAME=timer
4 PROCESSES= client
5
6 TESTS= test_rl test_sg
7 EXTRA_DIST=$(NAME)_deployment.xml $(TESTS)
8
9 # AUTOMAKE variable definition
10 noinst_PROGRAMS=timer_client timer_simulator
11
12 timer_simulator_SOURCES=        _timer_simulator.c timer.c
13 timer_simulator_LDADD=  $(top_builddir)/src/libsimgrid.la
14
15 timer_client_SOURCES=   _timer_client.c timer.c
16 timer_client_LDADD=     $(top_builddir)/src/libgras.la
17
18 # cleanup temps
19 CLEANFILES = _$(NAME)_simulator.c _$(NAME)_client.c _$(NAME)_server.c \
20              $(NAME).Makefile.local $(NAME).Makefile.remote $(NAME).deploy.sh 
21
22 MOSTLYCLEANFILES = $(NAME).trace
23
24 # generate temps
25
26 $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@
27         [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null
28
29 ../../../tools/gras/gras_stub_generator@EXEEXT@:
30         make -C   ../../../tools/gras/ gras_stub_generator@EXEEXT@
31
32 include $(top_srcdir)/acmacro/dist-files.mk