CodeLite AVR template project with Makefile
Load it with CodeLite and then use as project template. All you have to do then is setting up processor, programmer, clock and serial baud speed in Makefile.
Makefile from https://github.com/hexagon5un/AVR-Programming/blob/master/setupProject/Makefile
make - building
make flash - flashing with avrdude
rest of commands explained in Makefile.