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
@@ -46,6 +46,11 @@ led4.out: led4.o pio.o system.o timer.o led.o navswitch.o pacer.o
$(SIZE) $@
# Create hex file for programming from executable file.
led4.hex: led4.out
$(OBJCOPY) -O ihex led4.out led4.hex
# Target: clean project.
.PHONY: clean
clean:
@@ -54,8 +59,7 @@ clean:
# Target: program project.
.PHONY: program
program: led4.out
$(OBJCOPY) -O ihex led4.out led4.hex
program: led4.hex
dfu-programmer atmega32u2 erase; dfu-programmer atmega32u2 flash led4.hex; dfu-programmer atmega32u2 start
-2
View File
@@ -14,8 +14,6 @@
#define LED_RATE 40
typedef struct pen pen_t;
int main (void)
{