view Makefile @ 72:13f8e6eb5c01

Create a new repo for temperature control to make hacking on other things easier. Rename main file, remove USB stuff & fix makefiles, etc..
author darius@Inchoate
date Wed, 21 Jan 2009 16:37:32 +1030
parents 50fca9562310
children e3d1f56ba0c8
line wrap: on
line source

#
# $Id$
#

PROG=	testavr
SRCS=	1wire.c cons.c tempctrl.c testavr.c ds1307.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"