comparison Makefile @ 1:be930b34fcd3

Make it compile, no testing yet.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 26 Jan 2015 23:04:09 +1030
parents 93d4ddff7dd0
children 951277329ee6
comparison
equal deleted inserted replaced
0:93d4ddff7dd0 1:be930b34fcd3
1 PROG= sprink 1 PROG= sprink
2 SRCS= sprink.c cons.c ds1307.c 1wire.c 2 SRCS= sprink.c cons.c ds1307.c 1wire.c water.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
8 PROGPART=m324p 8 PROGPART=m324p
9 MCU=atmega${PART} 9 MCU=atmega${PART}
10 10
11 # Clock frequency 11 # Clock frequency
12 CFLAGS+=-DF_CPU=8000000 12 CFLAGS+=-DF_CPU=8000000
13 13
14 CFLAGS+=--param inline-call-cost=2 14 #CFLAGS+=--param inline-call-cost=2
15 15
16 # Enable optimisation & debugging 16 # Enable optimisation & debugging
17 CFLAGS+=-Os -Wall -g 17 CFLAGS+=-Os -Wall -g
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
24 #LDFLAGS+=-Wl,-u,vfprintf -lprintf_min 24 #LDFLAGS+=-Wl,-u,vfprintf -lprintf_min
25 25
26 # Allow linker relaxation - optimise after linking 26 # Allow linker relaxation - optimise after linking
27 #LDFLAGS+=-Wl,-relax 27 #LDFLAGS+=-Wl,-relax
28 28
29 #PROGTYPE=dragon_isp 29 PROGTYPE=dragon_isp
30 #PROGPORT=usb 30 PROGPORT=usb
31 31
32 PROGTYPE=buspirate 32 #PROGTYPE=buspirate
33 PROGPORT=/dev/cu.usbserial-BP1 33 #PROGPORT=/dev/cu.usbserial-BP1
34 34
35 # Holds cons, ds1307 & 1wire 35 # Holds cons, ds1307 & 1wire
36 LIBDIR= ../avr-lib 36 LIBDIR= ../avr-lib
37 CFLAGS+=-I${LIBDIR} -I. 37 CFLAGS+=-I${LIBDIR} -I.
38 .PATH: ${LIBDIR} 38 .PATH: ${LIBDIR}