Merge pull request #132 from hin/header_dependencies

Header dependencies
pull/1/head
Sonny Jeon 2012-11-06 06:22:51 -08:00
commit e2e794af45
2 zmienionych plików z 7 dodań i 1 usunięć

1
.gitignore vendored
Wyświetl plik

@ -2,3 +2,4 @@
*.o
*.elf
*.DS_Store
*.d

Wyświetl plik

@ -49,6 +49,7 @@ all: grbl.hex
.c.o:
$(COMPILE) -c $< -o $@
@$(COMPILE) -MM $< > $*.d
.S.o:
$(COMPILE) -x assembler-with-cpp -c $< -o $@
@ -74,7 +75,7 @@ load: all
bootloadHID grbl.hex
clean:
rm -f grbl.hex main.elf $(OBJECTS)
rm -f grbl.hex main.elf $(OBJECTS) $(OBJECTS:.o=.d)
# file targets:
main.elf: $(OBJECTS)
@ -93,3 +94,7 @@ disasm: main.elf
cpp:
$(COMPILE) -E main.c
# include generated header dependencies
-include $(OBJECTS:.o=.d)