title: Create a makefile for Unix
body: <p>I have only one file: main.cpp and I want to create a <code>makefile</code> in order to run it via <code>Unix</code>..
  I am trying to write a <code>makefile</code>, so in my <code>makefile</code> I wrote:</p>
  
  <pre><code>#file: makefile
  
  a.out : main.o
          g++ main.o -ansi -pedantic‬
  
  main.o : main.cpp
      g++ main.cpp -ansi -pedantic‬
  
  clean : rm main.o a.out
  </code></pre>
  
  <p>it's ok? how can I run it?</p>
  
  <pre><code>makefile
  a.out
  </code></pre>