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
@@ -70,6 +70,11 @@ space9.out: space9.o flasher.o spacey.o eeprom.o pio.o system.o timer.o display.
$(SIZE) $@
# Create hex file for programming from executable file.
space9.hex: space9.out
$(OBJCOPY) -O ihex space9.out space9.hex
# Target: clean project.
.PHONY: clean
clean:
@@ -78,8 +83,7 @@ clean:
# Target: program project.
.PHONY: program
program: space9.out
$(OBJCOPY) -O ihex space9.out space9.hex
program: space9.hex
dfu-programmer atmega32u2 erase; dfu-programmer atmega32u2 flash space9.hex; dfu-programmer atmega32u2 start