The last sentence in the article caught my eye
[F]or C/C++ developers and students interested in learning to program in C/C++ rather than users of L
make
uses a Makefile
in the current directory to apply a set of rules to its input arguments. Make also knows some default rules so that it executes even if it doesn't find a Makefile
(or similar) file in the current directory. The rule to execute for cpp
files so happens to call gcc
on many systems.
Notice that you don't call make
with the input file names but rather with rule names which reflect the output. So calling make xyz
will strive to execute rule xyz
which by default builds a file xyz
(for example based on a source code file xyz.cpp
.