diff --git a/Makefile b/Makefile index 47ceb0c..313d1b2 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,7 @@ CFLAGS = -g -Wall -Wstrict-prototypes $(OPTIMIZE) -mmcu=$(MCU_TARGET) $(DEFS) -s LDFLAGS = -Wl,--as-needed -Wl,--gc-sections AVRDUDE = avrdude +AVRDUDECONF = /etc/avrdude.conf ############################################################################## # # @@ -68,7 +69,7 @@ program: $(PROGRAM).hex stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT) @sleep 0.1 @stty $(PROGBAUD) raw ignbrk hup < $(PROGPORT) - $(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C/etc/avrdude.conf -U flash:w:$^ + $(AVRDUDE) -cstk500v1 -b$(PROGBAUD) -p$(MCU_TARGET) -P$(PROGPORT) -C$(AVRDUDECONF) -U flash:w:$^ stty 115200 raw ignbrk -hup -echo ixon < $(PROGPORT) clean: