2012-08-12 23:24:58 +02:00
|
|
|
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
|
|
|
|
# To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
|
|
|
|
# or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
|
|
|
|
|
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
|
|
|
|
|