From 9232763962e0184cc56f5e239eb88e09b55b4b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Thu, 17 Jan 2019 19:40:07 +0100 Subject: [PATCH] updated the Makefile --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)