Mercurial > ~darius > hgwebdir.cgi > avr
diff Makefile @ 0:ffeab3c04e83
Initial revision
author | darius |
---|---|
date | Sun, 11 Jul 2004 00:45:50 +0930 |
parents | |
children | 288d801a47ff |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sun Jul 11 00:45:50 2004 +0930 @@ -0,0 +1,30 @@ +# Programs +PROG=avrdude +CC=avr-gcc +OBJCOPY=avr-objcopy + +# Options +PART=8515 +MCU=at90s${PART} +CFLAGS=-Os -g -mmcu=${MCU} -Wa,-adhlmsn=$(<:.c=.lst) -Wall +LDFLAGS= +LDADD= +RM=rm -f + +all: testavr.hex + +testavr.hex: testavr.out + ${OBJCOPY} -j .text -j .data -j .bss -O ihex $> $@ +# ${OBJCOPY} -j .text -O ihex $> $@ + +testavr.out: testavr.o 1wire.o + ${CC} ${LDFLAGS} -g -mmcu=${MCU} -o $@ $> + +.c.o: + ${CC} ${CFLAGS} -c $> -o $@ + +clean: + ${RM} testavr.hex testavr.out testavr.o + +prog: testavr.hex + ${PROG} -U flash:w:$> -p ${PART} -c alf -E vcc,noreset -q