This is a very simple C++ Makefile project that can be used as a template.
make
/make all
: Builds all.cpp
files and compiles a binary to./output
.make run
: Builds withmake all
and runs the binary located int./output
.make clean
: Removes thebuild
directory where the binary and all the.o
(object files) are located.