title: How use a makefile with Codeblocks
body: <p>I have some problems when I create and add a makefile project with Codeblocks.
  I created a project which has 3 files: main.cpp; View.cpp; View.h.</p>
  
  <p>main.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "View.h"
  using namespace std;
  int main(int argc, char** argv) {
      View view;
      view.box();
  }
  </code></pre>
  
  <p>View.cpp:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "View.h"
  
  using namespace std;
  void View::box()
  {
      int i=3;
  
      switch(i)
      {
          case 1:
  
              break;
          case 2:
  
              break;
          case 3:
              break;
      }
      cout&lt;&lt;"AAAA";
  
  
  };
  </code></pre>
  
  <p>View.h:</p>
  
  <pre><code>#ifndef VIEW_H_INCLUDED
  #define VIEW_H_INCLUDED
  
  class View
  {
  //// ****************************
  
  //// ---------------------------
  
  
  //// ---------------------------
  
  public :
  
  void box();
  
  
  //// ****************************
  };
  
  #endif
  </code></pre>
  
  <p>And Makefile:</p>
  
  <pre><code>all :   lienket
  lk  :   main.o View.o
      g++ main.o  View.o  -o  lienket
  main.o  :   main.cpp
      g++ -c main.cpp
  View.o  :   View.cpp
      g++ -c  View.cpp
  </code></pre>
  
  <p>I ticked this is as a custom Makefile.(Project->properties->Project setting)</p>
  
  <p>Finally I build but receive the following error:</p>
  
  <pre><code>-------------- Build: Debug in lienket (compiler: GNU GCC Compiler)---------------
  
  Running command: mingw32-make.exe -f Makefile Debug
  mingw32-make.exe: *** No rule to make target `Debug'.  Stop.
  Process terminated with status 2 (0 minute(s), 0 second(s))
  0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
  </code></pre>
  
  <p>How do I use a makefile with Codeblocks?</p>