Do not execute make. Only do
g++ -lm density.c -o density
What do you see?
Ok… nothing happen. You don’t see anything. Ok.
If you execute make then the program make will look for a file makefile (under your hands) and execute the commands written in there. Please post the contents of makefile here.