This commit is contained in:
2019-01-01 16:48:54 +01:00
commit ac04dfc73f
9 changed files with 217 additions and 0 deletions

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
CC=avr-gcc
CFLAG= -mmcu=atmega8 -O
objects= time.o usart.o main.o ringbuffer.o
all:main.elf
%.o:%.c
$(CC) $(CFLAG) -c -o $@ $<
main.elf: $(objects)
$(CC) $(objects) $(CFLAG) -o main.elf
install: main.elf
avrdude -p m168 -c avrispmkii -U flash:w:main.elf:a