From 446b2223cc4faf4690e464aa32cc8a4d9215e7f9 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Wed, 8 Sep 2010 16:27:02 +0200 Subject: [PATCH] Makefile: add a variable for avrdude.conf, as the location of this file depends on the environment. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: