title: cannot find -lgtest when setting up Google Test
body: <p>I'm using Google Test for C++ and trying to set it up on my linux machine.
  My make file has the following code:</p>
  
  <pre><code>CC=g++ 
  CFLAGS=-I $(GOOGLETESTDIR)/include -L $(GOOGLETESTDIR)/lib -lgtest -lpthread -Wall
  DEPS=fib.h
  OBJS=fib.o main.o
  
  all: | r6
  
  clean:
      -rm -f r6 $(OBJS)
  
  %.o: %.cpp $(DEPS)
      $(CC) -c -o $@ $&lt; $(CFLAGS) 
  
  r6: $(OBJS)
      $(CC) -o $@ $^ $(CFLAGS) 
  .PHONY: all clean
  </code></pre>
  
  <p>I get the error when I run make:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lgtest
  </code></pre>
  
  <p>How do I fix this? I'm new to this kind of testing and rather new to linux so I'm really lost.</p>