summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-17 21:03:11 +0200
committerErich Eckner <git@eckner.net>2016-10-17 21:03:11 +0200
commit061c27c092b3db7fcbfcbe7d512a30031636e53b (patch)
tree7814d25608f889f2615b1ffc0a89bee1b0ba47ae /Makefile
parentf836382825ff9e1e01bc0e88eed88540c3a43354 (diff)
downloadBewegungsmelder-061c27c092b3db7fcbfcbe7d512a30031636e53b.tar.xz
compiles, but differs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..63c29ed
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+
+all: Bewegungsmelder.hex
+
+%.o: %.asm *.inc
+ avr-as $< -mmcu=attiny24 -o $@
+
+%.elf: %.o
+# cat $< > $@
+ avr-ld -o $@ $<
+
+%.hex: %.elf
+ avr-objcopy --output-target=ihex $< $@