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
@@ -25,6 +25,11 @@ all: @[email protected]
$(SIZE) $@
# Create hex file for programming from executable file.
@[email protected]: @PROJECT@.out
$(OBJCOPY) -O ihex @[email protected] @[email protected]
# Target: clean project.
.PHONY: clean
clean:
@@ -33,7 +38,6 @@ clean:
# Target: program project.
.PHONY: program
program: @PROJECT@.out
$(OBJCOPY) -O ihex @[email protected] @[email protected]
program: @PROJECT@.hex
dfu-programmer atmega32u2 erase; dfu-programmer atmega32u2 flash @[email protected]; dfu-programmer atmega32u2 start