target_triplet = @target@
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(top_srcdir)/acmacro/dist-files.mk \
- $(top_srcdir)/examples/gras/tests.mk \
- $(top_srcdir)/examples/temps-gras-stub.mk
+ $(top_srcdir)/examples/gras/tests.mk
noinst_PROGRAMS = spawn_child$(EXEEXT) spawn_father$(EXEEXT) \
spawn_simulator$(EXEEXT)
subdir = examples/gras/spawn
spawn_child_LDADD = $(top_builddir)/src/libgras.la
spawn_father_SOURCES = _spawn_father.c spawn_father.c spawn_child.c spawn_common.c
spawn_father_LDADD = $(top_builddir)/src/libgras.la
-
-# Take care of generatated sources
-NAME = spawn
-PROCESSES = child father
-CLEANFILES = _$(NAME)_simulator.c $(NAME).mk $(NAME).Makefile.local $(NAME).Makefile.remote $(NAME).deploy.sh \
- $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c)
-
-MOSTLYCLEANFILES = $(NAME).trace
+CLEANFILES = _spawn_simulator.c spawn.mk _spawn_father.c _spawn_child.c
+MOSTLYCLEANFILES = spawn.trace
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/examples/gras/tests.mk $(top_srcdir)/examples/temps-gras-stub.mk $(top_srcdir)/acmacro/dist-files.mk $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/examples/gras/tests.mk $(top_srcdir)/acmacro/dist-files.mk $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
.PHONY: test_sg_32 test_SG_64 test_rl
-$(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME).xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
- [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME).xml
+# Take care of generatated sources
+# (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@