Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidating some GRAS tests for 64bit architectures
[simgrid.git] / examples / gras / spawn / Makefile.am
index 7b188a8..a5c8735 100644 (file)
@@ -1,3 +1,10 @@
+# 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
 
 EXTRA_DIST=spawn.xml spawn.h
@@ -16,9 +23,16 @@ spawn_father_SOURCES=        _spawn_father.c  spawn_father.c spawn_child.c spawn_common
 spawn_father_LDADD=    $(top_builddir)/src/libgras.la
 
 # Take care of generatated sources
-NAME=spawn
-PROCESSES= child father
-include $(top_srcdir)/examples/temps-gras-stub.mk
+# (manually since the child is not in the deployment file, so we need an extra argument to the stub generator)
+
+_spawn_father.c _spawn_child.c _spawn_simulator.c: $(srcdir)/spawn.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
+       [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ --extra-process=child spawn $(srcdir)/spawn.xml
+
+$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@:
+       make -C $(top_builddir)/tools/gras/ gras_stub_generator@EXEEXT@
+
+CLEANFILES = _spawn_simulator.c spawn.mk _spawn_father.c _spawn_child.c
+MOSTLYCLEANFILES = spawn.trace
 
 # Cruft
 include $(top_srcdir)/acmacro/dist-files.mk