comparison 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
comparison
equal deleted inserted replaced
35:fed32b382de2 36:e40e919721b0
1 # 1 #
2 # $Id$ 2 # $Id$
3 # 3 #
4 4
5 PROG= testavr 5 PROG= testavr
6 SRCS= 1wire.c testavr.c usb.c 6 SRCS= 1wire.c testavr.c
7 .if defined(WITHUSB)
8 SRCS+= usb.c
9 CFLAGS+=-DWITHUSB
10 .endif
7 11
8 MCU= atmega32 12 MCU= atmega32
9 PART= m32 13 PART= m32
10 CFLAGS+=-O2 -g -Wall -Wunreachable-code 14 CFLAGS+=-O2 -Wall -gdwarf-2
15 #CFLAGS+=-Wunreachable-code
11 CFLAGS+=-DF_CPU=16000000 16 CFLAGS+=-DF_CPU=16000000
12 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra 17 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra
18
13 .include "Makefile.avr" 19 .include "Makefile.avr"