diff Makefile @ 2:288d801a47ff

Use nicer build framework.
author darius
date Sun, 11 Jul 2004 22:06:14 +0930
parents ffeab3c04e83
children ee3c9a16099e
line wrap: on
line diff
--- a/Makefile	Sun Jul 11 00:45:50 2004 +0930
+++ b/Makefile	Sun Jul 11 22:06:14 2004 +0930
@@ -1,30 +1,6 @@
-# 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
+PROG=testavr
+SRCS=1wire.c testavr.c
 
-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 $@ $>
+CFLAGS=-Os -g
 
-.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
+.include "Makefile.avr"