Mercurial > ~darius > hgwebdir.cgi > sprink
view Makefile @ 3:e75ecd162da3
Add watering logic ressurected from 2013.
Handles basic "water all regions for X minutes in X minutes time"
Tolerates power failures.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 27 Jan 2015 23:40:01 +1030 |
parents | be930b34fcd3 |
children | 951277329ee6 |
line wrap: on
line source
PROG= sprink SRCS= sprink.c cons.c ds1307.c 1wire.c water.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"