test_default = test -x $(PERF)/perf
 test = $(if $(test_$1),$(test_$1),$(test_default))
 
-test_default_O = test -x $$TMP/perf
+test_default_O = test -x $$TMP_O/perf
 test_O = $(if $(test_$1),$(test_$1),$(test_default_O))
 
 all:
 
 $(run_O):
        $(call clean)
-       @TMP=$$(mktemp -d); \
-       cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP"; \
+       @TMP_O=$$(mktemp -d); \
+       cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP_O"; \
        echo "- $@: $$cmd" && echo $$cmd > $@ && \
        ( eval $$cmd ) >> $@ 2>&1 && \
        echo "  test: $(call test_O,$@)"; \
        $(call test_O,$@) && \
        rm -f $@ && \
-       rm -rf $$TMP
+       rm -rf $$TMP_O
 
 all: $(run) $(run_O)
        @echo OK