summaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'Rules')
-rw-r--r--Rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rules b/Rules
index 0f9116b628..2353cc34a0 100644
--- a/Rules
+++ b/Rules
@@ -91,8 +91,12 @@ endif
ifeq ($(cross-compiling),yes)
tests: $(addprefix $(objpfx),$(tests) $(tests-static) $(test-srcs))
else
+ifneq (($build-static),yes)
+tests: $(tests:%=$(objpfx)%.out)
+else
tests: $(tests:%=$(objpfx)%.out) $(tests-static:%=$(objpfx)%.sout)
endif
+endif
ifeq ($(build-programs),yes)
binaries-all = $(others) $(sysdep-others) $(tests) $(test-srcs)