summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-04-08 17:13:36 +0200
committerErich Eckner <git@eckner.net>2017-04-08 17:13:36 +0200
commitffe81b4aa631ae2a32da19cb4ba64cc187b2c036 (patch)
tree5eb4e23800e75f96b59997bd0d56b4ab2d742afe /Makefile
parentb7f1b8b54e86f12172ca66e4b64ed34694c558fd (diff)
downloadFernbedienung-avr-ffe81b4aa631ae2a32da19cb4ba64cc187b2c036.tar.xz
compiliert jetztHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
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 $< $@