noiseplug/avr/Makefile
Joachim Fenkes fab67dc800 asm arpeggio
2012-08-11 14:32:20 +02:00

17 lines
333 B
Makefile

all: flash
noiseplug.o: noiseplug.S
avr-gcc -Os -nostdlib -mmcu=attiny9 -o $@ -c $<
noiseplug.elf: noiseplug.o
avr-gcc -Os -nostdlib -mmcu=attiny9 -o $@ $<
noiseplug.hex: noiseplug.elf
avr-objcopy -O ihex $< $@
flash: noiseplug.hex
avrdude -cavrisp2 -Pusb -pt8 -Uflash:w:$<:a
dump: noiseplug.elf
avr-objdump -Sr $< | less