From: mquinson Date: Thu, 23 Jun 2005 15:12:03 +0000 (+0000) Subject: put the parts common to each gras/amok example in one file and load it from the other... X-Git-Tag: v3.3~3962 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4e8374a5ef66cc4de33d82c21db1ddd6c1b524b3 put the parts common to each gras/amok example in one file and load it from the other places git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1393 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/temps-gras-stub.mk b/examples/temps-gras-stub.mk new file mode 100644 index 0000000000..17ed4ec2cf --- /dev/null +++ b/examples/temps-gras-stub.mk @@ -0,0 +1,15 @@ +## Generate the temp source files on need +## + +$(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@ + [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null + +../../../tools/gras/gras_stub_generator@EXEEXT@: + make -C ../../../tools/gras/ gras_stub_generator@EXEEXT@ + +## +## Cleanups +CLEANFILES = _$(NAME)_simulator.c $(NAME).Makefile.local $(NAME).Makefile.remote $(NAME).deploy.sh \ + $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) + +MOSTLYCLEANFILES = $(NAME).trace