Mercurial > ~darius > hgwebdir.cgi > avr
annotate Makefile @ 36:e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
it.
author | darius |
---|---|
date | Tue, 23 Oct 2007 10:55:51 +0930 |
parents | 2b0ed085b95b |
children | 599d013ce3f2 |
rev | line source |
---|---|
14 | 1 # |
2 # $Id$ | |
3 # | |
0 | 4 |
14 | 5 PROG= testavr |
36
e40e919721b0
Conditionalise USB support, use DWARF debugging as AVR studio groks
darius
parents:
24
diff
changeset
|
6 SRCS= 1wire.c testavr.c |
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 |
2 | 19 .include "Makefile.avr" |