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