Add makefile.
fix gcc warning.