comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:93d4ddff7dd0
1 PROG= sprink
2 SRCS= sprink.c cons.c ds1307.c 1wire.c
3
4 TPREFIX= /usr/local/CrossPack-AVR/bin
5
6 # Should be 324A but that doesn't work (broken avr-gcc?)
7 PART=324p
8 PROGPART=m324p
9 MCU=atmega${PART}
10
11 # Clock frequency
12 CFLAGS+=-DF_CPU=8000000
13
14 CFLAGS+=--param inline-call-cost=2
15
16 # Enable optimisation & debugging
17 CFLAGS+=-Os -Wall -g
18 #CFLAGS+=-Wunreachable-code
19 #CFLAGS+= -mcall-prologues -frename-registers -fstrict-aliasing -fnew-ra
20
21 #CFLAGS+=-DOW_DEBUG
22
23 # Use minimal printf
24 #LDFLAGS+=-Wl,-u,vfprintf -lprintf_min
25
26 # Allow linker relaxation - optimise after linking
27 #LDFLAGS+=-Wl,-relax
28
29 #PROGTYPE=dragon_isp
30 #PROGPORT=usb
31
32 PROGTYPE=buspirate
33 PROGPORT=/dev/cu.usbserial-BP1
34
35 # Holds cons, ds1307 & 1wire
36 LIBDIR= ../avr-lib
37 CFLAGS+=-I${LIBDIR} -I.
38 .PATH: ${LIBDIR}
39
40 .include "${LIBDIR}/Makefile.avr"