diff options
Diffstat (limited to 'Makerules')
-rw-r--r-- | Makerules | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -426,9 +426,15 @@ extra-libs-left := $(extra-libs) include $(patsubst %,$(..)extra-lib.mk,$(extra-libs)) endif +ifeq ($(build-programs),yes) +depfiles := $(strip $(sources:.c=.d) \ $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \ $(addsuffix .d,$(others) $(tests) $(test-srcs))) +else ++depfiles := $(strip $(sources:.c=.d) \ + $(patsubst %.o,%.d,$(filter %.o,$(extra-objs:.so=.o))) \ + $(addsuffix .d,$(tests) $(test-srcs))) +endif +depfiles := $(addprefix $(objpfx),\ $(filter-out $(addsuffix .d,$(omit-deps)),\ $(+depfiles))) |