title: makefile to compile multiple sources, with different flags
body: <p>I have the following makefile:</p>
  
  <pre><code>CC = gcc
  SRC = source1.c
  EXE = source1
  FLAGS = -fopenmp
  
  all: $(src)
  $(CC) -o $(EXE) $(SRC) $(FLAGS)
  
  clean:
  rm $(EXE)
  </code></pre>
  
  <p>How can I modify it so I can use multiple sources, some of them compiled with the flag -fopenmp, some of them compiled without. Thanks a lot.</p>