avrinput/Makefile
2019-01-01 16:48:54 +01:00

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