From cec207984a95c037d7f9516d384b531ba507a63a Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 8 Sep 2021 13:59:38 +0200 Subject: [PATCH] Improve make file Adapt to new programmer and use variables for the clean target. --- firmware/src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/Makefile b/firmware/src/Makefile index 1731973..99ded03 100644 --- a/firmware/src/Makefile +++ b/firmware/src/Makefile @@ -1,7 +1,7 @@ .SUFFIXES: MCU := atmega328p -PROGRAMMER := usbtiny +PROGRAMMER := usbasp TARGET := main.hex BIN := main.elf @@ -32,7 +32,7 @@ flash: $(TARGET) size $(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -U flash:w:$<:a clean: - $(RM) main.o main.elf main.hex + $(RM) $(TARGET) $(BIN) $(OBJ) check: cppcheck main.c