diff --git a/Makefile b/Makefile index f2ff63b..236bab5 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,20 @@ CC=avr-gcc -CFLAG= -mmcu=atmega8 -O +CFLAG= -g -mmcu=atmega168 -O -objects= time.o usart.o main.o ringbuffer.o +objects= time.o usart.o main.o ringbuffer.o configuration.o analogin.o all:main.elf %.o:%.c $(CC) $(CFLAG) -c -o $@ $< +%.s:%.c + $(CC) $(CFLAG) -S -o $@ $< main.elf: $(objects) $(CC) $(objects) $(CFLAG) -o main.elf install: main.elf avrdude -p m168 -c avrispmkii -U flash:w:main.elf:a + +clean: + -rm $(objects)