avrinput/Makefile

16 lines
265 B
Makefile
Raw Normal View History

2019-01-01 15:48:54 +00:00
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