summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-04-14 05:34:38 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-04-14 05:34:38 (GMT)
commit97c452823c6cf3cd28e8838cefcceb80da1c1ed7 (patch)
treee1ec3d3e64b9babce82fc10ba8ea1283c32a81ce /make
parent1b71f0b272f4d3dfb45db44ab39a77727ddafb9b (diff)
downloadgoogletest-97c452823c6cf3cd28e8838cefcceb80da1c1ed7.zip
googletest-97c452823c6cf3cd28e8838cefcceb80da1c1ed7.tar.gz
googletest-97c452823c6cf3cd28e8838cefcceb80da1c1ed7.tar.bz2
Over-hauls README, and fixes Makefile.
Diffstat (limited to 'make')
-rw-r--r--make/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/make/Makefile b/make/Makefile
index 2d8806e..5b27b6a 100644
--- a/make/Makefile
+++ b/make/Makefile
@@ -20,7 +20,7 @@ GTEST_DIR = ..
USER_DIR = ../samples
# Flags passed to the preprocessor.
-CPPFLAGS += -I$(GTEST_DIR) -I$(GTEST_DIR)/include
+CPPFLAGS += -I$(GTEST_DIR)/include
# Flags passed to the C++ compiler.
CXXFLAGS += -g -Wall -Wextra
@@ -52,10 +52,12 @@ GTEST_SRCS_ = $(GTEST_DIR)/src/*.cc $(GTEST_DIR)/src/*.h $(GTEST_HEADERS)
# conservative and not optimized. This is fine as Google Test
# compiles fast and for ordinary users its source rarely changes.
gtest-all.o : $(GTEST_SRCS_)
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(GTEST_DIR)/src/gtest-all.cc
+ $(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
+ $(GTEST_DIR)/src/gtest-all.cc
gtest_main.o : $(GTEST_SRCS_)
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(GTEST_DIR)/src/gtest_main.cc
+ $(CXX) $(CPPFLAGS) -I$(GTEST_DIR) $(CXXFLAGS) -c \
+ $(GTEST_DIR)/src/gtest_main.cc
gtest.a : gtest-all.o
$(AR) $(ARFLAGS) $@ $^
@@ -75,4 +77,4 @@ sample1_unittest.o : $(USER_DIR)/sample1_unittest.cc \
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(USER_DIR)/sample1_unittest.cc
sample1_unittest : sample1.o sample1_unittest.o gtest_main.a
- $(CXX) $(CPPFLAGS) $(CXXFLAGS) $^ -o $@
+ $(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@