Fix problems relating to cmm code making rules

News:
- Output dependencies of each codes for catch necessary remakings
  in "Makefile.rb".
- Add internal cmm dependencies in "Makefile.magic".