Added machine main and fixed related makefile.

(★^O^★)