My standard cpp makefile template
MYAPP is the main application class. MYLIB is the main application lib tool class SYSLIB is the target compilation lib tool class. DEPS_FOLDER is the folder which contains MYAPP, MYLIB and SYSLIB.
make launch compilation process and build a MYAPP binary. make run execute the binary build with make clean delete the objects files (.o) cleanup delete the objects files (.o) AND binary.