comparison Makefile @ 318:31199b2941f6

Add simple_ds18b20.c etc
author Matt Johnston <matt@ucc.asn.au>
date Sat, 19 May 2012 21:47:09 +0800
parents 4ef5ce596ec6
children 4838bfcb3504
comparison
equal deleted inserted replaced
317:4ef5ce596ec6 318:31199b2941f6
20 DEVICE = atmega328 20 DEVICE = atmega328
21 PROGDEVICE = atmega328p 21 PROGDEVICE = atmega328p
22 CLOCK = 2000000 22 CLOCK = 2000000
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 ds18x20.c uart_addon.c crc8.c uart.c 25 SOURCE_1WIRE = onewire.c simple_ds18b20.c crc8.c
26 SOURCE_SD = ff.c mmc.c 26 SOURCE_SD = ff.c mmc.c
27 SOURCE = main.c 27 SOURCE = main.c
28 SOURCE += $(SOURCE_1WIRE) 28 SOURCE += $(SOURCE_1WIRE)
29 #SOURCE += $(SOURCE_SD) 29 #SOURCE += $(SOURCE_SD)
30 LIBS = -lm 30 LIBS = -lm
81 81
82 fuse: 82 fuse:
83 $(AVRDUDE) $(FUSES) 83 $(AVRDUDE) $(FUSES)
84 84
85 # Xcode uses the Makefile targets "", "clean" and "install" 85 # Xcode uses the Makefile targets "", "clean" and "install"
86 install: flash fuse 86 install: flash
87 87
88 # if you use a bootloader, change the command below appropriately: 88 # if you use a bootloader, change the command below appropriately:
89 load: all 89 load: all
90 bootloadHID main.hex 90 bootloadHID main.hex
91 91