Mercurial > ~darius > hgwebdir.cgi > tempctrl
comparison Makefile @ 2:288d801a47ff
Use nicer build framework.
author | darius |
---|---|
date | Sun, 11 Jul 2004 22:06:14 +0930 |
parents | ffeab3c04e83 |
children | ee3c9a16099e |
comparison
equal
deleted
inserted
replaced
0:ffeab3c04e83 | 2:288d801a47ff |
---|---|
1 # Programs | 1 PROG=testavr |
2 PROG=avrdude | 2 SRCS=1wire.c testavr.c |
3 CC=avr-gcc | |
4 OBJCOPY=avr-objcopy | |
5 | 3 |
6 # Options | 4 CFLAGS=-Os -g |
7 PART=8515 | |
8 MCU=at90s${PART} | |
9 CFLAGS=-Os -g -mmcu=${MCU} -Wa,-adhlmsn=$(<:.c=.lst) -Wall | |
10 LDFLAGS= | |
11 LDADD= | |
12 RM=rm -f | |
13 | 5 |
14 all: testavr.hex | 6 .include "Makefile.avr" |
15 | |
16 testavr.hex: testavr.out | |
17 ${OBJCOPY} -j .text -j .data -j .bss -O ihex $> $@ | |
18 # ${OBJCOPY} -j .text -O ihex $> $@ | |
19 | |
20 testavr.out: testavr.o 1wire.o | |
21 ${CC} ${LDFLAGS} -g -mmcu=${MCU} -o $@ $> | |
22 | |
23 .c.o: | |
24 ${CC} ${CFLAGS} -c $> -o $@ | |
25 | |
26 clean: | |
27 ${RM} testavr.hex testavr.out testavr.o | |
28 | |
29 prog: testavr.hex | |
30 ${PROG} -U flash:w:$> -p ${PART} -c alf -E vcc,noreset -q |