aboutsummaryrefslogtreecommitdiff
path: root/software/Makefile
diff options
context:
space:
mode:
authorMax Christian Pohle2017-06-05 16:24:20 +0200
committerMax Christian Pohle2017-06-05 16:24:20 +0200
commitacf1faceeeb6461bb3c8c8266507151193f649b1 (patch)
tree89623374c3ba4a9288d82f51505374ac4ad24d25 /software/Makefile
parent255dcc3f40ed28aeb3da883c34547ffa781dc749 (diff)
parente2b37ffacd2b3e76fd849fc046466568d5ac0779 (diff)
downloadbinwatch-mini-acf1faceeeb6461bb3c8c8266507151193f649b1.tar.bz2
binwatch-mini-acf1faceeeb6461bb3c8c8266507151193f649b1.zip
Add 'software/' from commit 'e2b37ffacd2b3e76fd849fc046466568d5ac0779'
git-subtree-dir: software git-subtree-mainline: 255dcc3f40ed28aeb3da883c34547ffa781dc749 git-subtree-split: e2b37ffacd2b3e76fd849fc046466568d5ac0779
Diffstat (limited to 'software/Makefile')
-rw-r--r--software/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/software/Makefile b/software/Makefile
new file mode 100644
index 0000000..e81f5a1
--- /dev/null
+++ b/software/Makefile
@@ -0,0 +1,17 @@
1FLAGS=-Wall -O5 -Werror
2FLAGS+=-mmcu=attiny85
3FLAGS+=-D__AVR_ATtiny85__=1
4# FLAGS+=-DF_CPU=120000UL
5# FLAGS+=-DF_CPU=960000UL
6FLAGS+=-DF_CPU=800000UL
7FLAGS+=-I inc/int/
8FLAGS+=-I/usr/lib/gcc/avr/6.3.0/plugin/include/
9FLAGS+=-I/usr/avr/include
10
11program: all
12 avrdude -V -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex
13
14all:
15 avr-gcc $(FLAGS) -o main.elf main.c inc/int/dcf77.c
16 avr-objcopy -j .text -j .data -O ihex main.elf main.hex
17
..