summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorshiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-12-02 19:52:48 (GMT)
committershiqian <shiqian@861a406c-534a-0410-8894-cb66d6ee9925>2008-12-02 19:52:48 (GMT)
commit3e1e473ccd456ea2932abdb71ac9eb38c49ea7ee (patch)
tree1307a8a0300c566fcbcadfed260bd16e5459c773 /README
parent389508e355aae92bd8be2ef5aa0547a06c664df1 (diff)
downloadgoogletest-3e1e473ccd456ea2932abdb71ac9eb38c49ea7ee.zip
googletest-3e1e473ccd456ea2932abdb71ac9eb38c49ea7ee.tar.gz
googletest-3e1e473ccd456ea2932abdb71ac9eb38c49ea7ee.tar.bz2
Adds a Makefile to demonstrate building Google Test with a manually-written Makefile.
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