about summary refs log tree commit diff
path: root/benchtests
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <sid@reserved-bit.com>2016-04-20 11:19:49 +0530
committerSiddhesh Poyarekar <sid@reserved-bit.com>2016-04-20 13:15:50 +0530
commitd7aea0cf06a469dac56aee445ba089d61795fbdc (patch)
treec8c30e0df69c4764a90ac754d2d91b8ea142a632 /benchtests
parentf1f9a72bdc8ff7015cb6871f4e85fcc3a1a4c248 (diff)
downloadglibc-d7aea0cf06a469dac56aee445ba089d61795fbdc.tar.gz
glibc-d7aea0cf06a469dac56aee445ba089d61795fbdc.tar.xz
glibc-d7aea0cf06a469dac56aee445ba089d61795fbdc.zip
benchtests: Clean up extra-objs
The bench-clean target would leave behind json-lib.o.  Fix up to clean
up all extra-objs registered in benchtests.
Diffstat (limited to 'benchtests')
-rw-r--r--benchtests/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index a05974ec85..779eb395d5 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -112,7 +112,9 @@ cpp-srcs-left := $(binaries-benchset:=.c) $(binaries-bench:=.c) \
 lib := nonlib
 include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
 
-extra-objs += json-lib.o
+bench-extra-objs = json-lib.o
+
+extra-objs += $(bench-extra-objs)
 
 bench-deps := bench-skeleton.c bench-timing.h Makefile
 
@@ -127,6 +129,7 @@ bench-clean:
 	rm -f $(binaries-benchset) $(addsuffix .o,$(binaries-benchset))
 	rm -f $(binaries-bench-malloc) $(addsuffix .o,$(binaries-bench-malloc))
 	rm -f $(timing-type) $(addsuffix .o,$(timing-type))
+	rm -f $(addprefix $(objpfx),$(bench-extra-objs))
 
 bench: $(timing-type) $(gen-locales) bench-build bench-set bench-func \
 	bench-malloc