# Makefile to assemble led1_on.asm with avra assembler # and erase Atmel flash and upload hex code to flash. # (c) by Thomas Hoehn, October 2007 PROG=led1_on.hex TTY=/dev/ttyUSB0 DEBUG=2 # 3 HASH=1 # hash mark per (one) byte UISP=$(HOME)/uC/tools/uisp/uisp-20050207/src/uisp ifdef DEBUG VERBOSE=-v=$(DEBUG) endif %.hex: %.asm avra $< all: $(PROG) clean: rm -f *.hex *.cof *.obj erase: $(UISP) $(VERBOSE) -dprog=dasa2 -dserial=$(TTY) --erase upload: erase $(UISP) $(VERBOSE) -dprog=dasa2 -dserial=$(TTY) --hash=$(HASH) --upload --verify if=$(PROG)