subdirectory support
fix object code hierarchy and Makefile gen