title: How to create and run a make file for C?
body: <p>I have 3 files</p>
  
  <pre><code>hellomain.c
  hellofunc.c
  helloheader.h
  </code></pre>
  
  <p>and I am running via the GCC compiler. Usually I would type in:</p>
  
  <pre><code>gcc helloheader.h hellomain.c hellofunc.c -o results
  </code></pre>
  
  <p>And everything would run.</p>
  
  <p>How could this be converted to a makefile? I know I have to title it <code>makefile</code>. I know I have to call it by typing in <code>make</code> in the compiler. But not sure what to actually type in the makefile.</p>