This code is made to run on an atmega328p using the library avr-i2c-slave (https://github.com/thegouger/avr-i2c-slave.git)
I included my avrdude.conf for easy building.
On Debian you need: avrdude gcc-avr Probably a lot other stuff I forgot.
Make sure you have the correct fuses, the correct name for you AVR and then run: make sudo make program