Line 18 is gcc -fPIC -g -c -Wall mymemory.cpp
. Make is expecting a separator, typically :
. It's not detecting this line as a command. You mistyped the intendation: you have spaces where you should have a tab.
Good editors highlight makefile lines that begin with spaces but look like they should begin with a tab instead.