added .d file & added needed dependency
cleanup build rules