summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 $< $@