title: GNU make: generate list of source files
body: <p>Is it normal to generate the list of source files (.c, .cpp etc, not headers) automatically?</p>
  
  <p>How would you do it? I am thinking to use find and sed.</p>
  
  <p>EDIT: The project is a library. All source files are inside the project directory. No unrelated source files are there. All object files are generated using the same compiler options. I am thinking to generate the list of all source files and then a dependency file for each source file following Tromey's way. It is a viable approach?</p>
  
  <p>MORE EDIT: It is a fairly large C++ library. The project is being developed. Minimising recompilation is highly desired.</p>
  
  <p>Thanks.</p>