diff --git a/src/Makefile b/src/Makefile index 9518942b2b67bfbd2cbdaa4d45a4133438483cfb..a4c3c4fdbaea6992f150d85f495c2becd328008b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -708,7 +708,7 @@ endif endif define deps_rule += - $(CC) $(CFLAGS) -M -MF $@ -MT $(OBJDIR)/$< $< + $(CC) $(CFLAGS) -M -MF $@ -MT $(OBJDIR)/$(<:.c=.o) $< endef $(DEPDIR)/%.d: %.c