play/C/attiny10-test/Makefile

13 lines
310 B
Makefile
Raw Normal View History

2024-03-26 03:03:54 +00:00
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