Improve make file
Adapt to new programmer and use variables for the clean target.
This commit is contained in:
parent
86ec90b202
commit
cec207984a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue