title: Using Makefile to link multiple files
body: <p>I'm kind of lost in the Makefile business and I'm trying to come to terms with it. I would love if someone could make it clear on an example I'm currently programming.</p>
  
  <p>I have these files:</p>
  
  <pre><code>my-bit-vector.h -&gt; a header file included in eratost.c, ppm.c
  ppm.c -&gt; a .c file which includes my-bit-vector.h and error.h
  error.h -&gt; a header file included in eratost.c, ppm.c
  error.c -&gt; a .c file which includes error.h and defines the functions in it
  erato.c -&gt; a .c file which includes my-bit-vector.h and error.h
  </code></pre>
  
  <p>I need to link these together into one executable file. How would I go about doing that via Makefile? I hope I didn't forget something. Could you please help?</p>