Makefile
authorTero Marttila <terom@fixme.fi>
Wed, 05 May 2010 23:54:56 +0300
changeset 5 7feeaeb473b5
parent 4 b45780fbd7e8
child 6 88c930373d62
Makefile
Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Wed May 05 23:54:56 2010 +0300
@@ -0,0 +1,21 @@
+AS = avra
+ASFLAGS = 
+
+AD_PART = m328p
+AD_PROG = arduino
+AD_BAUD = 57600
+AD_PORT = /dev/ttyUSB1
+
+AD = avrdude
+ADFLAGS = -p $(AD_PART) -c $(AD_PROG) -b $(AD_BAUD) -P $(AD_PORT)
+
+PROG = led7seg
+
+all: $(PROG).s.hex
+
+%.s.hex: %.s
+	$(AS) $(ASFLAGS) $<
+
+upload: $(PROG).s.hex
+	$(AD) $(ADFLAGS) -U flash:w:$(PROG).s.hex
+