Finished makefile. Its ugly but it works :)