title: Makefile basics
body: <p>I am having trouble with the basics of makefile.</p>
  
  <p>I use gcc to compile</p>
  
  <p>What I need to do is make a makefile named labMakefile and the targets are </p>
  
  <pre><code>lab
  labM.o
  labG.o
  clean
  </code></pre>
  
  <p>the files already in the folder that i'm working on consist of</p>
  
  <pre><code>labM.c
  labM.o
  labG.c
  labG.o
  </code></pre>
  
  <p>I have been looking at makefile tutorials but I cant seem to find the proper way to create a makefile</p>
  
  <p>What i have tried</p>
  
  <pre><code>labMakefile: labM.o labG.o
  </code></pre>
  
  <p>but it just says <code>labMakefile:: command not found</code></p>