Makefile 629 B

123456789101112131415161718192021
  1. # This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
  2. # To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
  3. # or send a letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
  4. all: flash
  5. noiseplug.o: noiseplug.s
  6. avr-gcc -Os -nostdlib -mmcu=attiny13 -o $@ -c $<
  7. noiseplug.elf: noiseplug.o
  8. avr-gcc -Os -nostdlib -mmcu=attiny13 -o $@ $<
  9. noiseplug.hex: noiseplug.elf
  10. avr-objcopy -O ihex $< $@
  11. flash: noiseplug.hex
  12. avrdude -cavrisp2 -Pusb -pt8 -Uflash:w:$<:a
  13. dump: noiseplug.elf
  14. avr-objdump -Sr $< | less