title: gmake compile all files in a directory
body: <p>we have some C++ code that we need to create a make file in. Each .h and .C pair create an object and then some objects are linked together to form a executable. Pretty standard stuff.</p>
  
  <p>This non-gnu make command just builds all the files into object in a directory </p>
  
  <pre><code>%.o:%.C
      $(CC) $(CPFLAGS)  -c  $&lt;
  </code></pre>
  
  <p>What this does is for each %.C file (ie every .C file) build a corresponding .o file. </p>
  
  <p>Does anybody know how to do this with gmake?</p>
  
  <p>Cheers</p>
  
  <p>Mark</p>