title: Generic `make` rule for generating object files from source files
body: <p>I have all my source files in a directory called <code>src</code> and I would like all object files to be placed in a directory <code>obj</code>. It is possible to write a generic <code>make</code> rule (that preferably also works with <code>nmake</code>) that will generate the object file corresponding to the source file and place it in the correct directory?</p>