adding Makefile and fix variable name typo