add log severity, make makefiles recursively handle library dependencies, clean up makefile directories, add proper target directory