From: Dobrica Pavlinusic Date: Sat, 15 Oct 2016 15:57:25 +0000 (+0200) Subject: build using make X-Git-Url: http://git.rot13.org/?p=Arduino-Nano-VA-meter;a=commitdiff_plain;h=b6536024cb302ae33a03d4ee3c719998454b64de;hp=f3baf83eaef905a49236de14fe9cc572cbea3700 build using make --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..04c71c3 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +all: + avr-gcc -mmcu=atmega328p -Wall -Os -o main.elf main.c -w + avr-objcopy -j .text -j .data -O ihex main.elf main.hex + +flash: + avrdude -c usbtiny -p m328p -U flash:w:"main.hex":a