diff Makefile @ 29:22badb6239e0

rpi: don't hardcode path don't erase on flash
author Matt Johnston <matt@ucc.asn.au>
date Thu, 27 Jun 2013 00:10:37 +0800
parents a55d7c2440fd
children 320c8cc7df5a
line wrap: on
line diff
--- a/Makefile	Mon Jun 17 00:09:52 2013 +0800
+++ b/Makefile	Thu Jun 27 00:10:37 2013 +0800
@@ -74,7 +74,7 @@
 
 AVRDUDE = avrdude $(PROGRAMMER) 
 #COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -mcall-prologues -fdata-sections -ffunction-sections  -Wl,--gc-sections -Wl,--relax -fwhole-program  -Wl,-u,vfprintf -lprintf_flt -lm
-COMPILE = /usr/local/CrossPack-AVR/bin/avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm
+COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm
 
 # symbolic targets:
 all:	main.hex
@@ -93,7 +93,7 @@
 	$(COMPILE) -S $< -o $@
 
 flash:	all
-	$(AVRDUDE) -D -U flash:w:main.hex:i
+	$(AVRDUDE) -U flash:w:main.hex:i
 
 checkprog:	
 	$(AVRDUDE) -v