title: Could someone explain this make file?
body: <p>I found this makefile on this <a href="http://mrbook.org/blog/tutorials/make/" rel="nofollow noreferrer">site</a>.  They don't explain this example, so I was wondering if anybody new what was going on.</p>
  
  <pre><code>CC=g++
  CFLAGS=-c -Wall
  LDFLAGS=
  SOURCES=main.cpp hello.cpp factorial.cpp
  OBJECTS=$(SOURCES:.cpp=.o)
  EXECUTABLE=hello
  
  all: $(SOURCES) $(EXECUTABLE)
  
  $(EXECUTABLE): $(OBJECTS) 
      $(CC) $(LDFLAGS) $(OBJECTS) -o $@
  
  .cpp.o:
      $(CC) $(CFLAGS) $&lt; -o $@
  </code></pre>