Add Makefile and make all cases pass build.