subdir-object support

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>