--- a/Makefile Sat May 08 15:13:45 2010 +0300
+++ b/Makefile Sat May 08 16:00:18 2010 +0300
@@ -4,20 +4,23 @@
AD_PART = m328p
AD_PROG = arduino
AD_BAUD = 57600
-AD_PORT = /dev/ttyUSB1
+AD_PORT = /dev/ttyUSB0
AD = avrdude
ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT)
-PROG = console
-
-all: $(PROG).s.hex
+PROG = led7seg
-%.s.hex: %.s
+led7seg.hex: spi.inc led7seg.inc adc.inc delay.inc
+
+all: $(PROG).hex
+
+%.hex: %.s
$(AS) $(ASFLAGS) $<
+ mv $<.hex $@
-upload: $(PROG).s.hex
- $(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex
+upload: $(PROG).hex
+ $(AD) $(ADFLAGS) -U flash:w:$<
SERIAL_BAUD = 9600
SERIAL_FLOW = n