Mercurial > ~darius > hgwebdir.cgi > sprink
diff Makefile @ 0:93d4ddff7dd0
Jumbo commit since I appear to have forgotten to do this before..
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Wed, 04 Jan 2012 23:19:12 +1030 |
parents | |
children | be930b34fcd3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Wed Jan 04 23:19:12 2012 +1030 @@ -0,0 +1,40 @@ +PROG= sprink +SRCS= sprink.c cons.c ds1307.c 1wire.c + +TPREFIX= /usr/local/CrossPack-AVR/bin + +# Should be 324A but that doesn't work (broken avr-gcc?) +PART=324p +PROGPART=m324p +MCU=atmega${PART} + +# Clock frequency +CFLAGS+=-DF_CPU=8000000 + +CFLAGS+=--param inline-call-cost=2 + +# Enable optimisation & debugging +CFLAGS+=-Os -Wall -g +#CFLAGS+=-Wunreachable-code +#CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra + +#CFLAGS+=-DOW_DEBUG + +# Use minimal printf +#LDFLAGS+=-Wl,-u,vfprintf -lprintf_min + +# Allow linker relaxation - optimise after linking +#LDFLAGS+=-Wl,-relax + +#PROGTYPE=dragon_isp +#PROGPORT=usb + +PROGTYPE=buspirate +PROGPORT=/dev/cu.usbserial-BP1 + +# Holds cons, ds1307 & 1wire +LIBDIR= ../avr-lib +CFLAGS+=-I${LIBDIR} -I. +.PATH: ${LIBDIR} + +.include "${LIBDIR}/Makefile.avr"