Such duplication is error-prone; if a new object file is added to the
system, we might add it to one list and forget the other. We can
eliminate the risk and simplify the makefile by using a variable.
Variables in make enable a text string to be defined
once and substituted in multiple places later. They are similar to C
macros. (See Macros.)
It is standard practice for every makefile to have a variable named
objects, OBJECTS, objs, OBJS, obj,
or OBJ that is a list of all object file names. We would
define such a variable objects with a line like this in the
makefile: