diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..dc800c3 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ + +all: Binaeruhr.hex + +install: all + avrdude -c avrispmkII -p t24 -U flash:w:Binaeruhr.hex:i + +check: + avrdude -c avrispmkII -p t24 -U flash:v:Binaeruhr.hex:i + +%.o: %.asm *.inc + avr-as $< -mmcu=attiny2313 -o $@ + +%.elf: %.o + avr-ld -o $@ $< + +%.hex: %.elf + avr-objcopy --output-target=ihex $< $@ |