Makefile (414B)
1 PROG=USBasp 2 MCU=attiny45 3 F_CPU=1000000 4 CC=avr-gcc 5 OBJCOPY=avr-objcopy 6 CFLAGS=-std=c99 -Wall -g -Os -mmcu=$(MCU) -DF_CPU=$(F_CPU) -I. 7 TARGET=pomodoro 8 SRCS=main.c interrupt.c music.c timer.c 9 10 build: $(SRCS) 11 $(CC) $(CFLAGS) -o $(TARGET).bin $(SRCS) 12 $(OBJCOPY) -j .text -j .data -O ihex $(TARGET).bin $(TARGET).hex 13 14 burn: build 15 avrdude -c $(PROG) -p $(MCU) -U flash:w:./$(TARGET).hex 16 17 clean: 18 rm -f *.bin *.hex *.o