Improved makefile
Used source file name in addition to function name as key