title: How to add compile flag -g to a make file?
body: <p>I got a C++ program for which someone else made a make file. I want to compile the program with flag -g, but I don't know where to add it. Below is the make file.</p>
  
  <pre><code>CC = g++
  LOADLIBES = -lm
  CFLAGS = -Wall -O2
  
  
  SRC1 = Agent.cpp Breeder.cpp CandidateSolution.cpp \
      Cupid.cpp FateAgent.cpp Grid.cpp Reaper.cpp \
      fitness.cpp
  
  SRC2 = main.cpp
  
  SRC  = $(SRC1) $(SRC2)
  
  OBJS = $(SRC1:.cpp = .o)
  
  AUX = $(SRC1:.c = .h)
  
  
  main: $(OBJS) 
  #   $(CC) $(CFLAGS) -o $(SRC) $(AUX) 
  
  .PHONY: clean
  clean:
      rm -f *.o main
  </code></pre>
  
  <p>Where should I add that I want to use -g?</p>