Mercurial > ~darius > hgwebdir.cgi > sprink
comparison Makefile @ 5:951277329ee6
Use splitargv instead of rolling our own.
Fix WDT tripping continuously on self reset (disable WDT on startup).
Pretty up startup message.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 15 Feb 2015 16:16:54 +1030 |
parents | be930b34fcd3 |
children |
comparison
equal
deleted
inserted
replaced
4:1188042ddc2f | 5:951277329ee6 |
---|---|
1 PROG= sprink | 1 PROG= sprink |
2 SRCS= sprink.c cons.c ds1307.c 1wire.c water.c | 2 SRCS= sprink.c cons.c ds1307.c 1wire.c water.c splitargv.c |
3 | 3 |
4 #TPREFIX= /usr/local/CrossPack-AVR/bin/ | 4 #TPREFIX= /usr/local/CrossPack-AVR/bin/ |
5 | 5 |
6 # Should be 324A but that doesn't work (broken avr-gcc?) | 6 # Should be 324A but that doesn't work (broken avr-gcc?) |
7 PART=324p | 7 PART=324p |
18 #CFLAGS+=-Wunreachable-code | 18 #CFLAGS+=-Wunreachable-code |
19 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra | 19 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra |
20 | 20 |
21 #CFLAGS+=-DOW_DEBUG | 21 #CFLAGS+=-DOW_DEBUG |
22 | 22 |
23 CFLAGS+=-Werror | |
23 # Use minimal printf | 24 # Use minimal printf |
24 #LDFLAGS+=-Wl,-u,vfprintf -lprintf_min | 25 #LDFLAGS+=-Wl,-u,vfprintf -lprintf_min |
25 | 26 |
26 # Allow linker relaxation - optimise after linking | 27 # Allow linker relaxation - optimise after linking |
27 #LDFLAGS+=-Wl,-relax | 28 #LDFLAGS+=-Wl,-relax |