title: makefile file format not recognized
body: <p>what i'm doing wrong?
  And can you send some helpful links to make my work with makefiles easier and better?</p>
  
  <pre><code>get_next_line.o: file not recognized: File format not recognized
  collect2: error: ld returned 1 exit status
  Makefile:27: recipe for target 'gnl' failed
  make: *** [gnl] Error 1
  </code></pre>
  
  <p>+++</p>
  
  <pre><code>SRC = gnl.c
  OBJ = $(SRC:.c=.o)
  INCLUDES = gnl.h
  NAME = gnl
  CFLAGS = -Wall -Werror -Wextra
  CC = gcc
  DIR = LIBFT
  
  %.o: %.c $(SRC) $(INCLUDES)
          $(CC) $(CFLAGS) -c $&lt;
  
  all: $(NAME)
  
  $(NAME): $(OBJ)
          make -C $(DIR)
          $(CC) $(CFLAGS) -o $(NAME) $(OBJ) -L. $(DIR)/libft.a
  clean:
          make clean -C $(DIR)
          rm -f $(OBJ)
  
  fclean:
          make fclean -C $(DIR)
          rm -f $(NAME)
  
  re: fclean all
  </code></pre>