Simplified Makefile

I have made the makefile a little more programatically, so it can be easily maintained.

This makefile uses some GNU make extensions, but i guess that's an assumable dependency.