16 lines
265 B
Makefile
16 lines
265 B
Makefile
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
|