Merge pull request #593 from poelstra/fix_makefile_deps

Fix generating header dependencies, merge with 'normal' compile, force r...
This commit is contained in:
Sonny Jeon 2015-02-13 19:01:56 -07:00
commit d36d3519ef

View File

@ -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)/$@