(+depfiles): Add depfiles for $(tests-static).
authordrepper <drepper>
Mon, 4 May 1998 12:25:52 +0000 (12:25 +0000)
committerdrepper <drepper>
Mon, 4 May 1998 12:25:52 +0000 (12:25 +0000)
Simplified.

Makerules

index 5302c94..76cbe6b 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -451,14 +451,11 @@ extra-libs-left := $(extra-libs)
 include $(patsubst %,$(..)extra-lib.mk,$(extra-libs))
 endif
 \f
++depfiles := $(sources:.c=.d) \
+            $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \
+            $(addsuffix .d,$(tests) $(test-srcs) $(tests-static))
 ifeq ($(build-programs),yes)
-+depfiles := $(strip $(sources:.c=.d) \
-                    $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \
-                    $(addsuffix .d,$(others) $(tests) $(test-srcs)))
-else
-+depfiles := $(strip $(sources:.c=.d) \
-                    $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.os=.o))) \
-                    $(addsuffix .d,$(tests) $(test-srcs)))
++depfiles += $(addsuffix .d,$(others))
 endif
 +depfiles := $(addprefix $(objpfx),\
                         $(filter-out $(addsuffix .d,$(omit-deps)),\