summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 63c29ed..bf8885e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,16 @@
all: Bewegungsmelder.hex
+install: all
+ avrdude -c avrispmkII -p t24 -U flash:w:Bewegungsmelder.hex:i
+
+check:
+ avrdude -c avrispmkII -p t24 -U flash:v:Bewegungsmelder.hex:i
+
%.o: %.asm *.inc
avr-as $< -mmcu=attiny24 -o $@
%.elf: %.o
-# cat $< > $@
avr-ld -o $@ $<
%.hex: %.elf