comparison Makefile @ 2:0a6cbbb8c2b7

mostly there
author Matt Johnston <matt@ucc.asn.au>
date Mon, 03 Jun 2013 23:29:13 +0800
parents e23c1b6f6080
children 87c8d0a11906
comparison
equal deleted inserted replaced
1:e23c1b6f6080 2:0a6cbbb8c2b7
23 PROGRAMMER = #-c stk500v2 -P avrdoper 23 PROGRAMMER = #-c stk500v2 -P avrdoper
24 PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2 24 PROGRAMMER = -c stk500 -P ~/dev/stk500 -p $(PROGDEVICE) -B 2
25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c 25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c
26 SOURCE_CRYPTO = hmac-sha1.c sha1-asm.S 26 SOURCE_CRYPTO = hmac-sha1.c sha1-asm.S
27 SOURCE = main.c 27 SOURCE = main.c
28 SOURCE += (SOURCE_CRYPTO) 28 SOURCE += $(SOURCE_CRYPTO)
29 LIBS = -lm 29 LIBS = -lm
30 30
31 # default but 2mhz 31 # default but 2mhz
32 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x62:m 32 FUSES = -U hfuse:w:0xd9:m -U lfuse:w:0x62:m
33 33
56 56
57 # Tune the lines below only if you know what you are doing: 57 # Tune the lines below only if you know what you are doing:
58 58
59 AVRDUDE = avrdude $(PROGRAMMER) 59 AVRDUDE = avrdude $(PROGRAMMER)
60 #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 60 #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
61 COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm 61 COMPILE = /usr/local/CrossPack-AVR/bin/avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99 -Wl,-u,vfprintf -lprintf_flt -lm
62 62
63 # symbolic targets: 63 # symbolic targets:
64 all: main.hex 64 all: main.hex
65 65
66 .c.o: 66 .c.o: