Makefile
author Tero Marttila <terom@fixme.fi>
Thu, 06 May 2010 00:13:54 +0300
changeset 6 88c930373d62
parent 5 7feeaeb473b5
child 9 30c3807baac1
permissions -rw-r--r--
LCD spin\!
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