diff options
author | Erich Eckner <git@eckner.net> | 2017-04-08 17:13:36 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-04-08 17:13:36 +0200 |
commit | ffe81b4aa631ae2a32da19cb4ba64cc187b2c036 (patch) | |
tree | 5eb4e23800e75f96b59997bd0d56b4ab2d742afe /Makefile | |
parent | b7f1b8b54e86f12172ca66e4b64ed34694c558fd (diff) | |
download | Fernbedienung-avr-master.tar.xz |
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..7c6c1e7 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ + +all: Fernbedienung.hex + +install: all + avrdude -c avrispmkII -p t24 -U flash:w:Fernbedienung.hex:i + +check: + avrdude -c avrispmkII -p t24 -U flash:v:Fernbedienung.hex:i + +%.o: %.asm *.inc + avr-as $< -mmcu=attiny24 -o $@ + +%.elf: %.o + avr-ld -o $@ $< + +%.hex: %.elf + avr-objcopy --output-target=ihex $< $@ |