13 lines
310 B
Makefile
13 lines
310 B
Makefile
AVRDUDE ?= avrdude -p t10 -c atmelice_tpi
|
|
CC = avr-gcc
|
|
CFLAGS = -mmcu=attiny10 -Wall -std=c11 -Os -DF_CPU=1000000 -L$(LIBC)/avr/lib/avrtiny -B$(LIBC)/avr/lib/avrtiny
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
main.elf: main.o
|
|
$(CC) $(CFLAGS) main.o -o main.elf
|
|
|
|
flash: main.elf
|
|
$(AVRDUDE) -U flash:w:main.elf:e
|