title: OSX Mavericks causes "cannot specify -o when generating multiple output files"
body: <p>Since I installed mavericks on my mac, I can't compile some of my programs.</p>
  
  <p>**clang: error: cannot specify -o when generating multiple output files
  **</p>
  
  <p>The makefile is :</p>
  
  <pre><code>SHELL = /bin/sh
  CC = gcc
  CFLAGS = -Wall -O3 -funroll-all-loops
  EXEC = program
  SRC = $(EXEC).c file1.c file2.c file3.c file4.c
  OBJ = $(SRC:.c=.o)
  LIB = $(SRC:.c=.h)
  
  all: $(EXEC)
  
  $(EXEC): $(OBJ) $(LIB)
      $(CC) -o $@ $^ $(LDFLAGS) -lm
  
  %.o: %.c $(LIB)
      $(CC) -o $@ -c $&lt; $(CFLAGS)
  </code></pre>
  
  <ul>
  <li>gcc is redirected to clang, but I don't know if this causes the described error.</li>
  <li>gcc is installed</li>
  <li>I don't know how to cancel this redirection to test again.</li>
  <li>I saw this post : <a href="https://stackoverflow.com/questions/19748656/makefile-gcc-not-working-believe-mavericks-is-responsible">Makefile; gcc not working? Believe Mavericks is responsible</a> but I don't really understand the problem and its resolution</li>
  </ul>
  
  <p>Thanks for your attention</p>