chiark / gitweb /
subdirmk: cdeps.sd.mk: Honour &CDEPS_OBJECTS
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2019 22:44:36 +0000 (22:44 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 25 Nov 2019 02:29:40 +0000 (02:29 +0000)
This makes this facility more flexible.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
cdeps.sd.mk

index 402e687..5a2bfb2 100644 (file)
@@ -17,7 +17,9 @@
 
 CDEPS_CFLAGS ?= -MD -MF $(*D)/.$(*F).d
 
-&DEPFILES += $(foreach b,$(patsubst %.o,%,$(&OBJECTS)), \
+&CDEPS_OBJECTS += $(&OBJECTS)
+
+&DEPFILES += $(foreach b,$(patsubst %.o,%,$(&CDEPS_OBJECTS)), \
                $(dir $b).$(notdir $b).d)
 -include $(&DEPFILES)