Revert "Adding smc.mk and fixing main.c"

This reverts commit bb5530069f5249044150f8ee6bc533e8d810cbb9.

Work should never be committed straight into merge-pool.