1 src = $(wildcard src/*.c)
13 CFLAGS = -Os -pedantic -Wall -mmcu=$(mcu_gcc) -DF_CPU=14745600
14 LDFLAGS = -Wl,-Map,$(bin).map -mmcu=$(mcu_gcc) -lprintf_min
20 $(CC) -o $@ $(obj) $(LDFLAGS)
23 $(OBJCOPY) -j .text -j .data -O ihex -R .eeprom $< $@
26 $(OBJCOPY) -j .text -j .data -O binary -R .eeprom $< $@
29 $(OBJCOPY) -j .eeprom --change-section-lma .eeprom=0 -O ihex $< $@
33 avrdude -c usbtiny -p $(mcu_dude) -U lfuse:w:0xe6:m -U hfuse:w:0xdf:m -U efuse:w:0xf9:m
37 avrdude -c usbtiny -p $(mcu_dude) -e -U flash:w:$(hex)
41 rm -f $(bin) $(obj) $(hex) $(eep) $(bin).map