From 859ab1b706cd1081e4cb725052c9902738c58ad8 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 31 Dec 2006 14:16:32 +0000 Subject: [PATCH] Allow a target-specific makesfile to supply a custom rule for dependency file generation in the same way it is done for all other rules. --- Makefile.include | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index fb1139956..aab7e4d02 100644 --- a/Makefile.include +++ b/Makefile.include @@ -119,12 +119,13 @@ ifndef CDEPFLAGS CDEPFLAGS = $(CFLAGS) endif +ifndef CUSTOM_RULE_C_TO_OBJECTDIR_D $(OBJECTDIR)/%.d: %.c @set -e; rm -f $@; \ $(CCDEP) -MM $(CDEPFLAGS) $< > $@.$$$$; \ sed 's,\($*\)\.o[ :]*,$(OBJECTDIR)/\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$ - +endif # The line below is needed so that GNU make does not remove the # generated file.