run: $(PROGRAMS)
./$(RUN_PROGRAM)
-# Matching rule for compiling object files from C++ source
+# Pattern rule for compiling object files from C++ source
# There is an implicit rule for this in GNU make
# http://www.gnu.org/software/make/manual/html_node/Catalogue-of-Rules.html
-# but I redefine it here for clarity.
+# but I redefine it here for clarity. For an explanation of the
+# %.o: %.cpp
+# syntax, see
+# http://www.gnu.org/software/make/manual/html_node/Pattern-Intro.html
#
# CXX and CXXFLAGS have defaults defined by make
# http://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
%.o: %.cpp
$(CXX) $(CXXFLAGS) -c $<
-# Matching rule for compiling object files from C source
+# Pattern rule for compiling object files from C source
# The comments from the C++ rule above also apply here
%.o: %.c
$(CC) $(CFLAGS) -c $<