title: Compile multiple file types with one rule using makefile
body: <p>Lets assume I have a following makefile:</p>
  
  <pre><code>CPPFILES := $(wildcard *.cpp)
  OBJFILES := $(CPPFILES:.cpp=.o)
  
  .PHONY: all
  all: $(OBJFILES)
  
  %.o: %.cpp
      $(CXX) -c $&lt; -o $@
  </code></pre>
  
  <p>Now I would like to add support for *.cc files.
  Is any possibility to expand line <strong>%.o: %.cpp</strong> to process both *.cpp and *.cc files in one line? I would expect something like: <strong>%.o: %.cpp %.cc</strong>.</p>
  
  <p>Many Thanks,
  Toreno</p>