title: how to add a library to 'make' command in c
body: <p>This is the header file and its C file: 
  <a href="http://mirror.cs50.net/library50/c/cs50-library-c-3.0/cs50.h" rel="nofollow"><code>cs50.h</code></a> and 
  <a href="http://mirror.cs50.net/library50/c/cs50-library-c-3.0/cs50.c" rel="nofollow"><code>cs50.c</code></a></p>
  
  <p>Now I use them in the <s>following</s> example <a href="http://www.paste.ubuntu.com/576370/" rel="nofollow">http://www.paste.ubuntu.com/576370/</a> — which is no longer available.</p>
  
  <p>I already put the header file in <code>/usr/bin/include</code> or something like that and when I try to compile my code using <code>gcc -o xxx xxx.c</code>, it doesn't work, so tried to fix this and the following way worked: <a href="http://www.paste.ubuntu.com/576371/" rel="nofollow">http://www.paste.ubuntu.com/576371/</a> — which is no longer available.</p>
  
  <p>Now I want to do something to make the 'make' command work as the <code>gcc</code> does.</p>
  
  <p>What do I need to do?</p>
  
  <hr>
  
  <p>The following was the old topic:</p>
  
  <blockquote>
    <p>I was using <code>gcc</code> command to
    compile C programs but after a period
    of time I got a problem. I need
    to compile a new header file and use
    it as a library.</p>
    
    <p>The header file called <code>cs50.h</code>.</p>
    
    <p>so after doing it and it's ok I can
    compile using the following</p>
  
  <pre><code>gcc -o xxx xxx.c -lcs50
  </code></pre>
    
    <p>It works but now I want to use 'make'
    command and I can't get it to work.</p>
    
    <p>It just don't compile the header file
    and library as gcc was before I edit
    it to accept the cs50 library.</p>
    
    <p>So now I want to add to the 'make'
    command the following: <code>-lcs50</code></p>
    
    <p>Can anyone help me in this please?</p>
  </blockquote>