merge all makefiles

needs some testing

quickly tested all targets, seems to work