title: makefile compile with -g and -O0 automatically
body: <p>Now I got a makefile like this:</p>
  
  <pre><code>#--------------------------------------------------------
  #  Choose  a  compiler  
  #-------------------------------------------------------- 
  CC = gcc
  
  #--------------------------------------------------------
  #  Set  your  source  file  and  your  target  executable    
  #--------------------------------------------------------
  SRC = main.c
  TARGET = main2
  
  all: $(TARGET)
  
  #--------------------------------------------------------
  #  Compile  the  program    
  #--------------------------------------------------------
  $(TARGET): $(SRC)
      $(CC)  -o  $@  $(SRC)  
  
  #--------------------------------------------------------
  #  Clean  up  (remove  the  executable)  
  #--------------------------------------------------------
  clean:
      rm  -f  $(TARGET)  
  </code></pre>
  
  <p>How can I modify my Makefile so that it compiles with -g and -O0  (that's oh-zero) options automatically? I am really confused with the makefile stuff.</p>