Skip to content

Commit

Permalink
Fix generating header dependencies, merge with 'normal' compile, forc…
Browse files Browse the repository at this point in the history
…e recompile when files are removed.
  • Loading branch information
poelstra committed Feb 13, 2015
1 parent 4bdc20f commit cff926f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)/$@
Expand Down

0 comments on commit cff926f

Please sign in to comment.