Benchmark programs are generated using parameters from the Makefile,
so it is necessary to rebuild them whenever the parameters in the
Makefile are updated. Hence, added a dependency for the generated C
source on the Makefile so that it gets regenerated when the Makefile
is updated.
+2013-04-15 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * benchtests/Rules (bench-deps): Collect dependencies into a
+ single variable. Add Makefile to dependencies.
+ ($(objpfx)bench-%.c): Depend on bench-deps.
+
2013-04-12 Roland McGrath <roland@hack.frob.com>
Xavier Roche <roche+kml2@exalead.com>
binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
+bench-deps := bench-skeleton.c Makefile
+
run-bench = $(test-wrapper-env) \
GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
$($*-ENV) $(rtld-prefix) $${run}
$(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
$(+link)
-$(objpfx)bench-%.c: %-inputs bench-skeleton.c
+$(objpfx)bench-%.c: %-inputs $(bench-deps)
{ if [ -n "$($*-INCLUDE)" ]; then \
cat $($*-INCLUDE); \
fi; \