title: How to create proper makefile
body: <p>I have problem with my makefile. Tree of my project looks as follow:</p>
  
  <ul>
  <li>makefile/ makefile</li>
  <li>source/ main.cpp</li>
  <li>includes/ first.hpp,</li>
  </ul>
  
  <p>and i have following makefile:</p>
  
  <pre><code>program.o: main.o
  
        g++ -o program main.o
  
  main.o: /home/project/source/main.cpp, /home/project/include/first.hpp
  
        g++ -c /home/project/source/main.cpp /home/project/include/first.hpp
  </code></pre>
  
  <p>How i can create makefile without paths? I mean something like this:</p>
  
  <pre><code>program.o: main.o
  
         g++ -o program main.o
  
  main.o: main.cpp, first.hpp
  
       g++ -c main.cpp first.hpp
  </code></pre>