title: How to compile a C program with make on Mac OS X Terminal
body: <p>I recently bought a <a href="https://en.wikipedia.org/wiki/MacBook_Pro" rel="nofollow noreferrer">MacBook Pro</a> and I wanted to do some coding in C with the terminal.</p>
  <p>I'm able to compile the code with this command:</p>
  <pre class="lang-none prettyprint-override"><code>gcc filename.c –o filename
  </code></pre>
  <p>But I want to compile it with the <em>make</em> command, because I know it is best practice and I want to follow best practice.</p>
  <pre class="lang-none prettyprint-override"><code>make filename cc filename.c -o filename
  </code></pre>
  <p>This command is giving me the following output:</p>
  <pre class="lang-none prettyprint-override"><code>make: Nothing to be done for `ex01'.
  make: *** No rule to make target `cc'.  Stop.
  </code></pre>
  <p>Note that I have installed <a href="https://en.wikipedia.org/wiki/Xcode" rel="nofollow noreferrer">Xcode</a> and Xcode developer command-line tools and in the folder <strong>/usr/bin</strong> I see the <strong>make</strong> and <strong>makefile</strong> properties.</p>
  <p>What should I do to be able to compile with a makefile and a <em>cc</em> argument?</p>