improviz

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

Makefile (356B)


      1 all: firmware.o firmware.hex
      2 .PHONY: flash clean
      3 firmware.o: firmware.c
      4 	avr-gcc -Wall -g3 -gdwarf-2 -mmcu="atmega328p" -Os firmware.c -o firmware.o
      5 firmware.hex: firmware.o
      6 	avr-objcopy -j .text -j .data -O ihex firmware.o firmware.hex
      7 clean:
      8 	rm firmware.hex firmware.o
      9 flash:
     10 	avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -U flash:w:firmware.hex:i
     11