Rewrite Makefile.
Remove some duplicated files.
Remove some duplicated files.