From a0e3f0373ddea97beeb64270db3d5dd91e1bbc0c Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Mon, 28 Jul 2014 22:55:18 +0300 Subject: Initial code --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8df710b --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ + +default: + # compile for attiny86 with warnings, optimizations, and 1 MHz clock frequency + avr-gcc -Wall -Os -DF_CPU=1000000 -mmcu=attiny85 -o hello.o hello.c + avr-objcopy -j .text -j .data -O ihex hello.o hello.hex + avrdude -c usbasp -p t85 -U flash:w:hello.hex:i + +clean: /dev/null + rm -f hello.o hello.hex -- cgit v1.3.1