Mercurial > templog
diff Makefile @ 10:1bfe28c348dd
reading DS18B20 works
add some linker optimisations
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 19 May 2012 17:10:13 +0800 |
parents | 7da9a3f23592 |
children | 06bedbe8540d |
line wrap: on
line diff
--- a/Makefile Fri May 18 23:57:08 2012 +0800 +++ b/Makefile Sat May 19 17:10:13 2012 +0800 @@ -21,8 +21,8 @@ PROGDEVICE = atmega328p CLOCK = 2000000 PROGRAMMER = #-c stk500v2 -P avrdoper -PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -OBJS_1WIRE = onewire.o ds18x20.o uart_addon.o crc8.o +PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2 +OBJS_1WIRE = onewire.o ds18x20.o uart_addon.o crc8.o uart.o OBJS_SD = ff.o mmc.o OBJECTS = main.o OBJECTS += $(OBJS_1WIRE) @@ -58,7 +58,7 @@ # Tune the lines below only if you know what you are doing: AVRDUDE = avrdude $(PROGRAMMER) -COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -mcall-prologues +COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -mcall-prologues -fdata-sections -ffunction-sections -Wl,--print-gc-sections -Wl,--gc-sections -Wl,--relax # symbolic targets: all: main.hex