summaryrefslogtreecommitdiffstats
path: root/sw-avr/rom-loader/makefile
blob: e68174fc16235c8a6880dec912482a862422e144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 $@