Makefile improvement

- root must be assigned when declared - use :=
- add autodependecy generation
- minor fixes