# HG changeset patch # User darius # Date 1193102751 -34200 # Node ID e40e919721b04b20147c83b5c7a72451241d577b # Parent fed32b382de28c54a1b16a8bedbfb6d230a3051c Conditionalise USB support, use DWARF debugging as AVR studio groks it. diff -r fed32b382de2 -r e40e919721b0 Makefile --- a/Makefile Tue Oct 23 10:54:01 2007 +0930 +++ b/Makefile Tue Oct 23 10:55:51 2007 +0930 @@ -3,11 +3,17 @@ # PROG= testavr -SRCS= 1wire.c testavr.c usb.c +SRCS= 1wire.c testavr.c +.if defined(WITHUSB) +SRCS+= usb.c +CFLAGS+=-DWITHUSB +.endif MCU= atmega32 PART= m32 -CFLAGS+=-O2 -g -Wall -Wunreachable-code +CFLAGS+=-O2 -Wall -gdwarf-2 +#CFLAGS+=-Wunreachable-code CFLAGS+=-DF_CPU=16000000 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra + .include "Makefile.avr"