summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-20 03:37:09 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-20 03:37:09 +0000
commitd17c16a1c00658c283d64b9c0c954f086ae9940c (patch)
tree1e1b3678843b982554ef312cd35a421215940296
parent46139b3cfb9681cb12d8ac9e7021f9c3ca312980 (diff)
downloadglibc-d17c16a1c00658c283d64b9c0c954f086ae9940c.tar.gz
glibc-d17c16a1c00658c283d64b9c0c954f086ae9940c.tar.xz
glibc-d17c16a1c00658c283d64b9c0c954f086ae9940c.zip
(tests): Add $(test-srcs).
-rw-r--r--Rules10
1 files changed, 5 insertions, 5 deletions
diff --git a/Rules b/Rules
index 32b1753f44..d725e80f53 100644
--- 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