Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
regenerate all makefiles.in with the lastest autotools
[simgrid.git] / examples / gras / mutual_exclusion / simple_token / Makefile.am
index 7940acb..a5bcc2e 100644 (file)
@@ -1,6 +1,13 @@
+# Copyright (c) 2004-2007. The SimGrid team. All right reserved.
+
+# This file is part of the SimGrid project. This is free software:
+# You can redistribute and/or modify it under the terms of the
+# GNU LGPL (v2.1) licence.
+
+
 INCLUDES= -I$(top_srcdir)/include
-TESTS= test_rl test_sg
-EXTRA_DIST=simple_token.xml $(TESTS)
+EXTRA_DIST=simple_token.xml 
+include $(top_srcdir)/examples/gras/tests.mk
 
 # AUTOMAKE variable definition
 noinst_PROGRAMS=simple_token_node simple_token_simulator
@@ -11,20 +18,10 @@ simple_token_simulator_LDADD=    $(top_builddir)/src/libsimgrid.la
 simple_token_node_SOURCES=         _simple_token_node.c simple_token.c
 simple_token_node_LDADD=           $(top_builddir)/src/libgras.la
 
-# cleanup temps
-CLEANFILES = _simple_token_simulator.c _simple_token_node.c _simple_token_node.c \
-             simple_token.Makefile.local simple_token.Makefile.remote simple_token.deploy.sh 
-
-MOSTLYCLEANFILES = simple_token.trace
-
 # generate temps
 NAME=simple_token
 PROCESSES=node
+include $(top_srcdir)/examples/temps-gras-stub.mk
 
-$(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME).xml $(top_srcdir)/tools/gras/gras_stub_generator@EXEEXT@
-       [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_srcdir)/tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME).xml >/dev/null
-
-$(top_srcdir)/tools/gras/gras_stub_generator@EXEEXT@:
-       make -C   $(top_srcdir)/tools/gras/ gras_stub_generator@EXEEXT@
-
+# Cruft
 include $(top_srcdir)/acmacro/dist-files.mk