Mercurial > ~darius > hgwebdir.cgi > sprink
view Makefile @ 8:c32b5792683a
Rework code to allow multiple relays to be set per job.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 15 Feb 2015 17:47:55 +1030 |
parents | 951277329ee6 |
children |
line wrap: on
line source
PROG= sprink SRCS= sprink.c cons.c ds1307.c 1wire.c water.c splitargv.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 CFLAGS+=-Werror # 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"