view Makefile @ 43:51e7458d2e76

Init lastdata same as lastheat/coolon/off otherwise we won't handle thing properly early on (ie if now < lastdata/lastheat/coolon/off)
author darius@inchoate.localdomain
date Sun, 06 Jul 2008 22:42:32 +0930
parents 5898fba6593c
children 50fca9562310
line wrap: on
line source

#
# $Id$
#

PROG=	testavr
SRCS=	1wire.c cons.c tempctrl.c testavr.c
.if defined(WITHUSB)
SRCS+=	usb.c
CFLAGS+=-DWITHUSB
.endif

MCU=	atmega32
PART=	m32
CFLAGS+=-O2 -Wall -gdwarf-2
#CFLAGS+=-Wunreachable-code
CFLAGS+=-DF_CPU=16000000
#CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra

#CFLAGS+=-DOW_DEBUG

#PROGTYPE=alf
#PROGPORT=/dev/ppi0
PROGTYPE=dragon_jtag
PROGPORT=usb
PROGOPTS=-p ${PART} -c ${PROGTYPE} -E vcc,noreset -q -P ${PROGPORT}

.include "Makefile.avr"