aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makerules b/Makerules
index 5302c949f2..76cbe6b1be 100644
--- a/Makerules
+++ b/Makerules
@@ -451,14 +451,11 @@ extra-libs-left := $(extra-libs)
include $(patsubst %,$(..)extra-lib.mk,$(extra-libs))
endif
++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)),\