Makefile created

Created makefile, fixed the naming and missing extern specifier.