Sidebar: Re-arranged the Makefile for quicker compile

Starting fresh I now only need to compile twice instead of four times.
The main still needs the other mods before it can compile, but other dependencies have been put in a better order.