Mercurial > ~darius > hgwebdir.cgi > tempctrl
annotate Makefile @ 63:4d914a1fd487
Fix printf typo from last commit.
Cast away volatile to avoid compiler warning.
author | darius@Inchoate |
---|---|
date | Thu, 30 Oct 2008 20:09:32 +1030 |
parents | 50fca9562310 |
children | e3d1f56ba0c8 |
rev | line source |
---|---|
14 | 1 # |
2 # $Id$ | |
3 # | |
0 | 4 |
14 | 5 PROG= testavr |
60
50fca9562310
Add support for reading/writing to a DS1307 over TWI/IIC.
darius@Inchoate
parents:
41
diff
changeset
|
6 SRCS= 1wire.c cons.c tempctrl.c testavr.c ds1307.c |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
7 .if defined(WITHUSB) |
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
8 SRCS+= usb.c |
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
9 CFLAGS+=-DWITHUSB |
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
10 .endif |
14 | 11 |
24 | 12 MCU= atmega32 |
13 PART= m32 | |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
14 CFLAGS+=-O2 -Wall -gdwarf-2 |
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
15 #CFLAGS+=-Wunreachable-code |
24 | 16 CFLAGS+=-DF_CPU=16000000 |
17 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra | |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
18 |
41 | 19 #CFLAGS+=-DOW_DEBUG |
20 | |
21 #PROGTYPE=alf | |
22 #PROGPORT=/dev/ppi0 | |
23 PROGTYPE=dragon_jtag | |
24 PROGPORT=usb | |
39 | 25 PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT} |
26 | |
2 | 27 .include "Makefile.avr" |