use autogenerated make dependencies

- write .deps files during compilation
- include .deps files in makefile