title: Use gtest_main.a directly?
body: <p>The sample makefile of gtest has following line of code</p>
  
  <pre><code>gtest-all.o : $(GTEST_SRCS_)
      $(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
              $(GTEST_DIR)/src/gtest-all.cc
  
  gtest_main.o : $(GTEST_SRCS_)
      $(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
              $(GTEST_DIR)/src/gtest_main.cc
  
  gtest.a : gtest-all.o
      $(AR) $(ARFLAGS) $@ $^
  
  gtest_main.a : gtest-all.o gtest_main.o
      $(AR) $(ARFLAGS) $@ $^
  </code></pre>
  
  <p>As I'm not making any changes to the files required by gtest_main.a can I use this gtest_main.a in all the MAkefiles directly without writing the steps to build it? I mean once the gtest_main.a has been generated I can always provide a path to it or copy paste in my project directory! </p>