Rewriting makefile

Using more conventional variable names
Using pattern based rules
XCode crap