check in assembly notes
[Chiptunes.git] / Makefile
1 .PHONY: all clean flash
2 CHIP ?= 4
3
4 all: foo.elf
5
6 foo.elf: foo.S
7 avr-gcc -Os -nostdlib -mmcu=attiny$(CHIP) -o $@ $<
8 avr-size -C --mcu=attiny$(CHIP) $@
9
10 flash: foo.elf
11 avrdude -cusbasp -Pusb -pt$(CHIP) -Uflash:w:$<:e
12
13 clean:
14 rm -f foo.elf
Imprint / Impressum