Commit 203fc975 authored by Sebastian Neuser's avatar Sebastian Neuser
Browse files

Add make target for .bob3 file for Bobdude

parent 8850c87a
......@@ -34,8 +34,25 @@ OBJS := $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(C_FILES)))
%.program: %.hex
$(AVRDUDE) -p $(MCU) -c $(PGM_TYPE) -P $(PGM_DEV) -U flash:w:$<:i
%.bob3: %.hex
cat >$@ <<-__EOF__
<?xml version="1.0"?>
<xhex version="1.0">
<programmer type="avrispv2"/>
<device part="atmega88" erase="yes">
<segment id="flash" format="ihex">
cat $< >>$@
cat >>$@ <<-__EOF__
rm -f $(OBJS) *.o *.elf *.hex
rm -f $(OBJS) *.o *.elf *.hex *.bob3
.PRECIOUS: %.hex
.PHONY: clean
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment