From 8fc1bee546c01b2b6975e4cb07be70cc531aa754 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 12 Apr 2013 15:01:44 +0530 Subject: Move bench target to benchtests The bench target will only be used within the benchtests directory. --- Rules | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'Rules') diff --git a/Rules b/Rules index a75d25b057..86a052014d 100644 --- a/Rules +++ b/Rules @@ -189,36 +189,6 @@ $(objpfx)%.out: /dev/null $(objpfx)% # Make it 2nd arg for canned sequence. endif # tests -# Build and run benchmark programs. -binaries-bench := $(addprefix $(objpfx)bench-,$(bench)) - -run-bench = $(test-wrapper-env) \ - GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ - $($*-ENV) $(rtld-prefix) $${run} - -bench: $(binaries-bench) - for run in $^; do \ - echo "Running $${run}"; \ - $(run-bench) >> $(objpfx)bench.out-tmp; \ - done; \ - if [ -f $(objpfx)bench.out ]; then \ - mv -f $(objpfx)bench.out $(objpfx)bench.out.old; \ - fi; \ - mv -f $(objpfx)bench.out-tmp $(objpfx)bench.out - -$(binaries-bench): %: %.o \ - $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \ - $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit) - $(+link) - -$(objpfx)bench-%.c: %-inputs bench-skeleton.c - { if [ -n "$($*-INCLUDE)" ]; then \ - cat $($*-INCLUDE); \ - fi; \ - $(..)scripts/bench.pl $(patsubst %-inputs,%,$<) \ - $($*-ITER) $($*-ARGLIST) $($*-RET); } > $@-tmp - mv -f $@-tmp $@ - .PHONY: distclean realclean subdir_distclean subdir_realclean \ subdir_clean subdir_mostlyclean subdir_testclean -- cgit 1.4.1