From 4c6a7daa23653ef607ed3dcb8106223e6723a5c4 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Tue, 30 Oct 2018 11:43:37 +0100 Subject: Create avr project for ROM loader --- sw-avr/rom-loader/makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sw-avr/rom-loader/makefile (limited to 'sw-avr/rom-loader/makefile') diff --git a/sw-avr/rom-loader/makefile b/sw-avr/rom-loader/makefile new file mode 100644 index 0000000..e68174f --- /dev/null +++ b/sw-avr/rom-loader/makefile @@ -0,0 +1,17 @@ +CC=avr-gcc +CARGS=-Wall -mmcu=atmega328p -D__AVR_ATmega328p__ -Os -I. + +SOURCES=main.c + +.PHONY: all flash clean +all: rom-loader.bin + +flash: rom-loader.bin + avrdude -c usbasp -p atmega328p + +clean: + rm rom-loader.bin + +rom-loader.bin: $(SOURCES) + $(CC) $(CARGS) $< -o $@ + -- cgit v1.2.1