diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..452e05e --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +MCU = atmega88 + +all: sanduhr.hex + +sanduhr.elf: main.c + avr-gcc -std=gnu99 -mmcu=$(MCU) -Os -o $@ $< + +sanduhr.hex: sanduhr.elf + avr-objcopy -O ihex -R .eeprom $< $@ + +program: sanduhr.hex + avrdude -p m88 -c avrispmkII -U flash:w:sanduhr.hex -v -P usb |