Add .hex rule

This commit is contained in:
Michael Hayes
2013-09-02 19:08:51 +12:00
parent 3e4ff749d7
commit 87333ae5f0
57 changed files with 331 additions and 113 deletions
+6 -2
View File
@@ -43,6 +43,11 @@ tdmdemo1.out: tdmdemo1.o pio.o system.o timer.o ledmat.o pacer.o
$(SIZE) $@
# Create hex file for programming from executable file.
tdmdemo1.hex: tdmdemo1.out
$(OBJCOPY) -O ihex tdmdemo1.out tdmdemo1.hex
# Target: clean project.
.PHONY: clean
clean:
@@ -51,8 +56,7 @@ clean:
# Target: program project.
.PHONY: program
program: tdmdemo1.out
$(OBJCOPY) -O ihex tdmdemo1.out tdmdemo1.hex
program: tdmdemo1.hex
dfu-programmer atmega32u2 erase; dfu-programmer atmega32u2 flash tdmdemo1.hex; dfu-programmer atmega32u2 start