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