Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Also loop on a simple malloc and on an integer incrementation to test the precision...
[simgrid.git] / examples / gras / chrono / Makefile.am
index 973e7ef..23d946f 100644 (file)
@@ -1,6 +1,6 @@
 INCLUDES= -I$(top_srcdir)/include
 AM_CFLAGS=-g
-#TESTS= test_rl test_sg
+TESTS= test_rl test_sg
 EXTRA_DIST=chrono_deployment.xml
 
 # AUTOMAKE variable definition
@@ -14,11 +14,18 @@ chrono_multiplier_LDADD=    $(top_builddir)/src/libgras.la
 
 
 # cleanup temps
-CLEANFILES= _chrono_simulator.c _chrono_multiplier.c
+CLEANFILES = _chrono_simulator.c _chrono_multiplier.c \
+             chrono.Makefile.local chrono.Makefile.remote chrono.deploy.sh 
+
+MOSTLYCLEANFILES = chrono.trace
 
 # generate temps
 
 # A rule to generate the source file each time the deployment file changes
-_chrono_multiplier.c _chrono_simulator.c: chrono_deployment.xml $(top_srcdir)/tools/gras/gras_stub_generator
-       $(top_srcdir)/tools/gras/gras_stub_generator chrono chrono_deployment.xml >/dev/null
+_chrono_multiplier.c _chrono_simulator.c: chrono_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@
+       [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator chrono $(srcdir)/chrono_deployment.xml >/dev/null
+
+../../../tools/gras/gras_stub_generator@EXEEXT@:
+       make -C   ../../../tools/gras/ gras_stub_generator@EXEEXT@
 
+include $(top_srcdir)/acmacro/dist-files.mk