automatic dependency generation did not work

This commit is contained in:
Markus Fröschle
2012-12-26 08:12:13 +00:00
parent c5106fbe91
commit 67a53b7f29
2 changed files with 6 additions and 4 deletions

View File

@@ -132,7 +132,8 @@ $(OBJDIR)/%.o:$(SRCDIR)/%.S
$(CC) -c $(CFLAGS) -Wa,--bitwise-or $(INCLUDE) $< -o $@
depend: $(ASRCS) $(CSRCS)
$(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) > depend
$(CC) $(CFLAGS) $(INCLUDE) -M $(ASRCS) $(CSRCS) | sed -e 's/^\(.*\).o:/$(OBJDIR)\/\1.o:/' > depend
ifneq (clean,$(MAKECMDGOALS))
-include depend