diff --git a/Makefile.include b/Makefile.include index e23947a37..1cf2476c7 100644 --- a/Makefile.include +++ b/Makefile.include @@ -67,6 +67,10 @@ $(ISR): $(ISR:.o=.c) %.dis: %.elf $(OBJDUMP) -SD $< > $@ +%.o: %.c + $(CC) $(CFLAGS) $(THUMB_FLAGS) -MMD -c -o $@ $< + @$(FINALIZE_DEPENDENCY) + $(OBJDIR)/%.s: %.S $(CPP) $(AFLAGS) -o $@ $< $(OBJDIR)/%.o: %.S