title: make: *** No rule to make target `gcc', needed by `libmy.so'. Stop
body: <p>I would like to compile .c files to a .so (shared library).
  And I don't understand why, I have that makefile that makes me an error:</p>
  
  <pre><code>LIB = libmy.so
  
  SRC =   lib.c
  
  CC = gcc
  
  OBJ = $(CC) -c -fPIC $(SRC)
  
  all: $(LIB)
  
  re: fclean all
  
  $(LIB): $(OBJ)
          $(CC) -shared -fPIC $(OBJ) -o $(LIB)
  
  clean:
          $(RM) $(OBJ)
  
  fclean: clean
          $(RM) $(LIB)
  </code></pre>
  
  <p>Thanks in advance for helping.</p>