unify makefiles
add global makefile