summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8df710b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+
+default:
+ # compile for attiny86 with warnings, optimizations, and 1 MHz clock frequency
+ avr-gcc -Wall -Os -DF_CPU=1000000 -mmcu=attiny85 -o hello.o hello.c
+ avr-objcopy -j .text -j .data -O ihex hello.o hello.hex
+ avrdude -c usbasp -p t85 -U flash:w:hello.hex:i
+
+clean: /dev/null
+ rm -f hello.o hello.hex