From b6536024cb302ae33a03d4ee3c719998454b64de Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sat, 15 Oct 2016 17:57:25 +0200 Subject: [PATCH 1/1] build using make --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Makefile 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 -- 2.20.1