]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(tests): Add $(test-srcs).
authorUlrich Drepper <drepper@redhat.com>
Thu, 20 Mar 1997 03:37:09 +0000 (03:37 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 20 Mar 1997 03:37:09 +0000 (03:37 +0000)
Rules

diff --git a/Rules b/Rules
index 32b1753f44caa3b3fe63c8a8a3b32f5f215fdbc0..d725e80f53c2b02dafe85de01491c9c09ab55090 100644 (file)
--- a/Rules
+++ b/Rules
@@ -83,19 +83,19 @@ common-generated := $(common-generated) dummy.o dummy.c empty.c empty.o
 .PHONY: others tests
 others: $(addprefix $(objpfx),$(others) $(extra-objs))
 ifeq ($(cross-compiling),yes)
-tests: $(addprefix $(objpfx),$(tests))
+tests: $(addprefix $(objpfx),$(tests) $(test-srcs))
 else
-tests: $(tests:%=$(objpfx)%.out)
+tests: $(tests:%=$(objpfx)%.out) $(addprefix $(objpfx),$(test-srcs))
 endif
 
-ifneq "$(strip $(others) $(tests))" ""
-$(addprefix $(objpfx),$(others) $(tests)): %: %.o \
+ifneq "$(strip $(others) $(tests) $(test-srcs))" ""
+$(addprefix $(objpfx),$(others) $(tests) $(test-srcs)): %: %.o \
   $(sort $(filter $(common-objpfx)libc%,$(link-libc))) \
   $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
        $(+link)
 endif
 
-ifneq "$(strip $(tests))" ""
+ifneq "$(strip $(tests) $(test-srcs))" ""
 # These are the implicit rules for making test outputs
 # from the test programs and whatever input files are present.
 $(objpfx)%.out: %.args $(objpfx)% %.input