diff options
Diffstat (limited to 'software/Makefile')
-rw-r--r-- | software/Makefile | 17 |
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 @@ | |||
1 | FLAGS=-Wall -O5 -Werror | ||
2 | FLAGS+=-mmcu=attiny85 | ||
3 | FLAGS+=-D__AVR_ATtiny85__=1 | ||
4 | # FLAGS+=-DF_CPU=120000UL | ||
5 | # FLAGS+=-DF_CPU=960000UL | ||
6 | FLAGS+=-DF_CPU=800000UL | ||
7 | FLAGS+=-I inc/int/ | ||
8 | FLAGS+=-I/usr/lib/gcc/avr/6.3.0/plugin/include/ | ||
9 | FLAGS+=-I/usr/avr/include | ||
10 | |||
11 | program: all | ||
12 | avrdude -V -B100 -p t85 -c avrisp2 -P usb -U flash:w:main.hex | ||
13 | |||
14 | all: | ||
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 | |||