Fix makefiles for issue #16
tests -> test
Remove making of dynamic libraries for tests.
Rename variables and make it more common
Add phony for all makefiles and fix target naming.