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
|
|
|
|
|
2015-12-08 17:45:13 +01:00
|
|
|
noiseplug.o: noiseplug.s
|
|
|
|
avr-gcc -Os -nostdlib -mmcu=attiny13 -o $@ -c $<
|
2012-08-11 14:15:51 +02:00
|
|
|
|
|
|
|
noiseplug.elf: noiseplug.o
|
2015-12-08 17:45:13 +01:00
|
|
|
avr-gcc -Os -nostdlib -mmcu=attiny13 -o $@ $<
|
2012-08-11 13:03:26 +02:00
|
|
|
|
|
|
|
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
|
2015-12-08 17:45:13 +01:00
|
|
|
|