diff --git a/Makefile b/Makefile index 504bb99..79fb3bf 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,7 @@ OBJECTS = $(addprefix $(BUILDDIR)/,$(notdir $(SOURCE:.c=.o))) all: grbl.hex $(BUILDDIR)/%.o: $(SOURCEDIR)/%.c - $(COMPILE) -c $< -o $@ - @$(COMPILE) -MM $< > $(BUILDDIR)/$*.d + $(COMPILE) -MMD -MP -c $< -o $@ .S.o: $(COMPILE) -x assembler-with-cpp -c $< -o $(BUILDDIR)/$@