Instead of writing out the .c -> .o rule, use the default one, so that dependency tracking can be used.
Attach a file by drag & drop or click to upload