Nearly fully automated makefile creation

See "Dependency based makefiles" for instructions.

https://github.com/vitorio/jsmess/wiki/Dependency-based-makefiles