title: compile specific source file in Linux coreutils package
body: <p>I need to compile a specific version of cp (copy) and mv (move) utility from the Linux coreutils source file. Instead of compiling the whole package with:</p>
  
  <pre><code>./configure
  make
  </code></pre>
  
  <p>which takes ages, how can I only compile cp (./src/cp.c) and mv (./src/mv.c)?</p>
  
  <p>I tried to remove irrelevant c files but cp.c and mv.c have too many dependencies to trace... and I realise this is a stupid way to simplify my problem. There must be an one-liner or some thing that tells make or gcc to only compile cp and mv!</p>
  
  <p>Sample source code to work with: <a href="http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz" rel="noreferrer">http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz</a></p>
  
  <p>Thanks in advance!</p>