title: Makefile static lib
body: <p>I have Makefile  to compile hellomake.o hellofunc.o to execute file </p>
  
  <pre><code>CC=gcc
  CFLAGS=-I.
  
  hellomake: hellomake.o hellofunc.o
       $(CC) -o hellomake hellomake.o hellofunc.o
  </code></pre>
  
  <p>What should I do to compile those files to 1   static library<code>libhellomake.a</code> file and not executed file?</p>