summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-12-02 19:52:48 +0000
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-12-02 19:52:48 +0000
commit5cd5b671ab4ad97794c74a7fc4907bd3d102c889 (patch)
tree1307a8a0300c566fcbcadfed260bd16e5459c773 /README
parent49ad29459d0b1fb9d988ede130dccaa978f757a3 (diff)
downloadgoogletest-5cd5b671ab4ad97794c74a7fc4907bd3d102c889.tar.gz
Adds a Makefile to demonstrate building Google Test with a manually-written Makefile.
git-svn-id: http://googletest.googlecode.com/svn/trunk@148 861a406c-534a-0410-8894-cb66d6ee9925
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 18 insertions, 0 deletions
diff --git a/README b/README
index e34a026..8420ade 100644
--- a/README
+++ b/README
@@ -208,6 +208,24 @@ in the "Variables to be set in the environment:" list, where you replace
when you run your executable, it will load the framework and your test will
run as expected.
+### Using GNU Make ###
+The make/ directory contains a Makefile that you can use to build
+Google Test on systems where GNU make is available (e.g. Linux, Mac OS
+X, and Cygwin). It doesn't try to build Google Test's own tests.
+Instead, it just builds the Google Test library and a sample test.
+You can use it as a starting point for your own Makefile.
+
+If the default settings are correct for your environment, the
+following commands should succeed:
+
+ $ cd ${SRCDIR}/make
+ $ make
+ $ ./sample1_unittest
+
+If you see errors, try to tweak the contents of make/Makefile to make
+them go away. There are instructions in make/Makefile on how to do
+it.
+
### Using Your Own Build System ###
If none of the build solutions we provide works for you, or if you
prefer your own build system, you just need to compile