comparison 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
comparison
equal deleted inserted replaced
28:735c406b4c57 29:22badb6239e0
72 72
73 # Tune the lines below only if you know what you are doing: 73 # Tune the lines below only if you know what you are doing:
74 74
75 AVRDUDE = avrdude $(PROGRAMMER) 75 AVRDUDE = avrdude $(PROGRAMMER)
76 #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 76 #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
77 COMPILE = /usr/local/CrossPack-AVR/bin/avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm 77 COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm
78 78
79 # symbolic targets: 79 # symbolic targets:
80 all: main.hex 80 all: main.hex
81 81
82 .c.o: 82 .c.o:
91 91
92 .c.s: 92 .c.s:
93 $(COMPILE) -S $< -o $@ 93 $(COMPILE) -S $< -o $@
94 94
95 flash: all 95 flash: all
96 $(AVRDUDE) -D -U flash:w:main.hex:i 96 $(AVRDUDE) -U flash:w:main.hex:i
97 97
98 checkprog: 98 checkprog:
99 $(AVRDUDE) -v 99 $(AVRDUDE) -v
100 100
101 fuse: 101 fuse: