noiseplug/avr/Makefile

17 lines
333 B
Makefile
Raw Normal View History

2012-08-11 13:03:26 +02:00
all: flash
2012-08-11 14:15:51 +02:00
noiseplug.o: noiseplug.S
avr-gcc -Os -nostdlib -mmcu=attiny9 -o $@ -c $<
noiseplug.elf: noiseplug.o
2012-08-11 13:03:26 +02:00
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